Hi folks,
A while ago we were approached by Open Science Framework about adding
support for uploading files directly to their website for sharing. The
first version of that is now implemented and available in PsychoPy repos
for you to play with.
I've written this in two steps:
- pyosf is a pure python lib (
https://github.com/psychopy/pyosf)
supporting the sync and communication protocols
install it with `pip install pyosf`
- PsychoPy now has a Projects menu (only appears when pyosf is
installed)
- log in with your OSF username/password (an auth token is
stored for future)
- search for projects
- perform two-way sync with projects for which you have
write-access
Obviously this is early days - quite a few things will need smoothing
out - but I thought I'd let you know it's there to try. Let me know if
you run into problems. One thing I haven't provided yet is the means to
*create* an OSF project within PsychoPy (for now you have to go online
to create the project but then you can use PsychoPy to find it and
merge/upload the files). I also want us to be able to *fork* projects
from others. Again, that's possible from the website but not currently
from within PsychoPy (actually that one isn't yet possible to implement
- they need to add some code to the OSF API for us to do it)
It would be great to see people uploading some completed studies that
you're willing to share (and using psychopy as a tag) so that others can
find them.
Feedback welcome, as always.
best wishes
Jon
PS for those that care about such things you'll be delighted to hear
that pyosf:
- is fully py2 and py3 compliant
- has 90% code coverage in its unit tests
- fully(?) PEP8 compliant (according to Spyder editor)
--
Jon Peirce
http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it.
Please do not use, copy or disclose the information contained in this
message or in any attachment. Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.
This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.