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-1.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-1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python_syntax-1.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-1.2.tar.gz
Algorithm Hash digest
SHA256 99c66c7885de6e9dd1c35d54146bdd0dd1715e97b3e2b36491ee12af7cb4fae5
MD5 f549cc1ce59e64e55596a12f39a81bcb
BLAKE2b-256 ad713c8dffd206989cb96a77b703ef56465e7ed74e2dabf0e715d83877ce6da9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_syntax-1.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-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5dba6d2f67e3cdd58241aae42c8c2b1293f28bfb4692adbc66ffefcc58c061aa
MD5 683e9a5a999904917d4a0605ee7818b3
BLAKE2b-256 0c896571a2eb1a50958c3c36c3f7766c879f5a05c5d3b1ecacb8d08a4150dc4a

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