Skip to main content

Django app companion for nmrpro package

Project description

The App provides a web interface to the python package, effectively compressing and reformatting NMR spectra into JSON formats. The App also stores users’ spectra in a database along with their processing history. Also, the App collects all plugins from the python package and transfers them to the client-side, where they are rendered as GUI.

Installtion

  1. Install python 2.7 and pip package manager.

  2. From the terminal console, install NMRPro python package using the command:

    pip install nmrpro

On Windows, from the command prompt:

python -m pip install nmrpro
  1. Install the django-nmrpro App using the command:

    pip install django-nmrpro

On Windows:

python -m pip install django-nmrpro
  1. pip command automatically installs all necessary package dependencies.

  2. There is no need to install SpecdrawJS separately since it is included in the Django App.

Runnig NMRPro server

Once the Django App is installed, the user can integrate it into an existing Django project. To summarize the integration process, briefly:

  1. If you do not have an existing Django project, first create one by following this tutorial.

  2. In settings.py, add django_nmpro to your INSTALLED_APPS.

  3. In urls.py, add the following pattern url(r'^', include('django_nmrpro.urls')),.

  4. From the terminal console (command prompt on Windows), navigate to the project home directory and run the web server using the command:

    python manage.py migrate
  5. Run the server using the command:

    python manage.py runserver
  6. To make sure that installation is successful, visit the URL http://127.0.0.1:8000/nmrpro_test/, which should display 5 spectra from the Coffees dataset.

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

django_nmrpro-0.2.4.tar.gz (544.5 kB view details)

Uploaded Source

File details

Details for the file django_nmrpro-0.2.4.tar.gz.

File metadata

  • Download URL: django_nmrpro-0.2.4.tar.gz
  • Upload date:
  • Size: 544.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django_nmrpro-0.2.4.tar.gz
Algorithm Hash digest
SHA256 1fbcba6215da255647854c8783be20b80b826ac8f240f37253650216f8fb998f
MD5 f993dd30117cd4d27343a1a1150df660
BLAKE2b-256 5567bf703b79cbb6b459ebf1640ef22a23487a325e861a0ceb9bc9a42090d73a

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