Skip to main content

Cloud Request Engine

51Degrees Python Pipeline Cloud Request Engine

Developer Documentation

Introduction

The Pipeline is a generic web request intelligence and data processing solution with the ability to add a range of 51Degrees and/or custom plug ins (Engines)

Requirements

  • Python 3.8+

This package fiftyone_pipeline_cloudrequestengine

This package uses the engines class created by the fiftyone-pipeline-engines. It makes available:

Credentials

The engine authenticates with a resource key, a licence key, or both, set as resource_key and license_key in its settings. Which one is set decides whether requested_properties, the list of fully qualified property names to ask for, is also needed:

resource_key license_key requested_properties Accepted
Yes No No Yes. The resource key states which properties it carries.
Yes Yes No Yes. The answer holds what the resource key carries.
Yes Yes Yes Yes. The service adds the listed properties the licence key grants.
Yes No Yes Yes. The service adds the listed properties, as null with a reason where no licence grants one.
No Yes Yes Yes. A licence key names no properties, so the list says which are wanted.
No Yes No No. The service answers 400 to every such request.
No No Either No. There is nothing to authenticate with.

A combination that is not accepted raises ValueError when the engine is built, so a deployment sees one configuration error rather than a failure on every request. A value that is empty or only whitespace counts as absent, and each value is trimmed, so a key read from an environment variable with a trailing newline still works.

A resource key is public by design, because it travels to the browser in a script URL. A caller that runs only on the server should use a licence key and name the properties it wants, so the credential stays on the server and each answer carries only what that caller needs. A licence key is sent in the body of every request, never in a URL. Where a request named properties and the answer left some out, the engine warns once that they are not covered by the keys in use, and the properties that came back are usable as normal. With a resource key and no licence key, a property no licence grants comes back as null with a reason, so the warning says instead that every property is answered and these names are not properties, and asks the caller to check the spelling of each one.

See the Credentials section of the cloud request engine specification and the rules in cloudrequestengine.py.

Pointing the engine at another host

The engine calls https://cloud.51degrees.com/api/v4/ unless told otherwise. Set the _51DEGREES_CLOUD_ENDPOINT environment variable, or pass cloud_endpoint in the engine settings, to the API base of another host including the /api/v4/ segment. FOD_CLOUD_API_URL, the old name of that variable, is deprecated. The engine reads it only when _51DEGREES_CLOUD_ENDPOINT is not set, and warns once that the old name was used. Constants.FOD_CLOUD_API_URL is deprecated as well, and Constants.CLOUD_ENDPOINT replaces it. A host other than cloud.51degrees.com would be used to (a) use an on premise web server, or (b) use a privately hosted version of the 51Degrees cloud for performance reasons. This is the private hosting option of the cloud service, and both run the same service, so code written against one works unchanged against the other.

Examples

The examples folder holds examples that use this engine to get device detection and IP intelligence results from one request to the 51Degrees cloud service, with a resource key or a licence key. Its readme says how to run them.

Engines that use it

It is used by the cloud versions of the following 51Degrees engines:

Find out more

Metadata

Release files for fiftyone-pipeline-cloudrequestengine 4.5.44

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fiftyone-pipeline-cloudrequestengine 4.5.44
File Size Uploaded Provenance Actions
fiftyone_pipeline_cloudrequestengine-4.5.44.tar.gz 34.9 kB Without provenance Details for fiftyone_pipeline_cloudrequestengine-4.5.44.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fiftyone-pipeline-cloudrequestengine 4.5.44
File Interpreter ABI Platform Actions
fiftyone_pipeline_cloudrequestengine-4.5.44-py3-none-any.whl Python 3 none any Details for fiftyone_pipeline_cloudrequestengine-4.5.44-py3-none-any.whl

Total release size: 57.1 kB

Release files / fiftyone_pipeline_cloudrequestengine-4.5.44.tar.gz

Download URL fiftyone_pipeline_cloudrequestengine-4.5.44.tar.gz
Size 34.9 kB
Tags Source
SHA-256 checksum
How to use checksums
49b5c4d2bb44cf2e1647f33ccb297cd4761eca4a92c18c96e04e44b0e533cc47
BLAKE2b-256 checksum
How to use checksums
b08ea850a33b8ea568a458a34749bc8453b69925a2d72ea26aa17af76f43b8b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / fiftyone_pipeline_cloudrequestengine-4.5.44-py3-none-any.whl

Download URL fiftyone_pipeline_cloudrequestengine-4.5.44-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b3d5ecc60a063b62e659841355c67cbe34977fb9b4e71e75abdb2db0de82698
BLAKE2b-256 checksum
How to use checksums
34e5f9c899a86e222044971d96182bcdd358ea71e50f0ab9bd0ad14c701a71c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for fiftyone-pipeline-cloudrequestengine 4.5.44

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.5.44 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page