fiftyone-location-4.4.1
توضیحات
The 51Degrees Pipeline API 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). This repository contains the geo-location engines for the Python implementation of the Pipeline API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fiftyone-location-4.4.1 |
| نام | fiftyone-location |
| نسخه کتابخانه | 4.4.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | 51Degrees |
| ایمیل نویسنده | support@51degrees.com |
| آدرس صفحه اصلی | https://51degrees.com/ |
| آدرس اینترنتی | https://pypi.org/project/fiftyone-location/ |
| مجوز | EUPL-1.2 |
# 51Degrees Geo-Location Engines

**v4 Location Python**
[Developer Documentation](https://51degrees.com/location-python/index.html "Developer documentation")
## Introduction
This project contains the geo-location engines for the Python implementation of the 51Degrees Pipeline API.
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)
## Dependencies
For runtime dependencies, see our [dependencies](http://51degrees.com/documentation/_info__dependencies.html) page.
The [tested versions](https://51degrees.com/documentation/_info__tested_versions.html) page shows the Python versions that we currently test against. The software may run fine against other versions, but additional caution should be applied.
## Installation and Examples
### From PyPI
`pip install fiftyone-location`
You can confirm this is working with the following micro-example.
* Create a resource key for free with the 51Degrees [configurator](https://configure.51degrees.com/6CTsmbPx). This defines the properties you want to access.
* On the 'implement' page of the configurator, copy the resource key and replace YOUR_RESOURCE_KEY in the example below. Save this as examplelocation.py
* Run the example with `python examplelocation.py`
* Feel free to try different locations and property values.
```
from fiftyone_location.location_pipelinebuilder import LocationPipelineBuilder
pipeline = LocationPipelineBuilder(resource_key="YOUR_RESOURCE_KEY").build()
fd = pipeline.create_flowdata()
fd.evidence.add("query.51D_Pos_latitude", "40.730610")
fd.evidence.add("query.51D_Pos_longitude", "-73.935242")
fd.process()
print(fd.location.town.value())
```
For more in-depth examples, the following are included with this repository:
| Example | Description |
| gettingstarted.py | Demonstrates the basics of using the service to get postal address information from coordinates. |
| web.py | Shows how to use the location service as part of a simple website. |
### From GitHub
If you've cloned the GitHub repository, you will be able to run the examples directly:
`python -m examples.cloud.gettingstarted`
To run the web example navigate into Examples folder:
#### Linux
Execute `export FLASK_APP=web` where `web` is the example file, and start your application via `flask run`.
#### Windows
Execute `$env:FLASK_APP = "web"` where `web` is the example file, and start your application via `flask run`.
نیازمندی
| مقدار | نام |
|---|---|
| - | fiftyone-pipeline-core |
| - | fiftyone-pipeline-engines |
| - | fiftyone-pipeline-cloudrequestengine |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl fiftyone-location-4.4.1:
pip install fiftyone-location-4.4.1.whl
نصب پکیج tar.gz fiftyone-location-4.4.1:
pip install fiftyone-location-4.4.1.tar.gz