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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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