semvec/pypi-packages huggingface dataset:
aclogin 0.2.1
AtCoderのセッションクッキーを各種ツールに保存するためのツール
Requires Python: >=3.6
Keywords: atcoder, competitive-programming

# aclogin

AtCoderのセッションクッキーを各種ツールに保存するためのツール

## 概要

AtCoderでは、CAPTCHAの導入によりコマンドラインツールからの自動ログインができなくなりました。
このツールは、ブラウザでログインした後のセッションクッキー（REVEL_SESSION）を取得し、
各種コマンドラインツール（oj等）のクッキーファイルに保存することで、ツールからのAtCoderへのアクセスを可能にします。

## インストール方法

```bash
pip install aclogin
```

## 使い方

### 1. AtCoderにログイン

ブラウザでAtCoderにログインします。

### 2. REVEL_SESSIONクッキーを取得

REVEL_SESSIONクッキーはhttpOnly属性が設定されているため、JavaScriptから直接取得できません。以下の手順で手動で取得してください。

#### Step 1: 開発者ツールを開く

キーボードで **F12** キーを押すか、右クリックして「検証」または「Inspect」を選択します。

#### Step 2: Application/Storageタブを開く

開発者ツールの上部メニューから「Application」タブをクリックします。（Firefoxの場合は「Storage」タブ）

左側のサイドバーから「Cookies」→「https://atcoder.jp 」を選択します。

#### Step 3: REVEL_SESSIONの値をコピー

クッキーの一覧から「REVEL_SESSION」という名前の行を探します。

「Value」列の値を**ダブルクリック**して選択し、右クリックしてコピーするか、Ctrl+C（MacならCmd+C）でコピーします。

![](/img/session_location.png)

### 3. CLIツールでクッキーを保存

ターミナルで以下のコマンドを実行します。

```bash
aclogin
```

プロンプトが表示されたら、コピーしたREVEL_SESSIONクッキーの値を貼り付けます（Ctrl+V）。

## オプション

```
usage: aclogin [-h] [--tools TOOLS [TOOLS ...]] [--oj-cookie-path OJ_COOKIE_PATH] [--acc-cookie-path ACC_COOKIE_PATH]

AtCoder の REVEL_SESSION クッキーを各種ツールに保存します

optional arguments:
  -h, --help            ヘルプメッセージを表示して終了
  --tools TOOLS [TOOLS ...]
                        クッキーを保存するツール名（指定なしの場合は自動検出）
  --oj-cookie-path OJ_COOKIE_PATH
                        oj のクッキーファイルのパス
  --acc-cookie-path ACC_COOKIE_PATH
                        acc のセッションファイルのパス
```

## 対応ツール

現在、以下のツールに対応しています：

