polars-avro 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- polars_avro-0.1.0/.github/workflows/python-package.yml +38 -0
- polars_avro-0.1.0/.github/workflows/static.yml +51 -0
- polars_avro-0.1.0/.gitignore +12 -0
- polars_avro-0.1.0/.python-version +1 -0
- polars_avro-0.1.0/Cargo.lock +4355 -0
- polars_avro-0.1.0/Cargo.toml +50 -0
- polars_avro-0.1.0/LICENSE +21 -0
- polars_avro-0.1.0/PKG-INFO +84 -0
- polars_avro-0.1.0/README.md +71 -0
- polars_avro-0.1.0/docs/conf.py +28 -0
- polars_avro-0.1.0/docs/index.rst +20 -0
- polars_avro-0.1.0/polars_avro/__init__.py +24 -0
- polars_avro-0.1.0/polars_avro/_avro_rs.pyi +72 -0
- polars_avro-0.1.0/polars_avro/_scan.py +145 -0
- polars_avro-0.1.0/polars_avro/_sink.py +73 -0
- polars_avro-0.1.0/polars_avro/py.typed +0 -0
- polars_avro-0.1.0/pyproject.toml +46 -0
- polars_avro-0.1.0/resources/food.avro +0 -0
- polars_avro-0.1.0/resources/grains.avro +0 -0
- polars_avro-0.1.0/src/des.rs +664 -0
- polars_avro-0.1.0/src/error.rs +114 -0
- polars_avro-0.1.0/src/io.rs +90 -0
- polars_avro-0.1.0/src/lib.rs +20 -0
- polars_avro-0.1.0/src/py.rs +338 -0
- polars_avro-0.1.0/src/scan.rs +439 -0
- polars_avro-0.1.0/src/ser.rs +236 -0
- polars_avro-0.1.0/src/sink.rs +197 -0
- polars_avro-0.1.0/src/tests.rs +132 -0
- polars_avro-0.1.0/tests/__init__.py +1 -0
- polars_avro-0.1.0/tests/test_scan.py +259 -0
- polars_avro-0.1.0/tests/test_write.py +114 -0
- polars_avro-0.1.0/tests/utils.py +9 -0
- polars_avro-0.1.0/uv.lock +1068 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
|
3
|
+
|
|
4
|
+
name: build
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: ["main"]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: ["main"]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
python-version: ["3.12"]
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
23
|
+
uses: actions/setup-python@v3
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip
|
|
29
|
+
python -m pip install uv
|
|
30
|
+
uv sync
|
|
31
|
+
- name: Check ruff format
|
|
32
|
+
run: uv run ruff format --check
|
|
33
|
+
- name: Check with ruff
|
|
34
|
+
run: uv run ruff check
|
|
35
|
+
- name: Run pyright
|
|
36
|
+
run: uv run pyright
|
|
37
|
+
- name: Test with pytest
|
|
38
|
+
run: uv run pytest
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Simple workflow for deploying static content to GitHub Pages
|
|
2
|
+
name: pages
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
# Runs on pushes targeting the default branch
|
|
6
|
+
push:
|
|
7
|
+
branches: ["main"]
|
|
8
|
+
|
|
9
|
+
# Allows you to run this workflow manually from the Actions tab
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
pages: write
|
|
16
|
+
id-token: write
|
|
17
|
+
|
|
18
|
+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
19
|
+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
20
|
+
concurrency:
|
|
21
|
+
group: "pages"
|
|
22
|
+
cancel-in-progress: false
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
# Single deploy job since we're just deploying
|
|
26
|
+
deploy:
|
|
27
|
+
environment:
|
|
28
|
+
name: github-pages
|
|
29
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
steps:
|
|
32
|
+
- name: Checkout
|
|
33
|
+
uses: actions/checkout@v4
|
|
34
|
+
- name: Setup Pages
|
|
35
|
+
uses: actions/configure-pages@v5
|
|
36
|
+
- name: Set up Python
|
|
37
|
+
uses: actions/setup-python@v3
|
|
38
|
+
- name: Install dependencies
|
|
39
|
+
run: |
|
|
40
|
+
python -m pip install --upgrade pip
|
|
41
|
+
python -m pip install uv
|
|
42
|
+
uv sync
|
|
43
|
+
- name: Build site
|
|
44
|
+
run: uv run sphinx-build -M html docs out
|
|
45
|
+
- name: Upload artifact
|
|
46
|
+
uses: actions/upload-pages-artifact@v3
|
|
47
|
+
with:
|
|
48
|
+
path: "./out/html"
|
|
49
|
+
- name: Deploy to GitHub Pages
|
|
50
|
+
id: deployment
|
|
51
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|