python
Python programming language module.
Installation
dagger install github.com/sagikazarmark/daggerverse/python@v0.1.0Entrypoint
Return Type
Python !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| version | String | - | Version (image tag) to use from the official image repository as a base container. | 
| container | Container | - | Custom container to use as a base container. | 
Example
dagger -m github.com/sagikazarmark/daggerverse/python@d8b5409dc45cc2242792566059f18cb1e5488629 call \
func (m *MyModule) Example() *dagger.Python  {
	return dag.
			Python()
}@function
def example() -> dagger.Python:
	return (
		dag.python()
	)@func()
example(): Python {
	return dag
		.python()
}Types
Python 🔗
container() 🔗
Return Type
Container !Example
dagger -m github.com/sagikazarmark/daggerverse/python@d8b5409dc45cc2242792566059f18cb1e5488629 call \
 containerfunc (m *MyModule) Example() *dagger.Container  {
	return dag.
			Python().
			Container()
}@function
def example() -> dagger.Container:
	return (
		dag.python()
		.container()
	)@func()
example(): Container {
	return dag
		.python()
		.container()
}withPipCache() 🔗
Mount a cache volume for Pip cache.
Return Type
Python !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| cache | CacheVolume ! | - | No description provided | 
| source | Directory | - | Identifier of the directory to use as the cache volume's root. | 
| sharing | String | - | Sharing mode of the cache volume. | 
Example
dagger -m github.com/sagikazarmark/daggerverse/python@d8b5409dc45cc2242792566059f18cb1e5488629 call \
 with-pip-cache --cache VOLUME_NAMEfunc (m *MyModule) Example(cache *dagger.CacheVolume) *dagger.Python  {
	return dag.
			Python().
			WithPipCache(cache)
}@function
def example(cache: dagger.CacheVolume) -> dagger.Python:
	return (
		dag.python()
		.with_pip_cache(cache)
	)@func()
example(cache: CacheVolume): Python {
	return dag
		.python()
		.withPipCache(cache)
}withSource() 🔗
Mount a source directory.
Return Type
Python !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| source | Directory ! | - | Source directory to mount. | 
Example
dagger -m github.com/sagikazarmark/daggerverse/python@d8b5409dc45cc2242792566059f18cb1e5488629 call \
 with-source --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Python  {
	return dag.
			Python().
			WithSource(source)
}@function
def example(source: dagger.Directory) -> dagger.Python:
	return (
		dag.python()
		.with_source(source)
	)@func()
example(source: Directory): Python {
	return dag
		.python()
		.withSource(source)
}