Hello Geert,
I hope I understood your question correctly (my Dutch is not very good).
To implement a client for a HTTP JSON API you could use requests
(http://docs.python-requests.org). To implement a CLI app for that API
using that client, you could try argparse
(https://docs.python.org/3/library/argparse.html) or click
(http://click.pocoo.org/), depending on the complexity of the API.
---
Regards,
Andriy Yurchuk
On 03.04.2016 16:00, Geert Stappers wrote:
Hoi,
Mijn inschatting is dat er hier mensen zijn die
weet hebben van Python code die tegen een JSON web API
aan kan praten. Daar zoek wat command line voorbeelden van.
Om voor een andere API een implementatie te maken.
In gebruik doe je dan
command.py subcommand parameter parameter
Dat er dat JSON de lijn over gaat
en de user een statusberichtje krijgt.
Mijn websearch op 'python json api cli client' brengt vooral
subsets als "python json" of "python api".
Wat in de buurt komt van wat ik zoek
is https://github.com/jkbrzt/httpie
Wat hebben jullie aan andere voorbeelden in die richting?
Groeten
Geert Stappers
_______________________________________________
Python-nl mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-nl