polar/kit/schemas.py | Schema, IDSchema, TimestampedSchema, EmptyStrToNone, SlugValidator, StripValidator, HttpsUrl, HttpUrlToStr, Int32, ClassName, MergeJSONSchema, SetSchemaReference, MultipleQueryFilter, *_ID_EXAMPLE |
polar/kit/http.py | get_safe_return_url (open redirect), get_ip_address, add_query_parameters, get_content_disposition, is_localhost, SSRF-safe crawling (SSRFBlockedError, UnsafeCrawlableUrl, UrlReachability) |
polar/kit/currency.py, money.py, math.py | get_currency_decimal_factor (zero-decimal currencies), get_minimum_currency_amount, get_maximum_currency_amount, format_currency, get_presentment_currency, get_cents_in_dollar_string, polar_round, non_negative_running_sum |
polar/kit/pagination.py | ListResource, Pagination, PaginationParams, count_subquery |
polar/kit/repository/base.py | get_base_statement, get_one_or_none, get_all, paginate, create, update, from_session, stream |
polar/kit/ (rest) | address, anonymization, crypto, csv, db, email (EmailStrDNS), encryption, html, json, jwk, jwt, locale, metadata, operator, routing, services, sorting, time_queries, trial, utils, visibility |
server/scripts/helper.py | run_batched_update |
polar/backoffice/forms.py | Form builder classes. Pattern: polar/backoffice/orders/endpoints.py |
clients/packages/orbit/src/components | Alert, Avatar, Box, Button, ButtonGroup, Checkbox, Grid, GridItem, InlineModal, Input, List, ListGroup, Modal, Pill, SegmentedControl, Select, Spinner, Status, Subnav, Switch, Tabs, Text, TextArea, Tooltip, Truncated, datatable |
| Libraries already in use | stdnum (tax IDs), pycountry (country names), slugify, email_validator |