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.2.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

code2gist-0.0.2-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: code2gist-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c06e2cf9e6c517ed924b482d36acedd4fd81ea3c50568085ce7428bc4640b090
MD5 dedbedab3b2c737818608a4b5b7cb811
BLAKE2b-256 f76e9ec54107b531e0c6113d36187280769a2f2a2f8e6d88c540334a4ae5c5e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code2gist-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0be41c80f37680efa8cd1100d16438a58a65be754b423eaf65488dcbeb3af9b5
MD5 868e37798224a2988e2f79e9f99a4f62
BLAKE2b-256 9e1aeb37f10dc1e5fe977a5af9f0f60fe4e88584b28f738b0fc2a130b3025976

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