Skip to main content

A small program for storing and managing your code snippets.

Project description

Why CodeSnip

Its completely free, open source package which helps you while you code. It is used to save code snippets in one place and you can access them any time using your terminal/command prompt.

Usage

Suppose I have a function which is used to retrieve items from our database and I use that a lot.

function xyz(){ ... ... }

In such a scenario, I will copy the function and in my terminal

To save

I will write: codesnip -s "database retrieve items firebase" This code will save the function you copied. It creates a folder named as database which contains snippets you saved for working on database.

If you want to fetch your function

codesnip -f "database retrieve" or codesnip -f "database firebase" or any combination of keys you passed. (NOTE folder name should always be present, in this case its database). This command copies the function to your clipboard, and if multiple functions are found, displays their keys on the terminal to choose from.

Print existing folders

codesnip -p

Print all the items in a folder

codesnip -f "database" (KEEP IN MIND, database is folder we created. It can be named anything and you can have any number of folders. This is just used for the sake of example.)

Export our codesnippets for others

codesnip -e (Exports to current working directory)

Import from current working directory

codesnip -ic (NOTE DO NOT CHANGE NAME OF CODESNIP DATA FILE. IT SHOULD BE OF SAME NAME AS IT WAS WHEN EXPORTED.)

ALSO, when updating package you have to export the data file and then update. After update is complete you need to import the data file again.

To delete any code snippet in your folder

codesnip -d "database retrieve"

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

codesnip-1.0.6.tar.gz (5.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

codesnip-1.0.6-py3.7.egg (9.8 kB view details)

Uploaded Egg

codesnip-1.0.6-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file codesnip-1.0.6.tar.gz.

File metadata

  • Download URL: codesnip-1.0.6.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for codesnip-1.0.6.tar.gz
Algorithm Hash digest
SHA256 c7e909811245feee5799f26501daf85636bab9e86dffaccd6725f0481fc90a44
MD5 cb8a546c23126326728ce46afed7475a
BLAKE2b-256 365ae8943580cf844f624d70b1304e7971762ef391fba9f813c0a2da38aa349a

See more details on using hashes here.

File details

Details for the file codesnip-1.0.6-py3.7.egg.

File metadata

  • Download URL: codesnip-1.0.6-py3.7.egg
  • Upload date:
  • Size: 9.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for codesnip-1.0.6-py3.7.egg
Algorithm Hash digest
SHA256 3fe7f2dfe3c9790842fbcb08608f5c5130c4f3bf409db9a7536837c6c252e88b
MD5 c60c77498c6c6215b7cbe0e277359fe6
BLAKE2b-256 1e73c69121de8da6f9efc36ddb38ecbe1863ad9a1af2b3095b1e7ef79122d5f1

See more details on using hashes here.

File details

Details for the file codesnip-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: codesnip-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for codesnip-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 81101341370a52dbc10ce962da627d8e256fd702a292c90da35a259e5df0d566
MD5 043a3e494da7408ef464adc846ba4e7c
BLAKE2b-256 852feabe1c245695f1c93a356a4954cfc5be5cc89ea9f48a62e9a97b60d4c2c0

See more details on using hashes here.

Supported by

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