fossasia / susi_python Goto Github PK
View Code? Open in Web Editor NEWSUSI.AI Python Wrapper
License: Apache License 2.0
SUSI.AI Python Wrapper
License: Apache License 2.0
I believe that this repo has good architecture and we also use it as a package (by installing it from the source) for our other repos.
So we might as well create a PyPi package along with some Travis scripts that will make a release on PyPi every time the code updates here.
Other Comments
I would like to work on this.
This is my idea about how it can be improved:
Get rid of global
. This is not Pythonic. It may be useful for ad-hoc automation script, but for a serious, well-structured library, uhm, no.
Let accept server URL as input, so that the lib can be used with SUSI server installed anywhere. We have these URLs hardcoded: https://api.susi.ai
, http://localhost:4000/
, but we should treat them as "default" value. Actually, when we make server URL customizable, we only need 1 default value, either https://api.susi.ai
or http://localhost:4000/
.
If we can, let's make this lib "sans-IO", i.e, the lib won't do the job of receiving, sending data (over network), it only takes care of parsing, combining data. With this approach, our lib can be used both in synchronous code (where requests
is often used for transporting) and asyncio code (where aiohttp
is used for transporting). List of sans-io libs as reference: https://github.com/brettcannon/sans-io/blob/master/index.rst
shuffle intent is not parsed by susi_python.
Susi_python returns an empty reply on shuffle.
Add functionality to get lyrics for the song name passed as query.
Trigger phrases can be -
Currently multiple actions are not supported for planned response
Here is a example of a query with multiple actions each with different plan_delay and plan_date
https://api.susi.ai/susi/chat.json?timezoneOffset=-120&q=rocket%20launch
TO-DO : Handle multiple actions in susi_python
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.