Skip to main content

Torstack

Travis CI Latest Version https://img.shields.io/pypi/wheel/torstack.svg https://img.shields.io/pypi/pyversions/torstack.svg https://img.shields.io/pypi/l/torstack.svg

Torstack is a bundle for Tornado. it is designed to make getting started quick and easy, so you can focus on writing your app without needing to reinvent the wheel.

Installing

Install and update using pip:

pip install -U torstack

A Simple Config

[application]
port : 8000
max_threads_num : 500
autoreload : True
settings = {
  'template_path' : 'website/template',
  'static_path' : 'website/static',
  'compress_response' : True,
  'cookie_secret' : '__cookie_secret__',
  'xsrf_cookies' : False,
  'login_url' : '/login',
  'debug' : True,
  'autoreload' : False
  }
log = {
  'log_level' : 'WARNING',
  'log_console' : False,
  'log_file' : True,
  'log_path' : '/tmp/logs',
  'when' : 'D',
  'interval' : '1',
  'backupCount' : '30'
  }

A Simple Example

import os
from tornado import gen
from torstack.server import TorStackServer
from torstack.handler.base import BaseHandler

class MainHandler(BaseHandler):
    def get(self):
        self.write("Hello, world")

def main():
    server = TorStackServer()
    server.config.load('./dev.conf')
    server.add_handlers([(r"/", MainHandler)])
    server.run()

if __name__ == "__main__":
    main()

Features

  • session

  • cookie

  • database

  • redis

  • taskmgr

  • websocket

  • smtp

  • elasticsearch

Python libraries

  • redis

  • aioredis

  • sqlalchemy

  • aiomysql

  • pymysql

  • asyncpg

  • motor

  • apscheduler

  • elasticsearch

  • psycopg2

Metadata

Release files for torstack 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for torstack 0.1.1
File Size Uploaded Provenance
torstack-0.1.1.tar.gz 32.7 kB Without provenance Details

Release files / torstack-0.1.1.tar.gz

Download URL torstack-0.1.1.tar.gz
Size 32.7 kB
Tags Source
SHA-256 checksum
How to use checksums
21c7039c154b376518b56e37787a74a8279123ad1e6dcc2e17a3c16f9f615208
BLAKE2b-256 checksum
How to use checksums
8e80616c1abca3212133c08b09f98550935ce4c45925484f3870115602becbc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for torstack 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page