Git Product home page Git Product logo

bits_and_bytes.py's Introduction

Bits and bytes in python

Some material I prepared for a short presentation / workshop on handling binary data in python.

Preparation

Some things to set up before the workshop. Get in touch with me if you are experiencing any problems.

Python3 on UNIX

Please make sure that you have all the below installed on your system:

  • Linux / MacOS, a Linux VM or Windows Subsystem for Linux

In that Unix environment:

  • Python >= 3.3
  • Pip
  • Poetry (optional)

Virtual ENV / Python dependencies

If you have poetry installed:
Run poetry config virtualenvs.in-project true if you want your venv to be in <project>/.venv. To create the venv and install the dependencies, run: poetry install.

If you do not have poetry installed:
Create a venv: python3 -m venv .venv
Activate it: source .venv/bin/activate
And install the dependencies: pip install -r ./requirements.txt

Data

Download our sample data and place it in <project>/data/.
(Not provided in GitHub.)

IDE

I highly recommend installing an IDE Like VS Code or PyCharm for the sake of easier debugging.
If you are using VS Code, you will need the ms-python extension.
If you happen to use VS Code OSS, I recommend the ms-pyright extension for static type checking and linting.

For those who love using VIM there are the vscodevim and IdeaVim (f. PyCharm) extensions.

bits_and_bytes.py's People

Contributors

niklasbeierl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.