Interface to Autoplot library
Project description
Installation
Operating system command line:
pip install hapiclient
or
pip install https://github.com/hapi-server/client-python
See the Appendix for a fail-safe installation method.
Documentation
All of the features are extensively demonstrated in the hapi_demo.ipynb Jupyter Notebook. The notebook shows example usage of the functions in this package that can be copied into a script or onto a Python command line.
To view the help string on the Python command line after installing hapiclient using pip install hapiclient, use
from hapiclient import hapi
help(hapi)
or
from hapiclient import hapiplot
help(hapiplot)
Development
git clone https://github.com/hapi-server/client-python
cd client-python; python setup.py develop
(The command python setup.py develop creates symlinks so that the local package is used instead of an installed package. Use pip uninstall hapiclient to ensure the local package is used.)
To run tests before a commit, execute
make repository-test
To run an individual unit test in a Python session, use, e.g.,
from hapiclient.test.test_hapi import test_reader
test_reader()
Contact
Submit bug reports and feature requests on the repository issue tracker.
Bob Weigel rweigel@gmu.edu
Appendix
Fail-safe installation
Python command line:
import os
print(os.popen("pip install hapiclient").read())
The above executes and displays the output of the operating system command pip install hapiclient using the shell environment associated with that installation of Python.
This method addresses a problem that is sometimes encountered when attempting to use pip packages in Anaconda. To use a pip package in Anaconda, one must use the version of pip installed with Anaconda (it is usually under a subdirectory with the name anaconda/) as opposed to the one installed with the operating system. To see the location of pip used in a given Python session, enter print(os.popen("which pip").read()).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file autoplot-0.0.1.tar.gz
.
File metadata
- Download URL: autoplot-0.0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 554cdaed6ae8a874e1122c50d7bef8a111b1599de479a42bc60865a5fa50d6df |
|
MD5 | 7544880980ebd6df5cb16732111749fc |
|
BLAKE2b-256 | bb7b62e0c2e36ceca41e7c141ce9cf4ba199140051c82c283ed68ffe34720b68 |