An open API service indexing awesome lists of open source software.

https://github.com/veltzer/demos-lang-python

Demos for the Python programming language
https://github.com/veltzer/demos-lang-python

demos python

Last synced: 5 months ago
JSON representation

Demos for the Python programming language

Awesome Lists containing this project

README

          

## demos-python

version: 0.0.3

description: Demos for the Python programming language

website: https://veltzer.github.io/demos-python

## Build

![build](https://github.com/veltzer/demos-python/workflows/build/badge.svg)

This project explores the python programming language.
The idea is that when you are programming you may find many examples
over the Internet but you always need to tweak them a bit to see
how you can get to an example which answers your needs precisely.
Over the Internet this is hard to do. But if you clone hundreds
of examples and you have them in working condition on your machine
you can just find the example which is closest to what you need
and tweak it until it does exactly what you need. You may even
add your example as a new example or contribute it back to this project.
This is a much better way of programming since you are not doing
the experiments on your full system but rather on a small example
that is easy to run, debug and manage. Once you have the example ready and
running correctly you can incorporate its code into a larger project.

## Contact

chat with me at [![gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/veltzer/mark.veltzer)

## Number of examples

Currently there are 986 examples in this repo.

## How to use the examples

* Create a virtual env:

```bash
virtualenv my_venv
```

* Enter your virtual env:

```
source my_venv/bin/activate
```

* Install the requirements:

```
pip install -r requirements.txt
```

* Pick an example and run it:

```bash
python src/examples/short/modules/pandas/basic.py
```

Mark Veltzer, Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025