semvec/pypi-packages huggingface dataset:
album-docker 0.2.0
album plugin for building docker images from solutions
License: MIT
Requires Python: >=3.7
Keywords: virtual, environments, imaging, data analysis

# Album plugin for creating Docker images from solutions

Plugin for creating Docker images from Album solutions.

The plugin allows you to package an Album solution into a Docker image, which can then be used to run the solution in a containerized environment,
containing all necessary dependencies and configurations.
Behavior of the container will be similar to the `album run` command, but the solution will be installed in a
Docker image instead of the local environment.
This is particularly useful for ensuring that the solution runs with all its dependencies in a consistent environment.

## Installation:

1. [Install Album](https://docs.album.solutions/en/latest/installation-instructions.html#)
2. Activate the album environment:

```
conda activate album
```

3. Install the album docker plugin:

```
pip install album-docker
```

## Usage:

To create a docker image which contains Album with the passed solution installed run following command:

If your solution is in a directory, you can copy the solution.py file into a new folder, e.g. `mySolutionFolder`, and then run the command from that folder.

```
mkdir mySolutionFolder
cp /path/to/your/solution.py mySolutionFolder/
```

Then run the following command to create the docker image:

```

album docker --solution mySolutionFolder --output_path /your/output/path
```

The outcome will be a docker image with the tag `<group>:<name>:<version>` of the solution, where `<group>`, `<name>`, and `<version>` are defined in the solution.py file.

### Input parameter:

- solution: The album solution which should be packed into an executable.
- output_path: The path where the executable should be saved
- install-flags: Flags to pass to the album install command, e.g. '--allow-recursive'.
- install-deps: Dependencies to install in the docker image, e.g. 'gxx' or 'gxx cmake'. This line will be added to the Dockerfile as a RUN command, so you can use any command that is valid in a Dockerfile.

## Example:

```
album docker --solution mySolutionFolder --output_path /your/output/path --install-flags="--allow-recursive" --install-deps="apt update && apt install -y gxx cmake"
```

This will create a docker image with the tag <group:name:version> of the solution.
Inside the image, the solution is installed together with the dependencies gxx and cmake.
quickconn 0.2.0
Unified HTTP clients: HTTP/1.0, HTTP/1.1, HTTP/2, HTTP/3 and Cloudflare solver
License: MIT
Requires Python: >=3.9
Keywords: http http1 http2 http3 cloudscraper client requests

# QuickConn

QuickConn هي مكتبة بايثون موحدة لدعم جميع أنواع الـ HTTP: HTTP/1.0، HTTP/1.1، HTTP/2، HTTP/3، مع دعم تجاوز حماية **Cloudflare**.

---

## 📦 التثبيت

يمكنك تثبيت المكتبة مباشرة من PyPI (بعد رفعها) أو من ملف setup.py محليًا:

### التثبيت من PyPI

```bash
pip install QuickConn
```

### التثبيت محليًا من المشروع

```bash
git clone https://github.com/Gisnsl/QuickConn.git
cd QuickConn
pip install .
```

---

## ⚡ الاستخدام

### استيراد المكتبة

```python
from QuickConn import Http1Client, Http2Client, Http3Client, Http10Client, CloudFlareSolver
```

---

### 🔹 HTTP/1.0 Client

```python
response = Http10Client.get("http://httpbin.org/get", headers={"User-Agent": "MyClient"})
print(response.status_code)
print(response.text)
print(response.json())
print(response.headers)
print(response.cookies)
```

---

### 🔹 HTTP/1.1 Client

```python
response = Http1Client.get(
    "https://httpbin.org/get",
    headers={"User-Agent": "MyClient"},
    params={"test": "123"},
    proxy={"http": "http://user:pass@host:port"},
    data=None,
    json={"key": "value"},
    file="path/to/file.txt"
)
print(response.status_code)
print(response.text)
```

---

### 🔹 HTTP/2 Client

```python
response = Http2Client.get(
    "https://httpbin.org/get",
    headers={"User-Agent": "MyClient"},
    params={"foo": "bar"},
    proxy={"http": "http://user:pass@host:port"},
    data=None,
    json={"hello": "world"},
    file="path/to/file.txt"
)
print(response.status_code)
print(response.text)
print(response.json())
print(response.headers)
```

---

### 🔹 HTTP/3 Client

> **ملاحظة:** HTTP/3 يعمل بشكل **غير متزامن** داخليًا، لكن يمكن استخدامه مباشرة بدون إنشاء كائن:

```python
response = Http3Client.get(
    "https://httpbin.org/get",
    headers={"User-Agent": "MyClient"},
    params={"foo": "bar"},
    data=None,
    json={"key": "value"},
    files="path/to/file.txt"
)
print(response.status_code)
print(response.text)
print(response.headers)
```

---

### 🔹 Cloudflare Solver

```python
response = CloudFlareSolver.get(
    "https://example-protected-site.com",
    headers={"User-Agent": "MyClient"}
)
print(response.status_code)
print(response.text)
```

---

## ⚙️ خيارات شائعة

* **headers**: إرسال رؤوس HTTP إضافية
* **params**: إرسال Query Parameters
* **data**: إرسال بيانات POST/PUT
* **json**: إرسال بيانات JSON
* **file / files**: رفع ملفات
* **proxy**: دعم البروكسي بصيغة `{"http": "http://user:pass@host:port"}`
* **verify**: تعطيل التحقق من SSL (HTTP/1.0 و HTTP/1.1)

---

## 📄 الترخيص

MIT License – يمكن استخدام المكتبة وتعديلها بحرية.