Personal tools
Skip to content. | Skip to navigation
Terraform Ignition provider
Terraform null provider
Terraform Oracle Public Cloud provider
Terraform random provider
Terraform template provider
Terraform tls provider
Terraform vault provider
Anthropic Python API library The Anthropic Python library provides convenient access to the Anthropic REST API from any Python 3.8+ application. It includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx. Documentation The REST API documentation can be found on docs.anthropic.com. The full API of this library can be found in api.md. Installation pip install anthropic Usage The full API of this library can be found in api.md. import os from anthropic import Anthropic client = Anthropic( api_key=os.environ.get("ANTHROPIC_API_KEY"), ) message = client.messages.create( max_tokens=1024, messages=[ { "role": "user", "content": "Hello, Claude", } ], model="claude-3-opus-20240229", ) print(message.content) While you can provide an api_key keyword argument, we recommend using python-d
Python job scheduling for humans. Run Python functions (or any other callable) periodically using a friendly syntax. A simple to use API for scheduling jobs, made for humans. In-process scheduler for periodic jobs. No extra processes needed! Very lightweight and no external dependencies. Excellent test coverage. Tested on Python and 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 Usage $ pip install schedule import schedule import time def job(): print("I'm working...") schedule.every(10).seconds.do(job) schedule.every(10).minutes.do(job) schedule.every().hour.do(job) schedule.every().day.at("10:30").do(job) schedule.every(5).to(10).minutes.do(job) schedule.every().monday.do(job) schedule.every().wednesday.at("13:15").do(job) schedule.every().day.at("12:42", "Europe/Amsterdam").do(job) schedule.every().minute.at(":17").do(job) def job_with_argument(name): print(f"I am {name}") schedule.every(10).seconds.do(job_with_argument, name="Peter") while True: schedule.run_pending() time
Generic way to create meaningful and easy to use assertions for the Robot Framework libraries. This tools is spin off from Browser library project, where the Assertion Engine was developed as part of the of library. Supported Assertions Currently supported assertion operators are: Operator Alternative Operators Description Validate Equivalent == equal, equals, should be Checks if returned value is equal to expected value. value == expected != inequal, should not be Checks if returned value is not equal to expected value. value != expected > greater than Checks if returned value is greater than expected value. value > expected >= Checks if returned value is greater than or equal to expected value. value >= expected < less than Checks if returned value is less than expected value. value < expected <= Checks if returned value is less than or equal to expected value. value <= expected *= contains Checks if returned value contains expected value as substring. expected in valu