Skip to main content

APIlyzer

Documentation Status CI codecov PyPI version pt_br doc

Table of Contents:

Description and context

APIlyzer is a Python library aimed at analyzing the maturity level of REST APIs, following the Richardson maturity model. The goal of this library is to evaluate APIs and generate a report on their maturity level, along with recommendations for improvements so that the API reaches the desired maturity level.

Note: The library is still in development, so it does not have all the features we want to implement.

Documentation

The complete documentation, containing all the details of the project, can be accessed at: https://apilyzer.readthedocs.io/en/latest/

Prerequisites

Make sure you have Python 3.9 or higher installed on your system before proceeding with the installation.

Installation Guide

We recommend creating a virtual environment to install the library in an isolated manner. Follow the commands below for installation:

# Create virtual environment
python -m venv .venv
# Activate virtual environment
source .venv/bin/activate # Linux
.venv\Scripts\activate # Windows
# Install the library
pip install apilyzer

How to use?

APIlyzer offers a command line interface (CLI) for analyzing REST APIs. To know the available commands, run:

apilyzer

Currently, there are 3 subcommands available for this application:

  • verify-rest: Checks if a REST API is documented based on the provided URL and if it is, returns the API response.

  • verify-maturity: Analyzes the maturity level of a REST API based on the Richardson maturity model.

  • test-rate: Performs a number of requests (100 by default) to the API with the aim of validating whether the API has a limit for the number of requests.

Examples of use:

apilyzer verify-rest https://petstore.swagger.io -e v2/swagger
apilyzer verify-maturity https://picpay.github.io/picpay-docs-digital-payments/swagger/checkout.json
apilyzer test-rate https://petstore.swagger.io/v2/pet

More information about the CLI

For more information about the CLI, just run the command below:

apilyzer --help

For more information on CLI subcommands, just run the command below:

apilyzer <subcommand> --help

Dependencies

Main project dependencies:

# Production
python = "^3.9"
httpx = "^0.25.0"
typer = "^0.9.0"
rich = "^13.5.2"

# Development
pytest = "^7.4.2"
pytest-cov = "^4.1.0"
blue = "^0.9.1"
isort = "^5.12.0"
taskipy = "^1.12.0"

# Documentation
mkdocs-material = "^9.3.1"
mkdocstrings = "^0.23.0"
mkdocstrings-python = "^1.7.0"

How to contribute

There are several ways to contribute to the project, be it with code, tests, documentation, among others. See the project documentation in the Documentation section to learn more about how to contribute to the project.

Team

Author

Marco Antônio Martins Porto Netto

GitHub LinkedIn

Developers

Yan Sardinha

GitHub LinkedIn

License

MIT License

Copyright (c) 2023 Marco Antônio Martins Porto Netto

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Open Source Love svg1 made-with-python

Metadata

Release files for apilyzer 0.7.1

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

Source distribution (sdist)

Source distribution for apilyzer 0.7.1
File Size Uploaded Provenance Actions
apilyzer-0.7.1.tar.gz 10.0 kB Without provenance Details for apilyzer-0.7.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apilyzer 0.7.1
File Interpreter ABI Platform Actions
apilyzer-0.7.1-py3-none-any.whl Python 3 none any Details for apilyzer-0.7.1-py3-none-any.whl

Total release size: 19.4 kB

Release files / apilyzer-0.7.1.tar.gz

Download URL apilyzer-0.7.1.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d3c4b2ea02fd709bee7b46bcb75c1dc36abd1c61968d3ecd6b36b4468b02d7fe
BLAKE2b-256 checksum
How to use checksums
647bde9a28ad497eb9fddd1803b8bfcafe00c509cbaa0adabd239d9f07b188e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/5.15.90.1-microsoft-standard-WSL2

Release files / apilyzer-0.7.1-py3-none-any.whl

Download URL apilyzer-0.7.1-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25a352efe965c5851535e8c378c389a9c46f91402350002990f88c50f2087ec2
BLAKE2b-256 checksum
How to use checksums
0bbc779c87e137c813c364a1cfd2d689f54b36c65449dab05ebf191d16f2988b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/5.15.90.1-microsoft-standard-WSL2

Security for apilyzer 0.7.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.

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