## lamindb.Space

| class lamindb.Space(name: str, description: str | None = None) |
class lamindb.Space(*db_args)

 Bases: "BaseSQLRecord"

 Spaces for access permissions.

 Every "SQLRecord" object lives in a space that determines its
 access permissions.

 If not configuring a restricted space, a "SQLRecord" object is
 accessible to all collaborators of the LaminDB instance because its
 "space" field defaults to the built-in "all" space. You can create
 a restricted space through LaminHub either on the instance settings
 page or the *Spaces* tab of your account page.

 Guide: Manage access permissions.

# Examples

 After creating a restricted space through LaminHub, create an
 artifact in the space:

 space = ln.Space.get(name="Our space")  # get a space
 ln.Artifact("./test.txt", key="test.txt", space=space).save()  # save artifact in space

 You can also move an existing object into a space:

 space = ln.Space.get(name="Our space")  # select a space
 record = ln.Record.get(name="existing label")
 record.space = space
 record.save()  # saved in space "Our space"

 For more examples and background, see Manage access permissions, in
 particular, section Use a restricted space.

# Notes

 All data in this registry is synchronized from LaminHub so that
 spaces can be shared and reused across multiple LaminDB instances.

 name: "str"

 Name of space.

 uid: "str"

 Universal id.

| description: "str" | "None" |

 Description of space.

 created_at: "datetime"

 Time of creation of record.

 created_by: User

 Creator of space.

 ablocks: RelatedManager[SpaceBlock]

 Attached blocks ← "space".