Skip to main content

python utils

Project description

a3py

Python utils.

History.

Install

pip install a3py

Examples

1. Simplified example

from datetime import date
from a3py.simplified.datetime import date2str

assert date2str(date(2019, 10, 3)) == '2019-10-03'

2. Improved example

from a3py.improved.json import fast_dumps

fast_dumps([1, 2, 3])

3. Readable example

from a3py.improved.readable import get_readable_size

assert get_readable_size(1024 * 1024) == "1.0MB"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a3py-0.1.9.tar.gz (9.4 kB view details)

Uploaded Source

File details

Details for the file a3py-0.1.9.tar.gz.

File metadata

  • Download URL: a3py-0.1.9.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for a3py-0.1.9.tar.gz
Algorithm Hash digest
SHA256 c0b931f20f395c4399acfd026a6c5508c500ad1d00bb80030874c15a881348c3
MD5 e5950b98889e0a88de3ddba2361fda3a
BLAKE2b-256 c07345903dd4609e5e2164814c21708d99b201fd6fea4a10597b6a526ed833fe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page