- [online-judge-tools (oj)](https://github.com/online-judge-tools/oj)
- [atcoder-cli (acc)](https://github.com/Tatamo/atcoder-cli)

## ライセンス

MIT
gym-lqr 0.0.2
Gym(nasium) Interface for LQR-Family Problems

## Gym Interface for LQR-Family Problems

Gym-LQR is a one-stop shop for data-driven
LQR research.

Gym-LQR creates a discrete-time LQR environment
from a subset of
[COMPleib](http://www.complib.de/) problems.
Currently supported systems:
- HEx - Helicopter models
- REAx - Reactor models
- DISx - Decentralized interconnected systems
- TG1 - 1072 MVA nuclear-powered turbo-generator
- AGS - Automobile gas turbine
- BDT1 - Realistic model of binary distillation tower
- MFP - Moored floating platform
- UWV - Control surface servo for underwater vehicle
- EBx - Euler-Bernoulli beam
- PAS - Piezoelectric bimorph actuator system design
- TF - Terrain following model
- PSM - Two-area interconnected power system
- NNx - Academic test problems
- DLRx - Models of space structure
- ROCx - Reduced order control problems


### Installation

```bash
pip install gym-lqr
```

Requires Python 3.10+.


### Basic Usage

#### Single-agent (Centralized LQR)

Single-agent interface follows a familiar Gymnasium (ex- OpenAI Gym) `gymnasium>=0.26` API.

```python
import gymnasium as gym
# Register the LQR environment
import gym_lqr

# Create a Linear HE1 helicopter model from the COMPleib example set
# Discretize at a sampling rate of dt=0.1
env = gym.make('LQR-v0', env_id='HE1', dt=0.1)

# Fix the random seed for reproducibility
env.action_space.seed(1337)

# Reset the environment to generate the first observation
observation, info = env.reset(seed=1337)
for _ in range(100):
    # this is where you would insert your policy
    action = env.action_space.sample()

    # step (transition) through the environment with the action
    # receiving the next observation, reward and if the episode has terminated or truncated
    observation, reward, terminated, truncated, info = env.step(action)

    # If the episode has ended then we can reset to start a new episode
    if terminated or truncated:
        observation, info = env.reset()

env.close()
```

#### Multi-agent (Distributed LQR)

In development.

### Future Releases

- Support for more COMPleib problems.
- Multi-agent (Distributed LQR) interface based on the
  [PettingZoo](https://pettingzoo.farama.org/index.html) API.

### References

1. Gymnasium - an API standard for reinforcement learning with a
   diverse collection of reference environments. Web: https://gymnasium.farama.org/index.html
2. COMPleib: COnstraint Matrix-optimization Problem library.
   Web: http://www.complib.de/
3. "Predictive Control for Linear and Hybrid Systems"
   by Francesco Borrelli, Alberto Bemporad, Manfred Morari (2017).
   Web: http://cse.lab.imtlucca.it/~bemporad/publications/papers/BBMbook.pdf
repotree 0.1.0
A CLI tool for displaying files tree with Git integration
Requires Python: >=3.6

# RepoTree

A command-line tool for displaying files tree with Git integration. This tool helps you visualize your project's file structure with support for Git-tracked files and .gitignore rules.

## Features

- Display files tree structure
- Git integration (show only tracked files)
- Respect .gitignore rules
- Show/hide hidden files
- Custom ignore patterns
- Configurable depth limit

## Installation

```bash
pip install repotree
```

## Usage

```bash
repotree [OPTIONS] [DIRECTORY]
```

### Options

- `-d, --depth DEPTH`: Maximum depth of the tree (default: 0 for unlimited)
- `-a, --all`: Show hidden files
- `-g, --git-only`: Show only Git tracked files
- `--respect-gitignore`: Respect .gitignore rules (default: True)
- `--no-respect-gitignore`: Don't respect .gitignore rules
- `-i, --ignore PATTERN`: Ignore files/directories matching pattern

### Examples

Display tree for current directory:

```bash
repotree
```

Show tree with hidden files:

```bash
repotree -a
```

Show only Git tracked files:

```bash
repotree -g
```

Limit tree depth to 2 levels:

```bash
repotree -d 2
```

Ignore specific patterns:

```bash
repotree -i node_modules -i "*.pyc"
```

## Development

1. Clone the repository:

```bash
git clone https://github.com/Eng-Elias/repotree.git
cd repotree
```

2. Create a virtual environment:

```bash
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
```

3. Install development dependencies:

```bash
make install-dev
```

4. Build the package:

```bash
make build
```

5. Clean build artifacts:

```bash
make clean  # Automatically detects your OS
```

6. Publish to PyPI:

```bash
make publish
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
fastmcp-test 0.1.0
Add your description here
Requires Python: >=3.13

# fastmcp-test

A minimal example server using `FastMCP`, providing simple tools and resources for generating random values and placeholder text. This can serve as a starting point for MCP-based APIs.

## Features

This server exposes the following:

### Tools

| Tool | Description |
|------|-------------|
| `get_random_number(min: int, max: int) -> int` | Returns a random integer between `min` and `max`. |
| `get_random_string(length: int) -> str` | Returns a random lowercase ASCII string of the specified `length`. |
| `get_random_bool() -> bool` | Returns a random boolean value (`True` or `False`). |

### Resources

| URI | Description |
|-----|-------------|
| `demo://lorem-ipsum` | Returns a static lorem ipsum string. |
| `demo://random-number` | Returns a random integer between 0 and 100. |
slapd 0.1.6
Controls a slapd process in a pythonic way
Requires Python: >=3.9
Keywords: ldap, slapd

# python-slapd [![Documentation Status](https://readthedocs.org/projects/slapd/badge/?version=latest)](https://slapd.readthedocs.io/en/latest/?badge=latest)
Controls your OpenLDAP process in a pythonic way.

```
pip install slapd
```

```python
>>> import slapd
>>> process = slapd.Slapd()
>>> process.start()
>>> process.init_tree()
>>> process.ldapwhoami().stdout.decode("utf-8")
'dn:cn=manager,dc=slapd-test,dc=python-ldap,dc=org\n'
>>> process.stop()
```

# Troubleshooting

On distributions like Ubuntu, apparmor may restrict *slapd* to access some files that
*python-slapd* has generated. This situation can be solved by passing slapd in complain mode:

```bash
sudo apt install --yes apparmor-utils
sudo aa-complain /usr/sbin/slapd
```