Fuzzy.ai SDK for Python
A Python package for accessing the fuzzy.ai API.
License
Copyright 2015 9165584 Canada Corporation <legal@fuzzy.ai>
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Installation
You can get this library by forking it from our Github repository:
git clone https://github.com/fuzzy-ai/fuzzy.ai-python.git
After that, you can just use regular setup.py stuff to set it up.
Testing
Testing uses tox and supports py27, py33, py34, py35 and pypy.
- To run for a single version:
tox -e py27
Basic usage
When you use the fuzzyai module, you always have to provide your API key first. Use the setup() function to do that:
from fuzzyai.client import Client client = Client(YOUR_API_KEY)
To have a Fuzzy.ai agent make a decision for you, use the evaluate() function of the fuzzyai module:
agent_id = "AGENTIDHERE"
inputs = {
"height": 188
"weight": 88.7
}
(outputs, evaluation_id) = client.evaluate(agent_id, inputs)
# Real-world usage of the run_distance will return some performance
# metric.
client.feedback(evaluation_id, {"weight_loss": 0.25})
See also
You can submit issues or make pull requests on Github.
Thanks for using Fuzzy.ai.
Metadata
Release files for fuzzy.ai 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fuzzy.ai-0.3.1.tar.gz | 3.5 kB | Without provenance | Details for fuzzy.ai-0.3.1.tar.gz |
Release files / fuzzy.ai-0.3.1.tar.gz
| Download URL | fuzzy.ai-0.3.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e961b807ede2a9da2668559efba90675231650de475b371e0d9734285577501
|
|
BLAKE2b-256 checksum How to use checksums |
ea81164dd9f64a41d9e7671bdab455d5a0b8d76214af2fbace15fd32d23b289c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for fuzzy.ai 0.3.1
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.