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.4.tar.gz (9.5 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.4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ezgitup-0.2.4.tar.gz
  • Upload date:
  • Size: 9.5 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.4.tar.gz
Algorithm Hash digest
SHA256 944aa627eccb66f9adab1a7fb82862533b4759342b3ec6498c820eba4134f1cd
MD5 74875d54708215aa73a66d983379742f
BLAKE2b-256 5eae74c1027f7ffd97a83a2dbaa1b922217b9132f3140efc845b8c0c03f111be

See more details on using hashes here.

Provenance

The following attestation bundles were made for ezgitup-0.2.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: ezgitup-0.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7c75670f91af77c16fbd25ce54e48fec30674164d97c76d5f3ad9c00fcb6f17b
MD5 c1757f293fb6727c854cf0adc3853115
BLAKE2b-256 08adfc7f94f9996a9cbb865c4ed58fd3979e1694bf66482d680dff107492b8c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for ezgitup-0.2.4-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