Skip to main content

Autistic stuff, either created by us, or stolen from someone on the internet

Project description

autisticstuff

-- library from autists for... idek Python License

We are on pypi.org

Modules:

fastapi - unified response system with exception handling and premade schemas for sqla.layer architecture; also some utils

safe - RetryableClientSession, retey_wtih_backoff and more

logs - logging utilities: InterceptHandler and more

  • InterceptHandler class for low-level interception of logging loggers by name to loguru log engine
  • get_logger function-factory for getting cached instances of loguru.Logger binded with loguru_name attribute, which is included in extra at log processing
  • Setup interceptions for custom logging.Logger instances by name
  • Add your own logger factory to InterceptHandler, if you do not like loguru. It just needs to have .opt() implemented.

sqla - SQLAlchemy addons

  • Base for layered architecture, containing BaseMapping with a couple of preimplemented methods and BaseRepository with mostly every operation on model possible included.
  • PydanticJSON type for mapped_column() with automated serialization & validation on update.
  • Updating models with callback depending on flow of environment (sync/async), also possible to pass updated attribute to callback
  • Validate dictionary for model creation

utils - .env parsing, cache-wraps for instances

  • LRU-Cache wrappers for object instances - cache your DB, Settings or anything else - and fetch it with ease from every place in code
  • AppSettings base class for easy and type-checked environment variables reading with ability to fetch variables from property post-initialization

Contribute:

  • Just branch out in the repository and submit a pull-request after completion.

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

autisticstuff-0.1.3.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

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

autisticstuff-0.1.3-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

Details for the file autisticstuff-0.1.3.tar.gz.

File metadata

  • Download URL: autisticstuff-0.1.3.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for autisticstuff-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2daaa540d8603092a0a9e764c43015673563dc79355bab7ca8aa52c205492af6
MD5 a2ce4d541459332fd8efd91094cc9f0a
BLAKE2b-256 ceed1d2d7ebc0f595a4c2c86497f3cdf2484d8801d95e4f2522348fab1ca4307

See more details on using hashes here.

Provenance

The following attestation bundles were made for autisticstuff-0.1.3.tar.gz:

Publisher: publish.yaml on twohundredpointsonraads/autisticstuff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file autisticstuff-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: autisticstuff-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for autisticstuff-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1ff09bf36bb97b13e7471f6d1e21448ca7acd8c35761e2894bfce996c42b9b10
MD5 e2f3517ea86caaa49b536706d8acc511
BLAKE2b-256 06db40144019296e8681b50e5a4819df1be466239cc29acc2f0261a55e1439aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for autisticstuff-0.1.3-py3-none-any.whl:

Publisher: publish.yaml on twohundredpointsonraads/autisticstuff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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