Opportunity to join Pydantic! We are looking to hire someone to lead our frontend development.
We want to hire a senior engineer who is as experienced with TypeScript, React and UI/UX as we are with Python, Rust and API design.
No recruiters or agencies please, any contact from recruiters will be marked as spam.
| #!/usr/bin/env python3 | |
| import os | |
| from datetime import datetime, timezone | |
| from pathlib import Path | |
| from prompt_toolkit import PromptSession | |
| from prompt_toolkit.history import FileHistory | |
| import openai | |
| from rich.console import Console | |
| from rich.markdown import Markdown |
(Updated 2022-11-16 with suggestions from comments below, Twitter and Mastodon)
An incomplete list of people in the Python community to follow on Twitter and Mastodon.
With the risk that Twitter dies, I'd be sad to lose links to interesting people in the community, hence this list.
I would love you to comment below with links to people I've missed.
| """ | |
| License: MIT | |
| Copyright (c) 2022 Samuel Colvin. | |
| See https://twitter.com/adriangb01/status/1573708407479189505 | |
| ## Usage | |
| Once installed just add |
| """A quick benchmark comparing the performance of: | |
| - msgspec: https://github.com/jcrist/msgspec | |
| - pydantic V1: https://docs.pydantic.dev/1.10/ | |
| - pydantic V2: https://docs.pydantic.dev/dev-v2/ | |
| The benchmark is modified from the one in the msgspec repo here: | |
| https://github.com/jcrist/msgspec/blob/main/benchmarks/bench_validation.py | |
| I make no claims that it's illustrative of all use cases. I wrote this up |
| """ | |
| This benchmark is a modified version of the benchmark available at | |
| https://github.com/samuelcolvin/pydantic/tree/master/benchmarks to support | |
| benchmarking msgspec. | |
| The benchmark measures the time to JSON encode/decode `n` random objects | |
| matching a specific schema. It compares the time required for both | |
| serialization _and_ schema validation. | |
| """ |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
| deploy: | |
| needs: | |
| - test | |
| - lint | |
| if: "success() && startsWith(github.ref, 'refs/tags/')" | |
| runs-on: ubuntu-latest | |
| env: | |
| HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
| HEROKU_APP: <heroku app name> |
| #!/usr/bin/env python3 | |
| """ | |
| pull from and pushing to other people's pull requests | |
| (might require an auth key for private repos) | |
| """ | |
| import os | |
| import re | |
| import sys | |
| import requests |