semvec/pypi-packages huggingface dataset:
rh.osx 0.1.1
Python bindings to access native macOS APIs
License: MIT

Python bindings to access native macOS APIs

Specifics
=========

I created this library to provide access to native macOS APIs to other Python code I've written.
It uses ``ctypes`` to bind to the underlying C APIs, and generally just exposes the APIs 'as is'
without attempting to Python-ify them.

It does, however, provide several facilities to make working with the APIs a little easier, but they
are entirely optional. Several types (e.g. ``CFTypeRef``, ``io_object_t``) have an ``autorelease()``
method which will automatically call the appropriate function to release the object when the Python
object holding the reference is destroyed.

Additionally, strings can be automatically converted to/from ``CFStringRef``. The aforementioned
autorelease method is used to ensure that the ephemeral ``CFStringRef`` does not leak.

There is an ``IOIterator`` class which can adapt an ``io_iterator_t`` into a Python iterator.

The bindings are NOT comprehensive and I generally just add stuff as I need it.

The code is tested with Python 2.7 and 3.6.

Examples
========

    >>> from rh.osx import corefoundation
    >>> string_copy = corefoundation.CFStringCreateCopy(None,
    ... """The Python string object is automatically converted to a CFStringRef.
    ... The returned CFStringRef copy will automatically be released.""").autorelease()
    >>> print(str(string_copy))
    The Python string object is automatically converted to a CFStringRef.
    The returned CFStringRef copy will automatically be released.

License
=======

This library is distributed under the MIT license, as described in the LICENSE file.
rh.osxdiskutils 0.1
Utilities to work with disks on macOS
License: MIT

Utilities to work with disks on macOS

Specifics
=========

This library provides some functions for working with disks and mountpoints on macOS. It can
enumerate block devices and look up the mount points for attached media.

The code is tested with Python 2.7 and 3.6.

Requirements
============

My macOS API binding library ``rh.osx`` is required.

Examples
========

    >>> import rh.osxdiskutils
    >>> all_drives = rh.osxdiskutils.find_block_devices()
    >>> for drive in all_drives:
    ...     all_media = rh.osxdiskutils.find_media(drive)
    ...     for media in all_media:
    ...         bsd_name = rh.osxdiskutils.get_bsd_name(media)
    ...         mount_point = rh.osxdiskutils.get_mount_point(bsd_name)
    ...         if mount_point:
    ...             print(bsd_name, mount_point)
    ...
    disk1 /
    disk6 /Volumes/Storage
    disk8 /Volumes/Storage2
    disk7 /Volumes/Storage3

License
=======

This library is distributed under the MIT license, as described in the LICENSE file.
mcp3208 0.0.6
A python library for MCP3208
License: MIT
Keywords: adc,mcp3208,spi

.. figure:: https://raw.githubusercontent.com/MomsFriendlyRobotCompany/MCP3208/master/docs/pics/chip.png
    :width: 300px

MCP3208
=============

This is a python library designed to work with the MCP3208 ADC using SPI on a Raspberry Pi. The MCP3208 is capable of:

- 12-bit resolution
- ±1 LSB max DNL
- ±1 LSB max INL (MCP3204/3208-B)
- ±2 LSB max INL (MCP3204/3208-C)
- 4 (MCP3204) or 8 (MCP3208) input channels
- Analog inputs programmable as single-ended or pseudo-differential pairs
- On-chip sample and hold
- SPI serial interface (modes 0,0 and 1,1)
- Single supply operation: 2.7V-5.5V
- 100ksps max.sampling rate at VDD = 5V
- 50ksps max. sampling rate at VDD = 2.7V
- Low power CMOS technology
    - 500 nA typical standby current, 2 μA max.
    - 400 μA max. active current at 5V
- Industrial temp range: -40°C to +85°C

For more information, see the `datasheet <https://raw.githubusercontent.com/MomsFriendlyRobotCompany/MCP3208/master/docs/mcp3208.pdf>`_.

Install
--------

The preferred installation method is::

	pip install mcp3208

Usage
---------

.. code-block:: python

	from mcp3208 import MCP3208
	import time

	adc = MCP3208()

	while True:
		for i in range(8):
			print('ADC[{}]: {:.2f}'.format(i, adc.read(i)))
		time.sleep(0.5)

SPI Interface
----------------

This chip uses SPI to interface with the Raspberry Pi. Basically, the chip
returns 12 bits contained in 3 bytes. You are able to read the MCP3208
either LSB or MSB first.

.. figure:: https://raw.githubusercontent.com/MomsFriendlyRobotCompany/MCP3208/master/docs/pics/waveform.png

MIT License
--------------

**Copyright (c) 2017 Kevin J. Walchko**

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.