Code Monkey home page Code Monkey logo

steroids's Introduction

#Steroids

Steroids is a set of tools to help python developers to build cool stuff reducing efforts and time.

<iframe src="http://ghbtns.com/github-btn.html?user=koalalorenzo&repo=Steroids&type=follow&size=large&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="270" height="30"></iframe> <iframe src="http://ghbtns.com/github-btn.html?user=koalalorenzo&repo=Steroids&type=watch&size=large&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="150" height="30"></iframe>

##Quick install If you are using Unix-like OS, to install Steroids use this command, right from your terminal:

curl -s http://projects.setale.me/Steroids/install | sudo sh 

This script will install everything you do it for you. It works on Debian-derived, Arch Linux, MacOS or every operative sistem with easy_install.

Alternatively You can also install Steroids via python pip command:

sudo pip install Steroids

##Quick Use To generate a new project with examples use this command:

steroids init ProjectName --examples=True

If you need help you can use:

steroids --help

Structure

The structure of a Project built on Steroids is derived from Flask one. It provides Objects, Statics file, Views, Templates, Custom Decorators and others.

The following structure is based on the default modules used: Flask, MongoDB and Honcho.

./settings.py           # Configuration File
./server.py             # script to start Server
./Procfile              # Foreman/Honcho file
./requirements.txt      # Everything you need goes here
./project/              # Where the magic happens
         /__init__.py   # Package declarations 
         /views/        # Directory of Views
         /templates/    # Directory of Templates
         /static/       # Directory of static files
         /objects/      # Directory of Objects

If you use different modules, Steroids will generate a different structure of files and directories.

This structure give a lot of freedom to developers: they can modify it without problems adapting the structure in base of what they do. Steroids structure is just an ordered way to create web services in python.

To understand the structure is suggested to enable the examples when initializing a project.

Modules

Steroids is built around the concept of modules: the structure is defined but the content inside is modified by the modules. Each modules provide different functionality to the project.

By defaults Steroids uses Flask, Tornado, MongoDB and Honcho to provide a basic structure for a complete non-blocking web server. The project generated is ready to be uploaded on Heroku or similar services.

You can use a small specific group of modules in base of your needs. For example to initialize a project using only Flask and MongoDB, run this command:

steroids init ProjectName --modules flask mongodb --examples=True

A list of modules is available running this command:

steroids modules list

To get help and read more about a module you can use this command:

steroids modules MODULE

where MODULE is the name of the module get in the list ( ex: flask ).

Modules Available

License

Steroids is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/

Liks

<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-10395528-24', 'setale.me'); ga('send', 'pageview'); </script>

steroids's People

Contributors

koalalorenzo avatar dottorblaster avatar

Stargazers

M3k4X1D4 avatar TheRinger avatar Lewis J Ellis avatar Rakhmad Azhari avatar  avatar Luis Albarenga avatar Dmitry Kulikov avatar  avatar Jonathan Barratt avatar  avatar

Watchers

 avatar  avatar Rakhmad Azhari avatar James Cloos avatar  avatar

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.