{"id":27343,"library":"repo2rocrate","title":"repo2rocrate","description":"Generate RO-Crates (Research Object Crates) from workflow repositories. Version 0.1.2, early release with no frequent updates.","status":"active","version":"0.1.2","language":"python","source_language":"en","source_url":"https://github.com/crs4/repo2rocrate","tags":["RO-Crate","workflow","reproducibility"],"install":[{"cmd":"pip install repo2rocrate","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Used for HTTP requests to GitHub API.","package":"requests","optional":false},{"reason":"Parsing YAML workflow files.","package":"pyyaml","optional":false},{"reason":"Core dependency for RO-Crate creation.","package":"rocrate","optional":false}],"imports":[{"note":"Direct import does not expose the main function; use from ... import.","wrong":"import repo2rocrate","symbol":"repo2rocrate","correct":"from repo2rocrate import repo2rocrate"}],"quickstart":{"code":"from repo2rocrate import repo2rocrate\n\n# Replace with a valid GitHub repository URL\ngithub_url = \"https://github.com/crs4/repo2rocrate\"\nrocrate_url = repo2rocrate(github_url)\nprint(f\"RO-Crate URL: {rocrate_url}\")","lang":"python","description":"Generate an RO-Crate from a public GitHub repository URL. Requires internet access."},"warnings":[{"fix":"Ensure URL starts with 'https://github.com/'.","message":"The repo2rocrate function expects the full GitHub URL with 'https://github.com/' prefix. Omitting 'https://' or using a non-GitHub URL will raise an error.","severity":"gotcha","affected_versions":"all"},{"fix":"Use Python 3.8+; consider pinning if you need 3.6.","message":"Python 3.6 support is declared but highly unlikely to be tested. Newer Python versions (>=3.8) are recommended.","severity":"deprecated","affected_versions":"0.1.2"},{"fix":"Encode URL or stick to ASCII repository names.","message":"The library may fail with repository names containing special characters or non-ASCII. Error handling is minimal.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install repo2rocrate' in the correct environment.","cause":"Package not installed or installed in a different Python environment.","error":"ModuleNotFoundError: No module named 'repo2rocrate'"},{"fix":"Pass a full URL like 'https://github.com/user/repo'.","cause":"URL does not start with 'https://github.com/' or is malformed.","error":"ValueError: Not a valid GitHub URL"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}