semvec/pypi-packages huggingface dataset:
solana-data-scraper 0.0.8
Python library for scraping blockchain data from Bitquery
License: MIT
Requires Python: >=3.8,<4.0

# Scrape Solana Blockchain Data

This python library scrapes blockchain from https://bitquery.io/ from their GraphQL endpoints.

This requires you to supply your own Bitquery API token.

Copyright (c) 2022 Friktion Labs

# Functionalities

- Queries Bitquery for blockchain data
- Batches queries to get around compute limits

# Setup

1. `pip3 install solana-data-scraper`
2. Create an account at https://bitquery.io/
3. Retrieve API Key
4. In command line, `export BITQUERY_API_KEY=XXXXXXX`

# Example

```
import os
from solquery.Query import Query

# Get API key associated with user's environment
API_KEY = os.environ.get("BITQUERY_API_KEY")
print(f"Bitquery API Key used: {API_KEY}")

# Create query object with API key
query = Query(API_KEY)

# Query to get random transfers
QUERY = """
query MyQuery {
  solana(network: solana) {
    instructions: instructions(
      success: {is: true}
      options: {limit: 10}
      time: {after: "2022-04-29T00:00:00"}
      programId: {is: "So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo"}
    ) {
      program {
        id
        name
        parsedName
      }
      action {
        name
        type
      }
      data {
        base58
      }
      external
      transaction {
        signature
        success
        transactionIndex
        feePayer
      }
      accountsCount
    }
  }
}
"""
result = query.run(QUERY, to_df=True)
print(f"Results: {result}")

# Query to get random transfers
QUERY = """
    query MyQuery {
      solana(network: solana) {
        transfers(
          time: {between: ["%s", "%s"]}
          options: {limit: 25000}
          success: {is: true}
          receiverAddress: {is: "DdZR6zRFiUt4S5mg7AV1uKB2z1f1WzcNYCaTEEWPAuby"}
        ) {
          amount
          transaction {
            signer
            signature
          }
          block {
            timestamp {
              iso8601
            }
          }
          currency {
            address
            decimals
          }
        }
      }
    }
"""

# This example takes a long time to run
result = query.run_batch(
    QUERY, "2022-04-28T00:00:00", "2022-05-01T00:00:00", batch_freq="6H"
)
print(f"Results: {result}")
print(result.shape)
result.to_csv("./example.csv", index=False)
```
bitmap-fonts 0.3.1
Creation of bitmap fonts useful in OpenGL context.
License: MIT
Requires Python: >=3.8,<3.10
Keywords: Bitmap fonts,OpenGL,textures

## Bitmap fonts
Bitmap fonts are useful in generating text messages in OpenGL contexts. This utility allows to 
convert a TTF font file into a bitmap font.


## Description
The script `create-font-texture` should be self-explanatory.


## Installation

    pip install bitmap-fonts


## Usage

    create-font-texture UbuntuMono-Regular.ttf

    font_file_name: UbuntuMono-Regular.ttf
    size: 512
    char_size: 32
    ubuntumono-regular-iso-8859-1.png

![](https://gitlab.com/simune/components/bitmap-fonts/-/blob/1-substitute-template-keywords/ubuntumono-regular-iso-8859-1.png "Generated png file.")

## Authors and acknowledgment
Peter Koval <koval.peter@gmail.com>

## License
MIT,

the font UbuntuMono-Regular.ttf has an Ubuntu font license 1.0

## Project status
Already useful