pyfill is a tool to detect Python versions and automatically replace deprecated features (e.g. datetime.utcnow) with alternative methods.
Project description
pyfill
pyfill is a tool that detects Python versions and replaces deprecated features or standard libraries (e.g. datetime.utcnow) with alternative methods using only the standard library or Python itself whenever possible.
Why this exists
I use deprecated features in the process of maintaining multiple libraries, such as apsig, and then use the same features in multiple versions by replacing them with alternative features in deprecated and subsequent versions. However, this method does not allow me to reuse the same deprecated features when creating another library (except for copy/paste, etc.). To make this possible, this library is licensed under CC0.
Current Features
datetime.utcnow()
(pyfill.datetime.utcnow()
)datetime.utcfromtimestamp()
(pyfill.datetime.utcfromtimestamp()
)
Other Alternatives
audioop-lts
: LTS port for the audioop module, which was removed in 3.13 and deprecated in 3.11.
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
File details
Details for the file pyfill-0.1.3.tar.gz
.
File metadata
- Download URL: pyfill-0.1.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f8416ca329c5c61da9323527b3f8f263f9ac71139d00ac3f5d2fa1398afca274
|
|
MD5 |
f434753c5f20f075ea5c94c442bd4b9a
|
|
BLAKE2b-256 |
1931594dcd00ec7a13e7a847d8b3c14a9be74d785feaf7812f3313bbe2a97854
|
File details
Details for the file pyfill-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pyfill-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f6057ac9ab418855f278a21b02082a80f969b2decd15229a476c9f74a2f353d7
|
|
MD5 |
49e177f5f59ccf2fff0c5720683e7001
|
|
BLAKE2b-256 |
ea61c76ae9a76a0951c2cef4169056433b6900d470575a71af08321f5e46be9f
|