Backend
The backend can be configured within the [backend] section of the configuration file.
SQLite
- class httpaste.backend.sqlite.Config(uri: pathlib.Path, user_table_name: str = 'httpaste_users', paste_table_name: str = 'httpaste_pastes', connection: Optional[sqlite3.Connection] = None)[source]
SQLite backend config
- connection: sqlite3.Connection
a sqlite3.Connection object (does not apply to config)
- paste_table_name: str
Alias for field number 2
- uri: pathlib.Path
local path or URI
- user_table_name: str
Alias for field number 1
Filesystem
- class httpaste.backend.file.Config(base_dirname: pathlib.Path, user_dirname: str = 'users', paste_dirname: str = 'pastes')[source]
Filesystem backend config
- base_dirname: pathlib.Path
path of base directory
- paste_dirname: str
basename of pastes table directory
- user_dirname: str
basename of users table directory
MySQL
- class httpaste.backend.mysql.Config(user: str, password: str, host: str, database: str, connection: Optional[object] = None)[source]
MySQL config
- connection: object
a mysql.connection.MySQLConnection object (does not apply to config)
- database: str
database identifier
- host: str
hostname or IP address
- password: str
user password
- user: str
user name