viniciuschiele / flask-apidoc Goto Github PK
View Code? Open in Web Editor NEWAdds ApiDoc support to Flask
License: MIT License
Adds ApiDoc support to Flask
License: MIT License
Last login: Sat Jul 16 11:54:16 on ttys000
allranMacPro:~ allran$ /Users/allran/PycharmProjects/college/flask/bin/python /Users/allran/PycharmProjects/college/manage.py apidoc
Traceback (most recent call last):
File "/Users/allran/PycharmProjects/college/manage.py", line 93, in <module>
manager.run()
File "/Users/allran/PycharmProjects/college/flask/lib/python2.7/site-packages/flask_script/__init__.py", line 412, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File "/Users/allran/PycharmProjects/college/flask/lib/python2.7/site-packages/flask_script/__init__.py", line 383, in handle
res = handle(*args, **config)
File "/Users/allran/PycharmProjects/college/flask/lib/python2.7/site-packages/flask_script/commands.py", line 216, in __call__
return self.run(*args, **kwargs)
File "/Users/allran/PycharmProjects/college/flask/lib/python2.7/site-packages/flask_apidoc/commands.py", line 43, in run
return subprocess.call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
I set up the flask-apidoc at first successfully but now it is not working when I work the command below:
python manage.py apidoc
The error:
Traceback (most recent call last): File "manage.py", line 9, in <module> manager.run() File "/usr/local/lib/python2.7/dist-packages/flask_script/__init__.py", line 412, in run result = self.handle(sys.argv[0], sys.argv[1:]) File "/usr/local/lib/python2.7/dist-packages/flask_script/__init__.py", line 383, in handle res = handle(*args, **config) File "/usr/local/lib/python2.7/dist-packages/flask_script/commands.py", line 216, in __call__ return self.run(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/flask_apidoc/commands.py", line 43, in run return subprocess.call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 523, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
when apidoc have some parse error. Cmd execute 'python manage.py apidoc' show nothing, only show process exit with code 1. No any valueable info explain what happend.When I execute cmd with apidoc like 'apidoc -i srv/ -o static/docs', it worked show valueable info.
hello, Can this be supported now?
Hi!
Quick question : Why isn't Python 2.7 supported?
Hello, I'm a new flask user
I can use 'apidoc -i src -o dest' command to generate apidocs, but failed to use 'python manage.py apidoc', the error list as follow:
D:\DevelopSpace\pythons\apps\express_opt\opt-web>python manage.py apidoc Traceback (most recent call last): File "manage.py", line 32, in <module> manager.run() File "D:\Program\Python27\lib\site-packages\flask_script\__init__.py", line 412, in run result = self.handle(sys.argv[0], sys.argv[1:]) File "D:\Program\Python27\lib\site-packages\flask_script\__init__.py", line 383, in handle res = handle(*args, **config) File "D:\Program\Python27\lib\site-packages\flask_script\commands.py", line 216, in __call__ return self.run(*args, **kwargs) File "D:\Program\Python27\lib\site-packages\flask_apidoc\commands.py", line 43, in run return subprocess.call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) File "D:\Program\Python27\lib\subprocess.py", line 168, in call return Popen(*popenargs, **kwargs).wait() File "D:\Program\Python27\lib\subprocess.py", line 390, in __init__ errread, errwrite) File "D:\Program\Python27\lib\subprocess.py", line 640, in _execute_child startupinfo) WindowsError: [Error 2]
I don't know how to use flask to touch the URL 127.0.0.1:500/docs.
Original Code on Line 96 assumes api_project.json file generated by apidocs has a attribute "url" but that url attribute is now under the "generator" attribute. Pull request for fix incoming....
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.