Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Synamic

An advanced hybrid (static+dynamic) web application framework, library and tool.

It can be used as:

  • Framework

  • Library

  • Tool

Powerful, Extensible, Dynamic


How To Install

pip install synamic

Creating a Project

Choose or create a directory in which you want to keep your templates, models, contents, static files and other data. Start your command line in the chosen directory or cd into it. Run the following command:

synamic init

It will create the directory and the necessary startup files for you along with a .gitignore.

Directory structure:

  1. contents: primarily for keeping your markdown contents (by default with .md and .markdown extension). All other files will be considered as static files, except for the files that start with a dot (.) or underscore (_). Files named .meta.syd are meta files (primarily for configuration purpose). Instead of putting configurations/fields repeatedly in markdown files you can put them in a .meta.syd file. All the markdown files in the .meta.syd’s directory or any directory below will include fields from it. Meta files in directories below the will be able to override fields from parent metas. You can remark .meta.syd as a compile time dependency.

  2. metas: all the meta folders and files will live inside of this directory. It will contain data, users, markers, models, and menus. More can be added in future.

  3. templates: for storing templates. By default the template engine will be jinja2

  4. settings.syd: this file will hold project/site wide settings. Create settings.private.syd to override settings that you do not want to share with your team or do not want to keep in version control.

  5. sites: Yes, synamic has multi site feature. A site is a complete sandbox that will have different templates, metas, contents, etc. Even it can have sub-sites under it. A site can inherit many things from its parent sites.

If you prefer to work inside the synamic shell, you can start it with the following command.

synamic shell

Building a Project

Run the following command from the project’s root directory.

synamic build

You will get your site(s) build under the _outputs directory. You can also run the same command from synamic shell where you will not need to precede the ‘build’ command with ‘synamic’.

Starting the Development Server

Open your command line in the synamic project directory, start the synamic shell and run the serve command.

serve

To run the server without the synamic shell use the following command.

synamic serve

This will start a development server with which you can preview you work live on the browser. Unlike build this does not generate any output file.

Template Tag: geturl

Argument Format: synamic_scheme://type:value

Example:

{% getc 'url://file:logo.png' %}

{% getc 'url://id:home-en' %}

The maniac behind Synamic is Md. Sabuj Sarker who has one decade+ of experience and expertise in computer programming. Do not hesitate to contact him for hiring him for project management, software development, writing, or training - he will be happy to help you. You can visit his website at www.sabuj.me

Metadata

Release files for synamic 0.7.1.dev7

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

Source distribution (sdist)

Source distribution for synamic 0.7.1.dev7
File Size Uploaded Provenance Actions
synamic-0.7.1.dev7.tar.gz 94.6 kB Without provenance Details for synamic-0.7.1.dev7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for synamic 0.7.1.dev7
File Interpreter ABI Platform Actions
synamic-0.7.1.dev7-py3-none-any.whl Python 3 none any Details for synamic-0.7.1.dev7-py3-none-any.whl

Total release size: 308.5 kB

Release files / synamic-0.7.1.dev7.tar.gz

Download URL synamic-0.7.1.dev7.tar.gz
Size 94.6 kB
Tags Source
SHA-256 checksum
How to use checksums
14a0873cd27c6db33ba176bb1849066fc84e12242bedba691867d2e78a1dc79d
BLAKE2b-256 checksum
How to use checksums
985899ee23640ed37895baedfb1cc2c1ddf9453f2524b08eec50b1e10429600d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

Release files / synamic-0.7.1.dev7-py3-none-any.whl

Download URL synamic-0.7.1.dev7-py3-none-any.whl
Size 213.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea269c1d4965b98937cd693251f226cd148bdee7e5b9cae712b4566bf41edc9c
BLAKE2b-256 checksum
How to use checksums
b92ea69172d825bd5145c6312f6c53c84c5f332d318a9389f937a4ed04161dc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

Security for synamic 0.7.1.dev7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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