Skip to main content

SurvivorPy

PyPI Downloads PyPI Version Python Versions License: MIT Build Status Last Commit

SurvivorPy is a Python wrapper of the data from the R package survivoR. It enables Python coders easy access to clean, structured data on contestants, seasons, episodes, votes, and more from the reality show Survivor—directly from Python, using familiar pandas dataframes.

SurvivorPy syncs its data with survivoR on a daily basis, ensuring the data reflects recent updates to the survivoR package.

Installation

You can install SurvivorPy from PyPI:

pip install survivorpy

Usage

There are a couple of different ways to access Survivor data with survivorpy, depending on your preferences and needs. In both cases, the tables are provided as pandas DataFrames.

Import a table directly

If you know the name of the table you want, you can import it directly:

from survivorpy import castaways

castaways.head()

See all available tables

To see what's available, use the TABLE_NAMES constant:

from survivorpy import TABLE_NAMES

print(TABLE_NAMES)
# [..., 'castaways', ...]

Using the load() function

survivorpy provides a load() function which gives an alternative way to access the tables:

import survivorpy as sv

df = sv.load('castaways')
df.head()

No matter which method you choose, you’ll get rich Survivor data, neatly packaged and ready to explore with your favorite pandas tools.

Keeping data up to date

On first import, survivorpy fetches and caches all the tables locally, which might feel a bit slow. The upside is that after this initial step, loading data—whether via load() or by importing tables directly—is fast and works offline.
To update your local cache with the latest data from the source (typically updated daily to match the R package survivoR), use:

sv.refresh_data()

To see a summary of what changed during the update (e.g. which tables were modified), pass verbose=True:

sv.refresh_data(verbose=True)

If you just want to see the last time your data was synced, use the LAST_SYNCED constant to get a UTC timestamp:

sv.LAST_SYNCED
# e.g., '2025-04-25T18:42:07.235Z'

Data Source and Attribution

This package provides Python access to data from the survivoR package by Daniel Oehm and contributors. We’re grateful to the folks at survivoR for maintaining such a rich and well-structured dataset.

The original data is licensed under the MIT License, and we preserve that license and attribution in accordance with its terms.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Got ideas or spot a bug? Feel free to open an issue or a pull request — contributions of all kinds are welcome!

Metadata

Release files for survivorpy 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for survivorpy 0.1.3
File Size Uploaded Provenance
survivorpy-0.1.3.tar.gz 9.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for survivorpy 0.1.3
File Interpreter ABI Platform
survivorpy-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / survivorpy-0.1.3.tar.gz

Download URL survivorpy-0.1.3.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d841fd64fb2b707a0eb1dd998490f05a736e0b417163b3b23d9f90940e7e4abe
BLAKE2b-256 checksum
How to use checksums
eb01acba6fd3872db713c196d29ec8ff8e975b5f64f14b4be6cf8bb5d5f9e040
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.8

Release files / survivorpy-0.1.3-py3-none-any.whl

Download URL survivorpy-0.1.3-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffeb49d815f318084799be30116bf97b34d01d99072b100c529c390979d7bd3b
BLAKE2b-256 checksum
How to use checksums
ca93ed9e7f7205b6127f501a2980111b90312a32ecaf578ea41c888d1916c227
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.8

Security for survivorpy 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page