Giter Site home page Giter Site logo

croydon / flask-xml-rpc-reloaded Goto Github PK

View Code? Open in Web Editor NEW
8.0 5.0 4.0 63 KB

This is a library that lets your Flask apps provide XML-RPC APIs. OPEN FOR PULL REQUESTS.

Home Page: https://pypi.org/project/Flask-XML-RPC-Re/

License: MIT License

Python 90.67% CSS 3.55% HTML 5.78%
flask flask-extensions python3 python-2 python xml-rpc

flask-xml-rpc-reloaded's Introduction

Flask-XML-RPC-Re (Flask-XML-RPC-Reloaded)

This is a library that lets your Flask apps provide XML-RPC APIs. A small example is included.

Install

pip install flask-xml-rpc-re

Compatible to Flask-XML-RPC

Flask-XML-RPC-Reloaded is a fork of the original Flask-XML-RPC, which was unfortunately abandoned. This version should be 100% compatible and therefore a drop-in replacement for Flask-XML-RPC.

Differences to Flask-XML-RPC

Resources

Thanks to Armin Ronacher for the logo. Thanks to Matthew "LeafStorm" Frazier for creating the original Flask-XML-RPC.

flask-xml-rpc-reloaded's People

Contributors

abompard avatar an5t avatar croydon avatar leafstorm avatar pmlandwehr avatar ppjet6 avatar ralphbean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flask-xml-rpc-reloaded's Issues

Update documentation

  • Update doc to change the package name and import naming scheme
  • Host them on GitHub pages (or python packages doc site?)

Unable to import module

Hi,

I'm trying to use flask-xml-rpc-reloaded but got this error every time I call my Flaqsk app:

* Serving Flask app "main.py" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 287-775-524
192.168.64.1 - - [21/Nov/2018 21:17:18] "GET / HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/flask/cli.py", line 325, in __call__
    self._flush_bg_loading_exception()
  File "/usr/local/lib/python2.7/site-packages/flask/cli.py", line 313, in _flush_bg_loading_exception
    reraise(*exc_info)
  File "/usr/local/lib/python2.7/site-packages/flask/cli.py", line 302, in _load_app
    self._load_unlocked()
  File "/usr/local/lib/python2.7/site-packages/flask/cli.py", line 317, in _load_unlocked
    self._app = rv = self.loader()
  File "/usr/local/lib/python2.7/site-packages/flask/cli.py", line 372, in load_app
    app = locate_app(self, import_name, name)
  File "/usr/local/lib/python2.7/site-packages/flask/cli.py", line 242, in locate_app
    '\n\n{tb}'.format(name=module_name, tb=traceback.format_exc())
NoAppException: While importing "main", an ImportError was raised:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/flask/cli.py", line 235, in locate_app
    __import__(module_name)
  File "/app/main.py", line 2, in <module>
    from flask_xmlrpcre import XMLRPCHandler, Fault
ImportError: cannot import name XMLRPCHandler

Testing using python colse got the same error:

# python
Python 2.7.15 (default, Oct 16 2018, 07:58:03) 
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from flask_xmlrpcre import XMLRPCHandler, Fault
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name XMLRPCHandler

Someone can help me in this issue ?

Regards,

Misspell of the file name

The name of the file in the folder is xmlrepcre.py instead of xmlrpcre.py which doesn't make it intuitive. You can also add it to the init.py file, to save the hassle of specifying that file in the first place

dump_method_call signature is not python2 compatible anymore

In python2, using a default args after the *params method is not allowed, therefore the 0.13 is the only compatible version with python2.

from flask_xmlrpcre.xmlrpcre import XMLRPCTester File "/.tox/py27/lib/python2.7/site-packages/flask_xmlrpcre/xmlrpcre.py", line 239 def dump_method_call(method, *params, allow_none=False): ^ SyntaxError: invalid syntax

If you dropped the support for python2, please close this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.