semvec/pypi-packages huggingface dataset:
pysypt 1.0.4
Python wrapper around jasypt for encrypting and decrypting strings using the BouncyCastle Provider.
Requires Python: >=3.11

# pysypt

Python wrapper around [jasypt](http://www.jasypt.org/) for encrypting and decrypting strings using the BouncyCastle
Provider. The corresponding java code is located in `src/java/encryption-app`

## Usage

```python
from pysypt import StringEncryptor

algorithm = "PBEWITHSHA256AND256BITAES-CBC-BC"
key = "secret_key"
message = "my secret message"

enc = StringEncryptor(algorithm=algorithm, key=key)

encrypted = enc.encrypt(message)
print(encrypted)
# output
# pmwLKcnp8KP8jHDUf9r21Pbr8L/jQcKeOlcIrLosYSWpL6DhCY+APpSlPRwGl1EB

print(enc.decrypt(encrypted))
# output
# my secret message
```

## Build package from source

In the project root you can find `build_pypi_package.sh`, which takes care of first building the java app, then bundling
it together with the python code into a pypi package. The resulting package can be found in the `dist/` directory.

## Publish to PyPi using twine

When in a virtual python environment:

```shell
pip install build twine bumpver

bumpver update < --major | --minor | --patch >

./build_pypi_package.sh

twine check dist/*
twine upload dist/*
```
openweatherapi-sdk 0.4
A simple SDK for interacting with the OpenWeatherMap API
Requires Python: >=3.6

# Weather SDK

A simple SDK for interacting with the OpenWeatherMap API.

## Installation

You can install the package using pip:

pip install weather_sdk


# Usage
* First, initialize the SDK with your OpenWeatherMap API key:
from weather_sdk.sdk import WeatherSDK

sdk = WeatherSDK(api_key="YOUR_API_KEY_HERE")

* Get Weather by City Name
You can retrieve weather data for a city by its name:

data = sdk.get_weather_by_city_name("London")
print(data)


* Get Weather by Coordinates
You can retrieve weather data for a location using its latitude and longitude coordinates:

data = sdk.get_weather_by_coordinates(lat=51.51, lon=-0.13)
print(data)

* Replace "YOUR_API_KEY_HERE" with your actual OpenWeatherMap API key.


* Make sure to replace `"YOUR_API_KEY_HERE"` with your actual OpenWeatherMap API key in the usage examples.