Skip to main content

Template for general Python development.

Project description

python-samples

A series of Python samples are available spanning the categories below.

Sample Description
args_kwargs Overview of args & kwargs and their usage.
assert Overview of assert and its usage.
asychronous_programming Overview of Asynchronous Programming in Python.
classes Overview of Classes / Object-Oriented Programming (OOP) and their usage.
control_flow Overview of Control Flow and its usage.
counters Overview of Counters and their usage.
defaultdict Overview of defaultdict and its usage.
dictionaries Overview of Dictionaries and their usage.
dsa Data Structures and Algorithms (DSA).
exceptions Overview of Exceptions and their usage.
functions Overview of Functions and their usage.
hello_world A very simple Python program.
introduction A general introduction to the Python programming language.
iterables_and_generators Overview of Iterables & Generators and their usage.
list_comprehensions Overview of List Comprehensions and their usage.
lists Overview of Lists and their usage.
modules Overview of Modules and their usage.
randomness Overview of Randomness in Python.
regex Overview of Regular Expressions in Python.
sets Overview of Sets and their usage.
sorting Overview of Sorting and its usage.
strings Overview of Strings and their usage.
truthiness Overview of Truthiness in Python.
tuples Overview of Tuples and their usage.
type_annotations Overview of Type Annotations in Python.
virtual_environments Overview of Virtual Environments and their usage.
whitespace_formatting Overview of Whitespace Formatting in Python.
zip_argument_unpacking Overview of zip & Argument Unpacking in Python.

Script Execution

First, a local project environment needs to be created, then the project's modules will be installed into locally into a virtual environment.

  1. Clone the repository.

    git clone https://github.com/bellanov/python-template.git
    cd python-template
    
  2. Create a virtual environment.

    # Create Virtual Environment
    python3 -m venv .venv
    
    # Activate Virtual Environment
    
    # Linux
    source .venv/bin/activate
    
    # Windows
    .venv\Scripts\activate
    .venv\Scripts\Activate.ps1
    
    # Install all dependencies (runtime and development)
    pip install -e ".[dev]"
    
    # Deactivate Virtual Environment
    deactivate
    

Testing, Linting, and Formatting

Execute the tests to validate your installation.

Linux

scripts/test.sh

Windows

.\scripts\test.ps1

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

andy_python_template-0.2.0.tar.gz (101.9 kB view details)

Uploaded Source

Built Distribution

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

andy_python_template-0.2.0-py3-none-any.whl (127.1 kB view details)

Uploaded Python 3

File details

Details for the file andy_python_template-0.2.0.tar.gz.

File metadata

  • Download URL: andy_python_template-0.2.0.tar.gz
  • Upload date:
  • Size: 101.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for andy_python_template-0.2.0.tar.gz
Algorithm Hash digest
SHA256 81aa6ab584e8017aacb277625e6ea2eda9036c00a788921f30c6746a8befbdd8
MD5 b12337f0db357f593e4dcfa522cc7511
BLAKE2b-256 4f319d3287b889544036219fb698585f224c09daad93511c1ed40994c697164e

See more details on using hashes here.

Provenance

The following attestation bundles were made for andy_python_template-0.2.0.tar.gz:

Publisher: release.yml on bellanov/python-template

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file andy_python_template-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for andy_python_template-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d126215a8169a7265fdbd9cf776557ce0900fb8d3264c8bbc95cb022079bb9e2
MD5 ca29cc0352fe653094089f3e68a36036
BLAKE2b-256 ee97e58e1c1f6622746e0b5487f78dabda74d3d8ea27fa53f89be5617e5afcfe

See more details on using hashes here.

Provenance

The following attestation bundles were made for andy_python_template-0.2.0-py3-none-any.whl:

Publisher: release.yml on bellanov/python-template

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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