semvec/pypi-packages huggingface dataset:
kv-azure-blob 0.1.9
KV API implementation on Azure Blob Storage
Requires Python: >=3.10

# Key-Value: Azure Blob

> Implementation of the `KV[T]` async Key-Value ABC, over Azure Blob Storage

([`kv-api`]((https://pypi.org/project/kv-api/)))

```bash
pip install kv-azure-blob
```

## Usage

### Raw

```python
from azure.storage.blob.aio import BlobServiceClient
from kv.azure.blob import BlobKV

bsc: BlobServiceClient = ...
kv = BlobKV[bytes](bsc)
await kv.insert('img1', b'...')
await kv.read('img2')
await kv.keys()
# etc.
```

### Pydantic-validated

```python
from dataclasses import dataclass

@dataclass
class User:
  username: str
  email: str

cc: ContainerClient = ...
kv = BlobKV.validated(User, cc)
await kv.insert('user1', User(username='user1', email='...'))
# etc.
```

## Containers

By default, keys are split across containers:

- `'users/path/to/user.txt'` goes to container `users`
- `'admins/path/to/admin.txt'` goes to container `admins`

You can customize this behavior by passing a `def split_key(key: str) -> tuple[str, str]` function.
- E.g. using `split_key=lambda key: ('container', key)` will always store in `'container'`
droppii 1.0.0
General purpose tool to process data from S3 and anonymize fields containing personally identifiable information.
Requires Python: >=3.11

- [PyPi-repository](https://pypi.org/project/droppii)  
- [Further-Documentation](https://samule-i.github.io/droppii)

# droppii
Droppii is a python module to process data from an AWS (S3) bucket and anonymize personally identifiable information **non-recursively**, returning data in the same format as provided.

Droppii intends to remove values from **top-level** columns only, any nested objects or string representations of objects will **not** be processed.

example with "email" as key:

|_id|email|contacts|
|---|---|---|
|1|***|{name: "Sue", email:exposed@email.com}|
|2|***|{name: "Alan, email:pii@email.com}|
___

# CLI usage
`droppii` can be used from the commandline by invoking the python module directly:  
`python -m droppii -i s3 uri -k key1 key2 ... >> output_file`
```
options:
  -h, --help            show this help message and exit
  -i s3 uri, --input s3 uri
                        s3 uri of file to be converted
  -k KEYS [KEYS ...], --keys KEYS [KEYS ...]
                        Keys to censor
```

# Quickstart
Install droppii from PyPi
```sh
pip install droppii
```

Most users will only need to use `droppii.censor`, which takes a JSON string in the format of `{s3_uri:"s3://...", private_keys:["key1", "key2"]}` and returns a file-like bytes in the same format as file at the s3 location provided.

Currently supports csv, json or parquet file format as input.
### usage example
```python
import json

import droppii
import boto3

json_params = json.dumps({
    "s3_uri" = "s3://your-bucket/your_file.csv",
    "private_keys" = ["name", "address", "email_address"]
})
anonymized_bytes = droppii.censor(json_params)

s3client = boto3.Client("s3")
s3client.put_object(
    Bucket = "your-destination-bucket",
    Key = "anonymized_file.csv",
    Body = anonymized_bytes
)
```
codegyan 1.0.0
A Python library to interact with the Codegyan API
Requires Python: >=3.6
Keywords: codegyan, api, codex, client, sdk, prathmeshyelne

# Codegyan Python Library

A Python library to interact with the Codegyan API.

![Language](https://img.shields.io/badge/python-3.7%2B-blue?logo=python&style=flat-square)
![PyPI - Downloads](https://img.shields.io/pypi/dm/codegyan)
![PyPI - License](https://img.shields.io/pypi/l/codegyan)
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/Codegyan-LLC/codegyan-python/total)


## Installation

```bash
pip install codegyan
```
## Usage
Before using the Pakage, you need to obtain an API key and client ID from Codegyan. Follow these steps to get your API credentials:

1. **Sign Up/Login**: If you don't have an account, sign up for a [Codegyan account](https://codegyan.in/account/signup.php). If you already have an account, log in to your dashboard.

2. **Get Credentials**: Once logged in, navigate to the [Developer Console](https://developer.codegyan.in/) or API settings in your account dashboard. Here, you will find your API key and client ID. Copy these credentials and use them when initializing the Pakage in your code.

Here's an example of how to initialize the npm pakage with your API key and Client ID:

```python
from codegyan import Codegyan

# Define your API credentials
api_key = "YOUR API KEY"
client_id = "YOUR CLIENT ID"

# Initialize the Codegyan client
client = Codegyan(api_key, client_id)

# Define the language and code to be compiled
lang = "python"
code = 'print("Hello, World!")'

# Use the Compiler API to compile the code
result = client.compilerApiClient.compile(lang, code)
print(result)

```
Replace **YOUR_API_KEY** and **YOUR_CLIENT_ID** with your actual API key and Client ID provided by Codegyan. Pass the code you want to compile to the compile function.


## Tests
To run the unit tests, use the following command:

```
python -m unittest discover tests
```
Make sure to replace tests with the actual path to your test directory if it's different.

## Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.

## License
This project is licensed under the **[MIT license](https://opensource.org/licenses/MIT)**. See the LICENSE file for details.