# Path: ghtools/api.py
# DEFAULT_GITHUB = 'public'


from collections import namedtuple
from ghtools.api import DEFAULT_GITHUB

        <github_name>:<org_name>

    Again, ``github_name`` is optional.

    """

    @classmethod
    def from_string(cls, identstring):

        parts = identstring.split(':', 1)

        if len(parts) == 1:
            github = DEFAULT_GITHUB
            remainder = parts[0]
        else:
            github, remainder = parts

        parts = remainder.split('/', 1)

        if len(parts) == 1:
            org = parts[0]
            repo = None
        else:
            org, repo = parts

        return Identifier(github, org, repo)

    def __str__(self):
        out = ''

# Path: ghtools/api.py
# DEFAULT_GITHUB = 'public'


# Path: ghtools/identifier.py
from collections import namedtuple
from ghtools.api import DEFAULT_GITHUB


        <github_name>:<org_name>

    Again, ``github_name`` is optional.

    """

    @classmethod
    def from_string(cls, identstring):

        parts = identstring.split(':', 1)

        if len(parts) == 1:
            github = DEFAULT_GITHUB
            remainder = parts[0]
        else:
            github, remainder = parts

        parts = remainder.split('/', 1)

        if len(parts) == 1:
            org = parts[0]
            repo = None
        else:
            org, repo = parts

        return Identifier(github, org, repo)

    def __str__(self):
        out = ''

        if self.github != DEFAULT_GITHUB: