Skip to main content

python package for scientific historical information

Project description

Histopedia

README

This Python library provides several functions for working with historical data including events, inventions, discoveries, people, and prehistoric animals.

Functions

Function Name Description Example Usage
proximate(year) Returns a list of events within 2 years of the input year proximate(1776) returns a list of events
addEvent(dscrp, yr) Adds a new event to the database addEvent('Declaration of Independence', 1776) returns "event (Declaration of Independence) added for year 1776"
exact(year) Returns a list of events that occurred in the exact input year exact(1776) returns [('Declaration of Independence', 1776)]
traceIno(trace_year) Returns a list of innovations that occurred in the input year traceIno(1901) returns [2000, 2001]
discov(yr) Returns a list of discoveries that occurred in the input year, or the closest discovery if none occurred discov(1769) returns "Discovery not found for 1769. Did you mean 1766: oxygen?"
push(disc, yr) Adds a new discovery to the database push('Pluto', 1930) returns "Appended successfully"
getDisc() Returns the list of all discoveries in the database getDisc() returns [(oxygen, 1766), (Pluto, 1930)]
pushIno(ino, yr) Adds a new innovation to the database pushIno(2000, 1901)
getInos() Returns the list of all innovations in the database getInos() returns [(2000, 1901), (2001, 1901)]
getEvents() Returns the list of all events in the database getEvents() returns [('Declaration of Independence', 1776), ('Louisiana Purchase', 1803)]
born(name) Returns the birth year of a person born('George Washington') returns 1732
died(name) Returns the death year of a person died('Albert Einstein') returns 1955
period(anml) Returns the time period of a prehistoric animal period('Tyrannosaurus') returns "Late Cretaceous"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Histopedia-0.0.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

Histopedia-0.0.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file Histopedia-0.0.2.tar.gz.

File metadata

  • Download URL: Histopedia-0.0.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for Histopedia-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7aa7e1805bdbefea08aa25210ccb762f1fb63b998fa3b984ea35ab1b1bcf60f4
MD5 b2cf8f91fadb479c208fa590fc231b0f
BLAKE2b-256 f17149fc4ff8bdbe4b24a40e91ae79dc6fe864e6173b58f0ff8195c721c4c45f

See more details on using hashes here.

File details

Details for the file Histopedia-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: Histopedia-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for Histopedia-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 768f0450eedd0656a9aee31344f6fffe4aaef8fa4dfaa6fbbf4b91ebd49719e0
MD5 b2bf7f82fb6ae75bfefb5d36e4a647bd
BLAKE2b-256 e973e0f4fd12d14a1078f7a3c16456a164562c1f0e332b9a0879c1e8518369dd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page