Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9343874
tasks.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
492 B
Subscribers
None
tasks.py
View Options
# Copyright (C) 2018-2021 the Software Heritage developers
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from
celery
import
shared_task
from
.lister
import
PyPILister
@shared_task
(
name
=
f
"{__name__}.PyPIListerTask"
)
def
list_pypi
():
"Full listing of the PyPI registry"
lister
=
PyPILister
.
from_configfile
()
return
lister
.
run
()
.
dict
()
@shared_task
(
name
=
__name__
+
".ping"
)
def
_ping
():
return
"OK"
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Fri, Jul 4, 1:55 PM (2 d, 32 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3240930
Attached To
rDLS Listers
Event Timeline
Log In to Comment