Module ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Str If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Print NameLoad Str Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad ListLoad Str Assign NameStore Call NameLoad ListLoad Str If SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Str If SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Str If SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Str Assign NameStore Call NameLoad NameLoad keyword Str keyword Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad keyword Call NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd Call NameLoad Num Num Num NameLoad Return BinOpMod Str TupleLoad BinOpSub AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd CompareIn Str NameLoad CompareIn SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd NameLoad Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore BinOpRShift Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num If BoolOpAnd CompareIn NameLoad NameLoad CompareGtE Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num body Expr Call NameLoad ListLoad Str Str Str Str Str NameLoad NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Num orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Num orelse Expr Call NameLoad Num decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str Return Call NameLoad keyword NameLoad keyword Call NameLoad keyword Call NameLoad Call NameLoad keyword NameLoad keyword NameLoad keyword Num decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Expr Str FunctionDef arguments args NameParam defaults body Return TupleLoad Call NameLoad keyword Str keyword Num Num decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Return TupleLoad Call NameLoad keyword Str keyword Num Num decorator_list Call AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Return TupleLoad Call NameLoad keyword Str keyword Num Num decorator_list Call AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad
N/A datetime datetime timedelta psutil cpu_percent process_iter subprocess call flask Flask request jsonify abort flask_limiter Limiter werkzeug.utils secure_filename werkzeug.contrib.fixers ProxyFix N/A os N/A magic N/A repotojson N/A yaml N/A time N/A config_file N/A N/A N/A os getcwd /yumapi/config.yaml N/A config_yaml N/A N/A yaml load N/A file config_file r N/A upload_dir N/A config_yaml N/A upload_dir N/A Verify upload directory is set in config.yaml N/A N/A N/A N/A N/A os path isdir upload_dir False N/A N/A upload_dir doesn't exist, please create directory set directory in configurations.py N/A N/A exit N/A start_time N/A N/A time time N/A hostname N/A N/A N/A os uname N/A 1 N/A allowed_ext N/A set N/A rpm N/A allowed_mime N/A set N/A application/x-rpm N/A N/A config_yaml N/A request_limit N/A N/A request_limit N/A config_yaml N/A request_limit N/A N/A request_limit 1 per second N/A N/A config_yaml N/A createrepo_workers N/A N/A createrepo_workers N/A config_yaml N/A createrepo_workers N/A N/A createrepo_workers 2 N/A N/A config_yaml N/A max_content_length N/A N/A max_content_length N/A config_yaml N/A max_content_length N/A N/A max_content_length 90 * 1024 * 1024 * 1024 N/A app N/A Flask __name__ static_folder static_url_path N/A N/A N/A app config N/A upload_dir upload_dir N/A 900MB default limit set below N/A N/A N/A app config N/A MAX_CONTENT_LENGTH max_content_length N/A limiter N/A Limiter app uptime N/A N/A N/A N/A N/A Return uptime about nginxify for health check N/A seconds N/A timedelta seconds N/A int N/A N/A N/A time time start_time N/A d N/A N/A datetime 1 1 1 seconds N/A N/A %dD:%dH:%dM:%dS N/A N/A N/A d day 1 N/A d hour N/A d minute N/A d second N/A allowed_file N/A N/A filename N/A N/A N/A Verify filename is in allowed extension N/A N/A N/A . filename N/A N/A N/A N/A filename rsplit . 1 N/A 1 allowed_ext N/A upload_file N/A N/A N/A N/A N/A Post RPMs to upload URI, this does all the work N/A file N/A N/A request files N/A file N/A filename N/A secure_filename N/A file filename N/A N/A file N/A allowed_file N/A file filename N/A N/A N/A N/A file save N/A N/A N/A os path join N/A N/A app config N/A upload_dir filename N/A file2 N/A N/A upload_dir / filename N/A file_mime N/A N/A magic from_file file2 mime True N/A filesize N/A N/A N/A N/A os path getsize file2 20 N/A N/A N/A file_mime allowed_mime N/A N/A N/A N/A os path getsize file2 1870 N/A N/A N/A call N/A createrepo -v -p --update --workers createrepo_workers upload_dir N/A N/A jsonify name filename size_mb filesize mime file_mime status 202 N/A N/A N/A N/A os remove file2 N/A N/A abort 415 N/A N/A N/A abort 415 N/A N/A N/A app route /api/upload methods N/A POST N/A N/A limiter limit request_limit list_repo N/A N/A N/A N/A N/A Return json response from sqlite database yum has N/A N/A N/A repotojson main N/A N/A N/A app send_static_file repo.json N/A N/A N/A app route /api/repo N/A N/A limiter limit request_limit health N/A N/A N/A N/A N/A Health URI to verify yum-nginx-api is operational N/A N/A jsonify hostname hostname uptime N/A uptime cpu_percent N/A int N/A cpu_percent interval None percpu False status 200 N/A N/A N/A app route /api/health N/A N/A limiter limit request_limit N/A Error handlers for main error responses page_not_found N/A N/A error N/A N/A N/A N/A N/A jsonify message Invaild URI, did you mean /api/upload, /api/repo or /api/health status 404 404 N/A N/A N/A app errorhandler 404 method_not_allowed N/A N/A error N/A N/A N/A N/A N/A jsonify message Method not allowed, post binary RPM to URI status 405 405 N/A N/A N/A app errorhandler 405 unsupported_media N/A N/A error N/A N/A N/A N/A N/A jsonify message File not RPM status 415 415 N/A N/A N/A app errorhandler 415 N/A N/A app wsgi_app N/A ProxyFix N/A app wsgi_app N/A N/A __name__ __main__ N/A N/A N/A N/A app run 127.0.0.1 debug False