Skip to main content

Upload Python files in a directory to a GitHub Gist.

Reason this release was yanked:

not functional

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: code2gist-0.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 bcbf07dedf565b786b3fe4959b4a48fca32e1315ef19bbb09ab30ba21d600d29
MD5 4f84a43ae8c43c343efea346e84cf169
BLAKE2b-256 65aed8eb3d8853f06fad0b56d49ed1438e43f52801280fcdeb59f9c25b06f60a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code2gist-0.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48340d6fdc27cd559d95d141b12ba79fa78f3dddb4bc9ac6e3db31dd2389e9fe
MD5 15998f81ffd5d88932c6e45a3de8e927
BLAKE2b-256 ae079a9d637601d10403e219e8fc6e26ad90135805014bcd65d1fb8f0c57e908

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