semvec/pypi-packages huggingface dataset:
mangalib-api 0.0.1
Unofficial lib sites api (ranobelib.me, mangalib.me, ... )
License: MIT
Requires Python: >=3.12

# sociallib-py

Unofficial API for lib sites (mangalib.me, ranobelib.me, etc.)

## Features

- Read info about all types of objects (People, Manga, Franchise, etc.)
- Use Bearer token for authorization
- Download all objects (Manga, Ranobe, etc.)
- Read, remove, mark as read, and download notifications
- Search all types of objects
- Like chapters

## Installation

```
pip install sociallib-py
```

> Note: This does not install the `examples/` folder.

## Usage

Check the files in the `examples/` folder for usage examples. For instance:

Create `user.json` file with json dictionary or pythonic dict with optional "Authorization" and "User-Agent" keys and other headers if you want.

```python
import asyncio
from httpx import AsyncClient, Limits, Timeout

from sociallib.libapi import LibAccount
from sociallib.novelTypes import Hentai
from sociallib.addition_tools import extract_slug_url


async def likeall(full_url: str):
    async with AsyncClient(
        limits=Limits(max_connections=30), timeout=Timeout(60), http2=True
    ) as cli:
        la = LibAccount(cli, "user.json")
        url = extract_slug_url(full_url)
        if url:
            manga = await Hentai(
                cli, auth_token=la.beriar, print_warnings=False
            ).recover_model(url, use_auth=True)
            chs = await manga.chapters()
            print(
                sum(
                    await asyncio.gather(
                        *[e.set_like(True, do_and_think_later=True) for e in chs]
                    )
                ),
                "likes switched",
            )

asyncio.run(likeall(input("full_url: ")))

```

## Contributing

Feel free to modify and send suggestions or pull requests. Issues and feedback are welcome!

## Todo

1. Split `sociallib/addition_tools.py` into `addition_tools.py` and `core.py`
2. Use `sociallib/color_codes.py` in all scripts
3. Implement more API features, like comment chapters

## License

This project is licensed under MIT. See the LICENSE file for details.
sociallib-api 0.0.1
Unofficial lib sites api (ranobelib.me, mangalib.me, ... )
License: MIT
Requires Python: >=3.12

# sociallib-py

Unofficial API for lib sites (mangalib.me, ranobelib.me, etc.)

## Features

- Read info about all types of objects (People, Manga, Franchise, etc.)
- Use Bearer token for authorization
- Download all objects (Manga, Ranobe, etc.)
- Read, remove, mark as read, and download notifications
- Search all types of objects
- Like chapters

## Installation

```
pip install sociallib-py
```

> Note: This does not install the `examples/` folder.

## Usage

Check the files in the `examples/` folder for usage examples. For instance:

Create `user.json` file with json dictionary or pythonic dict with optional "Authorization" and "User-Agent" keys and other headers if you want.

```python
import asyncio
from httpx import AsyncClient, Limits, Timeout

from sociallib.libapi import LibAccount
from sociallib.novelTypes import Hentai
from sociallib.addition_tools import extract_slug_url


async def likeall(full_url: str):
    async with AsyncClient(
        limits=Limits(max_connections=30), timeout=Timeout(60), http2=True
    ) as cli:
        la = LibAccount(cli, "user.json")
        url = extract_slug_url(full_url)
        if url:
            manga = await Hentai(
                cli, auth_token=la.beriar, print_warnings=False
            ).recover_model(url, use_auth=True)
            chs = await manga.chapters()
            print(
                sum(
                    await asyncio.gather(
                        *[e.set_like(True, do_and_think_later=True) for e in chs]
                    )
                ),
                "likes switched",
            )

asyncio.run(likeall(input("full_url: ")))

```

## Contributing

Feel free to modify and send suggestions or pull requests. Issues and feedback are welcome!

## Todo

1. Split `sociallib/addition_tools.py` into `addition_tools.py` and `core.py`
2. Use `sociallib/color_codes.py` in all scripts
3. Implement more API features, like comment chapters

## License

This project is licensed under MIT. See the LICENSE file for details.
local-dsa 0.1.2
A package for solving coding problems with automatic problem fetching and comments injection
License: MIT
Requires Python: >=3.7

# Local DSA

**local_dsa** is a Python package designed to streamline coding problem-solving.  
It automatically fetches related problem suggestions from a local database,  
inserts automated comments into your code, and allows you to run solution tests  
easily just from a single .py file

---

## Features
- **Global `question` object**  
  Easily set and access:
  ```python
  from local_dsa import question

  question.name = "Sum of Two Numbers"
  question.id = 1
  ```
- **Automatic problem suggestions**  
  Finds similar problems and inserts comments directly after your `question.name` line.
- **Problem statement injection**  
  Adds the problem statement after `question.id` line.
- **Solution testing & storage**  
  - `test_problem()` → runs test cases without storing code  
  - `solve_problem()` → runs test cases and stores your solution in the database.

---

## Installation
Install using pip:
```bash
pip install local-dsa
```

---

## Quick Start

### Example usage:
```python
from local_dsa import question, test_problem

# Set question details
question.name = "Sum of Two Numbers"
question.id = 1

class SumTwoNumbers:
    def solve(self, a, b):
        return a + b

# Test the solution
test_problem(question, SumTwoNumbers)
```

**Expected auto-comments in your file after saving & running:**
```python
question.name = "Sum of Two Numbers"
## Problem found here: [ID: 1] Sum of Two Numbers

question.id = 1
## Attempting problem: Sum of Two Numbers
## Given two integers, return their sum.
```

---

## Command Overview
- **`solve_problem(question, solver_class)`**  
  Runs test cases and stores the function code.
- **`test_problem(question, solver_class)`**  
  Runs test cases without storing.

---

## Project Structure
```
local_dsa/
├── __init__.py
├── question.py
├── main.py
├── check_solutions.py
├── code_storage.py
```

---

## Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.

---

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.