Skip to main content

AMPS Python Client

Project description

AMPS Python Client

Introduction

The AMPS Python Client is a Python extension module that makes it easy to connect to AMPS. This client builds upon the AMPS C++ Client and Python/C api to bring high performance AMPS connectivity to Python code.

Prerequisites

To use the AMPS Python Client, you must have the following software installed and configured on your system:

  • Python 2.7 or Python 3.5 and above.
  • Python distutils. Most python installations build and include this package by default, but you may run into issues building this extension module if distutils is not functioning properly on your system. Python distutils may be packaged in a standalone package named 'python-distutils', or included in 'python-devel.x86_64'. You can also run the setup script available here.
  • C++ compiler. gcc 4.4 or greater on Linux, or a verion of Visual Studio with Mainstream Support from Microsoft (please refer to Microsoft product lifecycle policies) on Windows. Note that this must be the same compiler used to build your python distribution, else python distutils may be unable to invoke your compiler.

Fedora prerequisites:

  1. dnf install redhat-rpm-config
  2. dnf install python-devel # for use with Python2
  3. dnf install python3-devel # for use with Python3
  4. dnf install gcc-c++

Building From a Git Clone

If you obtained this client by a git clone of the 60East amps-client-python repository, you also need to fetch the correct version of the AMPS C++ client submodule. To do this, issue a git submodule command to initialize and update the src/cpp submodule. One easy way to do this is by issuing the command:

git submodule update --init

which will initialize and update the submodule in one step. Note that working with submodules in git requires extra care. Visit this chapter to learn more about git submodules.

Build

This client is distributed as source code and must be compiled before it is used. The build process emits a shared library (or DLL on Windows) that can be imported into your python application.

To build on Linux:

  1. Run python setup.py build from the AMPS Python Client directory to build the client.

    This script uses Python distutils to build the client library. Python distutils provides many additional options for installing the built library into your Python distribution, or otherwise controlling the output of the build process. Run python setup.py --help to view command help.

  2. Check under the build directory for AMPS.so -- this is the Python extension module. Ensure this library's directory is in your PYTHONPATH.

  3. To test, run python -c "import AMPS". If any errors occur importing the AMPS module, validate that the module built properly, and that the containing directory is in your PYTHONPATH.

To build on Windows:

  1. Use a Visual Studio Command Prompt to create a command prompt where the necessary Visual Studio environment variables are set for command line builds.

  2. Add the Python directory (the location of the python.exe interpreter) to your path. Note: The platform of your python installation must match the target platform for this python module. If you want to build a 64-bit module, you must set your PATH to a 64-bit Python installation; for a 32-bit module, you must set it to a 32-bit installation. If you'd like to build both, you must do so separately, once with each Python installation.

  3. Run python setup.py build fom the AMPS Python Client directory to build the client module. Use the -p win32 option to build a 32-bit client module.

  4. Check under the build directory for AMPS.pyd -- this is the Python extension module. Ensure this library's directory is in your PYTHONPATH.

  5. To test, run python -c "import AMPS". If any errors occur importing the AMPS module, validate that the module built properly, and that the containing directory is in your PYTHONPATH.

Installing the Python Binary Wheel

60East also provides Linux-x86-64 and Windows 64-bit binary wheels built with Python 2.7 and for Python 3.x. These wheel files are provided on the 60East website.

If your system is not Linux-x86-64, or you are not using Python 2.6, you can generate your own egg by running 'python setup.py bdist_wheel'.

Installing:

  1. Download the wheel file from the 60East client release page.

  2. run 'python -m pip install *.whl'.

Troubleshooting Build Problems

Symptom: Python.h not found

Resolution: Update or install python distutils. See the entry on python distutils in the prequisites section for information on installing this package.

For More Information

The developer's guide and generated reference documentation for this client are available under the doc/ directory.

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

amps-python-client-5.3.4.1.zip (5.5 MB view details)

Uploaded Source

Built Distributions

amps_python_client-5.3.4.1-cp34-abi3-win_amd64.whl (684.8 kB view details)

Uploaded CPython 3.4+ Windows x86-64

amps_python_client-5.3.4.1-cp34-abi3-win32.whl (427.0 kB view details)

Uploaded CPython 3.4+ Windows x86

amps_python_client-5.3.4.1-cp34-abi3-manylinux_2_24_aarch64.whl (16.9 MB view details)

Uploaded CPython 3.4+ manylinux: glibc 2.24+ ARM64

amps_python_client-5.3.4.1-cp34-abi3-macosx_10_9_universal2.whl (1.5 MB view details)

Uploaded CPython 3.4+ macOS 10.9+ universal2 (ARM64, x86-64)

amps_python_client-5.3.4.1-cp27-cp27m-win_amd64.whl (682.7 kB view details)

Uploaded CPython 2.7m Windows x86-64

amps_python_client-5.3.4.1-cp27-cp27m-win32.whl (465.5 kB view details)

Uploaded CPython 2.7m Windows x86

File details

Details for the file amps-python-client-5.3.4.1.zip.

File metadata

  • Download URL: amps-python-client-5.3.4.1.zip
  • Upload date:
  • Size: 5.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for amps-python-client-5.3.4.1.zip
Algorithm Hash digest
SHA256 b7cd368bf0c4d5e6f6cc27821dee50b4865bf2dca0e12c6a04efa67b892ac604
MD5 a4ccc0969d8fb03229ac0155857c01d0
BLAKE2b-256 32990fdd21ec8552a2131cda06a7c06026eef53fb3b60353925092755dfc606f

