semvec/pypi-packages huggingface dataset:
simple-ip-tools 0.2.1
A simple IP address to country mapping tool

# simple_ip_tools

A small Python library for managing IP networks using the standard `ipaddress` module and efficient prefix lookups with `pytricia`.

## Features
- Add, remove, and list IPv4/IPv6 networks
- Fast longest‑prefix match queries
- Simple, lightweight API

## Requirements
- Python 3.6+
- pytricia
- ipaddress (built‑in on Python ≥3.3; installed via requirements for older versions)

## Installation
```bash
pip install -r requirements.txt
```
_or for local development:_
```bash
pip install -e .
```

## Usage
```python
import simple_ip_tools

simple_ip_tools.gen_db_from_maxmind_csv("ipdb.bin")
ipdb = simple_ip_tools.load_db("ipdb.bin")
simple_ip_tools.lookup_db(ipdb, "1.2.3.4")
simple_ip_tools.lookup_db(ipdb, "2a01:cb06:c200:3e51:103d:6143:42e0:3d48")
```

## Contributing
1. Fork the repo  
2. Create a feature branch (`git checkout -b feature/foo`)  
3. Commit your changes (`git commit -am 'Add foo feature'`)  
4. Push to the branch (`git push origin feature/foo`)  
5. Open a pull request

## License
MIT License – see [LICENSE](LICENSE) for details.
simple-sftp 0.1.3
Simple way to handle sftp with python

Simple way to handle sftp with python.
Provides the ability to upload and download directories. 

## Installation

install the latest stable version using `pip`

```shell
$ pip install simple-sftp
```

## Usage

```python
from simple_sftp.client import Client

ip = < FTP SERVER IP >
user = < FTP LOGIN USER >
password = < FTP LOGIN PASSWORD > 
PORT = < FTP CONNECT PORT > # not required. default 22

c = Client(ip, user, password)
```


## Functions

### upload

A function that uploads a specific directories to ftp server.

```python
remote_path = < FTP SERVER REMOTE DIR PATH >
local_path = < LOCAL DIR PATH >

upload(remote_path, local_path)
```

### download

A function that downloads a specific directories to ftp server.

```python
remote_path = < FTP REMOTE DIR PATH >
local_path = < LOCAL DIR PATH >

download(remote_path, local_path)
```


## Use console scripts

```shell
simple-sftp-cli --ip < FTP SERVER IP > --user < FTP LOGIN USER > --pwd < FTP LOGIN PASSWORD > --local < LOCAL_DIR_PATH > --remote < FTP SERVER REMOTE DIR PATH >
```

Example

```shell
simple-sftp-cli --ip 123.456.789.123 --user user --pwd 1234 --local /home/user/abc --remote /home/my/abc
```

## Third Party Libraries and Dependencies

- [paramiko](https://pypi.org/project/paramiko/)