Skip to main content

Code origins contest based on GitHub data

Project description

https://github.com/idlesign/codeorigins

python

Description

Code origins contest based on GitHub data

CodeOrigins live: http://idlesign.github.io/codeorigins/

  • Find interesting people and projects originating in various countries;

  • See what countries produce most starred projects;

  • Know your impact on community of your favourite language;

  • and more.

FAQ

  • But wait, this data is not realtime!

    Yes, these are static web-pages (see docs/) compiled from dumped data (see codeorigins/dump/). And it sure can be outdated.

  • And what if I want to see updated data?

    You can dump data you’re interested in and make a pull request.

    Quick and dirty start:

    1. Fork repository;

    2. Git pull forked repository into local directory;

    3. cd to the directory;

    4. pip install -e . (sudo may be required) - this will made codeorigins CLI available;

    5. Use codeorigins dump (see below) without --into - this puts dumps into codeorigins/dump/;

    6. Commit and push added/changed dumps;

    7. Create a pull request on your GitHub repository page.

  • My country or language is not listed, what am I to do?

    Edit codeorigins/settings.py, add all what you need and make a pull request. You can also make and submit new/updated dumps (see above).

CLI

codeorigins comes with CLI to streamline common actions.

Data Dump

Using rate-limited GitHub search API:

> codeorigins dump --into /home/idle/ghdump --country ru --language Python api

This will use api to fetch repositories data for users located in Russia whose primary language is Python and dump it into /home/idle/ghdump.

Register OAuth Application (https://github.com/settings/applications/) and use its Client ID and Client Secret to loosen the rate limits (append --credentials <id>,<secret> to dump command).

HTML Export

Use make_html command to read data from dumps and compose HTML:

> codeorigins make_html --dump_dir /home/idle/ghdump

This will create HTML file in current working directory.

Settings

See supported countries and languages using the following command:

> codeorigins show_settings

Requirements

  • Python 3

  • click

  • Jinja2

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

codeorigins-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codeorigins-0.1.0-py2.py3-none-any.whl (12.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file codeorigins-0.1.0.tar.gz.

File metadata

  • Download URL: codeorigins-0.1.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for codeorigins-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c97ccf53af35fd10fd9487e854964496a697066bace13fa688ef1022a59ef63
MD5 9b352800cdc406cade7e3def8f96e08b
BLAKE2b-256 a53fc3099cf8d71f43b63039b56e97d14f6865243ad579f7782635cf1538c540

See more details on using hashes here.

File details

Details for the file codeorigins-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for codeorigins-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ad0d3d47d073724db988016454d6039237d8af2ad875246c220e80be1e8bb2e5
MD5 d8afa6c26f67226e0c6e2063a3901379
BLAKE2b-256 5512cd969b5e8db9f2ba447fd08444b94f23539b565172d0fbf6677e1eef036b

See more details on using hashes here.

Supported by

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