A collection of useful python programs.
Project description
Python-Charmers
A collection of useful python programs.
Installation
- Install MySQL
- Debian/Ubuntu
$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
- Red Hat/Cent OS
% sudo yum install python3-devel mysql-devel
- macOS
# Install MySQL server $ brew install mysql # If you don't want to install MySQL server, you can use mysql-client instead: $ brew install mysql-client $ echo 'export PATH="/usr/local/opt/mysql-client/bin:$PATH"' >> ~/.zprofile $ export PATH="/usr/local/opt/mysql-client/bin:$PATH"
- Debian/Ubuntu
- Install
Python-Charmers
(There are two ways to install):- Create an environment for Python-Charmers using Pyenv and Poetry (recommended)
$ pyenv install 3.8.9 $ pyenv local 3.8.9 $ python -V Python 3.8.9 $ poetry install
- Install in a specific environment
- Install from PyPI:
$ sudo pip install Python-Charmers
- Alternatively: install PyGuitar from the GitHub source:
$ git clone https://github.com/iwasakishuto/Python-Charmers.git # If you want to use the latest version (under development) $ git clone -b develop https://github.com/iwasakishuto/Python-Charmers.git $ cd Python-Charmers $ sudo python setup.py install
- Install from PyPI:
- Create an environment for Python-Charmers using Pyenv and Poetry (recommended)
- Install driver for
selenium
:Selenium
requires a driver to interface with the chosen browser, so please visit the documentation to install it.# Example: Chrome # visit "chrome://settings/help" to check your chrome version. # visit "https://chromedriver.chromium.org/downloads" to check <Suitable.Driver.Version> for your chrome. $ wget https://chromedriver.storage.googleapis.com/<Suitable.Driver.Version>/chromedriver_mac64.zip $ unzip chromedriver_mac64.zip $ mv chromedriver /usr/local/bin/chromedriver $ chmod +x /usr/local/bin/chromedriver
Pyenv + Poetry
I recommend you to use these tools to avoid the chaos of the python environment. See other sites for how to install these tools.
$ pyenv install 3.8.9
$ pyenv local 3.8.9
$ python -V
Python 3.8.9
$ poetry install
$ poetry run pycharmers-show
$ poetry run book2img
CLI
CLI is a command line program that accepts text input to execute operating system functions.
# If you use Poetry to set up the environment.
$ poetry run pycharmers-show
| command | path |
|:-------------------:|:-----------------------------------------------------|
| book2img | pycharmers.cli.book2img:book2img |
| cv-cascades | pycharmers.cli.cvCascades:cvCascades |
| : | : |
| tweetile | pycharmers.cli.tweetile:tweetile |
| video2gif | pycharmers.cli.video2gif:video2gif |
command | description |
---|---|
book2img |
Convert Book into Sequential Images. |
cv-cascades |
Control the OpenCV cascade Examples. |
cv-paper-scanner |
Paper Scanner using OpenCV. |
cv-pencil-sketch |
Convert the image like a pencil drawing. |
cv-window |
Use cvWindow to control frames. |
form-auto-fill-in |
Auto fill in your form using your saved information (or answer on the spot). |
jupyter-arrange |
Arrange Jupyter Notebook. |
openBrowser |
Display url using the default browser. |
pdfmine |
Analyze PDF and extract various elements. |
regexp-replacement |
String replacement in a file using regular expression |
render-template |
Render templates. |
requirements-create |
Create a requirements.text |
revise_text |
Revise word file. |
pycharmers-show |
Show all Python-Charmers's command line programs. |
tweetile |
Divide one image into three so that you can tweet beautifully. |
video_of_lyric |
Create a lyric Video. |
video_of_typing |
Create a typing video. Before using this program, please do the following things |
video2gif |
Convert Video into Gif. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Python-Charmers-0.2.0.tar.gz
(183.7 kB
view details)
Built Distribution
File details
Details for the file Python-Charmers-0.2.0.tar.gz
.
File metadata
- Download URL: Python-Charmers-0.2.0.tar.gz
- Upload date:
- Size: 183.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.10 Linux/5.8.0-1036-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce862ee587616bba66d36ad0b38304ced5fbeb93a008b2ebf7df7bc7dbab8622 |
|
MD5 | 99d5b31e19d3e7ba24fb0e830276563f |
|
BLAKE2b-256 | 3bbe054d6056a901a7bf17c3b49b580c85d2826fa4b9e587f2ef08e8a9b4af37 |
File details
Details for the file Python_Charmers-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: Python_Charmers-0.2.0-py3-none-any.whl
- Upload date:
- Size: 212.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.10 Linux/5.8.0-1036-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cecf870f220363e52701044566d2b9cb254e6a1827dc67ab975c5cd0eb4e1d4e |
|
MD5 | 5964b6dd899a37f90fadec5771cabf51 |
|
BLAKE2b-256 | 31b4587439b004fe34a67842fbc4471bc9e90bc5cd39c35bb0be81f43c4591c3 |