
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Welcome to arcospy
, the python version of the R arcos
package maintained by The Washington Post. arcospy
is the result of a R-to-python translation project carried out at the University of Maryland in the Fall of 2019. The project was motivated a Washington Post data-driven story on a large pain pill database recently made publicly available.
The arcospy
module was built to offer the exact same functionality as arcos
, with the only difference being the ability to run the API calls in python
! All of the commands in arcospy
inherit the names from the original commands in arcos
. Both arcos
and arcospy
act as wrappers for the DEA ARCOS dataset.
arcospy
is hosted on PyPI and is pip
installable. To install arcospy
on your machine, start a new terminal and run the following commands:
$ pip install arcospy
arcospy
requires pandas>=0.20.0
and requests>=2.0.0
. You may need to manually install these requirements if the build does not trigger.
Updates (will be posted periodically):
url
where the Washington Post is storing the data. Reorganized repo for readability. All commands should be back up and running.arcos
and arcospy
in JOSS.README.md
to provide more specific headers, installation instructions, requirements, and additional information.All functions are available on The Washington Post reference page here. Example notebooks in python are available in the docs folder. Additional example use cases are available in R here.
Data can be gathered at the pharmacy, distributor, county, or state as the geographic unit of analysis. Depending on the geographic level, there may be raw, summarized, or supplemental data available. For example, the county_raw()
command returns each individual ARCOS record for a given county from 2006 to 2014. However, the summarized_county_annual()
command returns the annual summarized totals for a given county for each year of 2006 to 2014.
The following is lifted directly from contributing.md
Contributions are welcome to both arcos
and arcospy
. For major contributions, please fork the master arcos
or arcospy
branch and then open a pull request with the suggested changes. We will then review the change and determine if there is a generalizable solution to both R
and Python
. If there is no generalizable solution, we will still strive to make your contribution visible on the respective Github page.
Improvements to the documentation for arcos
and arcospy
are welcome. As stated above, we will try to generalize all contributions to both packages. For example, if the wording around a specific command is unclear, we can improve the wording in both packages. Additionally, if there are features of a command that you believe should be included in the primary documentation, please let us know so we can improve the user experience.
Presently, the core functionality of the API is maintained by the Data Reporting Team at The Washington Post. There is ample room for users to suggest functions that can be added to arcos
and arcospy
. For example, users might suggest functions that download national or regional sets of data by looping existing commands.
Trackable issue pages are available on both the master arcos
or arcospy
Github pages. Issues may be related to anything from malfunctioning commands to inconsistent data. We encourage an active discussion and hope to readily address any errors. We recommend that when submitting an issue users provide specific tags and examples of the aberrant behavior. If you are able to solve an issue with the code independently, please open a pull request with the corrected code and a short explanation as to the bug fix.
Disclaimer: please note that the author of this package, Jeff Sauer, is not affiliated with The Washington Post in any official capacity.
FAQs
Python version of the R arcos package
We found that arcospy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.