fleche 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.
- fleche-0.1.0/.github/workflows/pypi-publish.yml +25 -0
- fleche-0.1.0/LICENSE +29 -0
- fleche-0.1.0/PKG-INFO +31 -0
- fleche-0.1.0/README.md +5 -0
- fleche-0.1.0/docs/index.md +13 -0
- fleche-0.1.0/docs/installation.md +33 -0
- fleche-0.1.0/mkdocs.yml +48 -0
- fleche-0.1.0/notebooks/GettingStarted.ipynb +1621 -0
- fleche-0.1.0/notebooks/StorageBackends.ipynb +201 -0
- fleche-0.1.0/pyproject.toml +44 -0
- fleche-0.1.0/setup.cfg +4 -0
- fleche-0.1.0/src/fleche/__init__.py +160 -0
- fleche-0.1.0/src/fleche/_version.py +34 -0
- fleche-0.1.0/src/fleche/cache.py +116 -0
- fleche-0.1.0/src/fleche/digest.py +104 -0
- fleche-0.1.0/src/fleche/invocation.py +50 -0
- fleche-0.1.0/src/fleche/metadata.py +239 -0
- fleche-0.1.0/src/fleche/storage.py +184 -0
- fleche-0.1.0/src/fleche.egg-info/PKG-INFO +31 -0
- fleche-0.1.0/src/fleche.egg-info/SOURCES.txt +27 -0
- fleche-0.1.0/src/fleche.egg-info/dependency_links.txt +1 -0
- fleche-0.1.0/src/fleche.egg-info/requires.txt +16 -0
- fleche-0.1.0/src/fleche.egg-info/top_level.txt +1 -0
- fleche-0.1.0/tests/integration/test_integration.py +132 -0
- fleche-0.1.0/tests/unit/test_cache.py +126 -0
- fleche-0.1.0/tests/unit/test_digest.py +224 -0
- fleche-0.1.0/tests/unit/test_fleche.py +171 -0
- fleche-0.1.0/tests/unit/test_metadata.py +198 -0
- fleche-0.1.0/tests/unit/test_storage.py +35 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
on:
|
|
2
|
+
release:
|
|
3
|
+
types: [published]
|
|
4
|
+
jobs:
|
|
5
|
+
pypi-publish:
|
|
6
|
+
name: Upload release to PyPI
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
environment:
|
|
9
|
+
name: pypi
|
|
10
|
+
url: https://pypi.org/p/fleche
|
|
11
|
+
permissions:
|
|
12
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
13
|
+
steps:
|
|
14
|
+
# retrieve your distributions here
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: '3.12'
|
|
19
|
+
- name: Build
|
|
20
|
+
shell: bash
|
|
21
|
+
run: |
|
|
22
|
+
pip install build
|
|
23
|
+
python -m build --sdist
|
|
24
|
+
- name: pypi-publish
|
|
25
|
+
uses: pypa/gh-action-pypi-publish@v1.13.0
|
fleche-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021, Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
* Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
fleche-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fleche
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Author-email: Marvin Poul <pmrv@posteo.de>
|
|
5
|
+
License-Expression: BSD-3-Clause
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Operating System :: OS Independent
|
|
8
|
+
Requires-Python: <3.14,>=3.11
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: cloudpickle
|
|
12
|
+
Requires-Dist: sqlalchemy
|
|
13
|
+
Requires-Dist: bagofholding
|
|
14
|
+
Requires-Dist: numpy
|
|
15
|
+
Requires-Dist: pandas<4,>=3
|
|
16
|
+
Provides-Extra: docs
|
|
17
|
+
Requires-Dist: mkdocs>=1.5; extra == "docs"
|
|
18
|
+
Requires-Dist: mkdocs-material; extra == "docs"
|
|
19
|
+
Requires-Dist: mkdocs-autoapi; extra == "docs"
|
|
20
|
+
Requires-Dist: mkdocstrings[python]; extra == "docs"
|
|
21
|
+
Requires-Dist: griffe_fieldz; extra == "docs"
|
|
22
|
+
Provides-Extra: test
|
|
23
|
+
Requires-Dist: pytest; extra == "test"
|
|
24
|
+
Requires-Dist: hypothesis; extra == "test"
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# fleche
|
|
28
|
+
|
|
29
|
+
fleche is a persistant caching solution for arbitrary python functions.
|
|
30
|
+
|
|
31
|
+
flèche is French for 'arrow' and also used in fencing as a fast attack.
|
fleche-0.1.0/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
home: true
|
|
3
|
+
---
|
|
4
|
+
# Fleche Documentation
|
|
5
|
+
|
|
6
|
+
Welcome to the **Fleche** library documentation.
|
|
7
|
+
|
|
8
|
+
- **What is Fleche?** A lightweight library for ... (provide brief description).
|
|
9
|
+
- **Key features** – …
|
|
10
|
+
- **Get started** – see the [Installation guide](installation.md).
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
*Generated with MkDocs and mkdocs-autoapi.*
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Installation Guide
|
|
2
|
+
|
|
3
|
+
## Normal installation
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pip install fleche
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Installing documentation (optional)
|
|
10
|
+
|
|
11
|
+
The documentation relies on a few extra packages. They are provided as an optional
|
|
12
|
+
extra named `docs`. To install them together with the library you can run:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pip install "fleche[docs]"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
If you are developing the project in an editable checkout, use:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install -e .[docs]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Building the docs locally
|
|
25
|
+
|
|
26
|
+
Once the optional dependencies are installed you can serve the documentation
|
|
27
|
+
locally with:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
mkdocs serve
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Open <http://127.0.0.1:8000> in a browser to view the site.
|
fleche-0.1.0/mkdocs.yml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# mkdocs.yml configuration for Fleche documentation
|
|
2
|
+
|
|
3
|
+
site_name: Fleche
|
|
4
|
+
site_url: https://example.com/fleche
|
|
5
|
+
nav:
|
|
6
|
+
- Home: index.md
|
|
7
|
+
- Installation: installation.md
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
theme:
|
|
11
|
+
name: readthedocs
|
|
12
|
+
|
|
13
|
+
plugins:
|
|
14
|
+
- search
|
|
15
|
+
- mkdocs-autoapi:
|
|
16
|
+
autoapi_dir: src/
|
|
17
|
+
autoapi_ignore:
|
|
18
|
+
- fleche/_version.py
|
|
19
|
+
# Option to add the generated API to navigation automatically.
|
|
20
|
+
autoapi_add_nav_entry: Reference
|
|
21
|
+
- mkdocstrings:
|
|
22
|
+
handlers:
|
|
23
|
+
python:
|
|
24
|
+
paths:
|
|
25
|
+
- src/
|
|
26
|
+
options:
|
|
27
|
+
# Show members, docstrings, signatures, etc.
|
|
28
|
+
show_root_heading: true
|
|
29
|
+
members: true
|
|
30
|
+
heading_level: 2
|
|
31
|
+
summary: true
|
|
32
|
+
extensions:
|
|
33
|
+
- griffe_fieldz: {include_inherited: true}
|
|
34
|
+
|
|
35
|
+
markdown_extensions:
|
|
36
|
+
- admonition
|
|
37
|
+
- codehilite
|
|
38
|
+
- toc:
|
|
39
|
+
permalink: true
|
|
40
|
+
- pymdownx.superfences
|
|
41
|
+
- pymdownx.inlinehilite
|
|
42
|
+
- pymdownx.betterem:
|
|
43
|
+
smart_enable: all
|
|
44
|
+
- pymdownx.tasklist:
|
|
45
|
+
custom_checkbox: true
|
|
46
|
+
|
|
47
|
+
# The docs are built into the `site` directory by default.
|
|
48
|
+
# No GitHub Pages deployment is configured per user request.
|