Skip to main content

python-neva

The core of the Neva framework — a Laravel-inspired toolkit for Python that brings Laravel's philosophy, terminology, and conventions to the Python ecosystem: service providers, facades, bind/make dependency injection (on dishka), Hash/Crypt/Config/Log/Event facades, a transaction-aware event system, and Result/Option error handling.

python-neva is the framework-agnostic core. Web- and protocol-specific concerns live in separate integration packages (the plugins below) so the core never depends on a particular HTTP or messaging framework.

Plugins & ecosystem

Neva is split into one repository per package. The core is published as python-neva; each plugin is an independent repo, independently versioned and published.

Package Repo / directory Role Status
python-neva neva/ Core, framework-agnostic. DI, service providers, facades, Result/Option, events, security, observability, SQLAlchemy database layer. published (PyPI)
neva-fastapi neva-fastapi/ FastAPI integration — App extends FastAPI and wires dishka into routes. Pulled in via the python-neva[fastapi] extra. published (PyPI)
neva-faststream neva-faststream/ FastStream (messaging) integration. scaffolded, early placeholder
neva-auth neva-auth/ Authentication & identity toolkit — token-issuance engine, OAuth2 grants, guards, pluggable formats/backends. core complete, OAuth-server slice in progress
neva-example neva-example/ Reference application consuming python-neva[fastapi]. Not published; demonstration + integration test bed. unpublished

When working across packages locally, each repo can be cloned as a sibling directory; integration packages depend on python-neva from PyPI (or an editable local path during development).

Develop

uv sync          # install/refresh deps from uv.lock
poe lint         # ruff check
poe fmt          # ruff format
poe tc           # type-check (mypy)
poe test         # pytest
poe test-cov     # tests with coverage

# Run a single test
pytest tests/test_file.py::TestClass::test_method -v

asyncio_mode = "auto" is set, so async tests need no @pytest.mark.asyncio.

Contributing

Commits follow Conventional Commits with gitmoji prefixes, enforced by cz_gitmoji. Commitizen is provided as a dev dependency — no separate install needed. Run the guided wizard:

cz commit

or format manually as :gitmoji: type(scope): subject.

Releases are cut per-repo with commitizen, from the repo root:

cz bump                              # bump version in pyproject, write CHANGELOG, tag v<version>
git push --follow-tags origin main
uv build && uv publish               # build + publish the wheel/sdist

cz bump derives the bump level (major/minor/patch) from the commits since the last tag, updates CHANGELOG.md, and runs scripts/retag-with-changelog.sh to rewrite the new tag with the rendered changelog as its annotation.

Feature ideas

  • Feature-parity FastStream integration (now scaffolded as neva-faststream)
  • Finish cleaning up the core package (moving any remaining ASGI-dependent code into the appropriate integration packages)
  • Improved router registration (auto-discovery OR provider-based? both?)
  • Improved security tooling (performance improvements, better defaults, etc.)
  • Better OpenTelemetry integration
  • Improved factory module (based on Polyfactory)
  • Queue/Jobs system
  • CLI integration

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_neva-3.5.1.tar.gz (222.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_neva-3.5.1-py3-none-any.whl (61.8 kB view details)

Uploaded Python 3

File details

Details for the file python_neva-3.5.1.tar.gz.

File metadata

  • Download URL: python_neva-3.5.1.tar.gz
  • Upload date:
  • Size: 222.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for python_neva-3.5.1.tar.gz
Algorithm Hash digest
SHA256 351c920647cf0802173639560ccbf112f1d94fffdbaac1598d251681f299d89c
MD5 9672a83449fd952566af0635ab1806cc
BLAKE2b-256 74330dcb3f6266bc953c489eea0a73d82d284de2ec72e23fe425f7ebf70c8c14

See more details on using hashes here.

File details

Details for the file python_neva-3.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_neva-3.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d42f13dbdeee9eb191288139e6f7cd63248645868d06b55f638e93d70fbfc340
MD5 09fdfc9ec1383a914879795464d2531c
BLAKE2b-256 5404b0bb575ce24413e6eb6dafd8ef40058a1386279521d1a7b6a739a7437c83

See more details on using hashes here.

Release history Release notifications | RSS feed

4.1.0

2 files

4.0.0

2 files

3.7.0

2 files

3.6.0

2 files

This release

3.5.1 This release

2 files

3.5.0

2 files

3.4.0

2 files

3.3.0

2 files

3.2.0

2 files

3.1.1

2 files

3.1.0

2 files

3.0.0

2 files

2.4.1

2 files

2.4.0

2 files

2.3.0

2 files

2.2.1

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page