Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnandersen777/dffml-operations-us-reps
DFFML Operations for geting information on US representatives
https://github.com/johnandersen777/dffml-operations-us-reps
Last synced: about 14 hours ago
JSON representation
DFFML Operations for geting information on US representatives
- Host: GitHub
- URL: https://github.com/johnandersen777/dffml-operations-us-reps
- Owner: johnandersen777
- License: mit
- Created: 2020-06-26T13:29:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T03:54:09.000Z (over 4 years ago)
- Last Synced: 2024-10-24T09:12:16.732Z (25 days ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DFFML Operations for geting information on US representatives
## Usage
```console
$ dffml dataflow create usreps.or_address_to_cords usreps.or_find_reps get_single |
dffml dataflow run records all \
-record-def usreps.or_address_to_cords.inputs.address \
-inputs usreps.or_find_reps.outputs.result,=get_single_spec \
-configloader json \
-dataflow /dev/stdin \
-sources m=memory \
-source-records '1221 SW 4th Ave, Portland, US 97204'
[
{
"extra": {},
"features": {
"usreps.or_find_reps.outputs.result": {
"Representative Akasha Lawrence Spence": "[email protected]",
"Senator Ginny Burdick": "[email protected]"
}
},
"key": "1221 SW 4th Ave, Portland, US 97204",
"last_updated": "2020-06-26T07:50:45Z"
}
]
```## HTTP Deployment DataFlow
```console
$ dffml dataflow create \
usreps.or_address_to_cords \
usreps.or_find_reps \
get_single \
-seed \
usreps.or_find_reps.outputs.result,usreps.or_address_to_cords.outputs.result=get_single_spec \
-configloader yaml |
tee dffml_operations_us_reps/deploy/df/reps.yaml
```## License
DFFML dffml-operations-us-reps is distributed under the [MIT License](LICENSE).