semvec/pypi-packages huggingface dataset:
blocksat-api 1.0.0
Python bindings for Blocksat API
Requires Python: >=3.6
Keywords: blockstream blocksat api

Usage
----



To import the Class and satellite APIs for mainnet and testnet:

```python
from blocksat_api import blocksat
```

-----

Create a new order object to place a new order, increase an order bid, get an order status or delete an order:

```python
# create a new order object with optional message and network
o = blocksat.Order(message='Hello, world.', network='mainnet')
```

Methods called will return nothing upon success, storing the API status_code and a json-encoded response.text in the appropriate object attribute.

------


To check pending orders, queued orders, sent orders or the satellite lightning node info use the external methods which return a successful result as a json of response.text and a failure as a tuple of (response.status_code, response.reason, response.text):

```python
# to check sent_orders
sent_orders = blocksat.sent_orders(sat_url=blocksat.SATELLITE_API)
```

------
mtfor 0.0.4
Plug 'n' play multithreaded for
Requires Python: >=3.6

# What is mtfor

"mtfor" or "multithreaded for" is a simple package that provides a for loop that automatically distributes the processing through a number of threads.

# Installation

You can use pip3 to install this utility by executing:
```
pip3 install mtfor
```

# Usage

The function signature is mtfor(list, function, number_of_threads). It returns your list already modified.

This example prints the result of applying my_function to my_list using 4 threads.

```python
from mtfor import mtfor

NUM_THREADS = 4

def my_function(x):
  return x * x

my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
modified_list = mtfor(my_list, my_function, NUM_THREADS)

print(modified_list)
```