semvec/pypi-packages huggingface dataset:
pyxels 0.1.1
Pyxels is a low-level image data manipulation library for Python. It is designed to be fast and efficient, and to provide a simple interface for working with image data.
License: MIT
Requires Python: <4.0,>=3.12

# Pyxels

Pyxels is a low-level image data manipulation library for Python. It is designed to be fast and efficient, and to provide a simple interface for working with image data. 

Pyxels is currently in early development, and may not yet be ready for general use.

## Installation

To install Pyxels, you can use pip:

```bash
pip install pyxels
```

## Usage

### pyxels.RGB

The `pyxels.RGB` class represents a color in the RGB color space. It has three attributes: `red`, `green`, and `blue`, which are all integers between 0 and 255. It supports addition, subtraction, multiplication, and division with other `pyxels.RGB` instances, as well as comparison with other `pyxels.RGB` instances.

```python
from pyxels import RGB

# Create a new RGB color
color = RGB(255, 0, 0)

# Add two RGB colors
new_color = color + RGB(0, 255, 0)

# Blend two RGB colors
blended_color = color.blend(new_color, 0.42)

# Check if two RGB colors are equal
print(f"The colors are {'equal' if color == new_color else 'not equal'}")

# Convert an RGB color to a hex string
print(color.to_hex())

# Load an RGB color from a hex string
color = RGB.from_hex("#C0FFEE")

# Set the least significant bit of each color channel
other_color = RGB(254, 127, 63)
other_color.set_lsb(RGB(1, 0, 1))

# Get the least significant bit of each color channel
lsb = other_color.get_lsb()

# Bitwise XOR two RGB colors
xor_color = color ^ new_color
```

## License

Pyxels is released under the MIT license. See [LICENSE](LICENSE) for more information.
pycspwrapper 0.2.1
Python wrapper for Latvian official statistics portal API: https://stat.gov.lv/en/api-and-code-list-registry.
License: MIT

# pycspwrapper
Version 0.1.1

Python wrapper for Latvian official statistics portal API: https://stat.gov.lv/lv/api-un-kodu-vardnicas/api

Forked from https://github.com/kirajcg/pyscbwrapper/, replacing the Sweden API endpoints with the Latvian Central Statistics Bureau ones.

Dependencies: requests>=2.21.0

To install: 
```python
pip install pycspwrapper
```

To import: 
```python
from pycspwrapper import LVStat
```

For info on usage, see the included notebooks.

## Changelog

News in version 0.2.0:
Changed the behavior of .get_variables() to return the text/code values by default.

News in version 0.1.4:
Caching info data while in the same location. Updated examples in Latvian and English.

News in version 0.1.3:
Updated query generation code to use variable and value codes instead of text values.

News in version 0.1.2:
Fixed the module name to avoid conflicts with the original version.

News in version 0.1.1:
Bugfixes: Variables with space in their names can now be accessed by removing the spaces.
New functionality: get_variables() returns a dict instead of only writing to the terminal.

News in version 0.1:
Compatible with changes in the API.  
Includes a function for generating JSON queries from user-supplied input.  
It is now possible to go up and down in the metadata tree more than one step at a time.
snet.contracts 0.1.1
SingularityNET Ecosystem Contracts
License: MIT
Requires Python: >=3.10

# SingularityNET Ecosystem Contracts Package

The package was created to easily work with SingularityNET ecosystem EVM contracts

## Python
### Usage 
  
Easily get an instance of the contract you need from any SingularityNET product with just one call to one of the functions

Install:
```bash
pip install snet.contracts
```

Usage:
```python
from snet.contracts import get_contract_deployment_block, get_contract_object

import web3

provider = web3.HTTPProvider("https://mainnet.infura.io/v3/")
w3 = web3.Web3(provider)

token_contract_instance = get_contract_object(w3, "SingularityNetToken")
deployed_block = get_contract_deployment_block(w3, "SingularityNetToken")
print("Block:", deployed_block)
```
Result:
```bash
Block: 12326815
```

