[dspace-tech] Show and tell: DSpace Statistics API

2018-11-01 Thread Alan Orth
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:

https://dspacetest.cgiar.org/rest/statistics

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.o...@gmail.com
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch
"In heaven all the interesting people are missing." ―Friedrich Nietzsche

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Show and tell: DSpace Statistics API

2018-11-05 Thread Bruno Nocera Zanette
Nice job, Alan!
It may be very handy for our research group and the systems we mantain.
Thanks!
Em qui, 1 de nov de 2018 às 11:40, Alan Orth  escreveu:
>
> 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:
>
> https://dspacetest.cgiar.org/rest/statistics
>
> 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.o...@gmail.com
> https://picturingjordan.com
> https://englishbulgaria.net
> https://mjanja.ch
> "In heaven all the interesting people are missing." ―Friedrich Nietzsche
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@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 2-2508

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Show and tell: DSpace Statistics API

2020-03-02 Thread Alan Orth
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:

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

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,

On Mon, Nov 5, 2018 at 8:43 PM Bruno Nocera Zanette 
wrote:

> Nice job, Alan!
> It may be very handy for our research group and the systems we mantain.
> Thanks!
> Em qui, 1 de nov de 2018 às 11:40, Alan Orth 
> escreveu:
> >
> > 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:
> >
> > https://dspacetest.cgiar.org/rest/statistics
> >
> > 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.o...@gmail.com
> > https://picturingjordan.com
> > https://englishbulgaria.net
> > https://mjanja.ch
> > "In heaven all the interesting people are missing." ―Friedrich Nietzsche
> >
> > --
> > 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+unsubscr...@googlegroups.com.
> > To post to this group, send email to dspace-tech@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 2-2508
>


-- 
Alan Orth
alan.o...@gmail.com
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAKKdN4XWSXzRLw58in6s6y91HSakN1Rw7gxd_myN170UNh5j9w%40mail.gmail.com.