semvec/pypi-packages huggingface dataset:
authbox-setup-version 1.0.9
Read version variable from _version.py and make incremental version
Keywords: project,version,incremental,setup,django,python

# Authbox Setup Version

## Overview

Setup file of library has version parameter. This library help you
to generate version and increment version for next release.

### How to use?

Just type:
```
> pip install authbox-setup-version
```

### Example code:
```
> from authbox-setup-version import get_version, increment_version

> get_version('path/to/_version.py')
> 1.0.31

> increment_version('path/to/_version.py')
> # from 1.0.31 become 1.0.32
> increment_version('path/to/_version.py', major=1)
> # from 1.0.31 become 2.0.31
> increment_version('path/to/_version.py', minor=1)
> # from 1.0.31 become 1.1.31
```

file '_version.py' has been generate using other library, name 'incremental'
```
> pip install incremental
```

generate file '_version.py'
```
> python -m incremental.update <package_name> --create
```

### Management Commands:
'''
> # for get current version
> python manage.py getversion —rel_path <path/to/file/_version.py>
> python manage.py getversion —rel_path menu/_version.py
> 1.0.3

> # for increment version
> python manage.py nextversion —rel_path <path/to/file/_version.py> —package_name <package_name>
> python manage.py nextversion —rel_path menu/_version.py —package_name menu
> 1.0.4

'''

### Example setup.py:
```
from setuptools import setup, find_packages
from authbox_setup_version import get_version, increment_version

setup(
    name='package-name',
    version=get_version('/path/to/_version.py'),
    description='short desctiption',
    
    author='Iwan Setiawan',        
    author_email="suratiwan03@gmail.com",
    packages=find_packages(exclude=['tests', 'tests.*']),
            
    classifiers=[
        'License :: OSI Approved :: BSD License',
        'Intended Audience :: Developers',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
    ],            
)
```

## Testing:

Activate your virtual environment using 'venv' or 'pyenv' or up your choice.
And type this code in command prompt:
```
> git pull git@github.com:PROJECT-AUTHBOX/authbox-setup-version.git
> cd authbox-setup-version
> pytest

> result:
=========================== test session starts =======================
platform linux -- Python 3.8.18, pytest-8.0.2, pluggy-1.4.0
rootdir: /path/to/library/authbox_setup_version
collected 2 items                                                                                                                                    

tests/test_init.py ..                                            [100%]

============================= 2 passed in 0.37s =======================
```
SafeVaultDB 1.0.2
a free database library for python
Keywords: python,database

# Contributing
Contributions are welcome! If you'd like to contribute to SafeVaultDB, please submit a pull request to the [repository](https://github.com/RGB-CAT/SafeVaultDB-Python).

# License
SafeVaultDB for python is released under the GNU GPL 3 License.

# Usage
```python
from SafeVaultDB import SafeVault

# Initialize SafeVault with database path and password
vault = SafeVault(database_path="path/to/database.db", password="your_password")
```

## Installation

You can install SafeVaultDB for python using pip:
```bash
pip install SafeVaultDB
```

# Functions
## Initialization
### __init__(database_path:str, password:str)
### Initialize SafeVault object.

#### database_path (str): The path to the database file.
#### password (str): The password used to generate the encryption key.
## Adding Data
### add_data(key:str, value:str)
### Adds key-value pair to the encrypted database.

#### key (str): The key to add.
#### value (str): The value corresponding to the key.
## Updating Data
### update_data(key:str, value:str)
### Updates the value corresponding to the given key in the encrypted database.

#### key (str): The key to update.
#### value (str): The new value corresponding to the key.
## Retrieving Data
### get_data(key:str)
### retrieves data corresponding to the given key from the encrypted database.

#### key (str): The key to retrieve data for.
## Deleting Data
### delete_data(key:str)
#### Key (str): The key to delete
### Deletes data corresponding to the given key from the encrypted database.