{"id":23577155,"url":"https://github.com/eggpi/pyext2lib","last_synced_at":"2025-09-01T02:36:56.722Z","repository":{"id":1536400,"uuid":"1834807","full_name":"eggpi/pyext2lib","owner":"eggpi","description":"Thin Python bindings for ext2fslib","archived":false,"fork":false,"pushed_at":"2011-06-02T00:42:42.000Z","size":248,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-19T08:45:12.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eggpi.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-02T00:07:43.000Z","updated_at":"2015-03-12T00:22:23.000Z","dependencies_parsed_at":"2022-08-16T13:40:28.263Z","dependency_job_id":null,"html_url":"https://github.com/eggpi/pyext2lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eggpi/pyext2lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fpyext2lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fpyext2lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fpyext2lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fpyext2lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eggpi","download_url":"https://codeload.github.com/eggpi/pyext2lib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggpi%2Fpyext2lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273066574,"owners_count":25039621,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-26T22:27:01.793Z","updated_at":"2025-09-01T02:36:56.700Z","avatar_url":"https://github.com/eggpi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Copyright 2010, 2011 Guilherme Gonçalves (guilherme.p.gonc@gmail.com)\n\nPyExt2lib provides Python bindings to the ext2fslib, as provided by the\ne2fsprogs [1] package.\nPyExt2lib is written in Cython [2] and comes with a precompiled C file, so it\ndoesn't require the Cython compiler to be installed.\n\nPyExt2lib can be compiled to run with any Python version supported by Cython.\n\nThis project was started to support the development of a filesystem analysis\ntool for the Operating Systems course (MC514) at UNICAMP.\nFor that reason, PyExt2lib only provides bindings for the functionality needed\nby this tool, is grossly incomplete and unfit for many uses. In particular,\nPyExt2lib only provides read-only acces to the filesystem.\nYou have been warned :)\n\nIn order to install PyExt2lib, use the included setup.py script, as such:\n$ python setup.py install\nThe module will be called 'pyext2lib'\n\nFor licensing information, please see the included COPYING file.\n\nSample usage:\n\n(on a Python terminal with root privileges)\n\u003e\u003e\u003e import pyext2lib\n\u003e\u003e\u003e fs = pyext2lib.ExtFS('/dev/sda1', pyext2lib.IO_MANAGER_UNIX) # (1)\n\u003e\u003e\u003e root = pyext2lib.ExtInode(fs, 2) # (2)\n\u003e\u003e\u003e root.check_directory() # (3)\nTrue\n\u003e\u003e\u003e blocks = []\n\u003e\u003e\u003e callback = lambda fs, blk, blkcnt: blocks.append(blk)\n\u003e\u003e\u003e root.block_iterate(callback) # (4)\nTrue\n\u003e\u003e\u003e print blocks # (5)\n[4307L]\n\n(1) Open the filesystem at /dev/sda1.\n(2) Get the inode 2, corresponding to the root of the filesystem.\n(3) Check that it really is a directory.\n(4) Iterate over all blocks referenced by the root inode and append them to a\nlist of blocks in a callback function.\n(5) The list of blocks.\n\nThis repository contains further examples and Doxygen files in its doc/\ndirectory.\n\nReferences\n1 - http://e2fsprogs.sourceforge.net/\n2 - http://cython.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggpi%2Fpyext2lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feggpi%2Fpyext2lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggpi%2Fpyext2lib/lists"}