GitXplorerGitXplorer
J

niapi

public
15 stars
0 forks
12 issues

Commits

List of commits on branch main.
Verified
5e7cdb9c454840a58bf5c6a0f4f87d3e2905df17

fix(ci): update railway 3.11 support

JJacobCoffee committed 9 months ago
Verified
313f076675c8ea5977ba7478d4e1c76b16ecc8bf

fix(ci): attempt to fix missing env var

JJacobCoffee committed 9 months ago
Verified
df2504a2c6910712803f3949fea03c6d61b6a7a3

ci: no compat checks

JJacobCoffee committed 9 months ago
Verified
e8723dee151a7a374774931a3256f048167293c9

ci: update to 3.12

JJacobCoffee committed 9 months ago
Verified
58f0a3c3c01b05e862fc21bcf5a570fce4d3e195

feat: add scalar, correct routes, fix frontend boxes

JJacobCoffee committed 9 months ago
Verified
9e445411beeba95b6a679737423d2b02d5b5b65c

feat: update dependencies

JJacobCoffee committed 9 months 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