semvec/pypi-packages huggingface dataset:
functionfaker 0.2
Function Faker

# functionfaker
Lightweight [Decorator to cache (memoize) function calls](https://github.com/wsijp/functionfaker) and replay responses for expensive computations and API requests.

[Pip installable](https://pypi.org/project/functionfaker/) via `pip install functionfaker`  

Functionfaker offers lightweight and easy to understand function (and method) caching, similar to some of the functionality of the [Joblib](https://joblib.readthedocs.io/en/latest/) package. A function response is recorded once and then replayed from cache from thereon. This allows for unit testing applications with API calls without actaully calling the API. It can also speed up prototyping of computationally expensive code. Functionfaker consists of simple code, and provides a single decorator for your functions and methods, as shown in the following "hello world" example.

```
from functionfaker import response_player
import os
```
Add the `response_player` decorator to an example function called `add`:

```
@response_player()
def add(x, y):
    return x + y
```

Then set RECORD mode by setting the environment variable:

```
# enter record mode, to record function responses.
os.environ['RECORD'] = "record"
```

Call the `add` function a few times:

```
# Clear the stored function responses
if os.path.exists('responses.p'):
    os.remove('responses.p')
# call the add function to record some responses.
add(1,2)
add(1,y=3)
add(1,3)
add(2,1)
```
```Recording response function "add"
Recording response function "add"
Recording response function "add"
Recording response function "add"
```
Set `replay` mode via the environment variable:

```
# enter replay mode, so that function will not run, but return stored values instead.
os.environ['RECORD'] = "replay"
```

Call the `add` function again, with arguments that it has already seen:

```
result = add(1,2)
print("The saved result of adding 1 and 2 using function 'add' is %d"%result)
```
```
Faking function "add". Response found
The saved result of adding 1 and 2 using function 'add' is 3
```

The outputs for these inputs (1,2) are now read from cache.

Some funtion arguments might be irrelevant or difficult to serialize. To ignore these arguments, provide the `args2ignore` argument as a list of integers to the `response_player` decorator, where the integers represent the index in the argument list.

Default function response storage is in a simple Pickle file `responses.p`. To use your own storage system, provide a class derived from `BaseStore` class with an `update` and `get_response` method. An object of this class is then provided as the `store` argument to the `response_player` decorator.
pachelm 0.0.26
Pachyderm pipelines migrations & seeds tools, to ease pipelines deployment.


# activate env
conda activate python-pacyhderm

# to install python-pachyderm
conda install -y conda-build click setuptools-git


# Work around
<!-- - pip:
  - "--editable=git+https://github.com/pachyderm/python-pachyderm.git@faaea725837a2deecfe99b28d65dd98342c9e939#egg=python-pachyderm-master" -->

# Recommended way but not work.
# conda skeleton pypi python-pachyderm
# conda build python-pachyderm

# Next things
# Build pachydelm, dev examples workflow for both contribute & own work.
# python-pachyderm get version mismatch for some method like pfs_client.provenances_for_repo('test-pipeline').

# pip install -e .


<!-- 2019-05-28T09:45:32Z INFO pps.API.CreatePipeline {"request":{"pipeline":{"name":"test-pipeline"}}} []
2019-05-28T09:45:32Z INFO pps.API.call64 {"duration":0.000026444,"request":{"pipeline":{"name":"test-pipeline"},"salt":"5a738ec86ad04489bd2e25d97bb2e716"},"response":null} []
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1ce205d] -->

# build command
python setup.py bdist_wheel
twine upload dist/*
bitcoin-keygen 0.1.1
Bitcoin Utility Functions
Keywords: bitcoin keygen python script blockchain cryptography cryptocurrency

# Bitcoin Keygen

Bitcoin Keygen is a minimalistic Pure Python script with Bitcoin utility functions.

## Installation

Bitcoin Keygen can be installed with `pip install bitcoin-keygen` (Python 3.6+ Required).

## Features

- Generate and verify private keys for use on the Bitcoin Blockchain.
- Generate the public key, address and WIF associated with a private key.
- Base58Check encoding, decoding and checksum check utility functions.

Bitcoin Keygen can accept optional parameters as well to work with compressed keys and the testnet.

## License

[GNU General Public License v3.0](LICENSE) (c) 2019 Cheran Senthilkumar