https://github.com/progval/freetorrent
Mon projet d'écriture de la n-ième version 2 de Freetorrent... en Python
https://github.com/progval/freetorrent
Last synced: over 1 year ago
JSON representation
Mon projet d'écriture de la n-ième version 2 de Freetorrent... en Python
- Host: GitHub
- URL: https://github.com/progval/freetorrent
- Owner: progval
- Created: 2010-12-10T18:36:26.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-12-30T09:32:32.000Z (over 15 years ago)
- Last Synced: 2025-02-12T05:15:21.627Z (over 1 year ago)
- Language: Python
- Homepage: http://freetorrent.fr
- Size: 205 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Web server
==========
Software
--------
I use Apache with mod_wsgi, both from Debian repository (in apache2 package).
Configuration
-------------
This is a sample configuration you can edit to fit your own needs, available
under CC-0 licence.
ServerName freetorrent
DocumentRoot /home/progval/workspace/Freetorrent
Options Indexes MultiViews FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
Options Indexes MultiViews FollowSymLinks +ExecCGI
SetHandler wsgi-script
Order allow,deny
Allow from all
SetHandler None
TransferLog /var/log/apache2/freetorrent.log
Database
========
Engines
-------
This software was designed, at the early start, to use SQLite database, but
MySQL appears to be better for our needs; that's why MySQL is used as main
database, and SQLite only stores cache (in RAM).
Configuration
-------------
All configuration is in common/db.py file. As this software is not
designed to be distributed (but distributed because libre software is
the Good), there is no real configuration file.
Required softwares
==================
This software are not embedded in Freetorrent source, either because they
are enough famous to be package, or because they are easily installable,
or because of licensing issue.
Postmarkup
----------
The BBCode parser Freetorrent uses is Postmarkup, available under the new
BSD license. It can be found at http://code.google.com/p/postmarkup/
Pygments
--------
As Postmarkup provides the [code] tag, that colors code, Pygment (also
distributed under BSD license) can be install to render [code].
Pygments can be found at http://pygments.org/ and is available in repository
of most of GNU/Linux distributions.
Unidecode
---------
The module used to remove accents, in order to get titles without special
characters is Unidecode (Perl license). It can be found at
http://pypi.python.org/pypi/Unidecode. note that the
libtext-unidecode-perl Debian package is for Perl and not for Python, so
it is not compatible.
Library embedded in Freetorrent source
======================================
The fellowing software are embedded in Freetorrent source, either because they
are not installable, or Freetorrent doesn't need all the library, or they must
be edited.
Pesto
-----
The Cookie lib of Pesto library is used for cookies handling, and is
embedded in Freetorrent source (common/lib/pesto/cookie.py)
HunnyB
------
This library provides Bencode encoder/decoder and is avaiblable under MIT
license.
Two lines has been removed, to disable unwanted exception raising.