We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at pawamoy@pm.me. All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
Community Impact: A violation through a single incident or series of actions.
Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
Community Impact: A serious violation of community standards, including sustained inappropriate behavior.
Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
Consequence: A permanent ban from any sort of public interaction within the community.
This project uses duty to run tasks. A Makefile is also provided. The Makefile will try to run certain tasks on multiple Python versions. If for some reason you don't want to run the task on multiple Python versions, you run the task directly with pdm run duty TASK.
The Makefile detects if a virtual environment is activated, so make will work the same with the virtualenv activated or not.
Subject and body must be valid Markdown. Subject must have proper casing (uppercase for first letter if it makes sense), but no dot at the end, and no punctuation in general.
Scope and body are optional. Type can be:
build: About packaging, building wheels, etc.
chore: About packaging or repo/files management.
ci: About Continuous Integration.
deps: Dependencies update.
docs: About documentation.
feat: New feature.
fix: Bug fix.
perf: About performance.
refactor: Changes that are not features or bug fixes.
style: A change in code style/format.
tests: About tests.
If you write a body, please add trailers at the end (for example issues and PR references, or co-authors), without relying on GitHub's flavored Markdown:
These "trailers" must appear at the end of the body, without any blank lines between them. The trailer title can contain any character except colons :. We expect a full URI for each trailer, not just GitHub autolinks (for example, full GitHub URLs for commits and issues, not the hash or the #issue-number).
We do not enforce a line length on commit messages summary and body, but please avoid very long summaries, and very long lines in the body, unless they are part of code blocks that must not be wrapped.
Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API.
Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API.
griffe-pydantic Insiders is a private fork of griffe-pydantic, hosted as a private GitHub repository. Almost1all new features are developed as part of this fork, which means that they are immediately available to all eligible sponsors, as they are made collaborators of this repository.
Every feature is tied to a funding goal in monthly subscriptions. When a funding goal is hit, the features that are tied to it are merged back into griffe-pydantic and released for general availability, making them available to all users. Bugfixes are always released in tandem.
Sponsorships make this project sustainable, as they buy the maintainers of this project time – a very scarce resource – which is spent on the development of new features, bug fixing, stability improvement, issue triage and general support. The biggest bottleneck in Open Source is time.3
If you're unsure if you should sponsor this project, check out the list of completed funding goals to learn whether you're already using features that were developed with the help of sponsorships. You're most likely using at least a handful of them, thanks to our awesome sponsors!
The moment you become a sponsor, you'll get immediate access to 1 additional features that you can start using right away, and which are currently exclusively available to sponsors:
Thanks for your interest in sponsoring! In order to become an eligible sponsor with your GitHub account, visit pawamoy's sponsor profile, and complete a sponsorship of $10 a month or more. You can use your individual or organization GitHub account for sponsoring.
Important: If you're sponsoring @pawamoy through a GitHub organization, please send a short email to pawamoy@pm.me with the name of your organization and the GitHub account of the individual that should be added as a collaborator.4
If you sponsor publicly, you're automatically added here with a link to your profile and avatar to show your support for griffe-pydantic. Alternatively, if you wish to keep your sponsorship private, you'll be a silent +1. You can select visibility during checkout and change it afterwards.
The following section lists all funding goals. Each goal contains a list of features prefixed with a checkmark symbol, denoting whether a feature is already available or planned, but not yet implemented. When the funding goal is hit, the features are released for general availability.
This section lists all funding goals that were previously completed, which means that those features were part of Insiders, but are now generally available and can be used by all users.
We're building an open source project and want to allow outside collaborators to use griffe-pydantic locally without having access to Insiders. Is this still possible?
Yes. Insiders is compatible with griffe-pydantic. Almost all new features and configuration options are either backward-compatible or implemented behind feature flags. Most Insiders features enhance the overall experience, though while these features add value for the users of your project, they shouldn't be necessary for previewing when making changes to content.
We don't want to pay for sponsorship every month. Are there any other options?
Yes. You can sponsor on a yearly basis by switching your GitHub account to a yearly billing cycle. If for some reason you cannot do that, you could also create a dedicated GitHub account with a yearly billing cycle, which you only use for sponsoring (some sponsors already do that).
If you have any problems or further questions, please reach out to pawamoy@pm.me.
Are we allowed to use Insiders under the same terms and conditions as griffe-pydantic?
Yes. Whether you're an individual or a company, you may use griffe-pydantic Insiders precisely under the same terms as griffe-pydantic, which are given by the ISC License. However, we kindly ask you to respect our fair use policy:
Please don't distribute the source code of Insiders. You may freely use it for public, private or commercial projects, privately fork or mirror it, but please don't make the source code public, as it would counteract the sponsorware strategy.
If you cancel your subscription, you're automatically removed as a collaborator and will miss out on all future updates of Insiders. However, you may use the latest version that's available to you as long as you like. Just remember that GitHub deletes private forks.
In general, every new feature is first exclusively released to sponsors, but sometimes upstream dependencies enhance existing features that must be supported by griffe-pydantic. ↩
Note that $10 a month is the minimum amount to become eligible for Insiders. While GitHub Sponsors also allows to sponsor lower amounts or one-time amounts, those can't be granted access to Insiders due to technical reasons. Such contributions are still very much welcome as they help ensuring the project's sustainability. ↩
Making an Open Source project sustainable is exceptionally hard: maintainers burn out, projects are abandoned. That's not great and very unpredictable. The sponsorware model ensures that if you decide to use griffe-pydantic, you can be sure that bugs are fixed quickly and new features are added regularly. ↩
It's currently not possible to grant access to each member of an organization, as GitHub only allows for adding users. Thus, after sponsoring, please send an email to pawamoy@pm.me, stating which account should become a collaborator of the Insiders repository. We're working on a solution which will make access to organizations much simpler. To ensure that access is not tied to a particular individual GitHub account, create a bot account (i.e. a GitHub account that is not tied to a specific individual), and use this account for the sponsoring. After being added to the list of collaborators, the bot account can create a private fork of the private Insiders GitHub repository, and grant access to all members of the organizations. ↩
If you cancel your sponsorship, GitHub schedules a cancellation request which will become effective at the end of the billing cycle. This means that even though you cancel your sponsorship, you will keep your access to Insiders as long as your cancellation isn't effective. All charges are processed by GitHub through Stripe. As we don't receive any information regarding your payment, and GitHub doesn't offer refunds, sponsorships are non-refundable. ↩
\ No newline at end of file
diff --git a/insiders/installation/index.html b/insiders/installation/index.html
deleted file mode 100644
index 2ba3ca4..0000000
--- a/insiders/installation/index.html
+++ /dev/null
@@ -1,42 +0,0 @@
- Getting started with Insiders - griffe-pydantic
griffe-pydantic Insiders is a compatible drop-in replacement for griffe-pydantic, and can be installed similarly using pip or git. Note that in order to access the Insiders repository, you need to become an eligible sponsor of @pawamoy on GitHub.
The GH_TOKEN environment variable is a GitHub token. It can be obtained by creating a personal access token for your GitHub account. It will give you access to the Insiders repository, programmatically, from the command line or GitHub Actions workflows:
Self-hosting the Insiders package makes it possible to depend on griffe-pydantic normally, while transparently downloading and installing the Insiders version locally. It means that you can specify your dependencies normally, and your contributors without access to Insiders will get the public version, while you get the Insiders version on your machine.
Limitation
With this method, there is no way to force the installation of an Insiders version rather than a public version. If there is a public version that is more recent than your self-hosted Insiders version, the public version will take precedence. Remember to regularly update your self-hosted versions by uploading latest distributions.
You can build the distributions for Insiders yourself, by cloning the repository and using build to build the distributions, or you can download them from our GitHub Releases. You can upload these distributions to a private PyPI-like registry (Artifactory, Google Cloud, pypiserver, etc.) with Twine:
# download distributions in ~/dists, then upload with:
-twineupload--repository-urlhttps://your-private-index.com~/dists/*
-
You might also need to provide a username and password/token to authenticate against the registry. Please check Twine's documentation.
You can then configure pip (or other tools) to look for packages into your package index. For example, with pip:
Note that the URL might differ depending on whether your are uploading a package (with Twine) or installing a package (with pip), and depending on the registry you are using (Artifactory, Google Cloud, etc.). Please check the documentation of your registry to learn how to configure your environment.
We kindly ask that you do not upload the distributions to public registries, as it is against our Terms of use.
Full example with pypiserver
In this example we use pypiserver to serve a local PyPI index.
pipinstall--userpypiserver
-# or pipx install pypiserver
-
-# create a packages directory
-mkdir-p~/.local/pypiserver/packages
-
-# run the pypi server without authentication
-pypi-serverrun-p8080-a.-P.~/.local/pypiserver/packages&
-
We can configure the credentials to access the server in ~/.pypirc:
We then clone the Insiders repository, build distributions and upload them to our local server:
# clone the repository
-gitclonegit@github.com:pawamoy-insiders/griffe-pydantic
-cdgriffe-pydantic
-
-# install build
-pipinstall--userbuild
-# or pipx install build
-
-# checkout latest tag
-gitcheckout$(gitdescribe--tags--abbrev=0)
-
-# build the distributions
-pyproject-build
-
-# upload them to our local server
-twineupload-rlocaldist/*--skip-existing
-
Finally, we configure pip, and for example PDM, to use our local index to find packages:
Now when running pip install griffe-pydantic, or resolving dependencies with PDM, both tools will look into our local index and find the Insiders version. Remember to update your local index regularly!
When upgrading Insiders, you should always check the version of griffe-pydantic which makes up the first part of the version qualifier. For example, a version like 8.x.x.4.x.x means that Insiders 4.x.x is currently based on 8.x.x.
If the major version increased, it's a good idea to consult the changelog and go through the steps to ensure your configuration is up to date and all necessary changes have been made.
ISC License
-
-Copyright (c) 2023, Timothée Mazzucotelli
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
\ No newline at end of file
diff --git a/objects.inv b/objects.inv
deleted file mode 100644
index 7882e5c..0000000
--- a/objects.inv
+++ /dev/null
@@ -1,8 +0,0 @@
-# Sphinx inventory version 2
-# Project: griffe-pydantic
-# Version: 0.0.0
-# The remainder of this file is compressed using zlib.
-xŒN0J͌60[^
-v1/i we>랤bYTQj9*Wwu^?:
\ No newline at end of file
diff --git a/plugins/social/layouts/default.yml b/plugins/social/layouts/default.yml
deleted file mode 100644
index d67e318..0000000
--- a/plugins/social/layouts/default.yml
+++ /dev/null
@@ -1,221 +0,0 @@
-# Copyright (c) 2016-2023 Martin Donath
-
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-# IN THE SOFTWARE.
-
-# -----------------------------------------------------------------------------
-# Configuration
-# -----------------------------------------------------------------------------
-
-# Definitions
-definitions:
-
- # Background image
- - &background_image >-
- {{ layout.background_image or "" }}
-
- # Background color (default: indigo)
- - &background_color >-
- {%- if layout.background_color -%}
- {{ layout.background_color }}
- {%- else -%}
- {%- set palette = config.theme.palette or {} -%}
- {%- if not palette is mapping -%}
- {%- set palette = palette | first -%}
- {%- endif -%}
- {%- set primary = palette.get("primary", "indigo") -%}
- {%- set primary = primary.replace(" ", "-") -%}
- {{ {
- "red": "#ef5552",
- "pink": "#e92063",
- "purple": "#ab47bd",
- "deep-purple": "#7e56c2",
- "indigo": "#4051b5",
- "blue": "#2094f3",
- "light-blue": "#02a6f2",
- "cyan": "#00bdd6",
- "teal": "#009485",
- "green": "#4cae4f",
- "light-green": "#8bc34b",
- "lime": "#cbdc38",
- "yellow": "#ffec3d",
- "amber": "#ffc105",
- "orange": "#ffa724",
- "deep-orange": "#ff6e42",
- "brown": "#795649",
- "grey": "#757575",
- "blue-grey": "#546d78",
- "black": "#000000",
- "white": "#ffffff"
- }[primary] or "#4051b5" }}
- {%- endif -%}
-
- # Text color (default: white)
- - &color >-
- {%- if layout.color -%}
- {{ layout.color }}
- {%- else -%}
- {%- set palette = config.theme.palette or {} -%}
- {%- if not palette is mapping -%}
- {%- set palette = palette | first -%}
- {%- endif -%}
- {%- set primary = palette.get("primary", "indigo") -%}
- {%- set primary = primary.replace(" ", "-") -%}
- {{ {
- "red": "#ffffff",
- "pink": "#ffffff",
- "purple": "#ffffff",
- "deep-purple": "#ffffff",
- "indigo": "#ffffff",
- "blue": "#ffffff",
- "light-blue": "#ffffff",
- "cyan": "#ffffff",
- "teal": "#ffffff",
- "green": "#ffffff",
- "light-green": "#ffffff",
- "lime": "#000000",
- "yellow": "#000000",
- "amber": "#000000",
- "orange": "#000000",
- "deep-orange": "#ffffff",
- "brown": "#ffffff",
- "grey": "#ffffff",
- "blue-grey": "#ffffff",
- "black": "#ffffff",
- "white": "#000000"
- }[primary] or "#ffffff" }}
- {%- endif -%}
-
- # Font family (default: Roboto)
- - &font_family >-
- {%- if layout.font_family -%}
- {{ layout.font_family }}
- {%- elif config.theme.font != false -%}
- {{ config.theme.font.get("text", "Roboto") }}
- {%- else -%}
- Roboto
- {%- endif -%}
-
- # Site name
- - &site_name >-
- {{ config.site_name }}
-
- # Page title
- - &page_title >-
- {{ page.meta.get("title", page.title) }}
-
- # Page title with site name
- - &page_title_with_site_name >-
- {%- if not page.is_homepage -%}
- {{ page.meta.get("title", page.title) }} - {{ config.site_name }}
- {%- else -%}
- {{ page.meta.get("title", page.title) }}
- {%- endif -%}
-
- # Page description
- - &page_description >-
- {{ page.meta.get("description", config.site_description) or "" }}
-
- # Logo
- - &logo >-
- {%- if config.theme.logo -%}
- {{ config.docs_dir }}/{{ config.theme.logo }}
- {%- endif -%}
-
- # Logo (icon)
- - &logo_icon >-
- {{ config.theme.icon.logo or "" }}
-
-# Meta tags
-tags:
-
- # Open Graph
- og:type: website
- og:title: *page_title_with_site_name
- og:description: *page_description
- og:image: "{{ image.url }}"
- og:image:type: "{{ image.type }}"
- og:image:width: "{{ image.width }}"
- og:image:height: "{{ image.height }}"
- og:url: "{{ page.canonical_url }}"
-
- # Twitter
- twitter:card: summary_large_image
- twitter.title: *page_title_with_site_name
- twitter:description: *page_description
- twitter:image: "{{ image.url }}"
-
-# -----------------------------------------------------------------------------
-# Specification
-# -----------------------------------------------------------------------------
-
-# Card size and layers
-size: { width: 1200, height: 630 }
-layers:
-
- # Background
- - background:
- image: *background_image
- color: *background_color
-
- # Logo
- - size: { width: 144, height: 144 }
- offset: { x: 992, y: 64 }
- background:
- image: *logo
- icon:
- value: *logo_icon
- color: *color
-
- # Site name
- - size: { width: 832, height: 42 }
- offset: { x: 64, y: 64 }
- typography:
- content: *site_name
- color: *color
- font:
- family: *font_family
- style: Bold
-
- # Page title
- - size: { width: 832, height: 310 }
- offset: { x: 62, y: 160 }
- typography:
- content: *page_title
- align: start
- color: *color
- line:
- amount: 3
- height: 1.25
- font:
- family: *font_family
- style: Bold
-
- # Page description
- - size: { width: 832, height: 64 }
- offset: { x: 64, y: 512 }
- typography:
- content: *page_description
- align: start
- color: *color
- line:
- amount: 2
- height: 1.5
- font:
- family: *font_family
- style: Regular
diff --git a/plugins/social/layouts/default/accent.yml b/plugins/social/layouts/default/accent.yml
deleted file mode 100644
index 99684c7..0000000
--- a/plugins/social/layouts/default/accent.yml
+++ /dev/null
@@ -1,211 +0,0 @@
-# Copyright (c) 2016-2023 Martin Donath
-
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-# IN THE SOFTWARE.
-
-# -----------------------------------------------------------------------------
-# Configuration
-# -----------------------------------------------------------------------------
-
-# Definitions
-definitions:
-
- # Background image
- - &background_image >-
- {{ layout.background_image or "" }}
-
- # Background color (default: indigo)
- - &background_color >-
- {%- if layout.background_color -%}
- {{ layout.background_color }}
- {%- else -%}
- {%- set palette = config.theme.palette or {} -%}
- {%- if not palette is mapping -%}
- {%- set palette = palette | first -%}
- {%- endif -%}
- {%- set accent = palette.get("accent", "indigo") -%}
- {%- set accent = accent.replace(" ", "-") -%}
- {{ {
- "red": "#ff1a47",
- "pink": "#f50056",
- "purple": "#df41fb",
- "deep-purple": "#7c4dff",
- "indigo": "#526cfe",
- "blue": "#4287ff",
- "light-blue": "#0091eb",
- "cyan": "#00bad6",
- "teal": "#00bda4",
- "green": "#00c753",
- "light-green": "#63de17",
- "lime": "#b0eb00",
- "yellow": "#ffd500",
- "amber": "#ffaa00",
- "orange": "#ff9100",
- "deep-orange": "#ff6e42"
- }[accent] or "#4051b5" }}
- {%- endif -%}
-
- # Text color (default: white)
- - &color >-
- {%- if layout.color -%}
- {{ layout.color }}
- {%- else -%}
- {%- set palette = config.theme.palette or {} -%}
- {%- if not palette is mapping -%}
- {%- set palette = palette | first -%}
- {%- endif -%}
- {%- set accent = palette.get("accent", "indigo") -%}
- {%- set accent = accent.replace(" ", "-") -%}
- {{ {
- "red": "#ffffff",
- "pink": "#ffffff",
- "purple": "#ffffff",
- "deep-purple": "#ffffff",
- "indigo": "#ffffff",
- "blue": "#ffffff",
- "light-blue": "#ffffff",
- "cyan": "#ffffff",
- "teal": "#ffffff",
- "green": "#ffffff",
- "light-green": "#ffffff",
- "lime": "#000000",
- "yellow": "#000000",
- "amber": "#000000",
- "orange": "#000000",
- "deep-orange": "#ffffff"
- }[accent] or "#ffffff" }}
- {%- endif -%}
-
- # Font family (default: Roboto)
- - &font_family >-
- {%- if layout.font_family -%}
- {{ layout.font_family }}
- {%- elif config.theme.font != false -%}
- {{ config.theme.font.get("text", "Roboto") }}
- {%- else -%}
- Roboto
- {%- endif -%}
-
- # Site name
- - &site_name >-
- {{ config.site_name }}
-
- # Page title
- - &page_title >-
- {{ page.meta.get("title", page.title) }}
-
- # Page title with site name
- - &page_title_with_site_name >-
- {%- if not page.is_homepage -%}
- {{ page.meta.get("title", page.title) }} - {{ config.site_name }}
- {%- else -%}
- {{ page.meta.get("title", page.title) }}
- {%- endif -%}
-
- # Page description
- - &page_description >-
- {{ page.meta.get("description", config.site_description) or "" }}
-
- # Logo
- - &logo >-
- {%- if config.theme.logo -%}
- {{ config.docs_dir }}/{{ config.theme.logo }}
- {%- endif -%}
-
- # Logo (icon)
- - &logo_icon >-
- {{ config.theme.icon.logo or "" }}
-
-# Meta tags
-tags:
-
- # Open Graph
- og:type: website
- og:title: *page_title_with_site_name
- og:description: *page_description
- og:image: "{{ image.url }}"
- og:image:type: "{{ image.type }}"
- og:image:width: "{{ image.width }}"
- og:image:height: "{{ image.height }}"
- og:url: "{{ page.canonical_url }}"
-
- # Twitter
- twitter:card: summary_large_image
- twitter.title: *page_title_with_site_name
- twitter:description: *page_description
- twitter:image: "{{ image.url }}"
-
-# -----------------------------------------------------------------------------
-# Specification
-# -----------------------------------------------------------------------------
-
-# Card size and layers
-size: { width: 1200, height: 630 }
-layers:
-
- # Background
- - background:
- image: *background_image
- color: *background_color
-
- # Logo
- - size: { width: 144, height: 144 }
- offset: { x: 992, y: 64 }
- background:
- image: *logo
- icon:
- value: *logo_icon
- color: *color
-
- # Site name
- - size: { width: 832, height: 42 }
- offset: { x: 64, y: 64 }
- typography:
- content: *site_name
- color: *color
- font:
- family: *font_family
- style: Bold
-
- # Page title
- - size: { width: 832, height: 310 }
- offset: { x: 62, y: 160 }
- typography:
- content: *page_title
- align: start
- color: *color
- line:
- amount: 3
- height: 1.25
- font:
- family: *font_family
- style: Bold
-
- # Page description
- - size: { width: 832, height: 64 }
- offset: { x: 64, y: 512 }
- typography:
- content: *page_description
- align: start
- color: *color
- line:
- amount: 2
- height: 1.5
- font:
- family: *font_family
- style: Regular
diff --git a/plugins/social/layouts/default/invert.yml b/plugins/social/layouts/default/invert.yml
deleted file mode 100644
index eddc02e..0000000
--- a/plugins/social/layouts/default/invert.yml
+++ /dev/null
@@ -1,221 +0,0 @@
-# Copyright (c) 2016-2023 Martin Donath
-
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-# IN THE SOFTWARE.
-
-# -----------------------------------------------------------------------------
-# Configuration
-# -----------------------------------------------------------------------------
-
-# Definitions
-definitions:
-
- # Background image
- - &background_image >-
- {{ layout.background_image or "" }}
-
- # Background color (default: white)
- - &background_color >-
- {%- if layout.background_color -%}
- {{ layout.background_color }}
- {%- else -%}
- {%- set palette = config.theme.palette or {} -%}
- {%- if not palette is mapping -%}
- {%- set palette = palette | first -%}
- {%- endif -%}
- {%- set primary = palette.get("primary", "indigo") -%}
- {%- set primary = primary.replace(" ", "-") -%}
- {{ {
- "red": "#ffffff",
- "pink": "#ffffff",
- "purple": "#ffffff",
- "deep-purple": "#ffffff",
- "indigo": "#ffffff",
- "blue": "#ffffff",
- "light-blue": "#ffffff",
- "cyan": "#ffffff",
- "teal": "#ffffff",
- "green": "#ffffff",
- "light-green": "#ffffff",
- "lime": "#000000",
- "yellow": "#000000",
- "amber": "#000000",
- "orange": "#000000",
- "deep-orange": "#ffffff",
- "brown": "#ffffff",
- "grey": "#ffffff",
- "blue-grey": "#ffffff",
- "black": "#ffffff",
- "white": "#000000"
- }[primary] or "#ffffff" }}
- {%- endif -%}
-
- # Text color (default: indigo)
- - &color >-
- {%- if layout.color -%}
- {{ layout.color }}
- {%- else -%}
- {%- set palette = config.theme.palette or {} -%}
- {%- if not palette is mapping -%}
- {%- set palette = palette | first -%}
- {%- endif -%}
- {%- set primary = palette.get("primary", "indigo") -%}
- {%- set primary = primary.replace(" ", "-") -%}
- {{ {
- "red": "#ef5552",
- "pink": "#e92063",
- "purple": "#ab47bd",
- "deep-purple": "#7e56c2",
- "indigo": "#4051b5",
- "blue": "#2094f3",
- "light-blue": "#02a6f2",
- "cyan": "#00bdd6",
- "teal": "#009485",
- "green": "#4cae4f",
- "light-green": "#8bc34b",
- "lime": "#cbdc38",
- "yellow": "#ffec3d",
- "amber": "#ffc105",
- "orange": "#ffa724",
- "deep-orange": "#ff6e42",
- "brown": "#795649",
- "grey": "#757575",
- "blue-grey": "#546d78",
- "black": "#000000",
- "white": "#ffffff"
- }[primary] or "#4051b5" }}
- {%- endif -%}
-
- # Font family (default: Roboto)
- - &font_family >-
- {%- if layout.font_family -%}
- {{ layout.font_family }}
- {%- elif config.theme.font != false -%}
- {{ config.theme.font.get("text", "Roboto") }}
- {%- else -%}
- Roboto
- {%- endif -%}
-
- # Site name
- - &site_name >-
- {{ config.site_name }}
-
- # Page title
- - &page_title >-
- {{ page.meta.get("title", page.title) }}
-
- # Page title with site name
- - &page_title_with_site_name >-
- {%- if not page.is_homepage -%}
- {{ page.meta.get("title", page.title) }} - {{ config.site_name }}
- {%- else -%}
- {{ page.meta.get("title", page.title) }}
- {%- endif -%}
-
- # Page description
- - &page_description >-
- {{ page.meta.get("description", config.site_description) or "" }}
-
- # Logo
- - &logo >-
- {%- if config.theme.logo -%}
- {{ config.docs_dir }}/{{ config.theme.logo }}
- {%- endif -%}
-
- # Logo (icon)
- - &logo_icon >-
- {{ config.theme.icon.logo or "" }}
-
-# Meta tags
-tags:
-
- # Open Graph
- og:type: website
- og:title: *page_title_with_site_name
- og:description: *page_description
- og:image: "{{ image.url }}"
- og:image:type: "{{ image.type }}"
- og:image:width: "{{ image.width }}"
- og:image:height: "{{ image.height }}"
- og:url: "{{ page.canonical_url }}"
-
- # Twitter
- twitter:card: summary_large_image
- twitter.title: *page_title_with_site_name
- twitter:description: *page_description
- twitter:image: "{{ image.url }}"
-
-# -----------------------------------------------------------------------------
-# Specification
-# -----------------------------------------------------------------------------
-
-# Card size and layers
-size: { width: 1200, height: 630 }
-layers:
-
- # Background
- - background:
- image: *background_image
- color: *background_color
-
- # Logo
- - size: { width: 144, height: 144 }
- offset: { x: 992, y: 64 }
- background:
- image: *logo
- icon:
- value: *logo_icon
- color: *color
-
- # Site name
- - size: { width: 832, height: 42 }
- offset: { x: 64, y: 64 }
- typography:
- content: *site_name
- color: *color
- font:
- family: *font_family
- style: Bold
-
- # Page title
- - size: { width: 832, height: 310 }
- offset: { x: 62, y: 160 }
- typography:
- content: *page_title
- align: start
- color: *color
- line:
- amount: 3
- height: 1.25
- font:
- family: *font_family
- style: Bold
-
- # Page description
- - size: { width: 832, height: 64 }
- offset: { x: 64, y: 512 }
- typography:
- content: *page_description
- align: start
- color: *color
- line:
- amount: 2
- height: 1.5
- font:
- family: *font_family
- style: Regular
diff --git a/plugins/social/layouts/default/variant.yml b/plugins/social/layouts/default/variant.yml
deleted file mode 100644
index 158d2e8..0000000
--- a/plugins/social/layouts/default/variant.yml
+++ /dev/null
@@ -1,232 +0,0 @@
-# Copyright (c) 2016-2023 Martin Donath
-
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-# IN THE SOFTWARE.
-
-# -----------------------------------------------------------------------------
-# Configuration
-# -----------------------------------------------------------------------------
-
-# Definitions
-definitions:
-
- # Background image
- - &background_image >-
- {{ layout.background_image or "" }}
-
- # Background color (default: indigo)
- - &background_color >-
- {%- if layout.background_color -%}
- {{ layout.background_color }}
- {%- else -%}
- {%- set palette = config.theme.palette or {} -%}
- {%- if not palette is mapping -%}
- {%- set palette = palette | first -%}
- {%- endif -%}
- {%- set primary = palette.get("primary", "indigo") -%}
- {%- set primary = primary.replace(" ", "-") -%}
- {{ {
- "red": "#ef5552",
- "pink": "#e92063",
- "purple": "#ab47bd",
- "deep-purple": "#7e56c2",
- "indigo": "#4051b5",
- "blue": "#2094f3",
- "light-blue": "#02a6f2",
- "cyan": "#00bdd6",
- "teal": "#009485",
- "green": "#4cae4f",
- "light-green": "#8bc34b",
- "lime": "#cbdc38",
- "yellow": "#ffec3d",
- "amber": "#ffc105",
- "orange": "#ffa724",
- "deep-orange": "#ff6e42",
- "brown": "#795649",
- "grey": "#757575",
- "blue-grey": "#546d78",
- "black": "#000000",
- "white": "#ffffff"
- }[primary] or "#4051b5" }}
- {%- endif -%}
-
- # Text color (default: white)
- - &color >-
- {%- if layout.color -%}
- {{ layout.color }}
- {%- else -%}
- {%- set palette = config.theme.palette or {} -%}
- {%- if not palette is mapping -%}
- {%- set palette = palette | first -%}
- {%- endif -%}
- {%- set primary = palette.get("primary", "indigo") -%}
- {%- set primary = primary.replace(" ", "-") -%}
- {{ {
- "red": "#ffffff",
- "pink": "#ffffff",
- "purple": "#ffffff",
- "deep-purple": "#ffffff",
- "indigo": "#ffffff",
- "blue": "#ffffff",
- "light-blue": "#ffffff",
- "cyan": "#ffffff",
- "teal": "#ffffff",
- "green": "#ffffff",
- "light-green": "#ffffff",
- "lime": "#000000",
- "yellow": "#000000",
- "amber": "#000000",
- "orange": "#000000",
- "deep-orange": "#ffffff",
- "brown": "#ffffff",
- "grey": "#ffffff",
- "blue-grey": "#ffffff",
- "black": "#ffffff",
- "white": "#000000"
- }[primary] or "#ffffff" }}
- {%- endif -%}
-
- # Font family (default: Roboto)
- - &font_family >-
- {%- if layout.font_family -%}
- {{ layout.font_family }}
- {%- elif config.theme.font != false -%}
- {{ config.theme.font.get("text", "Roboto") }}
- {%- else -%}
- Roboto
- {%- endif -%}
-
- # Site name
- - &site_name >-
- {{ config.site_name }}
-
- # Page title
- - &page_title >-
- {{ page.meta.get("title", page.title) }}
-
- # Page title with site name
- - &page_title_with_site_name >-
- {%- if not page.is_homepage -%}
- {{ page.meta.get("title", page.title) }} - {{ config.site_name }}
- {%- else -%}
- {{ page.meta.get("title", page.title) }}
- {%- endif -%}
-
- # Page description
- - &page_description >-
- {{ page.meta.get("description", config.site_description) or "" }}
-
- # Page icon
- - &page_icon >-
- {{ page.meta.icon or "" }}
-
- # Logo
- - &logo >-
- {%- if config.theme.logo -%}
- {{ config.docs_dir }}/{{ config.theme.logo }}
- {%- endif -%}
-
- # Logo (icon)
- - &logo_icon >-
- {{ config.theme.icon.logo or "" }}
-
-# Meta tags
-tags:
-
- # Open Graph
- og:type: website
- og:title: *page_title_with_site_name
- og:description: *page_description
- og:image: "{{ image.url }}"
- og:image:type: "{{ image.type }}"
- og:image:width: "{{ image.width }}"
- og:image:height: "{{ image.height }}"
- og:url: "{{ page.canonical_url }}"
-
- # Twitter
- twitter:card: summary_large_image
- twitter.title: *page_title_with_site_name
- twitter:description: *page_description
- twitter:image: "{{ image.url }}"
-
-# -----------------------------------------------------------------------------
-# Specification
-# -----------------------------------------------------------------------------
-
-# Card size and layers
-size: { width: 1200, height: 630 }
-layers:
-
- # Background
- - background:
- image: *background_image
- color: *background_color
-
- # Page icon
- - size: { width: 630, height: 630 }
- offset: { x: 800, y: 0 }
- icon:
- value: *page_icon
- color: "#00000033"
-
- # Logo
- - size: { width: 64, height: 64 }
- offset: { x: 64, y: 64 }
- background:
- image: *logo
- icon:
- value: *logo_icon
- color: *color
-
- # Site name
- - size: { width: 768, height: 42 }
- offset: { x: 160, y: 74 }
- typography:
- content: *site_name
- color: *color
- font:
- family: *font_family
- style: Bold
-
- # Page title
- - size: { width: 864, height: 256 }
- offset: { x: 62, y: 192 }
- typography:
- content: *page_title
- align: start
- color: *color
- line:
- amount: 3
- height: 1.25
- font:
- family: *font_family
- style: Bold
-
- # Page description
- - size: { width: 864, height: 64 }
- offset: { x: 64, y: 512 }
- typography:
- content: *page_description
- align: start
- color: *color
- line:
- amount: 2
- height: 1.5
- font:
- family: *font_family
- style: Regular
diff --git a/reference/SUMMARY.txt b/reference/SUMMARY.txt
deleted file mode 100644
index 0f2cb35..0000000
--- a/reference/SUMMARY.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-* [ griffe_pydantic](griffe_pydantic/index.md)
- * [ extension](griffe_pydantic/extension.md)
diff --git a/reference/griffe_pydantic/extension/index.html b/reference/griffe_pydantic/extension/index.html
deleted file mode 100644
index c15887e..0000000
--- a/reference/griffe_pydantic/extension/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
- extension - griffe-pydantic
\ No newline at end of file
diff --git a/reference/griffe_pydantic/index.html b/reference/griffe_pydantic/index.html
deleted file mode 100644
index f7a03f6..0000000
--- a/reference/griffe_pydantic/index.html
+++ /dev/null
@@ -1,15 +0,0 @@
- Index - griffe-pydantic
from pydantic import field_validator, ConfigDict, BaseModel, Field\n\n\nclass ExampleModel(BaseModel):\n\"\"\"An example model.\"\"\"\n\n model_config = ConfigDict(frozen=False)\n\n field_without_default: str\n\"\"\"Shows the *[Required]* marker in the signature.\"\"\"\n\n field_plain_with_validator: int = 100\n\"\"\"Show standard field with type annotation.\"\"\"\n\n field_with_validator_and_alias: str = Field(\"FooBar\", alias=\"BarFoo\", validation_alias=\"BarFoo\")\n\"\"\"Shows corresponding validator with link/anchor.\"\"\"\n\n field_with_constraints_and_description: int = Field(\n default=5, ge=0, le=100, description=\"Shows constraints within doc string.\"\n )\n\n @field_validator(\"field_with_validator_and_alias\", \"field_without_default\")\n @classmethod\n def check_max_length_ten(cls, v) -> str:\n\"\"\"Show corresponding field with link/anchor.\"\"\"\n if len(v) >= 10:\n raise ValueError(\"No more than 10 characters allowed\")\n return v\n
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
"},{"location":"code_of_conduct/","title":"Contributor Covenant Code of Conduct","text":""},{"location":"code_of_conduct/#our-pledge","title":"Our Pledge","text":"
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at pawamoy@pm.me. All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
Community Impact: A violation through a single incident or series of actions.
Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
Community Impact: A serious violation of community standards, including sustained inappropriate behavior.
Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
Consequence: A permanent ban from any sort of public interaction within the community.
This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
Community Impact Guidelines were inspired by Mozilla's code of conduct enforcement ladder.
For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
This project uses duty to run tasks. A Makefile is also provided. The Makefile will try to run certain tasks on multiple Python versions. If for some reason you don't want to run the task on multiple Python versions, you run the task directly with pdm run duty TASK.
The Makefile detects if a virtual environment is activated, so make will work the same with the virtualenv activated or not.
If you work in VSCode, see examples of tasks and run configurations.
Commit messages must follow our convention based on the Angular style or the Karma convention:
<type>[(scope)]: Subject\n\n[Body]\n
Subject and body must be valid Markdown. Subject must have proper casing (uppercase for first letter if it makes sense), but no dot at the end, and no punctuation in general.
Scope and body are optional. Type can be:
build: About packaging, building wheels, etc.
chore: About packaging or repo/files management.
ci: About Continuous Integration.
deps: Dependencies update.
docs: About documentation.
feat: New feature.
fix: Bug fix.
perf: About performance.
refactor: Changes that are not features or bug fixes.
style: A change in code style/format.
tests: About tests.
If you write a body, please add trailers at the end (for example issues and PR references, or co-authors), without relying on GitHub's flavored Markdown:
Body.\n\nIssue #10: https://github.com/namespace/project/issues/10\nRelated to PR namespace/other-project#15: https://github.com/namespace/other-project/pull/15\n
These \"trailers\" must appear at the end of the body, without any blank lines between them. The trailer title can contain any character except colons :. We expect a full URI for each trailer, not just GitHub autolinks (for example, full GitHub URLs for commits and issues, not the hash or the #issue-number).
We do not enforce a line length on commit messages summary and body, but please avoid very long summaries, and very long lines in the body, unless they are part of code blocks that must not be wrapped.
These projects were used to build griffe-pydantic. Thank you!
python | pdm | copier-pdm
"},{"location":"credits/#exec-2--runtime-dependencies","title":"Runtime dependencies","text":"Project Summary Version (accepted) Version (last resolved) License colorama Cross-platform colored terminal text. >=0.40.4.6 BSD License griffe Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API. >=0.32.00.32.0 ISC"},{"location":"credits/#exec-2--development-dependencies","title":"Development dependencies","text":"Project Summary Version (accepted) Version (last resolved) License annotated-types Reusable constraint types to use with typing.Annotated >=0.4.00.5.0 MIT License ansimarkup Produce colored terminal text with an xml-like markup ~=1.41.5.0 Revised BSD License babel Internationalization utilities >=2.10.32.12.1 BSD beautifulsoup4 Screen-scraping library 4.12.2 MIT License black The uncompromising code formatter. >=23.123.7.0 MIT blacken-docs Run Black on Python code blocks in documentation files. >=1.131.15.0 MIT certifi Python package for providing Mozilla's CA Bundle. >=2017.4.172023.5.7 MPL-2.0 charset-normalizer The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet. <4,>=23.2.0 MIT click Composable command line interface toolkit >=8.0.08.1.4 BSD-3-Clause colorama Cross-platform colored terminal text. ; platform_system == \"Windows\"0.4.6 BSD License coverage Code coverage measurement for Python [toml]>=5.2.17.2.7 Apache-2.0 csscompressor A python port of YUI CSS Compressor >=0.9.50.9.5 BSD cssselect cssselect parses CSS3 Selectors and translates them to XPath 1.0 >=1.2.01.2.0 BSD dparse A parser for Python dependency files >=0.6.20.6.3 MIT license duty A simple task runner. >=0.101.0.0 ISC exceptiongroup Backport of PEP 654 (exception groups) >=1.0.0rc8; python_version < \"3.11\"1.1.2 ? execnet execnet: rapid multi-Python deployment >=1.12.0.2 MIT License failprint Run a command, print its output only if it fails. >=0.110.11.1 ISC ghp-import Copy your docs directly to the gh-pages branch. >=1.02.1.0 Apache Software License git-changelog Automatic Changelog generator using Jinja2 templates. >=1.02.0.0 ISC gitdb Git Object Database <5,>=4.0.14.0.10 BSD License gitpython GitPython is a Python library used to interact with Git repositories 3.1.32 BSD griffe Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API. >=0.240.32.0 ISC htmlmin2 An HTML Minifier >=0.1.130.1.13 BSD idna Internationalized Domain Names in Applications (IDNA) <4,>=2.53.4 BSD License importlib-metadata Read metadata from Python packages >=4.3; python_version < \"3.10\"6.8.0 ? iniconfig brain-dead simple config-ini parsing 2.0.0 MIT License jinja2 A very fast and expressive template engine. <4,>=2.113.1.2 BSD-3-Clause jsmin JavaScript minifier. >=3.0.13.0.1 MIT License lxml Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API. >=4.64.9.3 BSD-3-Clause markdown Python implementation of Markdown. <4.0.0,>=3.3.33.3.7 BSD License markdown-callouts Markdown extension: a classier syntax for admonitions >=0.20.3.0 MIT markdown-exec Utilities to execute code blocks in Markdown files. >=0.51.6.0.1.0.0 ISC markdown2 A fast and complete Python implementation of Markdown >=2.4.32.4.9 MIT markupsafe Safely add untrusted strings to HTML/XML markup. >=2.02.1.3 BSD-3-Clause mergedeep A deep merge function for \ud83d\udc0d. >=1.3.41.3.4 MIT License mkdocs Project documentation with Markdown. >=1.31.4.3 BSD License mkdocs-coverage MkDocs plugin to integrate your coverage HTML report into your site. >=0.20.2.7 ISC mkdocs-gen-files MkDocs plugin to programmatically generate documentation pages during the build >=0.30.5.0 MIT License mkdocs-git-committers-plugin-2 An MkDocs plugin to create a list of contributors on the page >=1.11.1.2 MIT mkdocs-literate-nav MkDocs plugin to specify the navigation in Markdown instead of YAML >=0.40.6.0 MIT License mkdocs-material Documentation that simply works >=7.39.1.18+insiders.4.36.1 MIT License mkdocs-material-extensions Extension pack for Python Markdown and MkDocs Material. >=1.11.1.1 MIT License mkdocs-minify-plugin An MkDocs plugin to minify HTML, JS or CSS files prior to being written to disk >=0.6.40.6.4 MIT mkdocstrings Automatic documentation from sources, for MkDocs. [python]>=0.180.22.0 ISC mkdocstrings-python A Python handler for mkdocstrings. >=0.5.21.1.2.1.1.1 ISC mypy Optional static typing for Python >=0.9101.4.1 MIT License mypy-extensions Type system extensions for programs checked with the mypy type checker. >=0.4.31.0.0 MIT License packaging Core utilities for Python packages >=22.023.1 BSD License paginate Divides large result sets into pages for easier browsing >=0.5.60.5.6 MIT pathspec Utility library for gitignore style pattern matching of file paths. >=0.9.00.11.1 Mozilla Public License 2.0 (MPL 2.0) pipdeptree Command line utility to show dependency tree of packages. >=2.32.9.5 MIT License platformdirs A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\". >=23.8.1 MIT License pluggy plugin and hook calling mechanisms for python <2.0,>=0.121.2.0 MIT ptyprocess Run a subprocess in a pseudo terminal ~=0.6; sys_platform != \"win32\"0.7.0 ISC License (ISCL) pydantic Data validation using Python type hints >=2.0.22.0.2 MIT License pydantic-core==2.1.22.1.2 MIT pygments Pygments is a syntax highlighting package written in Python. >=2.142.15.1 BSD-2-Clause pymdown-extensions Extension pack for Python Markdown. >=910.0.1 MIT License pyquery A jquery-like library for python >=1.22.0.0 BSD pytest pytest: simple powerful testing with Python >=6.27.4.0 MIT pytest-cov Pytest plugin for measuring coverage. >=3.04.1.0 MIT pytest-randomly Pytest plugin to randomly order tests and control random.seed. >=3.103.13.0 MIT pytest-xdist pytest xdist plugin for distributed testing, most importantly across multiple CPUs >=2.43.3.1 MIT python-dateutil Extensions to the standard Python datetime module >=2.8.12.8.2 Dual License pytz World timezone definitions, modern and historical >=2015.7; python_version < \"3.9\"2023.3 ? pyyaml YAML parser and emitter for Python >=5.16.0 MIT pyyaml-env-tag A custom YAML tag for referencing environment variables in YAML files. >=0.10.1 MIT License readtime Calculates the time some text takes the average human to read, based on Medium's read time forumula >=2.02.0.0 BSD regex Alternative regular expression module, to replace re. >=2022.4.242023.6.3 Apache Software License requests Python HTTP for Humans. 2.31.0 Apache 2.0 ruamel-yaml ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order >=0.17.210.17.32 MIT license ruamel-yaml-clib C version of reader, parser and emitter for ruamel.yaml derived from libyaml >=0.2.7; platform_python_implementation == \"CPython\" and python_version < \"3.12\"0.2.7 MIT ruff An extremely fast Python linter, written in Rust. >=0.0.2460.0.278 MIT safety Checks installed dependencies for known vulnerabilities and licenses. >=22.3.4 MIT license semver Python helper for Semantic Versioning (https://semver.org) >=2.133.0.1 BSD setuptools Easily download, build, install, upgrade, and uninstall Python packages >=19.368.0.0 MIT License six Python 2 and 3 compatibility utilities >=1.51.16.0 MIT smmap A pure Python implementation of a sliding window memory map manager <6,>=3.0.15.0.0 BSD soupsieve A modern CSS selector implementation for Beautiful Soup. >1.22.4.1 MIT License toml Python Library for Tom's Obvious, Minimal Language >=0.100.10.2 MIT tomli A lil' TOML parser >=1.1.0; python_version < \"3.11\"2.0.1 ? types-markdown Typing stubs for Markdown >=3.33.4.2.9 Apache-2.0 license types-pyyaml Typing stubs for PyYAML >=6.06.0.12.10 Apache-2.0 license types-toml Typing stubs for toml >=0.100.10.8.6 Apache-2.0 license typing-extensions Backported and Experimental Type Hints for Python 3.7+ >=3.10.0.0; python_version < \"3.10\"4.7.1 Python Software Foundation License urllib3 HTTP library with thread-safe connection pooling, file post, and more. <3,>=1.21.12.0.3 MIT License watchdog Filesystem events monitoring >=2.03.0.0 Apache License 2.0 zipp Backport of pathlib-compatible object wrapper for zip files >=0.53.16.1 ?
ISC License\n\nCopyright (c) 2023, Timoth\u00e9e Mazzucotelli\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n
griffe-pydantic follows the sponsorware release strategy, which means that new features are first exclusively released to sponsors as part of Insiders. Read on to learn what sponsorships achieve, how to become a sponsor to get access to Insiders, and what's in it for you!
"},{"location":"insiders/#what-is-insiders","title":"What is Insiders?","text":"
griffe-pydantic Insiders is a private fork of griffe-pydantic, hosted as a private GitHub repository. Almost1 all new features are developed as part of this fork, which means that they are immediately available to all eligible sponsors, as they are made collaborators of this repository.
Every feature is tied to a funding goal in monthly subscriptions. When a funding goal is hit, the features that are tied to it are merged back into griffe-pydantic and released for general availability, making them available to all users. Bugfixes are always released in tandem.
Sponsorships make this project sustainable, as they buy the maintainers of this project time \u2013 a very scarce resource \u2013 which is spent on the development of new features, bug fixing, stability improvement, issue triage and general support. The biggest bottleneck in Open Source is time.3
If you're unsure if you should sponsor this project, check out the list of completed funding goals to learn whether you're already using features that were developed with the help of sponsorships. You're most likely using at least a handful of them, thanks to our awesome sponsors!
"},{"location":"insiders/#whats-in-it-for-me","title":"What's in it for me?","text":"
The moment you become a sponsor, you'll get immediate access to 1 additional features that you can start using right away, and which are currently exclusively available to sponsors:
[Project] Griffe extension for Pydantic
"},{"location":"insiders/#how-to-become-a-sponsor","title":"How to become a sponsor","text":"
Thanks for your interest in sponsoring! In order to become an eligible sponsor with your GitHub account, visit pawamoy's sponsor profile, and complete a sponsorship of $10 a month or more. You can use your individual or organization GitHub account for sponsoring.
Important: If you're sponsoring @pawamoy through a GitHub organization, please send a short email to pawamoy@pm.me with the name of your organization and the GitHub account of the individual that should be added as a collaborator.4
You can cancel your sponsorship anytime.5
\u00a0 Join our awesome sponsors
If you sponsor publicly, you're automatically added here with a link to your profile and avatar to show your support for griffe-pydantic. Alternatively, if you wish to keep your sponsorship private, you'll be a silent +1. You can select visibility during checkout and change it afterwards.
The following section lists all funding goals. Each goal contains a list of features prefixed with a checkmark symbol, denoting whether a feature is already available or planned, but not yet implemented. When the funding goal is hit, the features are released for general availability.
"},{"location":"insiders/#1000-gravifridge-user-manual","title":"$ 1,000 \u2014 GraviFridge User Manual","text":"
This section lists all funding goals that were previously completed, which means that those features were part of Insiders, but are now generally available and can be used by all users.
We're building an open source project and want to allow outside collaborators to use griffe-pydantic locally without having access to Insiders. Is this still possible?
Yes. Insiders is compatible with griffe-pydantic. Almost all new features and configuration options are either backward-compatible or implemented behind feature flags. Most Insiders features enhance the overall experience, though while these features add value for the users of your project, they shouldn't be necessary for previewing when making changes to content.
We don't want to pay for sponsorship every month. Are there any other options?
Yes. You can sponsor on a yearly basis by switching your GitHub account to a yearly billing cycle. If for some reason you cannot do that, you could also create a dedicated GitHub account with a yearly billing cycle, which you only use for sponsoring (some sponsors already do that).
If you have any problems or further questions, please reach out to pawamoy@pm.me.
Are we allowed to use Insiders under the same terms and conditions as griffe-pydantic?
Yes. Whether you're an individual or a company, you may use griffe-pydantic Insiders precisely under the same terms as griffe-pydantic, which are given by the ISC License. However, we kindly ask you to respect our fair use policy:
Please don't distribute the source code of Insiders. You may freely use it for public, private or commercial projects, privately fork or mirror it, but please don't make the source code public, as it would counteract the sponsorware strategy.
If you cancel your subscription, you're automatically removed as a collaborator and will miss out on all future updates of Insiders. However, you may use the latest version that's available to you as long as you like. Just remember that GitHub deletes private forks.
In general, every new feature is first exclusively released to sponsors, but sometimes upstream dependencies enhance existing features that must be supported by griffe-pydantic.\u00a0\u21a9
Note that $10 a month is the minimum amount to become eligible for Insiders. While GitHub Sponsors also allows to sponsor lower amounts or one-time amounts, those can't be granted access to Insiders due to technical reasons. Such contributions are still very much welcome as they help ensuring the project's sustainability.\u00a0\u21a9
Making an Open Source project sustainable is exceptionally hard: maintainers burn out, projects are abandoned. That's not great and very unpredictable. The sponsorware model ensures that if you decide to use griffe-pydantic, you can be sure that bugs are fixed quickly and new features are added regularly.\u00a0\u21a9
It's currently not possible to grant access to each member of an organization, as GitHub only allows for adding users. Thus, after sponsoring, please send an email to pawamoy@pm.me, stating which account should become a collaborator of the Insiders repository. We're working on a solution which will make access to organizations much simpler. To ensure that access is not tied to a particular individual GitHub account, create a bot account (i.e. a GitHub account that is not tied to a specific individual), and use this account for the sponsoring. After being added to the list of collaborators, the bot account can create a private fork of the private Insiders GitHub repository, and grant access to all members of the organizations.\u00a0\u21a9
If you cancel your sponsorship, GitHub schedules a cancellation request which will become effective at the end of the billing cycle. This means that even though you cancel your sponsorship, you will keep your access to Insiders as long as your cancellation isn't effective. All charges are processed by GitHub through Stripe. As we don't receive any information regarding your payment, and GitHub doesn't offer refunds, sponsorships are non-refundable.\u00a0\u21a9
"},{"location":"insiders/changelog/","title":"Changelog","text":""},{"location":"insiders/changelog/#griffe-pydantic-insiders","title":"griffe-pydantic Insiders","text":""},{"location":"insiders/changelog/#1.0.0a0","title":"1.0.0a0 July 13, 2023","text":"
Release first Insiders version (alpha)
"},{"location":"insiders/installation/","title":"Getting started with Insiders","text":"
griffe-pydantic Insiders is a compatible drop-in replacement for griffe-pydantic, and can be installed similarly using pip or git. Note that in order to access the Insiders repository, you need to become an eligible sponsor of @pawamoy on GitHub.
The GH_TOKEN environment variable is a GitHub token. It can be obtained by creating a personal access token for your GitHub account. It will give you access to the Insiders repository, programmatically, from the command line or GitHub Actions workflows:
Go to https://github.com/settings/tokens
Click on Generate a new token
Enter a name and select the repo scope
Generate the token and store it in a safe place
Note that the personal access token must be kept secret at all times, as it allows the owner to access your private repositories.
Self-hosting the Insiders package makes it possible to depend on griffe-pydantic normally, while transparently downloading and installing the Insiders version locally. It means that you can specify your dependencies normally, and your contributors without access to Insiders will get the public version, while you get the Insiders version on your machine.
Limitation
With this method, there is no way to force the installation of an Insiders version rather than a public version. If there is a public version that is more recent than your self-hosted Insiders version, the public version will take precedence. Remember to regularly update your self-hosted versions by uploading latest distributions.
You can build the distributions for Insiders yourself, by cloning the repository and using build to build the distributions, or you can download them from our GitHub Releases. You can upload these distributions to a private PyPI-like registry (Artifactory, Google Cloud, pypiserver, etc.) with Twine:
# download distributions in ~/dists, then upload with:\ntwine upload --repository-url https://your-private-index.com ~/dists/*\n
You might also need to provide a username and password/token to authenticate against the registry. Please check Twine's documentation.
You can then configure pip (or other tools) to look for packages into your package index. For example, with pip:
pip config set global.extra-index-url https://your-private-index.com/simple\n
Note that the URL might differ depending on whether your are uploading a package (with Twine) or installing a package (with pip), and depending on the registry you are using (Artifactory, Google Cloud, etc.). Please check the documentation of your registry to learn how to configure your environment.
We kindly ask that you do not upload the distributions to public registries, as it is against our Terms of use.
Full example with pypiserver
In this example we use pypiserver to serve a local PyPI index.
pip install --user pypiserver\n# or pipx install pypiserver\n\n# create a packages directory\nmkdir -p ~/.local/pypiserver/packages\n\n# run the pypi server without authentication\npypi-server run -p 8080 -a . -P . ~/.local/pypiserver/packages &\n
We can configure the credentials to access the server in ~/.pypirc:
We then clone the Insiders repository, build distributions and upload them to our local server:
# clone the repository\ngit clone git@github.com:pawamoy-insiders/griffe-pydantic\ncd griffe-pydantic\n\n# install build\npip install --user build\n# or pipx install build\n\n# checkout latest tag\ngit checkout $(git describe --tags --abbrev=0)\n\n# build the distributions\npyproject-build\n\n# upload them to our local server\ntwine upload -r local dist/* --skip-existing\n
Finally, we configure pip, and for example PDM, to use our local index to find packages:
pip config set global.extra-index-url http://localhost:8080/simple\npdm config pypi.extra.url http://localhost:8080/simple\n
Now when running pip install griffe-pydantic, or resolving dependencies with PDM, both tools will look into our local index and find the Insiders version. Remember to update your local index regularly!
When upgrading Insiders, you should always check the version of griffe-pydantic which makes up the first part of the version qualifier. For example, a version like 8.x.x.4.x.x means that Insiders 4.x.x is currently based on 8.x.x.
If the major version increased, it's a good idea to consult the changelog and go through the steps to ensure your configuration is up to date and all necessary changes have been made.