semvec/pypi-packages huggingface dataset:
pycrystalpay 0.0.2
CrystalPay api wrapper

# pyCrystalPay

## Install

From Pypi\
```pip install pycrystalpay```

## Async 
### Инициализация
```python
from pycrystalpay import AsyncCrystalPay, types


client = AsyncCrystalPay(
    auth_login="mylogin",
    auth_secret="mysecret",
    wait_cooldown=True # auto wait 5 rps
)
```
### Методы /invoice/
Создание платежа\
[/invoice/create](https://docs.crystalpay.io/metody-api/invoice-platezhi/sozdanie-invoisa)
```python
payment: types.InvoiceCreate = await client.invoice_create("100","purchase","1")

payment.url # Ссылка для оплаты
payment.id
```

Получение информации о платеже по id\
[/invoice/info](https://docs.crystalpay.io/metody-api/invoice-platezhi/poluchenie-informacii-ob-invoise)
```python

response: types.InvoiceInfo = await client.invoice_info("id_платежа")

if response.is_payed:
    ...
```


### Методы /me/

[/me/info](https://docs.crystalpay.io/metody-api/me-kassa/poluchenie-informacii-o-kasse)
```python
response: types.MeInfo = await client.me_info()
```

### Методы /balance/
[/balance/list](https://docs.crystalpay.io/metody-api/balance-balansy/poluchenie-spiska-balansov)
```python
response: types.BalanceList = await client.balance_list(hide_empty=True)
```

[/balance/get](https://docs.crystalpay.io/metody-api/balance-balansy/poluchenie-spiska-balansov)
```python
response: types.BalanceGet = await client.balance_list(method="BITCOIN")
```

### Методы /method/
[/method/list](https://docs.crystalpay.io/metody-api/method-metody/poluchenie-spiska-metodov)
```python
response: types.MethodList = await client.method_list(compact=True)
```

[/method/get](https://docs.crystalpay.io/metody-api/method-metody/poluchenie-spiska-metodov)
```python
response: types.MethodInfo = await client.method_get(method="BITCOIN")
```

[/method/edit](https://docs.crystalpay.io/metody-api/method-metody/izmenenie-nastroek-metoda)
```python
response: bool = await client.method_edit(method="BITCOIN", enabled=True, extra_commission_percent=0)
```

### Методы /payoff/
[/payoff/create](https://docs.crystalpay.io/metody-api/payoff-vyvody/sozdanie-vyvoda)
```python
response: types.PayoffCreate = await client.payoff_create(
        "SBPP2P",
        "somewallet",
        100,
        "amount"
)
```

[/payoff/submit](https://docs.crystalpay.io/metody-api/payoff-vyvody/podtverzhdenie-vyvoda)
```python
response: types.PayoffData = await client.payoff_create(id="some_id")
```

[/payoff/cancel](https://docs.crystalpay.io/metody-api/payoff-vyvody/podtverzhdenie-vyvoda)
```python
response: types.PayoffData = await client.payoff_cancel(id="some_id")
```

[/payoff/get](https://docs.crystalpay.io/metody-api/payoff-vyvody/poluchenie-informacii-o-vyvode)
```python
response: types.PayoffData = await client.payoff_get(id="some_id")
```
easy-scpi 0.1.7
An easy library for controlling SCPI instruments.
Keywords: scpi

# Easy SCPI
A simple and robust library making communication with [SCPI](https://en.wikipedia.org/wiki/Standard_Commands_for_Programmable_Instruments) (Standard Control of Programmbale Instruments) instruments easy. After creating an instrument object that connects to an actual instrument, commands are sent to the instrument using a property-like format. This class is useful for inheritance when creating a controller for a specific instrument. Communication with instruments is done with [PyVISA](https://pyvisa.readthedocs.io).

## Install
`python -m pip install easy-scpi`

## API
### SCPI Commands
Generic SCPI commands can be executed by transforming the SCPI code in to attributes via the hierarchy relationship, then calling it. Instrument properties can be queried by passing no arguments to the call (or specifying query=True). Commands with no arguments are run by passing an empty string to the call.

## Examples
For more examples see the [`examples`](./examples) folder.

### Basic
```python
# import package
import easy_scpi as scpi 

# Connect to an instrument
inst = scpi.Instrument(<port>)
inst.connect()

# Read the voltage [MEASure:VOLTage:DC?]
inst.measure.voltage.dc()
# or
inst.meas.volt.dc()

# Passing args to a query [MEASure:VOLTage:DC? MIN]
inst.measure.voltage.dc("MIN", query=True)

# Set the voltage to 1 V [MEASure:VOLTage:DC 1]
inst.measure.voltage.dc(1)
# or
inst.source.voltage('1')

# Execute a command to take a reading [SYSTem:ZCORrect:ACQuire]
inst.syst.zcor.aqc('')
```

### Full 
#### For use with Tektronix PWS4305
```python
import easy_scpi as scpi

class PowerSupply( scpi.Instrument ):
    def __init__( self ):
        super().__init__( 
            port = None, 
            timeout = 5000,
            read_termination = '\n', 
            write_termination = '\n' 
        )

        # other initialization code...

    @property        
    def voltage(self):
        """
        Returns the voltage setting.
        """
        return self.source.volt.level()
    
    @voltage.setter
    def voltage(self, volts):
        """
        Sets the voltage of the instrument.
        """
        self.source.volt.level(volts)
    
    @property
    def current(self):
        """
        Returns the current setting in Amps
        """
        return self.source.current.level()
        
    @current.setter
    def current(self, amps):
        """
        Set the current of the instrument
        """
        self.source.current.level(amps)
    
    def on(self):
        """
        Turns the output on
        """
        self.output.state('on')
        
    def off(self):
        """
        Turns the output off
        """
        self.output.state('off')
```
asm-python 1.0
A module that executes assembly code.

# asm_python

`asm_python` is a Python module that allows you to execute assembly code directly from Python using inline assembly in C.

## Installation and Usage

```bash
pip install asm_python
```
```python
import asm_python
asm_code = """
#your code assembly here (i am use clang to compile assembly code.)
"""
result = asm_python.asm(asm_code)
print("Result:", result)
```
csexamgenerator 2.1.0
An internal tool for exam submission

# Coderschool Exam Client

![Version](https://img.shields.io/badge/Latest%20Version-v0.0.3-%2300b4d8.svg?&style=for-the-badge&logo=git&logoColor=white)
![Python](https://img.shields.io/badge/Python-%230096c7.svg?&style=for-the-badge&logo=python&logoColor=white)
![Google Colab](https://img.shields.io/badge/Google%20Colab-4285F4?style=for-the-badge&logo=googledrive&logoColor=white)

Update (29 Sep 2024): Publish package to PyPi

## About the project
**cspyexamclient** is a Python client for interacting with online exam system. It allows students to register, answer questions, and submit their answers. The client uses `ipywidgets` for creating interactive widgets in ipython notebooks before uploading students answers to the exam server.

## Features

- **Register Student**: Allows students to register using their email.
- **Generate Questions**: Dynamically displays questions and answer options.
- **Display Submission Summary**: Displays a summary of all questions and corresponding answers.
- **Submit Answers**: Submits student answers to the server.

### Submit - Resubmit - Reset

<img width="500" src="assets/test_submission.gif">

### Exam Summary

<img width="500" src="assets/exam_summary.png">

## Exam notebook
| Module       | Description       | Link                                                                                  |
|--------------|-------------------|---------------------------------------------------------------------------------------|
| M1.1         | Basic SQL         | https://colab.research.google.com/drive/1E3sppN-vjschXS46WTeqZnQSmRBcuggN?usp=sharing |
| M1.2         | Advanced SQL      | https://colab.research.google.com/drive/1i-aGTjpXL-En8kVFB0Cl8elHn9Z866yv?usp=sharing |
| M2.1         | Python 101        | https://colab.research.google.com/drive/1zX-ZgjEot_uGHh8x2nCl7hGWUklLuYeL?usp=sharing |
| M3.1         | Pandas 101        | https://colab.research.google.com/drive/143rJnko61nMUGGwMccgxaBJRA-CmJEqT?usp=sharing |
| M4.1         | Data Visualization| Exam is coding and feedback thus no questions generation needed                       |
krecviz 0.1.1
Visualisation utilities for krec files
Requires Python: >=3.11

# krecviz
Visualisation utilities for krec files 

![image](https://github.com/user-attachments/assets/9d53e560-f6d4-42d0-a5df-b6ef6aa26ab2)


## Installation

```bash
pip install git+https://github.com/kscalelabs/krecviz.git
# or clone the repo and run
pip install -e .
```

## Usage

NOTE: For now, in the rerun viwer, make sure to select "log tick" as the time unit. will fx this soon

![image](https://github.com/user-attachments/assets/360e1e22-3dbf-4382-b21e-da85174f9206)


CLI usage:

```bash
# cd to the repo root
cd krecviz
python visualize.py --urdf data/urdf_examples/gpr/robot.urdf --krec data/krec_examples/actuator_22_right_arm_shoulder_roll_movement.krec --output output.rrd
```

Python API usage:

```python
import krecviz

krecviz.viz(
    krec_path="path/to/recording.krec",
    urdf_path="path/to/robot.urdf"
)
```
samaraenergo 0.2.25
Клиент электросбытовой компании СамараЭнерго
Requires Python: <3.14,>=3.12

# samaraenergo

Python клиент электросбытовой компании [СамараЭнерго](https://www.samaraenergo.ru/).

Писался как отдельная [PyPI](https://pypi.org/project/samaraenergo/) библиотека для интеграции с [Home Assistant](https://www.home-assistant.io/).