CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-apify-client

Apify API client for Python providing access to web scraping and automation platform resources

Pending

Quality

Pending

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

Overview
Eval results
Files

users.mddocs/

User Management

User account information, usage monitoring, and account limit management. Provides access to account details, billing information, and usage statistics.

Capabilities

User Operations

class UserClient:
    def get(self) -> dict | None:
        """Get user account information including profile and subscription details."""
    
    def monthly_usage(self) -> dict | None:
        """Get monthly usage summary including compute units and data transfer."""
    
    def limits(self) -> dict | None:
        """Get account limits summary including quotas and restrictions."""
    
    def update_limits(
        self, 
        *, 
        max_monthly_usage_usd: int | None = None, 
        data_retention_days: int | None = None
    ) -> None:
        """Update account limits.
        
        Args:
            max_monthly_usage_usd: Maximum monthly spending limit in USD
            data_retention_days: Data retention period in days
        """

class UserClientAsync:
    """Async version of UserClient with identical methods."""

Usage Examples

from apify_client import ApifyClient

client = ApifyClient('your-api-token')

# Get current user information
user = client.user().get()
print(f"User: {user['username']}")
print(f"Plan: {user['plan']}")

# Check monthly usage
usage = client.user().monthly_usage()
print(f"Compute units used: {usage['computeUnits']}")
print(f"Data transfer: {usage['dataTransfer']} MB")

# Get account limits
limits = client.user().limits()
print(f"Max actors: {limits['maxActors']}")
print(f"Max runs per month: {limits['maxRunsPerMonth']}")

# Update spending limit
client.user().update_limits(max_monthly_usage_usd=100)

Install with Tessl CLI

npx tessl i tessl/pypi-apify-client

docs

actors.md

builds.md

index.md

logging.md

request-queues.md

runs.md

schedules.md

storage.md

store.md

tasks.md

users.md

webhooks.md

tile.json