semvec/pypi-packages huggingface dataset:
free-deepl-translator 1.2.3
Unofficial free DeepL translator client (No auth)
Requires Python: >=3.8

# free-deepl-translator

**Unofficial free DeepL translator client for Python** — this package lets you translate text using DeepL without requiring an API key by or an Auth token.

> ⚠️ **Unofficial**: this project reverse-engineers DeepL's web protocol. It may break if DeepL changes their site and may violate DeepL's Terms of Service. Use at your own risk.


## Installation

Install from PyPI:

```bash
pip install free-deepl-translator
```

## Quick example

```python
import free_deepl_translator as deepl

# Create the client
deepl_instance = deepl.DeeplTranslator()

# Create a session (returns True on success and False on failure)
d = deepl_instance.Session() # use *.SessionAsync() for async version

if d != True:
    print(f"Error")
    exit(1)
print("Session created")

# Simple translate to French
translated = deepl_instance.Translate("H-h-how are you ?\nPlease answer me", target_lang="fr") # use *.TranslateAsync() for async version
if translated["status"] == 0:
    print(f"Translated text: {translated['text']}")
#time.sleep(5)
# Translate from French to English
translated = deepl_instance.Translate("Je vais bien, merci", target_lang="en", source_lang="fr")
if translated["status"] == 0:
    print(f"Translated text: {translated['text']}")

# Advanced call: specify model, glossary and formality
translated = deepl_instance.Translate(
    "Can you please send me the report?",
    target_lang="ja",
    source_lang="en",
    target_model="next-gen",
    glossary=[{"source": "report", "target": "動画"}],
    formality="formal",
)
if translated["status"] == 0:
    print(f"Translated text: {translated['text']}")

# Close the Session
deepl_instance.Close() # use *.CloseAsync() for async version
```

To use it with Async you can use `SessionAsync()`, `TranslateAsync()` and `CloseAsync()`.

## Return format

`Translate()` and `TranslateAsync()` return a dictionary like:

```python
{
  "status": 0,    # 0 = success, non-zero = error
  "text": "...", # translated text when successful
  "msg": "...", # error message (when status != 0)
}
```

## Features

- Translate text without an API key (no auth).
- Supports explicit `source_lang`.
- `target_model` selection (e.g. `next-gen` or `classic`).
- Glossary entries (list of `{source, target}` mappings).
- `formality | tone` control.
llama-index-readers-gitlab 0.5.1
llama-index readers gitlab integration
Requires Python: <4.0,>=3.9

# LlamaIndex Readers Integration: Gitlab

`pip install llama-index-readers-gitlab`

The gitlab readers package leverages [python-gitlab](https://python-gitlab.readthedocs.io/en/stable/index.html) to fetch contents from gitlab projects. It consists of two separate readers:

1. Repository Reader
2. Issues Reader

Access token or oauth token is required for private groups and projects.

## Repository Reader

This reader will read through files in a repo based on branch or commit.

```python
import gitlab
from llama_index.readers.gitlab import GitLabRepositoryReader

gitlab_client = gitlab.Gitlab("https://gitlab.com")

project_repo_reader = GitLabRepositoryReader(
    gitlab_client=gitlab_client,
    project_id=project_id,
    verbose=True,
)

docs = project_repo_reader.load_data(file_path="README.rst", ref="develop")
```

## Issues Reader

```python
import gitlab
from llama_index.readers.gitlab import GitLabIssuesReader

gitlab_client = gitlab.Gitlab("https://gitlab.com")

# load issues by project id
project_issues_reader = GitLabIssuesReader(
    gitlab_client=gitlab_client,
    project_id=project_id,
    verbose=True,
)

docs = project_issues_reader.load_data(
    state=GitLabIssuesReader.IssueState.OPEN
)

# load issues by group id
group_issues_reader = GitLabIssuesReader(
    gitlab_client=gitlab_client,
    group_id=group_id,
    verbose=True,
)

docs = group_issues_reader.load_data(state=GitLabIssuesReader.IssueState.OPEN)
```
flounder-score 1.3.0
Flounder score library
Requires Python: >=3.9
Keywords: library, dna, genetics, bioinformatics, joke

# Flounder Score

[![DNA](https://imgs.xkcd.com/comics/dna.png)](https://xkcd.com/1605/)

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/davep/flounder_score/code-checks.yaml)](https://github.com/davep/flounder_score/actions)
[![GitHub commits since latest release](https://img.shields.io/github/commits-since/davep/flounder_score/latest)](https://github.com/davep/flounder_score/commits/main/)
[![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/davep/flounder_score)](https://github.com/davep/flounder_score/issues)
[![GitHub Release Date](https://img.shields.io/github/release-date/davep/flounder_score)](https://github.com/davep/flounder_score/releases)
[![PyPI - License](https://img.shields.io/pypi/l/flounder_score)](https://github.com/davep/flounder_score/blob/main/LICENSE)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flounder_score)](https://github.com/davep/flounder_score/blob/main/pyproject.toml)
[![PyPI - Version](https://img.shields.io/pypi/v/flounder-score)](https://pypi.org/project/flounder-score/)

From early 2018 until late 2022 I worked as a software developer attached to
a bioinformatics team. One of the things I saw the team around me doing was
a lot of "scoring" of sequences, etc (imagine a lot of layman hand-waving
here, obviously).

Playing on the "DNA is just code" nonsense trope, it became a bit of a
running joke for me to suggest that they should try a scoring system based
on a popular tile-based word game. Eventually, with a bit of spare time on
my hands, I decided to actually write and publish a library that implemented
this.

And so the *Flounder Score* was born.

No, it's not a serious library, but I also think it makes a serious point
about [people who think "it's just code"](https://xkcd.com/1605/).

## Installation

The library can be installed [from
PyPI](https://pypi.org/project/flounder-score/):

```sh
$ pip install flounder-score
```

## Usage

See [the main documentation](https://flounder-score.davep.dev/) for details
on what this library provides and how to use it.

[//]: # (README.md ends here)