Skip to main content

Codemod to convert synchronous Python code to async.

Project description

asyncify-codemod

asyncify-codemod is a codemod that converts synchronous Python code into async where possible. It focuses on a few common patterns (like requests, time.sleep, and file I/O) and rewrites them to async equivalents.

Install with pipx

pipx install .

Install from PyPI

pipx install asyncify-codemod

Or with pip:

pip install asyncify-codemod

Usage

asyncify-codemod path/to/file.py

To print to stdout instead of overwriting:

asyncify-codemod --stdout path/to/file.py

To skip Black formatting:

asyncify-codemod --no-format path/to/file.py

Release

Build and publish to PyPI:

make build
make publish

Publish to TestPyPI:

make publish-test

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

asyncify_codemod-0.1.0.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

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

asyncify_codemod-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file asyncify_codemod-0.1.0.tar.gz.

File metadata

  • Download URL: asyncify_codemod-0.1.0.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for asyncify_codemod-0.1.0.tar.gz
Algorithm Hash digest
SHA256 695a3ff4e1d2cd7142d41423003e76e64a69626d364f5c9639a4260f08ff065c
MD5 ba3016e44dfb18702b8a49dac7e5d5f0
BLAKE2b-256 d15f27edca240e273f0726298446d40550ff18f2cd4bf07cc7709f310da9e207

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncify_codemod-0.1.0.tar.gz:

Publisher: publish.yml on 7CaD/python-asyncify-codemod

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

File details

Details for the file asyncify_codemod-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for asyncify_codemod-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c45fce3a361e612c520498991ffb29f3c11770cc44a05e9078ba9ee06a1e06b
MD5 9ddf19e8a7ed066f39fdddec59fc1785
BLAKE2b-256 f48e27938fb9be98cb9a3a455e9b45e196aef1ed3d888e0cc4261bb78c7854c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncify_codemod-0.1.0-py3-none-any.whl:

Publisher: publish.yml on 7CaD/python-asyncify-codemod

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