semvec/pypi-packages huggingface dataset:
runcli 0.0.1
Use Runfiles in your projects.
License: MIT
Keywords: development

======
runcli
======
Run commands for your repo, easily.

``runcli`` allows you to define a ``Runfile`` at the root of your
repository, and then call that file from anywhere in your repo as a
script using the command ``run``. The rest is up to you!

See `the github repo <https://github.com/nalourie/runcli>`_ for the
source code.


------------
Installation
------------

Install ``runcli`` with ``pip``::

  pip install runcli

Currently only linux is tested, but it should also work on Mac.


----------
Quickstart
----------
To use ``run``, first write a ``Runfile`` in the root of some
repository. The ``Runfile`` is just a script, and can be any script you
like, for example::

  #! /bin/bash

  echo $1

Then, from anywhere in your repository call the ``Runfile`` script using
the ``run`` command::

  > run "hello, world!"
  hello, world!

That's all there is to it.


------------
Contributing
------------
Pull requests are welcome. All contributions should happen on
`the github repo <https://github.com/nalourie/runcli>`_.
bfield 0.9.1
Convenient bit fields for int subclasses
License: MIT


===============
bfield.BitField
===============

The missing bitfield type for Python 2 and 3.

Example
=======

The following example illustrates possible use of bfield::

  from bfield import BitField

  class AX(int):
      AL = BitField(0, 8, "The lower octet")
      AH = BitField(8, 16, "The higher octet")


  assert AX(0x1234).AH == 0x12
  assert AX(0x1234).AL == 0x34

Caveat
======

Note that due to specifics of immutable ints, read-only is the best thing
available. This is sufficient for decoding binary protocols and file formats.