Skip to main content

SSRA Book: Standard Style Rules & Advisories

Chapter 1: Readability

R/1

Add an empty line between sections, as shown in the following example:

[container;main]

[main;setup]
// ...

[main;build]
// ...

// This comment is not related to the rest of the file

[end_container;main]

R/2

Name the first container main:

[container;main]

// ...

[end_container;main] R/3

Add a space between // and the comment text:

//wrong
// correct

R/4

Place build first and setup last (when creating a file for pybuild-xtra):

[container;main]

[main;build]
- name = "project"
- version = "1.0"
- ai_description = false
- description = "project"
- autoupload = true

[main;setup]
- use = "pyproject.toml"
- custom_readme_name = false

[setup;dependencies]
    "something",

[end_container;main]

R/5

If there is no specific reason, do not add comments.

Reason: this file is usually only for you. You already know what and why something exists, and the lexer ignores comments anyway.

Wrong:

// ...

// making build because it is required
[main;build]
// project name
- name = "my_cool_project" // it is named this because...
// version
- version = "1.0" // yay, new release: ...

// ...

Correct:

// ...

[main;build]
- name = "my_cool_project"
- version = "1.0" // Finally

// ...

Note: This rule is the least important because it depends on personal preference. It is only a recommendation. One or two small comments are completely fine.

Chapter 2: Syntax (pybuild-xtra file creation)

S/1

Do not use spaces in project names:

// ...

[main;build]
- name = "my cool project" // Oops! Invalid for PyPI

// ...

S/2

(Repeats R/4) Place build first and setup last:

[container;main]

[main;build]

  • name = "project"
  • version = "1.0"
  • ai_description = false
  • description = "project"
  • autoupload = true

[main;setup]

  • use = "pyproject.toml"
  • custom_readme_name = false

[setup;dependencies] "something",

[end_container;main] S/3


Use the pyproject.toml format:

```pbs
// ...

[main;setup]
- use = "pyproject.toml"

// ...

Chapter 3: Naming

N/1

Use lowercase names.

// ...

[main;setup]
- Use = "pyproject.toml" // Correct, but you pressed CAPS LOCK twice

// ...

[main;setup]
- use = "pyproject.toml" // Correct

// ...

N/2

Use short names only.

(custom_readme_name is currently an exception and may be changed.)

Wrong:

my_cool_little_thingy = "something"

End of current version.

Metadata

Release files for pbslib 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pbslib 0.0.2
File Size Uploaded
pbslib-0.0.2.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pbslib 0.0.2
File Interpreter ABI Platform
pbslib-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / pbslib-0.0.2.tar.gz

Download URL pbslib-0.0.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3be8b1b7f448f7d642db4aa29e1aa5ed584d84add5c610b034da6b0664f70c58
BLAKE2b-256 checksum
How to use checksums
53679981251e3e8e9dd0ae63902647750d7722c910f87a7ef9ac70cef3e2283d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / pbslib-0.0.2-py3-none-any.whl

Download URL pbslib-0.0.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c7cd019a96b33864c455b6e0563fb3fdcc414c70c271bb59cb9f2f03e102904
BLAKE2b-256 checksum
How to use checksums
5d27d9f6f9813c317f57e9e1cac10052a89c2ce0571a295405cfa54207ed19bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page