No, the court does not require that you use an attorney and you may be able to go through the process without an attorney. However, we would not recommend it.
An experienced bankruptcy lawyer will be able to help you determine the value of your assets, advise you on what the law allows you to keep, make the necessary calculations under the means test to determine which chapter to file.
In many cases debtors may cost themselves a lot more by not seeking the advice of an experienced attorney.