spider-py
This project is a Python package that provides access to Spider, a distributed task execution framework, enabling seamless integration and task management in Python applications.
Building/Packing
To manually build a package for distribution, follow the steps below.
Requirements
- Task >= 3.40.0
- uv >= 0.7.0
- MariaDB C Connector >= 3.3.1
Build Commands
- Build a Python wheel:
task build:spider-py
The command above will generate both a .tar.gz and a .whl package in the build/spider-py
directory at the Spider project root.
Testing
Unit tests are divided into two categories: storage and non-storage tests. Non-storage tests do not require any external services, while storage tests require a MariaDB instance to be available.
Non-Storage Unit Tests
To run all non-storage unit tests:
task test:spider-py-non-storage-unit-tests
Setup MariaDB for Storage Unit Tests
To run storage unit tests, we need to create a MariaDB instance first.
docker run \
--detach \
--rm \
--name spider-storage \
--env MARIADB_USER=spider \
--env MARIADB_PASSWORD=password \
--env MARIADB_DATABASE=spider-storage \
--env MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true \
--publish 3306:3306 mariadb:latest
After the docker container starts, set up the database table manually by using the SQL script
tools/scripts/storage/init_db.sql from the project root.
mysql -h 127.0.0.1 -u spider -ppassword spider-storage < tools/scripts/storage/init_db.sql
Storage Unit Tests
To run all storage unit tests:
task test:spider-py-storage-unit-tests
This requires a running MariaDB instance as described above.
All Unit Tests
To run all unit tests (both storage and non-storage):
task test:spider-py-unit-tests
This requires a running MariaDB instance as described above.
Linting
To run all linting checks:
task lint:spider-py-check
To run all linting checks AND automatically fix any fixable issues:
task lint:spider-py-fix
Metadata
Release files for yscope-spider-py 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yscope_spider_py-0.2.1.tar.gz | 25.0 kB | Without provenance | Details for yscope_spider_py-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yscope_spider_py-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for yscope_spider_py-0.2.1-py3-none-any.whl |
Total release size: 59.7 kB
Release files / yscope_spider_py-0.2.1.tar.gz
| Download URL | yscope_spider_py-0.2.1.tar.gz |
|---|---|
| Size | 25.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
267fce65b3ab997d311cccc1d779a4176b908ef15afebd2c0189b5a34158d229
|
|
BLAKE2b-256 checksum How to use checksums |
2cc770aee0d7736a17705fc73a26aff88e89624964cc380d718106c956afc388
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.2
|
Release files / yscope_spider_py-0.2.1-py3-none-any.whl
| Download URL | yscope_spider_py-0.2.1-py3-none-any.whl |
|---|---|
| Size | 34.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f18a9f0a6fc107d7c6e1ba054cb4246d69c813fdae0f52ca2bb6cc1390bbb1d2
|
|
BLAKE2b-256 checksum How to use checksums |
cf0fead6cabcd60126e4bfaa668f418e1cbb1c1825d70f6c3e391d84469d6fad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.2
|
Security for yscope-spider-py 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.