Skip to content

nootsuite/suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NootSuite

quick and dirty privacy suite powered by python + flask, deployable in a single touch

How the fudge does it work?

Look at this nice flowchart of the PinguHTTP model

flowchart
    a[User sends request] -->|Hey, can I have example.com| b(Server recieves request)
    b --> c{Is request valid?}
    d{Is request a valid file?}
    c -->|No| ire[Return InvalidReqError]
    c --> |Yes| f(Return page)
    d -->|No| ire
    f --> g(Standby for more requests)
    g -->|Hey, I need this file!| e{Is file a valid file?} -->|Yes|h(Return the file) --> g
    e -->|No| ire
Loading

What are the supported file types?

Quoting form app.py:

sft = [
    # text
    'text/html',
    'text/plain',
    'text/css',
    'text/javascript',
    'text/markdown',
    # image
    'image/png',
    'image/jpeg',
    'image/gif',
    'image/svg+xml',
    'image/webp',
    'image/x-icon',
    # audio
    'audio/mpeg',
    'audio/ogg',
    'audio/wav',
    'audio/webm',
    # video
    'video/mp4',
    'video/ogg',
    'video/webm',
    # application
    'application/javascript',
    'application/json',
    'application/pdf',
    'application/xml',
    'application/zip',    
]

What about other file types?

To add support for other file types, you can add them to the sft list in app.py, then write a parser. After that, you can add the parser to the parsers dictionary in app.py. Example entry:

'application/zip': parse_zip

How do I contribute?

open a pull request, for god's sake If you make enough contributions, you might become a posh collaborator!

About

quick and dirty privacy suite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages