Skip to main content

Code snippet management tool

Project description

Code snippet management tool

Clone repository

git clone https://github.com/rcook/sniptool.git

Set up Python virtual environment

script/virtualenv

Dev-install main script into virtual environment

script\env pip install -e .

This will allow edits to the scripts to be picked up automatically

Run main script in virtual environment

script/env sniptool --version

Build package

script/env python setup.py build

Test package

script/env python setup.py test

Upload package

script/env python setup.py sdist upload

Install package into global site packages

python setup.py install --record files.txt

Note that this calls the python global Python instead of the Python in the project’s virtual environment.

Notes

Various package properties are defined in sniptool/__init__py:

  • __project_name__

  • __version__

  • __description__

When publishing a new build of the package, ensure that __version__ is incremented as appropriate.

User-level installation

pip install --user sniptool

This will perform a user-level installation of the package. The scripts will be placed at:

  • Windows: %APPDATA%\Python\Scripts

  • Linux/macOS: $HOME/.local/bin

Global installation

pip install sniptool

This will perform a global installation of the package and should add the script to PATH.

Licence

Released under MIT 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

sniptool-0.4.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file sniptool-0.4.tar.gz.

File metadata

  • Download URL: sniptool-0.4.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sniptool-0.4.tar.gz
Algorithm Hash digest
SHA256 ce008c7b5fd17ba8140c8bd40a7ac3f5061597be124e2972226dc94ba8f6fac4
MD5 17356e24f1c9ff0b20d9561142f71573
BLAKE2b-256 34d8bfff4f29f43692f677fdc521646caee2f5e66e97028a74e3dc3fc1515cdf

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