Giter Club home page Giter Club logo

database-reports's Introduction

database-reports

MediaWiki database reports, primarily written for the English Wikipedia: https://en.wikipedia.org/wiki/Wikipedia:Database_reports.

Dependencies

If you want to run these reports locally, create or copy a ~/replica.my.cnf file that looks roughly like this:

[client]
user='databaseusernamehere'
password='databasepasswordhere'
local='true'

Create a ~/.dbreps.toml file that looks roughly like this:

[auth]
username = "wikiusernamehere"
password = "wikipasswordhere"

Then in a shell you can create an SSH tunnel using a command such as this:

ssh -N [email protected] -L 3306:enwiki.analytics.db.svc.wikimedia.cloud:3306

Useful commands

# Format your code automatically
$ cargo fmt
# Run the database reports (in debug mode)
$ cargo run
# Run a single report
$ cargo run -- --report="User categories"
# Run the clippy linter
$ cargo clippy -- -D warnings

Deploying changes

$ become dbreps
dbreps$ cd ~/src/database-reports
dbreps$ git pull
dbreps$ ./build-rust.sh

Old Python reports

These old reports need to be ported to Rust. Patches welcome!

Licensing

License information is available in the LICENSE file.

database-reports's People

Contributors

mzmcbride avatar legoktm avatar scfc avatar svick avatar steinsplitter avatar niharika29 avatar dannys712 avatar jonesey95 avatar technical-13 avatar hazardsj avatar brandonweeks avatar mdaniels5757 avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.