Skip to main content

Codegen tooling to maintain synchronous and asynchronous Django APIs

Project description

django-unasyncify is a project to help maintain sync and async implementations of APIs, focused on code relying on Django’s asynchronous API design.

It uses code generation to create separate sets of functions, that have no runtime dependencies on django-unasyncify nor do they rely on any wrappers to manage functionality, meaning there are no runtime costs to using this tool.

It helps you to transform code like:

def asave_instance(qs):
  await (await qs.aget()).asave()

into:

def save_instance(qs):
  qs.get().save()

Please check out the documentation for more details on how this project works and tips on how to use it.

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

django_unasyncify-0.1.1.tar.gz (245.0 kB view details)

Uploaded Source

Built Distribution

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

django_unasyncify-0.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file django_unasyncify-0.1.1.tar.gz.

File metadata

  • Download URL: django_unasyncify-0.1.1.tar.gz
  • Upload date:
  • Size: 245.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.31

File hashes

Hashes for django_unasyncify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b2c78255e69e0e24cd3264d9f087836d714fda2053427547caf191fe453521c4
MD5 fef9f1d28e89251dfb5d86d3411cb1b7
BLAKE2b-256 475a7fbd3b8722eafdc75f74692b9eedabfeb4407064a14aa3cbe560dbac2d7b

See more details on using hashes here.

File details

Details for the file django_unasyncify-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_unasyncify-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a57b1e2aa9585c8c0ab87480277dfc46dc0ef421f4c5efcd8f4b0114b2a36b9
MD5 98ed89f2cf3b2996fbedbdd769e8eebc
BLAKE2b-256 06b2725c45af8b6cafd89ad7c1251e3dcededea5753bcae221d44fc93ffe01cc

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