{"id":38502165,"url":"https://github.com/nathaniel-daniel/mega-rs","last_synced_at":"2026-01-17T06:01:42.671Z","repository":{"id":114789539,"uuid":"570817053","full_name":"nathaniel-daniel/mega-rs","owner":"nathaniel-daniel","description":"A Rust API for Mega","archived":false,"fork":false,"pushed_at":"2026-01-13T03:20:21.000Z","size":2957,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T06:45:40.180Z","etag":null,"topics":["mega","python","rust"],"latest_commit_sha":null,"homepage":"https://nathaniel-daniel.github.io/mega-rs/mega/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathaniel-daniel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-26T08:11:19.000Z","updated_at":"2026-01-13T03:19:16.000Z","dependencies_parsed_at":"2025-04-05T04:18:41.007Z","dependency_job_id":"80d450cc-0af2-44e8-bb0d-7182508ff9e9","html_url":"https://github.com/nathaniel-daniel/mega-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nathaniel-daniel/mega-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathaniel-daniel%2Fmega-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathaniel-daniel%2Fmega-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathaniel-daniel%2Fmega-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathaniel-daniel%2Fmega-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathaniel-daniel","download_url":"https://codeload.github.com/nathaniel-daniel/mega-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathaniel-daniel%2Fmega-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28501430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["mega","python","rust"],"created_at":"2026-01-17T06:01:41.951Z","updated_at":"2026-01-17T06:01:42.620Z","avatar_url":"https://github.com/nathaniel-daniel.png","language":"Rust","readme":"# mega-rs\n\nA Rust API for mega.\n\n## Features\n\n`easy`: Enable the easy interface, which exposes an easier to use, higher level api client\n\n## CLI\n\nThis library contains a simple CLI.\n\n### Download a File\n\n```bash\nmega-cli get \"\u003cfile-url\u003e\"\n```\n\n### List a Folder\n\n```bash\nmega-cli ls \"\u003cfolder-url\u003e\"\n```\n\n## Python Binding\n\nThis repository also contains a small Python binding.\nHere's an example of how it may be used to download a file:\n\n```python\nimport mega_py\nimport shutil\n\nclient = mega_py.Client()\nfile = client.get_file('https://mega.nz/file/7glwEQBT#Fy9cwPpCmuaVdEkW19qwBLaiMeyufB1kseqisOAxfi8')\n\nwith open(file.name, 'wb') as dest:\n    shutil.copyfileobj(client.download_file(file), dest)\n```\n\n## References\n\n- http://julien-marchand.fr/blog/using-mega-api-with-python-examples/\n- https://github.com/meganz/sdk/blob/9a951c9db1734cac3f44603f0491bc9755986aa7/doc/source/internals.rst\n- https://mega.io/doc\n- https://github.com/meganz/sdk\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathaniel-daniel%2Fmega-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathaniel-daniel%2Fmega-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathaniel-daniel%2Fmega-rs/lists"}