{"id":16098589,"url":"https://github.com/mtth/hdfs","last_synced_at":"2025-05-15T06:03:31.496Z","repository":{"id":14882578,"uuid":"17606177","full_name":"mtth/hdfs","owner":"mtth","description":"API and command line interface for HDFS","archived":false,"fork":false,"pushed_at":"2024-09-24T03:58:23.000Z","size":626,"stargazers_count":272,"open_issues_count":22,"forks_count":103,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-15T06:03:04.605Z","etag":null,"topics":["cli","hdfs","python"],"latest_commit_sha":null,"homepage":"https://hdfscli.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtth.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-03-10T19:49:09.000Z","updated_at":"2025-02-12T03:16:33.000Z","dependencies_parsed_at":"2024-06-18T10:44:38.670Z","dependency_job_id":"8df8484f-6561-4896-a428-587d15240c77","html_url":"https://github.com/mtth/hdfs","commit_stats":{"total_commits":347,"total_committers":33,"mean_commits":"10.515151515151516","dds":"0.34870317002881845","last_synced_commit":"039a7f4730653a8264c092845b5602ccb692a7ef"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtth%2Fhdfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtth%2Fhdfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtth%2Fhdfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtth%2Fhdfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtth","download_url":"https://codeload.github.com/mtth/hdfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254283336,"owners_count":22045140,"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":["cli","hdfs","python"],"created_at":"2024-10-09T18:24:04.025Z","updated_at":"2025-05-15T06:03:31.466Z","avatar_url":"https://github.com/mtth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HdfsCLI [![CI](https://github.com/mtth/hdfs/actions/workflows/ci.yml/badge.svg)](https://github.com/mtth/hdfs/actions/workflows/ci.yml) [![Pypi badge](https://badge.fury.io/py/hdfs.svg)](https://pypi.python.org/pypi/hdfs/) [![Downloads badge](https://img.shields.io/pypi/dm/hdfs.svg)](https://pypistats.org/packages/hdfs)\n\nAPI and command line interface for HDFS.\n\n```\n$ hdfscli --alias=dev\n\nWelcome to the interactive HDFS python shell.\nThe HDFS client is available as `CLIENT`.\n\nIn [1]: CLIENT.list('models/')\nOut[1]: ['1.json', '2.json']\n\nIn [2]: CLIENT.status('models/2.json')\nOut[2]: {\n  'accessTime': 1439743128690,\n  'blockSize': 134217728,\n  'childrenNum': 0,\n  'fileId': 16389,\n  'group': 'supergroup',\n  'length': 48,\n  'modificationTime': 1439743129392,\n  'owner': 'drwho',\n  'pathSuffix': '',\n  'permission': '755',\n  'replication': 1,\n  'storagePolicy': 0,\n  'type': 'FILE'\n}\n\nIn [3]: with CLIENT.read('models/2.json', encoding='utf-8') as reader:\n  ...:     from json import load\n  ...:     model = load(reader)\n  ...:\n```\n\n## Features\n\n* Python 3 bindings for the [WebHDFS][] (and [HttpFS][]) API,\n  supporting both secure and insecure clusters.\n* Command line interface to transfer files and start an interactive client\n  shell, with aliases for convenient namenode URL caching.\n* Additional functionality through optional extensions:\n\n  + `avro`, to [read and write Avro files directly from HDFS][].\n  + `dataframe`, to [load and save Pandas dataframes][].\n  + `kerberos`, to [support Kerberos authenticated clusters][].\n\nSee the [documentation][] to learn more.\n\n## Getting started\n\n```sh\n$ pip install hdfs\n```\n\nThen hop on over to the [quickstart][] guide. A [Conda\nfeedstock](https://github.com/conda-forge/python-hdfs-feedstock) is also\navailable.\n\n## Testing\n\nHdfsCLI is tested against both [WebHDFS][] and [HttpFS][]. There are two ways\nof running tests (see `scripts/` for helpers to set up a test HDFS cluster):\n\n```sh\n$ HDFSCLI_TEST_URL=http://localhost:50070 pytest # Using a namenode's URL.\n$ HDFSCLI_TEST_ALIAS=dev pytest # Using an alias.\n```\n\n## Contributing\n\nWe'd love to hear what you think on the [issues][] page. Pull requests are also\nmost welcome!\n\n[HttpFS]: http://hadoop.apache.org/docs/current/hadoop-hdfs-httpfs/\n[WebHDFS]: http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/WebHDFS.html\n[read and write Avro files directly from HDFS]: https://hdfscli.readthedocs.io/en/latest/api.html#module-hdfs.ext.avro\n[load and save Pandas dataframes]: https://hdfscli.readthedocs.io/en/latest/api.html#module-hdfs.ext.dataframe\n[support Kerberos authenticated clusters]: https://hdfscli.readthedocs.io/en/latest/api.html#module-hdfs.ext.kerberos\n[documentation]: https://hdfscli.readthedocs.io/\n[quickstart]: https://hdfscli.readthedocs.io/en/latest/quickstart.html\n[issues]: https://github.com/mtth/hdfs/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtth%2Fhdfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtth%2Fhdfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtth%2Fhdfs/lists"}