CCR Documentation¶
Description¶
ccr
is a Python library for interacting with the Chakra Community
Repository, or CCR.
Functions¶
Session Management¶
-
class
ccr.
Session
(username=None, password=None, rememberme=False)[source]¶ class for all CCR actions
-
adopt
(package)[source]¶ adopt an orphaned CCR package raises a PackageNotFound exception if the package doesn’t exist raises a ConnectionError if a network error occur raises a _OwnershipWarning if the package is already maintained or if it fails
-
authenticate
(username, password, rememberme=False)[source]¶ authenticate on CCR raises a ConnectionError if a network error occur raises a ValueError if login fails
-
check_vote
(package, return_id=False)[source]¶ check to see if you have already voted for a package raises a PackageNotFound exception if the package doesn’t exist raises a ConnectionError if a network error occur
-
delete
(package)[source]¶ delete a package from CCR raises a PackageNotFound exception if the package doesn’t exist raises a ConnectionError if a network error occur raises a _DeleteWarning on failure
-
disown
(package)[source]¶ disown a CCR package raises a PackageNotFound exception if the package doesn’t exist raises a ConnectionError if a network error occur raises a _OwnershipWarning on failure
-
flag
(package)[source]¶ flag a CCR package as out of date raises a PackageNotFound exception if the package doesn’t exist raises a ConnectionError if a network error occur raises a _FlagWarning on failure
-
notify
(package)[source]¶ set the notify flag on a package raises a PackageNotFound exception if the package doesn’t exist raises a ConnectionError if a network error occur raises a _NotifyWarning on failure
-
setcategory
(package, category)[source]¶ change/set the category of a package already in the CCR raises a PackageNotFound exception if the package doesn’t exist raises a requests.ConnectionError if a network error occur raises _CategoryWarning for an invalid category or if it fails.
-
submit
(f, category)[source]¶ submit a package to CCR raises KeyError on bad category raises IOError [Errno 2] if ‘f’ does not exist raises a ConnectionError if a network error occur
-
unflag
(package)[source]¶ unflag a CCR package as out of date raises a PackageNotFound exception if the package doesn’t exist raises a ConnectionError if a network error occur raises a _FlagWarning on failure
-
unnotify
(package)[source]¶ unset the notify flag on a package raises a PackageNotFound exception if the package doesn’t exist raises a ConnectionError if a network error occur raises a _NotifyWarning on failure
-