Skip to main content

Package to write and hide tokens, passwords, secret keys, without having to put them in the code

Project description

Celare

A package to write and hide tokens, passwords, secret keys, without having to put them in the code!

How to use?

  1. Install the package using pip
pip3 install celare

or

pip3 install celare
  1. Import the celare module inside yor code
from celare import celare
from celare.read import read_tokens
  1. Run your code in the terminal and enter the name of the variable and the token for it, as in the example below
python3 your_code.py TOKEN t0k3n SECRET_KEY s3cr3tk3y
  1. A file called ".tokens.json" will be created in the root directory, where all tokens passed will be saved. If you are going to put your project on GitHub and need to hide this file, import the module that generates a gitignore template automatically or add the file's hiding information if it already exists
from celare import gitignore
  1. To update a saved token or add a new one, just repeat the step 3. if you only need to run the code, don't worry, you don't need to pass the token arguments every time you run, only when necessary

How to contribute?

  1. Clone this repository to make modifications Using HTTPS
git clone https://github.com/MariaEduardaDeAzevedo/celare.git

or usign GitHub CLI

gh repo clone MariaEduardaDeAzevedo/celare
  1. If you don't have modifications to do, just open an issue!

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

celare-0.0.2.tar.gz (3.5 kB view hashes)

Uploaded Source

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