
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Asynchronous client for api Shikimori written in Python 3.7 with asyncio and aiohttp.
Асинхронный клиент для взаимодействия с api Shikimori, написанный на Python 3.7 c использованием asyncio и aiohttp.
.env
файлеanimes
, comments
, users
)pip install shiki4py
from shiki4py import Shikimori
import asyncio
import logging
logging.basicConfig(level=logging.INFO)
async def main():
# Клиент без авторизации
async with Shikimori("APP_NAME") as api:
clubs = await api.users.clubs(555400)
print(clubs)
# Клиент с авторизацией
api = Shikimori("APP_NAME",
"CLIENT_ID",
"CLIENT_SECRET")
await api.open()
# Отправляем запросы
# await api.client.request(...)
# await api.users.favourites(...)
# await api.comments.show_one(...)
# ...
await api.close()
asyncio.run(main())
По умолчанию клиент сохраняет токены авторизации в файле .env, но при инициализации можно выбрать другой вариант хранения токенов, либо создать свой вариант унаследовав базовый класс и переопределив его методы.
from shiki4py import Shikimori
from shiki4py.store import BaseTokenStore
from shiki4py.store.memory import MemoryTokenStore
class MyTokenStore(BaseTokenStore):
...
api = Shikimori("APP_NAME",
"CLIENT_ID",
"CLIENT_SECRET",
# store=MyTokenStore()
store=MemoryTokenStore())
.env
файлFAQs
Asynchronous client for api Shikimori written in Python 3.7 with asyncio and aiohttp.
We found that shiki4py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.