Zaraciccio's Library for Python
Installation
pip install Zaraciccio
Components
The SQL Module helps you to connect to a SQLite, MySQL or PostgreSQL database.
To initialize it:
from Zaraciccio import SQL
# SQLite
db = SQL("sqlite:///database.db")
# MySQL
db = SQL("mysql://mysql@localhost/database")
# PostgreSQL
db = SQL("postgresql://postgresql@localhost/database")
The input module contains three functions:
input_int(prompt), via wich you can prompt the user for an integer. If the user doesn't input an integer, is prompted to retry.input_float(prompt), via wich you can prompt the user for a floating point value. If the user doesn't input a floating point value, is prompted to retryinput_string(prompt), via wich you can prompt the user for a string.
The printer module prints emphatised text.
An automatic \n is added at the end of every row. Is possible to pass many arguments, wich will be printed separaed by a space.
To initialize it:
from Zaraciccio import printer
p = printer(text="black", style="italic", background="white")
p.print("Foo", "Bar", "Baz")
The locales module formats values as an user-specified locale
from Zaraciccio import usd, eur, ?, locale
value = "1234.123"
precision = 3
l = locale(value, precision=precision)
print(usd(value, precision=precision))
print(eur(value, precision=precision))
print(gbp(value, precision=precision))
print(l.toUSD())
print(l.toEUR())
print(l.toGBP())
Development
Set up a Python virtual environment.
On Linux/MacOS:
python -m venv venv
source ./venv/bin/activate
On Windows:
py -3 -m venv venv
.\venv\Scripts\activate
Install required packages
pip install logging termcolor functools flask sqlalchemy sqlparse datetime
Please read the LICENSE file before using this software.
Metadata
Release files for Zaraciccio 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Zaraciccio-0.1.1.tar.gz | 9.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Zaraciccio-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.0 kB
Release files / Zaraciccio-0.1.1.tar.gz
| Download URL | Zaraciccio-0.1.1.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
532988d9c228c8ec6e9bbae1f3bb044e4389190128613ee95662e38257d75c12
|
|
BLAKE2b-256 checksum How to use checksums |
e0763576910fb1e26b02f7e11b8c37dd7f3c0aa061f5b9f960c44a6ef42a6d60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0+
|
Release files / Zaraciccio-0.1.1-py3-none-any.whl
| Download URL | Zaraciccio-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a33458ec02ccb7ff693933d83b63961d4bd3757cb5a0010813825ddba5a2acfe
|
|
BLAKE2b-256 checksum How to use checksums |
18f04cbb340a1b86e8b2171721c3742e7a56110777c6928d16efc8eafeb0e845
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0+
|
Security for Zaraciccio 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.