Show and tell: DSpace Statistics API

53 views
Skip to first unread message

Alan Orth

unread,
Nov 1, 2018, 10:40:37 AM11/1/18
to dspac...@googlegroups.com
Dear list,

We have recently been doing some integration with our DSpace repository using the REST API. Eventually we realized that it would be nice to be able to use the item views and downloads from the Solr statistics core, but those are not exposed by any externally accessible APIs. I wrote a small, lightweight Python-based tool that runs locally on the DSpace server to periodically index the Solr statistics core and expose the statistics via a simple API. And it's fast!

The tool is called "dspace-statistics-api" and you can find the source code, documentation, and deployment instructions on GitHub:

https://github.com/ilri/dspace-statistics-api

You can see it in running on the public development instance of our DSpace repository:


I hope this is useful to some people and I would be very happy for comments, suggestions, and pull requests (see my list of TODOs in the project).

Thank you!

--
Alan Orth
alan...@gmail.com
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch
"In heaven all the interesting people are missing." ―Friedrich Nietzsche

Bruno Nocera Zanette

unread,
Nov 5, 2018, 1:43:40 PM11/5/18
to Alan Orth, dspac...@googlegroups.com
Nice job, Alan!
It may be very handy for our research group and the systems we mantain.
Thanks!
> --
> All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
> To post to this group, send email to dspac...@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.



--
Bruno Nocera Zanette
+55 41 99992-2508

Alan Orth

unread,
Mar 2, 2020, 7:25:22 AM3/2/20
to Bruno Nocera Zanette, DSpace Technical Support
Dear list,

FYI I've updated my dspace-statistics-api to work with DSpace 6+ UUIDs. Previous versions used the integer item IDs present in DSpace 4 and 5. You can see more here:


This is a small tool that indexes your Solr item view and download statistics into a PostgreSQL database and makes them available via a REST API. It is written in Python and can be run using a WSGI server like gunicorn.

Regards,
Reply all
Reply to author
Forward
0 new messages