See more details on using hashes here.

File details

Details for the file amps_python_client-5.3.4.1-cp34-abi3-win_amd64.whl.

File metadata

  • Download URL: amps_python_client-5.3.4.1-cp34-abi3-win_amd64.whl
  • Upload date:
  • Size: 684.8 kB
  • Tags: CPython 3.4+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for amps_python_client-5.3.4.1-cp34-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8397e1c714937500e0a2f213849c671ae73cc8d7ec5d8d9787bec1cd54eaef42
MD5 4f335dcc8674bbcc9b3f1b6750f8ee39
BLAKE2b-256 546e377d0898b5636d2f53d64acfa5cc82e2ce119f4ffd330faab69f404e69d3

See more details on using hashes here.

File details

Details for the file amps_python_client-5.3.4.1-cp34-abi3-win32.whl.

File metadata

  • Download URL: amps_python_client-5.3.4.1-cp34-abi3-win32.whl
  • Upload date:
  • Size: 427.0 kB
  • Tags: CPython 3.4+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for amps_python_client-5.3.4.1-cp34-abi3-win32.whl
Algorithm Hash digest
SHA256 abf6dc75fab1fa651a72eb027014b543b03aed973799eb4637315e0b0044ba4d
MD5 43b9b3e01b77b6195cb43fa1f8daabdb
BLAKE2b-256 c5b80eb761f5e82318d732fbdca46b2c486cdf5a1c13dbe8de988795c23bd911

See more details on using hashes here.

File details

Details for the file amps_python_client-5.3.4.1-cp34-abi3-manylinux_2_24_aarch64.whl.

File metadata

  • Download URL: amps_python_client-5.3.4.1-cp34-abi3-manylinux_2_24_aarch64.whl
  • Upload date:
  • Size: 16.9 MB
  • Tags: CPython 3.4+, manylinux: glibc 2.24+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for amps_python_client-5.3.4.1-cp34-abi3-manylinux_2_24_aarch64.whl
Algorithm Hash digest
SHA256 44d57303c68a6d864a7bc8759b730958dddc71083dc82f9a75be0db13de833cd
MD5 146f70b3bcac713ca483485f41035279
BLAKE2b-256 b4a7bcb881ccc2cd9909a4b1cea312e01e770907bb5d5410e55ca69d515c6083

See more details on using hashes here.

File details

Details for the file amps_python_client-5.3.4.1-cp34-abi3-manylinux1_x86_64.whl.

File metadata

  • Download URL: amps_python_client-5.3.4.1-cp34-abi3-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.9 MB
  • Tags: CPython 3.4+
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for amps_python_client-5.3.4.1-cp34-abi3-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 302bb02d3f2de73f765559e64a9f2e82123f666e15135333a89b9472aad58b97
MD5 d241d343e0069e0ccb2ab1472d29e3fc
BLAKE2b-256 d8469c88db6057c149d61937eab8bb2c0ee30d22a6f33a530bd0c092452fdca7

See more details on using hashes here.

File details

Details for the file amps_python_client-5.3.4.1-cp34-abi3-macosx_10_9_universal2.whl.

File metadata

  • Download URL: amps_python_client-5.3.4.1-cp34-abi3-macosx_10_9_universal2.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.4+, macOS 10.9+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for amps_python_client-5.3.4.1-cp34-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 040df7ce397bf21bbe02082c989580665f254d8e133d75f2e51f2051fe264ba6
MD5 c05ccb2c522fc86283d425d2ad979ea4
BLAKE2b-256 a699153b015edd0ce74af0aa5afd415cb12eeb3f85e41e05fa598bbba5ad6d4b

See more details on using hashes here.

File details

Details for the file amps_python_client-5.3.4.1-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: amps_python_client-5.3.4.1-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 13.9 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for amps_python_client-5.3.4.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 91c0a4bc3465f06a02b9e79696df0730264f48a8a2053a86636dbdb86f20703a
MD5 1c2be496ed836a1c8cf84aa668fcb68a
BLAKE2b-256 79225c755764ab04778544685ee33cb48224ad6970535978905ee8d2e1f805e8

See more details on using hashes here.

File details

Details for the file amps_python_client-5.3.4.1-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: amps_python_client-5.3.4.1-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 682.7 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for amps_python_client-5.3.4.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 1cd7f8c31dd46086644aad38d76ee496b2202b3871eb8ceaab5559c29b4520b4
MD5 f942a2505aeef2a6b940d8bd1bef8fe9
BLAKE2b-256 1c721573e0273e4479588f070626b2eabb1987a5e33b46a43f57b8d7fbfb8058

See more details on using hashes here.

File details

Details for the file amps_python_client-5.3.4.1-cp27-cp27m-win32.whl.

File metadata

  • Download URL: amps_python_client-5.3.4.1-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 465.5 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9

File hashes

Hashes for amps_python_client-5.3.4.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 a6bb3af32303fb87ea2626d72784b3b0cda81477a51bf18c50d16bd45dbc68e7
MD5 12428ba01400775e7b0a767b5874119a
BLAKE2b-256 6efa6441454a47a36141648b8cb8c87c66e9fe91804508ed924add1c38b3d4ca

See more details on using hashes here.

Supported by

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