xarray-binfile 0.1.0b0__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.
- xarray_binfile-0.1.0b0/.github/dependabot.yml +18 -0
- xarray_binfile-0.1.0b0/.github/release.yml +31 -0
- xarray_binfile-0.1.0b0/.github/workflows/check-links.yaml +28 -0
- xarray_binfile-0.1.0b0/.github/workflows/ci.yaml +134 -0
- xarray_binfile-0.1.0b0/.github/workflows/docs.yaml +66 -0
- xarray_binfile-0.1.0b0/.gitignore +164 -0
- xarray_binfile-0.1.0b0/.pre-commit-config.yaml +57 -0
- xarray_binfile-0.1.0b0/.vscode/extensions.json +8 -0
- xarray_binfile-0.1.0b0/.vscode/settings.json +27 -0
- xarray_binfile-0.1.0b0/LICENSE +21 -0
- xarray_binfile-0.1.0b0/PKG-INFO +88 -0
- xarray_binfile-0.1.0b0/README.md +44 -0
- xarray_binfile-0.1.0b0/docs/_config.yml +73 -0
- xarray_binfile-0.1.0b0/docs/_toc.yml +30 -0
- xarray_binfile-0.1.0b0/docs/getting-started/about.md +7 -0
- xarray_binfile-0.1.0b0/docs/getting-started/dependencies.md +31 -0
- xarray_binfile-0.1.0b0/docs/getting-started/use-this-template.md +85 -0
- xarray_binfile-0.1.0b0/docs/intro.md +85 -0
- xarray_binfile-0.1.0b0/docs/logo.png +0 -0
- xarray_binfile-0.1.0b0/docs/references/api-reference.rst +10 -0
- xarray_binfile-0.1.0b0/docs/references/further-reading.md +28 -0
- xarray_binfile-0.1.0b0/docs/references/how-to-contribute.md +208 -0
- xarray_binfile-0.1.0b0/docs/references/what-is-new.md +10 -0
- xarray_binfile-0.1.0b0/docs/references.bib +2 -0
- xarray_binfile-0.1.0b0/docs/user-guide/ci-cd.md +11 -0
- xarray_binfile-0.1.0b0/docs/user-guide/documentation.md +13 -0
- xarray_binfile-0.1.0b0/docs/user-guide/tooling/codespell.md +7 -0
- xarray_binfile-0.1.0b0/docs/user-guide/tooling/index.md +5 -0
- xarray_binfile-0.1.0b0/docs/user-guide/tooling/mypy.md +23 -0
- xarray_binfile-0.1.0b0/docs/user-guide/tooling/pre-commit.md +30 -0
- xarray_binfile-0.1.0b0/docs/user-guide/tooling/pytest.md +36 -0
- xarray_binfile-0.1.0b0/docs/user-guide/tooling/ruff.md +27 -0
- xarray_binfile-0.1.0b0/docs/user-guide/tooling/zizmor.md +16 -0
- xarray_binfile-0.1.0b0/docs/user-guide/versioning-changelog.md +8 -0
- xarray_binfile-0.1.0b0/pyproject.toml +147 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/__init__.py +3 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/_version.py +21 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/py.typed +0 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/read/__init__.py +2 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/read/array.py +165 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/read/entrypoint.py +74 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/read/file_metadata.py +68 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/tutorial/__init__.py +2 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/tutorial/dataset_generator.py +80 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/tutorial/file_metadata.py +92 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/typing.py +12 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/write/__init__.py +2 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/write/accessor.py +72 -0
- xarray_binfile-0.1.0b0/src/xarray_binfile/write/file_metadata.py +46 -0
- xarray_binfile-0.1.0b0/tests/__init__.py +1 -0
- xarray_binfile-0.1.0b0/tests/integration/__init__.py +0 -0
- xarray_binfile-0.1.0b0/tests/integration/test_load_dataset.py +48 -0
- xarray_binfile-0.1.0b0/tests/unit/__init__.py +0 -0
- xarray_binfile-0.1.0b0/tests/unit/read/__init__.py +0 -0
- xarray_binfile-0.1.0b0/tests/unit/read/test_array.py +87 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: "github-actions"
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: "weekly"
|
|
7
|
+
groups:
|
|
8
|
+
actions:
|
|
9
|
+
patterns:
|
|
10
|
+
- "*"
|
|
11
|
+
- package-ecosystem: "pip"
|
|
12
|
+
directory: "/"
|
|
13
|
+
schedule:
|
|
14
|
+
interval: "weekly"
|
|
15
|
+
groups:
|
|
16
|
+
pip-dependencies:
|
|
17
|
+
patterns:
|
|
18
|
+
- "*"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
changelog:
|
|
2
|
+
categories:
|
|
3
|
+
- title: Security
|
|
4
|
+
labels:
|
|
5
|
+
- security
|
|
6
|
+
- title: Removed
|
|
7
|
+
labels:
|
|
8
|
+
- removed
|
|
9
|
+
- title: Deprecated
|
|
10
|
+
labels:
|
|
11
|
+
- deprecated
|
|
12
|
+
- title: Added
|
|
13
|
+
labels:
|
|
14
|
+
- added
|
|
15
|
+
- title: Changed
|
|
16
|
+
labels:
|
|
17
|
+
- changed
|
|
18
|
+
- title: Fixed
|
|
19
|
+
labels:
|
|
20
|
+
- fixed
|
|
21
|
+
- title: Documentation
|
|
22
|
+
labels:
|
|
23
|
+
- docs
|
|
24
|
+
- title: Internals
|
|
25
|
+
labels:
|
|
26
|
+
- chore
|
|
27
|
+
- refactor
|
|
28
|
+
- dependencies
|
|
29
|
+
- title: Other Changes
|
|
30
|
+
labels:
|
|
31
|
+
- "*"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Check links in Markdown files
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: "0 0 * * 1" # midnight every Monday
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
paths:
|
|
8
|
+
- "**/*.md"
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [main]
|
|
11
|
+
paths:
|
|
12
|
+
- "**/*.md"
|
|
13
|
+
|
|
14
|
+
permissions: {}
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
check-links:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
21
|
+
with:
|
|
22
|
+
persist-credentials: false
|
|
23
|
+
- uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31 # 1.0.17
|
|
24
|
+
with:
|
|
25
|
+
use-quiet-mode: "yes"
|
|
26
|
+
use-verbose-mode: "yes"
|
|
27
|
+
folder-path: "docs/"
|
|
28
|
+
file-path: "README.md"
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*.*.*"
|
|
7
|
+
branches:
|
|
8
|
+
- "main"
|
|
9
|
+
- "release/**"
|
|
10
|
+
pull_request:
|
|
11
|
+
paths:
|
|
12
|
+
- .github/workflows/ci.yaml
|
|
13
|
+
- pyproject.toml
|
|
14
|
+
- tests/**
|
|
15
|
+
- src/**
|
|
16
|
+
schedule:
|
|
17
|
+
- cron: "0 0 * * 1" # midnight every Monday
|
|
18
|
+
|
|
19
|
+
concurrency:
|
|
20
|
+
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
|
|
21
|
+
cancel-in-progress: true
|
|
22
|
+
|
|
23
|
+
permissions: {}
|
|
24
|
+
|
|
25
|
+
jobs:
|
|
26
|
+
test:
|
|
27
|
+
strategy:
|
|
28
|
+
fail-fast: false
|
|
29
|
+
matrix:
|
|
30
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
31
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
32
|
+
runs-on: ${{ matrix.os }}
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
35
|
+
with:
|
|
36
|
+
persist-credentials: false
|
|
37
|
+
|
|
38
|
+
- name: Set up Python
|
|
39
|
+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
40
|
+
with:
|
|
41
|
+
python-version: ${{ matrix.python-version }}
|
|
42
|
+
|
|
43
|
+
- name: Install Hatch
|
|
44
|
+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
|
|
45
|
+
|
|
46
|
+
- name: Run tests
|
|
47
|
+
run: |
|
|
48
|
+
hatch run +py=${{ matrix.python-version }} test:extended --cov-report=xml:coverage.${{ matrix.os }}.${{ matrix.python-version }}.xml
|
|
49
|
+
|
|
50
|
+
- name: Upload coverage data
|
|
51
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
52
|
+
with:
|
|
53
|
+
name: coverage-${{ matrix.os }}-${{ matrix.python-version }}
|
|
54
|
+
path: coverage.*.xml
|
|
55
|
+
|
|
56
|
+
build:
|
|
57
|
+
needs: test
|
|
58
|
+
runs-on: ubuntu-latest
|
|
59
|
+
steps:
|
|
60
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
61
|
+
with:
|
|
62
|
+
persist-credentials: false
|
|
63
|
+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
64
|
+
with:
|
|
65
|
+
python-version: "3.12"
|
|
66
|
+
- name: Install Hatch
|
|
67
|
+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
|
|
68
|
+
- name: Build package
|
|
69
|
+
run: hatch build
|
|
70
|
+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
71
|
+
with:
|
|
72
|
+
path: dist/*.tar.gz
|
|
73
|
+
name: built-sdist
|
|
74
|
+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
75
|
+
with:
|
|
76
|
+
path: dist/*.whl
|
|
77
|
+
name: built-bdist
|
|
78
|
+
|
|
79
|
+
sonarcloud:
|
|
80
|
+
needs: test
|
|
81
|
+
runs-on: ubuntu-latest
|
|
82
|
+
if: github.repository == 'fschuch/xarray-binfile' # prevent running on forks
|
|
83
|
+
permissions:
|
|
84
|
+
contents: read
|
|
85
|
+
steps:
|
|
86
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
87
|
+
with:
|
|
88
|
+
persist-credentials: false
|
|
89
|
+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
|
90
|
+
|
|
91
|
+
- name: Download coverage data
|
|
92
|
+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
93
|
+
with:
|
|
94
|
+
pattern: coverage-*
|
|
95
|
+
merge-multiple: true
|
|
96
|
+
|
|
97
|
+
- name: SonarQube Scan
|
|
98
|
+
uses: SonarSource/sonarqube-scan-action@2500896589ef8f7247069a56136f8dc177c27ccf # v5.2.0
|
|
99
|
+
env:
|
|
100
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
101
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
102
|
+
with:
|
|
103
|
+
args: >
|
|
104
|
+
-Dsonar.organization=fschuch
|
|
105
|
+
-Dsonar.projectKey=fschuch_xarray-binfile
|
|
106
|
+
-Dsonar.python.version=3.9,3.10,3.11,3.12,3.13
|
|
107
|
+
-Dsonar.sources=src/xarray_binfile
|
|
108
|
+
-Dsonar.tests=tests
|
|
109
|
+
-Dsonar.python.coverage.reportPaths=coverage.*.xml
|
|
110
|
+
|
|
111
|
+
release:
|
|
112
|
+
needs:
|
|
113
|
+
- build
|
|
114
|
+
- sonarcloud
|
|
115
|
+
# upload to PyPI on every tag and ensure it does not run on forks
|
|
116
|
+
if: github.event_name == 'push' && github.ref_type == 'tag' && !github.event.pull_request.head.repo.fork
|
|
117
|
+
runs-on: ubuntu-latest
|
|
118
|
+
environment:
|
|
119
|
+
name: pypi
|
|
120
|
+
url: ""
|
|
121
|
+
permissions:
|
|
122
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
123
|
+
steps:
|
|
124
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
125
|
+
with:
|
|
126
|
+
name: built-sdist
|
|
127
|
+
path: dist
|
|
128
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
129
|
+
with:
|
|
130
|
+
name: built-bdist
|
|
131
|
+
path: dist
|
|
132
|
+
|
|
133
|
+
- name: Publish package distributions to PyPI
|
|
134
|
+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
name: Docs
|
|
2
|
+
|
|
3
|
+
# See:
|
|
4
|
+
# https://jupyterbook.org/en/stable/publish/gh-pages.html
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
tags:
|
|
8
|
+
- "v*.*.*"
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
- release/**
|
|
12
|
+
pull_request:
|
|
13
|
+
paths:
|
|
14
|
+
- .github/workflows/docs.yaml
|
|
15
|
+
- docs/**
|
|
16
|
+
- src/**
|
|
17
|
+
- pyproject.toml
|
|
18
|
+
|
|
19
|
+
permissions: {}
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
build:
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
permissions:
|
|
25
|
+
contents: read
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
28
|
+
with:
|
|
29
|
+
persist-credentials: false
|
|
30
|
+
|
|
31
|
+
- name: Set up Python
|
|
32
|
+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
33
|
+
with:
|
|
34
|
+
python-version: "3.13"
|
|
35
|
+
|
|
36
|
+
- name: Install Hatch
|
|
37
|
+
uses: pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
|
|
38
|
+
|
|
39
|
+
- name: Build the book
|
|
40
|
+
env:
|
|
41
|
+
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ github.token }}
|
|
42
|
+
run: hatch run docs:build
|
|
43
|
+
|
|
44
|
+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
45
|
+
with:
|
|
46
|
+
path: build/
|
|
47
|
+
name: documentation
|
|
48
|
+
|
|
49
|
+
deploy:
|
|
50
|
+
needs: build
|
|
51
|
+
if: github.event_name == 'push' && github.ref_type == 'tag' && !github.event.pull_request.head.repo.fork
|
|
52
|
+
runs-on: ubuntu-latest
|
|
53
|
+
permissions:
|
|
54
|
+
contents: write
|
|
55
|
+
steps:
|
|
56
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
57
|
+
with:
|
|
58
|
+
path: build/
|
|
59
|
+
name: documentation
|
|
60
|
+
|
|
61
|
+
# Push the book's HTML to github-pages
|
|
62
|
+
- name: GitHub Pages action
|
|
63
|
+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
|
|
64
|
+
with:
|
|
65
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
66
|
+
publish_dir: build/_build/html
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
docs/conf.py
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
#.python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
#Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# poetry
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
103
|
+
#poetry.lock
|
|
104
|
+
|
|
105
|
+
# pdm
|
|
106
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
107
|
+
#pdm.lock
|
|
108
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
109
|
+
# in version control.
|
|
110
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
111
|
+
.pdm.toml
|
|
112
|
+
|
|
113
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
114
|
+
__pypackages__/
|
|
115
|
+
|
|
116
|
+
# Celery stuff
|
|
117
|
+
celerybeat-schedule
|
|
118
|
+
celerybeat.pid
|
|
119
|
+
|
|
120
|
+
# SageMath parsed files
|
|
121
|
+
*.sage.py
|
|
122
|
+
|
|
123
|
+
# Environments
|
|
124
|
+
.env
|
|
125
|
+
.venv
|
|
126
|
+
env/
|
|
127
|
+
venv/
|
|
128
|
+
ENV/
|
|
129
|
+
env.bak/
|
|
130
|
+
venv.bak/
|
|
131
|
+
|
|
132
|
+
# Spyder project settings
|
|
133
|
+
.spyderproject
|
|
134
|
+
.spyproject
|
|
135
|
+
|
|
136
|
+
# Rope project settings
|
|
137
|
+
.ropeproject
|
|
138
|
+
|
|
139
|
+
# mkdocs documentation
|
|
140
|
+
/site
|
|
141
|
+
|
|
142
|
+
# mypy
|
|
143
|
+
.mypy_cache/
|
|
144
|
+
.dmypy.json
|
|
145
|
+
dmypy.json
|
|
146
|
+
|
|
147
|
+
# Pyre type checker
|
|
148
|
+
.pyre/
|
|
149
|
+
|
|
150
|
+
# pytype static type analyzer
|
|
151
|
+
.pytype/
|
|
152
|
+
|
|
153
|
+
# Cython debug symbols
|
|
154
|
+
cython_debug/
|
|
155
|
+
|
|
156
|
+
# PyCharm
|
|
157
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
158
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
159
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
160
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
161
|
+
#.idea/
|
|
162
|
+
|
|
163
|
+
# File autogenerated by hatch
|
|
164
|
+
**/_version.py
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
default_language_version:
|
|
2
|
+
python: python
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
5
|
+
rev: v5.0.0
|
|
6
|
+
hooks:
|
|
7
|
+
- id: check-added-large-files
|
|
8
|
+
- id: check-case-conflict
|
|
9
|
+
- id: check-docstring-first
|
|
10
|
+
- id: check-json
|
|
11
|
+
- id: check-merge-conflict
|
|
12
|
+
- id: check-toml
|
|
13
|
+
- id: check-yaml
|
|
14
|
+
- id: debug-statements
|
|
15
|
+
- id: detect-private-key
|
|
16
|
+
- id: end-of-file-fixer
|
|
17
|
+
- id: mixed-line-ending
|
|
18
|
+
- id: trailing-whitespace
|
|
19
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
20
|
+
rev: v0.12.3
|
|
21
|
+
hooks:
|
|
22
|
+
# Run the linter.
|
|
23
|
+
- id: ruff
|
|
24
|
+
types_or: [python, pyi, jupyter]
|
|
25
|
+
args: [--fix]
|
|
26
|
+
# Run the formatter.
|
|
27
|
+
- id: ruff-format
|
|
28
|
+
types_or: [python, pyi, jupyter]
|
|
29
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
30
|
+
rev: v1.16.1
|
|
31
|
+
hooks:
|
|
32
|
+
- id: mypy
|
|
33
|
+
exclude: docs/conf.py
|
|
34
|
+
- repo: https://github.com/codespell-project/codespell
|
|
35
|
+
rev: v2.4.1
|
|
36
|
+
hooks:
|
|
37
|
+
- id: codespell
|
|
38
|
+
additional_dependencies:
|
|
39
|
+
- tomli
|
|
40
|
+
- repo: https://github.com/executablebooks/mdformat
|
|
41
|
+
rev: 0.7.22
|
|
42
|
+
hooks:
|
|
43
|
+
- id: mdformat
|
|
44
|
+
additional_dependencies:
|
|
45
|
+
[mdformat-gfm, mdformat-frontmatter, mdformat-footnote]
|
|
46
|
+
- repo: https://github.com/kynan/nbstripout
|
|
47
|
+
rev: 0.8.1
|
|
48
|
+
hooks:
|
|
49
|
+
- id: nbstripout
|
|
50
|
+
- repo: https://github.com/woodruffw/zizmor-pre-commit
|
|
51
|
+
rev: v1.11.0
|
|
52
|
+
hooks:
|
|
53
|
+
- id: zizmor
|
|
54
|
+
|
|
55
|
+
ci:
|
|
56
|
+
autofix_commit_msg: "Auto format from pre-commit.com hooks"
|
|
57
|
+
autoupdate_commit_msg: "pre-commit autoupdate"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"[python]": {
|
|
3
|
+
"editor.formatOnSave": true,
|
|
4
|
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
|
5
|
+
"editor.codeActionsOnSave": {
|
|
6
|
+
"source.fixAll": "explicit",
|
|
7
|
+
"source.organizeImports.ruff": "explicit"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"editor.rulers": [
|
|
11
|
+
80,
|
|
12
|
+
120
|
|
13
|
+
],
|
|
14
|
+
"python.testing.unittestEnabled": false,
|
|
15
|
+
"python.testing.pytestEnabled": true,
|
|
16
|
+
"files.exclude": {
|
|
17
|
+
"**/.coverage*": true,
|
|
18
|
+
"**/.mypy_cache": true,
|
|
19
|
+
"**/.pytest_cache": true,
|
|
20
|
+
"**/.ruff_cache": true,
|
|
21
|
+
"**/.venv": true,
|
|
22
|
+
"**/build": true
|
|
23
|
+
},
|
|
24
|
+
"cSpell.enabled": true,
|
|
25
|
+
"cSpell.language": "en",
|
|
26
|
+
"python.envFile": "${workspaceFolder}/.venv/xarray-binfile"
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Felipe N. Schuch
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: xarray-binfile
|
|
3
|
+
Version: 0.1.0b0
|
|
4
|
+
Summary: Read and write raw binary files using the familiar interface from the Xarray library
|
|
5
|
+
Project-URL: Source, https://github.com/fschuch/xarray-binfile
|
|
6
|
+
Project-URL: Tracker, https://github.com/fschuch/xarray-binfile/issues
|
|
7
|
+
Project-URL: Changelog, https://fschuch.github.io/xarray-binfile/references/what-is-new.html
|
|
8
|
+
Project-URL: Documentation, https://fschuch.github.io/xarray-binfile/
|
|
9
|
+
Author-email: fschuch <me@fschuch.com>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Requires-Dist: dask>=2024.0.0
|
|
24
|
+
Requires-Dist: xarray>=2024.1.0
|
|
25
|
+
Provides-Extra: docs
|
|
26
|
+
Requires-Dist: docutils==0.21.2; extra == 'docs'
|
|
27
|
+
Requires-Dist: jupyter-book==1.0.4.post1; extra == 'docs'
|
|
28
|
+
Requires-Dist: sphinx-autobuild==2024.10.3; extra == 'docs'
|
|
29
|
+
Requires-Dist: sphinx-github-changelog==1.7.1; extra == 'docs'
|
|
30
|
+
Requires-Dist: sphinx==7.4.7; extra == 'docs'
|
|
31
|
+
Provides-Extra: tests
|
|
32
|
+
Requires-Dist: coverage[toml]>=7.5.3; extra == 'tests'
|
|
33
|
+
Requires-Dist: hypothesis>=6.130.4; extra == 'tests'
|
|
34
|
+
Requires-Dist: pre-commit>=3.5.0; extra == 'tests'
|
|
35
|
+
Requires-Dist: pytest-benchmark>=5.1.0; extra == 'tests'
|
|
36
|
+
Requires-Dist: pytest-cov>=5.0.0; extra == 'tests'
|
|
37
|
+
Requires-Dist: pytest-memray>=1.7.0; (sys_platform != 'win32') and extra == 'tests'
|
|
38
|
+
Requires-Dist: pytest>=8.2.2; extra == 'tests'
|
|
39
|
+
Provides-Extra: tests-extra
|
|
40
|
+
Requires-Dist: pytest-randomly==3.16.0; extra == 'tests-extra'
|
|
41
|
+
Requires-Dist: pytest-rerunfailures==15.1; extra == 'tests-extra'
|
|
42
|
+
Requires-Dist: pytest-xdist==3.8.0; extra == 'tests-extra'
|
|
43
|
+
Description-Content-Type: text/markdown
|
|
44
|
+
|
|
45
|
+
# Xarray-binfile
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
<a href="https://github.com/fschuch/xarray-binfile"><img src="https://raw.githubusercontent.com/fschuch/xarray-binfile/refs/heads/main/docs/logo.png" alt="Wizard template logo" width="320"></a>
|
|
49
|
+
</p>
|
|
50
|
+
<p align="center">
|
|
51
|
+
<em>Custom Xarray file engine to handle raw binary files</em>
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
______________________________________________________________________
|
|
55
|
+
|
|
56
|
+
- QA:
|
|
57
|
+
[](https://github.com/fschuch/xarray-binfile/actions/workflows/ci.yaml)
|
|
58
|
+
[](https://github.com/fschuch/xarray-binfile/actions/workflows/github-code-scanning/codeql)
|
|
59
|
+
[](https://results.pre-commit.ci/latest/github/fschuch/xarray-binfile/main)
|
|
60
|
+
[](https://sonarcloud.io/summary/new_code?id=fschuch_xarray-binfile)
|
|
61
|
+
[](https://sonarcloud.io/summary/new_code?id=fschuch_xarray-binfile)
|
|
62
|
+
[](https://www.codefactor.io/repository/github/fschuch/xarray-binfile)
|
|
63
|
+
|
|
64
|
+
<!-- - Docs:
|
|
65
|
+
[](https://docs.fschuch.com/xarray-binfile) -->
|
|
66
|
+
|
|
67
|
+
- Package:
|
|
68
|
+
[](https://pypi.org/project/xarray-binfile/)
|
|
69
|
+
[](https://pypi.org/project/xarray-binfile/)
|
|
70
|
+
|
|
71
|
+
- Meta:
|
|
72
|
+
[](https://github.com/fschuch/wizard-template)
|
|
73
|
+
[](https://mypy-lang.org/)
|
|
74
|
+
[](https://github.com/pypa/hatch)
|
|
75
|
+
[](https://github.com/astral-sh/ruff)
|
|
76
|
+

|
|
77
|
+
[](https://jacobtomlinson.dev/effver)
|
|
78
|
+
|
|
79
|
+
______________________________________________________________________
|
|
80
|
+
|
|
81
|
+
## Overview
|
|
82
|
+
|
|
83
|
+
Xarray-binfile is a Python package designed to extend the capabilities of Xarray, a powerful library for working with labeled multi-dimensional arrays. This package provides a custom file engine specifically for reading and writing raw binary files, enabling users to leverage Xarray's data structures while working with binary data formats.
|
|
84
|
+
|
|
85
|
+
## Copyright and License
|
|
86
|
+
|
|
87
|
+
© 2025 [Felipe N. Schuch](https://github.com/fschuch).
|
|
88
|
+
All content is under [MIT License](https://github.com/fschuch/xarray-binfile/blob/main/LICENSE).
|