Skip to main content

Cullinan is written based on tornado and Sqlalchemy to help the project quickly build web application

Project description

Python version PyPI version PyPI downloads GitHub stars License

   _____      _ _ _                      
  / ____|    | | (_)                     
 | |    _   _| | |_ _ __   __ _ _ __     
 | |   | | | | | | | '_ \ / _` | '_ \    
 | |___| |_| | | | | | | | (_| | | | |   
 \_____\__, _|_|_|_|_| |_|\__,_|_| |_|  

Cullinan

Cullinan is written based on tornado and Sqlalchemy to help the project quickly build web application

How to use

install

pip install cullinan

demo

File controller:

from cullinan.controller import controller, get_api

@controller()
class TestController:
    
    @get_api(uri='/get', query_params=['id', 'name'])
    def get(self, query_params):
        return self.service['TestService'].test(query_params['id'], query_params['name'])

File service:

from cullinan.service import Service, service

@service
class TestService(Service):
    def test(self, id, name):
        self.response.set_body({ 'id': id, 'name': name })
        return self.response

File application:

from cullinan import application

def main():
    application.run()

if __name__ == '__main__':
    main()

Now, A web application demo is completed!


File structure:

project
   |----application.py                               # Web Application main entrance
   |----controller                                   # Controller package
   |  |----TestController.py                            
   |----service                                      # Service package
   |  |----TestService.py                               

Wiki

wiki and other related references: https://github.com/plumeink/Cullinan/wiki

Maintainer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cullinan-0.54.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

cullinan-0.54-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file cullinan-0.54.tar.gz.

File metadata

  • Download URL: cullinan-0.54.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for cullinan-0.54.tar.gz
Algorithm Hash digest
SHA256 2534b5821b26030565dcec670a3d0e94d79721c038de0b2c6a0c4af3ce877306
MD5 f122e9264cc26d3ef5cad2f75cf1b990
BLAKE2b-256 bf6dd9fc455237704e43c65ccd5750dd3f8a2b8255875697e36b26c5c3c057b7

See more details on using hashes here.

File details

Details for the file cullinan-0.54-py3-none-any.whl.

File metadata

  • Download URL: cullinan-0.54-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for cullinan-0.54-py3-none-any.whl
Algorithm Hash digest
SHA256 38978bb369e616bd8cc01c6d6c444a7c40261e98435872600d2de4a47ecf449e
MD5 8df16fe845da0d4eb509b11eaf3a04b6
BLAKE2b-256 238a4ff40b4f113f712a5317652567177dd7f1dd345419f73e86104e8036dd18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page