{"id":15695975,"url":"https://github.com/edsu/fastcat","last_synced_at":"2025-10-29T12:06:53.494Z","repository":{"id":1899411,"uuid":"2826048","full_name":"edsu/fastcat","owner":"edsu","description":"navigate wikipedia categories quickly in a local redis instance","archived":false,"fork":false,"pushed_at":"2012-06-05T14:28:57.000Z","size":98,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T22:15:45.272Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-22T07:15:00.000Z","updated_at":"2017-07-20T12:56:58.000Z","dependencies_parsed_at":"2022-09-08T11:12:08.861Z","dependency_job_id":null,"html_url":"https://github.com/edsu/fastcat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Ffastcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Ffastcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Ffastcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Ffastcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edsu","download_url":"https://codeload.github.com/edsu/fastcat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253154983,"owners_count":21862624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T19:06:01.099Z","updated_at":"2025-10-29T12:06:48.456Z","avatar_url":"https://github.com/edsu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"fastcat\n=======\n\nfastcat is a little Python library for quickly looking up broader/narrower \nrelations in Wikipedia categories locally. The idea is that fastcat can be\nuseful in situations where you need to rapidly lookup category relations,\nbut don't want to hammer on the [Wikipedia\nAPI](http://en.wikipedia.org/w/api.php). fastcat relies on redis, and a \n[SKOS](http://downloads.dbpedia.org/current/en/skos_categories_en.nt.bz2) \nfile that dbpedia make available based on the Wikipedia MySQL\n[dumps](http://dumps.wikimedia.org/enwiki/latest/).\n\n\nUsage\n-----\n\nThe first time you import fastcat you'll need to populate your redis database\nwith the category data from dbpedia. To do that instantiate a FastCat object\nand call the `load` method. After that you can use it to do lookups.\n\n```python\n\u003e\u003e\u003e import fastcat\n\u003e\u003e\u003e f = fastcat.FastCat()\n\u003e\u003e\u003e f.load()\n...\n\u003e\u003e\u003e print fastcat.broader(\"Computer programming\")\n['Software engineering', 'Computing']\n\u003e\u003e\u003e print fastcat.narrower(\"Computer programming\")\n['Programming idioms', 'Programming languages', 'Concurrent computing', 'Source code', 'Refactoring', 'Data structures', 'Programming games', 'Computer programmers', 'Version control', 'Anti-patterns', 'Programming constructs', 'Algorithms', 'Web Services tools', 'Programming paradigms', 'Software optimization', 'Debugging', 'Computer programming tools', 'Computer libraries', 'Programming contests', 'Archive networks', 'Self-hosting software', 'Educational abstract machines', 'Software design patterns', 'Computer arithmetic']\n```\n\nInstall\n-------\n\nTo install and load fastcat on Ubuntu try this:\n\n1. apt-get install redis-server virtualenvwrapper git-core\n1. git clone git://github.com/edsu/fastcat.git\n1. cd fastcat\n1. mkvirtualenv fastcat\n1. pip install -r requirements.pip\n1. ./load.py\n1. brew a pot of coffee while the data is downloaded and loaded into redis\n1. profit?\n\nLicense\n-------\n\n[Creative Commons Attribution-ShareAlike 3.0](http://creativecommons.org/licenses/by-sa/3.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsu%2Ffastcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedsu%2Ffastcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsu%2Ffastcat/lists"}