Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A simple, yet powerful library for AnyPay API
With AnyPayAPI
you can easily create and retrieve payment and payout info, get informaition about your account's balance and commissions, etc.
Official docs can be found on the API's webpage
pip install anypay
Python 3.7+
httpx
pydantic
Asynchronous
Exception handling
Pydantic return model
LightWeight
import asyncio
from anypay import AnyPayAPI, AnyPayAPIError
api = AnyPayAPI(
'api_id', 'api_key', check=False, # you can disable credentials check
)
async def main():
try:
await api.get_balance()
except AnyPayAPIError as exc:
print(exc)
payments = await api.get_payments(project_id=1) # project_id can be provided in __init__
print(payments[0].id, payments[0].status)
bill = await api.create_payment(
pay_id=1234,
project_id=1,
method='qiwi',
email='test@mail.ru',
amount=100,
currency='RUB',
description='Test payment',
)
print(bill.id, bill.url)
bill = await api.create_bill( # easier way to create payment via SCI
pay_id=1234,
amount=100,
project_id=1,
project_secret='abcd',
)
print(bill.id, bill.url)
#get balance via property (sync)
print(api.balance)
asyncio.run(main())
Developed by Nikita Minaev (c) 2023
FAQs
Asynchronous AnyPay API wrapper
We found that anypay 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.