kawa-kokosowa / msg Goto Github PK
View Code? Open in Web Editor NEWA simple, but powerful RESTful messaging library.
License: MIT License
A simple, but powerful RESTful messaging library.
License: MIT License
if staticfuzz is gonna use msg, then staticfuzz will be rate limited, not per-user. meaning everyone will have to share the same rate limits, which is bad.
IDK why.
Tested in Chrome with plugin.
Command used: http POST localhost:5000/message message="i love kittens" --auth kitten:yarn
Expected behavior:
Return error with message "text field required"
Actual Behavior:
File "/Users/seabreeze/Projects/msgboard/msgboard/msg.py", line 201, in post
text = json_data['text']
KeyError: 'text'
Difficulty of unittesting SSE/EventSource, /stream
I'm not sure how to approach testing the event stream. It currently will get caught in the infinite loop of the stream resource. Another hurdle is POST'ing while listening with something like sseclient
a range
when returning messages (a list of messages) be sure they're ordered by time in ascending order by default, otherwise there should be a way to specify ascending_not_decending=True as a json property
should there be a modified timestamp? defaults to createddate. this way we can return the newest including by edit, not just created date alone
Although the flask sse module is really nice
See what's not being covered in red: https://coveralls.io/builds/7128688/source?filename=msgboard%2Fmsg.py
Is the a way to test when a token expires that wouldn't involve having python wait 10 minutes?
iterate on making core features mentioned in restful section perfect before progressing
architecture discussion herein. archive meaning exporting a ton or all of posts.
maximum number of items returned in config
it's out of date
also ideally there'd be three kinds of examples:
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.