semvec/pypi-packages huggingface dataset:
query-client-silverbullet-s 1.0.3
SA-MP API client for python supporting both query and RCON APIs
License: MIT

# GTA SA-MP client 

## RCON and query client library for  Python

A modern Python library for querying and managing SA-MP servers.
 
Supported Python version 2.7, 3.4, 3.5 and 3.6

### Installation
```bash
pip install samp-client-es
```

### Usage
The library can be easily interfaced using a single `SampClient` class:

```python
from samp_client.client import SampClient

with SampClient(address='localhost', port=7777) as client:
    print client.get_server_info()
```

The library also allows you to run RCON commands as well as queries:
```python
from samp_client.client import SampClient

with SampClient(address='localhost', port=7777, rcon_password='password') as client:
    client.rcon_cmdlist()
```

Query and RCON responses are parsed into native Python structures:
```python
from samp_client.client import SampClient

with SampClient(address='localhost', port=7777, rcon_password='password') as client:
    info = client.get_server_info()
    print info
    # ServerInfo(password=True, players=9, max_players=100, hostname='Convoy Trucking', gamemode='Convoy Trucking 3.1.1', language='English')
    print info.gamemode
    # 'Convoy Trucking 3.1.1'
    print client.rcon_get_hostname()
    # ServerVar(name='hostname', value='Convoy Trucking', read_only=False)
    print client.rcon_players()[0].ping
    # 26
```


### Examples
Folder `example/` contains usage example of the library

### Running tests
To run tests:
```bash
python -m unittest discover -v
```
envmanager 8.1.8
Validated environment variable management
License: MIT
Keywords: environment,variables,parsing,config,configuration,envvars

# Welcome to Envmanager for Python Docs

Envmanager is a reliable tool to validate and parse environment variables by providing a typing schema, in the most efficient way.

- Validate and parse (or cast) your environment variables on the fly

- Scope variables to the right environment (Prod, Dev, Staging, ...) all in one place.

- Ensure no collisions between separate environment variable files


Here is how you would use this library:

1 - Define your schema as an enum or dictionary.    
2 - Load and validate *.cfg files using the loader function or decorator.   
3 - Reliably retrieve the expected object type upon retrieval.  


**Checkout the [official documentation](https://github.com/arianseyedi/python-envmanager) of Envmanager!**