Skip to main content

A simple tool to upload files to GitHub repositories

Project description

EZGitUp

A simple command-line tool to upload files to GitHub repositories.

Installation

pip install ezgitup

Features

  • Upload single or multiple files to GitHub repositories
  • Support for wildcard patterns (e.g., *.json, test_*.py)
  • Flexible repository specification:
    • Command-line option (--repo/-r)
    • Simple owner/repo format
    • GitHub SSH URLs
    • GitHub HTTPS URLs
  • Target directory support (--dir/-d)
  • UUID support for unique filenames (--uuid/-u)
  • Environment variable configuration
  • Interactive mode for user input
  • Progress tracking for multiple file uploads
  • Version checking

Configuration

Environment Variables

  • GITHUB_TOKEN: Your GitHub personal access token
  • EZGITUP_DEPO: Default repository (format: owner/repo or full URL)

Command-line Usage

# Basic usage
ezgitup file.txt

# Upload multiple files
ezgitup file1.txt file2.txt

# Use wildcards
ezgitup *.txt

# Specify repository
ezgitup -r owner/repo file.txt
# or
ezgitup --repo owner/repo file.txt

# Specify target directory
ezgitup -d docs file.txt
# or
ezgitup --dir docs file.txt

# Add UUID to filenames
ezgitup -u file.txt
# or
ezgitup --uuid file.txt

# Check version
ezgitup --version

# Combined options
ezgitup -r owner/repo -d docs -u *.txt

The tool will use the following priority for repository information:

  1. Command-line argument (--repo/-r)
  2. Environment variable (EZGITUP_DEPO)
  3. Interactive prompt

If no files are specified, the tool will prompt you to enter file paths interactively. Wildcards are also supported in interactive mode.

Interactive Mode

If you don't specify any files or the EZGITUP_DEPO environment variable, the tool will guide you through the process:

ezgitup

Requirements

  • Python 3.6 or higher
  • requests library

License

Apache-2.0 License

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

ezgitup-0.2.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

ezgitup-0.2.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file ezgitup-0.2.2.tar.gz.

File metadata

  • Download URL: ezgitup-0.2.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ezgitup-0.2.2.tar.gz
Algorithm Hash digest
SHA256 da921419949a7c9793288fe49465475a35f72c2d27f5a14b5c13f59ddd1bfd07
MD5 c2d8c4de9a45bfe9d6e7d9b3990fa627
BLAKE2b-256 b54ceaebefb6943a4d0a714029c75f068f40fe58f12e1ecc130b920f1193cb5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for ezgitup-0.2.2.tar.gz:

Publisher: pypi.yml on keceli/EzGitUp

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

File details

Details for the file ezgitup-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: ezgitup-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ezgitup-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5721ae4d1e9262c3dc5de4cac0b2c2091c27d60c5eaa68918231c9859b63acc4
MD5 144c22015007d90f435db72d6c99756a
BLAKE2b-256 36792b3dc1878a5a1e2afdc2ae810bc55f51edbec5d83f1b9a107d1bc50e1126

See more details on using hashes here.

Provenance

The following attestation bundles were made for ezgitup-0.2.2-py3-none-any.whl:

Publisher: pypi.yml on keceli/EzGitUp

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