Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
One line jokes for programmers (jokes as a service)
Install the pyjokes
module with pip:
pip3 install pyjokes
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!
See pyjokes --help
for more info.
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.
We support many languages, and have multiple joke categories:
>>> import pyjokes
>>> print(pyjokes.get_joke("eu")) # basque joke
Zer dira 8 Bocabits? BocaByte bat
>>> print(pyjokes.get_joke("es", "chuck")) # spanish chuck norris joke
El teclado de Chuck Norris no tiene tecla F1, es el ordenador el que le pide ayuda a él.
There is also a get_jokes
function which returns all the jokes in the given language and category:
import pyjokes
for joke in pyjokes.get_jokes():
print(joke)
Alternatively, use the pyjokes.forever
generator function:
import pyjokes
for joke in pyjokes.forever():
# This will go on forever... you're welcome.
print(joke)
The project is maintained by the members of the PyJokes Society:
The pyjokes website and documentation is available at https://pyjok.es/
The story of pyjokes was told by co-founder Ben Nuttall at the PyCon UK conference: https://www.youtube.com/watch?v=nCyquLc47RE
The logo was designed by Sam Alder. The PyJokes Society is eternally grateful for his contribution.
FAQs
One line jokes for programmers (jokes as a service)
We found that pyjokes demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.