{"id":15020684,"url":"https://github.com/sthysel/pibake","last_synced_at":"2025-10-26T04:30:53.855Z","repository":{"id":57452453,"uuid":"87698954","full_name":"sthysel/pibake","owner":"sthysel","description":"A tool to download, curate and burn raspberry pi images.","archived":false,"fork":false,"pushed_at":"2020-03-12T17:30:35.000Z","size":39,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-28T10:22:41.558Z","etag":null,"topics":["image","noobs","raspberry-pi","raspi"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sthysel.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-09T09:59:11.000Z","updated_at":"2023-09-08T17:23:25.000Z","dependencies_parsed_at":"2022-09-02T10:10:36.936Z","dependency_job_id":null,"html_url":"https://github.com/sthysel/pibake","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthysel%2Fpibake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthysel%2Fpibake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthysel%2Fpibake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sthysel%2Fpibake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sthysel","download_url":"https://codeload.github.com/sthysel/pibake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219864035,"owners_count":16555943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image","noobs","raspberry-pi","raspi"],"created_at":"2024-09-24T19:55:25.996Z","updated_at":"2025-10-26T04:30:53.366Z","avatar_url":"https://github.com/sthysel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Raspberry pi image baker\n========================\n\n.. image:: https://readthedocs.org/projects/pibake/badge/?version=latest\n   :target: http://pibake.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\nThis tool fetches the latest Raspberry PI images from the official\nsources and keeps it in a local cache. You can then burn the image to SD\ncard from the cached copy.\n\nUsing the tool allows you to script PI installs using the latest images\nand prevents unfortunate mishaps when writing it to the SD card.\n\nAll downloads are kept in local XDG specified cache directory,\n``~/.cache/pibake`` by default.\n\nNew images have new names so old versions are kept until manually\ndeleted from the cache.\n\nThis means the images are always at hand and you can update your local\ncopies when and if required.\n\nUsage\n=====\n\nTo get help\n\n.. code:: bash\n\n    $ pibake --help\n    Usage: pibake [OPTIONS] COMMAND [ARGS]...\n\n      Fetch, manage and burn Raspberry PI images.\n\n    Options:\n      -v, --verbose          Level of verbosity of logs\n      -c, --cache-path PATH  Image cache path, Default: /home/thys/.cache/pibake\n      --help                 Show this message and exit.\n\n    Commands:\n      bake   Bake selected image to disk mounted at...\n      disks  List mounted SD card(s) that are good...\n      fetch  Fetch images\n      list   List all images available in local cache\n\nFetching images\n\n::\n\n    $ pibake fetch --help\n    Usage: pibake fetch [OPTIONS]\n\n      Fetch images\n\n    Options:\n      -o, --overwrite / --no-overwrite\n                                      Overwrite existing file\n      -i, --image [NOOBS|NOOBS_LITE|RASPIAN|RASPIAN_LITE]\n                                      Download NOOBS Full or Lite\n      --help                          Show this message and exit.\n\nFetch the latest lite NOOBS image\n\n.. code:: bash\n\n    $ pibake fetch NOOBS\n    Contacting server...\n    Fetching /home/thys/.pibake/NOOBS_lite_v2_3.zip\n      [####################################]  100%\n\nFetch the latest full NOOBS image\n\n.. code:: bash\n\n    $ pibake fetch --full\n    Contacting server...\n    Fetching /home/thys/.pibake/NOOBS_v2_3_0.zip\n      [####--------------------------------]   13%  0d 00:17:29\n\nView potential SD cards to bake a image on. Most distributions will\nautomount a disk when inserted. Applications like nautilus will also\nmount all available disks.\n\n::\n\n    $ pibake disks\n    1 potential disk(s) are available:\n    Device /dev/sdb1 mounted on /run/media/thys/A881-FFA5\n\nTo list all images available locally\n\n::\n\n    $ pibake list\n    2017-03-02-raspbian-jessie\n    NOOBS_lite_v2_3\n    NOOBS_v2_3_0\n    NOOBS_v2_4_0\n\nTo see where the images are retrieved from use the ``-vv`` option\n\n.. code:: bash\n\n    pibake -vv fetch\n    Contacting server...\n    {'Accept-Ranges': 'bytes',\n     'Age': '2714',\n     'Content-Length': '33492713',\n     'Content-Type': 'application/zip',\n     'Date': 'Sun, 09 Apr 2017 09:31:57 GMT',\n     'ETag': '\"140006-1ff0ee9-549d637969e00\"',\n     'Last-Modified': 'Fri, 03 Mar 2017 16:41:28 GMT',\n     'Server': 'Apache/2.2.22 (Debian)',\n     'Via': '1.1 d.cdn.velocix.com:80 (pcd/42.0.189164.189164 (2016-03-03 08:58:06 '\n            'UTC))',\n     'X-Cache': 'HIT from d.cdn.velocix.com'}\n    {'Connection': 'close',\n     'Content-Encoding': 'gzip',\n     'Content-Length': '278',\n     'Content-Type': 'text/html; charset=iso-8859-1',\n     'Date': 'Sun, 09 Apr 2017 10:17:08 GMT',\n     'Location': 'https://downloads.raspberrypi.org/NOOBS_lite/images/NOOBS_lite-2017-03-03/NOOBS_lite_v2_3.zip',\n     'Server': 'Apache/2.2.22 (Debian)',\n     'Vary': 'Accept-Encoding'}\n    {'Connection': 'close',\n     'Content-Encoding': 'gzip',\n     'Content-Length': '284',\n     'Content-Type': 'text/html; charset=iso-8859-1',\n     'Date': 'Sun, 09 Apr 2017 10:17:09 GMT',\n     'Location': 'http://director.downloads.raspberrypi.org/NOOBS_lite/images/NOOBS_lite-2017-03-03/NOOBS_lite_v2_3.zip',\n     'Server': 'Apache/2.2.22 (Debian)',\n     'Vary': 'Accept-Encoding'}\n    {'Connection': 'close',\n     'Content-Length': '0',\n     'Content-Type': 'text/x-python',\n     'Date': 'Sun, 09 Apr 2017 10:17:10 GMT',\n     'Location': 'http://vx2-downloads.raspberrypi.org/NOOBS_lite/images/NOOBS_lite-2017-03-03/NOOBS_lite_v2_3.zip',\n     'Server': 'Apache/2.2.22 (Debian)'}\n\nInstall\n=======\n\npibake is in pypi\n\n::\n\n    $ pip install pibake\n\nInstall from source into virtualenv\n-----------------------------------\n\n::\n\n    $ workon pibake\n    $ pip install pibake\n\nInstall from source to local user in .local/\n--------------------------------------------\n\nFor this to be most useful have ${HOME}/.local/bin/ in $PATH\n\n.. code:: bash\n\n    $ pip install -r requirements.txt\n    $ pip install --user .\n\nDev\n===\n\n::\n\n    $ bumpversion --current-version=0.2.2 patch\n    $ python setup.py sdist bdist_wheel\n    $ twine upload -r test -s dist/*\n    $ twine upload dist/*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsthysel%2Fpibake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsthysel%2Fpibake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsthysel%2Fpibake/lists"}