Skip to main content

A REST API wrapper around network-importer

Project description

NI-REST

License: Apache-2.0

NI-REST transforms the network-importer library into a robust, scalable REST API service. It allows you to run network import and automation jobs via HTTP, track their progress in real-time, and manage all configuration through a clean web interface and environment variables.

The service features a powerful CLI for easy management and automatically adapts its execution strategy, running jobs asynchronously with Celery workers when available, or synchronously for simpler setups.


📚 Full Documentation

This README provides a brief overview. For detailed guides on installation, configuration, and usage, please see the Full Documentation.

Quick Start

For those who want to get started immediately:

  1. Install the package:

    pip install network-importer-rest
    
  2. Configure your environment. Create a .env file in your project root:

    # .env
    DJANGO_SECRET_KEY='a-long-random-string-here'
    # For a simple start, NI-REST will create a local SQLite database automatically.
    
  3. Initialize and start the server:

    # Initialize the database
    ni-rest manage migrate
    ni-rest manage createsuperuser
    
    # Start the server in development mode
    ni-rest start --dev
    
  4. Access the service:

    • API Docs: http://<host>:<port>/api/docs/
    • Admin UI: http://<host>:<port>/admin/

    (Note: In development mode, this defaults to http://127.0.0.1:8000)

Project details


Download files

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

Source Distribution

network_importer_rest-0.0.7.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

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

network_importer_rest-0.0.7-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file network_importer_rest-0.0.7.tar.gz.

File metadata

File hashes

Hashes for network_importer_rest-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9c2cdb0519e20f89f1091c87661f7637443441a719e43b1131f96d4afdbb5382
MD5 c121a8ba399f9bd0133c3fd1c663691c
BLAKE2b-256 5575596a7d917082ddff68690105c8105737f390dcc1f193cc1665927d8994ce

See more details on using hashes here.

File details

Details for the file network_importer_rest-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for network_importer_rest-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 27185364e1ea50398bad27a42044586ba93c909352628a4d7acdfe8447138058
MD5 84f3569d1e70aefdb7c167f46bba91ef
BLAKE2b-256 757fab1e8c7d4496161c1ecd855ddbb85f39eec5e4387d3bdf3b54184a9c1181

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page