A CLI tool to insert common Python syntax into files.
Project description
Python Syntax Helper CLI
Welcome to the Python Syntax Helper CLI tool! This tool allows you to quickly add commonly used Python syntax templates (such as lists, tuples, dictionaries, functions, and more) directly into your Python files. It's perfect for beginners and experienced developers alike, helping you speed up the coding process by providing quick code templates.
Project Structure
python_syntax/ ├── python_syntax/ │ ├── init.py # Initializes the module │ ├── main.py # Main logic for handling user input and syntax generation ├── setup.py # The setup script for packaging ├── pyproject.toml # Build system requirements ├── LICENSE # The project’s license (MIT License) ├── README.md # Project documentation └── MANIFEST.in # Specifies additional files to include in the distribution
Deployment
To install theb package run
pip install python_syntax
To selct the syntax
python_syntax
select the option according to the syntax you want to include
Welcome to Python Syntax Helper CLI!
Please select a Python syntax template to include in your file:
1. List Syntax
2. Tuple Syntax
3. Dictionary Syntax
4. Function Syntax
5. If-Else Syntax
Enter your choice (1-5): 2
Select the file you want to include the syntax
Enter the file path where you want to save this syntax (e.g., main.py): my_tuple_code.py
You can specify any valid file path to save the selected syntax template. If the file doesn't exist, it will be created. For example:
your_file.py – An existing file.
new_file.py – A new file will be created.
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
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 python_syntax-2.1.tar.gz.
File metadata
- Download URL: python_syntax-2.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85211e0dba78b2f2115a685af9db52c4f86b98153545462c0f9cf286a7cb02d4
|
|
| MD5 |
086f614d2b3191f355dac6f21b7a978e
|
|
| BLAKE2b-256 |
c1f832f0d64a23113ea4f396429baed3e82279964e028a1b3a0ba00209e887d8
|
File details
Details for the file python_syntax-2.1-py3-none-any.whl.
File metadata
- Download URL: python_syntax-2.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5adc6caf13516b18c3ebef4a3d860b2f5a9f0e76bf36caa74ac1875e1e305b55
|
|
| MD5 |
5526dd16622c1d326f03721004ec9f4a
|
|
| BLAKE2b-256 |
02f8fb461754973941db25eed910ba2a008db282c733ceac8d4cae8dde67ef59
|