Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_syntax-2.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_syntax-2.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file python_syntax-2.2.tar.gz.

File metadata

  • Download URL: python_syntax-2.2.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

Hashes for python_syntax-2.2.tar.gz
Algorithm Hash digest
SHA256 ba500548708ed7d64e56b7049d0d8a16caa1a3398b6028db61c3e8f960f00a20
MD5 ca171adae3b97854207352b05335c341
BLAKE2b-256 9e7926d54f62b4e0b254a0c798d4b269294dea6272615889334134427da4da5e

See more details on using hashes here.

File details

Details for the file python_syntax-2.2-py3-none-any.whl.

File metadata

  • Download URL: python_syntax-2.2-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

Hashes for python_syntax-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6eab515fdfce71b0ad2f62314a8fe4823f02c4ed9e62c90b129fe482eee09ed8
MD5 cb18713d3066aafe244e7074607f60f7
BLAKE2b-256 7b304494b1ceb2754e29f41f7d6e3df89319138b1dc855a9ea2f0fe7770ef307

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page