A python development kit containing handy packages.
Project description
Py-Roma
This package provides handy tools for regular development in python.
At the heart of the conquest of Rome's vast territory was a sophisticated infrastructure.
console
console should be imported in the manner below:
from roma import console
Fancy Text
Demo:
console.write_line('#{Hello}{red} #{World}{blue}!')
Progress Bar
Demo:
import time
total = 100
quarter = int(total / 4)
for i in range(1, total + 1):
if i % quarter == 0:
console.write_line('{}/{} done!'.format(i, total))
console.print_progress(i, total)
time.sleep(0.05)
spqr
This package serves as a MISC package, which contains a bundle of common, useful tools.
censor
censor module handles issues related to argument types.
Demo of check_type():
from roma import censor
assert all([
censor.check_type(31, int) == 31,
censor.check_type({'adh', 93, 19}, inner_type=str)
== {'adh', '93', '19'},
censor.check_type([None, 12, 19.0], tuple,
inner_type=int, nullable=True) == (None, 12, 19),
])
atticus
atticus provides tools for produce appropriate strings.
Demo of ordinal():
from roma import atticus
assert all([
atticus.ordinal(1) == '1st', atticus.ordinal(2) == '2nd', atticus.ordinal(3) == '3rd',
atticus.ordinal(8) == '8th', atticus.ordinal(11) == '11th', atticus.ordinal(12) == '12th',
atticus.ordinal(13) == '13th', atticus.ordinal(21) == '21st', atticus.ordinal(112) == '112th',
])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_roma-1.0.0.tar.gz.
File metadata
- Download URL: py_roma-1.0.0.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02c22efde5b61327f1c6a61ed9c540a46bd90c4e36e473d1b97bd96d4775c1b8
|
|
| MD5 |
e486b938b47170dd298b7f56079b1e4f
|
|
| BLAKE2b-256 |
39bf7c622961a3e53d3237d8fab3e80745ffc24509824b13a2ec133ec1cc5283
|
File details
Details for the file py_roma-1.0.0-py3-none-any.whl.
File metadata
- Download URL: py_roma-1.0.0-py3-none-any.whl
- Upload date:
- Size: 48.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c41b4c2016da7dc0e80da6228ea46f4ecc85d5f2740354136de753b997961aee
|
|
| MD5 |
4ae25604f349ece53135e084ac0f5bf6
|
|
| BLAKE2b-256 |
595393b0762d68b0064579efa251ba40a6e3a7b1a06ec2eca6f4c0552ccc9285
|
File details
Details for the file py_roma-1.0-py3-none-any.whl.
File metadata
- Download URL: py_roma-1.0-py3-none-any.whl
- Upload date:
- Size: 48.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8682a5c32190fdd65c4910f53ac2b30c997306f931e0f292ce5e28a728f5a4e1
|
|
| MD5 |
73cd79b0234f3f021f266eb002e0f887
|
|
| BLAKE2b-256 |
e5321e7644dda6fd1fe65e8622d65815626bbecc5bf55734ed54c0427c22184f
|