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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
695a3ff4e1d2cd7142d41423003e76e64a69626d364f5c9639a4260f08ff065c
|
|
| MD5 |
ba3016e44dfb18702b8a49dac7e5d5f0
|
|
| BLAKE2b-256 |
d15f27edca240e273f0726298446d40550ff18f2cd4bf07cc7709f310da9e207
|
Provenance
The following attestation bundles were made for asyncify_codemod-0.1.0.tar.gz:
Publisher:
publish.yml on 7CaD/python-asyncify-codemod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
asyncify_codemod-0.1.0.tar.gz -
Subject digest:
695a3ff4e1d2cd7142d41423003e76e64a69626d364f5c9639a4260f08ff065c - Sigstore transparency entry: 926805742
- Sigstore integration time:
-
Permalink:
7CaD/python-asyncify-codemod@b01179b25efeaca0ae6ed36cf948c94b09a16711 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/7CaD
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b01179b25efeaca0ae6ed36cf948c94b09a16711 -
Trigger Event:
push
-
Statement type:
File details
Details for the file asyncify_codemod-0.1.0-py3-none-any.whl.
File metadata
- Download URL: asyncify_codemod-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c45fce3a361e612c520498991ffb29f3c11770cc44a05e9078ba9ee06a1e06b
|
|
| MD5 |
9ddf19e8a7ed066f39fdddec59fc1785
|
|
| BLAKE2b-256 |
f48e27938fb9be98cb9a3a455e9b45e196aef1ed3d888e0cc4261bb78c7854c6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
asyncify_codemod-0.1.0-py3-none-any.whl -
Subject digest:
4c45fce3a361e612c520498991ffb29f3c11770cc44a05e9078ba9ee06a1e06b - Sigstore transparency entry: 926805744
- Sigstore integration time:
-
Permalink:
7CaD/python-asyncify-codemod@b01179b25efeaca0ae6ed36cf948c94b09a16711 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/7CaD
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b01179b25efeaca0ae6ed36cf948c94b09a16711 -
Trigger Event:
push
-
Statement type: