semvec/pypi-packages huggingface dataset:
moonstream 0.1.2
Moonstream: Open source blockchain analytics

# Moonstream Python client

This is the Python client library for the Moonstream API.

## Installation

This library assumes you are using Python 3.6 or greater.

Install using `pip`:

```bash
pip install moonstream
```

## Usage

-   Source environment variable with access token to Moonstream, you can create one on page https://moonstream.to/account/tokens/

```python
access_token = os.environ.get("MOONSTREAM_ACCESS_TOKEN")
```

-   Create an object of Moonstream client and authorize

```python
mc = Moonstream()
mc.authorize(access_token)
```

## create_stream method

Return a stream of event for time range.

**From timestamp to None, from bottom to top**

When `end_time` is not set.

```python
for events in mc.create_stream(
    start_time=1637834400, end_time=None, q="type:ethereum_blockchain"
):
    event_timestamp_list = [e["event_timestamp"] for e in events["events"]]
    print(event_timestamp_list)
```

In this case we will be receiving events from bottom of history to recent time in next order:

```python
[1637836177, ..., 1637834440]
[1637837980, ..., 1637836226]
# Until we will get latest event,
# then we will be receiving empty lists
[]
[]
# Until new events will be available
[1637839306, 1637839306, 1637839306, 1637839306]
[]
# Continuing...
```

**From timestamp to timestamp, from top to bottom**

When `start_time` is greater then `end_time`.

```python
for events in mc.create_stream(
    start_time=1637839281, end_time=1637830890, q="type:ethereum_blockchain"
):
    event_timestamp_list = [e["event_timestamp"] for e in events["events"]]
    print(event_timestamp_list)
```

Stream of event packs will be generating from recent timestamp to older and inner list of transactions for each pack will be in most recent to older event timestamp range:

```python
[1637839280, ..., 1637838094]
[1637838086, ..., 1637836340]
...
[1637834488, ..., 1637832699]
[1637832676, ..., 1637830903]
```

**From timestamp to timestamp, from bottom to top**

When `start_time` is less than `end_time`.

```python
for events in mc.create_stream(
    start_time=1637830890, end_time=1637839281, q="type:ethereum_blockchain"
):
    event_timestamp_list = [e["event_timestamp"] for e in events["events"]]
    print(event_timestamp_list)
```

You start receiving list of older events from bottom of history to newest:

```python
[1637832676, ..., 1637830903]
[1637834488, ..., 1637832699]
...
[1637838086, ..., 1637836340]
[1637839280, ..., 1637838094]
```
meowspeak 1.0.3
Displays a message 'spoken' by an ASCII cat
Requires Python: >=3.9

# meowspeak

`meowspeak` is a fun Python package that lets you display messages "spoken" by ASCII art cats. Whether you're sending a simple message or just want to add a bit of whimsy to your terminal output, `meowspeak` lets you do so in style!

## Installation

To install `meowspeak`, use `pip`:

```bash
pip install meowspeak
```

## Usage

Once installed, you can use the `meowspeak` command directly in your terminal. Here's how you can use it:

### Display a message with a random cat:

```bash
meowspeak "Hello, world!"
```

This will display the message `"Hello, world!"` in a speech bubble coming from a random ASCII cat.

### Choose a specific cat:

To use a specific cat, use the `--cat` option followed by the cat's index:

```bash
meowspeak "This is a cool cat!" --cat 1
```

### List all available cats:

To view all available cats and their indices, use the `--list` option:

```bash
meowspeak --list
```

### Customize the message width:

You can customize the width of the speech bubble using the `--width` option. For example:

```bash
meowspeak "This is a really long message that needs wrapping" --width 30
```

## Example Output

```bash
 ________
< Hello! >
 --------
       /\_/\
      ( o.o )
       > ^ <
```

## Contributing

Feel free to fork the repository and submit issues or pull requests. Contributions are always welcome!

## License

This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.
sbcli-qos 1.1.6
CLI for managing SimplyBlock cluster


# Simply Block
[![Docker Image Build](https://github.com/simplyblock-io/sbcli/actions/workflows/docker-image.yml/badge.svg)](https://github.com/simplyblock-io/sbcli/actions/workflows/docker-image.yml)

[![Python Unit Testing](https://github.com/simplyblock-io/sbcli/actions/workflows/python-testing.yml/badge.svg)](https://github.com/simplyblock-io/sbcli/actions/workflows/python-testing.yml)


## Install
Add the package repo from AWS CodeArtifact using [awscli](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)

```bash
aws codeartifact login --tool pip --repository sbcli --domain simplyblock --domain-owner 565979732541 --region eu-west-1
```
Install package
```bash
pip install --extra-index-url https://pypi.org/simple sbcli-dev
```

# Components

## Simply Block Core
Contains core logic and controllers for the simplyblock cluster

## Simply Block CLI
Please see this document
[README.md](../main/simplyblock_cli/README.md)


## Simply Block Web API
Please see this document
[README.md](../main/simplyblock_web/README.md)



### local development

FoundationDB requires a client library (libfdb_c.dylib) for the Python bindings to interact with the database.
Depending on the OS architecture, please install the appropriate version from the official github repo

```
wget https://github.com/apple/foundationdb/releases/download/7.3.3/FoundationDB-7.3.3_arm64.pkg
```

setup the code on a management node and the webApp code can be developed by building the `docker-compose-dev.yml` file.


```
sudo docker compose -f docker-compose-dev.yml up --build -d
```