Skip to content

Commit

Permalink
Merge pull request #9 from ken-morel/dev
Browse files Browse the repository at this point in the history
* Improved writeable notification system
* Improved component attribute management with `AttributeManager`
* Improved writeable and expression syntax for usability and simplicity
  • Loading branch information
ken-morel authored Sep 28, 2024
2 parents 813613c + 6951679 commit d413fbe
Show file tree
Hide file tree
Showing 79 changed files with 79,286 additions and 8,775 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos: []
# - repo: https://github.com/gitguardian/ggshield
# rev: v1.31.0
# hooks:
# - id: ggshield
# language_version: python3
# stages: [commit]
32 changes: 32 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "19"
# rust: "1.64"
# golang: "1.19"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf
- epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt
128 changes: 128 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct

## Our Pledge

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, 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.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

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.

## Scope

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.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[email protected].
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.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**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.

### 2. Warning

**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.

### 3. Temporary 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.

### 4. 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.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

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.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Please, to contribute to tis project:
- Fork the project
- Create a branch for the feature you want to add as `feature/myfeature` or the bug to fix as `bugfix/mybugfix`
- Modify the created branch into clear commits to help reviewing them.
- Submit a pull request
- Optionally provide more assistance, if needed (please).
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
please, view the documentation at https://taktk.readthedocs.io
13 changes: 13 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Security Policy

## Supported Versions

Use this section to
| Version | Supported |
| ------- | ------------------ |
| 0.1.* | :x: |

## Reporting a Vulnerability

Taktk alpha and beta releases(and some others to) may implement platform specific features which may more or less alter the look or performance of some components in some conditions. But I am working
on making it compliant and predictable on most platforms as Possible: currently Windows and Linux.
Binary file added Scripts/dmypy.exe
Binary file not shown.
Binary file added Scripts/docutils.exe
Binary file not shown.
Binary file added Scripts/identify-cli.exe
Binary file not shown.
Binary file added Scripts/mypy.exe
Binary file not shown.
Binary file added Scripts/mypyc.exe
Binary file not shown.
Binary file added Scripts/nodeenv.exe
Binary file not shown.
Binary file added Scripts/normalizer.exe
Binary file not shown.
Binary file added Scripts/pre-commit.exe
Binary file not shown.
Binary file added Scripts/pybabel.exe
Binary file not shown.
Binary file added Scripts/pygmentize.exe
Binary file not shown.
23 changes: 23 additions & 0 deletions Scripts/rst2html.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!D:\taktk\Scripts\python.exe

# $Id: rst2html.py 9115 2022-07-28 17:06:24Z milde $
# Author: David Goodger <[email protected]>
# Copyright: This module has been placed in the public domain.

"""
A minimal front end to the Docutils Publisher, producing HTML.
"""

try:
import locale
locale.setlocale(locale.LC_ALL, '')
except Exception:
pass

from docutils.core import publish_cmdline, default_description


description = ('Generates (X)HTML documents from standalone reStructuredText '
'sources. ' + default_description)

publish_cmdline(writer_name='html', description=description)
26 changes: 26 additions & 0 deletions Scripts/rst2html4.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!D:\taktk\Scripts\python.exe

# $Id: rst2html4.py 9115 2022-07-28 17:06:24Z milde $
# Author: David Goodger <[email protected]>
# Copyright: This module has been placed in the public domain.

"""
A minimal front end to the Docutils Publisher, producing (X)HTML.
The output conforms to XHTML 1.0 transitional
and almost to HTML 4.01 transitional (except for closing empty tags).
"""

try:
import locale
locale.setlocale(locale.LC_ALL, '')
except Exception:
pass

from docutils.core import publish_cmdline, default_description


description = ('Generates (X)HTML documents from standalone reStructuredText '
'sources. ' + default_description)

publish_cmdline(writer_name='html4', description=description)
33 changes: 33 additions & 0 deletions Scripts/rst2html5.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!D:\taktk\Scripts\python.exe
# :Copyright: © 2015 Günter Milde.
# :License: Released under the terms of the `2-Clause BSD license`_, in short:
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
# This file is offered as-is, without any warranty.
#
# .. _2-Clause BSD license: https://opensource.org/licenses/BSD-2-Clause
#
# Revision: $Revision: 9021 $
# Date: $Date: 2022-03-04 16:54:22 +0100 (Fr, 04. Mär 2022) $

"""
A minimal front end to the Docutils Publisher, producing HTML 5 documents.
The output is also valid XML.
"""

try:
import locale # module missing in Jython
locale.setlocale(locale.LC_ALL, '')
except locale.Error:
pass

from docutils.core import publish_cmdline, default_description

description = ('Generates HTML5 documents from standalone '
'reStructuredText sources.\n'
+ default_description)

publish_cmdline(writer_name='html5', description=description)
26 changes: 26 additions & 0 deletions Scripts/rst2latex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!D:\taktk\Scripts\python.exe

# $Id: rst2latex.py 9115 2022-07-28 17:06:24Z milde $
# Author: David Goodger <[email protected]>
# Copyright: This module has been placed in the public domain.

"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""

try:
import locale
locale.setlocale(locale.LC_ALL, '')
except Exception:
pass

from docutils.core import publish_cmdline

description = ('Generates LaTeX documents from standalone reStructuredText '
'sources. '
'Reads from <source> (default is stdin) and writes to '
'<destination> (default is stdout). See '
'<https://docutils.sourceforge.io/docs/user/latex.html> for '
'the full reference.')

publish_cmdline(writer_name='latex', description=description)
27 changes: 27 additions & 0 deletions Scripts/rst2man.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!D:\taktk\Scripts\python.exe

# Author:
# Contact: [email protected]
# Copyright: This module has been placed in the public domain.

"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructuredText source.
"""

import locale
try:
locale.setlocale(locale.LC_ALL, '')
except Exception:
pass

from docutils.core import publish_cmdline, default_description
from docutils.writers import manpage

description = ("Generates plain unix manual documents. "
+ default_description)

publish_cmdline(writer=manpage.Writer(), description=description)
28 changes: 28 additions & 0 deletions Scripts/rst2odt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!D:\taktk\Scripts\python.exe

# $Id: rst2odt.py 9115 2022-07-28 17:06:24Z milde $
# Author: Dave Kuhlman <[email protected]>
# Copyright: This module has been placed in the public domain.

"""
A front end to the Docutils Publisher, producing OpenOffice documents.
"""

try:
import locale
locale.setlocale(locale.LC_ALL, '')
except Exception:
pass

from docutils.core import publish_cmdline_to_binary, default_description
from docutils.writers.odf_odt import Writer, Reader


description = ('Generates OpenDocument/OpenOffice/ODF documents from '
'standalone reStructuredText sources. ' + default_description)


writer = Writer()
reader = Reader()
output = publish_cmdline_to_binary(reader=reader, writer=writer,
description=description)
20 changes: 20 additions & 0 deletions Scripts/rst2odt_prepstyles.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!D:\taktk\Scripts\python.exe

# Copyright: This module has been placed in the public domain.

"""
Adapt a word-processor-generated styles.odt for odtwriter use:
Drop page size specifications from styles.xml in STYLE_FILE.odt.
See https://docutils.sourceforge.io/docs/user/odt.html#page-size
Provisional backwards compatibility stub (to be removed in Docutils >= 0.21).
The actual code moved to the "docutils" library package and can be started
with ``python -m docutils.writers.odf_odt.prepstyles``.
"""

from docutils.writers.odf_odt import prepstyles

if __name__ == '__main__':
prepstyles.main()
Loading

0 comments on commit d413fbe

Please sign in to comment.