README.rst 465 B

12345678910111213141516171819202122232425
  1. Bcolz extension basic example
  2. =============================
  3. Install needed packages::
  4. $ pip install cython
  5. $ pip install numpy
  6. $ pip install bcolz
  7. Build me
  8. --------
  9. Build the Bcolz Cython extension::
  10. $ python setup.py build_ext --inplace
  11. Test me
  12. -------
  13. Start your python session::
  14. >>> import bcolz as bz
  15. >>> import my_extension.example_ext as my_mod
  16. >>> c = bz.carray([i for i in range(1000)], dtype='i8')
  17. >>> my_mod.my_function(c)
  18. 499500