GitXplorerGitXplorer
J

niapi

public
15 stars
0 forks
12 issues

Commits

List of commits on branch main.
Verified
f006c48c6d25b906dc8785f4df234aa6e0afa3ea

chore(deps): bump pdm-project/setup-pdm from 3 to 4 (#29)

JJacobCoffee committed a year ago
Verified
1aba6e8ff262e45076681e392b80ee23ca460809

chore(deps): bump pdm-project/setup-pdm from 3 to 4

ddependabot[bot] committed a year ago
Verified
cc9609527c3a4c08a33a215a1aeb097f5bba653d

chore(deps): bump actions/cache from 3 to 4 (#28)

JJacobCoffee committed a year ago
Verified
dab8b76d32fd8a32823bdde0b3aae4a82c587c07

chore(deps): bump actions/cache from 3 to 4

ddependabot[bot] committed a year ago
Verified
211dc0ef2c9bfb0e474baea262745f42e0a1a581

chore(deps): bump github/codeql-action from 2 to 3 (#26)

JJacobCoffee committed a year ago
Verified
2febae312ab3e7bbf16e49f4508c68c047a99def

chore(deps): bump github/codeql-action from 2 to 3

ddependabot[bot] committed a year ago

README

The README file for this repository.

NIAPI Logo - Light NIAPI Logo - Dark

Project Status
CI/CD Latest Release ci Documentation Building CodeQL
Package PyPI - Version PyPI - Support Python Versions
Quality codecov Coverage Quality Gate Status Maintainability Rating Reliability Rating Security Rating Known Vulnerabilities
Community Twitter
Meta Litestar Framework linting - Ruff code style - Black types - Mypy License - MIT GitHub Sponsors

SonarCloud

niapi - Network Information API

Table of Contents

About

Installation

pip install niapi

Usage

Install the project:

pip install -e .

Run the project:

NOTE: From within the virtual environment

app run -r --debug

Using the CLI:

# via curlcurl --request GET \
        --url 'http://0.0.0.0:8000/calculator/ip?ip=4.8.15.16&prefix=23' \
        --header 'Content-Type: application/json'
# via App CLI
# TODO
app calculate "10.248.15.39/29"

Using the API

  1. Browse to:
  2. Use the auto-generated API docs to interact with the API

From around the web:

Browse to https://niapi.app/ and use the front page form, API, or curl to interact with the API.

Contributing

See CONTRIBUTING.rst for more information.

Start the app:

app run-all

Start the TailwindCSS watcher:

tailwindcss -i niapi/domain/web/resources/input.css -o niapi/domain/web/resources/style.css --watch

Contributors

License

MIT

Acknowledgements

Screenshots

home.png home-dark.png img.png