earn the White PyBites Ninja earn the Yellow PyBites Ninja earn the Orange PyBites Ninja right arrow earn more PyBites Ninja belts and certificates
The best way to learn to code in Python is to actually use the language.

Our platform offers effective Test Driven Learning which will be key to your progress.


Join thousands of Pythonistas and start coding!


Join us on our PyBites Platform
Click here to code!

Building a Python Tips API with Django REST Framework and Deploying it to Digital Ocean

Posted by Bob on Tue 05 March 2019 in Django • Tagged with Django, APIs, Django REST Framework, tips, Digital Ocean, Django Commands, Postman, Nginx, postgres, Gunicorn, BeautifulSoup, requests, curl, SSH, Linux, deployment • 15 min read

In this article I will show you how to build a simple API for our growing collection of Python tips. First we make a simple Django app, defining the model. Next we use Django REST Framework to make an API supporting common CRUD operations. Then we will test it out using curl, Postman and Django REST's browser front-end. Lastly we deploy the API to Digital Ocean so we can start using it via our Slack with a Slash Command, which I will cover in the next article. Sounds exciting? You bet it is! Let's jump straight in!


Continue reading

Generating Beautiful Code Snippets with Carbon and Selenium

Posted by Bob on Tue 26 February 2019 in Tools • Tagged with Selenium, BeautifulSoup, requests, collections, random, urllib, carbon, tips, pprint, automation • 7 min read

Did you notice our Python tips lately? They looks more sexy, don't they? That's thanks to Carbon which lets you create beautiful images of your source code. As much as I love its interface though, what if we can automate this process generating the image for us? That's what we did and posting new tips to Twitter is now a breeze. In this article I will show you how using a bit of BeautifulSoup and selenium. Enjoy!


Continue reading

PyBites Twitter Digest - Issue 01, 2019

Posted by PyBites on Sun 17 February 2019 in Digest • Tagged with twitter, news, pybites, tips, Survey, Talk Python, Bites of Py, Test & Code, PyCon, virtualenv, super, OOP, packaging, Walrus Operator, turtle, data science, podcast, Teachingpython, Jupyter, Anaconda, carbon, PythonValentine, perfplot, Dropbox, classes, Vim, Hacktoberfest, sleep • 3 min read

It has been too long 😞 but we're excited to bring you today: 🐍 PyBites Twitter Digest - Issue 01, 2019 😎


Continue reading

PyBites Twitter Digest - Issue 38, 2018

Posted by PyBites on Sun 09 December 2018 in Digest • Tagged with twitter, news, pybites, tips, patterns, SciPy, arithmetic, concurrency, APIs, decorators, LambStatus, Loguru, logging, Twilio, serverless, deep learning, AWS, Lambda, DynamoDB • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Persistent Virtualenv Environment Variables with python-dotenv

Posted by Julian on Sat 06 October 2018 in packages • Tagged with Python, tips, virtualenv, virtual-environment, packages, env, learning, howto • 3 min read

In this article I'm going to show you how to declare persistent environment variables in Python Virtual Environments with python-dotenv.


Continue reading

PyBites Twitter Digest - Issue 30, 2018

Posted by PyBites on Sun 23 September 2018 in Digest • Tagged with twitter, news, pybites, pycon, videos, HTTP, OSI Model, coverage, podcast, testing, AI, music, PyTheory, Super Mario Bros, games, unittest, tricks, tips, matplotlib, cryptocurrency, deep learning, Keras, TensorFlow, OpenCV, OCR, machine learning • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

PyBites Twitter Digest - Issue 28, 2018

Posted by PyBites on Sun 02 September 2018 in Digest • Tagged with twitter, news, pybites, Git, Traffic, security, cloud, Sphinx, Rinohtype, tips, PSF, Asyncio, learning, tutorial, network, Cisco, deep learning, machine learning, keras, scientific python, WebAssembly, JavaScript, pyodide • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Twitter Digest 2017 Week 50

Posted by PyBites on Sun 17 December 2017 in Digest • Tagged with twitter, news, tips, python, challenges, PyCon, motivation, machine learning, comments, TensorFlow, code, dicts, Flask, Regex, F-strings, Bottle, SQLAlchemy, Twitter, Scikit-learn, PrettyPrinter • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Twitter Digest 2017 Week 49

Posted by PyBites on Sun 10 December 2017 in Digest • Tagged with twitter, news, tips, python, data visualisation, code, Pandas, classes, PIL, date time, Bitcoin, data analysis, Jupyter, gitpython, Pytorch, data structures, strings, Itertools • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Twitter Digest 2017 Week 48

Posted by PyBites on Sun 03 December 2017 in Digest • Tagged with twitter, news, tips, python, podcast, dictionaries, Django, robot, AI, Docker, training, regex, Binder, Jupyter, Data Science, strings, AWS, NLTK, Pipenv • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading