Code Monkey home page Code Monkey logo

whoswho's Introduction

whoswho



Header Image

License Gitmoji

Last Updated

Count Contactable Tweeters


This script is used to manage the Who's Who in Astrochemistry database, a contact list of astrochemists from around the globe. If you are seeing this help message, you have probably cloned the original repository, or an original fork of it, on your local machine. You have installed all the dependencies (probably because you saw a requirements.txt file) and you figured out how to display this help message. Whether you were just ideally curious, or you were thinking of contributing, you will find all the answers you desire here.

First of all, what does this script do? Well, if you have this repository on your system, you probably rummaged through the folders and saw a lot of YAML files. These files power the entire Who's Who website, thanks to the awesome Lowdefy framework. I use this script to build those YAML files from a bunch of Mako templates, locally serve the Who's Who app (to see if everything is working as intended), and update my local copy of the database that ultimately makes it into the Github repository. This script also calculates a few statistics about the database, such as the total number of astrochemists, how many can be contacted (via their email or Twitter), and how many of them are tweeting.

We use the invoke package to power the entire script. invoke is a framework for running use-defined tasks. These tasks can be anything: Python functions, shell commands, etc. In this simplest scenario (which is what we user here), all the user needs to do is define the tasks in a tasks.py file, and then invoke any task using the invoke CLI. The settings for the invoke CLI are customized through the invoke.yaml file.

To see how the site looks, just type:

invoke serve

This will start a local server and serve the Who's Who web application. As you carry out your changes, you will be able to see them show up instantly! To make a change, it is recommended that you change the templates (in the templates directory) rather than the YAML pages themselves (which you will find in the pages directory), because otherwise all your changes will vanish anytime you recompile your changes with:

invoke compile

Run the above command everytime you wish to see your changes show up in the YAML files andf in the web application. You can check out some stats about the database by typing:

invoke statistics

If you wish to update your copy of the database, just run:

invoke update

whoswho's People

Contributors

astrogewgaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

herveleclerc

whoswho's Issues

โœจ Astrochemists' World Map

After geographical details are added to the Who's Who database, they can be used to plot an interactive world map ๐ŸŒ of astrochemists ๐Ÿงช . Using something like AmCharts or D3 would be ideal.

๐Ÿ› Separate multiple entries per column

Most of the columns in the Who's Who database can have multiple entries. Right now, these entries are not separated and are treated as one, which could make things problematic later. The website column is already full of bugs ๐Ÿ› , since separate website links are treated as one, resulting in many dead links. Ideally, some scripting (either in Python or in JavaScript) has to take care of this issue.

โœจ More stats

Add more stats to the Who's Who database, apart from the number count, such as:

  • Data coverage
  • Position count
  • Per country count
  • Twitter count
  • Black astrochemists' count

These statistics could be useful to the community (especially the last one).

โœจ Add more columns

Add additional columns to the Who's Who database, such as:

  • Their ORCID IDs
  • The country they are currently based in
  • Link to their publications
  • Lab group(s) they are a part of
  • Sub-domain(s) they specialize in
  • GitHub account link

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.