semvec/pypi-packages huggingface dataset:
env-cache 0.2
Get a Python environment for a Python version and requirements.txt file

Get a Python environment for a Python version and requirements.txt file

``env_cache`` manages a collection of Python environments. You request an
environment for a specific Python version and a set of requirements (preferably
with pinned versions, like from ``pip freeze``). It can either create a new
environment with these packages, or retrieve one it already made with the same
arguments.

To get different versions of Python, ``env_cache`` can use
`pyenv <https://github.com/pyenv/pyenv>`_, `conda <https://docs.conda.io/en/latest/>`_,
or `spack <https://spack.io/>`_. It can also work with a single 'fixed' Python
interpreter to create virtualenvs - in this case, only one Python version is
available.

Usage (with pyenv):

.. code-block:: python

    import sys
    from pathlib import Path

    from env_cache import PyenvEnvMaker, EnvsManager

    if len(sys.argv) != 3:
        sys.exit("Usage: eg-pyenv.py 3.8.11 path/to/requirements.txt")

    py_version, reqs_path = sys.argv[1:]
    reqs = Path(reqs_path).read_text('utf-8')

    envmgr = EnvsManager(Path('my-envs'), PyenvEnvMaker())
    env_dir = envmgr.get_env(py_version, reqs)

It returns a `pathlib <https://docs.python.org/3/library/pathlib.html>`_ Path
object (``env_dir`` above) pointing to the environment directory. Python can
be run from ``bin/python`` within this directory.

It also records each time an environment is requested in a crude ``usage.csv``
file in the environment directory. This is meant to help with cleaning up
unused environments, but it may go away or change completely in a future version.

This package is written primarily for internal use at `European XFEL
<https://www.xfel.eu/>`_, so it's fairly rough, and we might make breaking
changes without warning.
autoReRun 1.3.0
A simple program to automatically kill running process(es) and re-spawn new process(es) for the runnable files everytime some specified file(s) get modified (or deleted or created). For example, Automatically re-starting any server when the server file(s) is modified.
Requires Python: >=3.6
Keywords: auto rerun, auto run, file runner, update, updater

# autoReRun v1.3.0

```pip install autoReRun --upgrade```


###### <br>A simple program to automatically kill running process(es) and re-spawn new process(es) for the runnable files everytime some specified file(s) get modified (or deleted or created). For example, Automatically re-starting any server when the server file(s) is modified.

<br>To install: 
```
pip install autoReRun --upgrade
pip3 install autoReRun --upgrade
python -m pip install autoReRun --upgrade
python3 -m pip install autoReRun --upgrade
```


#### <br><br>Using this program is as simple as:
```
from autoReRun import AutoReRun
toRun = {
    "server1.py":["-p 5000", "-h 0.0.0.0"], # file A to run
    "server2.py":["-p 6000"], # file B to run
         }

toCheck = ["server1.toml", "server2.toml"] # files to check for updates

# start the process
AutoReRun(toRun=toRun, toCheck=toCheck)
```

### Future implementations:
* Only limited to python files, make it work with any other file type.
* Way to turn off debugger.


###### <br>This project is always open to suggestions and feature requests.
pyupbit-for-devs 0.1.3
Augmented pyupbit for Developers
Requires Python: >=3.6

## Augmented pyupbit for Developers to enable better debugging experience

[pyupbit-for-devs (PyPi link)](pypi.org/project/pyupbit-for-devs/)

## License

```xml
pyupbit-for-devs package:
   Copyright 2024 Sanghoon Lee (DSsoli). All Rights Reserved.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Modifications, Additions, and Deletions:
    - Additions: trade_utils.py for Robust API/Function Calls with correct response assurance and retries
    - Deletions: pyupbit's custom error handlings
    - Modifications: functions in quotation_api.py, request_api.py, and exchange_api.py,
        in order to show raw and detailed response from Upbit API directly for debugging purposes.

Base code for pyupbit-for-devs package (pyupbit):
   Copyright 2021 Jonghun Yoo, Brayden Jo, pystock/pyquant (sharebook-kr), (et al.). All Rights Reserved.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
```
model-community 0.1
A tool for downloading and extracting machine learning models from Model Community, the world's largest Chinese model website.
Requires Python: >=3.6

# Model Community - 模型工具

**Model Community** 是全球最大的中文模型网站，提供了丰富的机器学习、自然语言处理等模型资源。本工具用于自动下载 **Model Community** 网站中的模型，并进行解压，帮助你轻松获取所需模型。

## 介绍

Model Community 模型下载工具是一个 Python 包，用于从 **Model Community** 网站上下载和解压所需的模型文件。通过简单的 API 调用，用户只需提供模型的名称和下载目录，即可自动完成模型的下载与解压，极大地简化了模型的获取过程。

### 功能

- 自动从 **Model Community** 网站下载指定模型
- 支持 `.tar.gz` 和 `.zip` 格式的压缩文件
- 支持自动解压模型文件到指定目录
- 支持进度条显示，便于监控下载进度

### 适用场景

- **机器学习工程师**：快速下载所需模型，节省手动下载和解压的时间。
- **研究人员**：获取最新的中文预训练模型，进行模型评估或迁移学习。
- **开发者**：集成到自己的项目中，自动化模型下载和管理。

## 安装

你可以通过以下命令安装这个工具包：

