semvec/pypi-packages huggingface dataset:
n4s 2.4.3
Collection of useful methods by Need4Swede
License: MIT
Requires Python: >=3.6

<div align="center">

<img src="logo.png" width="25%" height="25%" width="400px">

**When you feel the need...for an awesome Python package!**

______________________________________________________________________

<p align="center">
  <a href="https://need4swede.net">Documentation</a> •
  <a href="#installation">Installation</a> •
  <a href="#contributing">Contributing</a>
</p>

[![PyPI Status](https://badge.fury.io/py/n4s.svg)](https://badge.fury.io/py/n4s.svg)
[![PyPI Status](https://pepy.tech/badge/n4s)](https://pepy.tech/project/n4s)
[![ReadTheDocs](https://readthedocs.org/projects/mlsync/badge/?version=latest)](https://need4swede.netlify.app/)


</div>

## Installation

```sh
pip install n4s
```

### What is n4s?

This library isn't going to revolutionize how you use Python, but it will save you some money on hair loss treatments and ibuprofen. This package is an amalgamation of years spent writing Python code and trying to simplify certain common tasks to make them far more readable.

Whether you're new to Python or a veteran snake charmer, n4s is here to make your code cleaner, more intuative and easier to write.

### Why use n4s?

Because writing Python code shouldn't be hard or tedious - regardless of experience and skill level.
This library expedites basic Python functionality, so you can focus on the more complex modules of your applications. This will help you save dev time, make your code cleaner and elminiate redundancy. 

## Contributing

If you would like to contribute, please feel free to open an issue or pull request. Or, if you have any feedback or suggestions, please [contact me](mailto:contact@mafshari.work) directly. I would be happy to hear from you!
keyenv 0.1.0
Store and load secret key-value pairs from a local cache
License: MIT
Requires Python: >=3.8,<4.0
Keywords: api,keys,env,cache,configurations,python

# python-keyenv: Your local, safe keyring 🕵️‍♂️

<!-- ![Tests](https://github.com/andreakiro/python-keyenv/actions/workflows/tests.yml/badge.svg) -->

Go-to solution for effortless secret keys management. This lib/tool allows you to securley store (once for all!) and swiftly load secret key-value pairs from a local cache using dotenv file logic. Now, accessing your favorite API keys across all your projects is as simple as saying hello.

## Usage

### Save your keys and interact with cache

Run this anywhere in your computer to safely store a key on disk
```bash
$ keyenv -n {service name} -sk {secret key}
```

You can of course update a service's key anytime, or list all services
```bash
$ keyenv update -n {service name} -sk {new secret key}
$ keyenv list # this will list all service names
```

You can also provide path to a `json` file to store/update commands
```bash
$ keyenv store -p {path/to/json}
$ keyenv update -p {path/to/json}
```

You could also perform same actions from a Python script if needed
```python
import keyenv as kv
kv.store(service="secret")
kv.update(service="secret")
kv.store("path/to/json/keys")
print(kv.list())
```

### Load your keys across your Python projects

You can then access all of your keys with `keyenv.get(service)` in your Python code 🥳

```python
import langchain.llms as llms
import keyenv as kv

os.environ["OPENAI_API_KEY"] = kv.get("openai")

llm = llms.OpenAI()
llm_chain = LLMChain(prompt="Hi my name is", llm=llm)
llm_chain.run()
```

## Installation

🚨 To install `python-keyenv`, use pip: ```pip install python-keyenv```.