Questions tagged [cyclone]

cyclone is a python web framework, a clone of facebook's tornado, on top of twisted.

cyclone is a clone of facebook's Tornado, on top of Twisted.

Although cyclone and tornado are very similar, cyclone leverages all enterprise class features of Twisted, and more. It is extremely stable, and ready for production.

28 questions
48
votes
1 answer

Apache ab will not work - ab: invalid URL when testing python cyclone

I am trying to ab test cyclone. When I run ab -n 2000 -c 25 http://127.0.0.1 I get ab: invalid URL. Well...when I go to ff on my dev machine, the site is there. Here is my nginx config http { upstream frontends { server…
Tampa
  • 75,446
  • 119
  • 278
  • 425
17
votes
2 answers

tornado maps GET and POST arguments to lists. How can I disable this "feature"?

The HTTPRequest class in the tornado* web framework helpfully maps GET and POST arguments to lists. I understand why -- in case a given argument name is used multiple times. But for some RequestHandlers, this is a pain. For instance, if I want to…
Abe
  • 22,738
  • 26
  • 82
  • 111
10
votes
1 answer

Higher-order web frameworks/add-ons for Twisted/Cyclone/Tornado (web login/user/admin)?

I'm struggling with some architectural choices for a scalable internet-of-things application. I've chosen to base my project on Twisted augmented with the Cyclone framework to provide many Tornado convenances (websockets, auth-decorators,…
Mike Lutz
  • 1,812
  • 1
  • 10
  • 17
5
votes
2 answers

Does cyclone (python) support HTTPS connections and SSL?

Does cyclone (python) support HTTPS connections and SSL? If so, can you please provide an example? I've looked through the documentation and code on the cyclone github page, and can't find any reference to SSL. But since lots of cyclone is just…
Abe
  • 22,738
  • 26
  • 82
  • 111
4
votes
1 answer

Using Twisted + Cyclone + PyPy to handle POST requests cause a memory leak?

After a lot of investigating, I found out that after serving hundreds of thousands of HTTP POST requests, there's a memory leak. The strange part is that the memory leak only occurs when using PyPy. Here's an example code: from twisted.internet…
Ron Reiter
  • 3,852
  • 3
  • 30
  • 34
4
votes
2 answers

How do I write tests for Cyclone in the style of Tornado?

I have been googling and asking on IRC to no avail. Cyclone is supposed to be a Tornado-like protocol for Twisted. But, there are no tests in the Cyclone repository and no-one has written up how to convert tornado.testing.AsyncHTTPTestCase tests to…
Rob Kinyon
  • 1,770
  • 2
  • 19
  • 28
4
votes
1 answer

When does twisted adbapi transaction actually get committed?

I am using adbapi in a cyclone web server. First my handler writes some stuff to a SQL database, then it makes to an HTTP request to another web server. If that HTTP request fails, I want the database transaction to rollback. However, I'm not…
d512
  • 32,267
  • 28
  • 81
  • 107
3
votes
2 answers

Extracting Memory Initialization File (MIF) from a BMP photo

I am working on the DE12-115 microprocessor from Altera using Quartus. In order to display a BMP image onto a monitor using the built-in VGA connections, I must first transform the BMP image into its MIF Format. The MIF format will be nothing but a…
TheLebDev
  • 531
  • 6
  • 18
3
votes
4 answers

custom json encoders in python/tornado

I'm building in tornado (cyclone, actually), and RequestHandler.write is choking on some of my objects. How do I write a JSONencoder for these objects in tornado? One complication: some of the objects are borrowed from external libraries, so I…
Abe
  • 22,738
  • 26
  • 82
  • 111
2
votes
3 answers

GCC downgrade problems

I'm trying to build from source compiler for Cyclone programming language. I'm running 32-bit Ubuntu 12.04 with GCC 4.6.3 install by default. But make fails due to crash in bootstrap utility. To workaround this I'm trying to install older GCC…
kjam
  • 809
  • 1
  • 7
  • 17
2
votes
2 answers

How to Authenticate with Cyclone and Redis

I am using the redis client for cyclone. It's great the you can connect to a server with out a password but how can I connect to redis with a password? How do I modify the below code to authenticate? t =…
Tampa
  • 75,446
  • 119
  • 278
  • 425
2
votes
2 answers

Twisted Cyclone - How to write to redis after the request is done

Below is my basic handler. I just want to server an image and after the requeste is complete, I want to write to redis but when I run the below code, the on_finish is not called. import cyclone.web import cyclone.redis from twisted.internet…
Tampa
  • 75,446
  • 119
  • 278
  • 425
1
vote
1 answer

FPGA DE1-SoC Cyclone V Overlay Device Tree

I am trying to set the overlay device tree on Terasic Ubuntu 16.0 Desktop SD Card for programming the FPGA of DE1-SoC Cyclone V Terasic with MSEL to 00000 I have use the device tree sources socfpga_cyclone5_socdk.dts, socfpga_cyclone5_ghrd.dtsi,…
candido
  • 143
  • 9
1
vote
0 answers

VHDL 3 digit 7 segment display

I have a problem with code snippet from http://langster1980.blogspot.com/2015/09/more-on-seven-segment-displays-and.html My code: library IEEE; use IEEE.STD_LOGIC_1164.ALL; use ieee.numeric_std.all; entity main is port ( clock_in : in…
Grossik
  • 55
  • 7
1
vote
0 answers

How to run baremetal application on Altera Cyclone V SoC using HPS loading from SD card

I have a Terasic DE1-SoC board and I want to run a simple led-blinking baremetal application with using HPS. I've learned HPS tech ref, HPS Boot guide, SoC EDS guide and followed all instructions to run my app. Here's a brief list of my…
Vlad Timofeev
  • 71
  • 1
  • 1
  • 9
1
2