Skip to main content

A Python library for generating EVE Online trivia questions.

Project description

# thanatos
[![Build Status](https://travis-ci.org/evetrivia/thanatos.svg)](https://travis-ci.org/evetrivia/thanatos)
[![Coverage Status](https://coveralls.io/repos/evetrivia/thanatos/badge.svg)](https://coveralls.io/r/evetrivia/thanatos)
[![PyPI](http://img.shields.io/pypi/v/Thanatos.svg)](https://pypi.python.org/pypi/Thanatos)
[![Documentation Status](https://readthedocs.org/projects/thanatos/badge/)](https://thanatos.readthedocs.org/en/latest/)

Thanatos is a Python library for generating trivia questions for the sci-fi MMO [EVE Online](https://www.eveonline.com/). It
does require a MySQL database backend to operate and will download a selected list of DB tables. These tables come from
the [Static Data Export](https://developers.eveonline.com/resource/static-data-export).

## Example Usage
```python
import thanatos

# For default vagrant/cloud9 connection defaults
db = thanatos.database.db_utils.get_connection()

# Or provide your own connection details
connection_details = {
'host': '127.0.0.1',
'user': 'example',
'password': 'some_secure_password',
'database': 'some_db',
}

db = thanatos.database.db_utils.get_connection(connection_details)

# Asking a random question
question_class = thanatos.questions.question_utils.get_random_question()
question_instance = question_class(db)
question = question_instance.ask()

# Asking a specific question
question_instance = thanatos.questions.universe.BorderingRegionsQuestion(db)
question = question_instance.ask()

# Alternative way of asking a specific question
question_class = question_utils.get_question('borderingregionsquestion')
question_instance = question_class(db)
question = question_instance.ask()
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Thanatos-0.4.2.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

Thanatos-0.4.2-py2-none-any.whl (1.8 MB view details)

Uploaded Python 2

File details

Details for the file Thanatos-0.4.2.tar.gz.

File metadata

  • Download URL: Thanatos-0.4.2.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Thanatos-0.4.2.tar.gz
Algorithm Hash digest
SHA256 fdce1129751f2fbbd93075d847c801d961c2953b328ac673329511dd2a3ef5da
MD5 026e59a73cd7feff6c78c7b2c4670e84
BLAKE2b-256 e2a3343e4bffd3c5f05964c09dc9725bc006c9e1f7e66027cfc7988519d493d9

See more details on using hashes here.

File details

Details for the file Thanatos-0.4.2-py2-none-any.whl.

File metadata

File hashes

Hashes for Thanatos-0.4.2-py2-none-any.whl
Algorithm Hash digest
SHA256 36a0506637a6e157a1a6e9a4b51bdbf2d3f48f35300f626fba62a68de1b53894
MD5 0745fb213ee8799b06d4193c56b40836
BLAKE2b-256 e73f1e7ca7b9dc8b6fa74f85f71d63dd03335f72f33c5157167596810f34bc75

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page