Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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.
To use the AMPS Python Client, you must have the following software installed and configured on your system:
Fedora prerequisites:
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.
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.
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.
Check under the build
directory for AMPS.so
-- this is the Python extension module. Ensure this library's directory is in your PYTHONPATH.
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.
Use a Visual Studio Command Prompt to create a command prompt where the necessary Visual Studio environment variables are set for command line builds.
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.
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.
Check under the build
directory for AMPS.pyd
-- this is the Python extension module. Ensure this library's directory is in your PYTHONPATH.
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.
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'.
Download the wheel file from the 60East client release page.
run 'python -m pip install *.whl'.
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.
The developer's guide and generated reference documentation for this client are available under the doc/ directory.
FAQs
AMPS Python Client
We found that amps-python-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.