Skip to content

pylib: add profile object to manage users admin state #150

@sondove

Description

@sondove

Novem exposes a rich set of controls for the users profile, it would be good if these were available both in python and cli.

Ideally you would create a Profile object that is represented by a token, that way you can operate on and manage multiple profiles.

Simple code example

from novem import Profile

# no token, grab default profile from config
me = Profile()
me.public = false # make my profile private
me.name = "My New Name"
me.bio = "Me is a demo user"

# use other profile from config
other = Profile(profile="my-other-user")
other.name = "Other User"

# use token directly
new = Profile(token="nbt-XXXXa251")
new.name = "New User Name"
new.public = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions