Skip to main content

a3py is a python toolkit.

Project description

a3py

English | 简体中文

a3py is a python toolkit.

1. Introduction

Simplified

  • Variable naming style conversion
  • Date and time conversion
  • Environment variables
  • Hashlib

Improved

  • Faster json(with ujson)
  • Readable

Practical

  • Dynamic
  • SingletonMeta
  • Signal

2. Usage

Install

pip install a3py

Examples

from datetime import date
from a3py.simplified.datetime import date2str
from a3py.improved.json import fast_dumps
from a3py.improved.readable import get_readable_size


if __name__ == "__main__":
    assert date2str(date(2019, 10, 3)) == "2019-10-03"
    assert fast_dumps([1, 2, 3]) == "[1,2,3]"
    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.3.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

a3py-0.3.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: a3py-0.3.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for a3py-0.3.2.tar.gz
Algorithm Hash digest
SHA256 f7304dd94fef950088149d89d4750c441d0d41f84639b6a66fc7a7959c0d4a66
MD5 4a08218ab05d3ce15c2e2f36e351c846
BLAKE2b-256 82b2dbe8e8ed83b26b96dbe5128009220fc27c7cce5142aec7dd61380554bf32

See more details on using hashes here.

File details

Details for the file a3py-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: a3py-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for a3py-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2167cadfa4cfa1245f257567b35242fdab689776c90981bd94c4dde61ccec5a
MD5 f55dd9b2405f4b7e566b407dee5fc4a6
BLAKE2b-256 e264879134c1fc1f93aa1350ae0cabab7baef353f824a06e9cfcd078b93f1f23

See more details on using hashes here.

Supported by

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