semvec/pypi-packages huggingface dataset:
relayer-python-sdk 0.2.5
Python SDK for interacting with the Relayer WS API
Requires Python: <4.0,>=3.8

# Relayer-Python-SDK [![CC BY-NC-SA 4.0][cc-by-nc-sa-shield]][cc-by-nc-sa]

> <p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://github.com/Yggdrasil-Protocol/Relayer-Go-SDK">Relayer-Go-SDK</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://github.com/Yggdrasil-Protocol">Yggdrasil-Protocol</a> is licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1" alt=""></a></p>

[cc-by-nc-sa]: http://creativecommons.org/licenses/by-nc-sa/4.0/
[cc-by-nc-sa-shield]: https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg

# Example

Here is an example of how to use the Relayer-Python-SDK:

```python
import asyncio
from relayer_python_sdk.ws import RelayerWS
from relayer_python_sdk import events

feedIDs = ["SPOT:BTC_USDT", "SPOT:ETH_USDT"]
ws = RelayerWS(feedIDs)


@ws.on_data_event
async def on_data_event(event: events.DataFeed):
    print("Data Feed Event:", event)


@ws.on_info_event
async def on_info_event(event: events.SubscriptionMsg):
    print("Info event:", event)


async def main():
    sub_task = asyncio.create_task(ws.connect())

    await asyncio.sleep(10)
    await ws.close()

    await sub_task


if __name__ == "__main__":
    asyncio.run(main())
```

This code will subscribe to the data feeds `SPOT:BTC_USDT` and `SPOT:ETH_USDT` and print the price events and info events.
Qdraco 1.1
A library for validating user inputs to prevent common security vulnerabilities.
Requires Python: >=3.6

# QDraco

QDraco is a Python library designed to validate user inputs against common security vulnerabilities. This library helps in preventing various types of attacks such as SQL Injection, Cross-Site Scripting (XSS), Command Injection, Path Traversal, and others. It is a valuable tool for developers looking to enhance the security of their applications by validating potentially malicious inputs.


## Features

SQL Injection Prevention: Detects and prevents SQL injection attempts.
XSS (Cross-Site Scripting) Prevention: Identifies and blocks XSS attack patterns.
Command Injection Prevention: Protects against shell command injections.
Path Traversal Prevention: Safeguards against attempts to access unauthorized files and directories.
Remote and Local File Inclusion (RFI/LFI) Prevention: Blocks attempts to include remote or local files.
Remote Code Execution (RCE) Prevention: Detects patterns that could lead to code execution on the server.
Open Redirect Prevention: Prevents open redirect attacks.
CSRF (Cross-Site Request Forgery) Prevention: Identifies potential CSRF attack vectors.





## Installation
To install QDraco, you can use pip:

```bash
pip install QDraco
```

### Usage


Here is an example of how to use QDraco to validate different types of user inputs:

```python
from QDraco import InputValidator

validator = InputValidator()

# Example inputs to validate
sql_input = "SELECT * FROM users WHERE id = 1"
xss_input = '<script>alert("XSS")</script>'
command_input = "rm -rf /"
path_input = "../../etc/passwd"
csrf_input = '<form action="submit.php" method="post"><input type="hidden" name="csrf_token" value="..."></form>'
rfi_input = "http://example.com/shell.txt"
lfi_input = "../../../../../etc/passwd"
rce_input = "system('ls');"
open_redirect_input = "window.location='http://evil.com';"

# Validate inputs
print("SQL Injection Safe:", validator.validate_sql_input(sql_input))
print("XSS Safe:", validator.validate_html_input(xss_input))
print("Command Injection Safe:", validator.validate_command_input(command_input))
print("Path Traversal Safe:", validator.validate_path_traversal(path_input))
print("CSRF Safe:", validator.validate_csrf_input(csrf_input))
print("RFI Safe:", validator.validate_rfi_input(rfi_input))
print("LFI Safe:", validator.validate_lfi_input(lfi_input))
print("RCE Safe:", validator.validate_rce_input(rce_input))
print("Open Redirect Safe:", validator.validate_open_redirect_input(open_redirect_input))

```


