
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Python 3.6 or newer is required to use openreview-py. Python 2.7 is no longer supported.
There are two ways to install the OpenReview python library.
Using pip
:
pip install openreview-py
From the repository:
git clone https://github.com/openreview/openreview-py.git
cd openreview-py
pip install -e .
Note: Depending on your Python installation you may need to use the command
pip3
instead ofpip
.
The openreview-py library can be used to easily access and modify any data stored in the OpenReview system. For example, to get all the papers submitted to ICLR 2019 and print their titles:
import openreview
client = openreview.Client(baseurl='https://api.openreview.net', username='<your username>', password='<your password>')
notes = openreview.tools.iterget_notes(client, invitation='ICLR.cc/2019/Conference/-/Blind_Submission')
for note in notes:
print(note.content['title'])
For more information, see the official reference. You can also check the OpenReview docs for examples and How-To Guides
Running the openreview-py test suite requires some initial setup. First, the OpenReview API V1, OpenReview API V2 and OpenReview Web frontend must be cloned and configured to run on ports 3000, 3001 and 3030 respectively. For more information on how to install and configure those services see the README for each project:
Next, pytest
along with pytest-selenium
and pytest-cov
have to be installed. These packages can be installed with pip
:
pip install pytest pytest-selenium pytest-cov
Finally, you must download the proper Firefox Selenium driver for your OS from GitHub, and place the geckodriver
executable in the directory openreview-py/tests/drivers
. When you are done your folder structure should look like this:
āāā openreview-py
ā āāā tests
ā ā āāā data
ā ā āāā drivers
ā ā ā āāā geckodriver
Once the test setup above is complete you should be ready to run the test suite. To do so, start both OpenReview API versions running:
Inside the OpenReview API V1 directory
npm run cleanStart
Inside the OpenReview API V2 directory
npm run cleanStart
Inside the OpenReview Web directory
SUPER_USER=openreview.net npm run dev
Once all three services are running, start the tests:
pytest
Note: If you have previously set environment variables with your OpenReview credentials, make sure to clear them before running the tests:
unset OPENREVIEW_USERNAME && unset OPENREVIEW_PASSWORD
To run a single set of tests from a file, you can include the file name as an argument. For example:
pytest tests/test_double_blind_conference.py
FAQs
OpenReview API Python client library
We found that openreview-py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.