```bash
pip install model_community
trustpoll 0.1.0
Package for creating and interacting  with surveys on your applications
Requires Python: >=3.6

# blockchain elections

To run the project,
python main.py

Apart from main.py (containing the backend) and the static folder (containing the frontend html files), all other files are not required unless specifically needed for a particular task. They just have been kept to know the development history.

To install the dependencies,
pip install -r requirements.txt

PLEASE NOTE:
Put your private key and other details in .env file
steammarket 2.0.0
A Python API for getting prices from the Steam market.
Requires Python: >=3.10

# steammarket

Python module to quickly get item prices from Steam Marketplace.

## Installation

`pip install steammarket`

OR

## Development

```bash
git clone https://github.com/MatyiFKBT/pysteammarket
cd pysteammarket
uv sync
uv run pytest
```

## Usage

### Example in TF2

```python
import steammarket as sm

item = sm.get_tf2_item('Strange Professional Killstreak Scattergun')
for listing in item.listings:
    print(listing.price)
```

### get_item

```python
get_item(appid, name, currency='EUR')
```

Gets item listings from the `Steam Marketplace`.

@appid ID of game item belongs to.

@name: Name of item to lookup. Use the exact name from the community market.

@currency: Abbreviation of currency to return listing prices in.
Accepted currencies:`USD,GBP,EUR,CHF,RUB,KRW,CAD`

Defaults to `EUR`.
Please lookup the proper abbreviation for your currency of choice.

Returns a json object
Example:

```json
{
    "success": true,
    "lowest_price": "0,92Ç",
    "volume": "15",
    "median_price": "0,80Ç"
}
```

### get_multiple

```python
get_multiple(items, appid=440, currency='EUR')
```

Fetch multiple items using get_item().

### get_tf2_item

```python
get_tf2_item(item, currency='EUR')
```

Fetches an item from TF2. (Defaults the `appid` to 440)

### get_csgo_item

```python
get_csgo_item(item, currency='EUR')
```

Fetches an item from CSGO. (Defaults the `appid` to 730)
dummy-decorator 1.0.0.post1
A simple python decorator that does nothing
Requires Python: >=3.8

# dummy-decorator: A simple python decorator that does nothing

If you need to make a logic when some useful decorator is optional, you can use this dummy decorator to replace it when needed.

## Installation

Use the following command to install the package:

```bash
pip install dummy-decorator
```

## Usage example

```py
from dummy_decorator import dummy_decorator

@dummy_decorator
def function():
    ...
```
python-rson 0.1.1
Python implementation of RSON (Reference JSON)
Requires Python: >=3.8

# Python RSON


RSON is a superset of the JSON format. It extends JSON with the primary goal of allowing
references in the JSON itself.

In addition to that, RSON also allows:
- [x] Line comments
- [x] Block comments
- [x] Trailing commas

> These are just some nicities are not the primary goal of the RSON format.


## Usage

The RSON format allows references by adding 2 types of tokens:
1. DEF node - defines a `ref-name` for the value
2. REF node - references the given `ref-name`

The `DEF` node can be used on any JSON value. This node defines a name for the value which can then used
to refer to the same value.
The `REF` node can only appear as an *object value* or an *array member*, and is used to refer to a
defined name.

Here is an example of how this would work:
```json
// team.rson

[
    {
        "members": [
            {
                "name": "Alice",
                "role": $ROLE_DEVELOPER
            },
            {
                "name": "Bob",
                "role": $ROLE_MANAGER
            },
            {
                "name": "Charlie",
                "role": $ROLE_DESIGNER
            }
        ],
        "roles": [
            {
                "name": "Developer"
            }(ROLE_DEVELOPER),
            {
                "name": "Designer"
            }(ROLE_DESIGNER),
            {
                "name": "Manager"
            }(ROLE_MANAGER)
        ]
    }
]
```

We can load the `teams.rson` file with the following code:
```py
from rson import load

with open("teams.rson") as f:
    team = load(f)[0]

    target_role_name = input("Which role to look for? ")

    for role in team["roles"]:
        if role["name"].lower() == target_role_name.lower():
            target_role = role
            break
    else:
        print("Could not find role " + target_role_name)
        exit()

    members_with_role = [
        member for member in team["members"]
        if member["role"] is target_role # <- note the identity check here
    ]

    print(f"Found {len(members_with_role)} members with role {role['name']}:")
    for i, member in enumerate(members_with_role):
        print(f"\t{i}. {member['name']}")

```

and a sample execution:
```
Which role to look for? developer
Found 2 members with role Developer:
        0. Alice
        1. David
```

## Specification

The `ref-name` must conform to the following regex:
```re
[A-Za-z_][A-Za-z_0-9]*
```

Or, in plain english:
> The first character must be a valid english letter or an underscore, and the
> following letters must be either an english letter, an underscore or a digit.
> A `ref-name` must have at least 1 character (the first character).


A `DEF` node can be used for every JSON value, so this makes the following
valid as well:
```json
{
    "organization": {
        "name": "Xpo Development"(ORG_NAME)
    },
    "title": $ORG_NAME
}
```


## Contributing

Feel free to open an issue or a PR.

## ToDo

- [x] Implement the `load` function
- [x] Implement the `loads` function
- [ ] Implement the `dump` function
- [ ] Implement the `dumps` function
nova-python 0.1.3
Official Python SDK for the Wandelbots
Requires Python: <4.0,>=3.10

# nova-python

This library provides an SDK for the Wandelbots NOVA API.

The SDK will help you to build your own apps and services on top of NOVA and makes programming a robot as easy as possible.

## Requirements

This library requires
* Python >=3.10

## Installation

To use the library, first install it using the following command

```bash
pip install nova-python
```

Then import the library in your code

```python
from nova import Nova, MotionGroup
```

## Development

To install the development dependencies, run the following command

```bash
poetry install
```

## Usage

Have a look at the [examples](/examples) directory to see how to use the library.