Welcome to Area4’s documentation!¶
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
Warning
You must have prior knowledge with using a requirements.txt file to take this path. If not, search how to use a requirements file for Python dependencies
Using¶
After you install the package (instructions in the installing section), 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 the methods listed in the examples section to get the dividers.
Warning
In version 1.1.0, the functions changed in the way they operated. Before 1.1.0, the functions printed the variables, but after the release, they now just return the variable.
And if you want to you can check to make sure the library is working:
print(area4.area4info())
Warning
The area4info function will only work on Python 3.6 or above. Keep this in mind if using it and you don’t want SyntaxErrors!
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(). If you don’t understand, see the examples part of the documentation.
- Dashed
- Solid
- Dotted
- Black Squares
- Up arrow emojis
- Down arrow emojis
- Equal signs
- Hashtags
- Asterisks (stars)
- Commas
- Slashes
- Broken bars (|)
- Tildas
- Backslashes (not to be confused with #11)
- Coffee cups
- Plus signs
- Cthulhus
- Lenny faces
- And (&) signs
- Up arrow dividers (^)
- Shrug emojis
- Number 1s
- Number 2s
- Number 3s
- Number 4s
- Number 5s
- Number 6s
- Number 7s
- Number 8s
- Number 9s
- Number 10s
- <>s
- Smiley faces I think
- &*s
- Random numbers (returned as string which is automatically converted from an integer)
- The simbol that looks like ‘
- lowercase a
- uppercase a
- lowercase b
- uppercase b
- lowercase c
- uppercase c
- lowercase d
- uppercase d
- lowercase e
- uppercase e
- lowercase f
- uppercase f
- lowercase g
- uppercase g
- lowercase h
- uppercase h
- lowercase i
- uppercase i
- lowercase j
- uppercase j
- lowercase k
- uppercase k
- lowercase l
- uppercase l
- lowercase m
- uppercase m
- lowercase n
- uppercase n
- lowercase o
- uppercase o
- lowercase p
- uppercase p
- lowercase q
- uppercase q
- lowercase r
- uppercase r
- lowercase s
- uppercase s
- lowercase t
- uppercase t
- lowercase u
- uppercase u
- lowercase v
- uppercase v
- lowercase w
- uppercase w
- lowercase x
- uppercase x
- lowercase y
- uppercase y
- lowercase z
- uppercase z
- Beach umbrella emojis
- Airplane emojis
- Orange leave emojis
- Key emojis
- Big smilies
- Laughing face
- Toung-sticking-out faces
- Toung-sticking-out faces v2
- Surprised faces
- Upset face
- Pretend-smile face
- Scared face
- Surprised face
- Happy babies
- Happy ladies
- Happy men
- Happy ladies
- Happy men
- Happy grannies
- Happy grandpas
- Thumbs up
- Thumbs down
- Punch
- Fist
- Punch left
- Punch right
- Crossed fingers
- Crossed fingers v2
- Unknown emoji
- Ok-hand
- Point left
- Point right
- Point up
- Point down
- Finger up
- Hand
- Hand v2
- 5 fingers on hand
- 🖖
- Bye wave
- Call me wave
- Strong arm emoji
- Dogs
- Cats
- Mice
- Hampsters
- Bunnies
- Foxes
- Bears
- Pandas
- Koalas
- Tiger
- Lions
- Cows
- Pigs
- Frog
- Monkeys
- Monkey eyes shielded
- Monkey eyes open
- Monkey hands over mouth
- Sitting monkey
- Penguins
- Chickens
- Parrots
- Birds
- Hatching ducks
- Ducks
- Geese
- Flower bundles
- Pink flowers
- Roses
- Dead flowers
- Pink flowers v2
- Pink flowers v3
- White flower
- Yellow flower
- Small sun
- Big sun
- Half moons facing left
- Half moons facing right
- Full moons
- Stars
- Multiple stars
- Lightning bolts
- Water bolts
- Fires
- Thunder clouds
- Rainbows
- Partly eaten chickens
- Not-really-eaten chickens
- Hot dogs
- Hamburgers
- French fries
- Pizza
- Sandwitches
- Sno-cones
- Ice creams in cups
- Ice creams in cones
- Pies
- Cakes
- Cakes v2
- Beers
- Two touching beers
- Two touching wine glasses
- Single wine glasses
- Soccer balls
- Medals
- Cars
- Alarm clocks
- Money bags
- Baloons
- Hearts
- Surprised faces v2
- Pins
- A person
- Dice
- Bowling ball and pins
- Cookies
- Snowmen
- Potatoes
- Shrimp
And more coming soon!
Examples¶
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.
A few examples 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)
print(area4.divider8)
print(area4.divider9)
print(area4.divider10)
print(area4.divider11)
print(area4.divider12)
print(area4.divider13)
print(area4.divider14)
print(area4.divider15)
A few examples just using functions:
print(area4.div1())
print(area4.div2())
print(area4.div3())
print(area4.div4())
print(area4.div5())
print(area4.div6())
print(area4.div7())
print(area4.div8())
print(area4.div9())
print(area4.div10())
print(area4.div11())
print(area4.div12())
print(area4.div13())
print(area4.div14())
print(area4.div15())
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("divider_text_here")
# Using:
print(area4.customdiv())
# or...
print(area4.custom_div)
You can also generate a custom divider with the make_div function
# Specify a repeating unit and a maximum length
area4.make_div('<>', length=24) # returns a string
# Add start or end elements
area4.make_div('=-', length=9, start='<', end='=>') # Returns: '<=-=-=-=>'
# Resize existing dividers
area4.make_div(area4.divider1, 6) # Returns: '------'
# Setting to custom div:
area4.custom_div = area4.make_div('<>', 24)
# or directly printing
print(area4.make_div('<>', 24))
# specify an literal unit (the function will not atempt to find smaller repeating units)
area4.make_div('<><>~', length=10, literal_unit=True) # returns '<><>~<><>~' instead of '<><><><><>'
Warning
The make_div function will try to replicate whole repeating units to the specified length. The output will always be less than or equal to the specified length. Test the output to ensure the divider looks as you would like it.
Info for devs¶
Divider Format¶
The format for making new dividers is:
# Variable:
dividerNumber = str("dividertexthere")
# Function
def divNumber():
return dividerNumber
__name__ Checking¶
You can check to see if __name__ is “__main__” by running this function: .. code-block:: python
# import the utilities module: import area4.util # run function: print(area4.util.check()) # additionally, you can specify an __name__ to work with: print(area4.util.check(str(__name__)))
By RDIL [1]
Make sure to view our other documentation pages for more info!
Important: Please read all pages before creating issues as the question may be answered here.
[1] | <contactspaceboom@gmail.com> |