Skip to main content

Credit parser and markdown language for scientific software.

Project description

CiteLang

PyPI version

Welcome to CiteLang! CiteLang provides methods and graph-based modeling to study software ecosystems. You can use CiteLang for your research, or a provided tool to generate software graph artifacts, including (but not limited to):

  1. Generate basic software credit trees (citelang graph, badge, or markdown credit)
  2. Give credit accounting for dependencies! (see software-credit.md)
  3. Actions (automation) for the above!

For the examples above, we aren't using DOIs! A manually crafted identifier that a human has to remember to generate, in addition to a publication or release, is too much work for people to reasonably do. As research software engineers we also want to move away from the traditional "be valued like an academic" model. We are getting software metadata and a reference to an identifier via a package manager. This means that when you publish your software, you should publish it to an appropriate package manager.

Getting Started

If you want to use CiteLang as an analysis library, jump into the mode detailed ⭐️ Documentation ⭐️ or look specifically at the Python API. As an example analysis, the RSEPedia Software Ecosystem is a completed automated setup that parses and summarizes dependencies across the Research Software Encyclopedia weekly, and it's powered by CiteLang! You can do similar analyses or build your own tools using CiteLang. We will provide a small summary of the tools available here.

Badges

CiteLang Badges can show an entire credit tree for a project:

https://raw.githubusercontent.com/vsoch/citelang/main/docs/assets/img/pypi-citelang.png

or can be generated to be interactive web interfaces as shown here.

https://raw.githubusercontent.com/vsoch/citelang/main/docs/getting_started/img/badge.png

See the badge documentation for more examples of customizing the look, or level of abstraction. You can automatically generate or update a badge for your repository using the provided GitHub Action.

Credit and Graph

If you want to visually show dependency graphs, using Credit will print this to the console, and optionally in json if you want just the data. With the Graph command you can render different kinds of pretty graphs (or data formats dot, cypher, gexf) using this same data.

https://raw.githubusercontent.com/vsoch/citelang/main/examples/console/citelang-console-pypi.png https://raw.githubusercontent.com/vsoch/citelang/main/examples/cypher/graph.png

Contributions

CiteLang has a Contrib command and underlying API that can dig into your git history and look at contributions based on lines. You can read a complete write-up and see examples in this blog post. It is currently being used by the SingularityCE project to say thank you to contributors!

asciicast

If you want to generate data programatically, we provide A GitHub action.

Render and Generate

The functionality that originally derived the name - a "markdown syntax for citations" means that we can start from a markdown paper that has some number of CiteLang formatted references, and result in a rendered paper that includes a credit table. This is done with the Render command, or you can just output a table into its own markdown file with Generate. We provide an example here and also provide a GitHub action for you to generate this for your own repository.

Contributors

We use the all-contributors tool to generate a contributors graphic below.


Vanessasaurus

💻

License

This code is licensed under the MPL 2.0 LICENSE.

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

citelang-0.0.30.tar.gz (67.2 kB view details)

Uploaded Source

Built Distribution

citelang-0.0.30-py3-none-any.whl (90.2 kB view details)

Uploaded Python 3

File details

Details for the file citelang-0.0.30.tar.gz.

File metadata

  • Download URL: citelang-0.0.30.tar.gz
  • Upload date:
  • Size: 67.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4

File hashes

Hashes for citelang-0.0.30.tar.gz
Algorithm Hash digest
SHA256 e5d21d3138e9bb1cf8eb14c0c75971accf4018ef80afcb952c855d29d3ded474
MD5 b32281966764d5b61b3e26b94bfbc97f
BLAKE2b-256 ea994233dfeb7f7a84f4af26bd176612800f5430aead28c1fb1a8c6842337396

See more details on using hashes here.

Provenance

File details

Details for the file citelang-0.0.30-py3-none-any.whl.

File metadata

  • Download URL: citelang-0.0.30-py3-none-any.whl
  • Upload date:
  • Size: 90.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4

File hashes

Hashes for citelang-0.0.30-py3-none-any.whl
Algorithm Hash digest
SHA256 dc631748700d6f54c1ada3ed5afed1663913e56d691094fc241ab790b07f6aeb
MD5 d13c1cfa26626b273e8dc9e784e02c92
BLAKE2b-256 ff1997eb0baee3966818d340840e9b970ed4fca919a402ec147f31ce30ade169

See more details on using hashes here.

Provenance

Supported by

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