Skip to main content

This template provides a complete setup for Python projects with automated GitHub repository creation and PyPI package publishing capabilities.

Project description

Replit Info API Logo

Python Project Template with GitHub and PyPI Integration

This template provides a complete setup for Python projects with automated GitHub repository creation and PyPI package publishing capabilities.

Try it on Replit

Key Features

  • Automated GitHub repository setup
  • PyPI package publishing workflow
  • Code formatting with Black, Ruff, and isort
  • Code quality checks with Flake8 and Pyright
  • Test coverage with Pytest
  • Project archiving functionality
  • Comprehensive workflow automation

Core Scripts

prepare_environment.py

The main setup script that:

  1. Configures project structure
  2. Sets up GitHub repository
  3. Installs dependencies
  4. Creates necessary configuration files

Key components of the script:

  • Package management functions
  • GitHub repository setup
  • Project file generation
  • Version control initialization

Configuration Dictionary Structure

The script uses a comprehensive project_info dictionary that contains:

project_info = {
    "templates": {
        # File templates for pyproject.toml, setup.py, etc.
    },
    "classifiers": {
        # PyPI project classifiers
    },
    "setup": {
        "paths": {
            # Project file paths configuration
        },
        "classifiers": {
            # Project-specific classifiers
        },
        "version": "0.1.1",
        "description": "",
        "user_config": {
            # User information
        },
        "urls": {
            # Project URLs
        },
        "requirements": [
            # Project dependencies
        ],
        "nix_packages": [
            # Nix environment packages
        ],
        "required_packages": [
            # Essential packages for setup
        ]
    }
}

Other Utility Scripts

  • pypi_upload.py: Handles PyPI package versioning and publishing
  • create_zip.py: Creates project archives

Getting Started

  1. Ensure environment variables are set:

    • GITHUB_TOKEN
    • REPLIT_TOKEN
    • PYPI_TOKEN (for publishing)
  2. Run the prepare environment script:

    python scripts/prepare_environment.py
    
  3. Use the Tools menu in Replit to run workflows for:

    • Code formatting
    • Testing
    • Package publishing
    • Project archiving

Project Structure

├── scripts/          # Utility scripts
├── src/             # Source code
├── tests/           # Test files
├── logs/            # Log outputs
├── zip/             # Archive storage
└── assets/          # Project assets

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

gitpypi_3_12-0.1.7.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

GitPyPi_3.12-0.1.7-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file gitpypi_3_12-0.1.7.tar.gz.

File metadata

  • Download URL: gitpypi_3_12-0.1.7.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.10

File hashes

Hashes for gitpypi_3_12-0.1.7.tar.gz
Algorithm Hash digest
SHA256 cad88fe47452689d4a6c9ea94274723a7dcac58f886527f1d50663a88c7a1469
MD5 d2e2e59d173e4b1cac2b13cbe3ff3232
BLAKE2b-256 e7a0e728dcd8a91c2f05fe62338f32519192e178a93895b35828ff0c137bac40

See more details on using hashes here.

File details

Details for the file GitPyPi_3.12-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: GitPyPi_3.12-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.10

File hashes

Hashes for GitPyPi_3.12-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fb4c7b33d8cbe9dd7f5cd7162baac4b52dc058308b656d8d9bf03c7c5ee8b102
MD5 fd5d7cc288fa45b5deead11f6eb73540
BLAKE2b-256 b32f56185defc36467211b146634f924be6ea39dfe8c9e4f228b15c2f24ce5c3

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