semvec/pypi-packages huggingface dataset:
autoambience-uv 1.0.1
An automatic ambient music generator made with a python MIDI connection and a custom Vital synth!
Requires Python: >=3.13

# Auto Ambience
**An automatic ambient music generator made with Python and Vital!**

## Installation and Usage
1. Clone the repository
2. [Install Vital](https://vital.audio/) (which unfortunately requires an account 😭)
3. Open Vital, click the ≡ icon, and select "Open External Preset"
4. Navigate to the repository and select "autoambience.vital"
5. Run "pip install -r requirements.txt" in the repository
6. Run "main.py" with Python in the terminal

Then program, relax, zone out, or do whatever to some infinite ambient music!

## Controls
When run in a terminal, AutoAmbience has a text interface that can be used to play/pause the chords, change the tension mode, and change the rate at which chords are played.

The leftmost button is a simply play/pause button. Pressing it starts playing the music after beginning the program. Pressing it again waits for the current chord to finish before stopping it.

The middle button rotates the tension setting between these 3 options:
1. High Tension - the script will be more likely to choose more tense or exciting options
2. Low tension - the script will be more likely to choose more calm or common options
3. Oscillating tension - the script will change between the two modes automatically, switching when the cumulative tension is high or low

The last button rotates between 5 values for the chord rate, measured in seconds per chord. These values are 9 s/c, 12 s/c, 15 s/c, 18 s/c, and 21 s/c.

Below the buttons, there is also a small display that shows the chord playing currently, and the three chords before it. Unfortunately, due to limitations imposed by the TUI library I'm using (urwird), this doesn't update unless a graphics update is imposed, like switching between the buttons or resizing the window. 

<div align="center">
  <a href="https://shipwrecked.hackclub.com/?t=ghrm" target="_blank">
    <img src="https://hc-cdn.hel1.your-objectstorage.com/s/v3/739361f1d440b17fc9e2f74e49fc185d86cbec14_badge.png" 
         alt="This project is part of Shipwrecked, the world's first hackathon on an island!" 
         style="width: 35%;">
  </a>
</div>
ks-shop-python-sdk 0.3.0
Kuaishou Shop Python SDK
Requires Python: >=3.10

##### 安装
```sh
pip install  ks-shop-python-sdk
```

##### 获取access_token
```python
from ks_shop_api.utils import get_access_token_by_code, refresh_access_token


app_id = "xxxx"  # 应用ID
app_secret = "xxxx"  # 应用密钥
code = "xxxx"  # 首次授权通过回调地址中的code
first_res = get_access_token_by_code(app_id, app_secret, code)
print(first_res)


refresh_token = "xxxxx"  # 刷新令牌
refresh_res = refresh_access_token(app_id, app_secret, refresh_token)
print(refresh_res)
```


##### 使用
```python
from ks_shop_api.funds.request import OpenFundsCenterAccountInfoRequest
from ks_shop_api.funds.schema import OpenFundsCenterAccountInfoSchema
from ks_shop_api.schema import baseAppInfoSchema


access_token = 'xxxx'
base_app_info = baseAppInfoSchema()
base_app_info.app_key = "xxxx"
base_app_info.secret = "xxxx"
base_app_info.sign_secret = "xxxx"
print(base_app_info)
ks_obj = OpenFundsCenterAccountInfoRequest(**base_app_info.model_dump())

ks_schema = OpenFundsCenterAccountInfoSchema()
print(ks_schema)
print(ks_schema.model_dump())

res = ks_obj.getResponse(access_token, params=ks_schema)
print(res)


######或者 dict########
access_token = 'xxxx'
app_info = {
    "app_key": "xxxx",
    "secret": "xxxx",
    "sign_secret": "xxxx"
}
ks_obj: RestApi = OpenFundsCenterAccountInfoRequest(**app_info)

params = {}
res = ks_obj.getResponse(access_token, params=params)
print(res)
```
acme-weather 0.7.0
Add your description here
Requires Python: >=3.13

An experiement with weather and sunrise times.

## tl;dr
```
uvx acme-weather
```

## Run

Currently using `uv` for development. See [uv install instructions](https://docs.astral.sh/uv/getting-started/installation/)

```sh
git clone https://github.com/philion/clw
cd clw
uv run clw
```

![screenshot of clw tool showing the 12 hour weather forecast](./screenshot.png)


## Build

Standard [uv build and publish](https://docs.astral.sh/uv/guides/projects/) tools are used.

```
cd clw
uv build
# insert testing here
uv publish
```

To make `uv publish` smooth, I set the env var `UV_PUBLISH_TOKEN` with a valid PyPI token:
```
export UV_PUBLISH_TOKEN=pypi-yourReallyLongPyPIPublishingToken
```

## To Do

Current near-term implementation plans:
- [x] day-or-night based on sun rise/set times
- [ ] clean up visuals, provide external CSS
- [x] published to PyPI - https://pypi.org/project/acme-weather/
- [x] commandline app packaging with uv support
- [ ] add release management, to bump version, test and publish
- [ ] visual high and low temps: hottest, hot, warm, average, cool, cold, coldest
- [ ] visual percipitation ???
- [ ] add moon rise, zenith, set and phase
- [ ] add icons for dawn, sunrise, noon, sunset, dusk
- [ ] add images overlay for weather + sun/moon states
- [ ] better text-only *report*
- [ ] 15-minute version
- [ ] live-update mini-version
- [ ] standard set of widgets for [Textual](https://github.com/Textualize/textual)

### Thoughts on build automation

1. work in dev branch (or any)
2. completed pr/merge in `main` triggers **publish** pipline
3. bump version, build, test publish.

On commit or merge to and non-main branch, just run validate pipeline: test, coverage, format, ruff, etc.
layout-prompter 0.8.0
LangChain-based LayoutPrompter for content-agnostic/content-aware layout generation powered by LLM.
Requires Python: >=3.11

# LayoutPrompter

[![CI](https://github.com/creative-graphic-design/layout-prompter/actions/workflows/ci.yaml/badge.svg)](https://github.com/creative-graphic-design/layout-prompter/actions/workflows/ci.yaml)
[![Release](https://github.com/creative-graphic-design/layout-prompter/actions/workflows/release.yaml/badge.svg)](https://github.com/creative-graphic-design/layout-prompter/actions/workflows/release.yaml)
[![Deploy](https://github.com/creative-graphic-design/layout-prompter/actions/workflows/deploy.yaml/badge.svg)](https://github.com/creative-graphic-design/layout-prompter/actions/workflows/deploy.yaml)
[![PyPI](https://img.shields.io/pypi/v/layout-prompter.svg)](https://pypi.python.org/pypi/layout-prompter)

## Installation

```shell
pip install layout-prompter
```

## License

- Apache License 2.0
usepy 0.4.21
usepy
Requires Python: <4.0,>=3.7

<div align=center>
<img src="logo-shadow.svg" width="100" alt="logo">

`usepy`是一个简单易用的Python工具库，包含了一些常用的工具函数。

<a href="https://github.com/mic1on/usepy/actions/workflows/test.yml?query=event%3Apush+branch%3Amain" target="_blank">
    <img src="https://github.com/mic1on/usepy/workflows/test%20suite/badge.svg?branch=main&event=push" alt="Test">
</a>
<a href="https://pepy.tech/badge/usepy">
<img src="https://pepy.tech/badge/usepy" alt="Downloads"></a>
<a href="https://pypi.org/project/usepy" target="_blank">
    <img src="https://img.shields.io/pypi/v/usepy.svg" alt="Package version">
</a>

<a href="https://pypi.org/project/usepy" target="_blank">
    <img src="https://img.shields.io/pypi/pyversions/usepy.svg" alt="Supported Python versions">
</a>
</div>

### 安装

```bash
pip install usepy -U
```

<img src="./resources/overview.png"/>

更多参阅[官方文档](https://usepy.code05.com/)

## 贡献

欢迎提交PR，一起完善这个工具库。