Python packages

kevin klatman - Oct 4 - - Dev Community

In looking to scrape some professional sports statistics last week I executed a program that opened my Chrome browser, navigated to a given URL, scraped 37 tables of Colorado Rockies pitching statistics and compiled them into a SQLITE database before closing the browser (this was before I read the terms of service about the potential $1,000 fine. This was a bit worrying, and I'll have to be more cognizant as I didn't even know that was a thing, but I guess it makes sense. Also for anyone looking to fine me, $1,000 is pretty optimistic. I don't even have my own computer. I'm typing this out at a public library on a beige computer that runs on Windows XP).

Anyways scraping this data introduced me to the cool world of packages/modules/tools in Python, and it felt sort of eye opening/ horizon expanding, so I thought I'd try to find some other Python packages and modules with varying uses and list them below, with help from others who have basically done the same.

1 Pyjokes:

Usage
Command line
Once installed, simply call pyjoke or pyjokes from the command line:



$ pyjoke
Why do Java programmers have to wear glasses? Because they don't see sharp.
Or add it to your .bashrc or .zshrc file to see a joke every time you open a terminal!


Enter fullscreen mode Exit fullscreen mode

See pyjokes --help for more info.

Python
You can also access the jokes in your own project by importing pyjokes and using the function get_joke:

`>>> import pyjokes

print(pyjokes.get_joke())
Why do programmers confuse Halloween with Christmas? Because OCT 31 == DEC 25.`


https://pypi.org/project/pyjokes/

  1. Arcade:

Allows you to create 2d arcade games. Apparently it makes it easier!

pip install arcade

https://github.com/pythonarcade/arcade

  1. Pygame:

Another tool for writing video games

https://github.com/pygame/pygame

  1. ReactPy

ReactPy is a library for building user interfaces in Python without Javascript. ReactPy interfaces are made from components which look and behave similarly to those found in ReactJS. Designed with simplicity in mind, ReactPy can be used by those without web development experience while also being powerful enough to grow with your ambitions.

https://reactpy.dev/docs/index.html

  1. NLTK

NLTK is a leading platform for building Python programs to work with human language data. It provides easy-to-use interfaces to over 50 corpora and lexical resources such as WordNet, along with a suite of text processing libraries for classification, tokenization, stemming, tagging, parsing, and semantic reasoning, wrappers for industrial-strength NLP libraries, and an active discussion forum.

https://www.nltk.org/

  1. Edward

Edward is a Python library for probabilistic modeling, inference, and criticism. It is a testbed for fast experimentation and research with probabilistic models, ranging from classical hierarchical models on small data sets to complex deep probabilistic models on large data sets. Edward fuses three fields: Bayesian statistics and machine learning, deep learning, and probabilistic programming.

https://edwardlib.org/

. . . .
Terabox Video Player