Exinc
Tool to expand C++ includes for competitive programmers.
Installation
From
pip:$ pip install exinc
From source:
$ pip install .
Configuration
Run the tool one first time for it to create a default configuration.
$ exinc --help
Now you'll find a configuration file in /home/$USER/.exinc that you can edit.
Usage
First, you have to properly place the files you want to include. You should either:
- Put them in the same folder of your to-be-compiled source code;
- Or put them somewhere, and add such path to
DEFAULT_PATHSin the.exincconfiguration file.
Notice that when you go with (2), you also have to make sure you add this path to other places of interest. For instance, when using vscode, you also want to make sure IntelliSense will recognize these headers.
Now, you can write C++-based solutions and use your newly available includes:
// MyIncludedCode.cpp
int included_function() {
return 42;
}
// solution.cpp
#include "MyIncludedCode.cpp"
#include <bits/stdc++.h>
int32_t main() {
cout << included_function() << endl;
// Code should compile, and print 42.
}
Ultimately, this code will be expanded by Exinc to:
// solution.pre.cpp
int included_function() {
return 42;
}
#include <bits/stdc++.h>
int32_t main() {
cout << included_function() << endl;
// Code should compile, and print 42.
}
Metadata
Release files for exinc 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exinc-1.0.3.tar.gz | 5.6 kB | Without provenance | Details for exinc-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exinc-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for exinc-1.0.3-py3-none-any.whl |
Total release size: 12.8 kB
Release files / exinc-1.0.3.tar.gz
| Download URL | exinc-1.0.3.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e3f55937d84566d45f0dbbe2e06b1c4f63a2712ca443d37fa02e40819bdc2dd
|
|
BLAKE2b-256 checksum How to use checksums |
4e54cec093e1f2fa34791657abd302b7e0876a041ed8003a0c6247007d3edbc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.5 Darwin/23.5.0
|
Release files / exinc-1.0.3-py3-none-any.whl
| Download URL | exinc-1.0.3-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6b99687dc331cb4056759da035cdecc5dde5ea5b26b033338ca41db781ce8d0
|
|
BLAKE2b-256 checksum How to use checksums |
1f91436830f17341f99a8d530f2be6f0e74e56d3f94c7e06badefa18f0287fb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.5 Darwin/23.5.0
|
Security for exinc 1.0.3
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.