I have imported context from alembic. But the variables like config and configure are unavailable in the package. What could be the reason ?

alembic.context is only available for the env.py script when it is executed through the alembic command, and provided that the alembic command is executed from a folder containing an alembic.ini file specifying the Alembic configuration to use.
Otherwise, the alembic module does not have a context property.
For more information, see this answer to a similar question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With