Questions tagged [twisted]

Event-driven networking engine written in Python.

Filter by
Sorted by
Tagged with
1
vote
0answers
261 views

Using deferToThread in Twisted to run multiple tasks

I have a list of strings and for each string in the list I need to do some processing work. The selection of strings isn't just using a for loop. Instead, in my case I need to pick up the strings ...
5
votes
1answer
96 views

Basic web app that returns a JSON of information

My web application can take URL-encoded strings and return a JSON that contains information, like API calls. My main concerns are with security. I need a cheap and easy (but secure) way to do certain ...
10
votes
1answer
555 views

Decoding custom packets with Python using Twisted

This server require fast decoding of packets from clients, as I am expecting 5000 concurrent clients that is sending packets possibly every second. This is a game server (5000 players walking send ...
3
votes
1answer
5k views

Simple REST API server

This is a chunk of code I wrote for a job interview at some point - it is a remote key-value storage REST API supporting CRUD operations. Maybe anyone has some feedback on this? It would be very ...
5
votes
1answer
194 views

Twisted Internationalization

I'm not particularly Python savy and recently wrote a LocalizationEngine for Twisted. The strategy I implemented was to make a ...
4
votes
1answer
2k views

File-serving Twisted resource

I've just written this Twisted resource base class for serving files. It's part of a larger application, this is just for serving its images, JavaScript files, etc. Is it okay? I wonder if checking ...