semvec/pypi-packages huggingface dataset:
pandas-context 0.0.2
It includes a context method to your pandas objects.
Requires Python: >=3.5, <4

# pandas-context

Provides context to your data, allowing you to make complex slicing around a
specific index.

Here's an example:

```python
>>> import pandas as pd
... import numpy as np
... import pandas_context
... n = 1000   # long data
... data = np.random.randn(n)
... index = pd.date_range("19990101", periods=n)
... df = pd.DataFrame(data=data, index=index)
... date = index[50]

>>> date
Timestamp('1999-02-20 00:00:00', freq='D')

>>> df.context(date)
                   0
1999-02-18  1.086181
1999-02-19  0.174156
1999-02-20 -0.762305  # <-----
1999-02-21 -0.110677
1999-02-22 -0.766751

>>> df.context(date, around=1)
                   0
1999-02-19  0.174156
1999-02-20 -0.762305  # <-----
1999-02-21 -0.110677

>>> df.context(date, pre=3, post=1)
                   0
1999-02-17 -0.809791
1999-02-18  1.086181
1999-02-19  0.174156
1999-02-20 -0.762305  # <-----
1999-02-21 -0.110677

```

## Installation

```bash
pip install git+https://github.com/mmngreco/pandas-context
```

### Developers

```bash
git clone https://github.com/mmngreco/pandas-context
pip install -e ./pandas-context
```
djangoFeignClient 0.0.2
A small ssh display tool

# djangoFeignClient

### install
```python
pip install djangoFeignClient
```

### example
```python
from feign_client.feignClient import FeignClient


class EurekaTest(unittest.TestCase):
    
    def test_eureka_user_login(self):
        data = {
            'username': 'admin',
            'password': '123456'
        }
        
        # eureka_server address
        host = '127.0.0.1:8081'
        
        # eureka app name
        app_name = 'test_app'
        
        # http request method
        method = 'POST'
        
        # request path
        path = '/user/login'

        res = FeignClient(eureka_server = host, method = method, path = path, app_name = app_name, data = dict(data)).result
        
        print(res)

```
sectool-pkg-ivaganov 0.0.2
A tool for keeping secrets during software builds and deployments
Requires Python: >=3.7

# SECTOOL

A tool for keeping secrets during software builds and deployments.

## Challenge
The secrets like API keys or passwords should be used during run time and provided by execution environment.
The simple solution is keeping them as environment variables. But values of the variables are usually kept as
plain text inside files like ``Dockerfile`` or ``docker-compose.yml`` which is not secure.

## Way to solve
The tool solves the issue, it allows you to keep secrets in an encrypted file and inject the values
during software builds.

### How it works?
1. You create an .ini file where in section ``secrets`` you keep all your secrets.
2. Encrypt the file. Later you can use the file (or files if you need different secrets for different environments).
3. Run ``sectool`` by specifying the file and your deployment config file. The tool reads your 
deployment config, injects the corresponding values and print the result to stdout.
4. Here is the step when Linux magic begins, the stdout can be piped to your building or deployment tool,
also ``xargs`` can help.

### Examples
Inject to ``Dockerfile`` and build a Docker image:
```shell
echo -n "Enter your password: "
read PASSWORD
python3.7 sectool.py secrets.dat $PASSWORD Dockerfile | docker build -t tulip -f - .
```

Inject to ``docker-compose.yml`` and build all images mentioned there:
```shell
echo -n "Enter your password: "
read PASSWORD
python3.7 sectool.py secrets.dat $PASSWORD docker-compose.yml | docker-compose -f - build
```

Inject to AWS Task Definition:
```shell
echo -n "Enter your password: "
read PASSWORD
python3.7 sectool.py secrets.dat $PASSWORD my-aws-task-def.json | xargs -0 aws ecs register-task-definition --region eu-west-1 --cli-input-json
```

### How do I encrypt .ini file?
Easy. You need ``openssl``, the software is very popular and included in almost popular Linux/Unix distributions.

How do I encrypt file?
```shell
openssl enc -aes-256-cbc -in secrets.ini -out secrets.dat
```
Don't forget password that the tool will ask! If you forget it, you won't be able to get access to your secrets.

How do I decrypt to check if everything okay?
```shell
openssl enc -aes-256-cbc -k <password> -d -in secrets.dat
```

### How do I mention secret variables in my, for instance, Dockerfile?
Just use a name of the variable in double curly brackets ``{{api_key}}``

Example of .ini file:
```ini
[secrets]
api_key = AGTDBLWLB5BGG7NNVHV
```

Example of Dockerfile:
```dockerfile
FROM ubuntu:20.04
USER wheel

ENV API_KEY={{api_key}}
```