semvec/pypi-packages huggingface dataset:
raydiumsdk 0.3.0
Solana Python API
License: MIT

# raydium

Python library to trade on Raydium.

### Setting up

bash
```
export PRIVATE_KEY=base_58_private_key
export RPC_URL=rpc_url
```


cmd
```
set PRIVATE_KEY=base_58_private_key
set RPC_URL=rpc_url
```

### FAQS

**What format should my private key be in?** 

The private key should be in the base58 string format, not bytes. 

**Why are my transactions being dropped?** 

You get what you pay for. Don't use the main-net RPC, just spend the money for Helius or Quick Node.

**How do I change the fee?** 

Modify the UNIT_BUDGET and UNIT_PRICE in the config.py. 

**Why is this failing for USDC pairs?** 

This code only works for SOL pairs. 

**Why are there "no pool keys found"?** 

IF YOU ARE USING A FREE TIER RPC, THIS REPO WILL NOT WORK FOR YOU. FREE TIER RPCS DO NOT ALLOW GET_ACCOUNT_INFO_PARSED().

### Examples

```
from raydium import buy
from utils import get_pair_address

# Buy Example
token_address = "7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr" # POPCAT
pair_address = get_pair_address(token_address)
sol_in = .1
slippage = 5
buy(pair_address, sol_in, slippage)
```

```
from raydium import sell
from utils import get_pair_address

# Sell Example
token_address = "7GCihgDB8fe6KNjn2MYtkzZcRjQy3t9GHdC8uHYmW2hr" # POPCAT
pair_address = get_pair_address(token_address)
percentage = 100
slippage = 5
sell(pair_address, percentage, slippage)
```
aveas-openlabel 0.4.17
The AVEAS OpenLABEL specification
License: MIT
Requires Python: <3.13,>=3.9
Keywords: ASAM OpenLABEL, AVEAS

# AVEAS OpenLABEL

## Installation and usage

This library can be installed via pip using `pip install aveas_openlabel` or with poetry using `poetry add aveas_openlabel`.
The documentation with minimal examples can be found here: [understand-ai.github.io/aveas_openlabel/](https://understand-ai.github.io/aveas_openlabel/)


## Development
### Poetry
This package uses Poetry, a tool for dependency management and packaging. 
Please install it via the official installer from [here](https://python-poetry.org/docs/).
In the root of the repository, you install all dependencies into a virtual environment using `poetry install`. 

### Working with this repository
This repository employs several tools to ensure a constant and good code quality. 

#### Black
[Black](https://black.readthedocs.io/en/stable/index.html) is a code formatter that we use to assure consistent code style across our projects. 
Use it in-between, or after your code changes, via `poetry run black .` in the root directory of this repository. 
Merge requests will only be merge-able if black has nothing to complain about. 

#### MyPy
[Mypy](https://mypy.readthedocs.io/en/stable/) is a static type checker for Python. 
Is assures type safety throughout our code and is necessary to ensure that our AVEAS OpenLABEL format is consistent 
with the base ASAM OpenLABEL format. 
Mypy can be run with `poetry run mypy .` in the root directory of this repository.
Merge requests will only be merge-able if MyPy has nothing to complain about. 

### Ruff
[Ruff](https://docs.astral.sh/ruff/) is a Python linter and code formatter.
It can be run with `poetry run ruff .` in the root directory of this repository.

#### Documentation
Please write docstrings for the class itself and each of its class variables. 
For inspiration of what to write into the docstring, look at the description of the object or field 
in the official ASAM OpenLABEL spec ([link](https://www.asam.net/project-detail/asam-openlabel-v100/)). 
The docstrings allow the use of reStructuredText ([link](https://pydoctor.readthedocs.io/en/latest/docformat/restructuredtext.html)).

We are using [pydoctor](https://pydoctor.readthedocs.io/en/latest/index.html) to automatically generate documentation from the docstrings in our code. 
The documentation generation can be run using `poetry run pydoctor` and is written in the directory `documentation/` 
in the root of this repository.

If administrator privileges required for this operation under MS Windows and poetry is not installed for the administrator account, poetry can be run from Powershell via:

```Start-Process poetry -ArgumentList "run pydoctor" -Verb runAs```

The documentation is ignored from Git, as it is better to generate it by hand from the latest commit.
beamas 1.0.0
Beam Analysis Software
License: MIT
Requires Python: >=3.6

Welcome to BeamAS, a powerful Python library designed for efficient beam analysis using advanced meshless methods. With BeamAS, users can effortlessly apply complex calculations and simulations without the need for traditional mesh generation. Our Python library provides a user-friendly interface, enabling students, engineers and researchers to explore the behavior of beams under various types of loading with ease and accuracy. Whether you're working on structural analysis, educational projects, or research, BeamAS equips you with the tools to elevate your work to the next level. Dive in and discover the future of beam structural analysis !
Visit our website for the complete user guide.
drf-permission-rules 0.4.6
Declarative access policies/permissions modeled after AWS' IAM policies.
License: MIT
Requires Python: <4.0,>=3.9
Keywords: django, restframework, policy, authorization, declaritive

# drf-permission-rules
permission rules for DRF base on drf access policy

## Installation

```
pip install drf-permission-rules
```

## Usage

### ViewSet permissions
```
class UserViewSet(ModelViewSet, PermissionsActionMixin):
    ...

    @action(methods=["GET", "POST"], detail=False)
    def some_action(self, request, *args, **kwargs):
        ...


GET /api/users/permissions
Response:
{
    "create": true,
    "list": true,
    "some_action": false
}
```

### Multiple ViewSet permissions

```
# views.py
class UserViewSet(ModelViewSet, PermissionsActionMixin):
    ...

class BookViewSet(ModelViewSet, PermissionsActionMixin):
    ...

class AuthorViewSet(ModelViewSet, PermissionsActionMixin):
    ...


# urls.py
urlpatterns = [
    ...
    path("api/", include("permission_rules.urls")),
]


GET /api/users/permissions
Response:
{
    "User": {
        "create": true
        "list": true,
        "some_action": false
    }
    "Book": {
        "create": true,
        "list": true
    },
    "Author": {
        "create": false,
        "list": true
    }
}
```


## Speedup

You can get permissions from a file instead of a database.

```
# settings.py


PERMISSION_RULES_SETTINGS = {
    "use_file_instead_db": true,
    "permission_rules_file_path": "/path/to/permissions.json"
}
```