Skip to main content

Stinky noodle

Stiny noodle is a Python OpenAPI spec linter that can read spectral (https://github.com/stoplightio/spectral) rule sets. This project is very early stage and not stable at all. The main reason for creating this project is to make it much easier to use with Python projects.

Getting started

Run pip install stinky-noodle and then run noodle <path-to-spec-file> to start linting.

Rule sets

Stinky noodle fully relies on rule sets as defined in the spectral docs and does not have its own syntax: https://meta.stoplight.io/docs/spectral/e5b9616d6d50c-rulesets

You can use a rule set by adding the following argument:

noodle -s <path-to-ruleset>[ -d <dir-containing-custom-module>][ -m <cusom-module-name>] <path-to-spec-file>

Caveats

  • Spectral linting rules can make use of custom functions written in js. There is currently no way of automatically converting those functions in python built into Stink noodle. Functions always have to be manually converted. See the Custom callables section on how to do that.

  • Spectral's builtin unreferencedReusableObjects, named unreferenced_reusable_objects in stinky-noodle, has not yet been implemented due to its complexity (e.g. it depends on a dependency graph of the API spec document). It will be implemented in the near future.

Custom callables

TODO

Using stinky-noodle in pre-commit

TODO

Metadata

Release files for stinky-noodle 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stinky-noodle 0.0.10
File Size Uploaded Provenance Actions
stinky_noodle-0.0.10.tar.gz 9.2 kB Without provenance Details for stinky_noodle-0.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stinky-noodle 0.0.10
File Interpreter ABI Platform Actions
stinky_noodle-0.0.10-py3-none-any.whl Python 3 none any Details for stinky_noodle-0.0.10-py3-none-any.whl

Total release size: 17.8 kB

Release files / stinky_noodle-0.0.10.tar.gz

Download URL stinky_noodle-0.0.10.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
947e2784a356615c46bc945c8282b3fdc5d3dae9824b75cc75b29e0699304f6a
BLAKE2b-256 checksum
How to use checksums
5052c855465727b914b207de2c24d3b50856856739f0381438b7f752e39bc349
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / stinky_noodle-0.0.10-py3-none-any.whl

Download URL stinky_noodle-0.0.10-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e02d3cbc09d17489f86c3e403c2239f8c1fbd2f0520f0924907e118fb918d14
BLAKE2b-256 checksum
How to use checksums
2e85ba73b61819ff933c61ea9f1c6b9b7311c0b62ca780dbfb9da507b2cb9d3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Security for stinky-noodle 0.0.10

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.

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