lord63 / me-api Goto Github PK
View Code? Open in Web Editor NEWAn extensible, personal API with custom integrations. It's a python port.
License: MIT License
An extensible, personal API with custom integrations. It's a python port.
License: MIT License
Currently, when we use the medium middleware, we can directly use it. But actually medium has its own API, you can read the docs here: medium-api-docs.
I wonder whether we should change to use the API or not, benefits are:
])}while(1);
thus we can't reuse our NoNeedAuthView
.
currently the generate script should support nested structure in config file, but why not flatten it?
def config_module(module):
"""Config module from user input."""
default_conf = TEMPLATE[module]
default_conf['path'] = get_input(default_conf['path'])
for key, value in default_conf['data'].items():
if isinstance(value, dict):
for inner_key, inner_value in value.items():
default_conf['data'][key][inner_key] = get_input(inner_value)
else:
default_conf['data'][key] = get_input(value)
return default_conf
Here is an example of nested:
{
"modules": {
"douban": {
"path": "/douban",
"data": {
"sectet": {
"client_secret": "aaa",
"access_token": "bbb",
"client_id": "ccc"
}
}
}
}
}
or just flatten it:
{
"modules": {
"douban": {
"path": "/douban",
"data": {
"client_secret": "aaa",
"access_token": "bbb",
"client_id": "ccc"
}
}
}
}
Currently I use flask.jsonify
to return the json.
E.g. the github module:
return jsonify(github=response.json())
you can see that I add a github key for the json, maybe we should just use the original json.
Pull requests are welcome.
me_api is still very young and at its very early stage. If you have some services that you want to integrate with me_api, leave your comment here. Or it's better if you can send me a pull request :) Read the document here: Develop a new middleware if you're ready to build it.
I'll try... _(:3JZ
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.