# Tested functions

Part of Harness tools by Baltor.

One upstream Python function at a time, copied with the code it needs and a test: validators, parsers and formatters your agent can import without adding a dependency.

## What to watch for

- A copied function keeps its upstream licence beside it.
- Validators answer true or false; parsers should also say why they refused.
- Pin the upstream commit so the copy can be compared later.

## Components

- [iban from validators input validation utilities](https://baltor.ai/components/iban-from-validators-input-validation-utilities-f425827a): iban from validators input validation utilities: Return whether or not given value is a valid IBAN code. Name `iban`, licence MIT, 6 files.
- [ipv4 from validators input validation utilities](https://baltor.ai/components/ipv4-from-validators-input-validation-utilities-d97e7035): ipv4 from validators input validation utilities: Returns whether a given value is a valid IPv4 address. Name `ipv4`, licence MIT, 6 files.
- [domain from validators input validation utilities](https://baltor.ai/components/domain-from-validators-input-validation-utilities-4ecfadd6): domain from validators input validation utilities: Return whether or not given value is a valid domain. Name `domain`, licence MIT, 6 files.
- [sha1 from validators input validation utilities](https://baltor.ai/components/sha1-from-validators-input-validation-utilities-09d7c209): sha1 from validators input validation utilities: Return whether or not given value is a valid SHA1 hash. Name `sha1`, licence MIT, 6 files.
- [append from luhn](https://baltor.ai/components/append-from-luhn-e2f75496): append from luhn: Append Luhn check digit to the end of the provided string. Name `append`, licence MIT, 6 files.
- [between from validators input validation utilities](https://baltor.ai/components/between-from-validators-input-validation-utilities-036c0944): between from validators input validation utilities: Validate that a number is between minimum and/or maximum value. Name `between`, licence MIT, 6 files.
- [timeparse from pytimeparse](https://baltor.ai/components/timeparse-from-pytimeparse-67977ac6): timeparse from pytimeparse: Parse a time expression, returning it as a number of seconds. Name `timeparse`, licence MIT, 6 files.
- [slugify from pydash](https://baltor.ai/components/slugify-from-pydash-c9de0f4a): slugify from pydash: Convert `text` into an ASCII slug which can be used safely in URLs. Name `slugify`, licence MIT, 6 files.
- [transliterate from inflection](https://baltor.ai/components/transliterate-from-inflection-ed6c0935): transliterate from inflection: Replace non-ASCII characters with an ASCII approximation. Name `transliterate`, licence MIT, 6 files.
- [parse_dict_header from Requests](https://baltor.ai/components/parse-dict-header-from-requests-bf90eacd): parse_dict_header from Requests: Parse lists of key, value pairs as described by RFC 2068 Section 2 and convert them into a python dict: One tested Python function, copied with the code it needs. Name `parse_dict_header`, licence MIT AND Apache-2.0, 7 files.
- [parse_response_start_line from Tornado httputil](https://baltor.ai/components/parse-response-start-line-from-tornado-httputil-ba2cb575): parse_response_start_line from Tornado httputil: Returns a (version, code, reason) tuple for an HTTP 1.x response line. Name `parse_response_start_line`, licence MIT AND Apache-2.0, 6 files.
- [metric from humanize](https://baltor.ai/components/metric-from-humanize-4e778db4): metric from humanize: Return a value with a metric SI unit-prefix appended. Name `metric`, licence MIT, 6 files.
- [grey_transmittance from ht](https://baltor.ai/components/grey-transmittance-from-ht-36d11f21): grey_transmittance from ht (heat transfer): Calculates the transmittance of a grey body, given the extinction coefficient of the material, its molar density, and the path length of the radiation. Name `grey_transmittance`, licence MIT, 6 files.
- [pl_true from aima-python](https://baltor.ai/components/pl-true-from-aima-python-811947fd): pl_true from aima-python (Artificial Intelligence: A Modern Approach): Return True if the propositional logic expression is true in the model, and False if it is false. Name `pl_true`, licence MIT, 6 files.

Your agent downloads these through Baltor with Pro, $49 a month: https://baltor.ai/get-started
