veekun_pokedex/pokedex
a_magical_me e7c40a08af Speed up import pokedex.db slightly.
Importing pokedex can take several seconds due to its rather large
dependencies—in particular, sqlalchemy, whoosh, and pkg_resources seem
to be the largest offenders. Normally, it would be possible to import
only the submodules one needs (pokedex.db, say), but pokedex.__init__
brings in all the submodules, for use by the command-line interface.

The fix is rather obvious:

- Move the command-line stuff into pokedex.main.

  Note: because the submodules are no longer imported by default, any
  script which expects `import pokedex` to be useful will likely break.

  Note: the `pokedex` command will not work until you re-run `python
  setup.py develop`, to update entry_points.txt.

- Don't import pkg_resources until necessary.
2011-04-03 03:13:07 -07:00
..
data/csv Created flavor summary tables. 2011-04-01 17:07:28 -07:00
db Change item short effects to markdown. 2011-04-03 02:16:15 -07:00
struct Rename internal_id to game_index. 2011-03-24 19:37:12 -07:00
tests Fix the i18n test; now uses multilang's session subclasses. 2011-04-03 01:26:31 -07:00
__init__.py Speed up import pokedex.db slightly. 2011-04-03 03:13:07 -07:00
defaults.py Speed up import pokedex.db slightly. 2011-04-03 03:13:07 -07:00
formulae.py Give calculated_stat and calculated_hp the same signature. 2011-03-10 22:12:03 -08:00
lookup.py Random lookup algorithm is now more naive, but less broken. 2011-04-03 01:56:27 -07:00
main.py Speed up import pokedex.db slightly. 2011-04-03 03:13:07 -07:00
roomaji.py Add Czech romanization 2011-03-29 17:46:41 +03:00
util.py Python 2.5 compatibility 2010-05-25 14:41:15 -07:00