semvec/pypi-packages huggingface dataset:
forward-decl 0.1.2
A simple module for supporting forward references

# py-forward_decl
A simple module for supporting forward references

# What are those?
Forward references are references to objects that haven't been assigned yet.
The reference is declared as just a name of the variable that has been forward declared.
Forward declaration is a concept in many programming languages that declares the existance of a variable or a function before its value has been defined.

# Why tho?
In 99% of cases when you would think of using forward references there is a better way to do it in Python.
This is for the other 1%.
Like when you need to reference a class from deep within an expression inside a class variable inside that class' definition.
Also useful for recursive parser production rules that are defined using Python's semantics.

# Installation
Install it using pip:
```
pip install forward-decl
```

# Usage

Basic example:
```python
var2 = FwDecl()

var1 = OpaqueFwRef("var2")
var2 = "Hello"

print(var1.get_ref()) # prints 'Hello'
```

A more useful case:
```python
MyClass = FwDecl()

class MyClass:
    clsReference = OpaqueFwRef("MyClass")
    clsVar = "Hello"

print(MyClass.clsReference.get_ref().clsVar) # prints 'Hello'
```
ienv 0.0.1
Cut down your venv sizes by symlinking all the things
Requires Python: >=3.8

# ienv

**!!WARNING!! THIS IS A ONE WAY PROCESS !!WARNING!!**

Have you got 30GB of SciPy on your disk because every time someone wants to
add two numbers together they install a whole lab on your machine? Are your
fifty copies of PyTorch and TensorFlow weighing heavy on your SSD?

Why not throw caution to the wind and replace everyhing in the site-packages
dir with symlinks? It's not like you're going to need them anyway. And nobody
will ever write to them and mess up every venv on your machine. Right?

**!!WARNING!! THIS RECKLESS AND STUPID !!WARNING!!**

## Usage

```shell
pip install ienv
ienv .venv
```

## Recovery

**Pull requests welcome!**

All the files are there, I've just not written anything to bring them back yet.
Ever, probably.

## Credits

Mostly written by ChatGPT just to see if it could do it. With a bit of guidance
it actually could, but it can't learn like that so it's like a student that
nods along and you think it's listening and it's really just playing along and
tricking you into doing its homework. But to be honest it was either that or
copilot anyway.

## License

They say you get what you pay for, sometimes less. This is one of those times.
As free software distributed under the WTFPL (with one additional clause); this
is one of the times when you pay for what you get.