2020-11-17 10:54:18 +01:00
|
|
|
"""
|
2020-12-20 15:58:53 +01:00
|
|
|
Giambio: Asynchronous Python made easy (and friendly)
|
2020-11-26 16:57:20 +01:00
|
|
|
|
2020-11-17 10:54:18 +01:00
|
|
|
Copyright (C) 2020 nocturn9x
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
2022-09-01 13:18:15 +02:00
|
|
|
https:www.apache.org/licenses/LICENSE-2.0
|
2020-11-17 10:54:18 +01:00
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
"""
|
|
|
|
|
2020-12-20 15:58:53 +01:00
|
|
|
__author__ = "Nocturn9x"
|
|
|
|
__version__ = (0, 0, 1)
|
2020-11-17 10:54:18 +01:00
|
|
|
|
|
|
|
|
2022-02-04 20:19:48 +01:00
|
|
|
from giambio import exceptions, socket, context, core, task, io
|
2022-02-04 11:56:15 +01:00
|
|
|
from giambio.traps import sleep, current_task
|
2022-05-10 11:56:47 +02:00
|
|
|
from giambio.sync import Event, Queue, Channel, MemoryChannel, NetworkChannel, Lock
|
2022-02-04 11:56:15 +01:00
|
|
|
from giambio.runtime import run, clock, create_pool, get_event_loop, new_event_loop, with_timeout, skip_after
|
|
|
|
from giambio.util import debug
|
2020-11-17 10:54:18 +01:00
|
|
|
|
2020-12-20 15:58:53 +01:00
|
|
|
|
2020-11-17 10:54:18 +01:00
|
|
|
__all__ = [
|
|
|
|
"exceptions",
|
2020-12-20 15:58:53 +01:00
|
|
|
"core",
|
|
|
|
"context",
|
2020-11-17 10:54:18 +01:00
|
|
|
"sleep",
|
|
|
|
"Event",
|
2022-02-04 20:19:48 +01:00
|
|
|
"Queue",
|
2022-02-27 14:01:07 +01:00
|
|
|
"Channel",
|
|
|
|
"NetworkChannel",
|
2022-02-27 12:41:23 +01:00
|
|
|
"MemoryChannel",
|
2022-05-10 11:56:47 +02:00
|
|
|
"Lock",
|
2020-11-17 10:54:18 +01:00
|
|
|
"run",
|
|
|
|
"clock",
|
|
|
|
"create_pool",
|
2020-11-29 20:16:08 +01:00
|
|
|
"with_timeout",
|
2020-11-17 10:54:18 +01:00
|
|
|
"get_event_loop",
|
|
|
|
"current_task",
|
2020-11-18 12:13:46 +01:00
|
|
|
"new_event_loop",
|
2021-04-23 09:17:55 +02:00
|
|
|
"debug",
|
2021-10-09 14:35:41 +02:00
|
|
|
"skip_after",
|
2022-02-04 20:19:48 +01:00
|
|
|
"task",
|
|
|
|
"io",
|
2022-02-05 16:14:21 +01:00
|
|
|
"socket",
|
2020-11-17 10:54:18 +01:00
|
|
|
]
|