semvec/pypi-packages huggingface dataset:
polaris-cli-tool 1.0.9
Polaris CLI - Modern Development Workspace Manager for Distributed Compute Resources
Requires Python: >=3.6

# Polaris CLI Tool

A modern development workspace manager for distributed compute resources.

## Features

- Register and manage compute resources
- Monitor system status
- Manage SSH connections
- Automated tunnel setup
- Cross-platform support

## Installation

```bash
pip install polaris-cli-tool
```

## Usage

```bash
# Start the service
polaris start

# Register a new miner
polaris register

# View compute resources
polaris view-compute

# Check status
polaris status

# Stop the service
polaris stop
```

## Requirements

- Python 3.6 or higher
- Windows, Linux, or macOS

## License

MIT License

## Author

Polaris Team (fred@polariscloud.ai)
subdeloc-tools 0.9.12
Subtitles delocalizer tools.
Requires Python: >=3.8

# Subtitle Delocalizer Tools
----------------------------

## SubTools

Main class

Common usage
```
res = pairsubs.pair_files("main_subtitle.ass", "japanese_reference.ass") # Generates PairSubtitles JSON
s = self.search_honorifics(res) # Modify texts in the PairSubtitles JSON, adding the required honorifics
honorific_fixer.fix_original("main_subtitle.ass", s) # Generates a new ASS file with updated subtitles
```

## Modules

### Extract Subs

Extract subtitle file from an MKV based on the index or the lang(Requires FFMPEG). Extracts both ASS and SRT subtitles.

```
from subdeloc_tools.modules import extract_subs

generated_filename = extract_subs_by_lang("subtitle.ass", "eng")
generated_filename = extract_subs_by_index("subtitle.srt", 1)
```

### Merger

Mux/Demux subs from an MKV file.

```
from .merger import Merger

merger = Merger()
merger.set_file("subtitle.mkv")
streams = merger.get_streams()
index = merger.get_language_index("en")
generated_filename = merger.demux("subtitle.mkv", index, "output.ass")
```

### Shift Subs

Shift subtitles a determined amount of seconds. Allows to choose a threshold to choose from which point to shift.

```
from subdeloc_tools.modules import shift_subs

generated_filename = shift_sub("subtitle.ass", 10, 102900) # Shift 10 seconds from 00:01:42
generated_filename = shift_sub("subtitle.ass", 10, 0) # Shift 10 seconds all subs
```

### Pair subs

Pair 2 subtitle file subs based on the time. Generates a PairSubtitles JSON

```
from subdeloc_tools.modules import pairsubs

res = pairsubs.pair_files("main_subtitle.ass", "japanese_reference.ass")
```

### Honorific Fixer

Receives a PairSubtitles JSON, and an ASS file used to generate it, and creates a new ASS file with the modified subs

```
from subdeloc_tools.modules import honorific_fixer

honorific_fixer.fix_original("main_subtitle.ass", s)
```

## Glossary

PairSubtitles JSON
```
[
  {
    "start": 0,
    "end": 12250,
    "reference": [
      {
        "start": 0,
        "end": 12180,
        "text": "こんにちは世界",
        "nl": 1
      }
    ],
    "original": [
      {
        "start": 1000,
        "end": 12250,
        "text": "Hello World",
        "nl": 1
      }
    ]
  },
  ...
]
```

Sister projects:
- [C Tools](https://github.com/EfronC/subdeloc_helper)
- [Delocalizer](https://github.com/EfronC/Delocalizer)
mongodb-tools 0.1.1
A simple database management package
Requires Python: >=3.6

# easy_db
 
easy_db is a simple and easy-to-use Python library for interacting with MongoDB databases. It provides a convenient way to define schemas, create data objects, and perform basic database operations.

## Installation

You can install easy_db using pip:

```bash
pip install easy_db
```

## Usage

Here is an example of how to use easy_db:

```python
from easy_db import Database, Schema
from datetime import datetime
import random

# Define a schema
schema = Schema(
    {
        'name': {
            'type': str,
            'default': 'John Doe',
            'apply': lambda x: x.upper()
        },
        'age': {
            'type': int,
            'default': 18,
            'apply': lambda x: random.randint(18, 60),
            'required': True
        },
        'email': {
            'type': str,
            'default': 'example@example.com'
        },
        'posted_at': {
            'type': str,
            'default': datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
            'apply': lambda x: datetime.now().strftime("%Y-%m-%d %H:%M:%S")
        }
    }
)

# Create a database instance
db = Database('mongodb+srv://username:password@cluster.mongodb.net/test', 'test', 'test')

# Insert data into the database
for i in range(10):
    db.create(schema, {})

# Print all data in the collection
db.printAll()
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
rdpermute 0.1.1
Perform permutation test proposed by Ganong and Jäger (2018) https://www.tandfonline.com/doi/full/10.1080/01621459.2017.1328356
Requires Python: <4.0,>=3.12

# rdpermute

Python package to perform the regression kink design (RKD) permutation test proposed by [Ganong and Jäger (2018)](https://www.tandfonline.com/doi/full/10.1080/01621459.2017.1328356).

This package is inspired by the Stata package of the same name [`rdpermute`](https://github.com/ganong-noel/rdpermute) relying heavily on the excellent [`rdrobust`](https://github.com/rdpackages/rdrobust). Contrary to the Stata package [`rdpermute`](https://github.com/ganong-noel/rdpermute), this package implements confidence intervals based on randomization inference following the algorithm proposed by [Ganong and Jäger (2018)](https://www.tandfonline.com/doi/full/10.1080/01621459.2017.1328356) (see Appendix C).  It also uses Python's [`multiprocessing`](https://docs.python.org/3/library/multiprocessing.html) resulting in better performance compared to the Stata package.