Code Monkey home page Code Monkey logo

spynepi's People

Contributors

mfkaptan avatar plq avatar ugurcan377 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

spynepi's Issues

Spynepi is not a proper twisted app

While it's not that much of a problem, we could just switch to a lightweight WSGI server if we're not going to use twisted features; dropping a big dependency along the way.

Package Updates

There has to be a background thread subscribed to pypi's twitter feed that updates cached packages as they are released.

Must now parse markdown / rest

Now that we have package caching enabled, proper packages with big description tests are not uncommon in a local repository. So we need to convert these to proper html.

There's no XSS protection whatsoever

    @rpc(Unicode, Unicode, Unicode, Unicode, File, Unicode, Unicode, Unicode,
         Unicode, Unicode, Unicode, Unicode, Unicode, Unicode, Unicode,
         Unicode, Unicode, String, _patterns=[HttpPattern("/",verb="POST")])
    def register(ctx, name, license, author, home_page, content, comment,
            download_url, platform, description, metadata_version, author_email,
            md5_digest, filetype, pyversion, summary, version, protcol_version):

The type declarations in the above block must be revised with max_len and pattern constraints.

Regexes and other validation code could be stolen from: https://bitbucket.org/loewis/pypi/src/7ffa1f091b87dd58eb3770abc6af30ec37943ba1/verlib.py?at=default

One could define, e.g.:

PackageName = Unicode(64, pattern='[a-zA-Z_][0-9A-Za-z_]*')

And use it in database declarations, rpc decorators and ComplexModel subclasses.

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.