semvec/pypi-packages huggingface dataset:
hypothtst 0.0.12
Add static script_dir() method to Path
License: MIT

# hypothtst
Hypothesis tests on various kinds of data and simulation routines for power and other performance metrics.

Relationship of <img src="/tex/c745b9b57c145ec5577b82542b2df546.svg?invert_in_darkmode&sanitize=true" align=middle width=10.57650494999999pt height=14.15524440000002pt/> with <img src="/tex/9b4428e475444d94aa4664c4bc9fef13.svg?invert_in_darkmode&sanitize=true" align=middle width=10.57650494999999pt height=22.831056599999986pt/>

<p align="center"><img src="/tex/124c9859cba90cbc7110912b2dc9f3e6.svg?invert_in_darkmode&sanitize=true" align=middle width=112.6296534pt height=20.922262349999997pt/></p>
python-buycoins-sdk 0.0.4
BUYCOINS SDK
License: MIT
Requires Python: >=3.0
Keywords: python,SDK,Buycoins

# Python-buycoin

A python SDK for BuyCoins
#### Update
New features to be added to SDK includes
1. Type hinting
2. NGNT manager and transactions
3. Extensive tests

## Installations
```shell
pip install python-buycoins-sdk
```
## Requirements
Python 3.0+

## Documentation
You can view the official documentation for the BuyCoins APi can be found [here](https://https//developers.buycoins.africa/) on the BuyCoins developer portal.


## Configuration
Create a .env file and set up authentication as follows:
```
BUYCOIN_PUBLIC_KEY="<BUYCOIN_PUBLIC_KEY>"
BUYCOIN_SECRET_KEY="<BUYCOIN_SECRET_KEY>"
```
To get public and private key, follow the process set at [here](https://developers.buycoins.africa/#how-do-i-get-access)

## Usage
Most of the library's functionality lies in the managers.py file which contains all the managers required to perform wallet transactions, peer to peer transactions and NGNT transactions.

The Manager classes handle every direct interaction with the BuyCoins API.

### Wallet Transactions
This involves direct purchase, sale, transfer orders of cryptocurrencies and creation of cryptocurrencies addresses
A sample use-case

```Python
from BuyCoin.objects.wallet import Wallet
from BuyCoin.manager import CustomerWalletManager

# Start a  purchase transaction and then assign to manager for initialization
purchase_order = Wallet(operation="buy", cryptocurrency="bitcoin", coin_amount=0.01)
wallet_manager = CustomerWalletManager()
wallet_manager.initialize_transaction(purchase_order)

# To get prices for all cryptocurrencies
print(wallet_manager.get_prices())

# To get prices for a specific cryptocurrency for a side ('buy', 'sell')
print(wallet_manager.get_prices(cryptocurrency="bitcoin", side="buy"))
```

### P2P Transactions
P2P Trading lets you trade cryptocurrencies with other users. If you are not familiar with p2p trading on the Buycoins platform, read about it [here](https://developers.buycoins.africa/p2p/introduction)   
A sample use-case

```python
from BuyCoin.objects.p2p import P2P
from BuyCoin.manager import P2PManager

# To place limit orders 
limit_order = P2P(operation="plo", side="buy", coin_amount=0.01, cryptocurrency="bitcoin",
         price_type="dynamic", dynamic_exchange_rate=3000)

manager = P2PManager()
manager.initialize_transaction(limit_order)

# to post market orders
market_order = P2P(operation="pmo", side="sell", coin_amount=0.01, cryptocurrency="bitcoin")
manager.initialize_transaction(market_order)

# Get market orders

print(manager.get_market_order())

```
### Custom Queries
If by chance, you need to perform queries outside the already provided ones, it can be done by creating an instance of the concerned transaction manager:
```Python
from BuyCoin.manager import CustomerWalletManager

query = """
    query {
        <query>
    }
"""

CustomerWalletManager._perform_request(query=query, variables={})
# Variables are arguments to be passed into the query, if none, specify empty bracket
```
strtest 0.1.0
Runs test code contained in strings
License: MIT

# Python String Test Runner

Unittest wrapper that runs tests contained in strings.

## Setup

    pip install strtest

## Running tests

    run_str_test.py [-f function_name] file_with_the_function.py test_file.py

There is an example [here](#example)

## Test files

Test files must contain a class called `TestCase` that inherits from `str_test.TestCaseWrapper`. All methods with names starting with `test_` will be considered tests.

```python
from strtest import str_test

class TestCase(str_test.TestCaseWrapper):
    TIMEOUT = 1  # In seconds

    def test_1(self):
        result = self.function(1, 2)
        self.assertEqual(3, result, msg=f'Results are not equal. Expected: 3. Got: {result}')

    def test_2(self):
        self.assertTrue(False, msg='This will always fail')
```

## Example

Assume you have the test file `all_tests.py` with the code above and want to test the file `my_implementation.py` containing the following code:

```python
def add_numbers(a, b):
    return a + b
```

You can run the tests with:

    run_str_test.py -f add_numbers my_implementation.py all_tests.py
kombin 1.0.0
Indexing combinations from two finite sets.
License: MIT
Requires Python: >=3.6

# KombiN - Python 3 Library

This is the python implementation of KombiN, which is an algorithm to get index for combination pair and to get combination pair from index, where all possible combination pairs from two finite sets are sorted by their weight in ascending order.

## Installation

Available on [pypi](https://pypi.org/project/kombin/)

```diff
pip install kombin
```

## Usage

where set 'A' has 100 elements and set 'B' has 80 elements and both sets has zerobased indexing.

```py
# Initialize object of Table class
myObj = Table(100, 80, true)

# Get Index value for combination pair(ai: 46, bi: 72)
index = myObj.GetIndexOfElements(46, 72)

# Get combination pair from index value
ai, bi = myObj.GetElementsAtIndex(index);

```