### License


This project is licensed under the MIT License. See the LICENSE file for more details.

### Contact

If you have any questions or feedback, please feel free to reach out.

### Contributing

Contributions to QDraco are welcome! Whether it's a bug report, new feature, correction, or any other type of contribution, please feel free to open an issue or submit a pull request on the GitHub repository.
spothot 2.7
A package to set up Raspberry Pi as a Wi-Fi hotspot
Requires Python: >=3.6


![Logo](https://github.com/skshadan/SpotHot/blob/main/images/spothot.png?raw=true)


# Spothot
Spothot is a Python package that transforms your Raspberry Pi into a Wi-Fi hotspot with an intuitive Flask web interface. Users can easily set up and manage the hotspot directly through their web browser, making it a perfect solution for portable Wi-Fi needs or network testing.




## Features
- Simple Setup: Quickly configure your Raspberry Pi as a Wi-Fi hotspot.
- Web Interface: Manage hotspot settings directly through an easy-to-use web interface.
- Flexible Configuration: Specify the SSID and password for your hotspot via command line arguments.


## Installation


```bash
 sudo apt-get update
 sudo apt-get upgrade
```
```bash
  sudo apt-get install dnsmasq hostapd python3-flask dhcpcd5 iptables
```
```bash
 pip install spothot
```
or

```bash
 sudo apt-get install dnsmasq hostapd python3-flask dhcpcd5 iptables && sudo pip install spothot
```












    
## Usage
To set up the Wi-Fi hotspot, use the following command:
### Replace YourSSID and YourPassword with your desired network name and password.
```bash
  sudo spothot --ssid YourSSID --password YourPassword
```


## Running on Boot
To ensure that Spothot runs on boot, add the following line to your /etc/rc.local file before the exit 0 line:
```bash
  sudo nano /etc/rc.local
```
```bash
  sudo spothot --ssid YourSSID --password YourPassword &
```

![Logo](https://github.com/skshadan/SpotHot/blob/main/images/wifi.png?raw=true)






## Facing Any Issues?

Contributions are welcome! Please feel free to submit a Pull Request or open an issue.

## License

[MIT](https://choosealicense.com/licenses/mit/)


## fin.
periplus-client 0.1.0a1
A client library for connecting with Periplus.
Requires Python: >=3.8

# Periplus Client Library

![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)

## Introduction

The Periplus client library provides an interface to interact with a Periplus instance. Periplus is a remote vector database cache. This client library allows you to initialize, train, add data, load data, perform searches, and evict data within Periplus. For more information on Periplus, please refer to the [README.md](../../README.md).

## Installation

### Prerequisites

- Python 3.8+
- `struct` and `collections` libraries (included in the Python standard library)

### Installation via pip

You can install the Periplus client library using pip:

```bash
pip install periplus-client
```

## Quick Start

Here’s a quick example of how to use the Periplus client library to interact with the Periplus service:

```python
from periplus_client import Periplus

# Initialize the Periplus client
client = Periplus(host='localhost', port=8080)

# Initialize the Periplus instance
await client.initialize(
    d=128,
    db_url='http://localhost:5000/proxy',
    options={'n_records': 500000, 'use_flat': False}
)

# Train the instance with sample data
await client.train(training_data=[[0.1, 0.2, ..., 0.128]])

# Add data to the instance
await client.add(ids=['vec1', 'vec2'], embeddings=[[0.1, 0.2, ..., 0.128]])

# Perform a search
results = await client.search(k=5, xq=[[0.1, 0.2, ..., 0.128]])
print(results)
```

## Documentation

### API Reference

For a complete API reference, including details on all classes, methods, and their usage, please refer to the [API Reference](docs/api_reference.md).

## Contributing

Contributions are welcome! If you'd like to contribute to the project, please follow these steps:

1. Fork the repository.
2. Create a new branch: `git checkout -b feature/your-feature-name`.
3. Make your changes.
4. Commit your changes: `git commit -m 'Add some feature'`.
5. Push to the branch: `git push origin feature/your-feature-name`.
6. Open a pull request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---