persist

topleveltools.persist(client)

Makes persistence agent.

>>> import abjad

Persists staff as LilyPond file:

>>> staff = abjad.Staff("c'4 e'4 d'4 f'4")
>>> show(staff) 
>>> abjad.persist(staff).as_ly() 
('/Users/joberholtzer/.abjad/output/0812.ly', 0.0026061534881591797)

Returns persistence agent:

>>> abjad.persist(staff)
PersistenceAgent(client=Staff("c'4 e'4 d'4 f'4"))