Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/planetary-research/signatories
07 March 2026, 08:16:53 UTC
  • Code
  • Branches (2)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/main
    • refs/tags/v1.0
    No releases to show
  • e94d917
  • /
  • README.md
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:1458f17c622743dd8b85abad193366f23b269f31
origin badgedirectory badge
swh:1:dir:e94d91701888d2cae32c6332face19f00dd81b56
origin badgerevision badge
swh:1:rev:e0f89ed883ffc47241a4c62503ce6e4784463cea
origin badgesnapshot badge
swh:1:snp:9fad922ad80f6485c66f4c22a7580dda3f157802

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: e0f89ed883ffc47241a4c62503ce6e4784463cea authored by markwieczorek on 14 February 2026, 22:25:20 UTC
Merge pull request #41 from MarkWieczorek/main
Tip revision: e0f89ed
README.md
# About

[![DOI](https://zenodo.org/badge/1102002001.svg)](https://zenodo.org/badge/latestdoi/1102002001)
[![SWH](https://archive.softwareheritage.org/badge/origin/https://github.com/planetary-research/signatories//)](https://archive.softwareheritage.org/browse/origin/?origin_url=https://github.com/planetary-research/signatories)

**Signatories** is a simple web-based program that allows a person to sign
an online petition, a declaration, a statement, or any form of communication
that is looking for community support. Designed for academics, signing
is accomplished by authenticating with an Open Researcher and Contributor
ID account ([ORCID](https://orcid.org)).

Users with editor privileges can create, edit, close, and delete their
campaigns. When creating a campaign, editors can choose to allow for
anonymous signatures or not. Active campaigns can be accessed from the
server home page or from a unique and persistent web address.

Signatories to a campaign are required to authenticate with an ORCID account.
An ORCID account may sign a campaign at most once, and anonymous participants
are assured to have an ORCID account. Signatories may choose to add their
professional affiliation, and they can modify their preferences or remove
their signature after signing. When a signatory's name is visible, any
public visitor may click on it to inspect their ORCID profile.

This code is inspired by the Planetary Research
[Reviewer expertise database](https://review.planetary-research.org), which is
in turn based on the [Seismica](https://seismica.library.mcgill.ca/) reviewer
expertise database that was created originally by
[Martijn van den Ende](https://github.com/martijnende).

# Dependencies

```
conda create -n signatories python=3.13 python-dotenv flask flask-sqlalchemy sqlalchemy-utils orcid waitress pyexcel-ods3 feedgen -c conda-forge
```

# Instructions

## Initial setup

When running in production, place the project files in an appropriate directory
such as `/var/www/signatories`. For testing, any directory will do.

Copy the file `.env.sample` to `.env`, which should look like the following:

```txt
cookie_secret = '...'  # Random string to cross-check the stored cookie. Any string will do.
port = 3000  # port used by the web server when in sandbox mode

# Orcid ID of the site admin that is added to the database at creation
admin_orcid = 'xxxx-xxxx-xxxx-xxxx'

# If everyone_is_editor is False, admins must add editors to database manually.
# Otherwise, everyone with an ORCID account is an editor.
everyone_is_editor = False

# Set favicon (use "" for none). File name is with respect to static/img
favicon = "favicon.ico"

# Default parameters for the home page
site_title = "Signatories"
site_subtitle = "Open source signing of statements and petitions"
site_path = "/"
site_header = "Introduction"

# URL and name of a link displayed in the website footer, such as the association website
footer_url_name = "My-Organization"
footer_url = "https://my-organization.example.org/"

# Show the two example petitions
show_examples = True

# Add a statement in the footer that states Signatories was created by the Planetary Research Cooperative
thank_prc = False

# Contact email in the footer
contact_email = "tech@my-organization.example.org"

# ORCID API credentials
client_ID = 'APP-ABCDEFGHIJKLMNOP'
client_secret = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

# If the ORCID client credentials correspond to a member account, set to 1
orcid_member = 0

# Uncomment and provide a public URL when used in production. When public_domain
# is not set, the app will use the ORCID sandbox API.
# public_domain = 'https://signatories.example.org'
```

Then modify the following variables:

1. `cookie_secret`: a random string to cross-check the stored cookie. Any string will do.
2. `client_ID`, `client_secret`: ORCID API credentials.

> For testing, register for a [sandbox ORCID API](https://sandbox.orcid.org/) using a dummy email address. When the API is enabled, go to [`ORCID profile > developer tools`](https://sandbox.orcid.org/developer-tools) and create a client ID and secret.
> In production use the main [ORCID API credentials](https://orcid.org/developer-tools).

3. Add a public domain if the application is used in production (not required for local development in sandbox mode).
4. Update the parameters `favicon`, `footer_url_name`, `footer_url`, `thank_prc`, and `contact_email`.

Finally, to run the app, use:
```bash
python app.py
```

## System service

To have the application start automatically when the system reboots, create a file `/etc/systemd/system/signatories.service` with the following contents:

```
[Unit]
Description=Signatories daemon
After=multi-user.target

[Service]
ExecStart=/opt/miniforge3/envs/signatories/bin/python /var/www/signatories/app.py &
Type=simple
Restart=always

[Install]
WantedBy=multi-user.target
```

and then run the following at the command line
```
systemctl daemon-reload
systemctl enable signatories
service signatories start
```

## Reverse proxy

Running the application will enable an http web server on port 3000. To use this
securely with an apache web server, it will be necessary to create a reverse proxy.
First, create the file `/etc/apache2/sites-available/signatories.conf` with
the following:

```
<VirtualHost *:80>
    ServerName signatories.example.org
    Redirect / https://signatories.example.org
</VirtualHost>

<VirtualHost *:443>
    ServerName signatories.example.org
    ProxyPass / http://127.0.0.1:3000/
    ProxyPassReverse / http://127.0.0.1:3000/
    ProxyRequests Off
</VirtualHost>

<Directory /var/www/signatories>
    Options +FollowSymLinks
    Options -Indexes
    AllowOverride All
    order allow,deny
    allow from all
</Directory>
```

Then execute the following commands:
```
a2enmod proxy
a2enmod proxy_http
systemctl restart apache2
a2ensite signatories.conf
```

## Notes

* The database is by default located at `db/signatories.db`.
* If you change from sandbox to production modes (by setting `public_domain`), you should re-initialize the database. Otherwise sandbox accounts will appear in the production database.

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API