Skip to main content

Web interface for falocalrepo.

Project description

FALocalRepo-Server

version_pypi version_gitlab version_python

Web interface for falocalrepo.

Installation & Requirements

To install the program it is sufficient to use Python pip and get the package falocalrepo-server.

python3 -m pip install falocalrepo-server

Python 3.8 or above is needed to run this program, all other dependencies are handled by pip during installation. For information on how to install Python on your computer, refer to the official website Python.org.

For the program to run, a properly formatted database created by falocalrepo needs to be present in the same folder.

Usage

falocalrepo-server <database> [<host>:<port>]

The server needs one argument pointing at the location of a valid falocalrepo database and accepts an optional argument to manually set host and port. By default the server is run on 0.0.0.0:8080.

Once the server is running - it will display status messages in the terminal - the web app can be accessed at http://0.0.0.0:8080/, or any manually set host/port combination.

Note: All the following paths are meant as paths from <host>:<port>.

The root folder / displays basic information on the database and has links to perform submissions and journal searches.

Users

The /user/<username> path displays basic statistics of a user stored in the database. Clicking on gallery/scraps or journals counters opens submissions and journals by the user respectively.

The /submissions/<username> and /journals/<username> paths open submissions and journals by the user respectively.

Search

The server search interface allows to search submissions, journals, and users. Respectively, these can be reached at /search/submissions, /search/journals, and /search/users. The /search/ path defaults to submissions search.

The interface supports the search fields supported by the command line database search commands. To add a field press on the + button after selecting one in the dropdown menu. The - buttons allow to remove a field from the search.

Fields can be added multiple times and will act as OR options.

The order field allows to sort the search result. By default submissions and journals are sorted by author and ID. For a list of possible sorting fields, see #Submissions and #Journals in the database section of FALocalRepo readme.

Fields are matched using the SQLite like expression which allows for limited pattern matching. See database command for more details.

The /submissions/<username>/ and /journals/<username>/ paths allow to quickly open a search for submissions and journals by <username>. /search/submissions/<username>/ and /search/journals/<username>/ are also allowed.

Results of the search are displayed 50 per page in a table. Clicking on any row opens the specific item. Clicking on the table headers allows to perform re-sort the search results.

Submissions & Journals

Submissions and journals can be accessed respectively at /submission/<id> and /journal/<id>. All the metadata, content and files that are recorded in the database are displayed in these pages.

Submission files can be accessed at /submission/<id>/file.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

falocalrepo-server-1.6.2.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

falocalrepo_server-1.6.2-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file falocalrepo-server-1.6.2.tar.gz.

File metadata

  • Download URL: falocalrepo-server-1.6.2.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.3 CPython/3.8.6 Darwin/19.6.0

File hashes

Hashes for falocalrepo-server-1.6.2.tar.gz
Algorithm Hash digest
SHA256 383d87c4cbf569baa9d926e5be319a2198c9d2c99d82846508c2b463b0892e6c
MD5 5080802dfbf047f1b7b0d31443b98be4
BLAKE2b-256 d23c7cbfb35ea525074d5f96c6d68568ab25cc5709b46627114978138a5fec4b

See more details on using hashes here.

File details

Details for the file falocalrepo_server-1.6.2-py3-none-any.whl.

File metadata

  • Download URL: falocalrepo_server-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.3 CPython/3.8.6 Darwin/19.6.0

File hashes

Hashes for falocalrepo_server-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5bf545e739f434444fa9ce9b0e1c3cfb8ea673f966d9fe745de4698f8a34078f
MD5 3257cb234834393edd4e012bd4856473
BLAKE2b-256 cdf23accfae9f611470caf68faded9246ef98758d46bb09d57b3d3a5e211d4d6

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