Skip to main content

Upload Python files in a directory to a GitHub Gist.

Project description

Code2Gist

Code2Gist is a command-line tool for uploading all Python files in a directory (and its subdirectories) to a GitHub Gist.

Installation

Install the package using pip:

pip install code2gist

Usage

To use Code2Gist, open a terminal window and navigate to the directory containing the Python files you want to upload. Then, run the following command:

code2gist .

This will upload all Python files in the current directory and its subdirectories to a new GitHub Gist.

If you want to specify a different directory, use the directory's path as the argument:

code2gist /path/to/directory

Environment Variables

Code2Gist uses the GITHUB_TOKEN environment variable for authentication with the GitHub API. You must set this environment variable to your GitHub token for the script to work.

License

Code2Gist is licensed under the GNU General Public License v3.0.

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

code2gist-0.0.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

code2gist-0.0.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file code2gist-0.0.1.tar.gz.

File metadata

  • Download URL: code2gist-0.0.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for code2gist-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e2ed1d63e9c602c63d8c0f18a875ad836c87d68cb6805b47f6a6bfe4e27888b3
MD5 878c0e4e609cbb6b3f7101829348a025
BLAKE2b-256 d1924985a594e03015eca9e6901563f3b10d1ae0065dac44fd029bfd58ca9af7

See more details on using hashes here.

File details

Details for the file code2gist-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: code2gist-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for code2gist-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ba03235f3664f2c55f6b82c2c10fa8584c02c5c86d349dec6f8c40df5873e7e
MD5 98850ac00562af66502b7e67891aa28e
BLAKE2b-256 75643c408a1365e2359ce58934dbdfc2915fe78610f0abeb5837f8852bf8ed9f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page