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.8.tar.gz (31.9 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.8-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for network_importer_rest-0.0.8.tar.gz
Algorithm Hash digest
SHA256 c994921e141d1ac2218cc6d80a8c7038cea68f96e345d045cb3df03b142b7286
MD5 ecbb7ed3e13e48d4e252539641ce85e4
BLAKE2b-256 9ee704a9412f8942ae25cd630b3a7fee16ca2c097051780269d64668fae0653d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for network_importer_rest-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7e1b5216d4c1d83b000f049590949e8ae2e5afe6b62806ef2b9ecfa230ef5c59
MD5 461fd0e592c750004b1b2f4bd5942543
BLAKE2b-256 2ab5283d079b5645f1da3b07ede24c6951f5fbdb426d5a7c26cc181208bf395a

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