Go to file
Andrew Ekstedt e1bbe78b72 fix test suite under SQLAlchemy 1.2.x
* SQLAlchemy 1.0 introduced "baked queries" - a way to construct Query
 objects so that they can be cached and reused.

 * SQLAlchemy 1.2 changed lazyloaded columns to use baked queries under the
 hood.

 * Our MultilangQuery class attempts to set _default_language_id right
 before the query is executed by overriding the __iter__ method.

 * Baked queries bypass the __iter__ method and call a lower-level
 method, _execute_and_instances, directly.

 * This caused problems where _default_language_id wouldn't get set
 correctly on lazyloaded columns.

 * To fix, make MultilangQuery override the _execute_and_instances
 method instead of __iter__.

 * This is really just a stopgap: the root cause is that query params
 are not preserved across lazyloads.

Tested with SQLAlchemy 0.9.7, 1.1.18, and 1.2.5.

Updates #236.
2018-03-30 12:01:21 -07:00
bin python => python2 2012-11-17 04:12:54 -08:00
doc pip install -E doesn't work anymore 2016-12-23 07:40:57 -08:00
pokedex fix test suite under SQLAlchemy 1.2.x 2018-03-30 12:01:21 -07:00
scripts Add move changelogs for Gen V→VI 2016-09-25 13:18:58 -07:00
.gitignore feat: added Docker support 2017-06-09 21:44:20 +02:00
.travis.yml Travis: Drop Python 2.6 2015-11-05 12:39:01 -08:00
conftest.py Modernize our use of py.test 2014-07-06 21:45:05 -07:00
docker-compose.yml feat: added Docker support 2017-06-09 21:44:20 +02:00
docker-entrypoint.sh feat: added Docker support 2017-06-09 21:44:20 +02:00
docker-pokedex feat: added Docker support 2017-06-09 21:44:20 +02:00
Dockerfile feat: added Docker support 2017-06-09 21:44:20 +02:00
item-questions Effects for the remaining B/W items. #247 2011-04-10 16:41:59 -07:00
LICENSE Added a README and licensed under MIT. 2009-07-23 00:04:47 -07:00
package.json added basic package.json for npm/yarn compatibility 2017-06-11 21:06:50 +02:00
README.md Update README now that Sun and Moon are, ah, done-ish 2017-11-27 10:44:48 -08:00
setup.py setup.py: List supported Python versions. 2015-11-05 12:54:16 -08:00

pokedex

This is a Python library slash pile of data containing a whole lot of data scraped from Pokémon games. It's the primary guts of veekun.

Current status

The project is not dead, but it is languishing. It's currently being maintained by only a single person (eevee), who is also preoccupied with a lot of other things. It needs a lot of TLC to modernize it and fix a lot of rough edges.

I started on an experiment with switching to YAML for data storage some time ago, for a variety of reasons. It's finally starting to show some promise — all of gen 7 was dumped to a YAML format, then loaded into the database from there — but it'll take a lot more work to get this usable. The intended upsides are:

  • The data will include everything from older games, so you don't have to guess! Also, the site will handle older games correctly, probably!
  • Many more filtering and searching tools on veekun, since I won't have to fight SQL to write them!
  • More interesting data we've never had before, like trainer teams and overworld items! And models? Maps, even? Who knows, but working on this stuff should be easier with all this existing code in place!
  • A project that's actually documented and not confusing as hell to use!
  • A useful command line interface that doesn't require weird setup steps!

If you're interested in this work, hearing about that would be some great motivation! In the meantime, veekun will look a bit stagnant. I can't dedicate huge amounts of time to it, either, so this may take a while, if it ever gets done at all. Sorry.

How can I help?

I don't know! Not many people have the right combination of skills and interests to work on this. I guess you could pledge to my Patreon as some gentle encouragement. :)

The software is licensed under the MIT license. See the LICENSE file for full copyright and license text. The short version is that you can do what you like with the code, as long as you say where you got it.

This repository includes data extracted from the Pokémon series of video games. All of it is the intellectual property of Nintendo, Creatures, inc., and GAME FREAK, inc. and is protected by various copyrights and trademarks. The author believes that the use of this intellectual property for a fan reference is covered by fair use — the use is inherently educational, and the software would be severely impaired without the copyrighted material.

That said, any use of this library and its included data is at your own legal risk.