{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-sd/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/sd/en/latest/\n :alt: Documentation Status\n\n.. image :: https://img.shields.io/discord/327254708534116352.svg\n :target: https://adafru.it/discord\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_SD.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_SD\n :alt: Build Status\n\nCircuitPython driver for SD cards. This implements the basic reading and writing\nblock functionality needed to mount an SD card using `storage.VfsFat`.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython 2.0.0+ `_\n* `Bus Device `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nUsage Example\n=============\n\nMounting a filesystem on an SD card so that its available through the normal Python\nways is easy.\n\nBelow is an example for the Feather M0 Adalogger. Most of this will stay the same\nacross different boards with the exception of the pins for the SPI and chip\nselect (cs) connections.\n\n.. code-block:: python\n\n import adafruit_sdcard\n import busio\n import digitalio\n import board\n import storage\n\n # Connect to the card and mount the filesystem.\n spi = busio.SPI(board.SCK, board.MOSI, board.MISO)\n cs = digitalio.DigitalInOut(board.SD_CS)\n sdcard = adafruit_sdcard.SDCard(spi, cs)\n vfs = storage.VfsFat(sdcard)\n storage.mount(vfs, \"/sd\")\n\n # Use the filesystem as normal.\n with open(\"/sd/test.txt\", \"w\") as f:\n f.write(\"Hello world\\n\")\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-sd --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_SD", "keywords": "adafruit sdcard sd card mount storage featherwing adaloggerbreakout hardware micropython circuitpython", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-sd", "package_url": "https://pypi.org/project/adafruit-circuitpython-sd/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-sd/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_SD" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-sd/3.2.4/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython library for SD cards.", "version": "3.2.4" }, "last_serial": 5827012, "releases": { "3.2.0": [ { "comment_text": "", "digests": { "md5": "db08fc004fef9ed63a8eba8252e07675", "sha256": "4bdc84d17f97f08cf1835b641a8ec9953e76d755237782ffb6edcc13d0f23611" }, "downloads": -1, "filename": "adafruit-circuitpython-sd-3.2.0.tar.gz", "has_sig": false, "md5_digest": "db08fc004fef9ed63a8eba8252e07675", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23466, "upload_time": "2018-08-07T22:36:55", "url": "https://files.pythonhosted.org/packages/fc/b5/4b0bd4d7fa23c6735d639f036a4014d7f631fb018cc2ad714891dd620bf6/adafruit-circuitpython-sd-3.2.0.tar.gz" } ], "3.2.1": [ { "comment_text": "", "digests": { "md5": "9b6b4b250fc98674b07f94c03180eecb", "sha256": "83fe8a09a4fcfac416d400e6599fb1c3300b575b8a36acbf1540b5a0b09676a1" }, "downloads": -1, "filename": "adafruit-circuitpython-sd-3.2.1.tar.gz", "has_sig": false, "md5_digest": "9b6b4b250fc98674b07f94c03180eecb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23462, "upload_time": "2018-08-07T22:48:17", "url": "https://files.pythonhosted.org/packages/6d/64/5564bc1f91f8e0f89f6d29d89529996d77c4178414ff32abde3103ebae77/adafruit-circuitpython-sd-3.2.1.tar.gz" } ], "3.2.2": [ { "comment_text": "", "digests": { "md5": "d452e15ca9f835dc363d7809d4aeeff8", "sha256": "d8f67400efcc525f1040aae8ba9a09c785102d586594c9edafe704cfd2a95f30" }, "downloads": -1, "filename": "adafruit-circuitpython-sd-3.2.2.tar.gz", "has_sig": false, "md5_digest": "d452e15ca9f835dc363d7809d4aeeff8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22793, "upload_time": "2018-12-29T00:13:35", "url": "https://files.pythonhosted.org/packages/ac/38/807e1d936bcada1a0133e4ae73160e09f7cc7c2e1aed8d2bc773ae08cd6d/adafruit-circuitpython-sd-3.2.2.tar.gz" } ], "3.2.3": [ { "comment_text": "", "digests": { "md5": "d7d5278bc852ba9290890f6fb9962f64", "sha256": "d76501fdf97cef756caa9cdafff213887c8f63ae89efbc8494438f6584a00ba9" }, "downloads": -1, "filename": "adafruit-circuitpython-sd-3.2.3.tar.gz", "has_sig": false, "md5_digest": "d7d5278bc852ba9290890f6fb9962f64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22799, "upload_time": "2019-05-11T18:55:40", "url": "https://files.pythonhosted.org/packages/9a/5d/25b92f049e6a4fcc269d0d69ec54d97f3712d8ab83e502ee4a96e749c8f2/adafruit-circuitpython-sd-3.2.3.tar.gz" } ], "3.2.4": [ { "comment_text": "", "digests": { "md5": "249bcd632519361e3cc32038a9b61885", "sha256": "f9a53eca333bef891447cbb65b059ceba74e4b73b0d8abdfc91e953185bff505" }, "downloads": -1, "filename": "adafruit-circuitpython-sd-3.2.4.tar.gz", "has_sig": false, "md5_digest": "249bcd632519361e3cc32038a9b61885", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23173, "upload_time": "2019-09-13T17:40:37", "url": "https://files.pythonhosted.org/packages/88/44/686098c34a5fb10f26c0dee9e2d404eb13548038c2761043298b81c67160/adafruit-circuitpython-sd-3.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "249bcd632519361e3cc32038a9b61885", "sha256": "f9a53eca333bef891447cbb65b059ceba74e4b73b0d8abdfc91e953185bff505" }, "downloads": -1, "filename": "adafruit-circuitpython-sd-3.2.4.tar.gz", "has_sig": false, "md5_digest": "249bcd632519361e3cc32038a9b61885", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23173, "upload_time": "2019-09-13T17:40:37", "url": "https://files.pythonhosted.org/packages/88/44/686098c34a5fb10f26c0dee9e2d404eb13548038c2761043298b81c67160/adafruit-circuitpython-sd-3.2.4.tar.gz" } ] }