pyflash
Get flash like super powers by automating everyday tasks!
Install
$ pip install pyflash
Quickstart
$ pyflash --help
$ python -m pyflash --help
Commands
python-version-readiness
This command is useful to detect the python version readiness when compared to top 5000 most downloaded PyPI packages.
# Command to download and install top 300 packages for the given python version and generate a log file
$ flash python-version-readiness --python /usr/local/bin/python3.10 --number 300
# Show top 10 lines of the log file
$ head -n 11 pvr.python3.10.log
[
{
"download_count": 267740673,
"project": "boto3",
"is_ready": true
},
{
"download_count": 203850147,
"project": "botocore",
"is_ready": true
},
# Show packages that are failed to install
$ grep false -C 1 pvr.python3.10.log
"project": "pyodbc",
"is_ready": false
},
--
"project": "tensorflow",
"is_ready": false
},
--
"project": "backports-zoneinfo",
"is_ready": false
},
--
otp
This command is used to generate OTP for 2 factor authentication.
Setup a file called ~/.pyflash.ini and then run otp command.
$ cat ~/.pyflash.ini
[otp]
gmail = secret_key_of_gmail
vault = secret_key_of_vault
$ python -m pyflash otp
gmail: 282910
vault: 420529
Note
flash needs several third party packages depending on the command being used. Packages which are available on PyPi will get installed as a requirements. sortphotos, ocropy are not available on PyPi. You have to download them and add them to your python path.
Help
Usage: python -m pyflash [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
adb-connect Scan network and connect to adb via network.
download-book Search and download book by name
download-imd-data Download IMD data for given range.
download-subtitles Download subtitles for videos in a directory.
fix-build Fix a failing CI build.
fix-imports Fix imports in a python project.
ipa-install Resign & install iOS apps.
nsedb Create/Sync NSE stocks OHLC data.
ocr Run given OCR engine on given image.
organize-books Organize books in a specified directory.
organize-downloads Organize downloaded files.
organize-photos Organize photos by date.
otp Show OTP
pg-stats Show stats for postgres database.
procfile Start processes in Procfile
python-version-readiness Show version readiness of top python packages.
rate-movies Show IMDb/RT ratings for movies and series.
rent-receipts Generate monthly rent receipts for a given FY.
send-to-kindle Send books to kindle via Dropbox/IFTTT.
split-pdf Split pdf horizontally/vertically.
validate-aadhaar Check if given AADHAAR number is valid or not.
Metadata
Release files for pyflash 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyflash-0.3.1.tar.gz | 13.8 kB | Without provenance | Details for pyflash-0.3.1.tar.gz |
Release files / pyflash-0.3.1.tar.gz
| Download URL | pyflash-0.3.1.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
213727db822d97884f8127c1a1bc81155bd0beb4f16ba9e8bd0f3e5df61af31a
|
|
BLAKE2b-256 checksum How to use checksums |
a60c33384250c6a52903a0e552b500eeb1a3da32bcaedc62c279ae6d9d907794
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for pyflash 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.