Optional: get an instance at the contract address
```python
token_contract_instance = get_contract_object(w3, "SingularityNetToken" "0x5B7533812759B45C2B44C19e320ba2cD2681b542")
```

### Tests

```bash
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 test/unit_test.py
```

## Golang

### Install
```bash
go get -u github.com/singnet/snet-ecosystem-contracts
```

### Usage

```go
package main

import (
	"fmt"
	"github.com/singnet/snet-ecosystem-contracts"
)

func main() {

	// get list of all contracts
	fmt.Println(contracts.List)
	
	// get ABI of contract Registry
	fmt.Println(string(contracts.GetABI(contracts.Registry)))

	// get bytecode of contract SingularityNetToken
	fmt.Println(string(contracts.GetBytecode(contracts.SingularityNetToken)))

	// get addresses, events, and more for smart contracts for different networks
	fmt.Println(string(contracts.GetNetworks(contracts.Registry)))

	// clean methods returns content without spaces and line breaks
	fmt.Println(string(contracts.GetABIClean(contracts.SingularityNetToken)))
	fmt.Println(string(contracts.GetBytecodeClean(contracts.Registry)))
	fmt.Println(string(contracts.GetNetworksClean(contracts.SingularityNetToken)))
}

```
kaiju-config-validator 0.1.0
Application config validation library using JSONSchema
License: MIT
Requires Python: >=3.12

[![pypi](https://img.shields.io/pypi/v/kaiju-config-validator.svg)](https://pypi.python.org/pypi/kaiju-config-validator/)
[![codecov](https://codecov.io/gh/violet-black/kaiju-config-validator/graph/badge.svg?token=FEUUMQELFX)](https://codecov.io/gh/violet-black/kaiju-config-validator)
[![tests](https://github.com/violet-black/kaiju-config-validator/actions/workflows/tests.yaml/badge.svg)](https://github.com/violet-black/kaiju-config-validator/actions/workflows/tests.yaml)
[![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

[![python](https://img.shields.io/pypi/pyversions/kaiju-config-validator.svg)](https://pypi.python.org/pypi/kaiju-config-validator/)

**kaiju-config-validator** is designed to work with [kaiju-app](https://kaiju-app.readthedocs.io) library to validate
project configuration dictionary for a set of application service classes. It analyzes `__init__` methods of services
to check the input data before creating an app object.

[fastjsonschema](https://github.com/horejsek/python-fastjsonschema) library is used to validate JSONSchema files.

# Installation

With pip and python 3.12+:

```bash
pip3 install kaiju-config-validator
```

# How to use

The configuration process is straightforward.
Use the standard application configuration process as described in the [kaiju-app documentation](https://kaiju-app.readthedocs.io).

```python
from kaiju_config_validator import ConfigValidator
from kaiju_app import Application, ApplicationLoader, Configurator

loader = ApplicationLoader()
loader.service_classes[...] = ...
config = Configurator().create_configuration([...], [...])
```

As soon as a project config dict is produced you can pass it to the validator method along with service classes
map and an application class. The validator will either raise a `InvalidConfiguration` or return `None` if everything
is fine.

```python
ConfigValidator().validate_project_config(Application, loader.service_classes, config)
```
wbpFonttools 0.2.6
FontTools font editor for Workbench applications.
License: MIT
Requires Python: >=3.8
Keywords: workbench, wxPython, GUI

# wbpFonttools

FontTools plugin for [Workbench](https://pypi.org/project/wbBase/) applications.

This plugin provides Workbench document templates for the following font formats:
- OpenType-TTF Font
- OpenType-OTF Font
- OpenType-WOFF WebFont
- OpenType-WOFF-2 WebFont

As well as a document view to view and edit fonts in these formats. 


## Installation

```shell
pip install wbpFonttools
```

Installing this plugin registers an entry point 
in the group "*wbbase.plugin*" named "*fonttools*".

To use the plugin in your application, 
add it to your *application.yml* file as follows:
```yaml
AppName: myApp
Plugins:
- Name: fonttools
```

## Documentation

For details read the [Documentation](https://workbench2.gitlab.io/workbench-plugins/wbpfonttools).