Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(93)  |  Call(75)  |  Derive(1)  |  Import(17)
AstakosClient Class Implementation

src/s/y/synnefo-HEAD/snf-pithos-app/pithos/api/util.py   synnefo(Download)
from synnefo.lib import join_urls
 
from astakosclient import AstakosClient
from astakosclient.errors import NoUserName, NoUUID, AstakosClientException
 
def retrieve_displayname(token, uuid, fail_silently=True):
    astakos = AstakosClient(token, ASTAKOS_AUTH_URL,
                            retry=2, use_pool=True,
                            logger=logger)
    try:
def retrieve_displaynames(token, uuids, return_dict=False, fail_silently=True):
    astakos = AstakosClient(token, ASTAKOS_AUTH_URL,
                            retry=2, use_pool=True,
                            logger=logger)
    catalog = astakos.get_usernames(uuids) or {}
def retrieve_uuid(token, displayname):
    if is_uuid(displayname):
        return displayname
 
    astakos = AstakosClient(token, ASTAKOS_AUTH_URL,
def retrieve_uuids(token, displaynames, return_dict=False, fail_silently=True):
    astakos = AstakosClient(token, ASTAKOS_AUTH_URL,
                            retry=2, use_pool=True,
                            logger=logger)
    catalog = astakos.get_uuids(displaynames) or {}

src/s/y/synnefo-HEAD/snf-django-lib/snf_django/lib/astakos.py   synnefo(Download)
import logging
 
from astakosclient import AstakosClient
from astakosclient.errors import (Unauthorized, NoUUID, NoUserName,
                                  AstakosClientException)
def user_for_token(token, astakos_auth_url, logger=None):
    if token is None:
        return None
    client = AstakosClient(token, astakos_auth_url,
                           retry=2, use_pool=True, logger=logger)
        self.logger = logger
 
        self.astakos = AstakosClient(astakos_token, astakos_auth_url,
                                     retry=2, use_pool=True, logger=logger)
        self.users = {}

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/quotas/__init__.py   synnefo(Download)
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
                              ASTAKOS_AUTH_URL)
from astakosclient import AstakosClient
from astakosclient import errors
 
    def get(cls):
        if cls._object is None:
            cls._object = AstakosClient(ASTAKOS_TOKEN,
                                        ASTAKOS_AUTH_URL,
                                        use_pool=True,

src/s/y/synnefo-HEAD/snf-django-lib/snf_django/lib/api/__init__.py   synnefo(Download)
from django.views.decorators import csrf
 
from astakosclient import AstakosClient
from astakosclient.errors import AstakosClientException
from django.conf import settings
                                         " an Astakos Authentication URL")
                            raise
                    astakos = AstakosClient(token, astakos_url,
                                            use_pool=True,
                                            retry=2,

src/s/y/synnefo-HEAD/snf-pithos-app/pithos/api/functions.py   synnefo(Download)
from django.views.decorators.csrf import csrf_exempt
 
from astakosclient import AstakosClient
 
from snf_django.lib import api
def get_uuids(names):
    try:
        astakos = AstakosClient(SERVICE_TOKEN, ASTAKOS_AUTH_URL,
                                retry=2, use_pool=True, logger=logger)
        uuids = astakos.service_get_uuids(names)

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/helpdesk/views.py   synnefo(Download)
 
    astakos_client = astakosclient.AstakosClient(
        auth_token, settings.ASTAKOS_AUTH_URL,
        retry=2, use_pool=True, logger=logger)
 
def search_by_ip(request, search_query):
    """Search IP history for all uses of an IP address."""
    auth_token = request.user['access']['token']['id']
    astakos_client = astakosclient.AstakosClient(auth_token,
                                                 settings.ASTAKOS_AUTH_URL,

src/s/y/synnefo-HEAD/snf-pithos-backend/pithos/backends/lib/sqlalchemy/alembic/versions/165ba3fbfe53_update_path_account.py   synnefo(Download)
from sqlalchemy.sql import table, column, and_
 
from astakosclient import AstakosClient
from astakosclient.errors import NoUserName, NoUUID
 
    else:
        astakos_client = AstakosClient(
            settings.SERVICE_TOKEN, settings.ASTAKOS_AUTH_URL,
            retry=3, use_pool=True)
        get_uuid = functools.partial(_get_uuid,
    else:
        astakos_client = AstakosClient(
            settings.SERVICE_TOKEN, settings.ASTAKOS_AUTH_URL,
            retry=3, use_pool=True)
        get_displayname = functools.partial(

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/management/cli_options.py   synnefo(Download)
 
    """
    astakos = astakosclient.AstakosClient(settings.CYCLADES_SERVICE_TOKEN,
                                          settings.ASTAKOS_AUTH_URL,
                                          retry=2)

src/s/y/synnefo-HEAD/snf-pithos-app/pithos/api/settings.py   synnefo(Download)
from synnefo.lib.services import fill_endpoints
from pithos.api.services import pithos_services as vanilla_pithos_services
from astakosclient import AstakosClient
 
from copy import deepcopy
    def __str__(self):
        if not hasattr(self, 'str'):
            try:
                astakos_client = \
                    AstakosClient(SERVICE_TOKEN, ASTAKOS_AUTH_URL)

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/cyclades_settings.py   synnefo(Download)
from synnefo.api.services import cyclades_services as vanilla_cyclades_services
from synnefo.lib.services import fill_endpoints
from astakosclient import AstakosClient
 
from copy import deepcopy
    def __str__(self):
        if not hasattr(self, 'str'):
            try:
                astakos_client = \
                    AstakosClient(SERVICE_TOKEN, ASTAKOS_AUTH_URL)

  1 | 2  Next