Did I find the right examples for you? yes no

All Samples(137)  |  Call(79)  |  Derive(0)  |  Import(58)
Generates a universally unique ID.
Any arguments only create more randomness.

        def uuid( *args ):
  """
    Generates a universally unique ID.
    Any arguments only create more randomness.
  """
  t = long( time.time() * 1000 )
  r = long( random.random()*100000000000000000L )
  try:
    a = socket.gethostbyname( socket.gethostname() )
  except:
    # if we can't get a network address, just imagine one
    a = random.random()*100000000000000000L
  data = str(t)+' '+str(r)+' '+str(a)+' '+str(args)
  data = md5.md5(data).hexdigest()
  return data
        


src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/celery/app/task/__init__.py   socorro(Download)
from ...registry import tasks, _unpickle_task
from ...result import EagerResult
from ...utils import (fun_takes_kwargs, instantiate,
                      mattrgetter, uuid, maybe_reraise)
from ...utils.mail import ErrorMail
        args = args or []
        kwargs = kwargs or {}
        task_id = options.get("task_id") or uuid()
        retries = options.get("retries", 0)
        throw = self.app.either("CELERY_EAGER_PROPAGATES_EXCEPTIONS",

src/m/a/make.mozilla.org-HEAD/vendor-local/lib/python/celery/app/task/__init__.py   make.mozilla.org(Download)
from ...registry import tasks, _unpickle_task
from ...result import EagerResult
from ...utils import (fun_takes_kwargs, instantiate,
                      mattrgetter, uuid, maybe_reraise)
from ...utils.mail import ErrorMail
        args = args or []
        kwargs = kwargs or {}
        task_id = options.get("task_id") or uuid()
        retries = options.get("retries", 0)
        throw = self.app.either("CELERY_EAGER_PROPAGATES_EXCEPTIONS",

src/p/l/playdoh-lib-HEAD/lib/python/celery/app/task/__init__.py   playdoh-lib(Download)
from ...registry import tasks, _unpickle_task
from ...result import EagerResult
from ...utils import (fun_takes_kwargs, instantiate,
                      mattrgetter, uuid, maybe_reraise)
from ...utils.mail import ErrorMail
        args = args or []
        kwargs = kwargs or {}
        task_id = options.get("task_id") or uuid()
        retries = options.get("retries", 0)
        throw = self.app.either("CELERY_EAGER_PROPAGATES_EXCEPTIONS",

src/m/o/mozillians-HEAD/vendor-local/lib/python/celery/app/task/__init__.py   mozillians(Download)
from ...registry import tasks, _unpickle_task
from ...result import EagerResult
from ...utils import (fun_takes_kwargs, instantiate,
                      mattrgetter, uuid, maybe_reraise)
from ...utils.mail import ErrorMail
        args = args or []
        kwargs = kwargs or {}
        task_id = options.get("task_id") or uuid()
        retries = options.get("retries", 0)
        throw = self.app.either("CELERY_EAGER_PROPAGATES_EXCEPTIONS",

src/k/u/kuma-lib-HEAD/packages/celery/celery/app/task/__init__.py   kuma-lib(Download)
from ...registry import tasks, _unpickle_task
from ...result import EagerResult
from ...utils import (fun_takes_kwargs, instantiate,
                      mattrgetter, uuid, maybe_reraise)
from ...utils.mail import ErrorMail
        args = args or []
        kwargs = kwargs or {}
        task_id = options.get("task_id") or uuid()
        retries = options.get("retries", 0)
        throw = self.app.either("CELERY_EAGER_PROPAGATES_EXCEPTIONS",

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/celery/task/sets.py   socorro(Download)
from ..app import app_or_default
from ..datastructures import AttributeDict
from ..utils import cached_property, reprcall, uuid
from ..utils.compat import UserList
 
 
        with app.default_connection(connection, connect_timeout) as conn:
            setid = taskset_id or uuid()
            pub = publisher or self.Publisher(connection=conn)
            try:
    def apply(self, taskset_id=None):
        """Applies the taskset locally by blocking until all tasks return."""
        setid = taskset_id or uuid()
        return self.app.TaskSetResult(setid, self._sync_results(setid))
 

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/celery/app/amqp.py   socorro(Download)
from .. import routes as _routes
from .. import signals
from ..utils import cached_property, textindent, uuid
 
#: List of known options to a Kombu producers send method.
            _exchanges_declared.add(exchange)
 
        task_id = task_id or uuid()
        task_args = task_args or []
        task_kwargs = task_kwargs or {}

src/m/a/make.mozilla.org-HEAD/vendor-local/lib/python/celery/task/sets.py   make.mozilla.org(Download)
from ..app import app_or_default
from ..datastructures import AttributeDict
from ..utils import cached_property, reprcall, uuid
from ..utils.compat import UserList
 
 
        with app.default_connection(connection, connect_timeout) as conn:
            setid = taskset_id or uuid()
            pub = publisher or self.Publisher(connection=conn)
            try:
    def apply(self, taskset_id=None):
        """Applies the taskset locally by blocking until all tasks return."""
        setid = taskset_id or uuid()
        return self.app.TaskSetResult(setid, self._sync_results(setid))
 

src/o/h/oh-mainline-HEAD/vendor/packages/celery/celery/app/task/__init__.py   oh-mainline(Download)
from ...registry import tasks, _unpickle_task
from ...result import EagerResult
from ...utils import fun_takes_kwargs, mattrgetter, uuid
from ...utils.mail import ErrorMail
 
        args = args or []
        kwargs = kwargs or {}
        task_id = options.get("task_id") or uuid()
        retries = options.get("retries", 0)
        throw = self.app.either("CELERY_EAGER_PROPAGATES_EXCEPTIONS",

src/o/h/oh-mainline-HEAD/vendor/packages/celery/celery/task/sets.py   oh-mainline(Download)
from ..datastructures import AttributeDict
from ..exceptions import CDeprecationWarning
from ..utils import cached_property, reprcall, uuid
from ..utils.compat import UserList
 
 
        with app.default_connection(connection, connect_timeout) as conn:
            setid = taskset_id or uuid()
            pub = publisher or self.Publisher(connection=conn)
            try:
    def apply(self, taskset_id=None):
        """Applies the taskset locally by blocking until all tasks return."""
        setid = taskset_id or uuid()
        return self.app.TaskSetResult(setid, self._sync_results(setid))
 

  1 | 2 | 3 | 4 | 5 | 6  Next