GithubHelp home page GithubHelp logo

neolynx / cirrina Goto Github PK

View Code? Open in Web Editor NEW
35.0 6.0 9.0 526 KB

cirrina is an opinionated asynchronous web framework based on aiohttp

License: GNU Lesser General Public License v3.0

Python 100.00%
python web framework websockets sessions aiohttp authentication json rpc jrpc

cirrina's People

Contributors

arcenik avatar dominiksch93 avatar lbolla avatar michaelimfeld avatar mpflanzer avatar neolynx avatar timofurrer avatar waghanza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cirrina's Issues

cirrina client

Why is there no:

from cirrina import Client

Do we need one?

UnboundLocalError when uploading files

When uploading files, it's possible that "recived_filename" is not yet defined when it's used. See:

filename = received_filename.replace("\"", "")

E.g. error log:

local variable 'received_filename' referenced before assignment
                                               Traceback (most recent call last):
                                                 File "/opt/roche/home/cirrina/cirrina/server.py", line 356, in _wrap
                                                   ret = (await func(request))
                                                 File "/opt/roche/home/cirrina/cirrina/server.py", line 458, in upload_handler
                                                   filename = received_filename.replace("\"", "")
                                               UnboundLocalError: local variable 'received_filename' referenced before assignment

Move static files to example

Does the javascript websocket client implementation really belong to the package content?
It's just another implementation of a client which is able to talk to a cirrina server.
The examples/documentation might be a better place.

asyncio.Task.all_tasks disappeared in Python 3.9

When shutting down cirrina while using Python 3.9, I get this error:

^CTraceback (most recent call last):
...
  File "/usr/lib/python3/dist-packages/cirrina/server.py", line 183, in run
    for task in asyncio.Task.all_tasks():
AttributeError: type object '_asyncio.Task' has no attribute 'all_tasks'

The problem is that asyncio.Task.all_tasks was deprecated in py3.7 and removed in py3.9:
https://docs.python.org/3.8/library/asyncio-task.html#asyncio.Task.all_tasks

Write README

Write README containing small documentation ...

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.