Skip to main content

einsteinify

A pip moudle that transforms every C #include absolute path to a given directory to a relative path to the .c or .h file

Install

You can install einsteinify with pip:

$ pip install einsteinify

Project purpose

It may happen that you have a folder with .c and .h files where some the #include "*.h" are global paths to respect to the root folder. This module makes them relative paths to the root folder.

Usage (global module)

$ einsteinify path/to/root/folder

Usage (local module)

from einsteinify import einsteinify

PATH = 'path/to/root/folder'

einsteinify(PATH)

Result

Suppose that you have a directory like this:

root
 ├── main.h
 ├── other.h
 ├─> services
 │   └── services.h
 └─> utils
     └── utils.h

Where initially:

main.h

#include "root/other.h"
#include "root/services/services.h"

other.h

#include "root/utils/utils.h"

utils.h

#include "root/other.h"
#include "root/services/services.h"

After running einsteinify the includes would be:

main.h

#include "./other.h"
#include "./services/services.h"

other.h

#include "./utils/utils.h"

utils.h

#include "../other.h"
#include "../services.h"

Metadata

Release files for einsteinify 1.1.1

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

Source distribution (sdist)

Source distribution for einsteinify 1.1.1
File Size Uploaded Provenance Actions
einsteinify-1.1.1.tar.gz 3.2 kB Without provenance Details for einsteinify-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 7.8 kB

Release files / einsteinify-1.1.1.tar.gz

Download URL einsteinify-1.1.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
38a5a80af7890e6fb37c9873a272a24514a6734fc326c4df14755a71f65c857d
BLAKE2b-256 checksum
How to use checksums
a2bdf101dd73d42e14acfb842f8d15677b4f9c0f256af85530c74535effebc8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.9.2 Linux/5.8.0-45-generic

Release files / einsteinify-1.1.1-py3-none-any.whl

Download URL einsteinify-1.1.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
540b3b4a6e2252ff77e675e6499386a773b7687374cb3d3906fcf0c67fc788d8
BLAKE2b-256 checksum
How to use checksums
ad970a6921184f5cabab27673df7e8472abf91d288b82c55554657957b1d0d75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.9.2 Linux/5.8.0-45-generic

Security for einsteinify 1.1.1

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