Example¶
Warning
If you don’t understand what we mean by dividers, fear not.
We mean dividers that divide text in the Python console, or anything you use the library for.
An example can be found here.
Divider looks¶
The number before it is the number used in calling it, so for example if you want divider 1, it would be area4.divider1 or area4.div1().
- Dashed
- Solid
- Dotted
- Black Squares
- Up arrow emojis
- Down arrow emojis
- Equal signs
And more coming soon!
Installing¶
You may install in one of the following ways:
- Through pip
- Through requirements.txt
To install via pip¶
To install via pip, open a terminal, and type the following command:
$ pip install area4
It should install.
To install via requirements.txt¶
To use area4 as a dependency for your project, you can add the following line:
area4
You must have prior knowledge with using a requirements.txt file to take this path.
Using¶
After you install the package (instructions above), you need to import it into any Python file that you will use it in.
You can do this by adding the following line to the top:
import area4
After doing so, you can use any of these methods to get a divider in your console:
Just using plain print commands:
print(area4.divider1)
print(area4.divider2)
print(area4.divider3)
print(area4.divider4)
print(area4.divider5)
print(area4.divider6)
print(area4.divider7)
Using functions:
area4.div1()
area4.div2()
area4.div3()
area4.div4()
area4.div5()
area4.div6()
And if you want to you can check to make sure the library is working:
area4.area4info()
Custom Dividers¶
Important
In version 1.0.3, custom dividers were added. They can’t be saved, but will stay applied until the Python script ends.
They can be called/used/updated this way:
# Setting:
area4.custom_div = str("dividertexthere")
# Using:
area4.customdiv()
# or...
print(area4.custom_div)
[1] | <YOUR@EMAIL.HERE> |